blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 332 | content_id stringlengths 40 40 | detected_licenses listlengths 0 50 | license_type stringclasses 2 values | repo_name stringlengths 7 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 557 values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 77.7k | fork_events_count int64 0 48k | gha_license_id stringclasses 17 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 82 values | src_encoding stringclasses 28 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 5.41M | extension stringclasses 11 values | content stringlengths 7 5.41M | authors listlengths 1 1 | author stringlengths 0 161 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa136fd91bb231449dbf80f3e34a268d9a29e834 | fd61eb5dec053682ffd3d4887cbab1b56c564365 | /src/it/crs4/pydoop/mapreduce/pipes/PydoopAvroKeyValueInputFormat.java | ce73fec835c583242175010bd73dc531e6dfbcfa | [
"Apache-2.0"
] | permissive | crs4/pydoop | f6a0cc5687891a893fc806e4c5405d238aa6e286 | c7233b3a9feceb6055ea4b23213f273daed65e58 | refs/heads/develop | 2023-08-20T22:35:11.500338 | 2022-01-20T16:25:51 | 2022-01-20T16:25:51 | 10,475,304 | 214 | 64 | Apache-2.0 | 2022-01-20T16:19:10 | 2013-06-04T09:37:11 | Python | UTF-8 | Java | false | false | 1,705 | 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 it.crs4.pydoop.mapreduce.pipes;
import java.io.IOException;
import org.apache.avro.generic.GenericRecord;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
public class PydoopAvroKeyValueInputFormat
extends FileInputFormat<GenericRecord, GenericRecord> {
@Override
public RecordReader<GenericRecord, GenericRecord> createRecordReader(
InputSplit split, TaskAttemptContext context)
throws IOException, InterruptedException {
// null readerSchema: the reader will fall back to the writer schema
// FIXME: we could add our own property for setting the reader schema
// FIXME: no distinction between top-level, key and value schema
return new PydoopAvroKeyValueRecordReader(null);
}
}
| [
"simleo@crs4.it"
] | simleo@crs4.it |
e5506066a0ae5ea3125f28388721a03a666f52ec | e6a23cb5ef9ec7071c441d5b170dbbdf227b226d | /zookeeper-server/src/main/java/org/apache/zookeeper/Watcher.java | dcd343e95d157eb4cdc4e307b5ba7cb74488b1c0 | [
"Apache-2.0"
] | permissive | linyinpeng1989/zookeeper-fork | a81d8b09564b43e8db4edc396de63592c582d1af | da092483641ad8832c07944eb18c2cc0d425a5ff | refs/heads/master | 2022-11-23T02:19:16.009158 | 2020-07-30T10:03:39 | 2020-07-30T10:03:39 | 273,498,187 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,640 | 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.zookeeper;
import org.apache.yetus.audience.InterfaceAudience;
/**
* This interface specifies the public interface an event handler class must
* implement. A ZooKeeper client will get various events from the ZooKeeper
* server it connects to. An application using such a client handles these
* events by registering a callback object with the client. The callback object
* is expected to be an instance of a class that implements Watcher interface.
*
*/
@InterfaceAudience.Public
public interface Watcher {
/**
* This interface defines the possible states an Event may represent
*/
@InterfaceAudience.Public
interface Event {
/**
* Enumeration of states the ZooKeeper may be at the event
*
* 事件状态枚举
*/
@InterfaceAudience.Public
enum KeeperState {
/** Unused, this state is never generated by the server */
@Deprecated
Unknown(-1),
/** The client is in the disconnected state - it is not connected
* to any server in the ensemble. */
Disconnected(0),
/** Unused, this state is never generated by the server */
@Deprecated
NoSyncConnected(1),
/** The client is in the connected state - it is connected
* to a server in the ensemble (one of the servers specified
* in the host connection parameter during ZooKeeper client
* creation). */
SyncConnected(3),
/**
* Auth failed state
*/
AuthFailed(4),
/**
* The client is connected to a read-only server, that is the
* server which is not currently connected to the majority.
* The only operations allowed after receiving this state is
* read operations.
* This state is generated for read-only clients only since
* read/write clients aren't allowed to connect to r/o servers.
*/
ConnectedReadOnly(5),
/**
* SaslAuthenticated: used to notify clients that they are SASL-authenticated,
* so that they can perform Zookeeper actions with their SASL-authorized permissions.
*/
SaslAuthenticated(6),
/** The serving cluster has expired this session. The ZooKeeper
* client connection (the session) is no longer valid. You must
* create a new client connection (instantiate a new ZooKeeper
* instance) if you with to access the ensemble. */
Expired(-112),
/**
* The client has been closed. This state is never generated by
* the server, but is generated locally when a client calls
* {@link ZooKeeper#close()} or {@link ZooKeeper#close(int)}
*/
Closed(7);
private final int intValue; // Integer representation of value
// for sending over wire
KeeperState(int intValue) {
this.intValue = intValue;
}
public int getIntValue() {
return intValue;
}
public static KeeperState fromInt(int intValue) {
switch (intValue) {
case -1:
return KeeperState.Unknown;
case 0:
return KeeperState.Disconnected;
case 1:
return KeeperState.NoSyncConnected;
case 3:
return KeeperState.SyncConnected;
case 4:
return KeeperState.AuthFailed;
case 5:
return KeeperState.ConnectedReadOnly;
case 6:
return KeeperState.SaslAuthenticated;
case -112:
return KeeperState.Expired;
case 7:
return KeeperState.Closed;
default:
throw new RuntimeException("Invalid integer value for conversion to KeeperState");
}
}
}
/**
* Enumeration of types of events that may occur on the ZooKeeper
*
* 事件类型枚举
*/
@InterfaceAudience.Public
enum EventType {
None(-1),
NodeCreated(1),
NodeDeleted(2),
NodeDataChanged(3),
NodeChildrenChanged(4),
DataWatchRemoved(5),
ChildWatchRemoved(6),
PersistentWatchRemoved (7);
private final int intValue; // Integer representation of value
// for sending over wire
EventType(int intValue) {
this.intValue = intValue;
}
public int getIntValue() {
return intValue;
}
public static EventType fromInt(int intValue) {
switch (intValue) {
case -1:
return EventType.None;
case 1:
return EventType.NodeCreated;
case 2:
return EventType.NodeDeleted;
case 3:
return EventType.NodeDataChanged;
case 4:
return EventType.NodeChildrenChanged;
case 5:
return EventType.DataWatchRemoved;
case 6:
return EventType.ChildWatchRemoved;
case 7:
return EventType.PersistentWatchRemoved;
default:
throw new RuntimeException("Invalid integer value for conversion to EventType");
}
}
}
}
/**
* Enumeration of types of watchers
*/
@InterfaceAudience.Public
enum WatcherType {
Children(1),
Data(2),
Any(3);
// Integer representation of value
private final int intValue;
WatcherType(int intValue) {
this.intValue = intValue;
}
public int getIntValue() {
return intValue;
}
public static WatcherType fromInt(int intValue) {
switch (intValue) {
case 1:
return WatcherType.Children;
case 2:
return WatcherType.Data;
case 3:
return WatcherType.Any;
default:
throw new RuntimeException("Invalid integer value for conversion to WatcherType");
}
}
}
/**
* 事件回调处理入口
*
* @param event 事件对象
*/
void process(WatchedEvent event);
}
| [
"Yinpeng.Lin@geely.com"
] | Yinpeng.Lin@geely.com |
ff703c5ece8667538f3255398876180f61ac6aa8 | 9ad92fea2e8662c1c128396169faca070d6e3a0b | /org.caudexorigo.netty4/src/main/java/org/caudexorigo/netty/DefaultNettyContext.java | 442ce23b10cad29353dad9f3148e98080b87559b | [] | no_license | jneto81/javardices | 4d11f4a6762ee557a5f88c9fbe6f702085050ea5 | bd82119dcc635ec3ed4b9f1ebe2b966fc14b724f | refs/heads/master | 2023-03-16T04:22:17.198283 | 2018-03-04T09:36:04 | 2018-03-04T09:36:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,990 | java | package org.caudexorigo.netty;
import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.UnpooledByteBufAllocator;
import io.netty.channel.Channel;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.ServerChannel;
import io.netty.channel.epoll.Epoll;
import io.netty.channel.epoll.EpollDatagramChannel;
import io.netty.channel.epoll.EpollEventLoopGroup;
import io.netty.channel.epoll.EpollServerSocketChannel;
import io.netty.channel.epoll.EpollSocketChannel;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.DatagramChannel;
import io.netty.channel.socket.nio.NioDatagramChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.channel.socket.nio.NioSocketChannel;
public class DefaultNettyContext implements NettyContext
{
private static final DefaultNettyContext instance = new DefaultNettyContext();
private final ByteBufAllocator _allocator;
private final Class<? extends ServerChannel> _serverChannelClass;
private final Class<? extends Channel> _channelClass;
private final Class<? extends DatagramChannel> _datagramChannelClass;
private final EventLoopGroup _bossEventLoopGroup;
private final EventLoopGroup _workerEventLoopGroup;
private DefaultNettyContext()
{
super();
String os_arch = System.getProperty("os.arch");
boolean isARM = contains(os_arch, "arm");
if (isARM)
{
_allocator = UnpooledByteBufAllocator.DEFAULT;
}
else
{
_allocator = PooledByteBufAllocator.DEFAULT;
}
if (Epoll.isAvailable())
{
_bossEventLoopGroup = new EpollEventLoopGroup();
_workerEventLoopGroup = new EpollEventLoopGroup();
_serverChannelClass = EpollServerSocketChannel.class;
_channelClass = EpollSocketChannel.class;
_datagramChannelClass = EpollDatagramChannel.class;
}
else
{
_bossEventLoopGroup = new NioEventLoopGroup();
_workerEventLoopGroup = new NioEventLoopGroup();
_serverChannelClass = NioServerSocketChannel.class;
_channelClass = NioSocketChannel.class;
_datagramChannelClass = NioDatagramChannel.class;
}
}
@Override
public ByteBufAllocator getAllocator()
{
return _allocator;
}
@Override
public Class<? extends ServerChannel> getServerChannelClass()
{
return _serverChannelClass;
}
@Override
public Class<? extends Channel> getChannelClass()
{
return _channelClass;
}
@Override
public EventLoopGroup getBossEventLoopGroup()
{
return _bossEventLoopGroup;
}
@Override
public EventLoopGroup getWorkerEventLoopGroup()
{
return _workerEventLoopGroup;
}
@Override
public Class<? extends DatagramChannel> getDatagramChannelClass()
{
return _datagramChannelClass;
}
private static final boolean contains(String instr, String searchstr)
{
if ((instr != null) && (instr.trim().length() > 0))
{
return instr.contains(searchstr);
}
else
{
return false;
}
}
public static final NettyContext get()
{
return instance;
}
} | [
"luis.neves@gmail.com"
] | luis.neves@gmail.com |
4f2a24fa84313997cdf0819a214d1a182871cff2 | 6baf1fe00541560788e78de5244ae17a7a2b375a | /hollywood/com.oculus.ocms-OCMS/sources/com/facebook/quicklog/identifiers/Workspeed.java | 715379de0009ae387e24fab1e5dbfc77be94c09a | [] | no_license | phwd/quest-tracker | 286e605644fc05f00f4904e51f73d77444a78003 | 3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba | refs/heads/main | 2023-03-29T20:33:10.959529 | 2021-04-10T22:14:11 | 2021-04-10T22:14:11 | 357,185,040 | 4 | 2 | null | 2021-04-12T12:28:09 | 2021-04-12T12:28:08 | null | UTF-8 | Java | false | false | 605 | java | package com.facebook.quicklog.identifiers;
public class Workspeed {
public static final short MODULE_ID = 680;
public static final int STARTUP = 44564481;
public static final int THREADLIST_TO_THREADVIEW = 44564482;
public static final int THREAD_LIST_SCROLL = 44564485;
public static final int THREAD_VIEW_SCROLL = 44564486;
public static String getMarkerName(int i) {
return i != 1 ? i != 2 ? i != 5 ? i != 6 ? "UNDEFINED_QPL_EVENT" : "WORKSPEED_THREAD_VIEW_SCROLL" : "WORKSPEED_THREAD_LIST_SCROLL" : "WORKSPEED_THREADLIST_TO_THREADVIEW" : "WORKSPEED_STARTUP";
}
}
| [
"cyuubiapps@gmail.com"
] | cyuubiapps@gmail.com |
f34a553b6af003a1213fce05fb096c30b6985430 | 1d3dfec04126b1b2488b774ad3bc804961c2a84b | /Practice5A.java | c8d039a0f04c0d652b39b75127ef18a12b9bd527 | [] | no_license | ffmm00/practice | 0d6e93ce4919675b35d5b176fc869e1d50d58317 | 03d95c7c05f32fc7d2b81d05196e699304e9472c | refs/heads/master | 2021-01-21T02:28:07.719985 | 2015-06-18T04:10:30 | 2015-06-18T04:10:30 | 36,558,785 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 842 | java | import java.util.Scanner;
public class Practice5A {
static int Factorial(int n) {
int x = 1;
for (int i = n; i >= 1; i--)
x *= i;
return x;
}
static int GCD(int x, int y) {
while (y != 0) {
int t = y;
y = x % y;
x = t;
}
return x;
}
static int gcdArray(int[] a, int x, int n) {
if (n == 1)
return a[x];
else if (n == 2)
return GCD(a[x], a[x + 1]);
else
return GCD(a[x], gcdArray(a, x + 1, n - 1));
}
public static void main(String[] args) {
Scanner sca = new Scanner(System.in);
int a = sca.nextInt();
// int b = sca.nextInt();
// System.out.println(Factorial(a));
// System.out.println(GCD(a, b));
int[] x = new int[a];
for (int i = 0; i < a; i++)
x[i] = sca.nextInt();
System.out.println(gcdArray(x, 0, a));
}
}
| [
"masamail4210@gmail.com"
] | masamail4210@gmail.com |
8d0f2080d2d24d8736519a4abf6d56d118fb02ad | 430ba6a598f93b61a42b7c34dc1e3c3e243c0861 | /src/cn/hongfeiyu/app/widget/ColumnHorizontalScrollView.java | 44edb08f4ad1f4a76bb2220bc5d840490f474ee0 | [] | no_license | hongfeiyucode/Public_opinion_analysis | d46b0e3dde6269fd102de6bc0bd08c4548ab344b | e2644ae940ad30cec1f8c813a673aed433ccd576 | refs/heads/master | 2021-03-27T17:38:59.795456 | 2016-01-11T07:31:20 | 2016-01-11T07:31:20 | 49,003,229 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,443 | java | package cn.hongfeiyu.app.widget;
import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.HorizontalScrollView;
import android.widget.ImageView;
public class ColumnHorizontalScrollView extends HorizontalScrollView {
/** 传入整体布局 */
private View ll_content;
/** 传入更多栏目选择布局 */
private View ll_more;
/** 传入拖动栏布局 */
private View rl_column;
/** 左阴影图片 */
private ImageView leftImage;
/** 右阴影图片 */
private ImageView rightImage;
/** 屏幕宽度 */
private int mScreenWitdh = 0;
/** 父类的活动activity */
private Activity activity;
public ColumnHorizontalScrollView(Context context) {
super(context);
}
public ColumnHorizontalScrollView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ColumnHorizontalScrollView(Context context, AttributeSet attrs,
int defStyle) {
super(context, attrs, defStyle);
}
/**
* 在拖动的时候执行
* */
// @Override
// protected void onScrollChanged(int paramInt1, int paramInt2, int
// paramInt3,
// int paramInt4) {
// // TODO Auto-generated method stub
// super.onScrollChanged(paramInt1, paramInt2, paramInt3, paramInt4);
// shade_ShowOrHide();
// if (!activity.isFinishing() && ll_content != null && leftImage != null
// && rightImage != null && ll_more != null && rl_column != null) {
// if (ll_content.getWidth() <= mScreenWitdh) {
// leftImage.setVisibility(View.GONE);
// rightImage.setVisibility(View.GONE);
// }
// } else {
// return;
// }
// if (paramInt1 == 0) {
// leftImage.setVisibility(View.GONE);
// rightImage.setVisibility(View.VISIBLE);
// return;
// }
// if (ll_content.getWidth() - paramInt1 + ll_more.getWidth()
// + rl_column.getLeft() == mScreenWitdh) {
// leftImage.setVisibility(View.VISIBLE);
// rightImage.setVisibility(View.GONE);
// return;
// }
// leftImage.setVisibility(View.VISIBLE);
// }
/**
* 传入父类布局中的资源文件
* */
// public void setParam(Activity activity, int mScreenWitdh, View
// paramView1,
// ImageView paramView2, ImageView paramView3, View paramView4,
// View paramView5) {
// this.activity = activity;
// this.mScreenWitdh = mScreenWitdh;
// ll_content = paramView1;
// leftImage = paramView2;
// rightImage = paramView3;
// ll_more = paramView4;
// rl_column = paramView5;
// }
/**
* 判断左右阴影的显示隐藏效果
* */
// public void shade_ShowOrHide() {
// if (!activity.isFinishing() && ll_content != null) {
// measure(0, 0);
// // 如果整体宽度小于屏幕宽度的话,那左右阴影都隐藏
// if (mScreenWitdh >= getMeasuredWidth()) {
// leftImage.setVisibility(View.GONE);
// rightImage.setVisibility(View.GONE);
// }
// } else {
// return;
// }
// // 如果滑动在最左边时候,左边阴影隐藏,右边显示
// if (getLeft() == 0) {
// leftImage.setVisibility(View.GONE);
// rightImage.setVisibility(View.VISIBLE);
// return;
// }
// // 如果滑动在最右边时候,左边阴影显示,右边隐藏
// if (getRight() == getMeasuredWidth() - mScreenWitdh) {
// leftImage.setVisibility(View.VISIBLE);
// rightImage.setVisibility(View.GONE);
// return;
// }
// // 否则,说明在中间位置,左、右阴影都显示
// leftImage.setVisibility(View.VISIBLE);
// rightImage.setVisibility(View.VISIBLE);
// }
} | [
"1159160439@qq.com"
] | 1159160439@qq.com |
fe70df6159d84c7c0a03cf93180f325b0a0d4254 | c9eea931a2e18446152c8869ca1e37f60246d3de | /src/com/qqmaster/com/concurrent/thread/InterThreadCommunicationDemos.java | 7e45a5929c7286a834de3cb495fe60572f9d9d64 | [] | no_license | MasterQuan/interview | 6abdf1f86080bae9e7452e376981d66cc323189e | f0a2df58ed25bc5d3ef81db231d8bcaf0f8de353 | refs/heads/master | 2021-09-07T16:23:19.311385 | 2018-02-26T03:34:31 | 2018-02-26T03:34:31 | 113,296,635 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,468 | java | package com.qqmaster.com.concurrent.thread;
import java.util.Date;
import java.util.LinkedList;
import java.util.concurrent.locks.ReentrantLock;
public class InterThreadCommunicationDemos {
// public static void main(String[] args) {
// SynchronizedDemos sdm1 = new SynchronizedDemos();
// SynchronizedDemos sdm2 = new SynchronizedDemos();
//
// Thread t1 =new Thread(()->{
//// sdm1.synchronizedDemo1();
// sdm1.synchronizedDemo2();
//// sdm1.synchronizedDemo3();
// });
//
// Thread t2 =new Thread(()->{
//// sdm2.synchronizedDemo1();
// sdm2.synchronizedDemo2();
//// sdm1.synchronizedDemo3();
// });
//
// t1.start();
// t2.start();
//
// }
// public static void main(String[] args) throws InterruptedException {
// WaitAndNotifyDemos blockQueue = new WaitAndNotifyDemos();
// Thread t1 = new Thread(()->{
// for(int i = 1; i<=15; i++){
// try {
// blockQueue.push(i);
// System.out.println("push " + i);
// Thread.sleep(500);
// } catch (InterruptedException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
// }
// });
//
// Thread t2 = new Thread(()->{
// for(int i = 1; i <=10; i++){
// try {
// System.out.println("pop " + blockQueue.pop());
// Thread.sleep(1500);
// } catch (InterruptedException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
// }
// });
//
// t1.start();
// t2.start();
// }
public static void main(String[] args) {
}
}
class ReentrantLockDemos{
ReentrantLock lock1 = new ReentrantLock();
ReentrantLock lock2 = new ReentrantLock(true);
}
class SynchronizedDemos{
private int index = 0;
private static int index2 = 0;
//non-static synchronized method, lock the 'this' Object.
public synchronized void synchronizedDemo1(){
index ++;
System.out.println(new Date().getTime() + ":" + Thread.currentThread().getName()
+ "--index : " + index);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
//static synchronized method, lock the Class
public static synchronized void synchronizedDemo2(){
index2 ++;
System.out.println(new Date().getTime() + ":" + Thread.currentThread().getName()
+ "--index2 : " + index2);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public void synchronizedDemo3(){
//synchronized block, lock the 'this' Object
synchronized (this) {
index ++;
System.out.println(new Date().getTime() + ":" + Thread.currentThread().getName()
+ "--synchronized block methods and index : " + index);
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
class WaitAndNotifyDemos{
private LinkedList<Integer> queue = new LinkedList<>();
private final int capacity = 10;
private final int empty = 0;
public synchronized void push(int num) throws InterruptedException{
if(queue.size() >= capacity){
this.wait();
}
if(queue.size() == empty){
this.notifyAll();
}
this.queue.addFirst(num);
}
public synchronized int pop() throws InterruptedException{
if(queue.size() == empty){
this.wait();
}
if(queue.size() < capacity){
this.notifyAll();
}
return this.queue.removeLast();
}
}
class VolatileDemos{
} | [
"zhaoshiquan@nonobank.com"
] | zhaoshiquan@nonobank.com |
640ceb726fb6dc6d2274413920be339a1785d45c | b1fee46b721f670775a8ef92f544130999435d82 | /CSE148 L6 Polymorphism abstract deep copy constructor/src/instanceofPackage/Demo.java | 1112058b115a9fa471300f6cdd16e21784abd7ae | [] | no_license | sturr75/CSE148 | c6b7babad15c845ee3b7719d288dcf6c2c09c6d9 | cec828c26d85bc3bb629f3120a77acb1d97d8648 | refs/heads/master | 2020-03-16T06:00:12.432835 | 2018-05-07T19:51:21 | 2018-05-07T19:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 495 | java | package instanceofPackage;
public class Demo {
public static void main(String[] args) {
Pet p1 = new Pet("Buddy");
Cat c1 = new Cat("Adam", 5);
Cat c2 = new Cat("Bill");
Dog d1 = new Dog("Julie", "Golden");
Dog d2 = new Dog("Zack");
// polymorphism
Pet c3 = new Cat("Bo", 3);
Pet d3 = new Dog("Joe", "Mixed");
Pet p3 = new Pet("Judy");
System.out.println(c3 instanceof Cat);
}
private static void show(Pet x) {
System.out.println("My animal is: " + x);
}
}
| [
"chenb@sunysuffolk.edu"
] | chenb@sunysuffolk.edu |
2283140abf84e56b5f62601741060c0014f71639 | a45c7934cd34abed40f43b06a981deb6d32f1152 | /taskplatform/src/main/java/com/magicube/framework/upms/dao/model/UpmsUserPermissionExample.java | 1fc5607d56ed30c4c67638045a2f36493ecdd4ec | [] | no_license | xingkongdengxia/taskplatform | 97e925dd09d42538b3cc37939464c4b7d1a5eb4d | c80f3e95d8870aad2e1ed8f58afa239e6871df54 | refs/heads/master | 2022-12-26T10:27:58.003410 | 2019-07-15T05:30:42 | 2019-07-15T05:30:42 | 196,919,695 | 0 | 1 | null | 2022-12-16T11:53:59 | 2019-07-15T03:48:05 | Java | UTF-8 | Java | false | false | 13,803 | java | package com.magicube.framework.upms.dao.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author justincai
*/
public class UpmsUserPermissionExample implements Serializable {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
private static final long serialVersionUID = 1L;
public UpmsUserPermissionExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.isEmpty()) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria implements Serializable {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUserPermissionIdIsNull() {
addCriterion("user_permission_id is null");
return (Criteria) this;
}
public Criteria andUserPermissionIdIsNotNull() {
addCriterion("user_permission_id is not null");
return (Criteria) this;
}
public Criteria andUserPermissionIdEqualTo(Integer value) {
addCriterion("user_permission_id =", value, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdNotEqualTo(Integer value) {
addCriterion("user_permission_id <>", value, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdGreaterThan(Integer value) {
addCriterion("user_permission_id >", value, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdGreaterThanOrEqualTo(Integer value) {
addCriterion("user_permission_id >=", value, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdLessThan(Integer value) {
addCriterion("user_permission_id <", value, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdLessThanOrEqualTo(Integer value) {
addCriterion("user_permission_id <=", value, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdIn(List<Integer> values) {
addCriterion("user_permission_id in", values, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdNotIn(List<Integer> values) {
addCriterion("user_permission_id not in", values, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdBetween(Integer value1, Integer value2) {
addCriterion("user_permission_id between", value1, value2, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserPermissionIdNotBetween(Integer value1, Integer value2) {
addCriterion("user_permission_id not between", value1, value2, "userPermissionId");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Integer value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Integer value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Integer value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Integer value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Integer value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Integer> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Integer> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Integer value1, Integer value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andPermissionIdIsNull() {
addCriterion("permission_id is null");
return (Criteria) this;
}
public Criteria andPermissionIdIsNotNull() {
addCriterion("permission_id is not null");
return (Criteria) this;
}
public Criteria andPermissionIdEqualTo(Integer value) {
addCriterion("permission_id =", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdNotEqualTo(Integer value) {
addCriterion("permission_id <>", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdGreaterThan(Integer value) {
addCriterion("permission_id >", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdGreaterThanOrEqualTo(Integer value) {
addCriterion("permission_id >=", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdLessThan(Integer value) {
addCriterion("permission_id <", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdLessThanOrEqualTo(Integer value) {
addCriterion("permission_id <=", value, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdIn(List<Integer> values) {
addCriterion("permission_id in", values, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdNotIn(List<Integer> values) {
addCriterion("permission_id not in", values, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdBetween(Integer value1, Integer value2) {
addCriterion("permission_id between", value1, value2, "permissionId");
return (Criteria) this;
}
public Criteria andPermissionIdNotBetween(Integer value1, Integer value2) {
addCriterion("permission_id not between", value1, value2, "permissionId");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria implements Serializable {
protected Criteria() {
super();
}
}
public static class Criterion implements Serializable {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
| [
"15538659433@163.com"
] | 15538659433@163.com |
65574c5572c8fd6d8ee6a76b8ce59f3b3969374b | eb814b0c4221051127e8641f90ab234c95862be6 | /yucca-java/src/main/java/edu/uci/ics/crawler4j/frontier/Frontier.java | 9550413dd699793ad392f380df787216928f8fac | [] | no_license | tchesa/yucca | de97896b27f0657b98eb9162dcdfb6dbb71cb023 | fd3d8b60e44377f04617653092f8453462053be7 | refs/heads/master | 2020-03-13T23:10:24.457704 | 2018-07-22T15:05:50 | 2018-07-22T15:05:50 | 131,330,189 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,371 | 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 edu.uci.ics.crawler4j.frontier;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.Environment;
import edu.uci.ics.crawler4j.crawler.Configurable;
import edu.uci.ics.crawler4j.crawler.CrawlConfig;
import edu.uci.ics.crawler4j.url.WebURL;
/**
* @author Yasser Ganjisaffar
*/
public class Frontier extends Configurable {
protected static final Logger logger = LoggerFactory.getLogger(Frontier.class);
private long inicialTime;
private static final String DATABASE_NAME = "PendingURLsDB";
private static final int IN_PROCESS_RESCHEDULE_BATCH_SIZE = 100;
protected WorkQueues workQueues;
protected InProcessPagesDB inProcessPages;
protected final Object mutex = new Object();
protected final Object waitingList = new Object();
protected boolean isFinished = false;
protected long scheduledPages;
protected Counters counters;
public Frontier(Environment env, CrawlConfig config) {
super(config);
inicialTime = System.currentTimeMillis();
this.counters = new Counters(env, config);
try {
workQueues = new WorkQueues(env, DATABASE_NAME, config.isResumableCrawling());
if (config.isResumableCrawling()) {
scheduledPages = counters.getValue(Counters.ReservedCounterNames.SCHEDULED_PAGES);
inProcessPages = new InProcessPagesDB(env);
long numPreviouslyInProcessPages = inProcessPages.getLength();
if (numPreviouslyInProcessPages > 0) {
logger.info("Rescheduling {} URLs from previous crawl.", numPreviouslyInProcessPages);
scheduledPages -= numPreviouslyInProcessPages;
List<WebURL> urls = inProcessPages.get(IN_PROCESS_RESCHEDULE_BATCH_SIZE);
while (!urls.isEmpty()) {
scheduleAll(urls);
inProcessPages.delete(urls.size());
urls = inProcessPages.get(IN_PROCESS_RESCHEDULE_BATCH_SIZE);
}
}
} else {
inProcessPages = null;
scheduledPages = 0;
}
} catch (DatabaseException e) {
logger.error("Error while initializing the Frontier", e);
workQueues = null;
}
}
public void scheduleAll(List<WebURL> urls) {
int maxPagesToFetch = config.getMaxPagesToFetch();
synchronized (mutex) {
int newScheduledPage = 0;
for (WebURL url : urls) {
if ((maxPagesToFetch > 0) && ((scheduledPages + newScheduledPage) >= maxPagesToFetch)) {
break;
}
try {
workQueues.put(url);
newScheduledPage++;
} catch (DatabaseException e) {
logger.error("Error while putting the url in the work queue", e);
}
}
if (newScheduledPage > 0) {
scheduledPages += newScheduledPage;
counters.increment(Counters.ReservedCounterNames.SCHEDULED_PAGES, newScheduledPage);
}
synchronized (waitingList) {
waitingList.notifyAll();
}
}
}
public void schedule(WebURL url) {
int maxPagesToFetch = config.getMaxPagesToFetch();
synchronized (mutex) {
try {
if (maxPagesToFetch < 0 || scheduledPages < maxPagesToFetch) {
workQueues.put(url);
scheduledPages++;
counters.increment(Counters.ReservedCounterNames.SCHEDULED_PAGES);
}
} catch (DatabaseException e) {
logger.error("Error while putting the url in the work queue", e);
}
}
}
public void getNextURLs(int max, List<WebURL> result) {
while (true) {
synchronized (mutex) {
if (isFinished) {
return;
}
try {
List<WebURL> curResults = workQueues.get(max);
workQueues.delete(curResults.size());
if (inProcessPages != null) {
for (WebURL curPage : curResults) {
inProcessPages.put(curPage);
}
}
result.addAll(curResults);
} catch (DatabaseException e) {
logger.error("Error while getting next urls", e);
}
if (result.size() > 0) {
return;
}
}
try {
synchronized (waitingList) {
waitingList.wait();
}
} catch (InterruptedException ignored) {
// Do nothing
}
if (isFinished) {
return;
}
}
}
public void setProcessed(WebURL webURL) {
counters.increment(Counters.ReservedCounterNames.PROCESSED_PAGES);
if (inProcessPages != null) {
if (!inProcessPages.removeURL(webURL)) {
logger.warn("Could not remove: {} from list of processed pages.", webURL.getURL());
}
}
}
public long getQueueLength() {
return workQueues.getLength();
}
public long getNumberOfAssignedPages() {
return inProcessPages.getLength();
}
public long getNumberOfProcessedPages() {
return counters.getValue(Counters.ReservedCounterNames.PROCESSED_PAGES);
}
public boolean isFinished() {
return isFinished;
}
public void close() {
workQueues.close();
counters.close();
if (inProcessPages != null) {
inProcessPages.close();
}
}
public void finish() {
isFinished = true;
logger.info("Fontier has finished with "+(System.currentTimeMillis()-inicialTime)+" millis");
synchronized (waitingList) {
waitingList.notifyAll();
}
}
} | [
"cesarolimpio@gmail.com"
] | cesarolimpio@gmail.com |
11284afa2150f6a3fc8d53ad6313ccfcbc900f71 | 29bf5a32323ee0ad50fc3ea729b5e2867853ab28 | /app/src/main/java/com/garrar/user/app/data/network/model/Message.java | 716b45acc5a64d7131ae011794402ecc1784236b | [] | no_license | infitac/Garrar-Android-User | 94878da1c76da43a3981ee24a84cd38beab7fe08 | 9650192d0ad9de7bc191004b7c54c5030df5e69f | refs/heads/main | 2023-02-21T19:51:49.580302 | 2021-01-27T10:19:00 | 2021-01-27T10:19:00 | 333,373,863 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 404 | java | package com.garrar.user.app.data.network.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Message {
@SerializedName("message")
@Expose
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
| [
"asterisminfosoft@gmail.com"
] | asterisminfosoft@gmail.com |
03f34e6442f495952c63e0b6cd95a2233a3d2664 | bae148aa135f75996b3ec68d4aee121132cc6e1a | /src/com/class9/Task1.java | 5943ff60778a422e1e8923ab4721a233c40c0610 | [] | no_license | uddhab22/ud-22 | 8df5588b1e5d9a9689ec4434e5e062eb883a80ec | 02e6389605365574f3701e7d82620de50c960b91 | refs/heads/master | 2020-08-24T19:24:48.826753 | 2019-12-14T15:55:14 | 2019-12-14T15:55:14 | 216,890,552 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 282 | java | package com.class9;
public class Task1 {
public static void main(String[] args) {
/*
* 55555
* 4444
* 333
* 22
* 1
*/
for (int x=5; x>0; x-- ) {
for (int y=1; y<=x; y++ ) {
System.out.print(x);
}
System.out.println();
}
}
}
| [
"rijal.uddhab100@gmail.com"
] | rijal.uddhab100@gmail.com |
dedd46c231eed1a7e49f87a8e5f1c5c7101f97a3 | 82328932b0a8abb884fadf4aeb0147d3bdfde60d | /src/main/java/co/com/ceiba/adn/parking/domain/exception/ExceptionEntryExist.java | 69aa50bd38e0fac01b04daa0c0fd5e2f001055c9 | [] | no_license | evergara/Ceiba-Estacionamiento | a4c97e48f4d508e48d1db7faa3a19608d847447e | 25e05fa51cdc9c1b52ecb7f10d92fd4017cee252 | refs/heads/master | 2020-06-11T12:18:14.284239 | 2019-06-18T21:42:36 | 2019-06-18T21:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 233 | java | package co.com.ceiba.adn.parking.domain.exception;
public class ExceptionEntryExist extends RuntimeException {
private static final long serialVersionUID = 1L;
public ExceptionEntryExist(String message) {
super(message);
}
}
| [
"william.santos@ceiba.com.co"
] | william.santos@ceiba.com.co |
7f3321bc3399147882f31d3631c558ff1ac88648 | eaf5ee951f3ec7c07d008125d768209e61759cba | /app/src/main/java/com/dominic/googleplay/adapter/RecommendAdapter.java | 44b36f9a4ece866dfaae1aa8302c4741fe483a26 | [] | no_license | zhangqqqf/GooglePlay | 3fb17d946d4422937893f5d075fd048f11df0a9c | a53b57dba42f7f4117921e6300b6b8202c3c6285 | refs/heads/master | 2021-01-19T20:05:34.916608 | 2017-02-23T07:06:55 | 2017-02-23T07:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,464 | java | package com.dominic.googleplay.adapter;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.widget.TextView;
import com.dominic.googleplay.widget.StellarMap;
import java.util.List;
import java.util.Random;
/**
* Created by Dominic on 2017/2/16.
*/
public class RecommendAdapter implements StellarMap.Adapter {
private final Context mContext;
private final List<String> mDataList;
private final int PAGER_SIZE = 15;
private Random mRandom = new Random();
public RecommendAdapter(Context context, List<String> dataList) {
mContext = context;
mDataList = dataList;
}
/*
* 返回页面的个数
* */
@Override
public int getGroupCount() {
return PAGER_SIZE;
}
/*
* 每个页面条目的个数
* @param group 当下组的下标
* */
@Override
public int getCount(int group) {
if (mDataList.size() % PAGER_SIZE != 0) {
if (group == getGroupCount() - 1) {
return mDataList.size() % PAGER_SIZE;
}
}
return PAGER_SIZE;
}
/*
* 每个条目的视图
* */
@Override
public View getView(int group, int position, View convertView) {
TextView textView = null;
if (convertView == null) {
textView = new TextView(mContext);
} else {
textView = (TextView) convertView;
}
String s = mDataList.get(position);
textView.setText(s);
textView.setTextColor(getRandomColor());
textView.setTextSize(mRandom.nextInt(4) + 14);
return textView;
}
@Override
public int getNextGroupOnPan(int group, float degree) {
return 0;
}
/**
* 返回放大或者缩小下一组的下标
*
* @param group 当前组的下标
* @param isZoomIn true表示放大,false表示缩小
*/
@Override
public int getNextGroupOnZoom(int group, boolean isZoomIn) {
if (isZoomIn) {
return (group + 1) % getGroupCount();
} else {
return (group - 1 + getGroupCount()) % getGroupCount();
}
}
private int getRandomColor() {
int alpha = 250;
int red = 30 + mRandom.nextInt(190);
int green = 30 + mRandom.nextInt(190);
int blue = 30 + mRandom.nextInt(190);
;
return Color.argb(alpha, red, green, blue);
}
}
| [
"258805405@qq.com"
] | 258805405@qq.com |
8c424e4e57fcdd219ecdaf6ead5acb596489f867 | fbeb12267568c137919a8349107922d89bc4b477 | /src/main/java/com/arep/webpage/service/WebPageService.java | 4b29d5496a421643ae75b0e2eccc2561a14fc020 | [] | no_license | GrCross/DisponibilidadDesempe-o | 22f9db1afd762a302629777cb870de6a56eb92e2 | 234081a9353568a20bf9331ea7f4e7ec4477671e | refs/heads/master | 2022-04-30T01:30:35.134763 | 2019-11-19T06:10:35 | 2019-11-19T06:10:35 | 219,258,431 | 0 | 0 | null | 2022-03-31T18:56:52 | 2019-11-03T05:57:27 | Java | UTF-8 | Java | false | false | 333 | java | package com.arep.webpage.service;
import com.arep.webpage.model.Text;
import java.util.List;
import java.util.Map;
/**
* La clase SchiNotesService representa los servicios que se pueden ofrecer.
*/
public interface WebPageService {
public Map<String,Integer> consultarFrecuenciaPalabras(Text text);
}
| [
"rosalesdaniel350@gmail.com"
] | rosalesdaniel350@gmail.com |
c86d85c5dc8d18a97ae7c976537daa9440e4fd8e | 1d6088d853191f5769aa91c80e247219a4c4ac76 | /sleemon/src/java/com/hoperun/erp/sale/marketing/model/MarketCardModel.java | a46e35ecefddcfcb561a6aa885051d08c6180cb4 | [] | no_license | WangPengTao1314/StrutsMVC | 8c6bead4e3695e715b4bb0aff982056482b7d35f | 464d2b93ef20c70d058361fa4ce60f4392d21c47 | refs/heads/master | 2020-05-01T02:44:26.908103 | 2019-03-23T01:03:50 | 2019-03-23T01:03:50 | 177,227,349 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,039 | java | package com.hoperun.erp.sale.marketing.model;
/**
* 营销活动卡券
* @author zhang_zhongbin
*
*/
public class MarketCardModel {
/** 营销卡卷ID **/
private String MARKETING_CARD_ID;
/** 营销卡卷编号 **/
private String MARKETING_CARD_NO;
/** 卡卷类型 **/
private String CARD_TYPE;
/** 卡卷面值 **/
private String CARD_VALUE;
/** 创建时间 **/
private String CRE_TIME;
/** 卡券序号 **/
private String CARD_SEQ_NO;
/** 状态 **/
private String STATE;
/** 删除标记 **/
private String DEL_FLAG;
/** 营销活动ID **/
private String MARKETING_ACT_ID;
/**卡券数量 **/
private String CARD_NUM;
public String getMARKETING_CARD_ID() {
return MARKETING_CARD_ID;
}
public void setMARKETING_CARD_ID(String mARKETINGCARDID) {
MARKETING_CARD_ID = mARKETINGCARDID;
}
public String getMARKETING_CARD_NO() {
return MARKETING_CARD_NO;
}
public void setMARKETING_CARD_NO(String mARKETINGCARDNO) {
MARKETING_CARD_NO = mARKETINGCARDNO;
}
public String getCARD_TYPE() {
return CARD_TYPE;
}
public void setCARD_TYPE(String cARDTYPE) {
CARD_TYPE = cARDTYPE;
}
public String getCARD_VALUE() {
return CARD_VALUE;
}
public void setCARD_VALUE(String cARDVALUE) {
CARD_VALUE = cARDVALUE;
}
public String getCRE_TIME() {
return CRE_TIME;
}
public void setCRE_TIME(String cRETIME) {
CRE_TIME = cRETIME;
}
public String getCARD_SEQ_NO() {
return CARD_SEQ_NO;
}
public void setCARD_SEQ_NO(String cARDSEQNO) {
CARD_SEQ_NO = cARDSEQNO;
}
public String getSTATE() {
return STATE;
}
public void setSTATE(String sTATE) {
STATE = sTATE;
}
public String getDEL_FLAG() {
return DEL_FLAG;
}
public void setDEL_FLAG(String dELFLAG) {
DEL_FLAG = dELFLAG;
}
public String getMARKETING_ACT_ID() {
return MARKETING_ACT_ID;
}
public void setMARKETING_ACT_ID(String mARKETINGACTID) {
MARKETING_ACT_ID = mARKETINGACTID;
}
public String getCARD_NUM() {
return CARD_NUM;
}
public void setCARD_NUM(String cARDNUM) {
CARD_NUM = cARDNUM;
}
}
| [
"wang_pt@centit.com"
] | wang_pt@centit.com |
0be2b9f77b95a7657e28ca15bb51b0a7023e98bb | 896c39c14831c93457476671fdda540a3ef990fa | /apis/openshift/src/model/java/com/marcnuri/yakc/model/io/openshift/operator/v1/KubeAPIServerList.java | 01f04721ce65956992948ec2350ea9aa88e6a7ec | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | manusa/yakc | 341e4b86e7fd4fa298f255c69dd26d7e3e3f3463 | 7e7ac99aa393178b9d0d86db22039a6dada5107c | refs/heads/master | 2023-07-20T04:53:42.421609 | 2023-07-14T10:09:48 | 2023-07-14T10:09:48 | 252,927,434 | 39 | 15 | Apache-2.0 | 2023-07-13T15:01:10 | 2020-04-04T06:37:03 | Java | UTF-8 | Java | false | false | 2,455 | java | /*
* Copyright 2020 Marc Nuri
*
* 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.marcnuri.yakc.model.io.openshift.operator.v1;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.marcnuri.yakc.model.ListModel;
import com.marcnuri.yakc.model.Model;
import com.marcnuri.yakc.model.com.coreos.monitoring.v1.AlertmanagerListMetadata;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Singular;
import lombok.ToString;
/**
* KubeAPIServerList is a list of KubeAPIServer
*/
@SuppressWarnings({"squid:S1192", "WeakerAccess", "unused"})
@Builder(toBuilder = true, builderClassName = "Builder")
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class KubeAPIServerList implements Model, ListModel<KubeAPIServer> {
/**
* APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
@JsonProperty("apiVersion")
private String apiVersion;
/**
* List of kubeapiservers. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
*/
@NonNull
@JsonProperty("items")
@Singular(value = "addToItems", ignoreNullCollections = true)
private List<KubeAPIServer> items;
/**
* Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
@JsonProperty("kind")
private String kind;
@JsonProperty("metadata")
private AlertmanagerListMetadata metadata;
}
| [
"marc@marcnuri.com"
] | marc@marcnuri.com |
cc6f30fba578e989661bb8dfc67e19a30b583b85 | ab664059797dc82540e53a1742a829846f743d9d | /src/main/java/com/example/craily/dao/EmpMapper.java | edf1276e3367d4c794cb50fc4528592c0469896e | [] | no_license | Craily/emp-manager | 7a862855d70fb537eef4be0a2bede02467dae6e4 | 9b7a34a58c4898c65fb0ccdc0a86769f8f8e726b | refs/heads/master | 2022-07-18T04:19:30.497794 | 2019-06-30T08:34:35 | 2019-06-30T08:34:35 | 176,117,532 | 0 | 0 | null | 2022-06-21T00:59:35 | 2019-03-17T15:03:10 | Java | UTF-8 | Java | false | false | 632 | java | package com.example.craily.dao;
import com.example.craily.po.Emp;
import com.example.craily.po.EmpExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface EmpMapper {
long countByExample(EmpExample example);
int deleteByExample(EmpExample example);
int insert(Emp record);
int insertSelective(Emp record);
List<Emp> selectByExample(EmpExample example);
int updateByExampleSelective(@Param("record") Emp record, @Param("example") EmpExample example);
int updateByExample(@Param("record") Emp record, @Param("example") EmpExample example);
} | [
"411292837@qq.com"
] | 411292837@qq.com |
06a502d859904795a494ba880f8b295cbf561d28 | d7cd6bb1ec0325bad884a484a9dd093e9ae86dab | /src/main/java/biodiv/common/SpeciesGroupDao.java | 4be4fe8302e17dca1f9adb63f5b4cb9b323ba8e3 | [
"Apache-2.0"
] | permissive | biodiv-archived/biodiv-api | 4c19324fb3a34e13a83922ccb02a0ee6fc2c4c7d | 34e5b976dc4f0c36256b05f978de7808f234ed9b | refs/heads/master | 2023-02-14T03:57:33.259321 | 2019-10-03T08:50:42 | 2019-10-03T08:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 954 | java | package biodiv.common;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.persistence.Query;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SpeciesGroupDao extends AbstractDao<SpeciesGroup, Long> implements DaoInterface<SpeciesGroup, Long> {
private final Logger log = LoggerFactory.getLogger(getClass());
@Inject
public SpeciesGroupDao(SessionFactory sessionFactory) {
super(sessionFactory);
}
public List<SpeciesGroup> list() {
List<SpeciesGroup> results = new ArrayList<SpeciesGroup>();
Query q;
q = sessionFactory.getCurrentSession().createQuery("from SpeciesGroup where name <> 'All' order by name");
results = q.getResultList();
return results;
}
@Override
public SpeciesGroup findById(Long id) {
SpeciesGroup speciesGroup = sessionFactory.getCurrentSession().get(SpeciesGroup.class, id);
return speciesGroup;
}
} | [
"sravanthi@strandls.com"
] | sravanthi@strandls.com |
9da32044c6532f8461f7f36cbd4ba81bf23173bf | baf3c725b6ee005edbf3bd0aadebf9e77eab994a | /oops-order-service/src/main/java/org/you/oops/order/domain/userorder/repository/mapper/BbcUserAccountMapper.java | 27ced6322b1643299d1bd2e810b24b21c84a5335 | [] | no_license | bondzhan/oops | d2e32fb013f28791cfcb623716bf57fc74784cc6 | 53e8b9f16b5a0e50f8440a917c1338a5e1b5f791 | refs/heads/main | 2023-02-26T18:17:53.565349 | 2021-02-08T09:08:25 | 2021-02-08T09:08:25 | 318,055,509 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,197 | java | package org.you.oops.order.domain.userorder.repository.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.you.oops.order.domain.userorder.repository.po.BbcUserAccountPO;
import org.you.oops.order.domain.userorder.repository.po.BbcUserAccountExample;
public interface BbcUserAccountMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
long countByExample(BbcUserAccountExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int deleteByExample(BbcUserAccountExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int deleteByPrimaryKey(Long fuid);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int insert(BbcUserAccountPO record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int insertSelective(BbcUserAccountPO record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
List<BbcUserAccountPO> selectByExample(BbcUserAccountExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
BbcUserAccountPO selectByPrimaryKey(Long fuid);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int updateByExampleSelective(@Param("record") BbcUserAccountPO record, @Param("example") BbcUserAccountExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int updateByExample(@Param("record") BbcUserAccountPO record, @Param("example") BbcUserAccountExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int updateByPrimaryKeySelective(BbcUserAccountPO record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_bbc_user_account
*
* Tue Jan 26 17:05:51 GMT+08:00 2021
*/
int updateByPrimaryKey(BbcUserAccountPO record);
} | [
"ahead_zhan@163.com"
] | ahead_zhan@163.com |
6bcaa36a7e6a5a4ed8e36a4e1987a273ac4edb7b | 9b7dbf6f43ba30741c3fa7707241de3285aed8ad | /src/java/bean/BoardBean.java | 64918edcdbccd71579e127d313ba93ccbb6a2a25 | [] | no_license | ryosei071245451919/BulletinBoard | d536c95449c16ec6111192342eaa96b003f8514d | e7e0aafb6b879eff99abecef47e07db41c3218cb | refs/heads/master | 2021-08-31T17:25:31.593701 | 2017-12-22T07:33:11 | 2017-12-22T07:33:11 | 114,213,831 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,405 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bean;
import ejb.BulletinBoardFacade;
import ejb.ResponseFacade;
import entity.BulletinBoard;
import entity.Response;
import entity.ResponsePK;
import entity.UserData;
import java.text.ParseException;
import java.text.SimpleDateFormat;
//import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.*;
/**
*
* @author st20153208
*/
@Named(value = "bb")
//@SessionScoped
// implements Serializable
@RequestScoped
public class BoardBean{
private String threadId;
private String title;
private String deleteKey;
private UserData ud;
private String userId;
private List<BulletinBoard> list;
private BulletinBoard td;
private String comment;
private List<Response> resList;
private String responsId;
@EJB
BulletinBoardFacade db;
@EJB
ResponseFacade rf;
public String next(){
create();
return null;
}
public void create(){
Date d = new Date();
SimpleDateFormat d1 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
String postDate = d1.format(d);
try {
d = d1.parse(postDate);
} catch (ParseException ex) {
Logger.getLogger(BoardBean.class.getName()).log(Level.SEVERE, null, ex);
}
UserData uData = new UserData();
uData.setUserId(userId);
BulletinBoard bubo = new BulletinBoard(threadId,title,deleteKey,d,uData);
try{
db.create(bubo);
clear();
}catch(Exception e){
System.out.println(e);
}
}
public String next2(){
create2();
return null;
}
public void create2(){
Date d = new Date();
Date d2 = new Date();
SimpleDateFormat d1 = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
SimpleDateFormat d3 = new SimpleDateFormat("dHms");
String postDate = d1.format(d);
String postDate2 = d3.format(d);
try {
d = d1.parse(postDate);
d2 = d3.parse(postDate2);
System.out.println("d : "+d);
System.out.println("d2 : "+d2);
} catch (ParseException ex) {
Logger.getLogger(BoardBean.class.getName()).log(Level.SEVERE, null, ex);
}
UserData uData = new UserData();
uData.setUserId(userId);
Response res = new Response();
ResponsePK resPK = new ResponsePK();
resPK.setThreadId("thr"+d2);
resPK.setResponseId("res"+d2);
res.setResponsePK(resPK);
res.setComment(comment);
res.setPostDate(d);
res.setUserId(uData);
try{
rf.create(res);
clear();
}catch(Exception e){
System.out.println(e);
}
}
public void clear(){
threadId = null;
title = null;
deleteKey = null;
userId = null;
comment = null;
}
public List<BulletinBoard> getAllBulletinBoard(){
return db.findAll();
}
public List<Response> getAllResponse(String threadId){
return rf.findByThreadId(threadId);
}
public String detail(BulletinBoard bb){
td = db.finddetail(bb.getThreadId());
resList = getAllResponse(bb.getThreadId());
return "threaddetails.xhtml";
}
public String getThreadId() {
return threadId;
}
public void setThreadId(String threadId) {
this.threadId = threadId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDeleteKey() {
return deleteKey;
}
public void setDeleteKey(String deleteKey) {
this.deleteKey = deleteKey;
}
public List<BulletinBoard> getList() {
return list;
}
public void setList(List<BulletinBoard> list) {
this.list = list;
}
public UserData getUd() {
return ud;
}
public void setUd(UserData ud) {
this.ud=ud;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public BulletinBoard getTd() {
return td;
}
public void setTd(BulletinBoard td) {
this.td = td;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public List<Response> getResList() {
return resList;
}
public void setResList(List<Response> resList) {
this.resList = resList;
}
public String getResponsId() {
return responsId;
}
public void setResponsId(String responsId) {
this.responsId = responsId;
}
}
| [
"st20153208@202NEC-014.ghost.kcsnet.local"
] | st20153208@202NEC-014.ghost.kcsnet.local |
5754ba464f1e8b5b2a16f7c3b308cd25675da016 | 9113b51e69769d68a0c63efb762fe8b3dae56f7a | /src/dashfx/controls/Scheduler.java | 15c90ecb1d1c7f785bb364e7c1c150d28e8a27ab | [] | no_license | wpilibsuite/sfxlib | b33f6c97799bdebee0640e843f4ed4958c881ad9 | dc109aaacf6220e39960824891c0f98bb25c04de | refs/heads/master | 2020-06-13T18:19:13.436984 | 2015-01-11T16:16:51 | 2015-01-11T16:16:51 | 75,569,809 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,145 | java | /*
* Copyright (C) 2013 patrick
*
* 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 dashfx.controls;
import dashfx.lib.controls.Category;
import dashfx.lib.controls.DashFXProperties;
import dashfx.lib.controls.Designable;
import dashfx.lib.controls.GroupType;
import dashfx.lib.data.DataCoreProvider;
import dashfx.lib.data.DataPaneMode;
import dashfx.lib.data.SmartValue;
import dashfx.lib.data.values.ArraySmartValue;
import javafx.beans.value.*;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
/**
*
* @author patrick
*/
@Category("General")
@Designable(value = "Scheduler", description = "The Command Scheduler", image = "/dashfx/controls/res/scheduler.png")
@GroupType("Scheduler")
@DashFXProperties("Sealed: true, Save Children: false")
public class Scheduler extends DataVBox
{
SmartValue names, ids, canceller;
Label lbl = new Label();
private ChangeListener namesChanged = new ChangeListener()
{
@Override
public void changed(ObservableValue ov, Object t, Object t1)
{
rebuild(false); //TODO: be more granular
}
};
private ChangeListener idsChanged = namesChanged;
public Scheduler()
{
// UI setup
lbl.setMaxWidth(Double.MAX_VALUE);
lbl.setText("Running Commands");
lbl.setFont(Font.font("System", 16.0));
VBox.setMargin(lbl, new Insets(6.0, 6.0, 6.0, 12.0));
ui.setPrefHeight(250);
//Data
setDataMode(DataPaneMode.Nested);
nameProperty().addListener(new ChangeListener<String>()
{
@Override
public void changed(ObservableValue<? extends String> ov, String t, String t1)
{
unregister();
try
{
names = getObservable("Names");
ids = getObservable("Ids");
canceller = getObservable("Cancel");
rebuild(true);
}
catch(NullPointerException n)
{
//fail, ignore
}
}
});
}
@Override
public void registered(DataCoreProvider provider)
{
super.registered(provider); //To change body of generated methods, choose Tools | Templates.
unregister();
if (provider != null)
{
names = getObservable("Names");
ids = getObservable("Ids");
canceller = getObservable("Cancel");
rebuild(true);
}
}
private void unregister()
{
if (names != null)
names.removeListener(namesChanged);
if (ids != null)
ids.removeListener(idsChanged);
}
private void rebuild(boolean register)
{
if (register)
{
names.addListener(namesChanged);
ids.addListener(idsChanged);
}
getChildren().clear();
getChildren().add(lbl);
ObservableList nay = names.getData().asArray();
ObservableList iay = ids.getData().asArray();
int times = Math.max(nay.size(), iay.size());
if (times == 0)
{
lbl.setText("No Running Commands");
}
else
{
lbl.setText("Running Commands");
}
for (int i = 0; i < times; i++)
{
getChildren().add(new CommandLister(i < nay.size() ? nay.get(i).toString() : "", i < iay.size() ? iay.get(i) : null, (i % 2 == 0) ? true:false));
}
}
private class CommandLister extends HBox
{
String name;
Object id;
Label lbll;
ImageView iv = new ImageView();
private CommandLister(String name, Object id, boolean striped)
{
this.name = name;
this.id = id;
setAlignment(Pos.CENTER_LEFT);
setPadding(new Insets(0, 6, 0, 6));
lbll = new Label(name);
lbll.setMaxWidth(Double.MAX_VALUE);
HBox.setHgrow(lbll, Priority.ALWAYS);
iv.setFitHeight(32.0);
iv.setFitWidth(32.0);
iv.setImage(new Image(getClass().getResourceAsStream("/dashfx/controls/res/media-playback-stop.png")));
if (striped)
{
setStyle("-fx-background-color: #eee");
}
getChildren().add(lbll);
if (id instanceof Double)
{
getChildren().add(iv);
final double lid = (Double) id;
iv.setOnMouseClicked(new EventHandler<MouseEvent>()
{
@Override
public void handle(MouseEvent t)
{
ObservableList cc = canceller.getData().asArray();
Object[] oo = cc.toArray();
cc = FXCollections.observableArrayList(oo);
cc.add(lid);//TODO: dont hack this. ATM this needs to be not the same object, or it fails to update
canceller.setData(new ArraySmartValue(cc));
}
});
}
}
}
}
| [
"simonpatp@gmail.com"
] | simonpatp@gmail.com |
5b20ef41655efa52067807dbb6ca14db9aec6ead | 037637a2c0d177362285e0608d4f4f00dc4cfce9 | /components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkCamelUtils.java | 3973d66935cbc3ebb712a15696b1e4c624b5c8f0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dmgerman/camel | 07379b6a1d191078b085b62bbb0a6732141994aa | cab53c57b3e58871df1f96d54b2a2ad5a73ce220 | refs/heads/master | 2023-01-03T23:00:15.190787 | 2019-12-20T08:30:29 | 2019-12-20T08:30:29 | 230,528,998 | 0 | 0 | Apache-2.0 | 2023-01-02T22:14:35 | 2019-12-27T22:50:51 | Java | UTF-8 | Java | false | false | 9,922 | java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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. */
end_comment
begin_package
DECL|package|org.apache.camel.component.robotframework
package|package
name|org
operator|.
name|apache
operator|.
name|camel
operator|.
name|component
operator|.
name|robotframework
package|;
end_package
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|ArrayList
import|;
end_import
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|List
import|;
end_import
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|Map
import|;
end_import
begin_import
import|import
name|org
operator|.
name|apache
operator|.
name|camel
operator|.
name|Exchange
import|;
end_import
begin_import
import|import
name|org
operator|.
name|apache
operator|.
name|camel
operator|.
name|NoTypeConversionAvailableException
import|;
end_import
begin_import
import|import
name|org
operator|.
name|apache
operator|.
name|camel
operator|.
name|TypeConversionException
import|;
end_import
begin_import
import|import
name|org
operator|.
name|apache
operator|.
name|camel
operator|.
name|support
operator|.
name|ExchangeHelper
import|;
end_import
begin_import
import|import
name|org
operator|.
name|apache
operator|.
name|camel
operator|.
name|util
operator|.
name|ObjectHelper
import|;
end_import
begin_class
DECL|class|RobotFrameworkCamelUtils
specifier|public
specifier|final
class|class
name|RobotFrameworkCamelUtils
block|{
DECL|field|ROBOT_CAMEL_EXCHANGE_NAME
specifier|private
specifier|static
specifier|final
name|String
name|ROBOT_CAMEL_EXCHANGE_NAME
init|=
literal|"exchange"
decl_stmt|;
DECL|field|ROBOT_VAR_CAMEL_BODY
specifier|private
specifier|static
specifier|final
name|String
name|ROBOT_VAR_CAMEL_BODY
init|=
literal|"body"
decl_stmt|;
DECL|field|ROBOT_VAR_CAMEL_HEADERS
specifier|private
specifier|static
specifier|final
name|String
name|ROBOT_VAR_CAMEL_HEADERS
init|=
literal|"headers"
decl_stmt|;
DECL|field|ROBOT_VAR_CAMEL_PROPERTIES
specifier|private
specifier|static
specifier|final
name|String
name|ROBOT_VAR_CAMEL_PROPERTIES
init|=
literal|"properties"
decl_stmt|;
DECL|field|ROBOT_VAR_FIELD_SEPERATOR
specifier|private
specifier|static
specifier|final
name|String
name|ROBOT_VAR_FIELD_SEPERATOR
init|=
literal|":"
decl_stmt|;
DECL|field|ROBOT_VAR_NESTING_SEPERATOR
specifier|private
specifier|static
specifier|final
name|String
name|ROBOT_VAR_NESTING_SEPERATOR
init|=
literal|"."
decl_stmt|;
comment|/** * Utility classes should not have a public constructor. */
DECL|method|RobotFrameworkCamelUtils ()
specifier|private
name|RobotFrameworkCamelUtils
parameter_list|()
block|{ }
annotation|@
name|SuppressWarnings
argument_list|(
literal|"unchecked"
argument_list|)
DECL|method|createRobotVariablesFromCamelExchange (Exchange exchange)
specifier|public
specifier|static
name|List
argument_list|<
name|String
argument_list|>
name|createRobotVariablesFromCamelExchange
parameter_list|(
name|Exchange
name|exchange
parameter_list|)
throws|throws
name|TypeConversionException
throws|,
name|NoTypeConversionAvailableException
block|{
name|Map
argument_list|<
name|String
argument_list|,
name|Object
argument_list|>
name|variablesMap
init|=
name|ExchangeHelper
operator|.
name|createVariableMap
argument_list|(
name|exchange
argument_list|)
decl_stmt|;
name|List
argument_list|<
name|String
argument_list|>
name|variableKeyValuePairList
init|=
operator|new
name|ArrayList
argument_list|<>
argument_list|()
decl_stmt|;
for|for
control|(
name|Map
operator|.
name|Entry
argument_list|<
name|String
argument_list|,
name|Object
argument_list|>
name|variableEntry
range|:
name|variablesMap
operator|.
name|entrySet
argument_list|()
control|)
block|{
if|if
condition|(
name|ROBOT_VAR_CAMEL_BODY
operator|.
name|equals
argument_list|(
name|variableEntry
operator|.
name|getKey
argument_list|()
argument_list|)
condition|)
block|{
name|String
name|bodyVariable
init|=
name|variableEntry
operator|.
name|getKey
argument_list|()
operator|+
name|ROBOT_VAR_FIELD_SEPERATOR
operator|+
name|exchange
operator|.
name|getContext
argument_list|()
operator|.
name|getTypeConverter
argument_list|()
operator|.
name|mandatoryConvertTo
argument_list|(
name|String
operator|.
name|class
argument_list|,
name|variableEntry
operator|.
name|getValue
argument_list|()
argument_list|)
decl_stmt|;
name|variableKeyValuePairList
operator|.
name|add
argument_list|(
name|bodyVariable
argument_list|)
expr_stmt|;
block|}
elseif|else
if|if
condition|(
name|ROBOT_VAR_CAMEL_HEADERS
operator|.
name|equals
argument_list|(
name|variableEntry
operator|.
name|getKey
argument_list|()
argument_list|)
condition|)
block|{
comment|// here the param is the headers map
name|createStringValueOfVariablesFromMap
argument_list|(
name|variableKeyValuePairList
argument_list|,
name|ObjectHelper
operator|.
name|cast
argument_list|(
name|Map
operator|.
name|class
argument_list|,
name|variableEntry
operator|.
name|getValue
argument_list|()
argument_list|)
argument_list|,
name|exchange
argument_list|,
operator|new
name|StringBuilder
argument_list|()
argument_list|,
name|ROBOT_VAR_CAMEL_HEADERS
argument_list|,
literal|true
argument_list|)
expr_stmt|;
block|}
elseif|else
if|if
condition|(
name|ROBOT_CAMEL_EXCHANGE_NAME
operator|.
name|equals
argument_list|(
name|variableEntry
operator|.
name|getKey
argument_list|()
argument_list|)
condition|)
block|{
comment|// here the param is camel exchange
name|createStringValueOfVariablesFromMap
argument_list|(
name|variableKeyValuePairList
argument_list|,
name|exchange
operator|.
name|getProperties
argument_list|()
argument_list|,
name|ObjectHelper
operator|.
name|cast
argument_list|(
name|Exchange
operator|.
name|class
argument_list|,
name|variableEntry
operator|.
name|getValue
argument_list|()
argument_list|)
argument_list|,
operator|new
name|StringBuilder
argument_list|()
argument_list|,
name|ROBOT_VAR_CAMEL_PROPERTIES
argument_list|,
literal|true
argument_list|)
expr_stmt|;
block|}
block|}
return|return
name|variableKeyValuePairList
return|;
block|}
annotation|@
name|SuppressWarnings
argument_list|(
literal|"unchecked"
argument_list|)
DECL|method|createStringValueOfVariablesFromMap (List<String> list, Map<String, Object> headersMap, Exchange exchange, StringBuilder headerVariableName, String baseName, boolean includeBaseName)
specifier|private
specifier|static
name|void
name|createStringValueOfVariablesFromMap
parameter_list|(
name|List
argument_list|<
name|String
argument_list|>
name|list
parameter_list|,
name|Map
argument_list|<
name|String
argument_list|,
name|Object
argument_list|>
name|headersMap
parameter_list|,
name|Exchange
name|exchange
parameter_list|,
name|StringBuilder
name|headerVariableName
parameter_list|,
name|String
name|baseName
parameter_list|,
name|boolean
name|includeBaseName
parameter_list|)
throws|throws
name|TypeConversionException
throws|,
name|NoTypeConversionAvailableException
block|{
for|for
control|(
name|Map
operator|.
name|Entry
argument_list|<
name|String
argument_list|,
name|Object
argument_list|>
name|entry
range|:
name|headersMap
operator|.
name|entrySet
argument_list|()
control|)
block|{
if|if
condition|(
name|includeBaseName
condition|)
block|{
name|headerVariableName
operator|.
name|append
argument_list|(
name|baseName
argument_list|)
expr_stmt|;
block|}
name|headerVariableName
operator|.
name|append
argument_list|(
name|ROBOT_VAR_NESTING_SEPERATOR
argument_list|)
operator|.
name|append
argument_list|(
name|entry
operator|.
name|getKey
argument_list|()
argument_list|)
expr_stmt|;
if|if
condition|(
name|entry
operator|.
name|getValue
argument_list|()
operator|instanceof
name|Map
condition|)
block|{
name|createStringValueOfVariablesFromMap
argument_list|(
name|list
argument_list|,
name|ObjectHelper
operator|.
name|cast
argument_list|(
name|Map
operator|.
name|class
argument_list|,
name|entry
operator|.
name|getValue
argument_list|()
argument_list|)
argument_list|,
name|exchange
argument_list|,
name|headerVariableName
argument_list|,
name|headerVariableName
operator|.
name|toString
argument_list|()
argument_list|,
literal|false
argument_list|)
expr_stmt|;
block|}
else|else
block|{
name|headerVariableName
operator|.
name|append
argument_list|(
name|ROBOT_VAR_FIELD_SEPERATOR
argument_list|)
operator|.
name|append
argument_list|(
name|exchange
operator|.
name|getContext
argument_list|()
operator|.
name|getTypeConverter
argument_list|()
operator|.
name|mandatoryConvertTo
argument_list|(
name|String
operator|.
name|class
argument_list|,
name|entry
operator|.
name|getValue
argument_list|()
argument_list|)
argument_list|)
expr_stmt|;
block|}
name|list
operator|.
name|add
argument_list|(
name|headerVariableName
operator|.
name|toString
argument_list|()
argument_list|)
expr_stmt|;
if|if
condition|(
name|includeBaseName
condition|)
block|{
name|headerVariableName
operator|=
operator|new
name|StringBuilder
argument_list|()
expr_stmt|;
block|}
else|else
block|{
name|headerVariableName
operator|=
operator|new
name|StringBuilder
argument_list|(
name|baseName
argument_list|)
expr_stmt|;
block|}
block|}
block|}
block|}
end_class
end_unit
| [
"ondersezgin@gmail.com"
] | ondersezgin@gmail.com |
46e80cdadff8d706d2d132720fb4a5e7f2bd3dae | fbd2c7425c94da5c1e0aa84c972a427a23cb68e5 | /Programacion/2ºEVA/2eva/src/Eva2_2/Multiplicar.java | 7f6ddbefa4f7a23573ebe50e246043937584bb20 | [] | no_license | SinisterBlade7/FP_ESPECIALIDAD_1920. | 43144e51eae055d29edc6e84ae2da6f1e33eda30 | 082ec78b28d8a1466b3ea2308de5e0761acfe41e | refs/heads/master | 2021-01-02T11:08:13.707929 | 2020-02-14T19:24:43 | 2020-02-14T19:24:43 | 239,594,729 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 188 | java | package Eva2_2;
public class Multiplicar extends Operaciones {
public void multiplicar() {
resultado=0;
for(int i=1;i<=operando2;i++) {
resultado=operando1+resultado;
}
}
}
| [
"danielcr677@gmail.com"
] | danielcr677@gmail.com |
7ec7b34388ceda7db7f41d9e8e8a6d516f57a23f | 8842ff0c3ba889433fd5bced3cdd87e57b882ad8 | /app/src/androidTest/java/com/dedi/rekeningsaya/ExampleInstrumentedTest.java | f0df29ac9a8d126587a84f210e05badc1c42c38f | [] | no_license | dedirosandi/AppsRekeningSaya | bb479ac43779869593fbffaeb96d21ab731d9587 | dc83bd5e958cb5ca9377f59e15e436cb46bf5a88 | refs/heads/master | 2022-12-31T04:13:18.122982 | 2020-10-29T16:16:12 | 2020-10-29T16:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 756 | java | package com.dedi.rekeningsaya;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.dedi.rekeningsaya", appContext.getPackageName());
}
} | [
"62047093+dedidieu@users.noreply.github.com"
] | 62047093+dedidieu@users.noreply.github.com |
9f5c3a0a5bf3a2db5b7ce37a344d58d8aad8edec | f18e364d6cc7ebcc19bfb00860789b9297577b06 | /src/test/java/seedu/pdf/testutil/PdfUtil.java | 54155e8e19e71d3d5d4c1a05225f5d20fceb5562 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | CS2103-AY1819S2-T12-4/main | 4a70d3d05d3bcd3b742ddb6f4749eb6a77d97880 | 002bc9abe9cd29ce0edff5041e1e1b1ab36c957c | refs/heads/master | 2020-04-21T16:13:13.098899 | 2019-04-15T15:54:15 | 2019-04-15T15:54:15 | 169,693,582 | 0 | 1 | NOASSERTION | 2019-04-15T15:46:25 | 2019-02-08T06:20:50 | Java | UTF-8 | Java | false | false | 4,224 | java | package seedu.pdf.testutil;
import static seedu.pdf.logic.commands.CommandTestUtil.PASSWORD_1_VALID;
import static seedu.pdf.logic.parser.CliSyntax.PREFIX_DEADLINE_NEW;
import static seedu.pdf.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.pdf.logic.parser.CliSyntax.PREFIX_PASSWORD;
import static seedu.pdf.logic.parser.CliSyntax.PREFIX_TAG_ADD;
import static seedu.pdf.logic.parser.CliSyntax.PREFIX_TAG_NAME;
import static seedu.pdf.logic.parser.CliSyntax.PREFIX_TAG_REMOVE;
import java.nio.file.Paths;
import java.util.Set;
import seedu.pdf.logic.commands.AddCommand;
import seedu.pdf.logic.commands.DeadlineCommand;
import seedu.pdf.logic.commands.DecryptCommand;
import seedu.pdf.logic.commands.EncryptCommand;
import seedu.pdf.logic.commands.FilterCommand;
import seedu.pdf.logic.commands.RenameCommand.EditPdfDescriptor;
import seedu.pdf.model.pdf.Deadline;
import seedu.pdf.model.pdf.Pdf;
import seedu.pdf.model.tag.Tag;
/**
* A utility class for Pdf.
*/
public class PdfUtil {
/**
* Returns an add command string for adding the {@code pdf}.
*/
public static String getAddCommand(Pdf pdf) {
return AddCommand.COMMAND_WORD + " f/" + getPdfFilePath(pdf);
}
/**
* Returns pdf file path for adding the {@code pdf}.
*/
public static String getPdfFilePath(Pdf pdf) {
return Paths.get(pdf.getDirectory().getDirectory(), pdf.getName().getFullName()).toString();
}
/**
* Returns a deadline command string for setting deadline to the {@code pdf}.
*/
public static String getDeadlineCommand(Pdf pdf, int index) {
return DeadlineCommand.COMMAND_WORD + " " + index + " " + PREFIX_DEADLINE_NEW + getPdfDeadline(pdf);
}
/**
* Returns pdf deadline for setting deadline the {@code pdf}.
*/
public static String getPdfDeadline(Pdf pdf) {
final String deadlineSeparatorPrefix = "-";
Deadline deadline = pdf.getDeadline();
String[] splitDeadline = deadline.toJsonString().split(deadlineSeparatorPrefix);
return splitDeadline[2].substring(0, 2) + deadlineSeparatorPrefix
+ splitDeadline[1] + deadlineSeparatorPrefix + splitDeadline[0];
}
/**
* Returns a decrypt command string for decrypting the pdf at {@code index}.
*/
public static String getDecryptCommand(int index) {
return DecryptCommand.COMMAND_WORD + " " + index + " " + PREFIX_PASSWORD + PASSWORD_1_VALID;
}
/**
* Returns an encrypt command string for encrypting the pdf at {@code index}.
*/
public static String getEncryptCommand(int index) {
return EncryptCommand.COMMAND_WORD + " " + index + " " + PREFIX_PASSWORD + PASSWORD_1_VALID;
}
/**
* Returns a filter command string for returning a filtered list with that matches with {code tags}.
*/
public static String getFilterCommand(Set<Tag> tags) {
StringBuilder sb = new StringBuilder();
sb.append(FilterCommand.COMMAND_WORD);
tags.stream().forEach(tag -> sb.append(" ").append(PREFIX_TAG_NAME).append(tag.tagName));
return sb.toString();
}
/**
* Returns the part of command string for the given {@code EditPdfDescriptor}'s details.
*/
public static String getRenamePdfDescriptorDetails(EditPdfDescriptor descriptor) {
StringBuilder sb = new StringBuilder();
descriptor.getName().ifPresent(name -> sb.append(PREFIX_NAME).append(name.getFullName()));
return sb.toString();
}
/**
* Returns the add tag command with {@code tags}.
*/
public static String getAddTag(Set<Tag> tags) {
StringBuilder sb = new StringBuilder();
sb.append(PREFIX_TAG_ADD).append(" ");
tags.stream().forEach(x -> sb.append(PREFIX_TAG_NAME).append(x.tagName).append(" "));
return sb.toString();
}
/**
* Returns the add tag command with {@code tags}.
*/
public static String getRemoveTag(Set<Tag> tags) {
StringBuilder sb = new StringBuilder();
sb.append(PREFIX_TAG_REMOVE).append(" ");
tags.stream().forEach(x -> sb.append(PREFIX_TAG_NAME).append(x.tagName).append(" "));
return sb.toString();
}
}
| [
"jetkan.yk@gmail.com"
] | jetkan.yk@gmail.com |
51e1e6ac427d7a43ed3f34a1ceb5c5f4d917c005 | b4a2a49b9744329e5e894cef1222be309bfe58b2 | /src/main/java/org/tugraz/sysds/runtime/instructions/cp/ScalarObjectFactory.java | 81f39e116e8860275379f88efca6b0af4289ed9e | [
"Apache-2.0"
] | permissive | tugraz-isds/systemds | b1942d8f905ccf8a5da233a376c8bab045688cbf | c771440e9d41507a1420a58d316ac82b53923d55 | refs/heads/master | 2021-06-26T02:49:55.256823 | 2020-09-01T15:39:21 | 2020-09-01T15:39:21 | 147,829,568 | 42 | 28 | Apache-2.0 | 2020-10-13T10:59:15 | 2018-09-07T13:48:30 | Java | UTF-8 | Java | false | false | 5,317 | 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.tugraz.sysds.runtime.instructions.cp;
import org.tugraz.sysds.hops.HopsException;
import org.tugraz.sysds.hops.LiteralOp;
import org.tugraz.sysds.hops.UnaryOp;
import org.tugraz.sysds.common.Types.ValueType;
import org.tugraz.sysds.runtime.util.UtilFunctions;
public abstract class ScalarObjectFactory
{
public static ScalarObject createScalarObject(ValueType vt, String value) {
switch( vt ) {
case INT64: return new IntObject(UtilFunctions.parseToLong(value));
case FP64: return new DoubleObject(Double.parseDouble(value));
case BOOLEAN: return new BooleanObject(Boolean.parseBoolean(value));
case STRING: return new StringObject(value);
default: throw new RuntimeException("Unsupported scalar value type: "+vt.name());
}
}
public static ScalarObject createScalarObject(ValueType vt, Object obj) {
//TODO add new scalar object for extended type system
switch( vt ) {
case BOOLEAN: return new BooleanObject((Boolean)obj);
case INT64: return new IntObject((Long)obj);
case INT32: return new IntObject((Integer)obj);
case FP64: return new DoubleObject((Double)obj);
case FP32: return new DoubleObject((Float)obj);
case STRING: return new StringObject((String)obj);
default: throw new RuntimeException("Unsupported scalar value type: "+vt.name());
}
}
public static ScalarObject createScalarObject(ValueType vt, double value) {
switch( vt ) {
case INT64: return new IntObject(UtilFunctions.toLong(value));
case FP64: return new DoubleObject(value);
case BOOLEAN: return new BooleanObject(value != 0);
case STRING: return new StringObject(String.valueOf(value));
default: throw new RuntimeException("Unsupported scalar value type: "+vt.name());
}
}
public static ScalarObject createScalarObject(ValueType vt, ScalarObject so) {
switch( vt ) {
case FP64: return castToDouble(so);
case INT64: return castToLong(so);
case BOOLEAN: return new BooleanObject(so.getBooleanValue());
case STRING: return new StringObject(so.getStringValue());
default: throw new RuntimeException("Unsupported scalar value type: "+vt.name());
}
}
public static ScalarObject createScalarObject(LiteralOp lit) {
return createScalarObject(lit.getValueType(), lit);
}
public static ScalarObject createScalarObject(ValueType vt, LiteralOp lit) {
switch( vt ) {
case FP64: return new DoubleObject(lit.getDoubleValue());
case INT64: return new IntObject(lit.getLongValue());
case BOOLEAN: return new BooleanObject(lit.getBooleanValue());
case STRING: return new StringObject(lit.getStringValue());
default: throw new RuntimeException("Unsupported scalar value type: "+vt.name());
}
}
public static LiteralOp createLiteralOp(ScalarObject so) {
switch( so.getValueType() ){
case FP64: return new LiteralOp(so.getDoubleValue());
case INT64: return new LiteralOp(so.getLongValue());
case BOOLEAN: return new LiteralOp(so.getBooleanValue());
case STRING: return new LiteralOp(so.getStringValue());
default:
throw new HopsException("Unsupported literal value type: "+so.getValueType());
}
}
public static LiteralOp createLiteralOp(ScalarObject so, UnaryOp cast) {
switch( cast.getOp() ) {
case CAST_AS_DOUBLE: return new LiteralOp(castToDouble(so).getDoubleValue());
case CAST_AS_INT: return new LiteralOp(castToLong(so).getLongValue());
case CAST_AS_BOOLEAN: return new LiteralOp(so.getBooleanValue());
default: return null; //otherwise: do nothing
}
}
public static LiteralOp createLiteralOp(ValueType vt, String value) {
switch( vt ) {
case FP64: return new LiteralOp(Double.parseDouble(value));
case INT64: return new LiteralOp(Long.parseLong(value));
case BOOLEAN: return new LiteralOp(Boolean.parseBoolean(value));
case STRING: return new LiteralOp(value);
default: throw new RuntimeException("Unsupported scalar value type: "+vt.name());
}
}
public static IntObject castToLong(ScalarObject so) {
//note: cast with robustness for various combinations of value types
return new IntObject(!(so instanceof StringObject) ?
so.getLongValue() : UtilFunctions.toLong(Double.parseDouble(so.getStringValue())));
}
public static DoubleObject castToDouble(ScalarObject so) {
//note: cast with robustness for various combinations of value types
return new DoubleObject(!(so instanceof StringObject) ?
so.getDoubleValue() : Double.parseDouble(so.getStringValue()));
}
}
| [
"mboehm7@gmail.com"
] | mboehm7@gmail.com |
27e48ed95909219a565627573770603bf7d14295 | 8f82fc8cf697a42462ccdb4f3ecb1620eeb950d7 | /src/main/java/ro/siveco/cad/integridy/controllers/DashboardController.java | e06d8ed210c437103723e3247f944e4cc074f8c6 | [] | no_license | SIV-Git2019/IntegridyElectrica | 2bfdc6bbd209d56b17b84874e122fcba813b56e9 | 96ebcc1d7478dcd3913b78ea1d2c3fc03c083996 | refs/heads/master | 2023-08-10T02:36:19.088640 | 2019-09-16T17:20:42 | 2019-09-16T17:20:42 | 208,856,579 | 0 | 0 | null | 2023-07-25T13:59:54 | 2019-09-16T17:19:48 | HTML | UTF-8 | Java | false | false | 24,977 | java | package ro.siveco.cad.integridy.controllers;
import org.primefaces.context.RequestContext;
import org.primefaces.event.SelectEvent;
import org.primefaces.model.chart.*;
import ro.siveco.cad.integridy.controllers.util.Constants;
import ro.siveco.cad.integridy.controllers.util.EnergyProductionEnum;
import ro.siveco.cad.integridy.controllers.util.GraphicalStepEnum;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.enterprise.context.SessionScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.inject.Named;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.http.HttpSession;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import ro.siveco.cad.integridy.entities.ActionLog;
import ro.siveco.cad.integridy.entities.ConsumerNotification;
import ro.siveco.cad.integridy.entities.DsoNotification;
import ro.siveco.cad.integridy.service.impl.ExternalCommunicationServiceImpl;
@Named(value = "dashboardController")
@SessionScoped
public class DashboardController implements Serializable {
@EJB
private CumulClientDFacade cumulClientDFacade;
@EJB
private ConsumerClientFacade consumerClientFacade;
@EJB
private ConsumerNotificationFacade clientNotificationFacade;
@EJB
private DsoNotificationFacade dsoNotificationFacade;
@EJB
private DashboardService dashboardService;
@EJB
private ActionLogFacade actionLogFacade;
@EJB
private UsersFacade usersFacade;
ExternalCommunicationServiceImpl externalCommunicationService = new ExternalCommunicationServiceImpl();
private Date startDate;
private Date endDate;
private Date defaultStartDate;
private Date defaultEndDate;
private Date endMaxDate;
private boolean startDateChanged, endDateChanged, projectionChanged;
private String currentPage = "Dashboard";
private int graphicalStep;
private PieChartModel totalEnergyProductionPieChart;
private BarChartModel totalEnergyProductionConsumptionChart;
private LineChartModel clientConsumptionEvolutionChart;
private boolean noTotalEnergyProductionPieChartData = true;// if true, no chart will be displayed
private boolean totalEnergyProductionPieChartLoaded = false;// a flag to prevent multiple calls to DB
private List<ConsumerNotification> clientNotificationList;
private List<ConsumerNotification> clientAlertList;
private List<DsoNotification> dsoNotificationList;
private List<DsoNotification> dsoAlertList;
private DsoNotification selectedDsoNotification;
private DsoNotification selectedDsoAlert;
private int clientId;
@PostConstruct
public void init() {
endMaxDate = new Date();
//default startDate and endDate
endDate = new Date();
Calendar calendar = Calendar.getInstance();
calendar.setTime(endDate);
calendar.add(Calendar.HOUR, -24);
startDate = calendar.getTime();
defaultStartDate = startDate;
defaultEndDate = endDate;
dashboardService.setCurrentDate(startDate);
if (isConsumer()) {
populateClientConsumptionEvolutionChart();
}
//daca este logat client
if (isConsumer()) {
clientId = consumerClientFacade.getClientByUserName(getCurrentUserUsername()).getId();
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(Constants.CURRENT_CONSUMER, consumerClientFacade.getClientByUserName(getCurrentUserUsername()));
setClientNotificationList(clientNotificationFacade.getNotificationsByClientId(clientId));
setClientAlertList(clientNotificationFacade.getAlertsByClientId(clientId));
} else {
dsoNotificationList = dsoNotificationFacade.getDsoNotifications();
dsoAlertList = dsoNotificationFacade.getDsoAlerts();
}
}
private void populateClientConsumptionEvolutionChart() {
ChartSeries currentSeries = new ChartSeries();
ChartSeries lastYearSeries = new ChartSeries();
// String username = getCurrentUserUsername();
// int clientID = consumerClientFacade.getClientByUserName("userb4").getId();
int clientID = consumerClientFacade.getClientByUserName(getCurrentUserUsername()).getId();
currentSeries.set("Mon", 100);
currentSeries.set("Tue", 100);
currentSeries.set("Wed", 100);
currentSeries.set("Thu", 100);
currentSeries.set("Fri", 100);
currentSeries.set("Sat", 100);
currentSeries.set("Sun", 100);
lastYearSeries.set("Mon", cumulClientDFacade.getAvgPerWeekDayByClient(1, clientID, new Date()));
lastYearSeries.set("Tue", cumulClientDFacade.getAvgPerWeekDayByClient(2, clientID, new Date()));
lastYearSeries.set("Wed", cumulClientDFacade.getAvgPerWeekDayByClient(3, clientID, new Date()));
lastYearSeries.set("Thu", cumulClientDFacade.getAvgPerWeekDayByClient(4, clientID, new Date()));
lastYearSeries.set("Fri", cumulClientDFacade.getAvgPerWeekDayByClient(5, clientID, new Date()));
lastYearSeries.set("Sat", cumulClientDFacade.getAvgPerWeekDayByClient(6, clientID, new Date()));
lastYearSeries.set("Sun", cumulClientDFacade.getAvgPerWeekDayByClient(0, clientID, new Date()));
currentSeries.setLabel(ResourceBundle.getBundle(Constants.BUNDLE).getString("currentWeekClientConsumption"));
lastYearSeries.setLabel(ResourceBundle.getBundle(Constants.BUNDLE).getString("correspondingWeekLastYearClientConsumption"));
clientConsumptionEvolutionChart = new LineChartModel();
clientConsumptionEvolutionChart.setExtender("chartExtender2");
clientConsumptionEvolutionChart.addSeries(currentSeries);
clientConsumptionEvolutionChart.addSeries(lastYearSeries);
clientConsumptionEvolutionChart.setLegendPosition("ne");// to display the legend
clientConsumptionEvolutionChart.setShowPointLabels(true);
clientConsumptionEvolutionChart.getAxes().put(AxisType.X, new CategoryAxis(ResourceBundle.getBundle(Constants.BUNDLE).getString("weekDays")));
clientConsumptionEvolutionChart.setAnimate(Constants.ANIMATE_CHART);
Axis yAxis = clientConsumptionEvolutionChart.getAxis(AxisType.Y);
yAxis.setLabel(ResourceBundle.getBundle(Constants.BUNDLE).getString("KWHLabel"));
yAxis.setMin(0);
}
public void onDsoDismis(int notificationId, int type){
DsoNotification notification = dsoNotificationFacade.find(notificationId);
if(notification!=null){
notification.setStatus(2);
dsoNotificationFacade.edit(notification);
if(type==1)
dsoNotificationList = dsoNotificationFacade.getDsoNotifications();
else
dsoAlertList = dsoNotificationFacade.getDsoAlerts();
}
}
public void onClientNotificationDismiss(int notificationId, int type){
ConsumerNotification notification = clientNotificationFacade.find(notificationId);
if(notification!=null){
notification.setStatus(2);
clientNotificationFacade.edit(notification);
if(type == 2)//alerts
setClientAlertList(clientNotificationFacade.getAlertsByClientId(clientId));
else
setClientNotificationList(clientNotificationFacade.getNotificationsByClientId(clientId));
}
}
public boolean isNoChartData() {
if (!totalEnergyProductionPieChartLoaded) {
createTotalEnergyProductionPieChartModel();
totalEnergyProductionPieChartLoaded = true;
}
return noTotalEnergyProductionPieChartData;
}
private void createTotalEnergyProductionPieChartModel() {
try {
Map<EnergyProductionEnum, String> valuesMap = externalCommunicationService.getNewestRomanianEnergyInfo();
if (valuesMap.isEmpty()) {
noTotalEnergyProductionPieChartData = true;
} else {
noTotalEnergyProductionPieChartData = false;
totalEnergyProductionPieChart = new PieChartModel();
totalEnergyProductionPieChart.setShadow(false);
totalEnergyProductionPieChart.setLegendPosition("ne");
totalEnergyProductionPieChart.setShowDataLabels(true);
totalEnergyProductionConsumptionChart = new BarChartModel();
ChartSeries consumptionSeries = new ChartSeries();
ChartSeries productionSeries = new ChartSeries();
consumptionSeries.setLabel(ResourceBundle.getBundle(Constants.BUNDLE).getString("consumption"));
productionSeries.setLabel(ResourceBundle.getBundle(Constants.BUNDLE).getString("production"));
for (EnergyProductionEnum entry : valuesMap.keySet()) {
switch (entry) {
case NUCLEAR:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("nuclear"), Integer.parseInt(valuesMap.get(entry)));
break;
case WIND:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("wind"), Integer.parseInt(valuesMap.get(entry)));
break;
case HYDRO:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("hydro"), Integer.parseInt(valuesMap.get(entry)));
break;
case HYDROCARBS:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("hydrocarbs"), Integer.parseInt(valuesMap.get(entry)));
break;
case COAL:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("coal"), Integer.parseInt(valuesMap.get(entry)));
break;
case PV:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("pv"), Integer.parseInt(valuesMap.get(entry)));
break;
case BIOMASS:
totalEnergyProductionPieChart.set(ResourceBundle.getBundle(Constants.BUNDLE).getString("biomass"), Integer.parseInt(valuesMap.get(entry)));
break;
case PRODUCTION:
productionSeries.set(" ", Integer.parseInt(valuesMap.get(entry)));
break;
case CONSUMPTION:
consumptionSeries.set(" ", Integer.parseInt(valuesMap.get(entry)));
break;
}
}
totalEnergyProductionConsumptionChart.addSeries(productionSeries);
totalEnergyProductionConsumptionChart.addSeries(consumptionSeries);
totalEnergyProductionConsumptionChart.setZoom(true);
totalEnergyProductionConsumptionChart.getAxis(AxisType.Y).setLabel(ResourceBundle.getBundle(Constants.BUNDLE).getString("MWLabel"));
totalEnergyProductionConsumptionChart.setShadow(false);
totalEnergyProductionConsumptionChart.setAnimate(Constants.ANIMATE_CHART);
totalEnergyProductionConsumptionChart.setLegendPosition("ne");// to display the legend
totalEnergyProductionConsumptionChart.setBarWidth(100);
}
} catch (Exception ex) {
System.err.println(ex);
}
}
// public String getCurrentUserUsername() {
// String loggedUsername = securityService.getLoggedUsername();
// return loggedUsername != null ? loggedUsername : "";
// }
/**
* Returns the current user's username
*
* @return
*/
public String getCurrentUserUsername() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if (subject != null) {
return subject.getPrincipal().toString();
} else {
return "User";
}
}
public String getCurrentUserRole() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if(isUserClient())
return "Consumer";
else if(isUserAdmin())
return "Administrator";
else if(isUserDso())
return "DSO";
else
return "";
}
public boolean isUserDso() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if (subject != null) {
if (subject.hasRole("dso")) {
return true;
}
}
return false;
}
public boolean isUserAdmin() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if (subject != null) {
if (subject.hasRole("admin")) {
return true;
}
}
return false;
}
public boolean isUserAdminOrDso() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if (subject != null) {
if (subject.hasRole("admin") || subject.hasRole("dso")) {
return true;
}
}
return false;
}
public boolean isUserClient() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if (subject != null) {
if (subject.hasRole("consumer")) {
return true;
}
}
return false;
}
public void onStartDateChanged(SelectEvent event) {
if (!defaultStartDate.equals((Date) event.getObject())) {
startDateChanged = true;
dashboardService.setCurrentDate(startDate);
}
}
public boolean filtersChanged() {
if (startDateChanged || endDateChanged || projectionChanged) {
return true;
}
return false;
}
public void applyIntegridyFilters() {
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(Constants.START_DATE, startDate);
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(Constants.END_DATE, endDate);
defaultStartDate = startDate;
defaultEndDate = endDate;
// RequestContext.getCurrentInstance().execute("location.reload()");
startDateChanged = false;
endDateChanged = false;
projectionChanged = false;
endMaxDate = new Date();
reloadCurrentPage();
}
// public boolean isUserAdminOrManager() {
// String loggedUserRole = userService.findByUsername(securityService.getLoggedUsername()).getRole();
// return UserRolesEnum.getByName(loggedUserRole) == UserRolesEnum.ADMINISTRATOR ||
// UserRolesEnum.getByName(loggedUserRole) == UserRolesEnum.DSO;
// }
//
public void reloadCurrentPage(){
try {
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
String url = request.getRequestURL().toString();
String uri = request.getRequestURI();
ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
externalContext.redirect(uri);
} catch (IOException ioe) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, ioe);
}
}
public boolean isConsumer() {
Subject subject = org.apache.shiro.SecurityUtils.getSubject();
if (subject != null) {
if (subject.hasRole("consumer")) {
return true;
}
}
return false;
}
public void navigate() {
String pageName = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("pageName");
if (pageName != null) {
setCurrentPage(pageName);
//activity log
actionLogRegister("Navigate", pageName);
}
}
private void actionLogRegister(String actionName, String pageName) {
try {
//login action to be logged
ActionLog action = new ActionLog();
action.setActionDate(new Date());
action.setActionName(actionName);
action.setPage(pageName);
action.setUserId(usersFacade.findByUserName(getCurrentUserUsername()));
actionLogFacade.create(action);
} catch (Exception e) {
e.printStackTrace();
}
}
public void redirectDashboard() throws IOException {
currentPage = "Dashboard";
reloadPage("/index.xhtml");
}
public Date getEndMaxDate() {
return endMaxDate;
}
public void setEndMaxDate(Date endMaxDate) {
this.endMaxDate = endMaxDate;
}
public Date getDefaultStartDate() {
return defaultStartDate;
}
public void setDefaultStartDate(Date defaultStartDate) {
this.defaultStartDate = defaultStartDate;
}
public Date getDefaultEndDate() {
return defaultEndDate;
}
public void setDefaultEndDate(Date defaultEndDate) {
this.defaultEndDate = defaultEndDate;
}
public boolean isStartDateChanged() {
return startDateChanged;
}
public void setStartDateChanged(boolean startDateChanged) {
this.startDateChanged = startDateChanged;
}
public boolean isEndDateChanged() {
return endDateChanged;
}
public void setEndDateChanged(boolean endDateChanged) {
this.endDateChanged = endDateChanged;
}
public String getCurrentPage() {
return currentPage;
}
public void setCurrentPage(String currentPage) {
this.currentPage = currentPage;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public String getGraphicalIntervalStr() {
GraphicalStepEnum enumStep = GraphicalStepEnum.getByValue(graphicalStep);
if (enumStep != null) {
switch (enumStep) {
case STEP_15m:
return "15 minutes";
case STEP_1H:
return "1 hour";
case STEP_6H:
return "6 hours";
case STEP_12H:
return "12 hours";
case STEP_1D:
return "1 day";
case STEP_1W:
return "1 week";
case STEP_1M:
return "1 month";
case STEP_3M:
return "3 months";
case STEP_6M:
return "6 months";
case STEP_1Y:
return "1 year";
default:
return "";
}
}
return "";
}
public PieChartModel getTotalEnergyProductionPieChart() {
if (totalEnergyProductionPieChart == null) {
createTotalEnergyProductionPieChartModel();
}
return totalEnergyProductionPieChart;
}
public void setTotalEnergyProductionPieChart(PieChartModel totalEnergyProductionPieChart) {
this.totalEnergyProductionPieChart = totalEnergyProductionPieChart;
}
public boolean isNoTotalEnergyProductionPieChartData() {
return noTotalEnergyProductionPieChartData;
}
public void setNoTotalEnergyProductionPieChartData(boolean noTotalEnergyProductionPieChartData) {
this.noTotalEnergyProductionPieChartData = noTotalEnergyProductionPieChartData;
}
public boolean isTotalEnergyProductionPieChartLoaded() {
return totalEnergyProductionPieChartLoaded;
}
public void setTotalEnergyProductionPieChartLoaded(boolean totalEnergyProductionPieChartLoaded) {
this.totalEnergyProductionPieChartLoaded = totalEnergyProductionPieChartLoaded;
}
public BarChartModel getTotalEnergyProductionConsumptionChart() {
return totalEnergyProductionConsumptionChart;
}
public void setTotalEnergyProductionConsumptionChart(BarChartModel totalEnergyProductionConsumptionChart) {
this.totalEnergyProductionConsumptionChart = totalEnergyProductionConsumptionChart;
}
public LineChartModel getClientConsumptionEvolutionChart() {
return clientConsumptionEvolutionChart;
}
public void setClientConsumptionEvolutionChart(LineChartModel clientConsumptionEvolutionChart) {
this.clientConsumptionEvolutionChart = clientConsumptionEvolutionChart;
}
public int getGraphicalStep() {
return graphicalStep;
}
public void setGraphicalStep(int graphicalStep) {
if (graphicalStep != this.graphicalStep) {
projectionChanged = true;
this.graphicalStep = graphicalStep;
}
}
public List<ConsumerNotification> getClientNotificationList() {
return clientNotificationList;
}
public void setClientNotificationList(List<ConsumerNotification> clientNotificationList) {
this.clientNotificationList = clientNotificationList;
}
public List<ConsumerNotification> getClientAlertList() {
return clientAlertList;
}
public void setClientAlertList(List<ConsumerNotification> clientAlertList) {
this.clientAlertList = clientAlertList;
}
public List<DsoNotification> getDsoNotificationList() {
return dsoNotificationList;
}
public void setDsoNotificationList(List<DsoNotification> dsoNotificationList) {
this.dsoNotificationList = dsoNotificationList;
}
public List<DsoNotification> getDsoAlertList() {
return dsoAlertList;
}
public void setDsoAlertList(List<DsoNotification> dsoAlertList) {
this.dsoAlertList = dsoAlertList;
}
public DsoNotification getSelectedDsoNotification() {
return selectedDsoNotification;
}
public void setSelectedDsoNotification(DsoNotification selectedDsoNotification) {
this.selectedDsoNotification = selectedDsoNotification;
}
public DsoNotification getSelectedDsoAlert() {
return selectedDsoAlert;
}
public void setSelectedDsoAlert(DsoNotification selectedDsoAlert) {
this.selectedDsoAlert = selectedDsoAlert;
}
public String signOut(){
actionLogRegister("Logout", "login.xhtml");
SecurityUtils.getSubject().logout();
return "/faces/login.xhtml";
}
public void reloadPage(String pageName) throws IOException {
// ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
// String requestURI = ((HttpServletRequest) ec.getRequest()).getRequestURI();
// if (pageName == null) {// refresh current page
// ec.redirect(requestURI);
// } else {// redirect to pageName
// requestURI = "/" + requestURI.split("/")[1] + "/" + pageName;
// ec.redirect(requestURI);
// }
// noTotalEnergyProductionPieChartData = true;// if true, no chart will be displayed
// totalEnergyProductionPieChartLoaded = false;// a flag to prevent multiple calls to DB
try {
FacesContext fCtx = FacesContext.getCurrentInstance();
HttpSession session = (HttpSession) fCtx.getExternalContext().getSession(false);
String sessionId = session.getId();
ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
externalContext.redirect(externalContext.getRequestContextPath() + "/faces" + pageName + ";jsessionid=" + sessionId);
} catch (IOException ioe) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, ioe);
}
}
}
| [
"iacob.crucianu@gmail.com"
] | iacob.crucianu@gmail.com |
bb781cfbc7bf9ff4afcf55c181dad28a81a4094a | ea89df8480047e935818a3431462070166cbab00 | /vpresentation/org.mindmap.model.edit/src/org/mindmap/model/provider/ConceptosDiagramaItemProvider.java | abc471a2de0c9c1e66c3aa3c7816ef8b6792c45e | [
"BSD-2-Clause"
] | permissive | DavidGodoy/CourseDesigner | e6dbb4504be372db2d9086d57f1cbfa36a8de7db | 9e092344050ec3166fd8f32fa1325c40abfdc7e4 | refs/heads/master | 2021-01-24T00:53:22.102526 | 2016-07-04T18:35:25 | 2016-07-04T18:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,891 | java | /**
*/
package org.mindmap.model.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
/**
* This is the item provider adapter for a {@link org.mindmap.model.ConceptosDiagrama} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class ConceptosDiagramaItemProvider extends CursoDiagramaItemProvider
implements IEditingDomainItemProvider, IStructuredItemContentProvider,
ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public ConceptosDiagramaItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
}
/**
* This returns ConceptosDiagrama.gif.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object,
getResourceLocator().getImage("full/obj16/ConceptosDiagrama"));
}
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
return getString("_UI_ConceptosDiagrama_type");
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
* children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
super.notifyChanged(notification);
}
/**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected void collectNewChildDescriptors(
Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
}
}
| [
"jmcruz@lcc.uma.es"
] | jmcruz@lcc.uma.es |
4c5f2ad0ded06264bb6e7e7c0efbce3d1fccdda6 | 447432c019ce7810f98fb1ddc497bb2bc273ff2b | /com.citi.mobile.co/Sources/com/konylabs/api/aF.java | 442711084cb18ec68dbde2695ac6630ea3094848 | [
"MIT"
] | permissive | wpelaez55/ExposingIndustryMediocrity | 271cc8d49287ce2ff57cbeb1fac64bae2d51ccd5 | 6811904f3993da106237c5b50259ecb2b5ef1d2a | refs/heads/master | 2021-01-12T10:27:39.804397 | 2016-12-12T11:38:06 | 2016-12-12T11:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,558 | java | package com.konylabs.api;
import com.konylabs.api.ui.KonyCustomWidget;
import com.konylabs.libintf.JSLibrary;
import com.konylabs.vm.Function;
import com.konylabs.vm.LuaError;
import com.konylabs.vm.LuaTable;
import ny0k.cP;
import ny0k.cQ;
import ny0k.cW;
public final class aF extends JSLibrary {
private static String[] f3522a;
static {
f3522a = new String[]{"postMessage", "addEventListener", "removeEventListener", "terminate", "close", "importScripts", "hasWorkerThreadSupport"};
}
private static cP m3920a(Object[] objArr) {
return (objArr.length <= 0 || !(objArr[0] instanceof cQ)) ? Thread.currentThread() instanceof cW ? (cW) Thread.currentThread() : null : (cQ) objArr[0];
}
public final Object createInstance(Object[] objArr, long j) {
if (objArr.length == 0) {
throw new LuaError(3001, "WorkerThreadError", "WorkerThread: MissingMandatoryParameter. Failed to construct WorkerThread");
} else if (objArr[0] instanceof String) {
return new cQ(objArr, j);
} else {
throw new LuaError(3002, "WorkerThreadError", "WorkerThread: InvalidParameter. Invalid script name");
}
}
public final Object[] execute(int i, Object[] objArr) {
Object obj;
cP a;
String obj2;
cP a2;
switch (i) {
case KonyCustomWidget.NATIVE_DATA_TYPE_PRIMITIVE_INT /*0*/:
cP a3 = m3920a(objArr);
if (a3 != null) {
obj = (!(a3 instanceof cQ) || objArr.length <= 1) ? (!(a3 instanceof cW) || objArr.length <= 0) ? null : objArr[0] : objArr[1];
if (obj == null) {
throw new LuaError(3001, "WorkerThreadError", "postMessage: MissingMandatoryParameter. Message undefined");
} else if ((obj instanceof String) || (obj instanceof LuaTable)) {
a3.m2159a(obj);
break;
} else {
throw new LuaError(3002, "WorkerThreadError", "postMessage: InvalidParameter. Invalid Message");
}
}
break;
case KonyCustomWidget.NATIVE_DATA_TYPE_PRIMITIVE_LONG /*1*/:
a = m3920a(objArr);
if (a != null) {
if ((a instanceof cQ) && objArr.length > 2) {
obj2 = objArr[1].toString();
obj = objArr[2];
} else if (!(a instanceof cW) || objArr.length <= 1) {
obj = null;
obj2 = null;
} else {
obj2 = objArr[0].toString();
obj = objArr[1];
}
if (obj2 != null && obj != null) {
if ((obj instanceof Function) && (obj2 instanceof String) && (obj2.endsWith("message") || obj2.equals("error"))) {
a.m2160a(obj2, (Function) obj);
break;
}
throw new LuaError(3002, "WorkerThreadError", "addEventListener: InvalidParameter. Invalid arguments");
}
throw new LuaError(3001, "WorkerThreadError", "addEventListener: MissingMandatoryParameter. Mandatory arguments missing");
}
break;
case KonyCustomWidget.NATIVE_DATA_TYPE_PRIMITIVE_FLOAT /*2*/:
a = m3920a(objArr);
if (a != null) {
if ((a instanceof cQ) && objArr.length > 2) {
obj2 = objArr[1].toString();
obj = objArr[2];
} else if (!(a instanceof cW) || objArr.length <= 1) {
obj = null;
obj2 = null;
} else {
obj2 = objArr[0].toString();
obj = objArr[1];
}
if (obj2 != null && obj != null) {
if ((obj instanceof Function) && (obj2 instanceof String) && (obj2.endsWith("message") || obj2.equals("error"))) {
a.m2162b(obj2, (Function) obj);
break;
}
throw new LuaError(3002, "WorkerThreadError", "removeEventListener: InvalidParameter. Invalid arguments");
}
throw new LuaError(3001, "WorkerThreadError", "removeEventListener: MissingMandatoryParameter. Mandatory arguments missing");
}
break;
case KonyCustomWidget.NATIVE_DATA_TYPE_PRIMITIVE_DOUBLE /*3*/:
case KonyCustomWidget.NATIVE_DATA_TYPE_PRIMITIVE_BOOLEAN /*4*/:
a2 = m3920a(objArr);
if (a2 != null) {
a2.m2158a();
break;
}
break;
case KonyCustomWidget.NATIVE_DATA_TYPE_OBJ_INTEGER /*5*/:
a2 = m3920a(objArr);
if (a2 != null) {
a2.m2161a(objArr);
break;
}
break;
case KonyCustomWidget.NATIVE_DATA_TYPE_OBJ_LONG /*6*/:
return new Object[]{Boolean.valueOf(true)};
}
return null;
}
public final String[] getMethods() {
return f3522a;
}
public final String getNameSpace() {
return null;
}
}
| [
"jheto.xekri@gmail.com"
] | jheto.xekri@gmail.com |
2e37df328655fa3d8db35c522e184ec0b220c67c | 49885fff240566cfd1d8f0f5f865ec93c6e519ad | /shenyu-admin/src/test/java/org/apache/shenyu/admin/config/NacosConfigurationTest.java | 27f9bc83b02d1cef97406d64f4e194303b956add | [
"Apache-2.0"
] | permissive | zhiguohe/shenyu | a8c6191ae889897a1caa4ccff6ae8d315840f434 | fccce20e3d6863de289b1293275361207c667f6b | refs/heads/master | 2023-04-20T01:10:06.691403 | 2021-05-09T13:53:56 | 2021-05-09T13:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,707 | 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.shenyu.admin.config;
import com.alibaba.nacos.api.NacosFactory;
import com.alibaba.nacos.api.PropertyKeyConst;
import com.alibaba.nacos.api.config.ConfigService;
import org.apache.shenyu.admin.AbstractConfigurationTest;
import org.apache.shenyu.admin.config.properties.NacosProperties;
import org.junit.Test;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import java.util.Properties;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
/**
* Test cases for NacosConfiguration.
*
* @author caimeijiao
*/
public final class NacosConfigurationTest extends AbstractConfigurationTest {
private final String[] inlinedProperties = new String[]{
"shenyu.sync.nacos.url=localhost:8848",
"shenyu.sync.nacos.namespace=1c10d748-af86-43b9-8265-75f487d20c6c",
"shenyu.sync.nacos.username=nacos",
"shenyu.sync.nacos.password=nacos",
"shenyu.sync.nacos.acm.enabled=false",
"shenyu.sync.nacos.acm.endpoint=acm.aliyun.com",
};
@Test
public void testNacosConfigServiceMissingBean() {
load(NacosConfiguration.class, inlinedProperties);
ConfigService configService = (ConfigService) getContext().getBean("nacosConfigService");
assertNotNull(configService);
}
@Test(expected = BeanCreationException.class)
public void testNacosConfigService() {
String[] inlinedProperties = new String[]{
"shenyu.sync.nacos.url=localhost:8848",
"shenyu.sync.nacos.namespace=1c10d748-af86-43b9-8265-75f487d20c6c",
"shenyu.sync.nacos.acm.enabled=true",
"shenyu.sync.nacos.acm.endpoint=localhost:8849",
"shenyu.sync.nacos.acm.namespace=namespace",
"shenyu.sync.nacos.acm.accessKey=accessKey",
"shenyu.sync.nacos.acm.secretKey=secretKey",
};
load(NacosConfiguration.class, inlinedProperties);
ConfigService configService = (ConfigService) getContext().getBean("nacosConfigService");
assertNotNull(configService);
}
@Test
public void testNacosConfigServiceExistBean() {
load(CustomNacosConfiguration.class, inlinedProperties);
boolean isExist = getContext().containsBean("nacosConfigService");
assertFalse(isExist);
ConfigService customConfigService = (ConfigService) getContext().getBean("customNacosConfigService");
assertNotNull(customConfigService);
}
@EnableConfigurationProperties(NacosProperties.class)
static class CustomNacosConfiguration {
@Bean
public ConfigService customNacosConfigService(final NacosProperties nacosProp) throws Exception {
Properties properties = new Properties();
if (nacosProp.getAcm() != null && nacosProp.getAcm().isEnabled()) {
//use aliyun ACM service
properties.put(PropertyKeyConst.ENDPOINT, nacosProp.getAcm().getEndpoint());
properties.put(PropertyKeyConst.NAMESPACE, nacosProp.getAcm().getNamespace());
//use children count ACM manager privilege
properties.put(PropertyKeyConst.ACCESS_KEY, nacosProp.getAcm().getAccessKey());
properties.put(PropertyKeyConst.SECRET_KEY, nacosProp.getAcm().getSecretKey());
} else {
properties.put(PropertyKeyConst.SERVER_ADDR, nacosProp.getUrl());
properties.put(PropertyKeyConst.NAMESPACE, nacosProp.getNamespace());
properties.put(PropertyKeyConst.USERNAME, nacosProp.getUsername());
properties.put(PropertyKeyConst.PASSWORD, nacosProp.getPassword());
}
return NacosFactory.createConfigService(properties);
}
}
}
| [
"noreply@github.com"
] | noreply@github.com |
b1ecbae819aacff97356b5f1af90f7bc4600ceeb | dec5d9d941edc2a116b3a178d827d12fb9db3373 | /app/src/main/java/com/app/recall/contract/SetPasswordContract.java | 16f6187c208e9b98d98f22a7b6d4ab8dccb920de | [] | no_license | ChansEbm/ChanChiBunJob | 53160c03a52d10d2a12f8cea68f9200f94d4a0d6 | 4e33da2beed0543d1db14d1d5fc92641e6885019 | refs/heads/master | 2021-01-11T16:32:08.538978 | 2017-01-26T11:43:40 | 2017-01-26T11:43:40 | 80,102,556 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 260 | java | package com.app.recall.contract;
import com.app.recall.view.IView;
/**
* Created by KenChan on 16/12/19.
*/
public class SetPasswordContract {
public interface View extends IView {}
public interface Presenter {}
public interface Model {}
} | [
"appbaba@AppbabadeiMac.local"
] | appbaba@AppbabadeiMac.local |
f45e5d2c2f6e034e084e83ab1e1ee3a23a12da6a | 2f1fc006015aa533b14be4318f98acbee67c2677 | /ssi_workspace/android-binding-read-only/.svn/pristine/f4/f45e5d2c2f6e034e084e83ab1e1ee3a23a12da6a.svn-base | 4197803ce944e1fe65885118538a32fc3eabb794 | [] | no_license | DevasenaInupakutika/Soton_Workspace | 39b3bdb6891a12c5530a10be9029dba0cb5b4404 | 0a91d8fd10764ef9ff0b35ff7f9236b06b91ca1f | refs/heads/master | 2021-01-21T22:29:37.508840 | 2014-12-19T10:37:59 | 2014-12-19T10:37:59 | 14,229,943 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,527 | package gueei.binding;
import android.view.View;
/*
* IBindableView is the interface that supports Custom Views
* (For views that is not supported in Android-Binding)
* For any custom view, you should implement this interface
* in order for the Attribute BinderV30 to recognize it.
*
* By Design, the Attribute BinderV30 would put custom ViewAttributes to higher
* precedence, for example, if you want to override the default behavior
* of the "visibility" tag, you can capture that value and provide another ViewAttribute
* associated with that tag. In this case, Attribute BinderV30 will stop looking for any
* other "parent" to create this attribute.
*/
public interface IBindableView<T extends View & IBindableView<T>> {
/**
* Each View Attribute should be created once only.
* The Custom View is suppose to create and return the designated attribute here
* Once it is created, it will be maintained by the Binder, just like other system ViewAttributes
* If you want to override the default behavior of other ViewAttributes, you can return it here
* or else, returning null will pass the control to super classes' implementation.
* To access the view Attribute, you can either maintain a reference to the attribute, or use
* Binder.getAttributeForView(View, AttributeId);
* @param attributeId : Attribute Id
* @return the ViewAttribute, or null if don't want to handle
*/
public ViewAttribute<? extends View, ?> createViewAttribute(String attributeId);
} | [
"devasena.prasad@gmail.com"
] | devasena.prasad@gmail.com | |
de904f5ea5bc49759163650d5b78108bd620438b | e0878b169afbf8e6cf04a7eb932eb124d076ce22 | /src/main/java/com/inline/app/inline/service/InlineService.java | 9ca2a255920b6143ad6571fae7775082ca24d81b | [] | no_license | imsprathap/inline | 8c2c897aabc353270b0c1d798e0e9d73598a4466 | 92b7843f7c326ac4be6c7319aa642660e2cd100b | refs/heads/master | 2022-12-16T22:31:25.173775 | 2020-09-14T18:00:58 | 2020-09-14T18:00:58 | 295,494,756 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 830 | java | package com.inline.app.inline.service;
import com.inline.app.inline.controller.InlineRequest;
import com.inline.app.inline.entity.FactoryDefect;
import com.inline.app.inline.repository.FactoryDefectRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class InlineService {
@Autowired
FactoryDefectRepository factoryDefectRepository;
public void addDefect(InlineRequest request){
FactoryDefect factoryDefect = new FactoryDefect();
factoryDefect.setBrand(request.getBrand());
factoryDefect.setValue(request.getValue());
factoryDefectRepository.save(factoryDefect);
}
public List<FactoryDefect> getDefects(){
return factoryDefectRepository.findAll();
}
}
| [
"Prathap.Shivakumar@target.com"
] | Prathap.Shivakumar@target.com |
53c284616fb6f3fbb4e9812c87024ec4ca9a0575 | a2d0a9cbb70de6867689ac3c4ceb204be82521d0 | /src/main/java/com/dbs/gateway/internal/client/AuthorizedUserFeignClient.java | 4dcd2d3886acd2ffa26c43bfb2fa393bbc8ac047 | [] | no_license | rajeevjha2k4/secure-microservice-poc | 2cc8cbf6acf7bd2908ba1322964a5bae9a960386 | 2178165344ea36c396615bb9c679754023ffda09 | refs/heads/master | 2020-04-15T11:56:00.831062 | 2019-01-08T13:09:40 | 2019-01-08T13:09:40 | 164,651,489 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,645 | java | package com.dbs.gateway.internal.client;
import java.lang.annotation.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientsConfiguration;
import org.springframework.core.annotation.AliasFor;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@FeignClient
public @interface AuthorizedUserFeignClient {
@AliasFor(annotation = FeignClient.class, attribute = "name")
String name() default "";
/**
* A custom <code>@Configuration</code> for the feign client.
*
* Can contain override <code>@Bean</code> definition for the pieces that make up the client, for instance {@link
* feign.codec.Decoder}, {@link feign.codec.Encoder}, {@link feign.Contract}.
*
* @see FeignClientsConfiguration for the defaults
*/
@AliasFor(annotation = FeignClient.class, attribute = "configuration")
Class<?>[] configuration() default OAuth2UserClientFeignConfiguration.class;
/**
* An absolute URL or resolvable hostname (the protocol is optional).
*/
String url() default "";
/**
* Whether 404s should be decoded instead of throwing FeignExceptions.
*/
boolean decode404() default false;
/**
* Fallback class for the specified Feign client interface. The fallback class must implement the interface
* annotated by this annotation and be a valid Spring bean.
*/
Class<?> fallback() default void.class;
/**
* Path prefix to be used by all method-level mappings. Can be used with or without <code>@RibbonClient</code>.
*/
String path() default "";
}
| [
"jhipster-bot@jhipster.tech"
] | jhipster-bot@jhipster.tech |
7db74129e3c571ac4e2b045650c5323dccf9bc6e | 5eeb741734da7b8d7ebb9fca7e8381715a10a14a | /src/main/java/org/jenkinsci/plugins/dockerbuildstep/cmd/ExecStartCommand.java | 12365f5684c23de988166e963dabccaecd01da8e | [
"MIT"
] | permissive | philshon/docker-build-step-plugin | 06b7be5e9ac8525b5aba41bf81be31c97b5a0120 | d8d3901ffe063b283769b06bcc3486d9b0f08b01 | refs/heads/master | 2020-12-26T21:11:42.889650 | 2015-04-07T20:07:15 | 2015-04-07T20:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,586 | java | package org.jenkinsci.plugins.dockerbuildstep.cmd;
import hudson.Extension;
import hudson.model.AbstractBuild;
import java.util.Arrays;
import java.util.List;
import org.jenkinsci.plugins.dockerbuildstep.log.ConsoleLogger;
import org.jenkinsci.plugins.dockerbuildstep.util.Resolver;
import org.kohsuke.stapler.DataBoundConstructor;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.DockerException;
public class ExecStartCommand extends DockerCommand {
private final String commandIds;
@DataBoundConstructor
public ExecStartCommand(String commandIds) {
this.commandIds = commandIds;
}
public String getCommandIds() {
return commandIds;
}
@Override
public void execute(@SuppressWarnings("rawtypes") AbstractBuild build, ConsoleLogger console)
throws DockerException {
if (commandIds == null || commandIds.isEmpty()) {
console.logError("Command ID cannot be empty");
throw new IllegalArgumentException("Command ID cannot be empty");
}
String commandIdsRes = Resolver.buildVar(build, commandIds);
List<String> cmdIds = Arrays.asList(commandIdsRes.split(","));
DockerClient client = getClient(null);
// TODO execute async on containers
for (String cmdId : cmdIds) {
client.execStartCmd(cmdId).exec();
console.logInfo(String.format("Executing command with ID '%s'", cmdId));
// TODO show output?
}
}
@Extension
public static class ExecStartCommandDescriptor extends DockerCommandDescriptor {
@Override
public String getDisplayName() {
return "Start exec instance in container(s)";
}
}
}
| [
"vjuranek@redhat.com"
] | vjuranek@redhat.com |
69beb5c621b4c2dcc85dd48636294dcf85b209d4 | 532e996c49c8b063959f5072eb178846e6133848 | /app/src/androidTest/java/com/hayukleung/kps/ExampleInstrumentedTest.java | 1ea0c031fe3e500d01d91f3e98521ef36b393324 | [] | no_license | krmao/KeyboardPanelSwitch | 02d7c156268c734fd81135a2d37a229355d76c83 | c7d00b02c79cdb2b7b73b0d5c53ad8503577dfe5 | refs/heads/master | 2020-04-28T21:39:43.000475 | 2016-10-09T06:01:03 | 2016-10-09T06:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 720 | java | package com.hayukleung.kps;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest {
@Test public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.hayukleung.kps", appContext.getPackageName());
}
}
| [
"hayukleung@gmail.com"
] | hayukleung@gmail.com |
c871e0bd6543fcddbf4083cc7f260dea9cdcef5a | 8ead5ff8d527e4b4d98cd54e9b84f50ea824f2be | /cj.lns.chip.sos.website.market.app.cyberport/src/cj/lns/chip/sos/website/market/app/cyberport/provider/CyberportAppFairProvider.java | ae2d9d6a317a2b22f58f5769e4a3ef73c88ff808 | [] | no_license | 911Steven/cj.lns.sos | 9976efcf28418094e315324a4ce145c56bb57478 | af82a5e7555b99780a9606b5e848861ce1ae5503 | refs/heads/master | 2020-07-05T16:22:11.341767 | 2018-10-12T02:13:41 | 2018-10-12T02:13:41 | 202,696,541 | 1 | 0 | null | 2019-08-16T09:10:35 | 2019-08-16T09:10:35 | null | UTF-8 | Java | false | false | 490 | java | package cj.lns.chip.sos.website.market.app.cyberport.provider;
import java.util.List;
import cj.lns.chip.sos.website.AppSO;
import cj.lns.chip.sos.website.IAppProvider;
import cj.lns.chip.sos.website.market.app.provider.AppConfigurableProvider;
import cj.studio.ecm.annotation.CjService;
@CjService(name = "cyberportAppFairProvider")
public class CyberportAppFairProvider extends AppConfigurableProvider
implements IAppProvider{
public List<AppSO> getAllApps(){
return apps();
}
}
| [
"carocean.jofers@icloud.com"
] | carocean.jofers@icloud.com |
9385077f74862c04925b6277adcb717cbdc8005b | 4b20962f9d8a324e546995667ba6a966b8c3bb84 | /app/src/main/java/com/smartface/base/ActivityHelper.java | d19391e6db2247792e9186d3c446b37bfe88b220 | [
"Apache-2.0"
] | permissive | boliu-mobile/SmartFace | a8c0339365f6b65b8d9b8dfd9b03f02fb9364cdf | 7ac6833a59ceb974271b50382d1000969a205cf7 | refs/heads/master | 2021-01-10T14:22:01.251487 | 2016-12-02T01:07:03 | 2016-12-02T01:07:03 | 52,200,594 | 8 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,918 | java | package com.smartface.base;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import com.smartface.base.util.DialogHelper;
public class ActivityHelper {
final static String TAG = ActivityHelper.class.getSimpleName();
/**
* 对应的Activity
*/
private Activity mActivity;
/**
* 对话框帮助类
*/
private DialogHelper mDialogHelper;
public ActivityHelper(Activity activity) {
mActivity = activity;
mDialogHelper = new DialogHelper(mActivity);
}
public void finish() {
mDialogHelper.dismissProgressDialog();
}
/**
* 弹对话框
*
* @param title 标题
* @param msg 消息
* @param positive 确定
* @param positiveListener 确定回调
* @param negative 否定
* @param negativeListener 否定回调
*/
public void alert(String title, String msg, String positive,
DialogInterface.OnClickListener positiveListener, String negative,
DialogInterface.OnClickListener negativeListener) {
mDialogHelper.alert(title, msg, positive, positiveListener, negative, negativeListener);
}
/**
* 弹对话框
*
* @param title 标题
* @param msg 消息
* @param positive 确定
* @param positiveListener 确定回调
* @param negative 否定
* @param negativeListener 否定回调
* @param isCanceledOnTouchOutside 外部是否可点取消
*/
public void alert(String title, String msg, String positive,
DialogInterface.OnClickListener positiveListener, String negative,
DialogInterface.OnClickListener negativeListener,
Boolean isCanceledOnTouchOutside) {
mDialogHelper.alert(title, msg, positive, positiveListener, negative, negativeListener,
isCanceledOnTouchOutside);
}
/**
* TOAST
*
* @param msg 消息
* @param period 时长
*/
public void toast(String msg, int period) {
mDialogHelper.toast(msg, period);
}
/**
* 显示进度对话框
*
* @param msg 消息
*/
public void showProgressDialog(String msg) {
mDialogHelper.showProgressDialog(msg);
}
/**
* 显示可取消的进度对话框
*
* @param msg 消息
*/
public void showProgressDialog(final String msg, final boolean cancelable,
final OnCancelListener cancelListener) {
mDialogHelper.showProgressDialog(msg, cancelable, cancelListener, true);
}
public void dismissProgressDialog() {
mDialogHelper.dismissProgressDialog();
}
}
| [
"signnowmobile@gmail.com"
] | signnowmobile@gmail.com |
dc403b4bde849e5a77ecf60c65b81f5155b2e12e | 7a41b17376607c6f43147cc9eaa8ea2ac9400be8 | /common/src/main/java/io/FileUtility.java | 5c7feac0578a44fd32d954489e87e3f8ad5fbfad | [] | no_license | I-Demon/Cloud_Storage | f13a7c1781d416fc53ea4daeb7db845b55cbd0fd | e83b82bf72406e0d4a00d95d1600f6551dc2c502 | refs/heads/master | 2022-12-01T00:10:00.090636 | 2020-08-02T09:42:27 | 2020-08-02T09:42:27 | 281,483,216 | 0 | 0 | null | 2020-08-02T09:43:24 | 2020-07-21T19:13:37 | Java | UTF-8 | Java | false | false | 2,416 | java | package io;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class FileUtility {
public static void createFile(String fileName) throws IOException {
File file = new File(fileName);
if (!file.exists()) {
file.createNewFile();
}
}
public static void createDirectory(String dirName) throws IOException {
File file = new File(dirName);
if (!file.exists()) {
file.mkdir();
}
}
public static void move(File dir, File file) throws IOException {
String path = dir.getAbsolutePath() + "/" + file.getName();
createFile(path);
InputStream is = new FileInputStream(file);
try(OutputStream os = new FileOutputStream(new File(path))) {
byte [] buffer = new byte[8192];
while (is.available() > 0) {
int readBytes = is.read(buffer);
System.out.println(readBytes);
os.write(buffer, 0, readBytes);
}
}
}
public static void sendFile(Socket socket, File file) throws IOException {
InputStream is = new FileInputStream(file);
long size = file.length();
int count = (int) (size / 8192) / 10;
int readBuckets = 0;
// /==========/
try(DataOutputStream os = new DataOutputStream(socket.getOutputStream())) {
byte [] buffer = new byte[8192];
os.writeUTF(file.getName());
System.out.print("/");
while (is.available() > 0) {
int readBytes = is.read(buffer);
readBuckets++;
if (count > 0) {
if (readBuckets % count == 0) {
System.out.print("=");
}
}
os.write(buffer, 0, readBytes);
}
System.out.println("/");
}
}
public static void main(String[] args) throws IOException {
// createFile("./common/1.txt");
// createDirectory("./common/dir1");
// long start = System.currentTimeMillis();
// move(new File("./common/dir1"), new File("./common/1.txt"));
// long end = System.currentTimeMillis();
// System.out.println("time: " + (end - start) + " ms.");
sendFile(new Socket("localhost", 8189),
new File("c:/temp/Кот.mp4"));
}
}
| [
"dshu77@gmail.com"
] | dshu77@gmail.com |
a44e78fe048f1ad834676a9dd9e0fda5036ae912 | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/XWIKI-13544-9-11-NSGA_II-WeightedSum:TestLen:CallDiversity/org/xwiki/sheet/internal/SheetDocumentDisplayer_ESTest.java | 3ed9eff5732471c8f0cb07ecdd3ab704d73cbdfe | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 575 | java | /*
* This file was automatically generated by EvoSuite
* Sun Jan 19 00:05:41 UTC 2020
*/
package org.xwiki.sheet.internal;
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(useVFS = true, useJEE = true)
public class SheetDocumentDisplayer_ESTest extends SheetDocumentDisplayer_ESTest_scaffolding {
@Test
public void notGeneratedAnyTest() {
// EvoSuite did not generate any tests
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
42b63370102413447f594a70a6cf1d7de65bcb6e | 16c35c793b70ba6195900522776c7b7906fc9d5a | /rest-restservice-bankapp/src/main/java/com/moneymoney/app/service/AccountServiceImpl.java | c6c6639f7c1005b31396d86dccc29e56c34cbfd6 | [] | no_license | jahnavialapati/Bankapp-eureka-appconfig-zuul-hystrix | 41e3d6aa8b94d335a909dfcb2b6f7bc68d2c2ecb | 93eb6f856ecb4701557754ff337ad78c21a6fced | refs/heads/master | 2020-04-19T15:28:45.666104 | 2019-01-31T12:52:55 | 2019-01-31T12:52:55 | 168,275,717 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,011 | java | package com.moneymoney.app.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.moneymoney.app.entity.Account;
import com.moneymoney.app.entity.CurrentAccount;
import com.moneymoney.app.entity.SavingsAccount;
import com.moneymoney.app.repository.AccountRepository;
@Service
public class AccountServiceImpl implements AccountService {
@Autowired
private AccountRepository repository;
@Override
public List<Account> findAll() {
return repository.findAll();
}
@Override
public Optional<Account> findById(int accountNumber) {
return repository.findById(accountNumber);
}
@Override
public void updateSavingsAccount(SavingsAccount account) {
repository.save(account);
}
@Override
public void updateCurrentAccount(CurrentAccount account) {
repository.save(account);
}
@Override
public void updateBalance(Account account) {
repository.save(account);
}
}
| [
"jahnavi.alapati@capgemini.com"
] | jahnavi.alapati@capgemini.com |
c646bb72bb6536d355954985551d3bb4e98244d2 | a1bb5417b395f87ec2b5181d798cb20569f8ccc0 | /src/14_GUI_dan_Database/Peminjaman1941723005Fikrul.java | 9fa33ecc15117b9c8156832891bece31474d7c65 | [] | no_license | muhammadfikrul/laporan-praktikum-pbo-2019 | 1e3265b2c33b1f1bb10a163a396fb9f1221414d7 | e4bbcdd3858e10efc3a40e38e863286ea5d6044b | refs/heads/master | 2020-07-17T09:14:04.091150 | 2019-12-10T05:30:21 | 2019-12-10T05:30:21 | 205,992,150 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,999 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package backend;
/**
*
* @author muham
*/
public class Peminjaman1941723005Fikrul {
private int idpeminjaman;
private Anggota1941723005Fikrul anggota = new Anggota1941723005Fikrul();
private Buku1941723005Fikrul buku = new Buku1941723005Fikrul();
private String tanggalpinjam, tanggalkembali;
public int getIdpeminjaman() {
return idpeminjaman;
}
public void setIdpeminjaman(int idpeminjaman) {
this.idpeminjaman = idpeminjaman;
}
public Anggota1941723005Fikrul getAnggota() {
return anggota;
}
public void setAnggota(Anggota1941723005Fikrul anggota) {
this.anggota = anggota;
}
public Buku1941723005Fikrul getBuku() {
return buku;
}
public void setBuku(Buku1941723005Fikrul buku) {
this.buku = buku;
}
public String getTanggalpinjam() {
return tanggalpinjam;
}
public void setTanggalpinjam(String tanggalpinjam) {
this.tanggalpinjam = tanggalpinjam;
}
public String getTanggalkembali() {
return tanggalkembali;
}
public void setTanggalkembali(String tanggalkembali) {
this.tanggalkembali = tanggalkembali;
}
public Peminjaman1941723005Fikrul() {
}
public Peminjaman1941723005Fikrul(Anggota1941723005Fikrul anggota, Buku1941723005Fikrul buku, String tanggalpinjam, String tanggalkembali) {
this.anggota = anggota;
this.buku = buku;
this.tanggalpinjam = tanggalpinjam;
this.tanggalkembali = tanggalkembali;
}
public Peminjaman1941723005Fikrul getByIdFikrul(int id) {
Peminjaman1941723005Fikrul peminjaman = new Peminjaman1941723005Fikrul();
ResultSet rs = DBHelper1941723005Fikrul.selectQueryFikrul("SELECT "
+ "p.idpeminjaman AS idpeminjaman, "
+ "p.tanggalpinjam AS tanggalpinjam, "
+ "p.tanggalkembali AS tanggalkembali, "
+ "a.penulis AS penulis, "
+ "k.nama AS nama "
+ "FROM buku b "
+ "INNER JOIN kategori k ON k.idkategori = b.idkategori "
+ "WHERE b.idbuku = '" + id + "'");
try {
while (rs.next()) {
buku = new Buku1941723005Fikrul();
buku.setIdbukuFikrul(rs.getInt("idbuku"));
buku.getKategoriFikrul().setNamaFikrul(rs.getString("nama"));
buku.setJudulFikrul(rs.getString("judul"));
buku.setPenerbitFikrul("penerbit");
buku.setPenulisFikrul(rs.getString("penulis"));
}
} catch (Exception e) {
e.printStackTrace();
}
return buku;
}
)
}
}
| [
"50628755+muhammadfikrul@users.noreply.github.com"
] | 50628755+muhammadfikrul@users.noreply.github.com |
83fbc51b5ad86d8cc52992e3993a5b483e8ba63e | a2e4bf48447542b9e9d5093910f6a0cc4dbb2625 | /LAB1/kolichestvo_delitelei/src/Main.java | 21bcb87f4ac791c72648424632764f17134e567f | [] | no_license | zhanabaikyzy2017/OOP-2018 | 3fc6ae86529af3f649c975858e1e2129402ae4d8 | d46d1cf17a9ee847f4cd453214502b8881d2523a | refs/heads/master | 2020-03-28T02:13:25.926037 | 2018-11-27T05:38:13 | 2018-11-27T05:38:13 | 147,555,888 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 369 | java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
Scanner s = new Scanner(System.in);
int a,b ;
b = 0;
a = s.nextInt();
for(int i = 1; i <= a; i++){
if(a % i == 0){
b++;
}
}
System.out.print(b);
}
}
| [
"zhanabaikyzy2017@gmail.com"
] | zhanabaikyzy2017@gmail.com |
283ea8a8af9a77ef0c093964ff62aa5168101ec9 | 9097791db806bddae9e9bafa945d607aa0d04118 | /happyhouse_final/src/main/java/com/ssafy/happyhouse/service/UserService.java | 9837ed637ade1019468ecf231a94a659d95dd00b | [] | no_license | HAEJINN/HappyHouse | a81734eba383bf204ee24bb79cb0a8db9098c09a | 3d08822beab9a6ebc57452695d49f9976d8a1ee5 | refs/heads/master | 2023-08-20T03:28:30.374036 | 2021-05-26T11:17:54 | 2021-05-26T11:17:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 565 | java | package com.ssafy.happyhouse.service;
import java.util.List;
import java.util.Map;
import com.ssafy.happyhouse.model.HouseInfoDto;
import com.ssafy.happyhouse.model.UserDto;
public interface UserService {
UserDto login(Map<String, String> map);
String searchpwd(Map<String, String> map);
boolean register(UserDto user);
boolean modifyuser(UserDto user);
boolean deleteuser(UserDto user);
List<HouseInfoDto> userfavorite(String userid);
boolean insertuserfavorite(Map<String, String> map);
boolean deletuserfavorite(Map<String, String> map);
}
| [
"hwangju7476@naver.com"
] | hwangju7476@naver.com |
cc705eded5ec3b0d0ccb04fc1e5b15beed7c6cb8 | 06135bd0224a459e25fb5285a4562351e094138c | /seawar_1.3_ly/app/foxu/sea/gm/operators/ViewUnlimitDevice.java | d62f0fbb023a9e2d992de9146cc6ae3360d11543 | [] | no_license | szdksconan/seawar | f33604a683d5ecabb815a489547b271f46f939ca | 8763c2ed12e6e9fdf13ec8345fd1f42773ce70e7 | refs/heads/master | 2021-01-25T04:49:47.992220 | 2017-06-06T07:31:24 | 2017-06-06T07:31:24 | 93,488,774 | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 1,711 | java | package foxu.sea.gm.operators;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javapns.json.JSONArray;
import javapns.json.JSONObject;
import mustang.io.ByteBuffer;
import shelby.httpclient.HttpRequester;
import shelby.httpclient.HttpRespons;
import foxu.cc.GameDBCCAccess;
import foxu.sea.gm.GMConstant;
import foxu.sea.gm.ServerInfo;
import foxu.sea.kit.SeaBackKit;
public class ViewUnlimitDevice extends ToCenterOperator
{
public static int VIEW_UNLIMIT=11;
@Override
public int operate(String user,Map<String,String> params,
JSONArray jsonArray,ServerInfo info)
{
ByteBuffer data=new ByteBuffer();
data.clear();
data.writeByte(VIEW_UNLIMIT);
data=sendHttpData(data);
if(data==null) return GMConstant.ERR_GAME_CENTER_COMUNICATION_ERROR;
int len=data.readInt();
try
{
JSONObject json=null;
for(int i=0;i<len;i++)
{
json=new JSONObject();
json.put("name",data.readUTF());
jsonArray.put(json);
}
}
catch(Exception e)
{
e.printStackTrace();
}
return GMConstant.ERR_SUCCESS;
}
public ByteBuffer sendHttpData(ByteBuffer data)
{
HttpRequester request=new HttpRequester();
String httpData=SeaBackKit.createBase64(data);
request.setDefaultContentEncoding("UTF-8");
HashMap<String,String> map=new HashMap<String,String>();
map.put("data",httpData);
// 设置port
map.put("port","1");
HttpRespons re=null;
try
{
re=request.send("http://"+GameDBCCAccess.GAME_CENTER_IP+":"
+GameDBCCAccess.GAME_CENTER_HTTP_PORT+"/","POST",map,null);
}
catch(IOException e)
{
// TODO 自动生成 catch 块
e.printStackTrace();
return null;
}
return SeaBackKit.load(re.getContent());
}
}
| [
"szdksconan@hotmail.com"
] | szdksconan@hotmail.com |
24602726813274fa97b5a64095df0dbec0765acf | 26d6118f6934e93acaf92f4c2d31e4f230bb288d | /src/main/java/com/modules/sys/realm/sessionDao/RedisSessionDao.java | 40c82ab301a03e207f5629e84aabf66902ba3ab1 | [] | no_license | MaShuShu/GatherDemo_v2.0 | d8fa24b4245f230b23ebd6ae40b807763a3ea8f4 | 25f4f86819b17f0de183140ce9fbb7c73fe353a8 | refs/heads/master | 2021-01-12T17:15:46.088585 | 2016-07-25T02:50:46 | 2016-07-25T02:50:46 | null | 0 | 0 | null | null | null | null | GB18030 | Java | false | false | 4,645 | java | package com.modules.sys.realm.sessionDao;
import java.io.Serializable;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.UnknownSessionException;
import org.apache.shiro.session.mgt.ValidatingSession;
import org.apache.shiro.session.mgt.eis.CachingSessionDAO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.modules.sys.util.RedisUtil;
import com.modules.sys.util.SerializationUtils;
public class RedisSessionDao extends CachingSessionDAO {
private static Logger logger = LoggerFactory.getLogger(RedisSessionDao.class);
// 登录成功的信息存储在 session 的这个 attribute 里.
private static final String AUTHENTICATED_SESSION_KEY = "org.apache.shiro.subject.support.DefaultSubjectContext_AUTHENTICATED_SESSION_KEY";
private String keyPrefix = "shiro_redis_session:";
private String deleteChannel = "shiro_redis_session:delete";
//20分钟,单位是秒
private long timeToLiveSeconds = 1200;
private RedisUtil redis;
@Override
protected Serializable doCreate(Session session) {
logger.debug("=> Create session with ID [{}]",session.getId());
//创建一个Id并设置给session
Serializable sessionId = this.generateSessionId(session);
assignSessionId(session, sessionId);
//session 由 Redis 缓存失效决定
String key = SerializationUtils.sessionKey(keyPrefix, session);
String value = SerializationUtils.sessionFromString(session);
redis.set(key, value, timeToLiveSeconds);
return sessionId;
}
/**
* 决定从本地 Cache 还是从 Redis 读取 Session.
* @param sessionId
* @return
* @throws UnknownSessionException
*/
@Override
public Session readSession(Serializable sessionId) throws UnknownSessionException {
Session s = getCachedSession(sessionId);
// 1. 如果本地缓存没有,则从 Redis 读取。
// 2. ServerA 登录了,ServerB 没有登录但缓存里有此 session,所以从 Redis 读取而不是直接用缓存里的
if (s == null || (
s.getAttribute(AUTHENTICATED_SESSION_KEY) != null
&& !(Boolean) s.getAttribute(AUTHENTICATED_SESSION_KEY)
)) {
s = doReadSession(sessionId);
if (s == null) {
throw new UnknownSessionException("There is no session with id [" + sessionId + "]");
}
return s;
}
return s;
}
@Override
protected Session doReadSession(Serializable sessionId) {
logger.debug("=> Read session with ID [{}]",sessionId);
String value = (String) redis.get(SerializationUtils.sessionKey(keyPrefix, sessionId));
//例如 Redis 调用 flushdb 情况下所有的数据,读到的session就是空的
if(value != null){
Session session = (Session) SerializationUtils.sessionIdFromString(value);
super.cache(session, session.getId());
return session;
}
return null;
}
@Override
protected void doUpdate(Session session) {
// 如果会话过期/停止,没必要再更新了
if (session instanceof ValidatingSession && !((ValidatingSession) session).isValid()) {
logger.debug("=> Invalid session.");
return;
}
logger.debug("=> Update session with ID [{}]", session.getId());
String key = SerializationUtils.sessionKey(keyPrefix, session);
String value = SerializationUtils.sessionFromString(session);
redis.set(key, value, timeToLiveSeconds);
}
@Override
protected void doDelete(Session session) {
logger.debug("=> Delete session with ID [{}]", session.getId());
redis.remove(SerializationUtils.sessionKey(keyPrefix, session));
// 发布消息通知其它 Server 上的 cache 删除 session.
redis.publish(deleteChannel, SerializationUtils.sessionIdToString(session));
}
public String getKeyPrefix() {
return keyPrefix;
}
public void setKeyPrefix(String keyPrefix) {
this.keyPrefix = keyPrefix;
}
public String getDeleteChannel() {
return deleteChannel;
}
public void setDeleteChannel(String deleteChannel) {
this.deleteChannel = deleteChannel;
}
public long getTimeToLiveSeconds() {
return timeToLiveSeconds;
}
public void setTimeToLiveSeconds(long timeToLiveSeconds) {
this.timeToLiveSeconds = timeToLiveSeconds;
}
public RedisUtil getRedis() {
return redis;
}
public void setRedis(RedisUtil redis) {
this.redis = redis;
}
}
| [
"359428217@qq.com"
] | 359428217@qq.com |
5b16b8f3d7702be81a50547a7f6abb5d46fdedba | 674757c0d37d18dc1aa41c19cfecdc8745f8ba19 | /src/test/ebay/ProductsPage.java | be7e2ec443ae9e368c743497d1ebca011026de99 | [] | no_license | rdcs1998/EbayTestingSelenium | eb4ea752b639f8e03f93dbb7766c555513997981 | c2fcb34cec290924d61b316b8e24b927a55b42f7 | refs/heads/main | 2023-04-10T16:47:19.158353 | 2021-04-22T15:06:45 | 2021-04-22T15:06:45 | 360,560,066 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,971 | java | package test.ebay;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.List;
public class ProductsPage extends Base {
private final WebDriver driver;
private Utils utils;
public ProductsPage(WebDriver driver) {
super(driver);
this.driver = driver;
this.utils = new Utils();
}
public String xpProductNames = "//h3[contains(@class, 's-item__title')]";
public String xpProductPrices = "//span[@class='s-item__price']";
public String xpLinkProductName = "//h3[contains(@class, 's-item__title') and text()='$product']";
public String xpBtnBuyItNow = "//a[contains(text(), 'Buy It Now')]";
public void search() {
searchProduct("iphone");
getProductDescriptions();
getProductPrices();
}
public void getProductDescriptions() {
utils.explicitlyWait(driver, "(" + xpProductNames + ")[1]");
List<WebElement> listBrands = driver.findElements(By.xpath(xpProductNames));
System.out.println("No of products retrieved: " + listBrands.size());
for (WebElement brand : listBrands) {
System.out.println("Brand: " + brand.getText());
}
}
public void getProductPrices() {
utils.explicitlyWait(driver, "(" + xpProductPrices + ")[1]");
List<WebElement> listPrices = driver.findElements(By.xpath(xpProductPrices));
System.out.println("No of prices retrieved: " + listPrices.size());
for (WebElement price : listPrices) {
System.out.println("Price: " + price.getText());
}
}
public void buyItNow(String product) {
searchProduct(product);
WebElement linkProduct = utils.explicitlyWait(driver, xpLinkProductName.replace("$product", product));
linkProduct.click();
WebElement btnBuyItNow = utils.explicitlyWait(driver, xpBtnBuyItNow);
btnBuyItNow.click();
}
}
| [
"rdcs1998@gmail.com"
] | rdcs1998@gmail.com |
e0a5ec34a53b1d65d479bfb2e29c60decc1d7f87 | 77de23e80b26ec8d2a5123c401ab9479876ce773 | /src/main/java/com/example/demo/contorller/JdbcController.java | 3944d60f43a0cd1ccb80400c79d8615f243af09e | [] | no_license | yuhan-yhnidhogg/mytest | abc3f1dfde78b25e69c36252e084bce9a4739cff | 3f63b3962d7956b210ad9021d4aa4e2abd6b19f1 | refs/heads/master | 2022-11-30T02:04:58.567035 | 2020-07-24T06:43:46 | 2020-07-24T06:43:46 | 271,022,099 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 689 | java | package com.example.demo.contorller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
@RestController
public class JdbcController {
@Autowired
private JdbcTemplate jdbcTemplate;
@RequestMapping("jdbcSelect")
public String jdbcSelect(){
String sql = "select e.emp_no from employees e order by e.emp_no asc";
List<Map<String,Object>> mapList = jdbcTemplate.queryForList(sql);
return mapList.toString();
}
}
| [
"yhnidhogg@icloud.com"
] | yhnidhogg@icloud.com |
da70ef73c8aed026fd8879d34810711c4605215c | af995ea8f54000864ca63f3cf16ec556f8d3233f | /app/src/main/java/com/acs/btdemo/ItemPickedParentVH.java | 39f9855c86b9267a779cfab82edabdf519a38d73 | [] | no_license | danisw/new_android_RFID | fd23a32636db3912b7b309a7ff9323452cddfea8 | d6af819e029db2c5b2a77cc3c626f43f944906f2 | refs/heads/master | 2020-08-31T13:33:15.075714 | 2019-10-31T08:33:48 | 2019-10-31T08:33:48 | 218,701,414 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 61 | java | package com.acs.btdemo;
public class ItemPickedParentVH {
}
| [
"mitadaniswari@gmail.com"
] | mitadaniswari@gmail.com |
cae8a4c6e869d23833418a4d19867c9f05538b7b | 818969adc6d3d82426d5018a137e56e5d492a699 | /src/main/java/transformation/sas/overcover/CliqueSearch.java | d749d578ed49995acc9e11e2ecc267f8abbaa49c | [] | no_license | Flamak/svcrunch | cbf8060e03bedd3281a92223b9d8a5633d022a7a | 0d23c8108fc192faca578acfce0133e7da52d153 | refs/heads/master | 2020-06-27T19:11:55.867340 | 2020-05-08T16:50:17 | 2020-05-08T16:50:17 | 74,520,993 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,682 | java | /*
* Author: Filip Dvořák <filip.dvorak@runbox.com>
*
* Copyright (c) 2012 Filip Dvořák <filip.dvorak@runbox.com>, all rights reserved
*
* Publishing, providing further or using this program is prohibited
* without previous written permission of the author. Publishing or providing
* further the contents of this file is prohibited without previous written
* permission of the author.
*/
package transformation.sas.overcover;
import fLib.utils.random.RandomSubSequence;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.Random;
import transformation.sas.overcover.entities.StandardAtom;
import transformation.sas.overcover.planninggraph.MutexAtoms;
/**
*
* @author FD
*/
public class CliqueSearch {
public static LinkedList<LinkedList<StandardAtom>> GetMutexSetsExhaustive(MutexAtoms mx, LinkedHashSet<StandardAtom> atoms) {
LinkedList<LinkedList<StandardAtom>> ret = new LinkedList<>();
NaiveMutexSearchComplete(mx, new LinkedList<StandardAtom>(), new LinkedHashSet<>(atoms), ret);
return ret;
}
public static LinkedList<LinkedList<StandardAtom>> GetMutexSetsLimited(MutexAtoms mx, LinkedHashSet<StandardAtom> atoms) {
LinkedList<LinkedList<StandardAtom>> ret = new LinkedList<>();
LinkedList<StandardAtom> ats = new LinkedList<>(atoms);
int limit = 5000;//atoms.size() * 250;
while (limit-- > 0) {
Collections.shuffle(ats);
LinkedList<StandardAtom> ms = NaiveMutexSearchOneShot(mx, new LinkedList<StandardAtom>(), new LinkedList<>(ats));
if (ms != null) {
ret.add(ms);
}
}
return ret;
}
private static boolean fits(MutexAtoms mAtoms, LinkedList<StandardAtom> currentSet, StandardAtom one) {
boolean ret = true;
for (StandardAtom a : currentSet) {
if (!mAtoms.Contains(a, one)) {
ret = false;
}
}
return ret;
}
private static void NaiveMutexSearchComplete(MutexAtoms mAtoms, LinkedList<StandardAtom> currentSet, LinkedHashSet<StandardAtom> candidates, LinkedList<LinkedList<StandardAtom>> mutexSets) {
ArrayList<StandardAtom> newCandidates = new ArrayList<>();
for (StandardAtom at : candidates) {
if (fits(mAtoms, currentSet, at)) {
newCandidates.add(at);
}
}
if (newCandidates.isEmpty()) {
if (currentSet.size() > 0) {
mutexSets.add(currentSet);
}
} else {
for (StandardAtom at : newCandidates) {
LinkedList<StandardAtom> newCurrent = new LinkedList<>(currentSet);
LinkedHashSet<StandardAtom> newNewCandidates = new LinkedHashSet<>(newCandidates);
Iterator<StandardAtom> it = newNewCandidates.iterator();
boolean done = false;
while (!done) {
StandardAtom atom = it.next();
it.remove();
if (atom == at) {
done = true;
}
}
newCurrent.add(at);
NaiveMutexSearchComplete(mAtoms, newCurrent, newNewCandidates, mutexSets);
}
}
}
/**
* finds one clique by adding elements from candidates one by one, while each addition is followed by filtering the remaining candidates
*
* @param mAtoms
* @param currentSet
* @param candidates
* @return
*/
private static LinkedList<StandardAtom> NaiveMutexSearchOneShot(MutexAtoms mAtoms, LinkedList<StandardAtom> currentSet, LinkedList<StandardAtom> candidates) {
// if none was found, we have a maximal clique
if (candidates.isEmpty()) {
if (currentSet.size() > 0) {
return currentSet;
} else {
return null;
}
} else {
// else choose a candidate and filter out everything else
StandardAtom i = candidates.poll();
currentSet.add(i);
//exclude the candidates that are not connected with the chosen extension
//(they cannot be possibly used for further extensions)
Iterator<StandardAtom> it = candidates.iterator();
while (it.hasNext()) {
if (!mAtoms.Contains(i, it.next())) { //inversion here !!
it.remove();
}
}
return NaiveMutexSearchOneShot(mAtoms, currentSet, candidates);
}
}
}
| [
"filip@dvorak.fr"
] | filip@dvorak.fr |
85aab51fa512c2fa9fa8e79331e2333027114333 | 9e20645e45cc51e94c345108b7b8a2dd5d33193e | /L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/network/clientpackets/RequestAcquireSkill.java | fc06ad39e93518bd4af3525ea8a5d8a9d7ff1147 | [] | no_license | Enryu99/L2jMobius-01-11 | 2da23f1c04dcf6e88b770f6dcbd25a80d9162461 | 4683916852a03573b2fe590842f6cac4cc8177b8 | refs/heads/master | 2023-09-01T22:09:52.702058 | 2021-11-02T17:37:29 | 2021-11-02T17:37:29 | 423,405,362 | 2 | 2 | null | null | null | null | UTF-8 | Java | false | false | 19,972 | java | /*
* This file is part of the L2J Mobius project.
*
* 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 org.l2jmobius.gameserver.network.clientpackets;
import java.util.List;
import org.l2jmobius.Config;
import org.l2jmobius.commons.network.PacketReader;
import org.l2jmobius.gameserver.data.xml.SkillData;
import org.l2jmobius.gameserver.data.xml.SkillTreeData;
import org.l2jmobius.gameserver.enums.AcquireSkillType;
import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType;
import org.l2jmobius.gameserver.instancemanager.QuestManager;
import org.l2jmobius.gameserver.model.SkillLearn;
import org.l2jmobius.gameserver.model.actor.Npc;
import org.l2jmobius.gameserver.model.actor.instance.FishermanInstance;
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
import org.l2jmobius.gameserver.model.actor.instance.VillageMasterInstance;
import org.l2jmobius.gameserver.model.clan.Clan;
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
import org.l2jmobius.gameserver.model.events.EventDispatcher;
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerSkillLearn;
import org.l2jmobius.gameserver.model.holders.ItemHolder;
import org.l2jmobius.gameserver.model.holders.SkillHolder;
import org.l2jmobius.gameserver.model.items.instance.ItemInstance;
import org.l2jmobius.gameserver.model.quest.Quest;
import org.l2jmobius.gameserver.model.quest.QuestState;
import org.l2jmobius.gameserver.model.skills.CommonSkill;
import org.l2jmobius.gameserver.model.skills.Skill;
import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.SystemMessageId;
import org.l2jmobius.gameserver.network.serverpackets.AcquireSkillDone;
import org.l2jmobius.gameserver.network.serverpackets.AcquireSkillList;
import org.l2jmobius.gameserver.network.serverpackets.ExStorageMaxCount;
import org.l2jmobius.gameserver.network.serverpackets.PledgeSkillList;
import org.l2jmobius.gameserver.network.serverpackets.StatusUpdate;
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
import org.l2jmobius.gameserver.util.Util;
/**
* Request Acquire Skill client packet implementation.
* @author Zoey76
*/
public class RequestAcquireSkill implements IClientIncomingPacket
{
private static final String[] QUEST_VAR_NAMES =
{
"EmergentAbility65-",
"EmergentAbility70-",
"ClassAbility75-",
"ClassAbility80-"
};
private int _id;
private int _level;
private AcquireSkillType _skillType;
private int _subType;
@Override
public boolean read(GameClient client, PacketReader packet)
{
_id = packet.readD();
_level = packet.readD();
_skillType = AcquireSkillType.getAcquireSkillType(packet.readD());
if (_skillType == AcquireSkillType.SUBPLEDGE)
{
_subType = packet.readD();
}
return true;
}
@Override
public void run(GameClient client)
{
final PlayerInstance player = client.getPlayer();
if (player == null)
{
return;
}
if ((_level < 1) || (_level > 1000) || (_id < 1) || (_id > 32000))
{
Util.handleIllegalPlayerAction(player, "Wrong Packet Data in Aquired Skill", Config.DEFAULT_PUNISH);
LOGGER.warning("Recived Wrong Packet Data in Aquired Skill - id: " + _id + " level: " + _level + " for " + player);
return;
}
final Npc trainer = player.getLastFolkNPC();
if ((trainer == null) || !trainer.isNpc() || (!trainer.canInteract(player) && !player.isGM()))
{
return;
}
final Skill skill = SkillData.getInstance().getSkill(_id, _level);
if (skill == null)
{
LOGGER.warning(RequestAcquireSkill.class.getSimpleName() + ": Player " + player.getName() + " is trying to learn a null skill Id: " + _id + " level: " + _level + "!");
return;
}
// Hack check. Doesn't apply to all Skill Types
final int prevSkillLevel = player.getSkillLevel(_id);
if ((prevSkillLevel > 0) && !((_skillType == AcquireSkillType.TRANSFER) || (_skillType == AcquireSkillType.SUBPLEDGE)))
{
if (prevSkillLevel == _level)
{
return;
}
else if (prevSkillLevel != (_level - 1))
{
// The previous level skill has not been learned.
player.sendPacket(SystemMessageId.THE_PREVIOUS_LEVEL_SKILL_HAS_NOT_BEEN_LEARNED);
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " is requesting skill Id: " + _id + " level " + _level + " without knowing it's previous level!", IllegalActionPunishmentType.NONE);
return;
}
}
final SkillLearn s = SkillTreeData.getInstance().getSkillLearn(_skillType, _id, _level, player);
if (s == null)
{
return;
}
switch (_skillType)
{
case CLASS:
{
if (checkPlayerSkill(player, trainer, s))
{
giveSkill(player, trainer, skill);
}
break;
}
case TRANSFORM:
{
// Hack check.
if (!canTransform(player))
{
player.sendPacket(SystemMessageId.YOU_HAVE_NOT_COMPLETED_THE_NECESSARY_QUEST_FOR_SKILL_ACQUISITION);
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " is requesting skill Id: " + _id + " level " + _level + " without required quests!", IllegalActionPunishmentType.NONE);
return;
}
if (checkPlayerSkill(player, trainer, s))
{
giveSkill(player, trainer, skill);
}
break;
}
case FISHING:
{
if (checkPlayerSkill(player, trainer, s))
{
giveSkill(player, trainer, skill);
}
break;
}
case PLEDGE:
{
if (!player.isClanLeader())
{
return;
}
final Clan clan = player.getClan();
final int repCost = s.getLevelUpSp();
if (clan.getReputationScore() >= repCost)
{
if (Config.LIFE_CRYSTAL_NEEDED)
{
for (ItemHolder item : s.getRequiredItems())
{
if (!player.destroyItemByItemId("Consume", item.getId(), item.getCount(), trainer, false))
{
// Doesn't have required item.
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_THE_NECESSARY_MATERIALS_OR_PREREQUISITES_TO_LEARN_THIS_SKILL);
VillageMasterInstance.showPledgeSkillList(player);
return;
}
final SystemMessage sm = new SystemMessage(SystemMessageId.S2_S1_HAS_DISAPPEARED);
sm.addItemName(item.getId());
sm.addLong(item.getCount());
player.sendPacket(sm);
}
}
clan.takeReputationScore(repCost, true);
final SystemMessage cr = new SystemMessage(SystemMessageId.S1_POINTS_HAVE_BEEN_DEDUCTED_FROM_THE_CLAN_S_REPUTATION_SCORE);
cr.addInt(repCost);
player.sendPacket(cr);
clan.addNewSkill(skill);
clan.broadcastToOnlineMembers(new PledgeSkillList(clan));
player.sendPacket(new AcquireSkillDone());
VillageMasterInstance.showPledgeSkillList(player);
}
else
{
player.sendPacket(SystemMessageId.THE_ATTEMPT_TO_ACQUIRE_THE_SKILL_HAS_FAILED_BECAUSE_OF_AN_INSUFFICIENT_CLAN_REPUTATION_SCORE);
VillageMasterInstance.showPledgeSkillList(player);
}
break;
}
case SUBPLEDGE:
{
if (!player.isClanLeader() || !player.hasClanPrivilege(ClanPrivilege.CL_TROOPS_FAME))
{
return;
}
final Clan clan = player.getClan();
if ((clan.getFortId() == 0) && (clan.getCastleId() == 0))
{
return;
}
// Hack check. Check if SubPledge can accept the new skill:
if (!clan.isLearnableSubPledgeSkill(skill, _subType))
{
player.sendPacket(SystemMessageId.THIS_SQUAD_SKILL_HAS_ALREADY_BEEN_ACQUIRED);
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " is requesting skill Id: " + _id + " level " + _level + " without knowing it's previous level!", IllegalActionPunishmentType.NONE);
return;
}
final int repCost = s.getLevelUpSp();
if (clan.getReputationScore() < repCost)
{
player.sendPacket(SystemMessageId.THE_ATTEMPT_TO_ACQUIRE_THE_SKILL_HAS_FAILED_BECAUSE_OF_AN_INSUFFICIENT_CLAN_REPUTATION_SCORE);
return;
}
for (ItemHolder item : s.getRequiredItems())
{
if (!player.destroyItemByItemId("SubSkills", item.getId(), item.getCount(), trainer, false))
{
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_THE_NECESSARY_MATERIALS_OR_PREREQUISITES_TO_LEARN_THIS_SKILL);
return;
}
final SystemMessage sm = new SystemMessage(SystemMessageId.S2_S1_HAS_DISAPPEARED);
sm.addItemName(item.getId());
sm.addLong(item.getCount());
player.sendPacket(sm);
}
if (repCost > 0)
{
clan.takeReputationScore(repCost, true);
final SystemMessage cr = new SystemMessage(SystemMessageId.S1_POINTS_HAVE_BEEN_DEDUCTED_FROM_THE_CLAN_S_REPUTATION_SCORE);
cr.addInt(repCost);
player.sendPacket(cr);
}
clan.addNewSkill(skill, _subType);
clan.broadcastToOnlineMembers(new PledgeSkillList(clan));
player.sendPacket(new AcquireSkillDone());
showSubUnitSkillList(player);
break;
}
case TRANSFER:
{
if (checkPlayerSkill(player, trainer, s))
{
giveSkill(player, trainer, skill);
}
break;
}
case SUBCLASS:
{
// Hack check.
if (player.isSubClassActive())
{
player.sendPacket(SystemMessageId.THIS_SKILL_CANNOT_BE_LEARNED_WHILE_IN_THE_SUB_CLASS_STATE_PLEASE_TRY_AGAIN_AFTER_CHANGING_TO_THE_MAIN_CLASS);
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " is requesting skill Id: " + _id + " level " + _level + " while Sub-Class is active!", IllegalActionPunishmentType.NONE);
return;
}
// Certification Skills - Exploit fix
if ((prevSkillLevel == -1) && (_level > 1))
{
// The previous level skill has not been learned.
player.sendPacket(SystemMessageId.THE_PREVIOUS_LEVEL_SKILL_HAS_NOT_BEEN_LEARNED);
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " is requesting skill Id: " + _id + " level " + _level + " without knowing it's previous level!", IllegalActionPunishmentType.NONE);
return;
}
QuestState qs = player.getQuestState("SubClassSkills");
if (qs == null)
{
final Quest subClassSkilllsQuest = QuestManager.getInstance().getQuest("SubClassSkills");
if (subClassSkilllsQuest != null)
{
qs = subClassSkilllsQuest.newQuestState(player);
}
else
{
LOGGER.warning("Null SubClassSkills quest, for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
return;
}
}
for (String varName : QUEST_VAR_NAMES)
{
for (int i = 1; i <= Config.MAX_SUBCLASS; i++)
{
final String itemOID = player.getVariables().getString(varName + i, "");
if (!itemOID.isEmpty() && !itemOID.endsWith(";") && !itemOID.equals("0"))
{
if (Util.isDigit(itemOID))
{
final int itemObjId = Integer.parseInt(itemOID);
final ItemInstance item = player.getInventory().getItemByObjectId(itemObjId);
if (item != null)
{
for (ItemHolder itemIdCount : s.getRequiredItems())
{
if (item.getId() == itemIdCount.getId())
{
if (checkPlayerSkill(player, trainer, s))
{
giveSkill(player, trainer, skill);
// Logging the given skill.
player.getVariables().set(varName + i, skill.getId() + ";");
}
return;
}
}
}
else
{
LOGGER.warning("Inexistent item for object Id " + itemObjId + ", for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
}
}
else
{
LOGGER.warning("Invalid item object Id " + itemOID + ", for Sub-Class skill Id: " + _id + " level: " + _level + " for player " + player.getName() + "!");
}
}
}
}
// Player doesn't have required item.
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_THE_NECESSARY_MATERIALS_OR_PREREQUISITES_TO_LEARN_THIS_SKILL);
showSkillList(trainer, player);
break;
}
case COLLECT:
{
if (checkPlayerSkill(player, trainer, s))
{
giveSkill(player, trainer, skill);
}
break;
}
default:
{
LOGGER.warning("Recived Wrong Packet Data in Aquired Skill, unknown skill type:" + _skillType);
break;
}
}
}
public static void showSubUnitSkillList(PlayerInstance player)
{
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableSubPledgeSkills(player.getClan());
final AcquireSkillList asl = new AcquireSkillList(AcquireSkillType.SUBPLEDGE);
int count = 0;
for (SkillLearn s : skills)
{
if (SkillData.getInstance().getSkill(s.getSkillId(), s.getSkillLevel()) != null)
{
asl.addSkill(s.getSkillId(), s.getSkillLevel(), s.getSkillLevel(), s.getLevelUpSp(), 0);
++count;
}
}
if (count == 0)
{
player.sendPacket(SystemMessageId.THERE_ARE_NO_OTHER_SKILLS_TO_LEARN);
}
else
{
player.sendPacket(asl);
}
}
/**
* Perform a simple check for current player and skill.<br>
* Takes the needed SP if the skill require it and all requirements are meet.<br>
* Consume required items if the skill require it and all requirements are meet.
* @param player the skill learning player.
* @param trainer the skills teaching Npc.
* @param skillLearn the skill to be learn.
* @return {@code true} if all requirements are meet, {@code false} otherwise.
*/
private boolean checkPlayerSkill(PlayerInstance player, Npc trainer, SkillLearn skillLearn)
{
if ((skillLearn != null) && (skillLearn.getSkillId() == _id) && (skillLearn.getSkillLevel() == _level))
{
// Hack check.
if (skillLearn.getGetLevel() > player.getLevel())
{
player.sendPacket(SystemMessageId.YOU_DO_NOT_MEET_THE_SKILL_LEVEL_REQUIREMENTS);
Util.handleIllegalPlayerAction(player, "Player " + player.getName() + ", level " + player.getLevel() + " is requesting skill Id: " + _id + " level " + _level + " without having minimum required level, " + skillLearn.getGetLevel() + "!", IllegalActionPunishmentType.NONE);
return false;
}
// First it checks that the skill require SP and the player has enough SP to learn it.
final int levelUpSp = skillLearn.getCalculatedLevelUpSp(player.getClassId(), player.getLearningClass());
if ((levelUpSp > 0) && (levelUpSp > player.getSp()))
{
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_ENOUGH_SP_TO_LEARN_THIS_SKILL);
showSkillList(trainer, player);
return false;
}
if (!Config.DIVINE_SP_BOOK_NEEDED && (_id == CommonSkill.DIVINE_INSPIRATION.getId()))
{
return true;
}
// Check for required skills.
if (!skillLearn.getPreReqSkills().isEmpty())
{
for (SkillHolder skill : skillLearn.getPreReqSkills())
{
if (player.getSkillLevel(skill.getSkillId()) < skill.getSkillLevel())
{
if (skill.getSkillId() == CommonSkill.ONYX_BEAST_TRANSFORMATION.getId())
{
player.sendPacket(SystemMessageId.YOU_MUST_LEARN_THE_ONYX_BEAST_SKILL_BEFORE_YOU_CAN_ACQUIRE_FURTHER_SKILLS);
}
else
{
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_THE_NECESSARY_MATERIALS_OR_PREREQUISITES_TO_LEARN_THIS_SKILL);
}
return false;
}
}
}
// Check for required items.
if (!skillLearn.getRequiredItems().isEmpty())
{
// Then checks that the player has all the items
long reqItemCount = 0;
for (ItemHolder item : skillLearn.getRequiredItems())
{
reqItemCount = player.getInventory().getInventoryItemCount(item.getId(), -1);
if (reqItemCount < item.getCount())
{
// Player doesn't have required item.
player.sendPacket(SystemMessageId.YOU_DO_NOT_HAVE_THE_NECESSARY_MATERIALS_OR_PREREQUISITES_TO_LEARN_THIS_SKILL);
showSkillList(trainer, player);
return false;
}
}
// If the player has all required items, they are consumed.
for (ItemHolder itemIdCount : skillLearn.getRequiredItems())
{
if (!player.destroyItemByItemId("SkillLearn", itemIdCount.getId(), itemIdCount.getCount(), trainer, true))
{
Util.handleIllegalPlayerAction(player, "Somehow player " + player.getName() + ", level " + player.getLevel() + " lose required item Id: " + itemIdCount.getId() + " to learn skill while learning skill Id: " + _id + " level " + _level + "!", IllegalActionPunishmentType.NONE);
}
}
}
// If the player has SP and all required items then consume SP.
if (levelUpSp > 0)
{
player.setSp(player.getSp() - levelUpSp);
final StatusUpdate su = new StatusUpdate(player);
su.addAttribute(StatusUpdate.SP, (int) player.getSp());
player.sendPacket(su);
}
return true;
}
return false;
}
/**
* Add the skill to the player and makes proper updates.
* @param player the player acquiring a skill.
* @param trainer the Npc teaching a skill.
* @param skill the skill to be learn.
*/
private void giveSkill(PlayerInstance player, Npc trainer, Skill skill)
{
// Send message.
final SystemMessage sm = new SystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1_2);
sm.addSkillName(skill);
player.sendPacket(sm);
player.sendPacket(new AcquireSkillDone());
player.addSkill(skill, true);
player.sendSkillList();
player.updateShortCuts(_id, _level);
showSkillList(trainer, player);
// If skill is expand type then sends packet:
if ((_id >= 1368) && (_id <= 1372))
{
player.sendPacket(new ExStorageMaxCount(player));
}
// Notify scripts of the skill learn.
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerSkillLearn(trainer, player, skill, _skillType), trainer);
}
/**
* Wrapper for returning the skill list to the player after it's done with current skill.
* @param trainer the Npc which the {@code player} is interacting
* @param player the active character
*/
private void showSkillList(Npc trainer, PlayerInstance player)
{
if ((_skillType == AcquireSkillType.TRANSFORM) || (_skillType == AcquireSkillType.SUBCLASS) || (_skillType == AcquireSkillType.TRANSFER))
{
// Managed in Datapack.
return;
}
if (trainer instanceof FishermanInstance)
{
FishermanInstance.showFishSkillList(player);
}
else
{
NpcInstance.showSkillList(player, trainer, player.getLearningClass());
}
}
/**
* Verify if the player can transform.
* @param player the player to verify
* @return {@code true} if the player meets the required conditions to learn a transformation, {@code false} otherwise
*/
public static boolean canTransform(PlayerInstance player)
{
if (Config.ALLOW_TRANSFORM_WITHOUT_QUEST)
{
return true;
}
final QuestState qs = player.getQuestState("Q00136_MoreThanMeetsTheEye");
return (qs != null) && qs.isCompleted();
}
}
| [
"MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b"
] | MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b |
d8b60ab00ec05ec256929bceb8301e7b5767b9dc | 66c0628ee8d1fd997336ec71679dcde7ded48327 | /src/main/java/com/sju/program/enums/HttpMethod.java | 400949ed9f06480a446e2f10f355e18c74eb031f | [] | no_license | JustDoItTeam1/project | b280ad754fdeb1fbff1d315d55d2f459e1bb6786 | b8febf04db177c7f1ae898f35424f44a14c6d43d | refs/heads/master | 2023-04-11T17:10:08.450813 | 2020-11-03T07:58:57 | 2020-11-03T07:58:57 | 305,062,478 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 729 | java | package com.sju.program.enums;
import org.springframework.lang.Nullable;
import java.util.HashMap;
import java.util.Map;
/**
* 请求方式
*
* @author ruoyi
*/
public enum HttpMethod
{
GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE;
private static final Map<String, HttpMethod> mappings = new HashMap<>(16);
static
{
for (HttpMethod httpMethod : values())
{
mappings.put(httpMethod.name(), httpMethod);
}
}
@Nullable
public static HttpMethod resolve(@Nullable String method)
{
return (method != null ? mappings.get(method) : null);
}
public boolean matches(String method)
{
return (this == resolve(method));
}
}
| [
"1025318714@qq.com"
] | 1025318714@qq.com |
320b358f6e59d29fda5fdfe1beae5d1cb0614ad8 | 52855e5811111a46e49820408b8f17be92d12807 | /app/src/main/java/com/chengsi/weightcalc/activity/WelcomeActivity.java | 74521207c08a6cf6a72fd12ae05ce0d40e903c0c | [] | no_license | czdfn/weight | 1e41db74a5bd97bd8ba5a542c67c4f6e795db482 | 64407b69911fd483d6bef1d86994658a24d90794 | refs/heads/master | 2020-05-21T12:21:12.573444 | 2016-12-22T05:12:55 | 2016-12-22T05:12:55 | 50,978,121 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,676 | java | package com.chengsi.weightcalc.activity;
import android.content.Intent;
import android.os.Bundle;
import com.chengsi.weightcalc.R;
import com.chengsi.weightcalc.utils.Position;
public class WelcomeActivity extends BaseActivity {
private Position mPosition;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome);
hideToolbar();
application.getMainHandler().postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
finish();
}
}, 2000L);
// if (!application.userManager.isLogin()){
// application.getMainHandler().postDelayed(new Runnable() {
// @Override
// public void run() {
// startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
// finish();
// }
// }, 2000L);
// }else{
// application.getMainHandler().postDelayed(new Runnable() {
// @Override
// public void run() {
// startActivity(new Intent(WelcomeActivity.this, MainActivity.class));
// finish();
// }
// }, 2000L);
// }
mPosition = new Position(getApplicationContext());
}
// @Override
// public void onUserChanged(UserBean userBean) {
//
// }
}
| [
"czdfn.github@gmail.com"
] | czdfn.github@gmail.com |
484d6af306e1465b16abe2482fd2e57fee480962 | 4b7444995b9763b80d6d32c15848d321d387c66c | /src/br/com/sistemasefaz/bean/OrgaoBean.java | 724dfefcd983ca0bb28f957aec338a8950862992 | [] | no_license | andrefilipeit/sistemasefaz | b17ef87c222716bf81bfaf4c911dbf86f6a45862 | 06b00f7d5ef0deb4140077911d245d35112f55d9 | refs/heads/master | 2020-06-24T09:53:20.133422 | 2019-07-29T12:41:53 | 2019-07-29T12:41:53 | 198,933,167 | 0 | 1 | null | 2019-10-03T17:09:31 | 2019-07-26T02:36:50 | Java | UTF-8 | Java | false | false | 1,344 | java | package br.com.sistemasefaz.bean;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import br.com.sistemasefaz.dao.DAO;
import br.com.sistemasefaz.modelo.Orgao;
@ManagedBean
@ViewScoped
public class OrgaoBean {
private Orgao orgao = new Orgao();
private Integer orgaoId;
public Orgao getOrgao() {
return orgao;
}
public List<Orgao> getOrgaos() {
return new DAO<Orgao>(Orgao.class).listaTodos();
}
public String gravar() {
System.out.println("Gravando orgao " + this.orgao.getDescricao());
if (this.orgao.getCdOrgao() == null) {
new DAO<Orgao>(Orgao.class).adiciona(this.orgao);
} else {
new DAO<Orgao>(Orgao.class).atualiza(this.orgao);
}
this.orgao = new Orgao();
return "orgao?faces-redirect=true"; //Redirect
}
public void carregar(Orgao orgao) {
System.out.println("Carregando orgao");
this.orgao = orgao;
}
public void remover(Orgao orgao) {
System.out.println("Removendo orgao");
new DAO<Orgao>(Orgao.class).remove(orgao);
}
public Integer getOrgaoId() {
return orgaoId;
}
public void setOrgaoId(Integer orgaoId) {
this.orgaoId = orgaoId;
}
public void carregarOrgaoPelaId() {
this.orgao = new DAO<Orgao>(Orgao.class).buscaPorId(orgaoId);
}
public String formUsuario() {
return "usuario?faces-redirect=true";
}
}
| [
"andre.filipe.it@gmail.com"
] | andre.filipe.it@gmail.com |
1686740edab88b5c9757adba1c259e1d1a27cee8 | 9e678d08148fe77442ad9f0948ff8d83b9c1fcb1 | /src/main/java/de/fred4jupiter/swagger/api/person/PersonController.java | 73d582f0432ed30b6d6844c1632a8a8441aca250 | [
"Apache-2.0"
] | permissive | fred4jupiter/swagger-demo | 2735fb26736ccd96409f422d24c061045aa9a74f | 6c06f1d5f3f5943378d8609e39c95c46ed567c53 | refs/heads/master | 2020-06-11T07:25:15.119410 | 2019-06-28T06:29:08 | 2019-06-28T06:29:08 | 193,889,972 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,143 | java | package de.fred4jupiter.swagger.api.person;
import de.fred4jupiter.swagger.api.common.ResourceNotFoundException;
import de.fred4jupiter.swagger.service.PersonService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
@RestController
@RequestMapping("/v1/persons")
@Api(tags = "persons")
public class PersonController {
@Autowired
private PersonService personService;
@GetMapping
@ApiOperation(value = "${personcontroller.getallpersons}")
public List<Person> getAllPersons() {
return personService.getAllPersons();
}
@GetMapping("/{id}")
@ApiOperation("${personcontroller.getpersonbyid}")
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Successfully retrieved Person"),
@ApiResponse(code = 404, message = "The resource you were trying to reach is not found")
})
public Person getPersonById(@ApiParam(name = "id", value = "Id of the person to be obtained. Cannot be empty.", required = true) @PathVariable Integer id) {
Person person = personService.getPersonById(id);
if (person == null) {
throw new ResourceNotFoundException("person with id=" + id + " could not be found!");
}
return person;
}
@DeleteMapping("/{id}")
@ApiOperation("${personcontroller.deleteperson}")
public void deletePerson(@ApiParam(name = "id", value = "Id of the person to be deleted. Cannot be empty.", required = true) @PathVariable Integer id) {
personService.deletePerson(id);
}
@PostMapping
@ApiOperation("${personcontroller.createperson}")
public Person createPerson(@ApiParam("Person information for a new person to be created.") @Valid @RequestBody Person person) {
return personService.createPerson(person);
}
@PutMapping
@ApiOperation("Updates a person.")
public void updatePerson(@ApiParam("Person to be updated.") @Valid @RequestBody Person person) {
personService.updatePerson(person);
}
}
| [
"michael.staehler@opitz-consulting.com"
] | michael.staehler@opitz-consulting.com |
dacf4c1dba3ab5fef9c37d9b43ffe44020643a0e | 988cde515a2a3422f8b2ce66356bee57e8840f75 | /guoqv8/guoleMIS/src/com/ttsMIS/service/line/LineRankingService.java | 9df9e50394366995a56dd41287afd662b0ae062e | [] | no_license | tianhaipeng/guole | be58a1b74a544370e987f16f935a37ea7d84b9e4 | 8d23d31b3943db00f0b97cbe2af3f148e58a42d4 | refs/heads/master | 2020-12-25T04:27:27.062542 | 2013-08-05T19:29:59 | 2013-08-05T19:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,389 | java | package com.ttsMIS.service.line;
import java.util.List;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.guoleMIS.vo.LineVO;
/**
* 线路推广业务层接口
* @author zhenhua.kou
* @version V1.0
* @createTime 2013-06-26
* @history 版本 修改者 时间 修改内容
*/
public interface LineRankingService {
/**
* 获取线路推广榜单最大排序号
* @return
*/
public int getLineRankingMaxSortNo();
/**
* 获取线路
* @param lineVO 查询条件
* @param page 页码
* @return
*/
public List<LineVO> loadLineList(LineVO lineVO,int page);
/**
* 获取线路数
* @return
*/
public int getLineCount(LineVO lineVO);
/**
* 获取线路推广榜单
* @param filter 查询条件
* @return
*/
public List<LineVO> loadLineRanking(int page);
/**
* 获取线路推广列表
* @param filter 查询条件
* @return
*/
public List<LineVO> loadAllRankingLine();
/**
* 获取线路団期列表
* @param lineId 线路编号
* @return
*/
public List<String> loadFoundationList(int lineId);
/**
* 获取线路推广榜单记录数
* @param filter 查询条件
* @return
*/
public int getRankingCount();
/**
* 榜单中该线路推广是否已存在
* @param lineId 线路编号
*/
public boolean isLineExists(int lineId);
/**
* 添加榜单线路推广
* @param lineIds 线路编号,多个以逗号分隔
*/
@Transactional(rollbackFor={Exception.class},propagation = Propagation.REQUIRES_NEW)
public boolean addRankingLine(String lineIds);
/**
* 更新榜单中的顺序
* @param id 记录编号
* @param sortNo 记录编号
* @param oldSortNo 记录编号
*/
@Transactional(rollbackFor={Exception.class},propagation = Propagation.REQUIRES_NEW)
public boolean resetLineRankingSort(int id,int sortNo,int oldSortNo);
/**
* 删除线路推广榜单中的供应商
* @param id
*/
@Transactional(rollbackFor={Exception.class},propagation = Propagation.REQUIRES_NEW)
public boolean removeRankingLine(int id);
}
| [
"zhouming393012998@163.com"
] | zhouming393012998@163.com |
eb37d9eec9e425a6576cdf2e1d4026a0e1021ce2 | 1df38d4502b56243a410c41b8e58f34db38c818e | /app/src/main/java/com/post/station/event/ReSettingIconEvent.java | 56b6fd4105f4c38863c8aaa5efa9f8243a3aec97 | [] | no_license | liuyihui1234/FastEightPostStation | 996b7975c8c5e39954aecc60fd0cdad6c09c9f56 | da2d8596277929b16ebc044b0bdac8c74f21ab11 | refs/heads/master | 2022-03-29T03:18:24.648075 | 2020-01-03T01:30:00 | 2020-01-03T01:30:00 | 208,930,095 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 243 | java | package com.post.station.event;
public class ReSettingIconEvent {
public String name;
public String mobile;
public ReSettingIconEvent(String name, String mobile) {
this.name = name;
this.mobile = mobile;
}
}
| [
"925156439@qq.com"
] | 925156439@qq.com |
64a59a0bf8b2ef843c70e11bbe1b1200ef02c64a | 3ebd5d23849a6d062c660d85f759ba4c243471f0 | /java/com/spring/auto/wire/annotation/Address.java | 6351ee5ad75bd210d5d6ce37f2a1bbdb37a41e35 | [] | no_license | VishalS047/SpringCore | 03158623ac2097b240fb5b7b6a931211767bcd1c | b7497531be9c69b9d56748e938beb57f37ff36a7 | refs/heads/main | 2023-02-28T03:11:58.737043 | 2021-02-05T15:03:48 | 2021-02-05T15:03:48 | 336,304,815 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 602 | java | package com.spring.auto.wire.annotation;
public class Address
{
private String street;
private String colony;
private String city;
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String getColony() {
return colony;
}
public void setColony(String colony) {
this.colony = colony;
}
@Override
public String toString() {
return "Address [street=" + street + ", colony=" + colony + ", city=" + city + "]";
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
}
| [
"iamvishal047@gmail.com"
] | iamvishal047@gmail.com |
258a4284ed265ab2dc7a10c7973faf3bc5f66acb | 1773cd478ca9d6e3c351d8cc9a688a9a81e00e3e | /src/TestNGDemos/AnnotationsBeforeDemo.java | a66e79f742d6b0e77a702d827ff5d0fff215bc70 | [] | no_license | Vmuralidhar/SeleniumSampleProject | 33ac5bcd4e907c05027ea530034dfabc7bc8b413 | 00a2ec42d21f767263bc5600b9d604f2f174e504 | refs/heads/master | 2021-05-20T01:38:16.278839 | 2020-04-01T09:33:18 | 2020-04-01T09:33:18 | 252,131,321 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,039 | java | package TestNGDemos;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.AfterSuite;
public class AnnotationsBeforeDemo {
@Test
public void funA() {
System.out.println("This is @Test in FunA Demo2");
}
@Test
public void funB() {
System.out.println("This is @Test in FunB Demo2");
}
@BeforeMethod
public void beforeMethod() {
System.out.println("This is @BeforeMethod Demo2");
}
@BeforeClass
public void beforeClass() {
System.out.println("This is @beforeClass Demo2");
}
@BeforeTest
public void beforeTest() {
System.out.println("This is @BeforeTest Demo2");
}
@BeforeSuite
public void beforeSuite() {
System.out.println("This is @BeforeSuite Demo2");
}
}
| [
"muralidhar.vadaga@gmail.com"
] | muralidhar.vadaga@gmail.com |
b5f30c5dba8ea7d6bb8d5aad7cfc4cd457f053a7 | 804ca638106622a5db6d1460791a7ba17555bdf6 | /foundation/main/java/cherry/foundation/etl/Consumer.java | 91254f0bb7590b5abffb6472c404129eb226d9b8 | [
"Apache-2.0"
] | permissive | agwlvssainokuni/sqlapp | 7126404dd2c167e35238c24512ba150a7662cacb | df164c38ded9e569de97c981550a99f1edf8243e | refs/heads/master | 2020-12-24T13:27:55.667619 | 2015-03-16T23:36:47 | 2015-03-16T23:36:47 | 19,758,521 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,359 | java | /*
* Copyright 2012,2015 agwlvssainokuni
*
* 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 cherry.foundation.etl;
import java.io.IOException;
/**
* データ抽出機能におけるデータ格納先。
*/
public interface Consumer {
/**
* データの格納を開始する。
*
* @param col カラムの情報。
* @throws IOException データ格納エラー。
*/
void begin(Column[] col) throws IOException;
/**
* 1レコードのデータを格納する。
*
* @param record 1レコードのデータ。
* @throws IOException データ格納エラー。
*/
void consume(Object[] record) throws IOException;
/**
* データの格納を終了する。
*
* @throws IOException データ格納エラー。
*/
void end() throws IOException;
}
| [
"agw.lvs.sainokuni@gmail.com"
] | agw.lvs.sainokuni@gmail.com |
214089712f3849c631a4d17d7f431b28877fab77 | 3cfb05883a77bf2618b1308f0796e43e2d533db4 | /app/src/main/java/com/dehaat/dehaatassignment/adapter/AuthorAdapter.java | 040607b5b6266865c1bd6ae87084aaaa3c4703b3 | [] | no_license | pallaw/DeHaatAssignment | 827581fa2b09dea404dff6f444c7e4001908e70d | 18f09df5983c7ae369c8b7be3535854e9d01b04c | refs/heads/master | 2022-10-21T20:30:23.553165 | 2020-06-16T14:35:03 | 2020-06-16T14:35:03 | 272,507,549 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 801 | java | package com.dehaat.dehaatassignment.adapter;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class AuthorAdapter extends RecyclerView.Adapter<AuthorAdapter.AuthorViewHolder>{
@NonNull
@Override
public AuthorViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return null;
}
@Override
public void onBindViewHolder(@NonNull AuthorViewHolder holder, int position) {
}
@Override
public int getItemCount() {
return 0;
}
class AuthorViewHolder extends RecyclerView.ViewHolder{
public AuthorViewHolder(@NonNull View itemView) {
super(itemView);
}
}
}
| [
"pallaw.pathak@gmail.com"
] | pallaw.pathak@gmail.com |
893b7855a743b24a25770a0c8e7bd5a59fc1f9cb | e91507139a03a44911ff729dde8cd8a91875b298 | /src/fr/Karchoc/MobGuard/onEntityKilled.java | 778c597a174b4bacf773934b9c29af80b5e792c0 | [] | no_license | Karchoc/MobGuard | f410c2271626e2245f7dc81916f9cd4cc5c2d1af | 23bce14b61e83daa78a8f37614ed88b6f2af838d | refs/heads/master | 2016-08-06T12:13:09.970524 | 2012-06-07T10:57:00 | 2012-06-07T10:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,915 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fr.Karchoc.MobGuard;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.Location;
import org.bukkit.block.Dispenser;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageEvent;
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.entity.EntityDeathEvent;
/**
*
* @author Karchoc
*/
public class onEntityKilled implements Listener{
Writer wr = new Writer();
@EventHandler
public void KilledMob(EntityDeathEvent event) throws IOException{
LivingEntity dead = event.getEntity();
LivingEntity killer = dead.getKiller();
EntityType deadType = dead.getType();
String deadTypeName = deadType.getName();
Location deadLocation = dead.getLocation();
double deadLocationXDouble = deadLocation.getX();
double deadLocationYDouble = deadLocation.getY();
double deadLocationZDouble = deadLocation.getZ(); //Getting location of the victim
EntityDamageEvent lastDamageCause = dead.getLastDamageCause();
DamageCause damageCause = lastDamageCause.getCause();
//("La victime est: "+ deadTypeName);
if (killer instanceof Player){
Player killerPlayer = (Player)killer;
String killerPlayerName = killerPlayer.getName();
Writer.WriteFile(Time.getTime()+"The player "+ killerPlayerName + " killed a/an " + deadTypeName+ " at: "+"X= " + deadLocationXDouble + ", Y = " + deadLocationYDouble + ", Z= " + deadLocationZDouble+ "\r\n", "plugins\\MobGuard", "Attacks.txt");
}
if (killer instanceof Projectile){
Entity killerShooter = ((Projectile)killer).getShooter();
if (killerShooter instanceof Player){
String killerPlayerName = ((Player)killerShooter).getName();
Writer.WriteFile(Time.getTime()+"The player "+ killerPlayerName + " killed a/an " + deadTypeName+ " at: "+"X= " + deadLocationXDouble + ", Y = " + deadLocationYDouble + ", Z= " + deadLocationZDouble+ "\r\n", "plugins\\MobGuard", "Attacks.txt");
}
if (killerShooter instanceof Dispenser){
Location dispenserLocation = ((Dispenser)killerShooter).getLocation();
double dispenserLocationXDouble = dispenserLocation.getX();
double dispenserLocationYDouble = dispenserLocation.getY();
double dispenserLocationZDouble = dispenserLocation.getZ();
Writer.WriteFile(Time.getTime()+"The dispenser at: "+"X= " + dispenserLocationXDouble + ", Y = " + dispenserLocationYDouble + ", Z= " + dispenserLocationZDouble+ " killed a/an " + deadTypeName+ " at: "+"X= " + deadLocationXDouble + ", Y = " + deadLocationYDouble + ", Z= " + deadLocationZDouble+ "\r\n", "plugins\\MobGuard", "Attacks.txt");
}
}
else{
String damageCauseName = damageCause.name();
if ("ENTITY_ATTACK".equals(damageCauseName)){
if (killer instanceof Player);
else
Writer.WriteFile(Time.getTime() +"A/An "+ deadTypeName + " was killed by "+ damageCauseName +" at: "+"X= " + " at: "+"X= " + deadLocationXDouble + ", Y = " + deadLocationYDouble + ", Z= " + deadLocationZDouble+"\r\n", "plugins\\MobGuard", "Attacks.txt");
}
if (dead instanceof Player);
if ("PROJECTILE".equals(damageCauseName)){
if (killer instanceof Projectile){
if (((Projectile)killer).getShooter() instanceof Player);
if (((Projectile)killer).getShooter() instanceof Dispenser);
else
Writer.WriteFile(Time.getTime() +"A/An "+ deadTypeName + " was killed by "+ damageCauseName +" at: "+"X= " + " at: "+"X= " + deadLocationXDouble + ", Y = " + deadLocationYDouble + ", Z= " + deadLocationZDouble+"\r\n", "plugins\\MobGuard", "Attacks.txt");
}
}
else
if(!"FIRE_TICK".equals(damageCauseName)&& !"ENTITY_ATTACK".equals(damageCauseName) && !"FIRE".equals(damageCauseName)&& !"PROJECTILE".equals(damageCauseName))
Writer.WriteFile(Time.getTime() +"A/An "+ deadTypeName + " was killed by "+ damageCauseName +" at: "+"X= " + " at: "+"X= " + deadLocationXDouble + ", Y = " + deadLocationYDouble + ", Z= " + deadLocationZDouble+"\r\n", "plugins\\MobGuard", "Attacks.txt");
}
}
}
| [
"karchoc@live.fr"
] | karchoc@live.fr |
0b262d67ae804ffb2f04493e1d48950d16f75861 | 16f195e3dcc148e7f4914f19a241acbee80df355 | /kiosk-portlet/docroot/WEB-INF/src/com/alpha/portlet/dmdc/service/base/FileDinhKemLocalServiceClpInvoker.java | f9f3a414624f812060618d71e0745e275c1f5ea9 | [] | no_license | osipe/Kiosk_portlet_v.1.0 | 294126eef6aae5f2f36e1132d7da2bcf459851c7 | 0dc015fde3d57a6f1572754484f687c9a4c28c89 | refs/heads/master | 2022-10-01T01:12:38.955263 | 2020-06-03T09:28:13 | 2020-06-03T09:28:13 | 269,042,885 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 16,350 | java | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.alpha.portlet.dmdc.service.base;
import com.alpha.portlet.dmdc.service.FileDinhKemLocalServiceUtil;
import java.util.Arrays;
/**
* @author darkn
* @generated
*/
public class FileDinhKemLocalServiceClpInvoker {
public FileDinhKemLocalServiceClpInvoker() {
_methodName0 = "addFileDinhKem";
_methodParameterTypes0 = new String[] {
"com.alpha.portlet.dmdc.model.FileDinhKem"
};
_methodName1 = "createFileDinhKem";
_methodParameterTypes1 = new String[] {
"com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK"
};
_methodName2 = "deleteFileDinhKem";
_methodParameterTypes2 = new String[] {
"com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK"
};
_methodName3 = "deleteFileDinhKem";
_methodParameterTypes3 = new String[] {
"com.alpha.portlet.dmdc.model.FileDinhKem"
};
_methodName4 = "dynamicQuery";
_methodParameterTypes4 = new String[] { };
_methodName5 = "dynamicQuery";
_methodParameterTypes5 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName6 = "dynamicQuery";
_methodParameterTypes6 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int"
};
_methodName7 = "dynamicQuery";
_methodParameterTypes7 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName8 = "dynamicQueryCount";
_methodParameterTypes8 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery"
};
_methodName9 = "dynamicQueryCount";
_methodParameterTypes9 = new String[] {
"com.liferay.portal.kernel.dao.orm.DynamicQuery",
"com.liferay.portal.kernel.dao.orm.Projection"
};
_methodName10 = "fetchFileDinhKem";
_methodParameterTypes10 = new String[] {
"com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK"
};
_methodName11 = "getFileDinhKem";
_methodParameterTypes11 = new String[] {
"com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK"
};
_methodName12 = "getPersistedModel";
_methodParameterTypes12 = new String[] { "java.io.Serializable" };
_methodName13 = "getFileDinhKems";
_methodParameterTypes13 = new String[] { "int", "int" };
_methodName14 = "getFileDinhKemsCount";
_methodParameterTypes14 = new String[] { };
_methodName15 = "updateFileDinhKem";
_methodParameterTypes15 = new String[] {
"com.alpha.portlet.dmdc.model.FileDinhKem"
};
_methodName52 = "getBeanIdentifier";
_methodParameterTypes52 = new String[] { };
_methodName53 = "setBeanIdentifier";
_methodParameterTypes53 = new String[] { "java.lang.String" };
_methodName58 = "addFileDinhKem";
_methodParameterTypes58 = new String[] {
"long", "long", "long", "long", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.io.InputStream",
"long", "com.liferay.portal.service.ServiceContext"
};
_methodName60 = "createFolderParent";
_methodParameterTypes60 = new String[] {
"long", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName61 = "countByR_P";
_methodParameterTypes61 = new String[] { "long", "long" };
_methodName62 = "findByR_P";
_methodParameterTypes62 = new String[] { "long", "long" };
_methodName63 = "findByR_P";
_methodParameterTypes63 = new String[] { "long", "long", "int", "int" };
_methodName64 = "findByR_P";
_methodParameterTypes64 = new String[] {
"long", "long", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName65 = "removeByR_P";
_methodParameterTypes65 = new String[] { "long", "long" };
_methodName66 = "countByFileEntryId";
_methodParameterTypes66 = new String[] { "long" };
_methodName67 = "findByFileEntryId";
_methodParameterTypes67 = new String[] { "long" };
_methodName68 = "findByFileEntryId";
_methodParameterTypes68 = new String[] { "long", "int", "int" };
_methodName69 = "findByFileEntryId";
_methodParameterTypes69 = new String[] {
"long", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator"
};
_methodName70 = "removeByFileEntryId";
_methodParameterTypes70 = new String[] { "long" };
_methodName71 = "fetchByR_P_F";
_methodParameterTypes71 = new String[] { "long", "long", "long" };
_methodName72 = "findByR_P_F";
_methodParameterTypes72 = new String[] { "long", "long", "long" };
_methodName73 = "removeByR_P_F";
_methodParameterTypes73 = new String[] { "long", "long", "long" };
}
public Object invokeMethod(String name, String[] parameterTypes,
Object[] arguments) throws Throwable {
if (_methodName0.equals(name) &&
Arrays.deepEquals(_methodParameterTypes0, parameterTypes)) {
return FileDinhKemLocalServiceUtil.addFileDinhKem((com.alpha.portlet.dmdc.model.FileDinhKem)arguments[0]);
}
if (_methodName1.equals(name) &&
Arrays.deepEquals(_methodParameterTypes1, parameterTypes)) {
return FileDinhKemLocalServiceUtil.createFileDinhKem((com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK)arguments[0]);
}
if (_methodName2.equals(name) &&
Arrays.deepEquals(_methodParameterTypes2, parameterTypes)) {
return FileDinhKemLocalServiceUtil.deleteFileDinhKem((com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK)arguments[0]);
}
if (_methodName3.equals(name) &&
Arrays.deepEquals(_methodParameterTypes3, parameterTypes)) {
return FileDinhKemLocalServiceUtil.deleteFileDinhKem((com.alpha.portlet.dmdc.model.FileDinhKem)arguments[0]);
}
if (_methodName4.equals(name) &&
Arrays.deepEquals(_methodParameterTypes4, parameterTypes)) {
return FileDinhKemLocalServiceUtil.dynamicQuery();
}
if (_methodName5.equals(name) &&
Arrays.deepEquals(_methodParameterTypes5, parameterTypes)) {
return FileDinhKemLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]);
}
if (_methodName6.equals(name) &&
Arrays.deepEquals(_methodParameterTypes6, parameterTypes)) {
return FileDinhKemLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName7.equals(name) &&
Arrays.deepEquals(_methodParameterTypes7, parameterTypes)) {
return FileDinhKemLocalServiceUtil.dynamicQuery((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
}
if (_methodName8.equals(name) &&
Arrays.deepEquals(_methodParameterTypes8, parameterTypes)) {
return FileDinhKemLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0]);
}
if (_methodName9.equals(name) &&
Arrays.deepEquals(_methodParameterTypes9, parameterTypes)) {
return FileDinhKemLocalServiceUtil.dynamicQueryCount((com.liferay.portal.kernel.dao.orm.DynamicQuery)arguments[0],
(com.liferay.portal.kernel.dao.orm.Projection)arguments[1]);
}
if (_methodName10.equals(name) &&
Arrays.deepEquals(_methodParameterTypes10, parameterTypes)) {
return FileDinhKemLocalServiceUtil.fetchFileDinhKem((com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK)arguments[0]);
}
if (_methodName11.equals(name) &&
Arrays.deepEquals(_methodParameterTypes11, parameterTypes)) {
return FileDinhKemLocalServiceUtil.getFileDinhKem((com.alpha.portlet.dmdc.service.persistence.FileDinhKemPK)arguments[0]);
}
if (_methodName12.equals(name) &&
Arrays.deepEquals(_methodParameterTypes12, parameterTypes)) {
return FileDinhKemLocalServiceUtil.getPersistedModel((java.io.Serializable)arguments[0]);
}
if (_methodName13.equals(name) &&
Arrays.deepEquals(_methodParameterTypes13, parameterTypes)) {
return FileDinhKemLocalServiceUtil.getFileDinhKems(((Integer)arguments[0]).intValue(),
((Integer)arguments[1]).intValue());
}
if (_methodName14.equals(name) &&
Arrays.deepEquals(_methodParameterTypes14, parameterTypes)) {
return FileDinhKemLocalServiceUtil.getFileDinhKemsCount();
}
if (_methodName15.equals(name) &&
Arrays.deepEquals(_methodParameterTypes15, parameterTypes)) {
return FileDinhKemLocalServiceUtil.updateFileDinhKem((com.alpha.portlet.dmdc.model.FileDinhKem)arguments[0]);
}
if (_methodName52.equals(name) &&
Arrays.deepEquals(_methodParameterTypes52, parameterTypes)) {
return FileDinhKemLocalServiceUtil.getBeanIdentifier();
}
if (_methodName53.equals(name) &&
Arrays.deepEquals(_methodParameterTypes53, parameterTypes)) {
FileDinhKemLocalServiceUtil.setBeanIdentifier((java.lang.String)arguments[0]);
return null;
}
if (_methodName58.equals(name) &&
Arrays.deepEquals(_methodParameterTypes58, parameterTypes)) {
return FileDinhKemLocalServiceUtil.addFileDinhKem(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue(),
((Long)arguments[3]).longValue(),
(java.lang.String)arguments[4], (java.lang.String)arguments[5],
(java.lang.String)arguments[6], (java.lang.String)arguments[7],
(java.lang.String)arguments[8], (java.lang.String)arguments[9],
(java.io.InputStream)arguments[10],
((Long)arguments[11]).longValue(),
(com.liferay.portal.service.ServiceContext)arguments[12]);
}
if (_methodName60.equals(name) &&
Arrays.deepEquals(_methodParameterTypes60, parameterTypes)) {
return FileDinhKemLocalServiceUtil.createFolderParent(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]);
}
if (_methodName61.equals(name) &&
Arrays.deepEquals(_methodParameterTypes61, parameterTypes)) {
return FileDinhKemLocalServiceUtil.countByR_P(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName62.equals(name) &&
Arrays.deepEquals(_methodParameterTypes62, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByR_P(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
if (_methodName63.equals(name) &&
Arrays.deepEquals(_methodParameterTypes63, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByR_P(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName64.equals(name) &&
Arrays.deepEquals(_methodParameterTypes64, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByR_P(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[4]);
}
if (_methodName65.equals(name) &&
Arrays.deepEquals(_methodParameterTypes65, parameterTypes)) {
FileDinhKemLocalServiceUtil.removeByR_P(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
return null;
}
if (_methodName66.equals(name) &&
Arrays.deepEquals(_methodParameterTypes66, parameterTypes)) {
return FileDinhKemLocalServiceUtil.countByFileEntryId(((Long)arguments[0]).longValue());
}
if (_methodName67.equals(name) &&
Arrays.deepEquals(_methodParameterTypes67, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByFileEntryId(((Long)arguments[0]).longValue());
}
if (_methodName68.equals(name) &&
Arrays.deepEquals(_methodParameterTypes68, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByFileEntryId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName69.equals(name) &&
Arrays.deepEquals(_methodParameterTypes69, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByFileEntryId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
}
if (_methodName70.equals(name) &&
Arrays.deepEquals(_methodParameterTypes70, parameterTypes)) {
FileDinhKemLocalServiceUtil.removeByFileEntryId(((Long)arguments[0]).longValue());
return null;
}
if (_methodName71.equals(name) &&
Arrays.deepEquals(_methodParameterTypes71, parameterTypes)) {
return FileDinhKemLocalServiceUtil.fetchByR_P_F(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue());
}
if (_methodName72.equals(name) &&
Arrays.deepEquals(_methodParameterTypes72, parameterTypes)) {
return FileDinhKemLocalServiceUtil.findByR_P_F(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue());
}
if (_methodName73.equals(name) &&
Arrays.deepEquals(_methodParameterTypes73, parameterTypes)) {
FileDinhKemLocalServiceUtil.removeByR_P_F(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue());
return null;
}
throw new UnsupportedOperationException();
}
private String _methodName0;
private String[] _methodParameterTypes0;
private String _methodName1;
private String[] _methodParameterTypes1;
private String _methodName2;
private String[] _methodParameterTypes2;
private String _methodName3;
private String[] _methodParameterTypes3;
private String _methodName4;
private String[] _methodParameterTypes4;
private String _methodName5;
private String[] _methodParameterTypes5;
private String _methodName6;
private String[] _methodParameterTypes6;
private String _methodName7;
private String[] _methodParameterTypes7;
private String _methodName8;
private String[] _methodParameterTypes8;
private String _methodName9;
private String[] _methodParameterTypes9;
private String _methodName10;
private String[] _methodParameterTypes10;
private String _methodName11;
private String[] _methodParameterTypes11;
private String _methodName12;
private String[] _methodParameterTypes12;
private String _methodName13;
private String[] _methodParameterTypes13;
private String _methodName14;
private String[] _methodParameterTypes14;
private String _methodName15;
private String[] _methodParameterTypes15;
private String _methodName52;
private String[] _methodParameterTypes52;
private String _methodName53;
private String[] _methodParameterTypes53;
private String _methodName58;
private String[] _methodParameterTypes58;
private String _methodName60;
private String[] _methodParameterTypes60;
private String _methodName61;
private String[] _methodParameterTypes61;
private String _methodName62;
private String[] _methodParameterTypes62;
private String _methodName63;
private String[] _methodParameterTypes63;
private String _methodName64;
private String[] _methodParameterTypes64;
private String _methodName65;
private String[] _methodParameterTypes65;
private String _methodName66;
private String[] _methodParameterTypes66;
private String _methodName67;
private String[] _methodParameterTypes67;
private String _methodName68;
private String[] _methodParameterTypes68;
private String _methodName69;
private String[] _methodParameterTypes69;
private String _methodName70;
private String[] _methodParameterTypes70;
private String _methodName71;
private String[] _methodParameterTypes71;
private String _methodName72;
private String[] _methodParameterTypes72;
private String _methodName73;
private String[] _methodParameterTypes73;
} | [
"41118842+osipe@users.noreply.github.com"
] | 41118842+osipe@users.noreply.github.com |
8b08730cd23aaea403a31736235e963ea0edaa41 | c9446f75325e29b5def67e6e81e8408588218d6f | /src/main/java/Servlets/logers/Logger.java | d2ba2e478264c53e063b7f55af320dba16c1b3bb | [] | no_license | jakubSsocha/VOTING_CNBChUW | d309a9e25dba741358c6d38687e9fff484f53625 | 66cf7c8d39b5011f76d845e226e4ef58e22a9d76 | refs/heads/master | 2022-02-20T13:57:07.525495 | 2019-09-23T14:33:27 | 2019-09-23T14:33:27 | 207,508,855 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,423 | java | package Servlets.logers;
import DAO.User_DAO;
import Objects.User;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
@WebServlet("/Logger")
public class Logger extends HttpServlet {
private final String inactiveAccount= "Konto nieaktywne! Skontaktuj się z administratorem!";
private final String wrongPassword = "Sprawdź dane logowania!";
private final String userDoesNotExist= "Nie zarejestrowano użytkownika!";
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String email = request.getParameter("email");
String password = request.getParameter("password");
User_DAO user_dao = new User_DAO();
User user = user_dao.read(email);
if (user != null) {
if (user.getPassword().equals(password)) {
if (user.isActive()) {
boolean isUserAdmin=user.isAdmin();
boolean isUser=true;
HttpSession sess=request.getSession();
sess.setAttribute("isUser", isUser);
sess.setAttribute("isUserAdmin",isUserAdmin);
sess.setAttribute("id",user.getId());
getServletContext().getRequestDispatcher("/Director").forward(request, response);
return;
} else {
request.setAttribute("text",inactiveAccount);
getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);;
return;
}
} else {
request.setAttribute("text",wrongPassword);
getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
return;
}
}
request.setAttribute("text",userDoesNotExist);
getServletContext().getRequestDispatcher("/index.jsp").forward(request, response);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.sendRedirect("http://localhost:8080/voting_war_exploded/startLogin.jsp");
}
}
| [
"jakub.socha@wp.pl"
] | jakub.socha@wp.pl |
f3aefaeb421cc1e4a69305d95e7085e4ad92949c | 8404d9de90b0c6ed71f46869e461d69b9a784d61 | /app/src/main/java/com/matara/hotel/ui/tools/ToolsViewModel.java | b0434ae00de55819fad176d03a856ac285c6d5b7 | [
"MIT"
] | permissive | TharakaCz/MataraHotel | 6945173c24c3fa2b16c9a1327d3c858404fa0a3d | 6347500550dede375b5c2cdba89c5aa8cd1ee0c7 | refs/heads/master | 2020-09-13T16:16:56.067325 | 2019-11-20T03:06:23 | 2019-11-20T03:06:23 | 222,838,947 | 0 | 0 | MIT | 2019-11-20T03:06:24 | 2019-11-20T03:03:17 | null | UTF-8 | Java | false | false | 443 | java | package com.matara.hotel.ui.tools;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class ToolsViewModel extends ViewModel {
private MutableLiveData<String> mText;
public ToolsViewModel() {
mText = new MutableLiveData<>();
mText.setValue("This is tools fragment");
}
public LiveData<String> getText() {
return mText;
}
} | [
"tharakacz823@gmail.com"
] | tharakacz823@gmail.com |
a3f87d0c511b58ee9dddb01f6629300086fef3e7 | 4632952d8899368108aa5997c552926764eba8f5 | /spring-boot-lambda/src/main/java/tokyo/scratchcrew/sample/util/ConfigReader.java | 25730744b0d1087cd91124405b950e331197b920 | [] | no_license | teppeiii7/sc-lab | b252eccd4bf9ea60fa94b42646202a612fa7f79f | 2c039fc15723e9b41f3d8c3fc66b74b367d23335 | refs/heads/master | 2016-09-13T19:39:22.288086 | 2016-05-23T06:08:43 | 2016-05-23T06:08:43 | 59,213,991 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 849 | java | package tokyo.scratchcrew.sample.util;
import java.util.Map;
import org.springframework.stereotype.Component;
import tokyo.scratchcrew.sample.Application;
@Component
public class ConfigReader {
private Settings settings;
public String getRegion(){
return getSettings().getRegion();
}
public String getBucket(){
Map<String, String> map = getSettings().getS3();
return map.get("bucket");
}
public String getFile(){
Map<String, String> map = getSettings().getS3();
return map.get("file");
}
/**
* コンストラクタでの処理集中を防ぐため
* @return
*/
private Settings getSettings(){
if(settings == null){
settings = Application.getBean(Settings.class);
}
return settings;
}
}
| [
"teppy0606@gmail.com"
] | teppy0606@gmail.com |
96b5921bad0eaaa0832a8458ed4659912cb1bb20 | 8af7af5359c2ff81a0d37135cde21d4d9b17fa18 | /framework/src/play/DirectInvocation.java | 59146ecdaf38bb5bda543665b3a552fc10e8faf6 | [
"Apache-2.0"
] | permissive | branaway/pureplay | 3ac723c18c482cf04bf9f63cd9f6278abd209815 | 8901ff78cb66ccf4b0d25deca08c947fe758d988 | refs/heads/master | 2021-01-19T06:05:36.802556 | 2011-04-12T03:48:44 | 2011-04-12T03:48:44 | 840,432 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 393 | java | package play;
/**
* A direct invocation (in the same thread than caller)
*/
public abstract class DirectInvocation extends Invocation {
Suspend retry = null;
@Override
public boolean init() {
retry = null;
return super.init();
}
@Override
public void suspend(Suspend suspendRequest) {
retry = suspendRequest;
}
} | [
"bing_ran@hotmail.com"
] | bing_ran@hotmail.com |
3e9b6606ba7373be387c4582614759795c5ac94e | 37c5dda7ecbc084915cffb7ccb57841122c188a9 | /src/main/java/com/cn/red/point/o2c/mapper/LoggerMapper.java | 44f30dc01ad84e58e0340e83d420bcccacac785e | [] | no_license | hwt11/com-cn-ytb-index | 9be46951403de782d97cf8dff52243b7c0f3a8f8 | edeb8429a14af87ecace86e7c9d6e1281e7f907e | refs/heads/master | 2022-07-01T19:58:04.928937 | 2019-11-19T13:04:30 | 2019-11-19T13:04:30 | 220,751,398 | 0 | 0 | null | 2022-06-17T02:39:19 | 2019-11-10T06:34:36 | Java | UTF-8 | Java | false | false | 1,002 | java | package com.cn.red.point.o2c.mapper;
import com.cn.red.point.common.MoneyLOG;
import java.util.HashMap;
import java.util.Map;
public interface LoggerMapper {
void insertMLMoneyLog(Map<String, Object> map);
void insertMoneyLog(MoneyLOG moneyLOG);
void insertZLMoneyLOG(Map<String, Object> map);
void updateMoneyByRefereeLib(Map map);
Map<String,Object> queryAddressId(String address);
Map<String,Object> queryAddress(int userId);
void updateAddressReturn(Map<String, Object> map);
void updateAddressReturnBYName(Map<String, Object> map);
Map<String,Object> queryName(String pid);
void insertChinaLog(Map<String, Object> map);
void updateReferee(Map<String, Object> map);
String queryVIP(String userId);
void updateZLMoney(Map<String, Object> map);
String queryReferee(int userId);
void updateZLPM(HashMap<String, Object> stringObjectHashMap);
String queryReferee2(String addressId);
void updateUserMoney(Map<String, Object> map);
}
| [
"yw"
] | yw |
3aad24c4a03803b595165f98cf2025ae96fb8729 | 4bc56ce1f80dcdaddf88bf2a4dab94c97369582d | /src/main/java/ar/com/nextel/sfa/client/enums/TipoTarjetaEnum.java | d7ae324daf99f9b7ee76724d2933de05ccc9ac9c | [] | no_license | leti-ar/pruebaGit | a589180f40c8d8efad2ff3361d5c72cafb3bfc6e | 280ee5dd623c9989c47e6c9af781197800b262eb | refs/heads/master | 2020-05-20T13:01:36.007343 | 2014-04-09T15:28:33 | 2014-04-09T15:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 240 | java | package ar.com.nextel.sfa.client.enums;
public enum TipoTarjetaEnum {
AMX("1"),
CAB("2"),
DIN("3"),
MAS("4"),
VIS("5");
private String id;
TipoTarjetaEnum(String id) {
this.id = id;
}
public String getId() {
return id;
}
}
| [
"ebechtol"
] | ebechtol |
91f9b3774eabc3661653959905bf343369ac6576 | e4dacdaf58ba9dfd59f4678a1577a8e397063811 | /src/main/java/Generator.java | 1e6631f5f0863f09947a7d92136e0c19259ca285 | [] | no_license | jsobyra/Hadoop | 722e16dc293f01fd0aa2e7e057a0645a98522711 | 51403e39185e3a99ec4b6492fbf4bcc1947ed3fb | refs/heads/master | 2020-05-09T10:20:52.916265 | 2019-04-12T15:49:25 | 2019-04-12T15:49:25 | 181,038,515 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 937 | java | import java.time.LocalDate;
import java.util.Random;
import java.util.concurrent.atomic.AtomicLong;
public class Generator {
private final Random random;
private final AtomicLong counter;
public Generator() {
this.random = new Random();
this.counter = new AtomicLong();
}
public RandomEvent generateRandomEvent() {
Long id = counter.incrementAndGet() % (random.nextInt(10000) + 1);
String productName = "productName" + id;
Double productPrice = 2 * random.nextGaussian() + 2;
LocalDate purchaseDate = LocalDate.of(2019, 10, random.nextInt(6) + 1);
String productCategory = "productCategory" + id / 10;
String ipAddress = random.nextInt(256) + "." + random.nextInt(256)
+ "." + random.nextInt(256) + "." + random.nextInt(256);
return new RandomEvent(productName, productPrice, purchaseDate, productCategory, ipAddress);
}
} | [
"jakub.sobyra@gmail.com"
] | jakub.sobyra@gmail.com |
9ad258338b49be87b8df8a2a4440a50213da7d40 | b4d6c85d49d8d1b726d314d2408f4588f6415840 | /src/main/java/com/patternbox/sandbox/enums/light/LightOn.java | 761638153c54f44b957a5cb43d8b00eb95999700 | [] | no_license | patternbox/patternbox-sandbox | ade04834e75498e72ba314b8313db8e36c239944 | 9252cc7d59ffac62af8f50ffa2d15b287922e330 | refs/heads/master | 2020-03-29T18:31:43.669980 | 2014-04-25T16:00:25 | 2014-04-25T16:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,803 | java | /**************************** Copyright notice ********************************
Copyright (C)2014 by D. Ehms, http://www.patternbox.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 THE AUTHOR 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 AUTHOR 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 com.patternbox.sandbox.enums.light;
/**
* @author <a href='http://www.patternbox.com'>D. Ehms, Patternbox</a>
*/
public class LightOn implements LightStateOps {
/**
* @see com.patternbox.sandbox.enums.light.LightStateOps#toggle()
*/
public LightState toggle() {
return LightState.OFF;
}
}
| [
"ehms@patternbox.com"
] | ehms@patternbox.com |
061c6e909e41265d3001df1fe466e4aebcb491f8 | 35c1e4d8e072abf5bf33cda0234d6aeec9257c96 | /src/main/java/com/bobray/beernextdoor/entity/Store.java | aa5ae2f618083f052b84b37c76691c9bb166f26b | [] | no_license | bobrayEden/bnd_api | 29c33f0bd8bdb114780455db9f4cb2db02792749 | fe464fca8646c6e76231c51718d95658ef62409b | refs/heads/dev | 2023-01-13T13:28:31.952103 | 2020-11-24T16:41:58 | 2020-11-24T16:41:58 | 274,713,423 | 0 | 0 | null | 2020-11-24T16:41:59 | 2020-06-24T16:12:50 | HTML | UTF-8 | Java | false | false | 1,609 | java | package com.bobray.beernextdoor.entity;
import org.hibernate.annotations.Cascade;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Store {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long idStore;
private String nameStore;
private Long latitude;
private Long longitude;
@ManyToMany
@JoinTable(name = "store_beers",
joinColumns = @JoinColumn(name = "store_id"),
inverseJoinColumns = @JoinColumn(name = "beer_id"))
@Cascade(org.hibernate.annotations.CascadeType.ALL)
private List<Beer> storeBeers = new ArrayList<>();
public Store() {
}
public Long getIdStore() {
return idStore;
}
public void setIdStore(Long idStore) {
this.idStore = idStore;
}
public String getNameStore() {
return nameStore;
}
public void setNameStore(String nameStore) {
this.nameStore = nameStore;
}
public Long getLatitude() {
return latitude;
}
public void setLatitude(Long latitude) {
this.latitude = latitude;
}
public Long getLongitude() {
return longitude;
}
public void setLongitude(Long longitude) {
this.longitude = longitude;
}
public Long[] getCoordinates() {
Long[] coordinates = new Long[] {latitude, longitude};
return coordinates;
}
public List<Beer> getStoreBeers() {
return storeBeers;
}
public void setStoreBeers(List<Beer> storeBeers) {
this.storeBeers = storeBeers;
}
}
| [
"o.nocaudie@googlemail.com"
] | o.nocaudie@googlemail.com |
0b0a5926478f2d016ef9351a9264b5559d19872e | d84a9f11785da8d7f4ab13f9c4eb22cacc16b221 | /src/pl/time4it/dzien_4/wzorce/decorator/OponyZimowe.java | ef2e52f5a30e7b3cd4d9edadfdb8761e9e13a5ad | [] | no_license | Time4IT-pl/java_podstawy | c8f3e7f03da35d3ab2ec8504c0adbc57c83d63b0 | 8da65e22d7e65186fd4b3eb8aaad0d94c14011a8 | refs/heads/master | 2020-03-22T16:04:01.779368 | 2018-07-14T18:23:39 | 2018-07-14T18:23:39 | 140,300,553 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 400 | java | package pl.time4it.dzien_4.wzorce.decorator;
public class OponyZimowe extends Decorator{
Samochod samochod;
public OponyZimowe(Samochod samochod) {
this.samochod = samochod;
}
@Override
public String about() {
return samochod.about() + " z oponami zimowymi";
}
@Override
public double getCena() {
return samochod.getCena() + 2300;
}
}
| [
"lukaszdusza280@gmail.com"
] | lukaszdusza280@gmail.com |
3a3047c649e7eb32c9e933574afb7a6f7fdaddcc | bf84d30eff398b5a7323b853ac644268a2c6e695 | /app/src/main/java/com/example/mobileplatformdev/MonthSpinnerContainer.java | cc2d579bca64508a2fc842f0e4fa09f540751328 | [
"MIT"
] | permissive | FotisSpinos/Mobile-Platform-Development | 5b70cbc90c3bcbe77d95869c10c3af8584fe9a3c | 4ced29f63698e7c25ea2cd6f8e8a3b6f5e12dea1 | refs/heads/master | 2022-12-20T14:16:19.321317 | 2020-09-29T18:25:46 | 2020-09-29T18:25:46 | 239,791,615 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 704 | java | package com.example.mobileplatformdev;
import android.content.Context;
import android.widget.ArrayAdapter;
import com.example.mobileplatformdev.SpinnerDataContainer;
import java.util.ArrayList;
public class MonthSpinnerContainer implements SpinnerDataContainer<Byte> {
private Context context;
public MonthSpinnerContainer(Context context){
this.context = context;
}
@Override
public ArrayAdapter<Byte> GetSpinnerData() {
ArrayList<Byte> data = new ArrayList<Byte>(12);
for(byte i = 0; i < 12; i++){
data.add(i, (byte) (i + 1));
}
return new ArrayAdapter<Byte>(context, android.R.layout.simple_spinner_item, data);
}
}
| [
"FSPINO200@CALEDONIAN.AC.UK"
] | FSPINO200@CALEDONIAN.AC.UK |
328687b85c4ab1207fc29d35775c4d26af804a66 | b97bc0706448623a59a7f11d07e4a151173b7378 | /src/main/java/com/tcmis/internal/hub/action/MinMaxLevelAction.java | 4ded4666b31c9c36a34b8c5d703b14e48cae751d | [] | no_license | zafrul-ust/tcmISDev | 576a93e2cbb35a8ffd275fdbdd73c1f9161040b5 | 71418732e5465bb52a0079c7e7e7cec423a1d3ed | refs/heads/master | 2022-12-21T15:46:19.801950 | 2020-02-07T21:22:50 | 2020-02-07T21:22:50 | 241,601,201 | 0 | 0 | null | 2022-12-13T19:29:34 | 2020-02-19T11:08:43 | Java | UTF-8 | Java | false | false | 5,240 | java | package com.tcmis.internal.hub.action;
import java.math.BigDecimal;
import java.util.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.commons.beanutils.DynaBean;
import com.tcmis.common.admin.beans.PersonnelBean;
import com.tcmis.common.exceptions.*;
import com.tcmis.common.framework.*;
import com.tcmis.common.util.*;
import com.tcmis.internal.hub.beans.*;
import com.tcmis.internal.hub.process.*;
/******************************************************************************
* Controller for cabinet labels
* @version 1.0
******************************************************************************/
public class MinMaxLevelAction
extends TcmISBaseAction {
public ActionForward executeAction(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws
BaseException, Exception {
if (!this.isLoggedIn(request,true)) {
request.setAttribute("requestedPage", "minmaxlevelmain");
request.setAttribute("requestedURLWithParameters",
this.getRequestedURLWithParameters(request));
return (mapping.findForward("login"));
}
PersonnelBean personnelBean = (PersonnelBean) this.getSessionObject(request, "personnelBean");
if ( !personnelBean.getPermissionBean().hasUserPagePermission("minMaxLevels") )
{
return (mapping.findForward("nopermissions"));
}
MinMaxLevelInputBean bean = new MinMaxLevelInputBean();
MinMaxLevelProcess process = new MinMaxLevelProcess(this.getDbUser(request),this.getTcmISLocaleString(request));
if (form == null) {
return (mapping.findForward("success"));
}
BeanHandler.copyAttributes(form, bean, getTcmISLocale(request));
String action = (String) ((DynaBean) form).get("uAction");
if (action == null) {
request.setAttribute("authorizedUsersForUsergroup", process.getAuthorizedUsersForUsergroup(personnelBean, "uploadPartLevel"));
return (mapping.findForward("success"));
}
if ( action.equals("showlevels")) {
this.saveTcmISToken(request);
request.setAttribute("startSearchTime", new Date().getTime() );
request.setAttribute("currentMinMaxLevelViewBeanCollection",
process.getSearchData(personnelBean, bean));
request.setAttribute("endSearchTime", new Date().getTime() );
return (mapping.findForward("showlevels"));
}
//if form is not null we have to perform some action
if ( action.equals("search")) {
request.setAttribute("currentMinMaxLevelViewBeanCollection",
process.getSearchData(personnelBean, bean));
//request.setAttribute("minMaxLevelLogViewBeanCollection",
// process.getHistoryData(bean));
this.saveTcmISToken(request);
}
else if ( "createExcel".equals(action)){
this.setExcel(response, "MinMaxLevelGenerateExcel");
process.createExcelFile(process.getSearchData(personnelBean, bean), (java.util.Locale) request.getSession().getAttribute("tcmISLocale")).write(response.getOutputStream());
return noForward;
}else if ( "createTemplateData".equals(action)){
this.setExcel(response, "MinMaxLevelGenerateExcel");
process.createTemplateData(personnelBean, bean, (java.util.Locale) request.getSession().getAttribute("tcmISLocale")).write(response.getOutputStream());
return noForward;
}
if ( action.equals("history")) {
request.setAttribute("minMaxLevelLogViewBeanCollection",
process.getHistoryData(personnelBean, bean));
this.saveTcmISToken(request);
}
else if ( action.equals("update")) {
this.checkToken(request);
if("showlevels".equals(request.getParameter("showlevels"))) {
request.setAttribute("startSearchTime", new Date().getTime() );
}
// java.util.Enumeration<String> e = request.getParameterNames();
//
// Vector<String> v = new Vector();
// while(e.hasMoreElements())
// v.add(e.nextElement());
// Collections.sort(v);
// for(String ss:v) {
// System.out.println("Name:"+ss+":value:"+request.getParameter(ss));
// }
Collection c = new Vector();
DynaBean dynaBean = (DynaBean) form;
Collection beans = BeanHandler.getBeans(dynaBean,
"minMaxLevelInputBean", new MinMaxLevelInputBean(), getTcmISLocale(request));
Collection errorCollection = process.update(beans,personnelBean);
if (errorCollection.size() > 0) {
request.setAttribute("tcmISErrors", errorCollection);
}
request.setAttribute("currentMinMaxLevelViewBeanCollection",
process.getSearchData(personnelBean, bean));
if("showlevels".equals(request.getParameter("showlevels"))) {
request.setAttribute("endSearchTime", new Date().getTime() );
return (mapping.findForward("showlevels"));
}
// request.setAttribute("minMaxLevelLogViewBeanCollection",
// process.getHistoryData(bean));
}
return (mapping.findForward("success"));
}
} | [
"julio.rivero@wescoair.com"
] | julio.rivero@wescoair.com |
dfb876c1b01973fbb1dc5b4ba3dfe710e8b93158 | 43c3e196bf5113ed4167284e8dea45c6a0589337 | /lib-gwt-svg-samples/tags/0.4.5/src/main/java/org/vectomatic/svg/samples/client/widgets/WidgetsSample.java | bc05c6e7644c8aadf55f5f8ff3e7fd68aa3b055f | [] | no_license | toxic88/vectomatic | 1bdec743b7dd4a7c582a792630c5c106db96b418 | aa4138b47cf0d080d7a3a4571798114f719ade30 | refs/heads/master | 2016-09-06T06:16:50.032347 | 2012-02-07T20:54:46 | 2012-02-07T20:54:46 | 33,423,929 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,344 | java | /**********************************************
* Copyright (C) 2009 Lukas Laag
* This file is part of lib-gwt-svg-samples.
*
* libgwtsvg-samples 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.
*
* libgwtsvg-samples 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 libgwtsvg-samples. If not, see http://www.gnu.org/licenses/
**********************************************/
/**
* This sample contains artwork from project Open Clip Art
* See the project website at http://www.openclipart.org/ for license details
*/
package org.vectomatic.svg.samples.client.widgets;
import org.vectomatic.dom.svg.OMSVGGElement;
import org.vectomatic.dom.svg.OMSVGPathElement;
import org.vectomatic.dom.svg.ui.SVGImage;
import org.vectomatic.dom.svg.ui.SVGPushButton;
import org.vectomatic.dom.svg.ui.SVGResource;
import org.vectomatic.svg.samples.client.SampleBase;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.StyleInjector;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOverEvent;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.SimplePanel;
public class WidgetsSample extends SampleBase {
private static class Tooltip extends PopupPanel {
private HTML contents;
private Timer timer;
public Tooltip() {
super(true);
contents = new HTML();
add(contents);
setStyleName(WidgetsSampleBundle.INSTANCE.getCss().tooltip());
}
public void show(int x, int y, final String text, final int delay) {
contents.setHTML(text);
setPopupPosition(x, y);
super.show();
if (timer != null) {
timer.cancel();
}
timer = new Timer() {
public void run() {
Tooltip.this.hide();
timer = null;
}
};
timer.schedule(delay);
}
}
public interface WidgetsSampleBundle extends ClientBundle {
public static WidgetsSampleBundle INSTANCE = GWT.create(WidgetsSampleBundle.class);
@Source("as_coeur_jean_victor_bal_.svg")
SVGResource hearts();
@Source("as_trefle_jean_victor_ba_.svg")
SVGResource clubs();
@Source("as_carreau_jean_victor_b_.svg")
SVGResource diamonds();
@Source("as_pique_jean_victor_bal_.svg")
SVGResource spades();
@Source("ledButton.svg")
SVGResource led();
@Source("play-pause.svg")
SVGResource playButton();
@Source("tooltip.css")
public TooltipCss getCss();
}
interface TooltipCss extends CssResource {
public String tooltip();
}
interface WidgetsSampleBinder extends UiBinder<SimplePanel, WidgetsSample> {
}
private static WidgetsSampleBinder binder = GWT.create(WidgetsSampleBinder.class);
// SVG defined in an external resource
@UiField
SVGImage hearts;
@UiField
SVGImage clubs;
@UiField
SVGImage diamonds;
@UiField
SVGImage spades;
@UiField
SVGPushButton clickMeButton;
@UiField
SVGPushButton holdMeDownButton;
@UiField
Label clickCount;
// SVG defined inline with bindings to internal elements
@UiField
OMSVGGElement eyes;
@UiField
OMSVGPathElement mouth;
private Tooltip tooltip;
@Override
public Panel getPanel() {
if (panel == null) {
TooltipCss css = WidgetsSampleBundle.INSTANCE.getCss();
// Inject CSS in the document headers
StyleInjector.inject(css.getText());
tooltip = new Tooltip();
panel = binder.createAndBindUi(this);
tabPanel.getTabBar().setTabText(0, "Widgets");
loadSampleCode("WidgetsSample");
}
return panel;
}
private void showTooltip(int x, int y, String text) {
tooltip.show(x + 20, y + 30, text, 3000);
}
@UiHandler("hearts")
public void onMouseOutHearts(MouseOutEvent event) {
tooltip.hide();
}
@UiHandler("hearts")
public void onMouseOverHearts(MouseOverEvent event) {
showTooltip(hearts.getAbsoluteLeft(), hearts.getAbsoluteTop(), "hearts");
}
@UiHandler("clubs")
public void onMouseOutClubs(MouseOutEvent event) {
tooltip.hide();
}
@UiHandler("clubs")
public void onMouseOverClubs(MouseOverEvent event) {
showTooltip(clubs.getAbsoluteLeft(), clubs.getAbsoluteTop(), "clubs");
}
@UiHandler("diamonds")
public void onMouseOutDiamonds(MouseOutEvent event) {
tooltip.hide();
}
@UiHandler("diamonds")
public void onMouseOverDiamonds(MouseOverEvent event) {
showTooltip(diamonds.getAbsoluteLeft(), diamonds.getAbsoluteTop(), "diamonds");
}
@UiHandler("spades")
public void onMouseOutSpades(MouseOutEvent event) {
tooltip.hide();
}
@UiHandler("spades")
public void onMouseOverSpades(MouseOverEvent event) {
showTooltip(spades.getAbsoluteLeft(), spades.getAbsoluteTop(), "spades");
}
@UiHandler("eyes")
public void onMouseOutEyes(MouseOutEvent event) {
tooltip.hide();
}
@UiHandler("eyes")
public void onMouseOverEyes(MouseOverEvent event) {
showTooltip(event.getClientX(), event.getClientY(), "eyes");
}
@UiHandler("mouth")
public void onMouseOutMouth(MouseOutEvent event) {
tooltip.hide();
}
@UiHandler("mouth")
public void onMouseOverMouth(MouseOverEvent event) {
showTooltip(event.getClientX(), event.getClientY(), "mouth");
}
@UiHandler("clickMeButton")
public void onClick(ClickEvent event) {
Window.alert("Ouch !");
}
@UiHandler("holdMeDownButton")
public void onMouseDown(MouseDownEvent event) {
int count = Integer.parseInt(clickCount.getText());
clickCount.setText(Integer.toString(count + 1));
}
}
| [
"laaglu@4ed4caa0-1436-11df-ad8c-0f209b884837"
] | laaglu@4ed4caa0-1436-11df-ad8c-0f209b884837 |
e99d41a97ba800bd29d1899855466cd9d7c5dd13 | a40e0e61452da5f061536527e0f520df8cf3fb62 | /s-ramp-api/src/main/java/org/oasis_open/docs/s_ramp/ns/s_ramp_v1/Collaboration.java | 10a2cf38adc28630d024b21614a58dd8b7d7786a | [
"Apache-2.0"
] | permissive | objectiser/s-ramp | 34e101a22a38d2d690ab3d61634f687f1444c17f | f8711a8808b33fde80c31e78dc71d8a91eeba0a3 | refs/heads/master | 2021-01-14T14:06:29.752783 | 2014-12-01T22:43:20 | 2014-12-01T22:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,835 | java | /*
* Copyright 2013 JBoss Inc
*
* 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.
*/
//
// 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.03.26 at 04:53:08 PM EDT
//
package org.oasis_open.docs.s_ramp.ns.s_ramp_v1;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Collaboration complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Collaboration">
* <complexContent>
* <extension base="{http://docs.oasis-open.org/s-ramp/ns/s-ramp-v1.0}Composition">
* <anyAttribute/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Collaboration")
public class Collaboration
extends Composition
implements Serializable
{
private static final long serialVersionUID = 6787194085894978487L;
}
| [
"kstam@redhat.com"
] | kstam@redhat.com |
d77252ce56c394aa5b793465bf6bd26ac8a3ca87 | 245f00f48f3862fe920749273986e49a80a043c6 | /src/KanbanTask.java | 95f7d46f6a9008a2babf0acea71788b8ecc14300 | [] | no_license | varunac14/Multitenant | a46a42ce221d5172d5176804b04dcc6dbbec89c5 | 481d26e91d9de798f704aaaa1eb3da395bd089cd | refs/heads/master | 2016-09-05T09:34:03.331973 | 2015-02-23T00:39:44 | 2015-02-23T00:39:44 | 31,188,282 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,100 | java |
import java.sql.Date;
public class KanbanTask {
private String title;
private String TaskID;
private String Description;
private String Priority;
private String Asignee;
private Date Deadline;
private String Column;
public KanbanTask() {
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getTaskID() {
return TaskID;
}
public void setTaskID(String taskID) {
TaskID = taskID;
}
public String getDescription() {
return Description;
}
public void setDescription(String description) {
Description = description;
}
public String getPriority() {
return Priority;
}
public void setPriority(String priority) {
Priority = priority;
}
public String getAsignee() {
return Asignee;
}
public void setAsignee(String asignee) {
Asignee = asignee;
}
public Date getDeadline() {
return Deadline;
}
public void setDeadline(Date deadline) {
Deadline = deadline;
}
public String getColumn() {
return Column;
}
public void setColumn(String column) {
Column = column;
}
}
| [
"varunac1990@gmail.com"
] | varunac1990@gmail.com |
706579ce109cab32f4e423230cc5f597ede9a9a7 | 28139c21c1c2e7cc8688130e6b7f118e24e5639f | /shuteye/src/main/java/net/ethx/shuteye/http/request/StreamMultipartField.java | f72fda68b58547f8b0fdd368675ae16142d4730d | [
"Apache-2.0"
] | permissive | stevebarham/shuteye | 29a2b6cd4f0ff130bae0026221eac0cb8a9d5431 | 14e4fab811505aed23c9292b997bb8e4ff218113 | refs/heads/master | 2023-08-19T01:56:16.050946 | 2016-12-09T15:36:50 | 2016-12-09T15:36:50 | 33,831,016 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,421 | java | package net.ethx.shuteye.http.request;
import net.ethx.shuteye.http.ContentType;
import net.ethx.shuteye.util.Encodings;
import net.ethx.shuteye.util.Streams;
import java.io.*;
class StreamMultipartField implements MultipartField {
private final String name;
private final String fileName;
private final ContentType contentType;
private final InputStream stream;
public StreamMultipartField(final String name, final String fileName, final ContentType contentType, final InputStream stream) {
this.name = name;
this.fileName = fileName;
this.contentType = contentType;
this.stream = stream;
}
@Override
public void writeTo(final OutputStream out) throws IOException {
final PrintWriter preamble = new PrintWriter(new OutputStreamWriter(out, Encodings.ISO8859));
try {
preamble.print("Content-Disposition: form-data; name=\"" + name + "\"; filename=\"" + fileName + "\"" + FormDataEntity.LINE_FEED);
preamble.print("Content-Type: " + contentType + FormDataEntity.LINE_FEED);
preamble.print("Content-Transfer-Encoding: binary" + FormDataEntity.LINE_FEED);
preamble.print(FormDataEntity.LINE_FEED);
preamble.flush();
Streams.copy(stream, out);
preamble.print(FormDataEntity.LINE_FEED);
} finally {
preamble.flush();
}
}
}
| [
"dev@ethx.net"
] | dev@ethx.net |
21fdf99051fa08900dc44a0354f4a1a3062af6b5 | 90373267eb2bf7adbecc66f8c946825e964bca7f | /Unit013Quiz/src/StringSearchRunner.java | 0cf9a5bb4ee453d0c6fcbdbf4d84ba950e10cbe8 | [] | no_license | hbg/beg_harris_apcsa-p3 | e3dd1a6eb8276c5015954f7772bfb39216fee85d | 18722ac3e60cdc23de5d7a25cf36a12a93ae598a | refs/heads/master | 2020-04-19T20:15:02.527393 | 2019-05-02T19:52:30 | 2019-05-02T19:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 374 | java | //(c) A+ Computer Science
//www.apluscompsci.com
//Name -
import java.util.ArrayList;
import static java.lang.System.*;
public class StringSearchRunner
{
public static void main(String args[])
{
System.out.println(StringSearch.countLetters("computerscience", "t"));
System.out.println(StringSearch.countWords("computerscience", "to"));
//add more test cases
}
} | [
"legostarwarsguy02@gmail.com"
] | legostarwarsguy02@gmail.com |
791e692fd1e9a3d46e46b880e2f2e12cd64349fb | 7771fe8cc22074f0053b1ad6ab1b74c64156fe62 | /src/main/java/com/vaadin/demo/dashboard/DashboardSessionInitListener.java | e5701a5efee9439864fef59ce9d776e97cbe5d7e | [
"Apache-2.0"
] | permissive | zeynin/aimsio | cb35466ce2b121d5084697244f269b02b69b0587 | ab061fe7d0ad5f76edd2334379b0ef9638cb7d31 | refs/heads/master | 2020-04-02T05:18:39.481512 | 2016-06-12T23:22:41 | 2016-06-12T23:22:41 | 60,052,269 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,991 | java | package com.vaadin.demo.dashboard;
import org.jsoup.nodes.Element;
import com.vaadin.server.BootstrapFragmentResponse;
import com.vaadin.server.BootstrapListener;
import com.vaadin.server.BootstrapPageResponse;
import com.vaadin.server.ServiceException;
import com.vaadin.server.SessionInitEvent;
import com.vaadin.server.SessionInitListener;
@SuppressWarnings("serial")
public class DashboardSessionInitListener implements SessionInitListener {
@Override
public final void sessionInit(final SessionInitEvent event)
throws ServiceException {
event.getSession().addBootstrapListener(new BootstrapListener() {
@Override
public void modifyBootstrapPage(final BootstrapPageResponse response) {
final Element head = response.getDocument().head();
head.appendElement("meta")
.attr("name", "viewport")
.attr("content",
"width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no");
head.appendElement("meta")
.attr("name", "apple-mobile-web-app-capable")
.attr("content", "yes");
head.appendElement("meta")
.attr("name", "apple-mobile-web-app-status-bar-style")
.attr("content", "black-translucent");
String contextPath = response.getRequest().getContextPath();
head.appendElement("link")
.attr("rel", "apple-touch-icon")
.attr("href",
contextPath
+ "/VAADIN/themes/dashboard/img/app-icon.png");
}
@Override
public void modifyBootstrapFragment(
final BootstrapFragmentResponse response) {
}
});
}
}
| [
"noreply@github.com"
] | noreply@github.com |
18c759d2950b4d88537149da5716af3926575900 | 55cd76ee6a1c4c56c68c0487632d25fced8d3b5f | /lab6/src/main/java/Server.java | 922a125affe28f37410855489b2e76da6b91057e | [] | no_license | EldarOru/LastJavaLab | 12feb5257414b0cbac5d243eb022f605332f810d | dabbcf5528cf9646e37c76aed5f64c0904aa8558 | refs/heads/master | 2022-09-20T17:36:48.285320 | 2022-09-18T14:26:35 | 2022-09-18T14:26:35 | 195,774,409 | 0 | 0 | null | 2022-09-08T01:01:22 | 2019-07-08T08:56:23 | Java | UTF-8 | Java | false | false | 11,391 | java |
/*
import java.io.*;
import java.net.*;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
public class Server {
private static IslandManager islandManager;
static File ServerOut = new File("OutputServer.json");
static String objects = "";
static int k = 0;
public static void main(String args[]) throws SocketException {
{
System.out.println("Сервер запущен!");
islandManager = new IslandManager();
islandManager.createDirection();
objects= islandManager.readFile(ServerOut);
System.out.println(objects);
islandManager.createVector(objects);
System.out.println(islandManager.vectorJSON.get(0).getName());
islandManager.creation();
try {
DatagramChannel channel = DatagramChannel.open();//Открывает канал дейтаграммы.
boolean permission = false;
channel.bind(new InetSocketAddress(9876));
//Этот метод используется, чтобы установить ассоциацию между сокетом и локальным адресом.
// Как только ассоциация устанавливается тогда, сокет остается связанным, пока канал не закрывается.
// Если local у параметра есть значение null тогда сокет будет связан с адресом, который присваивается автоматически.
while (true) {
Thread t = new Thread(() -> {//поток и лямбда выражение
SocketAddress address;
ByteBuffer buf = ByteBuffer.allocate(1024);
buf.clear();
//TODO SYKA
try {
address = channel.receive(buf);//принятия пакета данных
} catch (IOException ex) {
address = null;
ex.printStackTrace();
}
System.out.println("Команда успешно принята");
String command = null;
try {
command = (String) deserialize(buf.array());
} catch (IOException | ClassNotFoundException e) {
e.printStackTrace();
}
System.out.println(command);
islandManager.setMessage("");
if (k==1 ) {
if (command.equals("removeLast")) {
islandManager.removeLast();
} else if (command.length() > 6 && command.substring(0, 6).equalsIgnoreCase("Import")) {
/*while (!islandManager.vectorJSON.isEmpty()){
for (int i = 0; i<islandManager.vectorJSON.size();i++) {
islandManager.vectorJSON.remove(i);
}
}
String lol = command.substring(6);
System.out.println(lol);
islandManager.removeAll();
islandManager.createVector(lol);
islandManager.creation();
islandManager.addMessageWithN("Данные успешно импортированы");
islandManager.importFromClient(command);
}
else if (command.startsWith("[")){
islandManager.createDirection();
islandManager.createVector(command);
islandManager.creation();
}
else if (command.equalsIgnoreCase("save")) {
String fakgoback = islandManager.toJson();
try {
FileWriter fileWriter = new FileWriter(ServerOut);
BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
bufferedWriter.write(fakgoback);
bufferedWriter.flush();
bufferedWriter.close();
islandManager.addMessageWithN("Данные успешные сохранены на сервере");
} catch (IOException e) {
e.printStackTrace();
}
} else if (command.equals("reorder")) {
islandManager.reorder();
System.out.println("Почему не работает?");
} else if (command.equals("info")) {
islandManager.info();
} else if (command.equalsIgnoreCase("showCollection") && command.length() > 8) {
islandManager.showCollection();
} else if (command.equals("show")) {//пофикси
islandManager.addMessageWithN("Северная часть остров");
for (int i = 0; i < islandManager.island_north.InnerThing.size(); i++) {
islandManager.addMessageWithN(islandManager.island_north.InnerThing.get(i).getName());
}
islandManager.addMessageWithN("Южная часть остров");
for (int i = 0; i < islandManager.island_south.InnerThing.size(); i++) {
islandManager.addMessageWithN(islandManager.island_south.InnerThing.get(i).getName());
}
islandManager.addMessageWithN("Западная часть остров");
for (int i = 0; i < islandManager.island_west.InnerThing.size(); i++) {
islandManager.addMessageWithN(islandManager.island_west.InnerThing.get(i).getName());
}
islandManager.addMessageWithN("Восточная часть остров");
for (int i = 0; i < islandManager.island_east.InnerThing.size(); i++) {
islandManager.addMessageWithN(islandManager.island_east.InnerThing.get(i).getName());
}
islandManager.Event();
// islandManager.addMessageWithN(islandManager.island_west.InnerThing.get(1).getName());
} else if (command.length() > 8 && command.substring(0, 9).equalsIgnoreCase("addNormal")) {
islandManager.addNormal(command);
} else if (command.equals("help")) {
islandManager.help();
} else if (command.length() > 6 && command.substring(0, 6).equals("remove")) {
islandManager.remove(command);
} else if (command.length() > 3 && command.substring(0, 3).equals("add")) {
String kek = (command.substring(3, command.length() - 1 + 1));
islandManager.addMessageWithN((kek));
islandManager.add(kek);
} else if (command.equalsIgnoreCase("load")) {
islandManager.addMessageWithN(islandManager.toJson());
islandManager.addMessageWithN("Данные успешно загружены в ваш клиент");
} else if (command.equalsIgnoreCase("exit")) {
islandManager.addMessageWithN(islandManager.toJson());
islandManager.addMessageWithN(("Отключение от сервера..."));
}
else {
islandManager.addMessageWithN(("Команда не найдена"));
islandManager.addMessageWithN(("Введите help для получения информации о командах"));
}
}if (k==0){
islandManager.addMessageWithN("aaa");
if ( command.length()>13&&command.substring(0,12).equalsIgnoreCase("Registration")){
islandManager.addMessageWithN("aaa");
islandManager.registration(command);
}else if (command.length()>13 && command.substring(0,5).equalsIgnoreCase("login")){
k=+1;
}
else {
islandManager.addMessageWithN("АВТОРИЗИРУЙСЯ");
}
}
/*byte[] sendData = new byte[8192];
try {
sendData = serialize(islandManager.getMessage());
//данные для отправки на клиент
//ByteBuffer buffer = ByteBuffer.wrap("lol".getBytes());
}catch (IOException K){
}
ByteBuffer buffer = ByteBuffer.wrap(islandManager.getMessage().getBytes());
try {
channel.send(buffer, address);//отправка сообщения
} catch (IOException e) {
e.printStackTrace();
}
}
);
t.start();
}
}catch (IOException E){
}
}
}
private static byte[] serialize(String str) throws IOException {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeUTF(str);
oos.flush();
oos.close();
return bos.toByteArray();
}
private static Object deserialize(byte[] data) throws IOException, ClassNotFoundException {
ByteArrayInputStream bos = new ByteArrayInputStream(data);
ObjectInputStream ois = new ObjectInputStream(bos);
Object obj = ois.readUTF();
ois.close();
return obj;
}
}*/ | [
"noreply@github.com"
] | noreply@github.com |
131c087c01a95298c7868a2a4503ca11ce888f4c | 8fc0465be3612e8a6dbd8c1075ff7907e9059b49 | /src/main/java/com/example/companys/controller/SqlController.java | cf8e96decc1dc7371060c022e89abee6f815dc15 | [] | no_license | suxiaomie/Companys-wechat | 0cb8c88524c82ab810eb7e5b8cfcf44ad8a31c1f | b354967a3088011ca808134baefe47414615078f | refs/heads/master | 2022-06-25T06:41:28.262349 | 2019-12-22T15:33:09 | 2019-12-22T15:33:09 | 229,589,283 | 0 | 0 | null | 2022-05-20T21:20:13 | 2019-12-22T15:30:45 | Java | UTF-8 | Java | false | false | 1,394 | java | package com.example.companys.controller;
import com.example.companys.entity.Department;
import com.example.companys.entity.Person;
import com.example.companys.service.impl.DepartmentServiceImpl;
import com.example.companys.service.impl.PersonServiceImpl;
import com.example.companys.service.impl.SqlImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
public class SqlController {
@Autowired
private PersonServiceImpl personService;
@Autowired
private DepartmentServiceImpl departmentService;
//数据库读取人员信息
@GetMapping("/covered")
public String readPersonFromSql() {
String result="操作失败";
//1.部门覆盖
List<Department> departmentList=departmentService.queryAll();
SqlImpl sql=new SqlImpl();
String dep= sql.DepsendToWeChat(departmentList);
//2.人员覆盖
if (dep.equals("部门覆盖完毕")){
List<Person> personList=personService.queryAll();
String per= sql.PersendToWeChat(personList);
if (per.equals("人员信息覆盖完毕")){
result="操作成功";
}
}
System.out.println(result);
return result;
}
}
| [
"sxl@qq.com"
] | sxl@qq.com |
b2192d751a80c1cb332460cec3369e23a300ecf5 | 6dd8d09c6e61aa206849c7315eddcbc4e85ff5a1 | /promotionEJB/.svn/pristine/b2/b2192d751a80c1cb332460cec3369e23a300ecf5.svn-base | 87edb55ed308c90dc98395ebf78f9a4d369b1561 | [] | no_license | djavaphp/pwm | a588f195bab20fe47057027ba57a6a3bbf20394f | b3e9c4b4dbbfd942bb07d12371ec51d903f7e889 | refs/heads/master | 2020-12-30T18:50:29.332049 | 2014-08-30T08:57:15 | 2014-08-30T08:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,091 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.fks.promo.common;
/**
*
* @author ajitn
*/
public class CommonStatus {
public static final Long PENDING_FOR_APPROVAL = 1l;
public static final Long HOLD = 2l;
public static final Long PROPOSAL_DRAFT = 3l;
public static final Long PROPOSAL_SUBMIT = 4l;
public static final Long PROPOSAL_FILE_UNDER_PROCESS = 5l;
public static final Long PROPOSAL_FILE_FAILURE = 6l;
public static final Long PROMOTION_SAVE = 11l;
public static final Long PROMOTION_SUBMIT = 12l;
public static final Long L1_APPROVE = 14l;
public static final Long L2_APPROVE = 17l;
public static final Long BUSINESS_EXIGENCY_APPROVE = 25l;
public static final Long TEAM_MEMBER_ASSIGNED = 27l;
public static final Long TEAM_MEMBER_HOLD = 29l;
public static final Long TEAM_MEMBER_REJECTED = 30l;
public static final Long PROMO_CLOSED = 31l;
public static final Long PROPOSAL_ACCEPTED = 54l;
public static final Long PROPOSAL_REJECTED = 55l;
}
| [
"bhavsar.er@gmail.com"
] | bhavsar.er@gmail.com | |
86bcbc5ba5db145668d8de9e11c9e8dee4a49c81 | 50ed4a2194dcae08567669b992ee5593225252be | /src/main/java/org/nerdcore/spellbookmanager/models/Spell.java | 9148022e59da090bf9674d2a3079a6c5de18daf1 | [] | no_license | PatrickPitts/spellbookmanager | f46b4be1fd73e83eb38f1499135ccce6d322306a | 2af9aa52384ec5039bdbf18015320c58121a887e | refs/heads/master | 2022-10-06T06:34:40.773985 | 2020-01-25T00:22:06 | 2020-01-25T00:22:06 | 207,412,522 | 0 | 0 | null | 2022-09-01T23:13:51 | 2019-09-09T21:59:45 | Java | UTF-8 | Java | false | false | 6,861 | java | package org.nerdcore.spellbookmanager.models;
import org.hibernate.annotations.CollectionId;
import org.json.simple.JSONObject;
import javax.persistence.*;
import java.sql.ResultSet;
import java.sql.SQLException;
@Entity
@Table(name = "spellCollection")
public class Spell {
@Id
@GeneratedValue
@Column(name = "spellID")
private int id;
@Column(name = "spellName", unique = true)
private String name;
@Column(name = "description", length = 5000)
private String description;
@Column(name = "spellLevel")
private int spellLevel;
@Column(name = "school")
private String school;
@Column(name = "castingTime")
private String castingTime;
@Column(name = "range")
private String range;
@Column(name = "verbalComponent")
private boolean verbalComponent;
@Column(name = "somaticComponent")
private boolean somaticComponent;
@Column(name = "materialComponents")
private String materialComponents;
@Column(name = "duration")
private String duration;
@Column(name = "source")
private String source;
@Column(name = "ritualCasting")
private boolean ritualCasting;
@Column(name = "concentration")
private boolean concentration;
private String abbreviatedDescription;
public String getAbbreviatedDescription() {
return abbreviatedDescription;
}
public void setAbbreviatedDescription(String abbreviatedDescription) {
this.abbreviatedDescription = abbreviatedDescription;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public boolean isConcentration() {
return concentration;
}
public void setConcentration(boolean concentration) {
this.concentration = concentration;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public int getSpellLevel() {
return spellLevel;
}
public void setSpellLevel(int spellLevel) {
this.spellLevel = spellLevel;
}
public String getSchool() {
return school;
}
public void setSchool(String school) {
this.school = school;
}
public String getCastingTime() {
return castingTime;
}
public void setCastingTime(String castingTime) {
this.castingTime = castingTime;
}
public String getRange() {
return range;
}
public void setRange(String range) {
this.range = range;
}
public boolean isVerbalComponent() {
return verbalComponent;
}
public void setVerbalComponent(boolean verbalComponent) {
this.verbalComponent = verbalComponent;
}
public boolean isSomaticComponent() {
return somaticComponent;
}
public void setSomaticComponent(boolean somaticComponent) {
this.somaticComponent = somaticComponent;
}
public String getMaterialComponents() {
return materialComponents;
}
public void setMaterialComponents(String materialComponent) {
this.materialComponents = materialComponent;
}
public String getDuration() {
return duration;
}
public void setDuration(String duration) {
this.duration = duration;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public boolean isRitualCasting() {
return ritualCasting;
}
public void setRitualCasting(boolean ritualCasting) {
this.ritualCasting = ritualCasting;
}
@Override
public String toString() {
String ret = "";
ret += "Name: " + this.name + "\n";
ret += "School: " + this.school + "\n";
ret += "Range: " + this.range + "\n";
ret += "Level: " + this.spellLevel + "\n";
ret += "castingTime: " + this.castingTime + "\n";
ret += "verbalComponent: " + this.verbalComponent + "\n";
ret += "somaticComponent: " + this.somaticComponent + "\n";
ret += "materialComponents: " + this.materialComponents + "\n";
ret += "duration: " + this.duration + "\n";
ret += "description: " + this.description + "\n";
ret += "source: " + this.source + "\n";
ret += "ritualCasting: " + this.ritualCasting + "\n";
ret += "spellID: " + this.id;
return ret;
}
public boolean equals(Spell spellToCheck) {
if (this.name.equals(spellToCheck.getName())) {
return true;
}
return false;
}
public Spell(JSONObject obj) {
this.name = (String) obj.get("name");
this.school = (String) obj.get("school");
this.range = (String) obj.get("range");
this.spellLevel = ((Long) obj.get("spellLevel")).intValue();
this.castingTime = (String) obj.get("castingTime");
this.verbalComponent = (Boolean) obj.get("verbalComponent");
this.somaticComponent = (Boolean) obj.get("somaticComponent");
this.materialComponents = (String) obj.get("materialComponents");
this.duration = (String) obj.get("duration");
this.description = (String) obj.get("description");
this.source = (String) obj.get("source");
this.ritualCasting = (Boolean) obj.get("ritualCasting");
this.concentration = (Boolean) obj.get("concentration");
}
public Spell() {
}
public Spell(ResultSet rs) {
try {
this.id = rs.getInt("spellID");
this.name = rs.getString("spellName");
this.school = rs.getString("school");
this.range = rs.getString("range");
this.spellLevel = rs.getInt("spellLevel");
this.castingTime = rs.getString("castingTime");
this.verbalComponent = rs.getBoolean("verbalComponent");
this.somaticComponent = rs.getBoolean("somaticComponent");
this.materialComponents = rs.getString("materialComponents");
this.duration = rs.getString("duration");
this.description = rs.getString("description");
this.source = rs.getString("source");
this.ritualCasting = rs.getBoolean("ritualCasting");
this.concentration = rs.getBoolean("concentration");
if (this.description.length() < 100) {
this.abbreviatedDescription = this.description;
} else {
this.abbreviatedDescription = this.description.substring(0, 100) + "...";
}
} catch (SQLException e) {
e.printStackTrace();
}
}
}
| [
"patrick.pittsj@gmail.com"
] | patrick.pittsj@gmail.com |
36f71ac0a4fa021e2afb1d55a4c88fed591d2ca5 | 3c968dad53fbf2a9700ca336638b88571d1c6dd8 | /zebra/zebra-core/src/main/java/com/guosen/zebra/core/boot/autoconfigure/GrpcProperties.java | 417228c073a7e5d1e9c33d4ac4ebeebdd9c2765c | [
"Apache-2.0"
] | permissive | AurtyMX/zebra | 385f791e53273d161dcb2ef12b0566e5ae7cb431 | 4d636073dbd1eb6c7134692db574834c523ba002 | refs/heads/master | 2023-05-15T14:25:26.663339 | 2019-12-19T01:22:04 | 2019-12-19T01:22:04 | 415,243,811 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,651 | java | package com.guosen.zebra.core.boot.autoconfigure;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @ClassName: GrpcProperties
* @Description: 配置读取类
* @author 邓启翔
* @date 2017年10月31日 上午10:36:32
*
*/
@ConfigurationProperties(prefix = "zebra.grpc")
public class GrpcProperties {
private String registryAddress;
private int port;
private String application;
private int maxPoolSize;
private int corePoolSize;
private int queueCapacity;
public int getMaxPoolSize() {
return maxPoolSize;
}
public void setMaxPoolSize(int maxPoolSize) {
this.maxPoolSize = maxPoolSize;
}
public int getCorePoolSize() {
return corePoolSize;
}
public void setCorePoolSize(int corePoolSize) {
this.corePoolSize = corePoolSize;
}
public int getQueueCapacity() {
return queueCapacity;
}
public void setQueueCapacity(int queueCapacity) {
this.queueCapacity = queueCapacity;
}
public String getRegistryAddress() {
return registryAddress;
}
public void setRegistryAddress(String registryAddress) {
this.registryAddress = registryAddress;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
@Override
public String toString() {
return "GrpcProperties [registryAddress=" + registryAddress + ", port=" + port + ", application=" + application
+ ", maxPoolSize=" + maxPoolSize + ", corePoolSize=" + corePoolSize + ", queueCapacity=" + queueCapacity
+ "]";
}
}
| [
"chenpeixin@guosen.com.cn"
] | chenpeixin@guosen.com.cn |
4a65d4d72e077bfa46432e01bd40fcce55f45f4a | a8eaf60408b6473329f0029a0c2b82668aa9eba4 | /openfire_src/work/jspc/java/org/jivesoftware/openfire/admin/muc_002droom_002daffiliations_jsp.java | fc3dd6241c3e6b7105a295a080e9c1dc4c24ff05 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | paridhika/XMPP_Parking | 8570571482658595126eb28743704bbc82f1d0a0 | 180298d0d689362056c9f9950bd2ac30265f76ed | refs/heads/master | 2020-07-09T13:40:53.178855 | 2016-11-25T02:35:04 | 2016-11-25T02:35:04 | 66,536,162 | 4 | 0 | null | null | null | null | UTF-8 | Java | false | false | 98,640 | java | /*
* Generated by the Jasper component of Apache Tomcat
* Version: JspC/ApacheTomcat8
* Generated at: 2016-08-23 16:29:31 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.jivesoftware.openfire.admin;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.dom4j.Element;
import org.jivesoftware.openfire.muc.ConflictException;
import org.jivesoftware.openfire.muc.MUCRoom;
import org.jivesoftware.openfire.muc.NotAllowedException;
import org.jivesoftware.openfire.group.Group;
import org.jivesoftware.openfire.group.GroupJID;
import org.jivesoftware.openfire.group.GroupManager;
import org.jivesoftware.util.ParamUtils;
import org.jivesoftware.util.StringUtils;
import org.xmpp.packet.IQ;
import org.xmpp.packet.JID;
import java.net.URLEncoder;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.jivesoftware.openfire.muc.CannotBeInvitedException;
public final class muc_002droom_002daffiliations_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final javax.servlet.jsp.JspFactory _jspxFactory =
javax.servlet.jsp.JspFactory.getDefaultFactory();
private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.tomcat.InstanceManager _jsp_instancemanager;
public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.release();
}
public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException {
final javax.servlet.jsp.PageContext pageContext;
javax.servlet.http.HttpSession session = null;
final javax.servlet.ServletContext application;
final javax.servlet.ServletConfig config;
javax.servlet.jsp.JspWriter out = null;
final java.lang.Object page = this;
javax.servlet.jsp.JspWriter _jspx_out = null;
javax.servlet.jsp.PageContext _jspx_page_context = null;
try {
response.setContentType("text/html");
pageContext = _jspxFactory.getPageContext(this, request, response,
"error.jsp", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
org.jivesoftware.util.WebManager webManager = null;
webManager = (org.jivesoftware.util.WebManager) _jspx_page_context.getAttribute("webManager", javax.servlet.jsp.PageContext.PAGE_SCOPE);
if (webManager == null){
webManager = new org.jivesoftware.util.WebManager();
_jspx_page_context.setAttribute("webManager", webManager, javax.servlet.jsp.PageContext.PAGE_SCOPE);
}
out.write('\n');
webManager.init(request, response, session, application, out );
out.write('\n');
out.write('\n');
// Get parameters
JID roomJID = new JID(ParamUtils.getParameter(request,"roomJID"));
String affiliation = ParamUtils.getParameter(request,"affiliation");
String userJID = ParamUtils.getParameter(request,"userJID");
String roomName = roomJID.getNode();
String[] groupNames = ParamUtils.getParameters(request, "groupNames");
boolean add = request.getParameter("add") != null;
boolean addsuccess = request.getParameter("addsuccess") != null;
boolean deletesuccess = request.getParameter("deletesuccess") != null;
boolean delete = ParamUtils.getBooleanParameter(request,"delete");
// Load the room object
MUCRoom room = webManager.getMultiUserChatManager().getMultiUserChatService(roomJID).getChatRoom(roomName);
if (room == null) {
// The requested room name does not exist so return to the list of the existing rooms
response.sendRedirect("muc-room-summary.jsp?roomJID="+URLEncoder.encode(roomJID.toBareJID(), "UTF-8"));
return;
}
Map<String,String> errors = new HashMap<String,String>();
// Handle an add
if (add) {
// do validation
if (userJID == null && groupNames == null) {
errors.put("userJID","userJID");
}
if (errors.size() == 0) {
try {
ArrayList<String> memberJIDs = new ArrayList<String>();
if (userJID != null) {
// Escape username
if (userJID.indexOf('@') == -1) {
String username = JID.escapeNode(userJID);
String domain = webManager.getXMPPServer().getServerInfo().getXMPPDomain();
userJID = username + '@' + domain;
}
else {
String username = JID.escapeNode(userJID.substring(0, userJID.indexOf('@')));
String rest = userJID.substring(userJID.indexOf('@'), userJID.length());
userJID = username + rest.trim();
}
memberJIDs.add(userJID);
}
if (groupNames != null) {
// create a group JID for each group
for (String groupName : groupNames) {
GroupJID groupJID = new GroupJID(URLDecoder.decode(groupName, "UTF-8"));
memberJIDs.add(groupJID.toString());
}
}
IQ iq = new IQ(IQ.Type.set);
Element frag = iq.setChildElement("query", "http://jabber.org/protocol/muc#admin");
for (String memberJID : memberJIDs){
Element item = frag.addElement("item");
item.addAttribute("affiliation", affiliation);
item.addAttribute("jid", memberJID);
}
// Send the IQ packet that will modify the room's configuration
room.getIQAdminHandler().handleIQ(iq, room.getRole());
// Log the event
for (String memberJID : memberJIDs) {
webManager.logEvent("set MUC affilation to "+affiliation+" for "+memberJID+" in "+roomName, null);
}
// done, return
response.sendRedirect("muc-room-affiliations.jsp?addsuccess=true&roomJID="+URLEncoder.encode(roomJID.toBareJID(), "UTF-8"));
return;
}
catch (ConflictException e) {
errors.put("ConflictException","ConflictException");
}
catch (NotAllowedException e) {
errors.put("NotAllowedException","NotAllowedException");
}
catch (CannotBeInvitedException e) {
errors.put("CannotBeInvitedException", "CannotBeInvitedException");
}
}
}
if (delete) {
// Remove the user from the allowed list
IQ iq = new IQ(IQ.Type.set);
Element frag = iq.setChildElement("query", "http://jabber.org/protocol/muc#admin");
Element item = frag.addElement("item");
item.addAttribute("affiliation", "none");
item.addAttribute("jid", userJID);
try {
// Send the IQ packet that will modify the room's configuration
room.getIQAdminHandler().handleIQ(iq, room.getRole());
// done, return
response.sendRedirect("muc-room-affiliations.jsp?deletesuccess=true&roomJID="+URLEncoder.encode(roomJID.toBareJID(), "UTF-8"));
return;
}
catch (ConflictException e) {
errors.put("ConflictException","ConflictException");
}
catch (CannotBeInvitedException e) {
errors.put("CannotBeInvitedException", "CannotBeInvitedException");
}
userJID = null; // hide group/user JID
}
out.write("\n\n<html>\n <head>\n <title>");
if (_jspx_meth_fmt_005fmessage_005f0(_jspx_page_context))
return;
out.write("</title>\n <meta name=\"subPageID\" content=\"muc-room-affiliations\"/>\n <meta name=\"extraParams\" content=\"");
out.print( "roomJID="+URLEncoder.encode(roomJID.toBareJID(), "UTF-8") );
out.write("\"/>\n <meta name=\"helpPage\" content=\"edit_group_chat_room_user_permissions.html\"/>\n </head>\n <body>\n\n<p>\n");
if (_jspx_meth_fmt_005fmessage_005f1(_jspx_page_context))
return;
out.write("\n<b><a href=\"muc-room-edit-form.jsp?roomJID=");
out.print( URLEncoder.encode(room.getJID().toBareJID(), "UTF-8") );
out.write('"');
out.write('>');
out.print( room.getJID().toBareJID() );
out.write("</a></b>.\n");
if (_jspx_meth_fmt_005fmessage_005f2(_jspx_page_context))
return;
out.write("\n</p>\n\n");
if (errors.size() > 0) {
out.write("\n\n <div class=\"jive-error\">\n <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n <tbody>\n <tr><td class=\"jive-icon\"><img src=\"images/error-16x16.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\"></td>\n <td class=\"jive-icon-label\">\n ");
if (errors.containsKey("ConflictException")) {
out.write("\n\n ");
if (_jspx_meth_fmt_005fmessage_005f3(_jspx_page_context))
return;
out.write("\n\n ");
} else if (errors.containsKey("NotAllowedException")) {
out.write("\n\n ");
if (_jspx_meth_fmt_005fmessage_005f4(_jspx_page_context))
return;
out.write("\n\n ");
} else {
out.write("\n\n ");
if (_jspx_meth_fmt_005fmessage_005f5(_jspx_page_context))
return;
out.write("\n\n ");
}
out.write("\n </td></tr>\n </tbody>\n </table>\n </div><br>\n\n");
} else if (addsuccess || deletesuccess) {
out.write("\n\n <div class=\"jive-success\">\n <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n <tbody>\n <tr><td class=\"jive-icon\"><img src=\"images/success-16x16.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\"></td>\n <td class=\"jive-icon-label\">\n ");
if (addsuccess) {
out.write("\n\n ");
if (_jspx_meth_fmt_005fmessage_005f6(_jspx_page_context))
return;
out.write("\n\n ");
} else if (deletesuccess) {
out.write("\n\n ");
if (_jspx_meth_fmt_005fmessage_005f7(_jspx_page_context))
return;
out.write("\n\n ");
}
out.write("\n </td></tr>\n </tbody>\n </table>\n </div><br>\n\n");
}
out.write("\n\n<form action=\"muc-room-affiliations.jsp?add\" method=\"post\">\n<input type=\"hidden\" name=\"roomJID\" value=\"");
out.print( roomJID.toBareJID() );
out.write("\">\n\n<fieldset>\n <legend>");
if (_jspx_meth_fmt_005fmessage_005f8(_jspx_page_context))
return;
out.write("</legend>\n <div>\n <p>\n <label for=\"groupJIDs\">");
if (_jspx_meth_fmt_005fmessage_005f9(_jspx_page_context))
return;
out.write("</label><br/>\n\t<select name=\"groupNames\" size=\"6\" multiple style=\"width:400px;font-family:verdana,arial,helvetica,sans-serif;font-size:8pt;\" id=\"groupJIDs\">\n\t");
for (Group g : webManager.getGroupManager().getGroups()) {
out.write("\n\t\t<option value=\"");
out.print( URLEncoder.encode(g.getName(), "UTF-8") );
out.write("\"\n\t\t ");
out.print( (StringUtils.contains(groupNames, g.getName()) ? "selected" : "") );
out.write("\n\t\t >");
out.print( StringUtils.escapeHTMLTags(g.getName()) );
out.write("</option>\n\t");
}
out.write("\n\t</select>\n\t</p>\n <p>\n <label for=\"memberJID\">");
if (_jspx_meth_fmt_005fmessage_005f10(_jspx_page_context))
return;
out.write("</label>\n <input type=\"text\" name=\"userJID\" size=\"30\" maxlength=\"255\" value=\"");
out.print( (userJID != null ? userJID : "") );
out.write("\" id=\"memberJID\">\n <select name=\"affiliation\">\n <option value=\"owner\">");
if (_jspx_meth_fmt_005fmessage_005f11(_jspx_page_context))
return;
out.write("</option>\n <option value=\"admin\">");
if (_jspx_meth_fmt_005fmessage_005f12(_jspx_page_context))
return;
out.write("</option>\n <option value=\"member\">");
if (_jspx_meth_fmt_005fmessage_005f13(_jspx_page_context))
return;
out.write("</option>\n <option value=\"outcast\">");
if (_jspx_meth_fmt_005fmessage_005f14(_jspx_page_context))
return;
out.write("</option>\n </select>\n <input type=\"submit\" value=\"");
if (_jspx_meth_fmt_005fmessage_005f15(_jspx_page_context))
return;
out.write("\">\n </p>\n\n <div class=\"jive-table\" style=\"width:400px;\">\n <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\">\n <thead>\n <tr>\n <th colspan=\"2\">");
if (_jspx_meth_fmt_005fmessage_005f16(_jspx_page_context))
return;
out.write("</th>\n <th width=\"1%\">");
if (_jspx_meth_fmt_005fmessage_005f17(_jspx_page_context))
return;
out.write("</th>\n </tr>\n </thead>\n <tbody>\n ");
out.write("\n <tr>\n <td colspan=\"2\"><b>");
if (_jspx_meth_fmt_005fmessage_005f18(_jspx_page_context))
return;
out.write("</b></td>\n <td> </td>\n </tr>\n\n ");
if (room.getOwners().isEmpty()) {
out.write("\n <tr>\n <td colspan=\"2\" align=\"center\"><i>");
if (_jspx_meth_fmt_005fmessage_005f19(_jspx_page_context))
return;
out.write("</i></td>\n <td> </td>\n </tr>\n ");
}
else {
ArrayList<JID> owners = new ArrayList<JID>(room.getOwners());
Collections.sort(owners);
for (JID user : owners) {
boolean isGroup = GroupJID.isGroup(user);
String username = JID.unescapeNode(user.getNode());
String userDisplay = isGroup ? ((GroupJID)user).getGroupName() : username + '@' + user.getDomain();
out.write("\n <tr>\n <td> </td>\n <td>\n ");
if (isGroup) {
out.write("\n \t<img src=\"images/group.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f20(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f21(_jspx_page_context))
return;
out.write("\"/>\n ");
} else {
out.write("\n \t<img src=\"images/user.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f22(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f23(_jspx_page_context))
return;
out.write("\"/>\n ");
}
out.write("\n <a href=\"");
out.print( isGroup ? "group-edit.jsp?group=" + URLEncoder.encode(userDisplay) : "user-properties.jsp?username=" + URLEncoder.encode(user.getNode()) );
out.write("\">\n ");
out.print( StringUtils.escapeHTMLTags(userDisplay) );
out.write("</a>\n </td>\n <td width=\"1%\" align=\"center\">\n <a href=\"muc-room-affiliations.jsp?roomJID=");
out.print( URLEncoder.encode(roomJID.toBareJID(), "UTF-8") );
out.write("&userJID=");
out.print( URLEncoder.encode(user.toString()) );
out.write("&delete=true&affiliation=owner\"\n title=\"");
if (_jspx_meth_fmt_005fmessage_005f24(_jspx_page_context))
return;
out.write("\"\n onclick=\"return confirm('");
if (_jspx_meth_fmt_005fmessage_005f25(_jspx_page_context))
return;
out.write("');\"\n ><img src=\"images/delete-16x16.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\"></a>\n </td>\n </tr>\n ");
} }
out.write("\n ");
out.write("\n <tr>\n <td colspan=\"2\"><b>");
if (_jspx_meth_fmt_005fmessage_005f26(_jspx_page_context))
return;
out.write("</b></td>\n <td> </td>\n </tr>\n\n ");
if (room.getAdmins().isEmpty()) {
out.write("\n <tr>\n <td colspan=\"2\" align=\"center\"><i>");
if (_jspx_meth_fmt_005fmessage_005f27(_jspx_page_context))
return;
out.write("</i></td>\n <td> </td>\n </tr>\n ");
}
else {
ArrayList<JID> admins = new ArrayList<JID>(room.getAdmins());
Collections.sort(admins);
for (JID user : admins) {
boolean isGroup = GroupJID.isGroup(user);
String username = JID.unescapeNode(user.getNode());
String userDisplay = isGroup ? ((GroupJID)user).getGroupName() : username + '@' + user.getDomain();
out.write("\n <tr>\n <td> </td>\n <td>\n ");
if (isGroup) {
out.write("\n \t<img src=\"images/group.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f28(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f29(_jspx_page_context))
return;
out.write("\"/>\n ");
} else {
out.write("\n \t<img src=\"images/user.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f30(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f31(_jspx_page_context))
return;
out.write("\"/>\n ");
}
out.write("\n <a href=\"");
out.print( isGroup ? "group-edit.jsp?group=" + URLEncoder.encode(userDisplay) : "user-properties.jsp?username=" + URLEncoder.encode(user.getNode()) );
out.write("\">\n ");
out.print( StringUtils.escapeHTMLTags(userDisplay) );
out.write("</a>\n </td>\n <td width=\"1%\" align=\"center\">\n <a href=\"muc-room-affiliations.jsp?roomJID=");
out.print( URLEncoder.encode(roomJID.toBareJID(), "UTF-8") );
out.write("&userJID=");
out.print( URLEncoder.encode(user.toString()) );
out.write("&delete=true&affiliation=admin\"\n title=\"");
if (_jspx_meth_fmt_005fmessage_005f32(_jspx_page_context))
return;
out.write("\"\n onclick=\"return confirm('");
if (_jspx_meth_fmt_005fmessage_005f33(_jspx_page_context))
return;
out.write("');\"\n ><img src=\"images/delete-16x16.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\"></a>\n </td>\n </tr>\n ");
} }
out.write("\n ");
out.write("\n <tr>\n <td colspan=\"2\"><b>");
if (_jspx_meth_fmt_005fmessage_005f34(_jspx_page_context))
return;
out.write("</b></td>\n <td> </td>\n </tr>\n\n ");
if (room.getMembers().isEmpty()) {
out.write("\n <tr>\n <td colspan=\"2\" align=\"center\"><i>");
if (_jspx_meth_fmt_005fmessage_005f35(_jspx_page_context))
return;
out.write("</i></td>\n <td> </td>\n </tr>\n ");
}
else {
ArrayList<JID> members = new ArrayList<JID>(room.getMembers());
Collections.sort(members);
for (JID user : members) {
boolean isGroup = GroupJID.isGroup(user);
String username = JID.unescapeNode(user.getNode());
String userDisplay = isGroup ? ((GroupJID)user).getGroupName() : username + '@' + user.getDomain();
String nickname = room.getReservedNickname(user);
nickname = (nickname == null ? "" : " (" + nickname + ")");
out.write("\n <tr>\n <td> </td>\n <td>\n ");
if (isGroup) {
out.write("\n \t<img src=\"images/group.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f36(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f37(_jspx_page_context))
return;
out.write("\"/>\n ");
} else {
out.write("\n \t<img src=\"images/user.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f38(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f39(_jspx_page_context))
return;
out.write("\"/>\n ");
}
out.write("\n <a href=\"");
out.print( isGroup ? "group-edit.jsp?group=" + URLEncoder.encode(userDisplay) : "user-properties.jsp?username=" + URLEncoder.encode(user.getNode()) );
out.write("\">\n ");
out.print( StringUtils.escapeHTMLTags(userDisplay) );
out.write("</a>");
out.print( StringUtils.escapeHTMLTags(nickname) );
out.write("\n </td>\n <td width=\"1%\" align=\"center\">\n <a href=\"muc-room-affiliations.jsp?roomJID=");
out.print( URLEncoder.encode(roomJID.toBareJID(), "UTF-8") );
out.write("&userJID=");
out.print( URLEncoder.encode(user.toString()) );
out.write("&delete=true&affiliation=member\"\n title=\"");
if (_jspx_meth_fmt_005fmessage_005f40(_jspx_page_context))
return;
out.write("\"\n onclick=\"return confirm('");
if (_jspx_meth_fmt_005fmessage_005f41(_jspx_page_context))
return;
out.write("');\"\n ><img src=\"images/delete-16x16.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\"></a>\n </td>\n </tr>\n ");
} }
out.write("\n ");
out.write("\n <tr>\n <td colspan=\"2\"><b>");
if (_jspx_meth_fmt_005fmessage_005f42(_jspx_page_context))
return;
out.write("</b></td>\n <td> </td>\n </tr>\n\n ");
if (room.getOutcasts().isEmpty()) {
out.write("\n <tr>\n <td colspan=\"2\" align=\"center\"><i>");
if (_jspx_meth_fmt_005fmessage_005f43(_jspx_page_context))
return;
out.write("</i></td>\n <td> </td>\n </tr>\n ");
}
else {
ArrayList<JID> outcasts = new ArrayList<JID>(room.getOutcasts());
Collections.sort(outcasts);
for (JID user : outcasts) {
boolean isGroup = GroupJID.isGroup(user);
String username = JID.unescapeNode(user.getNode());
String userDisplay = isGroup ? ((GroupJID)user).getGroupName() : username + '@' + user.getDomain();
out.write("\n <tr>\n <td> </td>\n <td>\n ");
if (isGroup) {
out.write("\n \t<img src=\"images/group.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f44(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f45(_jspx_page_context))
return;
out.write("\"/>\n ");
} else {
out.write("\n \t<img src=\"images/user.gif\" width=\"16\" height=\"16\" align=\"top\" title=\"");
if (_jspx_meth_fmt_005fmessage_005f46(_jspx_page_context))
return;
out.write("\" alt=\"");
if (_jspx_meth_fmt_005fmessage_005f47(_jspx_page_context))
return;
out.write("\"/>\n ");
}
out.write("\n <a href=\"");
out.print( isGroup ? "group-edit.jsp?group=" + URLEncoder.encode(userDisplay) : "user-properties.jsp?username=" + URLEncoder.encode(user.getNode()) );
out.write("\">\n ");
out.print( StringUtils.escapeHTMLTags(userDisplay) );
out.write("</a>\n </td>\n <td width=\"1%\" align=\"center\">\n <a href=\"muc-room-affiliations.jsp?roomJID=");
out.print( URLEncoder.encode(roomJID.toBareJID(), "UTF-8") );
out.write("&userJID=");
out.print( URLEncoder.encode(user.toString()) );
out.write("&delete=true&affiliation=outcast\"\n title=\"");
if (_jspx_meth_fmt_005fmessage_005f48(_jspx_page_context))
return;
out.write("\"\n onclick=\"return confirm('");
if (_jspx_meth_fmt_005fmessage_005f49(_jspx_page_context))
return;
out.write("');\"\n ><img src=\"images/delete-16x16.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"\"></a>\n </td>\n </tr>\n ");
} }
out.write("\n </tbody>\n </table>\n </div>\n </div>\n</fieldset>\n\n</form>\n\n </body>\n</html>\n");
} catch (java.lang.Throwable t) {
if (!(t instanceof javax.servlet.jsp.SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try {
if (response.isCommitted()) {
out.flush();
} else {
out.clearBuffer();
}
} catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_fmt_005fmessage_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f0 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f0.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f0.setParent(null);
// /muc-room-affiliations.jsp(155,15) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f0.setKey("muc.room.affiliations.title");
int _jspx_eval_fmt_005fmessage_005f0 = _jspx_th_fmt_005fmessage_005f0.doStartTag();
if (_jspx_th_fmt_005fmessage_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f0);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f0);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f1 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f1.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f1.setParent(null);
// /muc-room-affiliations.jsp(163,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f1.setKey("muc.room.affiliations.info");
int _jspx_eval_fmt_005fmessage_005f1 = _jspx_th_fmt_005fmessage_005f1.doStartTag();
if (_jspx_th_fmt_005fmessage_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f1);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f1);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f2 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f2.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f2.setParent(null);
// /muc-room-affiliations.jsp(165,0) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f2.setKey("muc.room.affiliations.info_detail");
int _jspx_eval_fmt_005fmessage_005f2 = _jspx_th_fmt_005fmessage_005f2.doStartTag();
if (_jspx_th_fmt_005fmessage_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f2);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f2);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f3(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f3 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f3.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f3.setParent(null);
// /muc-room-affiliations.jsp(177,8) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f3.setKey("muc.room.affiliations.error_removing_user");
int _jspx_eval_fmt_005fmessage_005f3 = _jspx_th_fmt_005fmessage_005f3.doStartTag();
if (_jspx_th_fmt_005fmessage_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f3);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f3);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f4(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f4 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f4.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f4.setParent(null);
// /muc-room-affiliations.jsp(181,8) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f4.setKey("muc.room.affiliations.error_banning_user");
int _jspx_eval_fmt_005fmessage_005f4 = _jspx_th_fmt_005fmessage_005f4.doStartTag();
if (_jspx_th_fmt_005fmessage_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f4);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f4);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f5(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f5 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f5.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f5.setParent(null);
// /muc-room-affiliations.jsp(185,8) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f5.setKey("muc.room.affiliations.error_adding_user");
int _jspx_eval_fmt_005fmessage_005f5 = _jspx_th_fmt_005fmessage_005f5.doStartTag();
if (_jspx_th_fmt_005fmessage_005f5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f5);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f5);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f6(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f6 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f6.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f6.setParent(null);
// /muc-room-affiliations.jsp(202,12) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f6.setKey("muc.room.affiliations.user_added");
int _jspx_eval_fmt_005fmessage_005f6 = _jspx_th_fmt_005fmessage_005f6.doStartTag();
if (_jspx_th_fmt_005fmessage_005f6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f6);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f6);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f7(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f7 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f7.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f7.setParent(null);
// /muc-room-affiliations.jsp(206,12) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f7.setKey("muc.room.affiliations.user_removed");
int _jspx_eval_fmt_005fmessage_005f7 = _jspx_th_fmt_005fmessage_005f7.doStartTag();
if (_jspx_th_fmt_005fmessage_005f7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f7);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f7);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f8(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f8 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f8.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f8.setParent(null);
// /muc-room-affiliations.jsp(220,12) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f8.setKey("muc.room.affiliations.permission");
int _jspx_eval_fmt_005fmessage_005f8 = _jspx_th_fmt_005fmessage_005f8.doStartTag();
if (_jspx_th_fmt_005fmessage_005f8.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f8);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f8);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f9(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f9 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f9.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f9.setParent(null);
// /muc-room-affiliations.jsp(223,27) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f9.setKey("muc.room.affiliations.add_group");
int _jspx_eval_fmt_005fmessage_005f9 = _jspx_th_fmt_005fmessage_005f9.doStartTag();
if (_jspx_th_fmt_005fmessage_005f9.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f9);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f9);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f10(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f10 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f10.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f10.setParent(null);
// /muc-room-affiliations.jsp(233,27) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f10.setKey("muc.room.affiliations.add_jid");
int _jspx_eval_fmt_005fmessage_005f10 = _jspx_th_fmt_005fmessage_005f10.doStartTag();
if (_jspx_th_fmt_005fmessage_005f10.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f10);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f10);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f11(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f11 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f11.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f11.setParent(null);
// /muc-room-affiliations.jsp(236,30) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f11.setKey("muc.room.affiliations.owner");
int _jspx_eval_fmt_005fmessage_005f11 = _jspx_th_fmt_005fmessage_005f11.doStartTag();
if (_jspx_th_fmt_005fmessage_005f11.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f11);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f11);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f12(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f12 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f12.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f12.setParent(null);
// /muc-room-affiliations.jsp(237,30) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f12.setKey("muc.room.affiliations.admin");
int _jspx_eval_fmt_005fmessage_005f12 = _jspx_th_fmt_005fmessage_005f12.doStartTag();
if (_jspx_th_fmt_005fmessage_005f12.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f12);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f12);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f13(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f13 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f13.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f13.setParent(null);
// /muc-room-affiliations.jsp(238,31) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f13.setKey("muc.room.affiliations.member");
int _jspx_eval_fmt_005fmessage_005f13 = _jspx_th_fmt_005fmessage_005f13.doStartTag();
if (_jspx_th_fmt_005fmessage_005f13.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f13);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f13);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f14(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f14 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f14.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f14.setParent(null);
// /muc-room-affiliations.jsp(239,32) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f14.setKey("muc.room.affiliations.outcast");
int _jspx_eval_fmt_005fmessage_005f14 = _jspx_th_fmt_005fmessage_005f14.doStartTag();
if (_jspx_th_fmt_005fmessage_005f14.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f14);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f14);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f15(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f15 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f15.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f15.setParent(null);
// /muc-room-affiliations.jsp(241,32) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f15.setKey("global.add");
int _jspx_eval_fmt_005fmessage_005f15 = _jspx_th_fmt_005fmessage_005f15.doStartTag();
if (_jspx_th_fmt_005fmessage_005f15.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f15);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f15);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f16(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f16 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f16.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f16.setParent(null);
// /muc-room-affiliations.jsp(248,28) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f16.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f16 = _jspx_th_fmt_005fmessage_005f16.doStartTag();
if (_jspx_th_fmt_005fmessage_005f16.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f16);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f16);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f17(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f17 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f17.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f17.setParent(null);
// /muc-room-affiliations.jsp(249,27) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f17.setKey("global.delete");
int _jspx_eval_fmt_005fmessage_005f17 = _jspx_th_fmt_005fmessage_005f17.doStartTag();
if (_jspx_th_fmt_005fmessage_005f17.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f17);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f17);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f18(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f18 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f18.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f18.setParent(null);
// /muc-room-affiliations.jsp(255,35) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f18.setKey("muc.room.affiliations.room_owner");
int _jspx_eval_fmt_005fmessage_005f18 = _jspx_th_fmt_005fmessage_005f18.doStartTag();
if (_jspx_th_fmt_005fmessage_005f18.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f18);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f18);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f19(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f19 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f19.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f19.setParent(null);
// /muc-room-affiliations.jsp(261,50) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f19.setKey("muc.room.affiliations.no_users");
int _jspx_eval_fmt_005fmessage_005f19 = _jspx_th_fmt_005fmessage_005f19.doStartTag();
if (_jspx_th_fmt_005fmessage_005f19.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f19);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f19);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f20(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f20 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f20.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f20.setParent(null);
// /muc-room-affiliations.jsp(277,87) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f20.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f20 = _jspx_th_fmt_005fmessage_005f20.doStartTag();
if (_jspx_th_fmt_005fmessage_005f20.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f20);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f20);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f21(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f21 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f21.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f21.setParent(null);
// /muc-room-affiliations.jsp(277,143) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f21.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f21 = _jspx_th_fmt_005fmessage_005f21.doStartTag();
if (_jspx_th_fmt_005fmessage_005f21.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f21);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f21);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f22(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f22 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f22.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f22.setParent(null);
// /muc-room-affiliations.jsp(279,86) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f22.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f22 = _jspx_th_fmt_005fmessage_005f22.doStartTag();
if (_jspx_th_fmt_005fmessage_005f22.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f22);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f22);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f23(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f23 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f23.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f23.setParent(null);
// /muc-room-affiliations.jsp(279,141) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f23.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f23 = _jspx_th_fmt_005fmessage_005f23.doStartTag();
if (_jspx_th_fmt_005fmessage_005f23.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f23);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f23);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f24(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f24 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f24.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f24.setParent(null);
// /muc-room-affiliations.jsp(286,28) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f24.setKey("global.click_delete");
int _jspx_eval_fmt_005fmessage_005f24 = _jspx_th_fmt_005fmessage_005f24.doStartTag();
if (_jspx_th_fmt_005fmessage_005f24.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f24);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f24);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f25(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f25 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f25.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f25.setParent(null);
// /muc-room-affiliations.jsp(287,46) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f25.setKey("muc.room.affiliations.confirm_removed");
int _jspx_eval_fmt_005fmessage_005f25 = _jspx_th_fmt_005fmessage_005f25.doStartTag();
if (_jspx_th_fmt_005fmessage_005f25.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f25);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f25);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f26(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f26 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f26.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f26.setParent(null);
// /muc-room-affiliations.jsp(294,35) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f26.setKey("muc.room.affiliations.room_admin");
int _jspx_eval_fmt_005fmessage_005f26 = _jspx_th_fmt_005fmessage_005f26.doStartTag();
if (_jspx_th_fmt_005fmessage_005f26.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f26);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f26);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f27(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f27 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f27.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f27.setParent(null);
// /muc-room-affiliations.jsp(300,50) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f27.setKey("muc.room.affiliations.no_users");
int _jspx_eval_fmt_005fmessage_005f27 = _jspx_th_fmt_005fmessage_005f27.doStartTag();
if (_jspx_th_fmt_005fmessage_005f27.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f27);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f27);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f28(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f28 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f28.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f28.setParent(null);
// /muc-room-affiliations.jsp(316,87) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f28.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f28 = _jspx_th_fmt_005fmessage_005f28.doStartTag();
if (_jspx_th_fmt_005fmessage_005f28.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f28);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f28);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f29(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f29 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f29.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f29.setParent(null);
// /muc-room-affiliations.jsp(316,143) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f29.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f29 = _jspx_th_fmt_005fmessage_005f29.doStartTag();
if (_jspx_th_fmt_005fmessage_005f29.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f29);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f29);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f30(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f30 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f30.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f30.setParent(null);
// /muc-room-affiliations.jsp(318,86) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f30.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f30 = _jspx_th_fmt_005fmessage_005f30.doStartTag();
if (_jspx_th_fmt_005fmessage_005f30.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f30);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f30);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f31(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f31 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f31.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f31.setParent(null);
// /muc-room-affiliations.jsp(318,141) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f31.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f31 = _jspx_th_fmt_005fmessage_005f31.doStartTag();
if (_jspx_th_fmt_005fmessage_005f31.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f31);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f31);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f32(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f32 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f32.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f32.setParent(null);
// /muc-room-affiliations.jsp(325,28) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f32.setKey("global.click_delete");
int _jspx_eval_fmt_005fmessage_005f32 = _jspx_th_fmt_005fmessage_005f32.doStartTag();
if (_jspx_th_fmt_005fmessage_005f32.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f32);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f32);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f33(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f33 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f33.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f33.setParent(null);
// /muc-room-affiliations.jsp(326,46) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f33.setKey("muc.room.affiliations.confirm_removed");
int _jspx_eval_fmt_005fmessage_005f33 = _jspx_th_fmt_005fmessage_005f33.doStartTag();
if (_jspx_th_fmt_005fmessage_005f33.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f33);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f33);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f34(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f34 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f34.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f34.setParent(null);
// /muc-room-affiliations.jsp(333,35) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f34.setKey("muc.room.affiliations.room_member");
int _jspx_eval_fmt_005fmessage_005f34 = _jspx_th_fmt_005fmessage_005f34.doStartTag();
if (_jspx_th_fmt_005fmessage_005f34.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f34);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f34);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f35(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f35 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f35.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f35.setParent(null);
// /muc-room-affiliations.jsp(339,50) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f35.setKey("muc.room.affiliations.no_users");
int _jspx_eval_fmt_005fmessage_005f35 = _jspx_th_fmt_005fmessage_005f35.doStartTag();
if (_jspx_th_fmt_005fmessage_005f35.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f35);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f35);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f36(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f36 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f36.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f36.setParent(null);
// /muc-room-affiliations.jsp(357,87) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f36.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f36 = _jspx_th_fmt_005fmessage_005f36.doStartTag();
if (_jspx_th_fmt_005fmessage_005f36.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f36);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f36);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f37(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f37 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f37.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f37.setParent(null);
// /muc-room-affiliations.jsp(357,143) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f37.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f37 = _jspx_th_fmt_005fmessage_005f37.doStartTag();
if (_jspx_th_fmt_005fmessage_005f37.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f37);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f37);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f38(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f38 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f38.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f38.setParent(null);
// /muc-room-affiliations.jsp(359,86) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f38.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f38 = _jspx_th_fmt_005fmessage_005f38.doStartTag();
if (_jspx_th_fmt_005fmessage_005f38.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f38);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f38);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f39(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f39 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f39.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f39.setParent(null);
// /muc-room-affiliations.jsp(359,141) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f39.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f39 = _jspx_th_fmt_005fmessage_005f39.doStartTag();
if (_jspx_th_fmt_005fmessage_005f39.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f39);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f39);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f40(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f40 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f40.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f40.setParent(null);
// /muc-room-affiliations.jsp(366,28) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f40.setKey("global.click_delete");
int _jspx_eval_fmt_005fmessage_005f40 = _jspx_th_fmt_005fmessage_005f40.doStartTag();
if (_jspx_th_fmt_005fmessage_005f40.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f40);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f40);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f41(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f41 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f41.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f41.setParent(null);
// /muc-room-affiliations.jsp(367,46) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f41.setKey("muc.room.affiliations.confirm_removed");
int _jspx_eval_fmt_005fmessage_005f41 = _jspx_th_fmt_005fmessage_005f41.doStartTag();
if (_jspx_th_fmt_005fmessage_005f41.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f41);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f41);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f42(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f42 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f42.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f42.setParent(null);
// /muc-room-affiliations.jsp(374,35) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f42.setKey("muc.room.affiliations.room_outcast");
int _jspx_eval_fmt_005fmessage_005f42 = _jspx_th_fmt_005fmessage_005f42.doStartTag();
if (_jspx_th_fmt_005fmessage_005f42.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f42);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f42);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f43(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f43 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f43.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f43.setParent(null);
// /muc-room-affiliations.jsp(380,50) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f43.setKey("muc.room.affiliations.no_users");
int _jspx_eval_fmt_005fmessage_005f43 = _jspx_th_fmt_005fmessage_005f43.doStartTag();
if (_jspx_th_fmt_005fmessage_005f43.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f43);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f43);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f44(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f44 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f44.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f44.setParent(null);
// /muc-room-affiliations.jsp(396,87) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f44.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f44 = _jspx_th_fmt_005fmessage_005f44.doStartTag();
if (_jspx_th_fmt_005fmessage_005f44.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f44);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f44);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f45(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f45 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f45.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f45.setParent(null);
// /muc-room-affiliations.jsp(396,143) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f45.setKey("muc.room.affiliations.group");
int _jspx_eval_fmt_005fmessage_005f45 = _jspx_th_fmt_005fmessage_005f45.doStartTag();
if (_jspx_th_fmt_005fmessage_005f45.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f45);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f45);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f46(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f46 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f46.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f46.setParent(null);
// /muc-room-affiliations.jsp(398,86) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f46.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f46 = _jspx_th_fmt_005fmessage_005f46.doStartTag();
if (_jspx_th_fmt_005fmessage_005f46.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f46);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f46);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f47(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f47 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f47.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f47.setParent(null);
// /muc-room-affiliations.jsp(398,141) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f47.setKey("muc.room.affiliations.user");
int _jspx_eval_fmt_005fmessage_005f47 = _jspx_th_fmt_005fmessage_005f47.doStartTag();
if (_jspx_th_fmt_005fmessage_005f47.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f47);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f47);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f48(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f48 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f48.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f48.setParent(null);
// /muc-room-affiliations.jsp(405,28) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f48.setKey("global.click_delete");
int _jspx_eval_fmt_005fmessage_005f48 = _jspx_th_fmt_005fmessage_005f48.doStartTag();
if (_jspx_th_fmt_005fmessage_005f48.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f48);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f48);
return false;
}
private boolean _jspx_meth_fmt_005fmessage_005f49(javax.servlet.jsp.PageContext _jspx_page_context)
throws java.lang.Throwable {
javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_005fmessage_005f49 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_005fmessage_005f49.setPageContext(_jspx_page_context);
_jspx_th_fmt_005fmessage_005f49.setParent(null);
// /muc-room-affiliations.jsp(406,46) name = key type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
_jspx_th_fmt_005fmessage_005f49.setKey("muc.room.affiliations.confirm_removed");
int _jspx_eval_fmt_005fmessage_005f49 = _jspx_th_fmt_005fmessage_005f49.doStartTag();
if (_jspx_th_fmt_005fmessage_005f49.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f49);
return true;
}
_005fjspx_005ftagPool_005ffmt_005fmessage_0026_005fkey_005fnobody.reuse(_jspx_th_fmt_005fmessage_005f49);
return false;
}
}
| [
"paridhika.kayal@gmail.com"
] | paridhika.kayal@gmail.com |
8b53c866839a17ea37f572844de0e7cfa31c6ac6 | 2acd0deeaf4073ba44665bf7f646b986369dce32 | /ly-item/ly-item-service/src/main/java/com/leyou/item/mapper/SpecParamMapper.java | 01e534f28f412c85310c83e763db88ae75157b12 | [] | no_license | tanzhengxing/leyou | 769fb7b0328cddb0600f40fd014c9ddbb47f0f8e | b9d6c08aec0f5752d3ca8ef5567a36f0c19c172e | refs/heads/master | 2020-05-22T18:41:30.513353 | 2019-05-20T23:53:39 | 2019-05-20T23:53:39 | 186,469,548 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 292 | java | package com.leyou.item.mapper;
import com.leyou.item.pojo.SpecParam;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
/**
* @author tan
* @date 2019/5/19 15:30
*/
public interface SpecParamMapper extends Mapper<SpecParam> {
}
| [
"18370787378@163.com"
] | 18370787378@163.com |
7e2db80395625aae8a7637dca75736d45d321bc2 | 7fc880fb3f12525f8c4a2c01c945b2b7137b29da | /src/course/EstruturaMatriz.java | 777a6d995134d0c6216e30ff83dc3fa9ea089ef4 | [] | no_license | msgsbr/java | a12de6d1ab8d9515e7add57845f165fb67dab79f | c88ec28ee82a02ada3d085946271e5352deb7fed | refs/heads/master | 2020-04-01T17:53:11.659746 | 2019-01-23T12:15:52 | 2019-01-23T12:15:52 | 153,456,723 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 947 | java | package course;
import java.util.Scanner;
public class EstruturaMatriz {
public static void main(String[] args) {
Scanner data = new Scanner(System.in);
int n = data.nextInt();
// NEW BIDIMENSIONAL MATRIZ
int[][] matriz = new int[n][n];
// READ MATRIZ
for (int i = 0; i < matriz.length; i++) {
for (int j = 0; j < matriz[i].length; j++) {
matriz[i][j] = data.nextInt();
}
}
System.out.println();
System.out.println("Main diagonal: ");
// READ MAIN DIAGONAL MATRIZ
for (int i = 0; i < matriz.length; i++) {
System.out.print(matriz[i][i] + ", ");
}
System.out.println();
// COUNTING NEGATIVE NUMBERS ON MATRIZ
int count = 0;
for (int i = 0; i < matriz.length; i++) {
for (int j = 0; j < matriz[i].length; j++) {
if(matriz[i][j] < 0) {
count++;
}
}
}
System.out.println();
System.out.println("Negative numbers = " + count);
data.close();
}
}
| [
"msgs@192.168.0.104"
] | msgs@192.168.0.104 |
5aeac46deb7bba2aa99b8ca8111190329b4b58da | c4b24c7ca333e3ad2627f8c46177df662a83367e | /src/com/cgi/poei/mediatheque/Pret.java | 5d17a59ac7d985c1d6a537379bcf7f973a0e2db6 | [
"MIT"
] | permissive | spoonless/mediatheque | b53f0a26289916fc5e4717bef975a96d93bc788e | 62b094e133bbf620127673af792c758725e2f1c0 | refs/heads/master | 2020-03-15T06:17:04.850849 | 2018-05-14T10:35:52 | 2018-05-14T10:35:52 | 132,004,002 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,385 | java | package com.cgi.poei.mediatheque;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import com.cgi.poei.mediatheque.exception.ExemplaireDejaEmprunteException;
public class Pret {
public static final int NB_PRETS_AUTORISES = 6;
private final Exemplaire exemplaire;
private final Emprunteur emprunteur;
private final LocalDate dateEmprunt;
private final LocalDate dateRetour;
public static boolean isQuotaDepasse(int size) {
return size > NB_PRETS_AUTORISES;
}
public Pret(Exemplaire exemplaire, Emprunteur emprunteur, int dureePretEnJour) throws ExemplaireDejaEmprunteException {
this.exemplaire = exemplaire;
this.emprunteur = emprunteur;
this.dateEmprunt = LocalDate.now();
this.dateRetour = this.dateEmprunt.plusDays(dureePretEnJour);
this.exemplaire.setPret(this);
}
public boolean isDepasse() {
return this.dateRetour.isBefore(LocalDate.now());
}
public Exemplaire getExemplaire() {
return exemplaire;
}
public LocalDate getDateRetour() {
return dateRetour;
}
@Override
public String toString() {
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd MMMM YYYY");
return emprunteur.getNomComplet() + " emprunte " +
exemplaire.getDocument().getTitre() +
" jusqu'au " + dateTimeFormatter.format(dateRetour);
}
}
| [
"dagaydevel@free.fr"
] | dagaydevel@free.fr |
251dec01d92136cc6a0be54a49d47e681900dff6 | 4fcdcead3b75c8b1e13adc97ce6498cd47293fa2 | /NisiraCore/src/com/nisira/core/entity/ProgramacionUbicacionAlmacen.java | e3419ecdbdf5e8169b0585412c82e3b53b40bb1c | [] | no_license | aburgosd91/NisiraWebPatos | e17e90ab342d4d1f29f16b5957f781fc5ee23cf0 | 764fcb7099bab061ea579ba5b6a5b980b2f27c1e | refs/heads/master | 2021-01-20T01:24:53.405466 | 2017-04-24T18:22:26 | 2017-04-24T18:22:26 | 85,764,698 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,613 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.nisira.core.entity;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
*
* @author Alex Johel Burgos Dionicio
*/
@XStreamAlias("PROGRAMACIONUBICACIONALMACEN")
public class ProgramacionUbicacionAlmacen {
@XStreamAlias("cIDEMPRESA")
private String IDEMPRESA;
@XStreamAlias("cIDPROGRAMACIONUBICACIONALMACEN")
private String IDPROGRAMACIONUBICACIONALMACEN ;
@XStreamAlias("cIDSUCURSAL")
private String IDSUCURSAL;
@XStreamAlias("cIDRESPONSABLE")
private String IDRESPONSABLE;
@XStreamAlias("cIDDOCUMENTO")
private String IDDOCUMENTO;
@XStreamAlias("cSERIE")
private String SERIE;
@XStreamAlias("cNUMERO")
private String NUMERO;
@XStreamAlias("cIDESTADO")
private String IDESTADO;
@XStreamAlias("cOBSERVACION")
private String OBSERVACION;
/**
* @return the IDEMPRESA
*/
public String getIDEMPRESA() {
return IDEMPRESA;
}
/**
* @param IDEMPRESA the IDEMPRESA to set
*/
public void setIDEMPRESA(String IDEMPRESA) {
this.IDEMPRESA = IDEMPRESA;
}
/**
* @return the IDPROGRAMACIONUBICACIONALMACEN
*/
public String getIDPROGRAMACIONUBICACIONALMACEN() {
return IDPROGRAMACIONUBICACIONALMACEN;
}
/**
* @param IDPROGRAMACIONUBICACIONALMACEN the IDPROGRAMACIONUBICACIONALMACEN to set
*/
public void setIDPROGRAMACIONUBICACIONALMACEN(String IDPROGRAMACIONUBICACIONALMACEN) {
this.IDPROGRAMACIONUBICACIONALMACEN = IDPROGRAMACIONUBICACIONALMACEN;
}
/**
* @return the IDSUCURSAL
*/
public String getIDSUCURSAL() {
return IDSUCURSAL;
}
/**
* @param IDSUCURSAL the IDSUCURSAL to set
*/
public void setIDSUCURSAL(String IDSUCURSAL) {
this.IDSUCURSAL = IDSUCURSAL;
}
/**
* @return the IDRESPONSABLE
*/
public String getIDRESPONSABLE() {
return IDRESPONSABLE;
}
/**
* @param IDRESPONSABLE the IDRESPONSABLE to set
*/
public void setIDRESPONSABLE(String IDRESPONSABLE) {
this.IDRESPONSABLE = IDRESPONSABLE;
}
/**
* @return the IDDOCUMENTO
*/
public String getIDDOCUMENTO() {
return IDDOCUMENTO;
}
/**
* @param IDDOCUMENTO the IDDOCUMENTO to set
*/
public void setIDDOCUMENTO(String IDDOCUMENTO) {
this.IDDOCUMENTO = IDDOCUMENTO;
}
/**
* @return the SERIE
*/
public String getSERIE() {
return SERIE;
}
/**
* @param SERIE the SERIE to set
*/
public void setSERIE(String SERIE) {
this.SERIE = SERIE;
}
/**
* @return the NUMERO
*/
public String getNUMERO() {
return NUMERO;
}
/**
* @param NUMERO the NUMERO to set
*/
public void setNUMERO(String NUMERO) {
this.NUMERO = NUMERO;
}
/**
* @return the IDESTADO
*/
public String getIDESTADO() {
return IDESTADO;
}
/**
* @param IDESTADO the IDESTADO to set
*/
public void setIDESTADO(String IDESTADO) {
this.IDESTADO = IDESTADO;
}
/**
* @return the OBSERVACION
*/
public String getOBSERVACION() {
return OBSERVACION;
}
/**
* @param OBSERVACION the OBSERVACION to set
*/
public void setOBSERVACION(String OBSERVACION) {
this.OBSERVACION = OBSERVACION;
}
}
| [
"aburgosd91@gmail.com"
] | aburgosd91@gmail.com |
29ce0cc7b35d356ccee12a3bbaa40f0969cdc2d2 | a034a7e08ec23b83f4572b81cb49a1196a189358 | /impl/src/main/java/org/jboss/cdi/tck/tests/implementation/producer/field/definition/broken/decorator/Number.java | 95184ebcd30c39576c3ff34eddf20aceed5a7d5f | [] | no_license | scottmarlow/cdi-tck | a8ec72eae1d656870cab94bf8f5c37401d3af953 | 7f7e86f71ed4e8875c8bf236bf45e46b031cb30b | refs/heads/master | 2022-07-23T17:10:14.409176 | 2020-02-17T15:16:35 | 2020-02-17T16:03:02 | 243,301,425 | 0 | 0 | null | 2020-02-26T15:49:34 | 2020-02-26T15:49:33 | null | UTF-8 | Java | false | false | 586 | java | package org.jboss.cdi.tck.tests.implementation.producer.field.definition.broken.decorator;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
@Target({ TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Qualifier
public @interface Number {
}
| [
"mkouba@redhat.com"
] | mkouba@redhat.com |
ce2b70fa44ec9e58cc6483c5e574cc7a92438cf8 | cc80c8df3553c3163394a56060fa70432644d8ab | /android/Delivery305/app/src/main/java/com/paulpwo/delivery360/driver/DriverListAvailable.java | 80b0d764a00cffded1512f9af768d2c202e8f3e5 | [] | no_license | jerech/delivery_project | 022f4048d6b5af2ac41be87110deecd210f0cd16 | 0e065be3d51a90c9c9f0b4d43ee32316200d4ed1 | refs/heads/master | 2021-01-16T23:04:35.379849 | 2016-11-09T21:12:53 | 2016-11-09T21:12:53 | 69,923,803 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,881 | java | package com.paulpwo.delivery360.driver;
import android.content.Context;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.octo.android.robospice.SpiceManager;
import com.octo.android.robospice.persistence.DurationInMillis;
import com.octo.android.robospice.persistence.exception.SpiceException;
import com.octo.android.robospice.request.listener.RequestListener;
import com.paulpwo.delivery360.request.RetrofitSpaceRequestDeliveries;
import com.paulpwo.delivery360.R;
import com.paulpwo.delivery360.adapters.RecyclerAdapterDriverDeliveryAvailable;
import com.paulpwo.delivery360.models.DriverDeliveryAvailable;
import com.paulpwo.delivery360.service.serviceDefault;
import com.paulpwo.delivery360.utils.DividerItemDecoration;
import com.paulpwo.delivery360.utils.Helpers;
/**
* A simple {@link Fragment} subclass.
* Activities that contain this fragment must implement the
* {@link DriverListAvailable.OnFragmentInteractionListener} interface
* to handle interaction events.
* Use the {@link DriverListAvailable#newInstance} factory method to
* create an instance of this fragment.
*/
public class DriverListAvailable extends Fragment implements SwipeRefreshLayout.OnRefreshListener {
private final SpiceManager spiceManager = new SpiceManager(serviceDefault.class );
protected SpiceManager getSpiceManager() {
return spiceManager;
}
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
private static final String ARG_PARAM2 = "param2";
private ProgressBar progressBar;
// TODO: Rename and change types of parameters
private String mParam1;
private String mParam2;
private View view;
private OnFragmentInteractionListener mListener;
private SwipeRefreshLayout swipeRefreshLayout;
private boolean isFirtsTime=true;
private RecyclerAdapterDriverDeliveryAvailable adapter;
private DriverDeliveryAvailable.List deliverys;
RecyclerView recyclerView;
public DriverListAvailable() {
// Required empty public constructor
}
/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment DriverListAvailable.
*/
// TODO: Rename and change types and number of parameters
public static DriverListAvailable newInstance(String param1, String param2) {
DriverListAvailable fragment = new DriverListAvailable();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (getArguments() != null) {
mParam1 = getArguments().getString(ARG_PARAM1);
mParam2 = getArguments().getString(ARG_PARAM2);
}
}
@Override
public void onStart() {
super.onStart();
spiceManager.start(getContext());
callWebService();
}
@Override
public void onStop() {
spiceManager.shouldStop();
super.onStop();
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.fragment_driver_list_available, container, false);
callWebService();
swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_refresh_layout);
swipeRefreshLayout.setOnRefreshListener(this);
progressBar = (ProgressBar) view.findViewById(R.id.progressBar);
//progressBar.setVisibility(View.VISIBLE);
return view;
}
// TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
}
@Override
public void onRefresh() {
callWebService();
}
@Override
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof OnFragmentInteractionListener) {
mListener = (OnFragmentInteractionListener) context;
} else {
throw new RuntimeException(context.toString()
+ " must implement OnFragmentInteractionListener");
}
}
@Override
public void onDetach() {
super.onDetach();
mListener = null;
}
/**
* This interface must be implemented by activities that contain this
* fragment to allow an interaction in this fragment to be communicated
* to the activity and potentially other fragments contained in that
* activity.
* <p/>
* See the Android Training lesson <a href=
* "http://developer.android.com/training/basics/fragments/communicating.html"
* >Communicating with Other Fragments</a> for more information.
*/
public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
}
private void callWebService(){
if(Helpers.isOnline(getContext())){
if(progressBar != null){
if(isFirtsTime) {
progressBar.setVisibility(View.VISIBLE);
}else{
progressBar.setVisibility(View.INVISIBLE);
}
}
RetrofitSpaceRequestDeliveries queryUnit =
new RetrofitSpaceRequestDeliveries();
getSpiceManager().execute(queryUnit, "com.paulpwo.delivery305", DurationInMillis.ONE_SECOND,
new ListRetrofitSpaceRequestDeliveries());
}else{
Toast.makeText(getContext(), "Check internet connection and re entry", Toast.LENGTH_SHORT).show();
}
isFirtsTime=false;
}
private void updateList(DriverDeliveryAvailable.List driverDeliveryAvailable){
recyclerView= (RecyclerView) view.findViewById(R.id.my_recycler_view_avaliable);
recyclerView.setHasFixedSize(true);
LinearLayoutManager llm = new LinearLayoutManager(view.getContext(),LinearLayoutManager.VERTICAL,false);
recyclerView.setLayoutManager(llm);
recyclerView.addItemDecoration(new DividerItemDecoration(getContext()));
adapter=new RecyclerAdapterDriverDeliveryAvailable(
getContext(),driverDeliveryAvailable);
recyclerView.setAdapter(adapter);
this.deliverys = driverDeliveryAvailable;
}
// ============================================================================================
// INNER CLASSES
// ============================================================================================
private class ListRetrofitSpaceRequestDeliveries implements RequestListener<DriverDeliveryAvailable.List> {
@Override
public void onRequestFailure(SpiceException spiceException) {
try {
String cause = spiceException.getCause().toString();
getSpiceManager().cancelAllRequests();
if(cause.contains("404")){
if(adapter !=null){
adapter.clearData();
}
}
progressBar.setVisibility(View.INVISIBLE);
swipeRefreshLayout.setRefreshing(false);
}catch (Exception e){
}
}
@Override
public void onRequestSuccess(DriverDeliveryAvailable.List deliverys) {
try {
Log.v("Resul", deliverys.toString());
updateList(deliverys);
//Toast.makeText(getContext(), "Success!", Toast.LENGTH_SHORT).show();
swipeRefreshLayout.setRefreshing(false);
progressBar.setVisibility(View.INVISIBLE);
}catch (Exception e){
}
}
}
public void updateUI(){
Log.d("MyService", "BroadcastReceiver on Activity OK");
callWebService();
}
private class DoBackgroundTask extends AsyncTask<Object, Void, Void> {
@Override
protected Void doInBackground(Object... arg0) {
return null;
}
}
}
| [
"jeremiaschaparro@gmail.com"
] | jeremiaschaparro@gmail.com |
00c9940fe699dffa8df12c553449bf8035b7d698 | 97f7c2e23454ebc19efe886de28d7f8efdd2a9a2 | /jdbcTesting/src/presentation/Migration.java | 854048c00bb4e0269d92e53df8f9d0d9f8f532f1 | [] | no_license | rukemn/rdprojekt | 6f91f1e251d2e7728ca8ed7b9ab8202ab908d048 | 85eda46b1bdb335ada2f088a57864bba022887db | refs/heads/master | 2021-07-16T20:32:02.459330 | 2018-09-13T19:37:51 | 2018-09-13T19:37:51 | 131,209,858 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,249 | java | package presentation;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
public class Migration extends Application {
private Stage stage;
@Override
public void start(Stage primaryStage) throws Exception{
try {
//kleines bsp login
//besser LoginController class und von dort object zurückgeben lassen und in main stage einbinden
//achtung, wird schon bei fx:controller initialisiert,könnte zu problem werden
//Parent root = FXMLLoader.load(getClass().getResource("Login.fxml"));
//LoginController.makePgController();
//LoginController pgLogin = LoginController.getPgLoginC();
//Scene scene = pgLogin.loadScene(primaryStage);
//Scene scene = new Scene(root);
//primaryStage.setScene(scene);
stage = primaryStage;
primaryStage.show();
gotoLoginScene();
} catch(Exception e) {
System.out.println("lol fail");
e.printStackTrace();
}
return;
}
public void gotoLoginScene() {
try {
LoginController lc = (LoginController) changeScene("Login.fxml", "Loginto Postgre and Oracle");
lc.setApplication(this);//injection itself
}catch(Exception e) {
e.printStackTrace();
}
}
public void gotoTitleSelectionScene() {
try {
TitleSelectionController tsc = (TitleSelectionController) changeScene("TitleSelection.fxml", "Select Title Entrys");
tsc.setApplication(this);//injection itself
}catch(Exception e) {
e.printStackTrace();
}
}
public void gotoCastSelection() {
try {
CastSelectionController csC = (CastSelectionController) changeScene("CastSelection.fxml", "Select Cast Info");
csC.setApplication(this);//injection itself
}catch(Exception e) {
e.printStackTrace();
}
}
public void gotoPersonSelection() {
try {
PersonSelectionController psC = (PersonSelectionController) changeScene("PersonSelection.fxml", "Select Persons Info");
psC.setApplication(this);//injection itself
}catch(Exception e) {
e.printStackTrace();
}
}
public void gotoMovieInfoSelection() {
try {
MovieInfoSelectionController misC = (MovieInfoSelectionController) changeScene("MovieInfoSelection.fxml", "Select Movie Info");
misC.setApplication(this);//injection itself
}catch(Exception e) {
e.printStackTrace();
}
}
public void gotoMovieCompanySelection() {
try {
MovieCompanySelectionController mcsC = (MovieCompanySelectionController) changeScene("MovieCompanySelection.fxml", "Select MovieCompany Info");
mcsC.setApplication(this);//injection itself
}catch(Exception e) {
e.printStackTrace();
}
}
//changes Scene to desired xml String
public Initializable changeScene(String fxml, String windowTitle) throws Exception{
FXMLLoader fxmlLoader = new FXMLLoader();
Pane p = fxmlLoader.load(getClass().getResource(fxml).openStream());
Initializable loginC = (Initializable) fxmlLoader.getController();
Scene newScene = new Scene(p);
stage.setScene(newScene);
stage.setTitle(windowTitle);
return loginC;
}
public static void main(String[] args) {
launch(args);
}
}
| [
"ruben-kemna@web.de"
] | ruben-kemna@web.de |
e9df2a2ca958c64d3a514398e6be6c0cfb47e86a | bc0a090ca738ea258048571afcd7a0678256eea5 | /app/src/main/java/com/ns/yc/lifehelper/ui/other/weather/weight/moji/bean/Wash_car.java | e6301f5a9760f2d4048e4c50cd8ceb6013ff4926 | [] | no_license | beijing-penguin/LifeHelper | 8e35302351cd1beb09281fea4e36c0c27ce4eda0 | 59e3e602b879d2767bfaa3927aa109d1e3f60430 | refs/heads/master | 2020-03-11T08:02:02.575948 | 2018-03-19T07:30:13 | 2018-03-19T07:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 511 | java | package com.ns.yc.lifehelper.ui.other.weather.weight.moji.bean;
/**
* @author WYH_Healer
* @email 3425934925@qq.com
* Created by xz on 2016/12/1.
* Role:
*/
public class Wash_car {
private String desc;
private String title;
public void setDesc(String desc){
this.desc = desc;
}
public String getDesc(){
return this.desc;
}
public void setTitle(String title){
this.title = title;
}
public String getTitle(){
return this.title;
}
}
| [
"yangchong211@163.com"
] | yangchong211@163.com |
96d6803c8a5c195655ddbf91e634cd08c3d8c3e2 | fec32228506ddbd600d65df14f21b0d2c3361116 | /src/com/dongnao/jack/cglib/TargetClass.java | ca9292e63f5f066a53fd3fd0894f615f415766d3 | [] | no_license | jxhmask/test | cbdfc3979a0a38285ad060e86089dac898135b04 | cf56013d0bf88e1e343dec02c34a145b4809423f | refs/heads/master | 2020-04-29T03:32:38.409003 | 2019-04-15T08:12:36 | 2019-04-15T08:12:36 | 175,814,029 | 0 | 0 | null | 2019-03-17T03:11:10 | 2019-03-15T12:13:50 | Java | UTF-8 | Java | false | false | 294 | java | package com.dongnao.jack.cglib;
public class TargetClass {
public void add() {
System.out.println("add");
}
public void del() {
System.out.println("del");
}
public void update() {
System.out.println("update");
}
}
| [
"jxhmask@sina.com"
] | jxhmask@sina.com |
a06200b5f74fdd76c52b17c75937c2f13e650a8e | 48e835e6f176a8ac9ae3ca718e8922891f1e5a18 | /benchmark/training/org/apache/flink/api/java/operator/FirstNOperatorTest.java | b7353980715a138ff8771eecdaf302d654304acf | [] | no_license | STAMP-project/dspot-experiments | f2c7a639d6616ae0adfc491b4cb4eefcb83d04e5 | 121487e65cdce6988081b67f21bbc6731354a47f | refs/heads/master | 2023-02-07T14:40:12.919811 | 2019-11-06T07:17:09 | 2019-11-06T07:17:09 | 75,710,758 | 14 | 19 | null | 2023-01-26T23:57:41 | 2016-12-06T08:27:42 | null | UTF-8 | Java | false | false | 5,210 | 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.flink.api.java.operator;
import Order.ASCENDING;
import java.util.ArrayList;
import java.util.List;
import org.apache.flink.api.common.InvalidProgramException;
import org.apache.flink.api.common.typeinfo.BasicTypeInfo;
import org.apache.flink.api.java.DataSet;
import org.apache.flink.api.java.ExecutionEnvironment;
import org.apache.flink.api.java.tuple.Tuple5;
import org.apache.flink.api.java.typeutils.TupleTypeInfo;
import org.junit.Assert;
import org.junit.Test;
/**
* Tests for {@link DataSet#first(int)}.
*/
public class FirstNOperatorTest {
// TUPLE DATA
private final List<Tuple5<Integer, Long, String, Long, Integer>> emptyTupleData = new ArrayList<Tuple5<Integer, Long, String, Long, Integer>>();
private final TupleTypeInfo<Tuple5<Integer, Long, String, Long, Integer>> tupleTypeInfo = new TupleTypeInfo<Tuple5<Integer, Long, String, Long, Integer>>(BasicTypeInfo.INT_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO, BasicTypeInfo.STRING_TYPE_INFO, BasicTypeInfo.LONG_TYPE_INFO, BasicTypeInfo.INT_TYPE_INFO);
@Test
public void testUngroupedFirstN() {
final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
DataSet<Tuple5<Integer, Long, String, Long, Integer>> tupleDs = env.fromCollection(emptyTupleData, tupleTypeInfo);
// should work
try {
tupleDs.first(1);
} catch (Exception e) {
Assert.fail();
}
// should work
try {
tupleDs.first(10);
} catch (Exception e) {
Assert.fail();
}
// should not work n == 0
try {
tupleDs.first(0);
Assert.fail();
} catch (InvalidProgramException ipe) {
// we're good here
} catch (Exception e) {
Assert.fail();
}
// should not work n == -1
try {
tupleDs.first((-1));
Assert.fail();
} catch (InvalidProgramException ipe) {
// we're good here
} catch (Exception e) {
Assert.fail();
}
}
@Test
public void testGroupedFirstN() {
final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
DataSet<Tuple5<Integer, Long, String, Long, Integer>> tupleDs = env.fromCollection(emptyTupleData, tupleTypeInfo);
// should work
try {
tupleDs.groupBy(2).first(1);
} catch (Exception e) {
Assert.fail();
}
// should work
try {
tupleDs.groupBy(1, 3).first(10);
} catch (Exception e) {
Assert.fail();
}
// should not work n == 0
try {
tupleDs.groupBy(0).first(0);
Assert.fail();
} catch (InvalidProgramException ipe) {
// we're good here
} catch (Exception e) {
Assert.fail();
}
// should not work n == -1
try {
tupleDs.groupBy(2).first((-1));
Assert.fail();
} catch (InvalidProgramException ipe) {
// we're good here
} catch (Exception e) {
Assert.fail();
}
}
@Test
public void testGroupedSortedFirstN() {
final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
DataSet<Tuple5<Integer, Long, String, Long, Integer>> tupleDs = env.fromCollection(emptyTupleData, tupleTypeInfo);
// should work
try {
tupleDs.groupBy(2).sortGroup(4, ASCENDING).first(1);
} catch (Exception e) {
Assert.fail();
}
// should work
try {
tupleDs.groupBy(1, 3).sortGroup(4, ASCENDING).first(10);
} catch (Exception e) {
Assert.fail();
}
// should not work n == 0
try {
tupleDs.groupBy(0).sortGroup(4, ASCENDING).first(0);
Assert.fail();
} catch (InvalidProgramException ipe) {
// we're good here
} catch (Exception e) {
Assert.fail();
}
// should not work n == -1
try {
tupleDs.groupBy(2).sortGroup(4, ASCENDING).first((-1));
Assert.fail();
} catch (InvalidProgramException ipe) {
// we're good here
} catch (Exception e) {
Assert.fail();
}
}
}
| [
"benjamin.danglot@inria.fr"
] | benjamin.danglot@inria.fr |
73097b77a8c588b1b514bb0d17842221897d715e | 0145849b23ac01572aa366526f0e6571a71df050 | /兔子问题 斐波那契数列/DiGuiDemo.java | 5000885fc3d0b51906b18f7850902b2588971b05 | [] | no_license | momosnail/java-basics-demo | f287151c474569df0cbed290a341d16a556aa41b | 2792fc21a394cac50d14236d9d1b839d1d2a9933 | refs/heads/master | 2023-06-07T20:27:23.105523 | 2023-06-02T02:15:40 | 2023-06-02T02:15:40 | 96,834,591 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,905 | java |
/*
* 有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问第二十个月的兔子对数为多少?
* 分析:我们要想办法找规律
* 兔子对数
* 第一个月: 1
* 第二个月: 1
* 第三个月: 2
* 第四个月: 3
* 第五个月: 5
* 第六个月: 8
* ...
*
* 由此可见兔子对象的数据是:
* 1,1,2,3,5,8...
* 规则:
* A:从第三项开始,每一项是前两项之和
* B:而且说明前两项是已知的
*
* 如何实现这个程序呢?
* A:数组实现
* B:变量的变化实现
* C:递归实现
*
* 假如相邻的两个月的兔子对数是a,b
* 第一个相邻的数据:a=1,b=1
* 第二个相邻的数据:a=1,b=2
* 第三个相邻的数据:a=2,b=3
* 第四个相邻的数据:a=3,b=5
* 看到了:下一次的a是以前的b,下一次是以前的a+b
*/
public class DiGuiDemo {
public static void main(String[] args) {
// 定义一个数组
int[] arr = new int[20];
arr[0] = 1;
arr[1] = 1;
// arr[2] = arr[0] + arr[1];
// arr[3] = arr[1] + arr[2];
// ...
for (int x = 2; x < arr.length; x++) {
arr[x] = arr[x - 2] + arr[x - 1];
}
System.out.println(arr[19]);// 6765
System.out.println("----------------");
int a = 1;
int b = 1;
for (int x = 0; x < 18; x++) {
// 临时变量存储上一次的a
int temp = a;
a = b;
b = temp + b;
}
System.out.println(b);
System.out.println("----------------");
System.out.println(fib(20));
}
/*
* 方法: 返回值类型:int 参数列表:int n 出口条件: 第一个月是1,第二个月是1 规律: 从第三个月开始,每一个月是前两个月之和
*/
public static int fib(int n) {
if (n == 1 || n == 2) {
return 1;
} else {
return fib(n - 1) + fib(n - 2);
}
}
} | [
"w550218658@gmail.com"
] | w550218658@gmail.com |
3b5bda7d478c85b0dfc6497c637b84c504c998d8 | 92202466987740feae38298b7c86211512763306 | /src/main/java/com/redditclone/dto/RegisterRequest.java | b8b844c8b5b66b3d262bdc5fd711ce117d7a3ae6 | [] | no_license | mayurchakalasiya1990/springredditclone | 51c3b9e3f8e5ce034dd2302b2b7d50f3feb4de38 | 9df059af0eedb7878330151dfb56e9211c01cc48 | refs/heads/master | 2023-05-13T05:41:35.378003 | 2021-06-02T11:30:28 | 2021-06-02T11:30:28 | 367,639,979 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 281 | java | package com.redditclone.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterRequest {
private String email;
private String username;
private String password;
}
| [
"mayur.chakalasiya1990@gmail.com"
] | mayur.chakalasiya1990@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.