blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 684M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 132 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 28 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 352 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2ca50edbb5755fdf0152fd2126979bb7110ad0f5 | fe1a2d21d87de05f51a5e5442fdfcabfb9112f1f | /src/main/java/de/sabbertran/proxysuite/api/transport/TeleportTarget.java | 0ed3111e7193cb5e84b650c9aa70f3ee6cf8c471 | [] | no_license | seyfahni/ProxySuite | eba1ec72a4fb71e434b85aa88efffff781423900 | 05069fd65f43790ccd10b61deefc302232e75b01 | refs/heads/master | 2020-04-03T12:27:33.625351 | 2018-11-25T10:00:38 | 2018-11-25T10:00:38 | 155,252,893 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 354 | java | package de.sabbertran.proxysuite.api.transport;
import de.sabbertran.proxysuite.api.transport.bukkit.BukkitTeleportTarget;
import de.sabbertran.proxysuite.api.transport.bungee.BungeeTeleportTarget;
/**
*
*/
public interface TeleportTarget {
BukkitTeleportTarget getBukkitTeleportTarget();
BungeeTeleportTarget getBungeeTeleportTarget();
}
| [
"niklas@seyfarth.de"
] | niklas@seyfarth.de |
21b80767d48c53a3aecf961d07bb3d5538bfd50c | b152ed1b1221c5ae6b8cf5030e6e00bcf714a954 | /1805pms/src/main/java/com/zs/pms/serviceimpl/UserServiceImpl.java | 0a85724f27bbc3f4c029a786b0df92bed053defd | [] | no_license | gavinli80/code | 52d67219bbe8fc5d98cf6a87af6ffde69fff18c8 | af691c2803cb7c494613a2213d642269fc5d6af5 | refs/heads/master | 2020-04-09T11:39:13.998450 | 2018-12-06T06:27:42 | 2018-12-06T06:27:42 | 160,318,613 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,916 | java | package com.zs.pms.serviceimpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.support.DaoSupport;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.zs.pms.dao.UserDao;
import com.zs.pms.dao.UserDao2;
import com.zs.pms.exception.AppException;
import com.zs.pms.po.TUser;
import com.zs.pms.service.UserService;
import com.zs.pms.utils.Constants;
import com.zs.pms.utils.MD5;
import com.zs.pms.vo.QueryUser;
/**
* user服务实现
*
* @author Administrator
*
*/
@Service
@Transactional // 该业务支持事务
public class UserServiceImpl implements UserService {
@Autowired
private UserDao udao;
@Override
public TUser chkLogin(QueryUser query) throws AppException {
// TODO Auto-generated method stub
// 将明码变成密码
MD5 md5 = new MD5();
// 加密后的密码
String p1 = md5.getMD5ofStr(query.getPassword());
// 将密码放到query中
query.setPassword(p1);
List<TUser> list = udao.queryByCon(query);
// 没有用户
if (list == null || list.size() != 1) {
throw new AppException(1000, "用户名或密码输入有误,请重新输入");
}
// 获得第一条
TUser user = list.get(0);
// 关联权限列表返回
return udao.queryById(user.getId());
}
@Override
public List<TUser> queryByCon(QueryUser query) {
// TODO Auto-generated method stub
return udao.queryByCon(query);
}
@Override
@Transactional(rollbackFor = Exception.class) // 有异常就回滚否则提交
public void deleteByIds(int[] ids) {
// TODO Auto-generated method stub
udao.deleteByIds(ids);
}
@Override
@Transactional(rollbackFor = Exception.class) // 有异常就回滚否则提交
public void update(TUser user) throws AppException {
//不可用
if(user.getIsenabled()==-1) {
throw new AppException(1003, "不能修改不可用用户");
}
// TODO Auto-generated method stub
//获得原来的用户
TUser ouser=udao.queryById(user.getId());
//原密码不等于新密码 才加密
if (user.getPassword() != null && (!"".equals(user.getPassword()))&&!user.getPassword().equals(ouser.getPassword())) {
// 密码加密
MD5 md5 = new MD5();
user.setPassword(md5.getMD5ofStr(user.getPassword()));
}
udao.update(user);
}
@Override
@Transactional(rollbackFor = Exception.class) // 有异常就回滚否则提交
public int insert(TUser user) throws AppException {
// TODO Auto-generated method stub
// udao.insert(user); //回滚 新增不成功
// int a=1/0; //抛异常
//登录名=admin
if("admin".equals(user.getLoginname())) {
throw new AppException(1002, "登录名不能为admin");
}
return udao.insert(user);
}
@Override
@Transactional(rollbackFor = Exception.class) // 有异常就回滚否则提交
public void delete(int id) throws AppException {
// TODO Auto-generated method stub
udao.delete(id);
}
@Override
public TUser queryById(int id) {
// TODO Auto-generated method stub
return udao.queryById(id);
}
@Override
/**
* query : 条件 page: 当前页
*/
public List<TUser> queryByPage(QueryUser query, int page) {
// TODO Auto-generated method stub
// 将当前页设置到条件中
query.setPage(page);
// 可以设置起始和截止
return udao.queryByPage(query);
}
@Override
/**
* 计算总页数
*/
public int queryPageCount(QueryUser query) {
// TODO Auto-generated method stub
// 获得总条数
int count = udao.queryCount(query);
// 能整除
if (count % Constants.PAGECOUNT == 0) {
return count / Constants.PAGECOUNT;
}
// 不能整除
else {
return count / Constants.PAGECOUNT + 1;
}
}
}
| [
"38011757@qq.com"
] | 38011757@qq.com |
9a44685c999bdbdaf57a5858b43311d276db474f | 16595342edd08e677c1291229350e4570fe37d50 | /discovery/src/test/java/com/ibm/watson/discovery/v2/model/TableRowHeaderTextsNormalizedTest.java | b2b88c2cc29362ebeb599fccedc0157d9127a529 | [
"Apache-2.0"
] | permissive | watson-developer-cloud/java-sdk | 53ccc5a221b05e031234b8ee2f2907b1856a18b8 | 59a80dd162a8e6a34c7b3a82d9e33e002638a031 | refs/heads/master | 2023-08-17T10:06:22.546463 | 2023-08-08T16:00:43 | 2023-08-08T16:00:43 | 34,824,538 | 691 | 694 | Apache-2.0 | 2023-08-08T15:55:06 | 2015-04-29T23:55:13 | Java | UTF-8 | Java | false | false | 1,488 | java | /*
* (C) Copyright IBM Corp. 2020.
*
* 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.ibm.watson.discovery.v2.model;
import static org.testng.Assert.*;
import com.ibm.cloud.sdk.core.service.model.FileWithMetadata;
import com.ibm.watson.discovery.v2.utils.TestUtilities;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import org.testng.annotations.Test;
/** Unit test class for the TableRowHeaderTextsNormalized model. */
public class TableRowHeaderTextsNormalizedTest {
final HashMap<String, InputStream> mockStreamMap = TestUtilities.createMockStreamMap();
final List<FileWithMetadata> mockListFileWithMetadata =
TestUtilities.creatMockListFileWithMetadata();
@Test
public void testTableRowHeaderTextsNormalized() throws Throwable {
TableRowHeaderTextsNormalized tableRowHeaderTextsNormalizedModel =
new TableRowHeaderTextsNormalized();
assertNull(tableRowHeaderTextsNormalizedModel.getTextNormalized());
}
}
| [
"kevin.kowalski@ibm.com"
] | kevin.kowalski@ibm.com |
2972ffe502de2f886e1d3853b6c6e70a217e10ab | 4d6c00789d5eb8118e6df6fc5bcd0f671bbcdd2d | /src/main/java/com/alipay/api/domain/KoubeiItemTaobaoIndexQueryModel.java | b42b90ffa53e28e5245241315ee8de15f81eeb58 | [
"Apache-2.0"
] | permissive | weizai118/payment-alipay | 042898e172ce7f1162a69c1dc445e69e53a1899c | e3c1ad17d96524e5f1c4ba6d0af5b9e8fce97ac1 | refs/heads/master | 2020-04-05T06:29:57.113650 | 2018-11-06T11:03:05 | 2018-11-06T11:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,650 | java | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 淘抢购批量商品查询接口
*
* @author auto create
* @since 1.0, 2017-12-01 11:22:32
*/
public class KoubeiItemTaobaoIndexQueryModel extends AlipayObject {
private static final long serialVersionUID = 4613565843542355124L;
/**
* 城市编码
*/
@ApiField("city_id")
private String cityId;
/**
* 扩展信息,json格式
*/
@ApiField("ext_info")
private String extInfo;
/**
* 纬度
*/
@ApiField("latitude")
private String latitude;
/**
* 经度
*/
@ApiField("longitude")
private String longitude;
/**
* 场景码,TAO_BIG_BUY:淘抢购大牌抢购;JU_BIG_BUY:聚划算大牌抢购
*/
@ApiField("scene_code")
private String sceneCode;
/**
* 蚂蚁统一会员ID
*/
@ApiField("user_id")
private String userId;
/**
* Gets city id.
*
* @return the city id
*/
public String getCityId() {
return this.cityId;
}
/**
* Sets city id.
*
* @param cityId the city id
*/
public void setCityId(String cityId) {
this.cityId = cityId;
}
/**
* Gets ext info.
*
* @return the ext info
*/
public String getExtInfo() {
return this.extInfo;
}
/**
* Sets ext info.
*
* @param extInfo the ext info
*/
public void setExtInfo(String extInfo) {
this.extInfo = extInfo;
}
/**
* Gets latitude.
*
* @return the latitude
*/
public String getLatitude() {
return this.latitude;
}
/**
* Sets latitude.
*
* @param latitude the latitude
*/
public void setLatitude(String latitude) {
this.latitude = latitude;
}
/**
* Gets longitude.
*
* @return the longitude
*/
public String getLongitude() {
return this.longitude;
}
/**
* Sets longitude.
*
* @param longitude the longitude
*/
public void setLongitude(String longitude) {
this.longitude = longitude;
}
/**
* Gets scene code.
*
* @return the scene code
*/
public String getSceneCode() {
return this.sceneCode;
}
/**
* Sets scene code.
*
* @param sceneCode the scene code
*/
public void setSceneCode(String sceneCode) {
this.sceneCode = sceneCode;
}
/**
* Gets user id.
*
* @return the user id
*/
public String getUserId() {
return this.userId;
}
/**
* Sets user id.
*
* @param userId the user id
*/
public void setUserId(String userId) {
this.userId = userId;
}
}
| [
"hanley@thlws.com"
] | hanley@thlws.com |
31a152da2a74f9bb02e204a5bf48f4b8ba6a18cd | 7e78e41e66c611eacf7f46c2249ff50b2931e586 | /app/src/main/java/com/example/danielgalarza/phototinter/ColorLab.java | e1bf5a4949d60ae22003d95eda556d97d67ed4e8 | [] | no_license | DanielGalarza/PhotoTinter | 28f50d93a7367d7002cdadcada7e53cd3eb3d54a | 3595ddc26b7e28419af60e71a927a64185f5be62 | refs/heads/master | 2021-01-10T17:59:04.884540 | 2017-06-29T22:22:29 | 2017-06-29T22:22:29 | 43,657,960 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,180 | java | package com.example.danielgalarza.phototinter;
import android.content.Context;
import java.util.Random;
import java.util.ArrayList;
/**
* Created by Daniel Galarza on 9/30/15.
* This Class provides the button list portion of the view on the app. A OneColor object that knows its
* two colors to blend (Preset colors I hard coded) and helps with setting the title of the buttons
* for the preset options
*/
public class ColorLab {
private static ColorLab sColorLab;
private Context mAppContext;
private ArrayList<OneColor> mColors;
public ColorLab(Context appContext) {
mAppContext = appContext;
mColors = new ArrayList<>();
for (int i = 0; i < 7; i++) {
//int count = i;
OneColor c = new OneColor();
int color;
switch(i) {
case 0 : c.setTitle("Blue Tint");
c.setColor(c.makeColorWithAlpha(127, 0, 0, 255));
break;
case 1 : c.setTitle("Gray Tint");
c.setColor(c.makeColorWithAlpha(127, 211, 211, 211));
break;
case 2 : c.setTitle("Green Tint");
c.setColor(c.makeColorWithAlpha(127, 0, 255, 0));
break;
case 3 : c.setTitle("Purple Tint");
c.setColor(c.makeColorWithAlpha(127, 186, 85, 211));
break;
case 4 : c.setTitle("Red Tint");
c.setColor(c.makeColorWithAlpha(127, 255, 0, 0));
break;
case 5 : c.setTitle("Yellow Tint");
c.setColor(c.makeColorWithAlpha(127, 255, 255, 0));
break;
case 6 : c.setTitle("Random Tint");
break;
}
mColors.add(c);
}
}
public static ColorLab get(Context c) {
if (sColorLab == null) {
sColorLab = new ColorLab(c.getApplicationContext());
}
return sColorLab;
}
public ArrayList<OneColor> getColors() {
return mColors;
}
}
| [
"danielgalarza41@yahoo.com"
] | danielgalarza41@yahoo.com |
e151bbc5b42e9dd986539971dbe290e769f9a398 | e2fa3bb70f7a03bca36ad574169072f088e59eed | /jflex-example/src/main/java/com/jflex/jflexexample/entity/User.java | f31f2599fd5e60a69efb135e5bffce23e516ffd7 | [] | no_license | lansek/jflex | 4c24bf3b5340c836cfe5310e470fccab4fde31d5 | c676c5c1d997ae3d3a19abb34c7dbe5dbbd1a694 | refs/heads/master | 2023-03-06T18:09:45.977419 | 2021-02-23T06:57:19 | 2021-02-23T06:57:19 | 341,751,652 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 860 | java | package com.jflex.jflexexample.entity;
import java.util.Date;
public class User {
private int id;
private String name;
private Date createTime;
private Date updateTime;
private String remark;
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
| [
"wangsl@kftpay.com.cn"
] | wangsl@kftpay.com.cn |
55c3964d17f39551ddcce8197ba0b2c98a1a2e1d | 57c23fccef653f3a465b7ea030309592c926e801 | /src/mx/venado/pvr/seguridad/Login2.java | 13d2defcd0eb1e20f834e77775e0148291d5c73e | [] | no_license | Mondragon-L/spv-ropa | b5b50be62a9f8c5121600ab82781fa3e20672bc6 | 39af334c15d54553e1b1e785bab7a89e175cb222 | refs/heads/master | 2023-05-07T14:50:26.207978 | 2021-05-30T03:58:28 | 2021-05-30T03:58:28 | 372,115,041 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,849 | java | package mx.venado.pvr.seguridad;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import mx.venado.pvr.utilidades.AdvertenciaIcono;
import mx.venado.pvr.utilidades.ErrorIcono;
import pvr.DfrmSesion2;
import pvr.FrmPvr2;
import mx.venado.pvr.utilidades.IPvrConstant;
public class Login2 implements IPvrConstant {
public final static String ACCESO_CONCEDIDO = "[concedido]";
public final static String ACCESO_DENEGADO = "[denegado]";
protected String usuario = "Vendedor";
protected String tipo = "Vendedor";
JButton btnAceptar;
JPasswordField pwdtxtClave;
JTextField txtUsuario;
DfrmSesion2 root;
public Login2(DfrmSesion2 root) {
this.root = root;
this.btnAceptar = this.root.getBtnAceptar();
this.txtUsuario = this.root.getTxtUsuario();
this.pwdtxtClave = this.root.getPwdtxtClave();
ConfigForm();
Listeners();
}
private void ConfigForm() {
pwdtxtClave.setEchoChar('X');
txtUsuario.requestFocus();
}
private void Listeners() {
btnAceptar.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (!txtUsuario.getText().isEmpty() && pwdtxtClave.getPassword().length > 0) {
Acceder();
} else {
JOptionPane.showMessageDialog(root, "Complete los campos", "Sesión", JOptionPane.OK_OPTION, new AdvertenciaIcono());
}
}
});
txtUsuario.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent evt) {
if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
if (!txtUsuario.getText().isEmpty() && pwdtxtClave.getPassword().length > 0) {
Acceder();
} else {
JOptionPane.showMessageDialog(root, "Complete los campos", "Sesión", JOptionPane.OK_OPTION, new AdvertenciaIcono());
}
}
}
});
pwdtxtClave.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent evt) {
if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
if (!txtUsuario.getText().isEmpty() && pwdtxtClave.getPassword().length > 0) {
Acceder();
} else {
JOptionPane.showMessageDialog(root, "Complete los campos", "Sesión", JOptionPane.OK_OPTION, new AdvertenciaIcono());
}
}
}
});
}
private void Acceder() {
try {
LoginDao dao = new LoginDao();
LoginVo get;
LoginVo set = new LoginVo();
set.setUsuario(txtUsuario.getText());
set.setClave(AES.sha1(new String(pwdtxtClave.getPassword())));
get = dao.Ingresar(set);
if (null != get.getEstatus()) {
switch (get.getEstatus()) {
case ACCESO_CONCEDIDO:
// JOptionPane.showMessageDialog(root, get.toString());
FrmPvr2 frmPvr2 = new FrmPvr2();
frmPvr2.setTipo(get.getTipo());
frmPvr2.setIdUsuario(get.getId());
frmPvr2.setUsuario(get.getUsuario());
frmPvr2.setVisible(true);
root.dispose();
// JOptionPane.showMessageDialog(root, "OK", "Sesión", JOptionPane.OK_OPTION, new CorrectoIcono());
break;
case ACCESO_DENEGADO:
JOptionPane.showMessageDialog(root, "Usuario o clave incorrecta", "Sesión", JOptionPane.OK_OPTION, new ErrorIcono());
break;
default:
JOptionPane.showMessageDialog(root, get.getEstatus(), "Sesión", JOptionPane.OK_OPTION, new AdvertenciaIcono());
break;
}
}
} catch (HeadlessException e) {
// String el = "";
// for (StackTraceElement element : e.getStackTrace()) {
// el += (element.toString() + "\n");
// }
// JOptionPane.showMessageDialog(root, ">>> " + el);
JOptionPane.showMessageDialog(root, ((e.getMessage() != null) ? e.getMessage() : e.toString()), "Sesión", JOptionPane.OK_OPTION, new AdvertenciaIcono());
}
pwdtxtClave.setText("");
}
}
| [
"antonio_code@protonmail.ch"
] | antonio_code@protonmail.ch |
dca533aa3e6f8781da74cc8eb38247afdb4fed67 | 863acb02a064a0fc66811688a67ce3511f1b81af | /sources/p005cm/aptoide/p006pt/search/view/C4754Sc.java | dcc0dfe7682635be0f38db7a506c055d2d813354 | [
"MIT"
] | permissive | Game-Designing/Custom-Football-Game | 98d33eb0c04ca2c48620aa4a763b91bc9c1b7915 | 47283462b2066ad5c53b3c901182e7ae62a34fc8 | refs/heads/master | 2020-08-04T00:02:04.876780 | 2019-10-06T06:55:08 | 2019-10-06T06:55:08 | 211,914,568 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 535 | java | package p005cm.aptoide.p006pt.search.view;
import p026rx.p027b.C0129b;
/* renamed from: cm.aptoide.pt.search.view.Sc */
/* compiled from: lambda */
public final /* synthetic */ class C4754Sc implements C0129b {
/* renamed from: a */
private final /* synthetic */ SearchResultPresenter f8389a;
public /* synthetic */ C4754Sc(SearchResultPresenter searchResultPresenter) {
this.f8389a = searchResultPresenter;
}
public final void call(Object obj) {
this.f8389a.mo16284e((Throwable) obj);
}
}
| [
"tusharchoudhary0003@gmail.com"
] | tusharchoudhary0003@gmail.com |
7278bc929c9979b3fe010cab98a678485909c059 | a17dc546bf2092dc2841d967c200b0629bc7a91d | /app/src/main/java/com/beardleysebastian/studentschedulizer13/TermDetailFragment.java | c8e6a131f0fb89a3629d2ec701acd0e8b0517751 | [] | no_license | bradleysebastian/StudentSchedulizer13 | 7ef552a63f1f15902398881efea900c9223c725b | 09488df063b58c59e25c2ddcd151e55eca6df0d2 | refs/heads/main | 2023-04-03T18:31:53.802253 | 2021-04-05T16:58:20 | 2021-04-05T16:58:20 | 354,899,255 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,073 | java | package com.beardleysebastian.studentschedulizer13;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
public class TermDetailFragment extends Fragment {
private Term targetTerm;
int termID;
//TODO find best point to fire off ASYNC query for Term's Courses ArrayList
//TODO
//TODO Shows Courses Button
//TODO Change Details Button
//TODO Add Courses Button???
//TODO Remove Courses Button???
//TODO Delete Term Button
public static TermDetailFragment newInstance(int termID) {
TermDetailFragment tdFragment = new TermDetailFragment();
Bundle payload = new Bundle();
payload.putInt("test", termID);
tdFragment.setArguments(payload);
return tdFragment;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Get the termID from the intent that started TermDetailsActivity
// int termID = 1;
if (getArguments() != null) {
termID = getArguments().getInt("test");
}
targetTerm = CatalogDatabase.getInstance().getTerm(termID);
}
@Override
public View onCreateView(LayoutInflater inflaterer, ViewGroup vgContainer,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View TermDetFragView = inflaterer.inflate(R.layout.term_detail_fragment, vgContainer, false);
TextView termNameTxtV = TermDetFragView.findViewById(R.id.term_title_det);
termNameTxtV.setText(targetTerm.getTermTitle());
TextView termDescsTxtV = TermDetFragView.findViewById(R.id.termDescription);
termDescsTxtV.setText(targetTerm.getTermDescription());
TextView termStartEnd = TermDetFragView.findViewById(R.id.start_end);
termStartEnd.setText(targetTerm.getTermStart() + " - " + targetTerm.getTermEnd());
return TermDetFragView;
}
} | [
"bradleysebastian@gmail.com"
] | bradleysebastian@gmail.com |
71282fb053d59455787b9a2b8a8570b1abd8812c | 4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849 | /aliyun-java-sdk-hbase/src/main/java/com/aliyuncs/hbase/model/v20190101/DescribeBackupStatusRequest.java | 9c62988a0c4a322465a8ee0794cfa69ab81c1bc6 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-java-sdk | a263fa08e261f12d45586d1b3ad8a6609bba0e91 | e19239808ad2298d32dda77db29a6d809e4f7add | refs/heads/master | 2023-09-03T12:28:09.765286 | 2023-09-01T09:03:00 | 2023-09-01T09:03:00 | 39,555,898 | 1,542 | 1,317 | NOASSERTION | 2023-09-14T07:27:05 | 2015-07-23T08:41:13 | Java | UTF-8 | Java | false | false | 1,639 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.hbase.model.v20190101;
import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.hbase.Endpoint;
/**
* @author auto create
* @version
*/
public class DescribeBackupStatusRequest extends RpcAcsRequest<DescribeBackupStatusResponse> {
private String clusterId;
public DescribeBackupStatusRequest() {
super("HBase", "2019-01-01", "DescribeBackupStatus", "hbase");
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}
public String getClusterId() {
return this.clusterId;
}
public void setClusterId(String clusterId) {
this.clusterId = clusterId;
if(clusterId != null){
putQueryParameter("ClusterId", clusterId);
}
}
@Override
public Class<DescribeBackupStatusResponse> getResponseClass() {
return DescribeBackupStatusResponse.class;
}
}
| [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
0eae490a5a68f2ac29e006971c43255bc78728d6 | 92854afe5068c4452896faf7d1a36009a3ab54af | /app/src/main/java/com/gzz100/zbh/account/fragment/RegUserNameFragment.java | 6c6cb54004fb254a37a11136410d1abdd3bb04b0 | [] | no_license | lamchaohao/zbh | f8c1257ef83ff54cf79f8946881c5239911a4921 | 04b5ecc020a610b96842c6c7b748cd8aed688626 | refs/heads/master | 2020-03-09T08:43:05.885002 | 2018-11-08T08:54:15 | 2018-11-08T08:54:30 | 128,695,863 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,727 | java | package com.gzz100.zbh.account.fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import com.gzz100.zbh.R;
import com.gzz100.zbh.account.User;
import com.gzz100.zbh.account.eventEntity.RegInfoBus;
import com.gzz100.zbh.account.eventEntity.RegStepEvent;
import com.gzz100.zbh.base.BaseFragment;
import com.gzz100.zbh.data.ObserverImpl;
import com.gzz100.zbh.data.network.HttpResult;
import com.gzz100.zbh.data.network.request.UserLoginRequest;
import com.gzz100.zbh.utils.MD5Utils;
import com.orhanobut.logger.Logger;
import org.greenrobot.eventbus.EventBus;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import es.dmoral.toasty.Toasty;
/**
* Created by Lam on 2018/8/4.
*/
public class RegUserNameFragment extends BaseFragment {
@BindView(R.id.et_reg_userName)
EditText mEtRegUserName;
@BindView(R.id.iv_username_next)
ImageView mIvUsernameNext;
Unbinder unbinder;
private String mPhone;
private String mVaildCode;
private String mPassword;
@Override
protected View onCreateView(LayoutInflater inflater) {
View view = inflater.inflate(R.layout.fragment_reg_user_name, null);
unbinder = ButterKnife.bind(this, view);
return view;
}
@OnClick(R.id.iv_username_next)
public void onViewClicked() {
doRegister();
}
private void doRegister() {
ObserverImpl<HttpResult<User>> observer = new ObserverImpl<HttpResult<User>>() {
@Override
protected void onResponse(HttpResult<User> result) {
if (result.getCode()==1) {
Toasty.success(_mActivity,"注册成功").show();
EventBus.getDefault().post(new RegInfoBus(result.getResult().getPhone()));
EventBus.getDefault().post(new RegStepEvent(3,"success"));
}
}
@Override
protected void onFailure(Throwable e) {
Toasty.error(_mActivity,e.getMessage()).show();
}
};
String encodedPsw = MD5Utils.getEncodedStr(mPassword);
UserLoginRequest.getInstance()
.regUser(observer,mPhone,encodedPsw,
mEtRegUserName.getText().toString(),mVaildCode);
}
public void setDataFromParent(String phone,String vaildCode,String psw){
Logger.i(phone+","+vaildCode+",psw-"+psw);
mPhone = phone;
mVaildCode = vaildCode;
mPassword = psw;
}
@Override
public void onDestroyView() {
super.onDestroyView();
unbinder.unbind();
}
}
| [
"lamchaohao@qq.com"
] | lamchaohao@qq.com |
d75bf81173ff5e9ecc45555011d09f7c97a673fd | bb7e37d7626914289053ff043270e313e3a81192 | /Fif/app/src/main/java/com/example/fif/PersonService.java | 468fb47cdcdd1b0212939386dd1dd5331b9db77f | [] | no_license | Azipro/Android-Learning | ba4f64150d8e9c49715e5391bf29a359a1581e63 | 79ba2dde2c1a4e10c853f0407942d1f020aabbab | refs/heads/master | 2020-09-21T03:21:48.092611 | 2019-12-03T13:57:50 | 2019-12-03T13:57:50 | 219,974,045 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,870 | java | package com.example.fif;
import android.util.Xml;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
public class PersonService {
public static List<Person>getPersons(InputStream xml) throws IOException, XmlPullParserException{
List<Person> persons = null;
Person person = null;
XmlPullParser pullParser = Xml.newPullParser();
try{
pullParser.setInput(xml, "UTF-8");
int event = pullParser.getEventType();
while(event != XmlPullParser.END_DOCUMENT){
switch (event){
case XmlPullParser.START_DOCUMENT:
persons = new ArrayList<Person>();
break;
case XmlPullParser.START_TAG:
if("person".equals(pullParser.getName())){
person = new Person();
}
if("name".equals(pullParser.getName())){
person.setUsername(pullParser.nextText());
}
if("password". equals(pullParser.getName())){
person.setPassword(pullParser.nextText());
}
break;
case XmlPullParser.END_TAG:
if("person".equals(pullParser.getName())){
persons.add(person);
person = null;
}
break;
}
event = pullParser.next();
}
} catch (XmlPullParserException | IOException e) {
e.printStackTrace();
}
return persons;
}
}
| [
"532789173@qq.com"
] | 532789173@qq.com |
d02135ba5b88df9b8f656ba3b7053768182a15d5 | 46ff8d42eca259bd979dae05fd8d5928f644bdb6 | /demoDigitalHarbor/src/main/java/com/demodigitalharbor/repo/IProg_class.java | 4f7a93c8f8513d35076bdc8ee03cdeb657d73793 | [] | no_license | horacioacebey1989/demo.digital.harbor.s4 | 7206f0c1218b6285ce75512308193d7014fdad61 | a53c8c25b6b8e7acdd9c829df2c05fecc0996b02 | refs/heads/master | 2022-12-07T01:49:22.179371 | 2020-09-05T01:24:17 | 2020-09-05T01:24:17 | 292,976,570 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 224 | java | package com.demodigitalharbor.repo;
import org.springframework.data.jpa.repository.JpaRepository;
import com.demodigitalharbor.model.prog_class;
public interface IProg_class extends JpaRepository<prog_class, Integer>{
}
| [
"horacioacebey@192.168.0.4"
] | horacioacebey@192.168.0.4 |
26be61116dec8fdbc6ddd5aec4b7b0b9386cae23 | 1ba3930b6e1640bf93cfb45bee0994440358f217 | /src/com/youqude/storyflow/weibo/Oauth2AccessToken.java | 3e4d29b900100272139fc1e0007fa48986043467 | [] | no_license | vdiskmobile/StoryFlow | 6c1fda9c9509c95d6faa84dd0b93449496705289 | 19dd3d3ae480c321e3121884c962ea3cd9b535f6 | refs/heads/master | 2016-09-05T22:51:17.333843 | 2014-11-03T08:22:03 | 2014-11-03T08:22:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,674 | java | /*
* Copyright 2011 Sina.
*
* Licensed under the Apache License and Weibo 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.open.weibo.com
* 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.youqude.storyflow.weibo;
import org.json.JSONException;
import org.json.JSONObject;
/**
* An AcessToken class contains accesstoken and tokensecret.Child class of com.weibo.net.Token.
*
* @author (luopeng@staff.sina.com.cn zhangjie2@staff.sina.com.cn 官方微博:WBSDK http://weibo.com/u/2791136085)
*/
public class Oauth2AccessToken extends Token {
public Oauth2AccessToken(String rltString){
// { "access_token":"SlAV32hkKG", "expires_in":3600, "refresh_token":"8xLOxBtZp8" }
if(rltString != null){
if(rltString.indexOf("{") >= 0){
try {
JSONObject json = new JSONObject(rltString);
setToken(json.optString("access_token"));
setExpiresIn(json.optInt("expires_in"));
setRefreshToken(json.optString("refresh_token"));
} catch (JSONException e) {
//不处理
}
}
}
}
public Oauth2AccessToken(String token , String secret){
super(token, secret);
}
} | [
"vdiskmobile@sina.com"
] | vdiskmobile@sina.com |
3ca4b6d62541111263422efaa5ea8ce846043a0a | f7105d75cba27b7192a01b7ac3325f9dc816ce9a | /wechat-sdk/src/main/java/com/app/wechat/request/WxCustomUpdateRequest.java | 5d56596d4916eba3e629825dcd7fb37634b283eb | [
"Apache-2.0"
] | permissive | EdenWat/wechat-parent | 79e314c253f16157832d77265cc991c3b18c076e | 67b749a671f37dd3b4086b49fb842a0f5148be39 | refs/heads/master | 2022-07-07T10:58:29.884850 | 2018-03-14T08:34:13 | 2018-03-14T08:34:13 | 125,138,885 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,234 | java | package com.app.wechat.request;
import com.app.wechat.domain.WxCustomModel;
import com.app.wechat.internal.code.HttpMethod;
import com.app.wechat.internal.code.WxUrl;
import com.app.wechat.response.WxCustomUpdateResponse;
/**
* <p>功 能:客服帐号管理-修改客服帐号API的请求信息</p>
* <p>描 述:开发者可以通过本接口为公众号添加客服账号,每个公众号最多添加10个客服账号</p>
* <p>版 权:Copyright (c) 2017</p>
* <p>创建时间:2017年7月6日 下午6:53:48</p>
*
* @author 王建
* @version 1.0
*/
public class WxCustomUpdateRequest extends AbstractWxRequest<WxCustomUpdateResponse> {
private static final long serialVersionUID = 1L;
private WxCustomModel object;
public WxCustomUpdateRequest(WxCustomModel object) {
this.object = object;
}
public WxCustomModel getObject() {
return object;
}
public Class<WxCustomUpdateResponse> getResponseClass() {
return WxCustomUpdateResponse.class;
}
public String getUrl(String accessToken) {
return String.format(WxUrl.API_CUSTOMSERVICE_KFACCOUNT_UPDATE, accessToken);
}
public HttpMethod getMethod() {
return HttpMethod.POST;
}
} | [
"wangj@13322.com"
] | wangj@13322.com |
98993922220a71774896988bf2e700d78a3b3f34 | baf515851922184ab0909989f4a3b401598c495d | /Grid project Day 6/grid project day7/SpringDataJPA2PostgreSQL/spring-mongodb/mongodbapp/springboot-first-app/RestwithJPACreateProfessor/src/main/java/io/javabrains/RestwithJpaCreateProfessorApplication.java | 028690ba6388ad318b8c1cfbeef47f969a706098 | [] | no_license | gic-nikhil/gic-training1 | b9479b563e65c9b5fea916f89bf46e204fc327f5 | c85e1e181dfe1cf5813617eb09d4d949a963d518 | refs/heads/main | 2023-08-18T05:04:25.599286 | 2021-09-20T12:07:26 | 2021-09-20T12:07:26 | 403,868,087 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 346 | java | package io.javabrains;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class RestwithJpaCreateProfessorApplication {
public static void main(String[] args) {
SpringApplication.run(RestwithJpaCreateProfessorApplication.class, args);
}
}
| [
"nikhil.kumar@gridinfocom.com"
] | nikhil.kumar@gridinfocom.com |
eb2459d749c64e6ab7493802ddf8d622c7f83782 | e94283089810516f048bd58590036c88588112cb | /src/S2321MaximumScoreSplicedArray.java | 3bdee827612f8a929e9694b80e40da2e3c868bdd | [] | no_license | camelcc/leetcode | e0839e6267ebda5eef57da065d4adaefecb4b557 | d982b9e71bc475a599df45d66cf2b78cf017594d | refs/heads/master | 2022-07-19T06:24:49.148849 | 2022-07-10T07:00:34 | 2022-07-10T07:00:34 | 135,386,923 | 5 | 1 | null | null | null | null | UTF-8 | Java | false | false | 797 | java | public class S2321MaximumScoreSplicedArray {
public int maximumsSplicedArray(int[] nums1, int[] nums2) {
int N = nums1.length;
int[] sum1 = new int[nums1.length+1];
int[] sum2 = new int[nums2.length+1];
for (int i = 0; i < N; i++) {
sum1[i+1] = sum1[i] + nums1[i];
sum2[i+1] = sum2[i] + nums2[i];
}
int res = Math.max(sum1[N], sum2[N]);
int max1 = 0, max2 = 0;
for (int i = 0; i < nums1.length; i++) {
int s1 = sum1[N]-sum1[i+1];
int s2 = sum2[N]-sum2[i+1];
max1 = Math.max(max1+nums2[i], sum1[i]+nums2[i]);
max2 = Math.max(max2+nums1[i], sum2[i]+nums1[i]);
res = Math.max(res, Math.max(max1+s1, max2+s2));
}
return res;
}
}
| [
"camel.young@gmail.com"
] | camel.young@gmail.com |
e8fac58036b6b3c5c22c7ae2011709032e6e6de7 | 2714d16592250bb7e1db4f238290eccfd9579bc3 | /app/biz/imiqian/src/main/java/com/jinhui/scheduler/biz/imiqian/footer/AmqAccountConfirmFileFooterCallback.java | 3dcd2b30daf41c0812bfd006d099bb51402b2e96 | [] | no_license | loroxxx/scheduler-1 | d47a55527f8bbc9a37b4f780944ffaaf2d6a7339 | f9d1d7e4d2af7acf3bcfc030035814ef643d4b54 | refs/heads/master | 2020-04-13T05:40:02.522097 | 2018-12-24T13:22:26 | 2018-12-24T13:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 584 | java | package com.jinhui.scheduler.biz.imiqian.footer;
import com.jinhui.scheduler.biz.imiqian.common.AmqAccountFileConstants;
import org.springframework.batch.item.file.FlatFileFooterCallback;
import java.io.IOException;
import java.io.Writer;
/**
* Created by wsc on 2017/05/21
*/
public class AmqAccountConfirmFileFooterCallback implements FlatFileFooterCallback{
@Override
public void writeFooter(Writer writer) throws IOException {
String end = AmqAccountFileConstants.FILE_ENDFLAG + System.lineSeparator();//文件结束标志
writer.write(end);
}
}
| [
"shenlan_shun@126.com"
] | shenlan_shun@126.com |
12133bb1b9d92b85a0500f01e5c77d4427977935 | 468bc27e9b4dc6ea541b03601a34e2b942b9bcbf | /toLearn/TopologicalSort.java | 42650316e0d428c3f2007c1c5bfd1438e53d0feb | [] | no_license | Sid-Alpha/competitive-code | 89bea185df3debbbd9f9dd6547b53fcc42e459be | dc92e80cbe8d987c5dfd2e70d6eb72557cda05ac | refs/heads/master | 2023-01-18T21:03:03.772894 | 2020-11-30T11:11:37 | 2020-11-30T11:11:37 | 317,197,678 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 51 | java | package toLearn;
public class TopologicalSort {
} | [
"siddharth.koppikar@gmail.com"
] | siddharth.koppikar@gmail.com |
9dec71c69e8d40f71edc0c59d22f7a162b2267b9 | ae3900a3f86cdcaa9abf97d2c906503bd938b72b | /src/main/java/com/bng/core/daoImpl/OBDNumberDaoImpl.java | aec2ef0f56354e9daaeeda08d11b4e65d980e6b2 | [] | no_license | pankajsinghal/CoreEngine | b9f3206f4e876960d238bc586a1b24a2e01a7937 | e7953f9851abb12f43616727119b6366d0bd81b9 | refs/heads/master | 2021-01-10T05:24:35.544883 | 2015-11-14T11:41:41 | 2015-11-14T11:41:41 | 46,171,809 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 8,323 | java | package com.bng.core.daoImpl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.stereotype.Repository;
import com.bng.core.dao.OBDNumberDao;
import com.bng.core.exception.coreException;
import com.bng.core.utils.ConnectionPool;
import com.bng.core.utils.LogValues;
import com.bng.core.utils.Logger;
@Repository("OBDNumberDao")
public class OBDNumberDaoImpl implements OBDNumberDao {
SessionFactoryList sessionFactoryList;
private ConnectionPool connectionPool;
public void setConnectionPool(ConnectionPool connectionPool) {
this.connectionPool = connectionPool;
}
public boolean insertnumber(String aparty, String bparty, Date endtime, Date calltime, String file,String tablename)
{
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Connection connection = null;
String status= "scheduled";
PreparedStatement ps = null;
boolean flag = false;
Logger.sysLog(LogValues.info, this.getClass().getName(),"Inside insertnumber : with aparty :"+aparty+" , bparty:"+bparty);
try{
connection = this.connectionPool.getConnection();
file=file.replace("\\", "\\\\");
String SQL = "INSERT INTO "+tablename+" (cli,msisdn,endtime,calltime,status,message) values (\""+aparty+"\",\""+bparty+"\",\""+sdf.format(endtime)+"\",\""+sdf.format(calltime)+"\",\""+status+"\",\""+file+"\")";
ps = connection.prepareStatement(SQL);
Logger.sysLog(LogValues.info, this.getClass().getName(),"tablename: "+tablename+ " query: "+SQL);
int rows = ps.executeUpdate();
Logger.sysLog(LogValues.info, this.getClass().getName(),"rows affected ="+rows);
flag = true;
}
catch(Exception e)
{
Logger.sysLog(LogValues.error, this.getClass().getName(),coreException.GetStack(e));
}
finally
{
if(connection != null){
this.connectionPool.disConnect(connection);
connection = null;
}
}
return flag;
}
public ResultSet getfiles(String aparty, String bparty, Date date , String tablename)
{
Connection connection = null;
PreparedStatement ps = null;
ResultSet resultSet = null;
String status= "to_core_engine";
//String status1 = "success";
Logger.sysLog(LogValues.info, this.getClass().getName(),"Inside getfiles : with bparty:"+bparty + " for table :"+tablename);
try {
connection = this.connectionPool.getConnection();
String SQL = "Select * from "+tablename+" where msisdn =\""+bparty+"\" and cli =\""+aparty+"\"";
ps = connection.prepareStatement(SQL);
Logger.sysLog(LogValues.info, this.getClass().getName(),"tablename: "+tablename+ " query: "+SQL);
resultSet = ps.executeQuery();
//int rows = ps.executeUpdate();
// Logger.sysLog(LogValues.info, this.getClass().getName(),"rows affected ="+rows);
//String SQL1 = "Update "+tablename+" set status =\""+status1+"\" where msisdn =\""+bparty+"\" and cli =\""+aparty+"\" and status = \""+status+"\"";
//ps = connection.prepareStatement(SQL1);
//rows = ps.executeUpdate();
// Logger.sysLog(LogValues.info, this.getClass().getName(),"rows affected ="+rows);
Logger.sysLog(LogValues.info, this.getClass().getName(),"resultset ="+resultSet);
}
catch(Exception e)
{
Logger.sysLog(LogValues.error, this.getClass().getName(),coreException.GetStack(e));
}
finally
{
if(connection != null){
this.connectionPool.disConnect(connection);
connection = null;
}
}
return resultSet;
}
public ResultSet getrecordlist(String bparty, String tablename)
{
Connection connection = null;
PreparedStatement ps = null;
ResultSet resultSet = null;
String status= "scheduled";
Logger.sysLog(LogValues.info, this.getClass().getName(),"Inside getrecordlist : with bparty:"+bparty);
try {
connection = this.connectionPool.getConnection();
String SQL = "Select * from "+tablename+" where msisdn =\""+bparty+"\" and status = \""+status+"\" order by calltime";
ps = connection.prepareStatement(SQL);
Logger.sysLog(LogValues.info, this.getClass().getName(),"tablename: "+tablename+ " query: "+SQL);
resultSet = ps.executeQuery();
Logger.sysLog(LogValues.info, this.getClass().getName(),"resultset ="+resultSet);
}
catch(Exception e)
{
Logger.sysLog(LogValues.error, this.getClass().getName(),coreException.GetStack(e));
}
finally
{
if(connection != null){
this.connectionPool.disConnect(connection);
connection = null;
}
}
return resultSet;
}
@Override
public boolean reschedule(String aparty, String bparty, Date calltime,String tablename)
{
Connection connection = null;
PreparedStatement ps = null;
//ResultSet resultSet = null;
String status= "scheduled";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
boolean flag = false;
//String status1="to_core_engine";
Logger.sysLog(LogValues.info, this.getClass().getName(),"Inside reschedule : with aparty :"+aparty+" , bparty:"+bparty);
try {
connection = this.connectionPool.getConnection();
String SQL = "update "+tablename+" set status =\""+status+"\" ,calltime = \""+sdf.format(calltime)+"\" where msisdn =\""+bparty+"\" and cli =\""+aparty+"\"";
ps = connection.prepareStatement(SQL);
Logger.sysLog(LogValues.info, this.getClass().getName(),"tablename: "+tablename+ " query: "+SQL);
int rows = ps.executeUpdate();
Logger.sysLog(LogValues.info, this.getClass().getName(),"rows affected ="+rows);
flag = true;
}
catch(Exception e)
{
Logger.sysLog(LogValues.error, this.getClass().getName(),coreException.GetStack(e));
}
finally
{
if(connection != null){
this.connectionPool.disConnect(connection);
connection = null;
}
}
return flag;
}
@Override
public boolean deleterecord(String filename,String tablename) {
Connection connection = null;
PreparedStatement ps = null;
ResultSet resultSet = null;
String status= "scheduled";
boolean flag = false;
Logger.sysLog(LogValues.info, this.getClass().getName(),"Inside deleterecord : with filename:"+filename);
try {
connection = this.connectionPool.getConnection();
filename=filename.replace("\\", "\\\\");
String SQL ="delete from "+tablename+" where message =\""+filename+"\"";
ps = connection.prepareStatement(SQL);
Logger.sysLog(LogValues.info, this.getClass().getName(),"tablename: "+tablename+ " query: "+SQL);
int rows = ps.executeUpdate();
Logger.sysLog(LogValues.info, this.getClass().getName(),"rows affected ="+rows);
flag = true;
}
catch(Exception e)
{
Logger.sysLog(LogValues.error, this.getClass().getName(),coreException.GetStack(e));
}
finally
{
if(connection != null){
this.connectionPool.disConnect(connection);
connection = null;
}
}
return flag;
}
@Override
public ResultSet getAandBpartylist(String aparty, String bparty,
String tablename) {
Connection connection = null;
PreparedStatement ps = null;
ResultSet resultSet = null;
String status= "scheduled";
Logger.sysLog(LogValues.info, this.getClass().getName(),"Inside getAandBpartylist : with bparty:"+bparty);
try {
connection = this.connectionPool.getConnection();
String SQL = "Select * from "+tablename+" where msisdn =\""+bparty+"\" and cli = \""+aparty+"\" order by calltime";
ps = connection.prepareStatement(SQL);
Logger.sysLog(LogValues.info, this.getClass().getName(),"tablename: "+tablename+ " query: "+SQL);
resultSet = ps.executeQuery();
Logger.sysLog(LogValues.info, this.getClass().getName(),"resultset ="+resultSet);
}
catch(Exception e)
{
Logger.sysLog(LogValues.error, this.getClass().getName(),coreException.GetStack(e));
}
finally
{
if(connection != null){
this.connectionPool.disConnect(connection);
connection = null;
}
}
return resultSet;
}
}
| [
"pankajs@hike.in"
] | pankajs@hike.in |
ed902f9f88793390b358518d49b2024cd8b46746 | 09577db87dad7507020fb8abadf6a0f031283955 | /mall-coupon/src/main/java/com/firenay/mall/coupon/MallCouponApplication.java | 6688eee30d324dbbc4911a9cc389918985d48366 | [] | no_license | WhyCube/GuliMarket | 3bc39f48816c3ff9dda84cc5f9ab6cb66a8caa60 | e243dab2124e96d6a0b0dd9a2559d678cec41a4b | refs/heads/main | 2023-02-08T03:59:10.517409 | 2020-12-24T09:35:52 | 2020-12-24T09:35:52 | 318,040,595 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 835 | java | package com.firenay.mall.coupon;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* 任何配置文件都可以放在配置中心
* bootstrap.properties 来指定加载那些配置文件即可
*/
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan("com.firenay.mall.coupon.dao")
public class MallCouponApplication {
// http://localhost:7000/coupon/coupon/test
// http://localhost:7000/coupon/coupon/list
// http://localhost:7000/coupon/coupon/member/list
// http://localhost:8000/member/member/coupons
public static void main(String[] args) {
SpringApplication.run(MallCouponApplication.class, args);
}
}
| [
"214770624@qq.com"
] | 214770624@qq.com |
540d891d860ba69f762039457a0abe7b58fb88b5 | 2d8d7951958cad4920ab33b262efd7df838626f4 | /src/main/java/laajaosk/wepa/service/LoginService.java | 3c6b1d63e39a5d82caed3c3ade42073a5cf465c2 | [] | no_license | Ouzii/iltapulu | cd10fbbe2bdc39ccae6a23b16dcfa90d0029f89b | 41ecb21dd52e023156dcd6f2b9e2dcde106b50e2 | refs/heads/master | 2021-08-27T22:06:48.232189 | 2017-12-10T13:20:23 | 2017-12-10T13:20:23 | 112,514,897 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,116 | java | package laajaosk.wepa.service;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpSession;
import laajaosk.wepa.domain.Writer;
import laajaosk.wepa.repository.WriterRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
/**
* Palvelu sisäänkirjautumisen logiikalle.
* @author oce
*/
@Service
public class LoginService {
@Autowired
private NewsService newsService;
@Autowired
private WriterRepository writerRepository;
/**
* Lisää headerissa ja footerissa tarvittavat tiedot.
* @param model
* @return
*/
public Model addFooterAndHeaderData(Model model) {
model = newsService.addFooterAndHeaderData(model);
return model;
}
/**
* Uloskirjautuminen. Asettaa sessiolle "user"-arvoksi null.
* @param session
* @param redirectAttribute
* @return
*/
public RedirectAttributes logout(HttpSession session, RedirectAttributes redirectAttribute) {
List<String> messages = new ArrayList<>();
session.setAttribute("user", null);
messages.add("Kirjauduttu ulos");
redirectAttribute.addFlashAttribute("messages", messages);
return redirectAttribute;
}
/**
* Sisäänkirjautuminen. Jos käyttäjätunnus ja salasana täsmäävät tietokannasta löytyviin, asettaa session
* "user"-arvoksi käyttäjän.
* @param session
* @param username
* @param password
* @param model
* @return
*/
public Boolean login(HttpSession session, String username, String password, Model model) {
Writer user = writerRepository.findByName(username);
if (user == null) {
return false;
}
if (user.getPassword().equals(password) && user.getName().equals(username)) {
session.setAttribute("user", user);
return true;
} else {
return false;
}
}
}
| [
"oskari.laaja@gmail.com"
] | oskari.laaja@gmail.com |
e854903441ea23b55db117d999d100b03bd89837 | 5b82e2f7c720c49dff236970aacd610e7c41a077 | /QueryReformulation-master 2/data/processed/BasicFactoryImpl.java | cd47e4a1e229f022b5b70a5e803159739f6fd434 | [] | no_license | shy942/EGITrepoOnlineVersion | 4b157da0f76dc5bbf179437242d2224d782dd267 | f88fb20497dcc30ff1add5fe359cbca772142b09 | refs/heads/master | 2021-01-20T16:04:23.509863 | 2016-07-21T20:43:22 | 2016-07-21T20:43:22 | 63,737,385 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,271 | java | /***/
package org.eclipse.e4.ui.model.application.ui.basic.impl;
import org.eclipse.e4.ui.model.application.ui.basic.*;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc -->
* An implementation of the model <b>Factory</b>.
* <!-- end-user-doc -->
* @generated
*/
public class BasicFactoryImpl extends EFactoryImpl implements MBasicFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static final BasicFactoryImpl eINSTANCE = init();
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BasicFactoryImpl init() {
try {
BasicFactoryImpl theBasicFactory = (BasicFactoryImpl) EPackage.Registry.INSTANCE.getEFactory(BasicPackageImpl.eNS_URI);
if (theBasicFactory != null) {
return theBasicFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new BasicFactoryImpl();
}
/**
* Creates an instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BasicFactoryImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EObject create(EClass eClass) {
switch(eClass.getClassifierID()) {
case BasicPackageImpl.PART:
return (EObject) createPart();
case BasicPackageImpl.COMPOSITE_PART:
return (EObject) createCompositePart();
case BasicPackageImpl.INPUT_PART:
return (EObject) createInputPart();
case BasicPackageImpl.PART_STACK:
return (EObject) createPartStack();
case BasicPackageImpl.PART_SASH_CONTAINER:
return (EObject) createPartSashContainer();
case BasicPackageImpl.WINDOW:
return (EObject) createWindow();
case BasicPackageImpl.TRIMMED_WINDOW:
return (EObject) createTrimmedWindow();
case BasicPackageImpl.TRIM_BAR:
return (EObject) createTrimBar();
case BasicPackageImpl.DIALOG:
return (EObject) createDialog();
case BasicPackageImpl.WIZARD_DIALOG:
return (EObject) createWizardDialog();
default:
//$NON-NLS-1$ //$NON-NLS-2$
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MPart createPart() {
PartImpl part = new PartImpl();
return part;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MCompositePart createCompositePart() {
CompositePartImpl compositePart = new CompositePartImpl();
return compositePart;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MInputPart createInputPart() {
InputPartImpl inputPart = new InputPartImpl();
return inputPart;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MPartStack createPartStack() {
PartStackImpl partStack = new PartStackImpl();
return partStack;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MPartSashContainer createPartSashContainer() {
PartSashContainerImpl partSashContainer = new PartSashContainerImpl();
return partSashContainer;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MWindow createWindow() {
WindowImpl window = new WindowImpl();
return window;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MTrimmedWindow createTrimmedWindow() {
TrimmedWindowImpl trimmedWindow = new TrimmedWindowImpl();
return trimmedWindow;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MTrimBar createTrimBar() {
TrimBarImpl trimBar = new TrimBarImpl();
return trimBar;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MDialog createDialog() {
DialogImpl dialog = new DialogImpl();
return dialog;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public MWizardDialog createWizardDialog() {
WizardDialogImpl wizardDialog = new WizardDialogImpl();
return wizardDialog;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public BasicPackageImpl getBasicPackage() {
return (BasicPackageImpl) getEPackage();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @deprecated
* @generated
*/
@Deprecated
public static BasicPackageImpl getPackage() {
return BasicPackageImpl.eINSTANCE;
}
}
//BasicFactoryImpl
| [
"muktacseku@gmail.com"
] | muktacseku@gmail.com |
84c28f23218021ddb7b63aab3ed559c906132926 | c6f145685b7d5de6b4d9b9460edc9e52d54b9f81 | /test_cases/CWE259/CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword/CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53c.java | aedb687a13ff474ccd09fa0bfd5b3d56a73ee649 | [] | no_license | Johndoetheone/new-test-repair | 531ca91dab608abd52eb474c740c0a211ba8eb9f | 7fa0e221093a60c340049e80ce008e233482269c | refs/heads/master | 2022-04-26T03:44:51.807603 | 2020-04-25T01:10:47 | 2020-04-25T01:10:47 | 258,659,310 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,358 | java | /*
* TEMPLATE GENERATED TESTCASE FILE
* @description
* CWE: 259 Hard Coded Password
* BadSource: hardcodedPassword Set data to a hardcoded string
* Flow Variant: 53 Data flow: data passed as an argument from one method through two others to a fourth; all four functions are in different classes in the same package
* */
package test_cases.CWE259.CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword;
import testcasesupport.*;
import java.util.Arrays;
import java.util.Properties;
import java.util.logging.Level;
import java.io.*;
import java.sql.*;
import com.mysql.cj.jdbc.MysqlDataSource;
public class CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53c
{
public void badSink(String data) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).badSink(data);
}
public void goodG2BSink(String data) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).goodG2BSink(data);
}
public void goodCharSink(char[] data) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).goodCharSink(data);
}
public void goodExpectedSink(Properties properties) throws Throwable
{
(new CWE259_Hard_Coded_Password_mysqlDataSourceSetPassword_53d()).goodExpectedSink(properties);
}
} | [
"root@Delta.localdomain"
] | root@Delta.localdomain |
376ced426e643006f300d99a2ba8cb90c3b14ff5 | de7468c3d5b0da6ca9397fec31910d2268656e59 | /app/src/main/java/adapter/Regular_adapter.java | bcce27374a42159ccad510be0acfdfc93c3d6576 | [] | no_license | Nirmals502/testing | fcfad9e63989618275676d6c6f34f6093a635587 | 5feef9c76a560210d43073bfa8082d522b3f1fd6 | refs/heads/master | 2021-01-01T18:18:59.606948 | 2017-07-25T12:40:55 | 2017-07-25T12:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 14,380 | java | package adapter;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.app.Fragment;
import android.app.DialogFragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.icu.util.Calendar;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.CalendarView;
import android.widget.DatePicker;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import in.co.mealman.mealman.R;
import in.co.mealman.mealman.Service_handler.Constant;
import in.co.mealman.mealman.Service_handler.ServiceHandler;
import in.co.mealman.mealman.Subscription_package;
import in.co.mealman.mealman.Wsays;
import in.co.mealman.mealman.subscription_pack;
/**
* Created by Nirmal on 6/24/2016.
*/
public class Regular_adapter extends BaseAdapter {
Dialog subscribe_dialog;
private ProgressDialog pDialog;
String status, error_code;
String amountGlobal, String_static_amount;
String Tittle;
String typee;
String discount;
TextView txt_amount;
int integer_amount = 0;
TextView Txt_vw_amount;
TextView date;
Dialog dialog = null;
int int_amount = 1;
int int_amountd = 1;
String userID, SUBSCRIPTION_PAKAGEID;
String quantiity = "1";
ArrayList<HashMap<String, String>> subscriptionarray = new ArrayList<HashMap<String, String>>();
LayoutInflater inflater;
Context context;
public Regular_adapter(Context context, ArrayList<HashMap<String, String>> Array_subscription) {
this.subscriptionarray = Array_subscription;
this.context = context;
inflater = LayoutInflater.from(this.context);
}
@Override
public int getCount() {
return subscriptionarray.size();
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
MyViewHolder mViewHolder;
if (convertView == null) {
convertView = inflater.inflate(R.layout.regular_row, parent, false);
convertView.findViewById(R.id.subscribed).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
FragmentManager fragmentManager = ((Activity)context).getFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
subscription_pack subpack = new subscription_pack();
fragmentTransaction.replace(R.id.Mainslider, subpack, "c");
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();
((Activity) context).finish();
//typee = subscriptionarray.get(position).get("type");
//discount = subscriptionarray.get(position).get("description");
//amountGlobal = subscriptionarray.get(position).get("amount");
//String_static_amount = subscriptionarray.get(position).get("amount");
// Tittle = subscriptionarray.get(position).get("str_tittle");
// SUBSCRIPTION_PAKAGEID = subscriptionarray.get(position).get("subscriptionPackageID");
// Dialog(amountGlobal, Tittle);
}
});
mViewHolder = new MyViewHolder(convertView);
convertView.setTag(mViewHolder);
} else {
mViewHolder = (MyViewHolder) convertView.getTag();
}
try {
//if(Str_profile_image!=null) {
//img_loader.DisplayImage(fl,vh.Img_profilepic);
} catch (IllegalArgumentException e) {
e.printStackTrace();
}
mViewHolder.Tittle.setText((subscriptionarray.get(position).get("str_tittle")));
mViewHolder.Amount.setText((subscriptionarray.get(position).get("amount")));
mViewHolder.Description.setText((subscriptionarray.get(position).get("description")));
return convertView;
}
/*public void Dialog(final String amount, String tittle) {
subscribe_dialog = new Dialog(context, R.style.DialoueBox);
subscribe_dialog.setContentView(R.layout.subscribe_addto_cart);
subscribe_dialog.show();
subscribe_dialog.setCanceledOnTouchOutside(false);
ImageView imgcross = (ImageView) subscribe_dialog.findViewById(R.id.imgcross);
imgcross.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
subscribe_dialog.cancel();
int_amount = 1;
int_amountd = 1;
}
});
TextView Txt_tittle = (TextView) subscribe_dialog.findViewById(R.id.txtvw_tittle);
final TextView Txt_vw_amount = (TextView) subscribe_dialog.findViewById(R.id.textView4);
ImageView increment = (ImageView) subscribe_dialog.findViewById(R.id.nbinc1);
ImageView decrement = (ImageView) subscribe_dialog.findViewById(R.id.nbdec1);
final TextView txt_amount = (TextView) subscribe_dialog.findViewById(R.id.nbincdec);
ImageView incre = (ImageView) subscribe_dialog.findViewById(R.id.nbinc2);
ImageView decre = (ImageView) subscribe_dialog.findViewById(R.id.nbdec2);
final TextView txt_amount1 = (TextView) subscribe_dialog.findViewById(R.id.nbincdec1);
date = (TextView) subscribe_dialog.findViewById(R.id.date);
ImageView calender = (ImageView) subscribe_dialog.findViewById(R.id.calender);
Button subscribe = (Button) subscribe_dialog.findViewById(R.id.btn_subscribeconfirm);
Txt_tittle.setText(tittle);
increment.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (int_amount != 9) {
int_amount++;
int integer_amount = 0;
Double value = 0.0;
try {
integer_amount = Integer.parseInt(String_static_amount);
} catch (java.lang.NumberFormatException e) {
e.printStackTrace();
value = Double.parseDouble(String_static_amount);
integer_amount = value.intValue();
}
integer_amount = integer_amount * int_amount * int_amountd;
String value_after_multiply = String.valueOf(integer_amount);
String int_to_string = String.valueOf(int_amount);
txt_amount.setText(int_to_string);
Txt_vw_amount.setText("Rs." + value_after_multiply);
amountGlobal = value_after_multiply;
quantiity = int_to_string;
}
}
});
incre.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (int_amountd != 60) {
int_amountd++;
int integer_amount = 0;
int integer_discount = 0;
int integer_total = 0;
Double value = 0.0;
try {
integer_discount = Integer.parseInt(discount);
integer_amount = Integer.parseInt(String_static_amount);
} catch (java.lang.NumberFormatException e) {
e.printStackTrace();
value = Double.parseDouble(String_static_amount);
integer_amount = value.intValue();
integer_discount = value.intValue();
integer_total = value.intValue();
}
integer_amount = integer_amount * int_amount * int_amountd;
integer_discount = (integer_amount * integer_discount) / 100;
integer_total = integer_amount - integer_discount;
String value_after_multiply = String.valueOf(integer_total);
String int_to_string = String.valueOf(int_amountd);
txt_amount1.setText(int_to_string);
Txt_vw_amount.setText("Rs." + value_after_multiply);
amountGlobal = value_after_multiply;
quantiity = int_to_string;
}
}
});
decrement.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (int_amount != 1) {
int_amount--;
int integer_amount = 0;
Double value = 0.0;
try {
integer_amount = Integer.parseInt(String_static_amount);
} catch (java.lang.NumberFormatException e) {
e.printStackTrace();
value = Double.parseDouble(String_static_amount);
integer_amount = value.intValue();
}
integer_amount = integer_amount * int_amount * int_amountd;
String value_after_multiply = String.valueOf(integer_amount);
String int_to_string = String.valueOf(int_amount);
txt_amount.setText(int_to_string);
Txt_vw_amount.setText("Rs." + value_after_multiply);
amountGlobal = value_after_multiply;
quantiity = int_to_string;
}
}
});
decre.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (int_amountd != 1) {
int_amountd--;
int integer_amount = 0;
int integer_discount = 0;
int integer_total = 0;
Double value = 0.0;
try {
integer_discount = Integer.parseInt(discount);
integer_amount = Integer.parseInt(String_static_amount);
} catch (java.lang.NumberFormatException e) {
e.printStackTrace();
value = Double.parseDouble(String_static_amount);
integer_amount = value.intValue();
integer_discount = value.intValue();
integer_total = value.intValue();
}
integer_amount = integer_amount * int_amount * int_amountd;
integer_discount = (integer_amount * integer_discount) / 100;
integer_total = integer_amount - integer_discount;
String value_after_multiply = String.valueOf(integer_total);
String int_to_string = String.valueOf(int_amountd);
txt_amount1.setText(int_to_string);
Txt_vw_amount.setText("Rs." + value_after_multiply);
amountGlobal = value_after_multiply;
quantiity = int_to_string;
}
}
});
calender.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
DialogFragment newFragment = new SelectDateFragment();
newFragment.show(((Activity) context).getFragmentManager(), "DatePicker");
}
});
Txt_vw_amount.setText("Rs." + amount);
}
*/
private class MyViewHolder {
TextView Tittle, Amount, Description;
ImageView Img_profilepic;
public MyViewHolder(View item) {
Tittle = (TextView) item.findViewById(R.id.title);
Amount = (TextView) item.findViewById(R.id.price);
Description = (TextView) item.findViewById(R.id.description);
// tvDesc = (TextView) item.findViewById(R.id.tvDesc);
}
}
/* public class SelectDateFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener {
//TextView mngdate;
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
final Calendar calendar = Calendar.getInstance();
// calendar.setTimeInMillis(System.currentTimeMillis() - 1000);
int yy = calendar.get(Calendar.YEAR);
int mm = calendar.get(Calendar.MONTH);
int dd = calendar.get(Calendar.DAY_OF_MONTH);
DatePickerDialog dpd = new DatePickerDialog(getContext(), this, yy, mm, dd);
calendar.add(calendar.DATE, 7);
dpd.getDatePicker().setMaxDate(calendar.getTimeInMillis());
calendar.add(calendar.DATE, -7);
dpd.getDatePicker().setMinDate(calendar.getTimeInMillis());
//return new DatePickerDialog(getActivity(), this, yy, mm, dd);
return dpd;
}
public void onDateSet(DatePicker view, int yy, int mm, int dd) {
showDate(yy, mm + 1, dd);
}
private void showDate(int yy, int mm, int dd) {
//((TextView) getActivity().findViewById(R.id.mngdate)).setText(dd+ "/" + mm + "/" + yy);
//((TextView) getActivity().findViewById(R.id.date)).setText(dd+ "/" + mm + "/" + yy);
String Str_year = String.valueOf(yy);
String Str_month = String.valueOf(mm);
String Str_day = String.valueOf(dd);
date.setText(Str_day + "/" + Str_month + "/" + Str_year);
}
}*/
} | [
"nirmals502@gmail.com"
] | nirmals502@gmail.com |
b2f578b6b773d97bfb079b45cd97154b7ed96429 | 25d8e20f75e342661d626a40053aedbcd3ae089f | /test/src/main/java/com/example/test/algorithm/leeCodeTwo/_栈/_二叉树的最大深度.java | 07e0868b1b930f9b1f352322f4c034ac924e50e9 | [] | no_license | xiang-leiel/testDemo | 60e577075e35d953b78753a13a0a3d5022b03a07 | 21274c3c00c9ebc2aab9694a3104bcd577e94567 | refs/heads/master | 2022-08-09T19:36:22.963209 | 2021-05-08T00:54:36 | 2021-05-08T00:54:36 | 230,921,168 | 0 | 1 | null | 2022-07-01T21:25:48 | 2019-12-30T13:30:14 | Java | UTF-8 | Java | false | false | 535 | java | package com.example.test.algorithm.leeCodeTwo._栈;
/**
* @Description
* @author leiel
* @Date 2021/4/28 8:10 AM
*/
public class _二叉树的最大深度 {
public int maxDepth(TreeNode root) {
if (root == null) {
return 0;
}
int left = maxDepth(root.left) + 1;
int right = maxDepth(root.right) + 1;
return Math.max(left, right);
}
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
}
| [
"xianglei_family@sina.com"
] | xianglei_family@sina.com |
03d280d1b8c803c57a17548ea9e0d32d523cf4d0 | 927fd4c5edbb794f39cecb1902be9db167b8a029 | /jibcon/src/main/java/com/sm_arts/jibcon/utils/housemanager/JibconHouseManager.java | d4f78eeecd8c336081692b14af8620dcc47bc460 | [] | no_license | Jibcon/jibcon_android | 0e093467d20cdd21a663ca563420f7010db9ba2b | 666795fe3ca9ff3d0aeb4121a750091f7f94d4a9 | refs/heads/development | 2021-01-19T08:30:45.795333 | 2018-03-22T06:05:58 | 2018-03-22T06:05:58 | 87,639,598 | 9 | 3 | null | 2018-03-22T06:06:00 | 2017-04-08T14:27:08 | Java | UTF-8 | Java | false | false | 1,904 | java | package com.sm_arts.jibcon.utils.housemanager;
import android.content.Context;
import android.content.Intent;
import com.sm_arts.jibcon.data.models.api.dto.HouseInfo;
import com.sm_arts.jibcon.data.repository.helper.HouseNetworkManager;
import com.sm_arts.jibcon.ui.splash.tutorial.IntroActivity;
import com.sm_arts.jibcon.utils.loginmanager.JibconLoginManager;
import java.util.ArrayList;
import java.util.List;
/**
* Created by admin on 2017-11-30.
*/
public class JibconHouseManager {
private static JibconHouseManager obj = null;
private static List<HouseInfo> myHouseList = new ArrayList<>();
private static HouseInfo mCurrentHouse = null;
public static JibconHouseManager getInstance() {
if (obj == null) {
synchronized (JibconHouseManager.class) {
if (obj == null)
obj = new JibconHouseManager();
}
}
return obj;
}
public HouseInfo getmCurrentHouse() {
return mCurrentHouse;
}
public void setmCurrentHouse(HouseInfo mCurrentHouse) {
JibconHouseManager.mCurrentHouse = mCurrentHouse;
JibconLoginManager.getInstance().setCurrentHouseIdOnSucess(mCurrentHouse.house_id);
}
public List<HouseInfo> getMyHouseList() {
return myHouseList;
}
public void setMyHouseList(List<HouseInfo> myHouseList) {
JibconHouseManager.myHouseList = myHouseList;
}
public void addNewHouse(HouseInfo houseInfo) {
JibconHouseManager.myHouseList.add(houseInfo);
}
public void changeCurrentHouse(HouseInfo nextHouse, Context context) {
HouseNetworkManager.getInstance().changeCurrentHouse(nextHouse);
Intent intent = new Intent(context, IntroActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
}
}
| [
"dordong327@gmail.com"
] | dordong327@gmail.com |
e6cf325f3982e98f7a19dd9eb4bdffbdd9739f2d | 25f47e48672738d258c89e3a57c3b45b90110ec5 | /glacier-framework-new-permissions/src/main/java/com/glacier/permission/entity/UserRoleExample.java | 7e964e8876a820f3ad715dd5eefebdd8c952cb43 | [] | no_license | zhangzhenfei/glacier-framework-new-all | 37df33535b1bc70a5a71e3fa72a50f8f7ae7cd45 | faf4627311a147c78a04c65aa88db9eb2d56b2e0 | refs/heads/master | 2016-09-06T06:44:06.144142 | 2013-12-31T14:48:23 | 2013-12-31T14:48:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,903 | java | package com.glacier.permission.entity;
import java.util.ArrayList;
import java.util.List;
public class UserRoleExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
protected int limitStart = -1;
protected int limitEnd = -1;
public UserRoleExample() {
oredCriteria = new ArrayList<Criteria>();
}
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.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
public void setLimitStart(int limitStart) {
this.limitStart=limitStart;
}
public int getLimitStart() {
return limitStart;
}
public void setLimitEnd(int limitEnd) {
this.limitEnd=limitEnd;
}
public int getLimitEnd() {
return limitEnd;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
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 andRoleIdIsNull() {
addCriterion("temp_user_role.role_id is null");
return (Criteria) this;
}
public Criteria andRoleIdIsNotNull() {
addCriterion("temp_user_role.role_id is not null");
return (Criteria) this;
}
public Criteria andRoleIdEqualTo(String value) {
addCriterion("temp_user_role.role_id =", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotEqualTo(String value) {
addCriterion("temp_user_role.role_id <>", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdGreaterThan(String value) {
addCriterion("temp_user_role.role_id >", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdGreaterThanOrEqualTo(String value) {
addCriterion("temp_user_role.role_id >=", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdLessThan(String value) {
addCriterion("temp_user_role.role_id <", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdLessThanOrEqualTo(String value) {
addCriterion("temp_user_role.role_id <=", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdLike(String value) {
addCriterion("temp_user_role.role_id like", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotLike(String value) {
addCriterion("temp_user_role.role_id not like", value, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdIn(List<String> values) {
addCriterion("temp_user_role.role_id in", values, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotIn(List<String> values) {
addCriterion("temp_user_role.role_id not in", values, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdBetween(String value1, String value2) {
addCriterion("temp_user_role.role_id between", value1, value2, "roleId");
return (Criteria) this;
}
public Criteria andRoleIdNotBetween(String value1, String value2) {
addCriterion("temp_user_role.role_id not between", value1, value2, "roleId");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("temp_user_role.user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("temp_user_role.user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(String value) {
addCriterion("temp_user_role.user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(String value) {
addCriterion("temp_user_role.user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(String value) {
addCriterion("temp_user_role.user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
addCriterion("temp_user_role.user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(String value) {
addCriterion("temp_user_role.user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(String value) {
addCriterion("temp_user_role.user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLike(String value) {
addCriterion("temp_user_role.user_id like", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotLike(String value) {
addCriterion("temp_user_role.user_id not like", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<String> values) {
addCriterion("temp_user_role.user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<String> values) {
addCriterion("temp_user_role.user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(String value1, String value2) {
addCriterion("temp_user_role.user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(String value1, String value2) {
addCriterion("temp_user_role.user_id not between", value1, value2, "userId");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
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);
}
}
} | [
"289556866@qq.com"
] | 289556866@qq.com |
f162d3bbbbb37a85f7a1ea4caa349a3af7a3835e | af3a033cce4d6ae12721fcb26a8c8cdd1eab98d6 | /InputDemo/DemoInputSource.java | 309af2ca69f98bce2813fb9e53a10b485ed02f5d | [] | no_license | jiangdada1221/BYOW-GAME | 11851a3d27c0de4c8ab4478b8752fe48d644988d | fa4711ca6b053cc7215d5595d9c24bfc28ea9f6e | refs/heads/master | 2021-07-10T08:29:02.103066 | 2020-11-03T08:46:39 | 2020-11-03T08:46:39 | 212,209,801 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,322 | java | package byow.InputDemo;
/**
* Created by hug.
* Demonstrates how a single interface can be used to provide input
* from they keyboard, from a random sequence, from a string, or whatever else.
*/
public class DemoInputSource {
private static final int KEYBOARD = 0;
private static final int RANDOM = 1;
private static final int STRING = 2;
public static void main(String[] args) {
int inputType = KEYBOARD;
InputSource inputSource;
if (inputType == KEYBOARD) {
inputSource = new KeyboardInputSource();
} else if (inputType == RANDOM) {
inputSource = new RandomInputSource(50L);
} else { // inputType == STRING
inputSource = new StringInputDevice("HELLO MY FRIEND. QUACK QUACK");
}
int totalCharacters = 0;
while (inputSource.possibleNextInput()) {
totalCharacters += 1;
char c = inputSource.getNextKey();
if (c == 'M') {
System.out.println("moo");
}
if (c == 'Q') {
System.out.println("done.");
// break;
System.exit(0);
}
}
System.out.println("Processed " + totalCharacters + " characters.");
}
}
| [
"jiangdada12344321@163.com"
] | jiangdada12344321@163.com |
a08dd666a0b1a6f869d59b0e2b6a8deff7b402cb | 02aaddf03eeb3cf06063172a784b7b834716fa75 | /WheelShare-Client/src/com/example/wheelshare/PostRideActivity.java | fc5f720efab810e52c846cc71d97775f736b14e8 | [] | no_license | TekkenLiang/WheelShare | 08ff4313333bd3e53e041af2bbcaf22ec1211e3c | e2ff9a726ebbdb8578fcb1922caf74fc43bcae7a | refs/heads/master | 2021-01-25T03:19:16.220386 | 2013-10-23T08:24:00 | 2013-10-23T08:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,502 | java | package com.example.wheelshare;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.NavUtils;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
public class PostRideActivity extends FragmentActivity
{
private String fromCity, toCity, date;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_post_ride);
TextView textview_time = (TextView) findViewById(R.id.textview_time_post);
textview_time.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
showTimePicker(v);
}
});
TextView textview_date = (TextView) findViewById(R.id.textview_date_post);
textview_date.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
showDatePicker(v);
}
});
setupActionBar();
}
public void showTimePicker(View view)
{
TimePickerFragment newFragment = new TimePickerFragment();
newFragment.setTargetTextView((TextView) view);
newFragment.show(getSupportFragmentManager(), "timePicker");
}
public void showDatePicker(View view)
{
DatePickerFragment newFragment = new DatePickerFragment();
newFragment.setTargetTextView((TextView) view);
newFragment.show(getSupportFragmentManager(), "datePicker");
}
/**
* Set up the {@link android.app.ActionBar}, if the API is available.
*/
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private void setupActionBar()
{
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
{
getActionBar().setDisplayHomeAsUpEnabled(true);
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu)
{
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.post_ride, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId())
{
case android.R.id.home:
// This ID represents the Home or Up button. In the case of this
// activity, the Up button is shown. Use NavUtils to allow users
// to navigate up one level in the application structure. For
// more details, see the Navigation pattern on Android Design:
//
// http://developer.android.com/design/patterns/navigation.html#up-vs-back
//
NavUtils.navigateUpFromSameTask(this);
return true;
}
return super.onOptionsItemSelected(item);
}
public void post_request(View view)
{
EditText editFromCity = (EditText) findViewById(R.id.edittext_from_post);
EditText editDestCity = (EditText) findViewById(R.id.edittext_dest_post);
EditText editPrice = (EditText) findViewById(R.id.edittext_price_post);
EditText editSeat = (EditText) findViewById(R.id.edittext_seat_post);
String fromCity = editFromCity.getText().toString();
String destCity = editDestCity.getText().toString();
String price = editPrice.getText().toString();
String seats = editSeat.getText().toString();
TextView textMonthDateYear = (TextView) findViewById(R.id.textview_date_post);
TextView textTime = (TextView) findViewById(R.id.textview_time_post);
String[] monthDateYear = textMonthDateYear.getText().toString().split("/");
if (monthDateYear[0].length() == 0)
{
Toast.makeText(getApplicationContext(), getString(R.string.date_missing), Toast.LENGTH_LONG).show();
return;
}
String month = monthDateYear[0];
String date = monthDateYear[1];
String year = monthDateYear[2];
String[] hourMinute = textTime.getText().toString().split(":");
if (hourMinute[0].length() == 0)
{
Toast.makeText(getApplicationContext(), getString(R.string.ride_time_missing), Toast.LENGTH_LONG).show();
return;
}
String hour = hourMinute[0];
String minute = hourMinute[1];
if (fromCity.length() == 0)
{
Toast.makeText(getApplicationContext(), getString(R.string.start_city_missing), Toast.LENGTH_LONG).show();
return;
}
if (destCity.length() == 0)
{
Toast.makeText(getApplicationContext(), getString(R.string.dest_city_missing), Toast.LENGTH_LONG).show();
return;
}
if (price.length() == 0)
{
Toast.makeText(getApplicationContext(), getString(R.string.price_missing), Toast.LENGTH_LONG).show();
return;
}
if (seats.length() == 0)
{
Toast.makeText(getApplicationContext(), getString(R.string.seats_number_missing), Toast.LENGTH_LONG).show();
return;
}
this.fromCity = fromCity.trim().toLowerCase();
this.toCity = destCity.trim().toLowerCase();
this.date = month+"/"+date+"/"+year;
new HTTPConnection("/postride", "owner", "startcity", "destcity", "year", "month", "date", "hour", "minute", "price", "availSeatNum")
{
@Override
protected void onPostExecute(String result)
{
super.onPostExecute(result);
if (result == null)
Toast.makeText(getApplicationContext(), getString(R.string.no_response), Toast.LENGTH_LONG).show();
else if (result.equals("2"))
Toast.makeText(getApplicationContext(), getString(R.string.time_incorrect), Toast.LENGTH_LONG).show();
else if (result.equals("1"))
{
onBackPressed();
} else
showRequests(result);
Toast.makeText(getApplicationContext(), getString(R.string.ride_been_posted), Toast.LENGTH_LONG).show();
}
}.execute(Cache.username, fromCity.trim().toLowerCase(), destCity.trim().toLowerCase(), year, month, date, hour, minute, price, seats);
}
public void reset(View view)
{
((EditText) findViewById(R.id.edittext_from_post)).setText("");
((EditText) findViewById(R.id.edittext_dest_post)).setText("");
((EditText) findViewById(R.id.edittext_price_post)).setText("");
((EditText) findViewById(R.id.edittext_seat_post)).setText("");
((TextView) findViewById(R.id.textview_date_post)).setText("");
((TextView) findViewById(R.id.textview_time_post)).setText("");
}
public void showRequests(String result)
{
Intent newIntent = new Intent(this, InviteActivity.class);
newIntent.putExtra("requestJson", result);
newIntent.putExtra("toCity", toCity);
newIntent.putExtra("fromCity", fromCity);
newIntent.putExtra("date", date);
startActivity(newIntent);
}
}
| [
"tyliang@ucdabis.edu"
] | tyliang@ucdabis.edu |
f85439a9e2c8ed22fcc308cb61ffa1c9e5f2dd0e | bfa8f2dfa6f3f0f65d4543833cd1234f6f831656 | /src/com/bh/java/kind/string/test/transfer_paramers_test.java | 732552fa25723de2d23bbaab483629e3d0be5633 | [] | no_license | wangting998/work | d3ea6d8de8cae1df025c14173010afe703db4cb2 | ba643e79ce067c60682a3995d4eac684d2c47087 | refs/heads/main | 2023-02-21T14:57:30.862033 | 2021-01-27T07:21:20 | 2021-01-27T07:21:20 | 329,268,706 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,522 | java | package com.bh.java.kind.string.test;
import org.junit.Test;
/**
* 2021/1/13
* 方法之间传参数
* 一、值 bigdata 100000000 山东大学 查询、修改 start("山东大学")
* <p>
* //需求:交换两个数的值 num1 = 100; num2 = 90 ==>
* //定义功能:
*/
public class transfer_paramers_test {
@Test
public void test1() {
int number1 = 100;
int numbur2 = 90;
exchange(number1, numbur2);
System.out.println("交换后的值number1:" + number1 + "交换后的值numbur2:" + numbur2);
//100 90
}
public static void exchange(int num1, int num2) {
int temp;
temp = num1;
num1 = num2;
System.out.println("交换后的值num1:" + num1 + "交换后的值num2:" + num2);
//90 90
}
/**
* 两个变量转换,怎样可以不用第三个变量转换
*/
@Test
public void test() {
int number1 = 100;
int numbur2 = 90;
exchange1(number1, numbur2);
System.out.println("交换后的值number1:" + number1 + "交换后的值numbur2:" + numbur2);
//100 90
}
public static void exchange1(int num1, int num2) {
/*num1 = num1^num2;
num2 = num2^num1;
num1 = num1^num2;*/
num1 = num1 + num2;
num2 = num1 - num2;
num1 = num1 - num2;
System.out.println("交换后的值num1:" + num1 + "交换后的值num2:" + num2);
}
/**
* 引用
* 地址值-- int[] array={1,2,3} Student s;
* change(List list) ArrayList arrayList
* <p>
* //需求:把数组中的元素值都加10
*/
@Test
public void test2() {
int[] array = {1, 2, 3};
for (int i = 0; i < array.length; i++) {
System.out.println("增加之前第" + (i + 1) + "元素的值是:" + array[i]);
} //1,2,3
//调用方法,完成功能
add(array);
for (int i = 0; i < array.length; i++) {
System.out.println("调用方法后第" + (i + 1) + "元素的值是:" + array[i]);
} //11,12,13
}
public void add(int[] array) {
//实现代码
//遍历
for (int i = 0; i < array.length; i++) {
array[i] += 10; //short s = 90; s=s +1; s +=1;
}
//输出
for (int i = 0; i < array.length; i++) {
System.out.println("方法体内第" + (i + 1) + "元素的值是:" + array[i]);
} //11,12,13
}
}
| [
"295139902@qq.com"
] | 295139902@qq.com |
bd0d63e0d86d5c28ad7923ef91263a0f9219bed6 | 8a9706d3e8dc91617e1189002f61909135939407 | /job3/src/main/java/com/example/job3/bean/RootBeans.java | 07ab4098733a53dc8274de940357154c8c116829 | [] | no_license | wxdHeart/wxdnb | 5c0780c9779bdc1a24695e54c0e278cd4107215b | 000b8605cc1c8f7c2674d409cff8097317813986 | refs/heads/master | 2020-07-30T12:23:55.514474 | 2019-09-23T00:30:10 | 2019-09-23T00:30:10 | 210,233,356 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 97,368 | java | package com.example.job3.bean;
import java.io.Serializable;
import java.util.List;
public class RootBeans implements Serializable{
/**
* code : 200
* body : {"result":[{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family:微软雅黑, Microsoft YaHei\"><strong>潘文荣<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/ZymzMS67_3ETm.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/msg/course_1558680545145.jpg\" title=\"\" alt=\"\" width=\"100%\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\";font-size: 16px; font-family: 微软雅黑, "Microsoft YaHei";;font-size: 16px; color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei";\">潘文荣,<span style=\"font-family: sans-serif; line-height: normal;\">艾青莲时尚美学院长、青莲姝丽会会长 \u201c世界旅游小姐大赛(西南赛区)形象总顾问。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei";\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;\">Certification IPTA国际职业培训师、NPAP全国高新专业人才认定中心评委A C I国际认证礼仪讲师、<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;\">国家人社部高级形象设计师、<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;\">中国形象设计协会礼仪培训师、<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;\">中国儿童礼仪版权课程高级培训师、国家认证高级茶艺师、<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;\">女性优雅形体教练、魅力演讲训练讲师、成都大学、西南财经大学特聘形象礼仪导师。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei";\"><strong>主研方向<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"color: rgb(51, 51, 51); text-indent: 28px; line-height: 25.6px; font-family: 微软雅黑, 'Microsoft YaHei';\">形象礼仪、色彩风格、形体梳理<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei";\"><strong>主讲课程<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify; font-size: 14px;\"><span style=\"color: #333333; line-height: 21px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;\">《礼赢职场商务魅力》、《商务礼仪情景式培训》、《现代员工关系管理》、《个人品牌建设与管理》、《匠心服务礼仪体系》、《星级酒店服务礼仪》、《医护服务礼仪与医患沟通》、《九型人格与白骨精职业规划》、《形象一百幸福人生训练营》、《茶文化与礼仪修养》<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei";\"><strong>服务客户<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"color: #333333; line-height: 25.2px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;\">中国核动力研究院、国家电网、太平洋寿险、攀钢集团、中铁二院、交通银行、工商银行、农业银行、建设银行、中铁八局、中石油、四川大学、西南财经大学、成都大学等。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1566868656600.jpg","Title":"形象礼仪专家","TeacherType":[],"ID":191,"follow":false,"TeacherName":"潘文荣","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; border-image-source: initial; border-image-slice: initial; border-image-width: initial; border-image-outset: initial; border-image-repeat: initial; box-sizing: border-box;\"><section style=\"width: 100%; display: -webkit-flex; justify-content: center; margin-top: -35px;\" data-width=\"100%\"><section style=\"background-color: rgb(254, 254, 254);\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section class=\"135brush\" data-brushtype=\"text\"><strong><span style=\";font-family:微软雅黑, Microsoft YaHei;line-height: 30px; background-color: #fefefe;\">高皓<\/span><\/strong><\/section><section style=\"background-color: rgb(254, 254, 254);\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width: 100%; display: -webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/Ztzj9Zby_AVrs.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"http://image.135editor.com/files/users/611/6116256/201904/Ztzj9Zby_AVrs.jpg\" style=\"opacity: 0;\" title=\"高皓.jpg\" alt=\"高皓.jpg\" data-op=\"change\" data-ratio=\"1\"/><\/section><\/section><\/section><section style=\"margin-left: 15px;\" class=\"135brush\"><p><span style=\"font-family: 微软雅黑, 'Microsoft YaHei'; color: rgb(51, 51, 51); line-height: 24px; text-indent: 28px;\">高皓,<span style=\"font-family: sans-serif; line-height: normal;\">清华大学五道口金融学院家族企业课程主任,<\/span><span style=\"font-family: sans-serif; line-height: normal;\">战略合作与发展办公室主任。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei";\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"line-height: 24px; color: #333333; font-family: 微软雅黑, "Microsoft YaHei";\"><span style=\"text-indent: 32px;\">先后获得清华大学工学学士、北京大学经济学硕士、清华大学管理学博士以及金融学博士后,负责指导清华大学与哈佛大学商学院、瑞士洛桑国际管理学院、瑞士工商管理学院、香港大学等教学合作研究项目。高皓研究聚焦家族企业和家族财富两大领域,曾发表60多篇论文及文章,并在国内外出版了13部学术著作或译著。高皓担任多家中国及海外大型民营企业、家族基金会和家庭办公室的独立董事或战略顾问,为中国建设银行、国泰君安证券、中国人寿、泰康人寿、中国保险协会、基金协会、世界保险论等国内外众多知名机构和国际组织提供咨询。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1512118772788.jpg","Title":"清华大学五道口金融学院家族企业课程主任","TeacherType":[{"typename":"通用管理"},{"typename":"财务管理"}],"ID":80,"follow":false,"TeacherName":"高皓","EnterpriseID":0},{"Description":"<p><img src=\"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/msg/course_1563182592785.jpg\" title=\"\" alt=\"\" width=\"100%\"/><\/p>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1563182694226.jpg","Title":"资深企业培训师、国家注册心理咨询师","TeacherType":[{"typename":"通用管理"},{"typename":"职业技能"}],"ID":79,"follow":false,"TeacherName":"曹爱宏","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei"; color: #333333;\"><strong>李太林<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/Xd4EMv7d_rBQD.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"http://image.135editor.com/files/users/611/6116256/201904/Xd4EMv7d_rBQD.jpg\" style=\"opacity: 0;\" title=\"李太林.jpg\" alt=\"李太林.jpg\" data-op=\"change\" data-ratio=\"1\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\"font-size: 16px; color: #333333;\"><span style=\"line-height: 24px; text-indent: 28px; font-family: 微软雅黑, 'Microsoft YaHei';\">李太林,<\/span><span style=\"line-height: inherit; font-family: 宋体;\">中国绩效研究院院长、首席导师,宏成咨询创办人、董事长,宏成网商院创办人首席导师。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei'; color: rgb(255, 255, 255);\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p><span style=\"color: #333305; font-family: 微软雅黑, "Microsoft YaHei"; line-height: inherit;\">李太林拥有22年的人力资源管理与实践经验,曾在多家外资、中外合作企业与民营企业工作。<\/span><span style=\"color: #333305; font-family: 微软雅黑, "Microsoft YaHei"; line-height: inherit;\">个人创立以\u201cKSF PPV 积分式、合伙人、小湿股、全面预算 K计划\u201d为核心的全面绩效管理模型,运用于百个行业千余家企业,取得卓越成效。其早期创立的绩效管理系统模型被中国的人力资源软件提供商-朗新集团采用,并开发成绩效管理模块及操作示范以广泛推行使用。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei"; color: #ffffff;\"><strong>主研方向<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p><span style=\"font-family: 微软雅黑, 'Microsoft YaHei'; color: rgb(51, 51, 0);\">组织系统、人力资源规划、绩效管理、薪酬设计、目标激励、员工训练<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei"; color: #ffffff;\"><strong>主要著作<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify; font-size: 14px;\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px; color: #333305;\">《绩效核能101》<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei"; color: #ffffff;\"><strong>主讲课程<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify; font-size: 14px;\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px; color: #333333;\"><span style=\"line-height: 25.6px;\">《<\/span><span style=\"text-indent: 37px; line-height: inherit;\">绩效核能》、《预算管控》、《股权和能》、《盈利系统》<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1511964358454.jpg","Title":"中国绩效研究院院长","TeacherType":[{"typename":"人力资源"}],"ID":78,"follow":false,"TeacherName":"李太林","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family:微软雅黑, Microsoft YaHei\"><strong>吉姆·罗杰斯<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/sNfMHCY2_MIwD.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/msg/course_1558676675570.jpg\" title=\"\" alt=\"\" width=\"100%\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\"color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;\">吉姆·罗杰斯,现代华尔街的风云人物,被誉为最富远见的国际投资家。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"line-height: inherit; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: 24px; text-indent: 28px;\"><span style=\"color: rgb(51, 51, 51); font-family: 微软雅黑, 'Microsoft YaHei'; line-height: 24px; text-indent: 28px;\">美国证券界最成功的实践家之一。<\/span>他毕业于<\/span>耶鲁大学<span style=\"line-height: 24px; text-indent: 28px;\">和<\/span>牛津大学<span style=\"line-height: 24px; text-indent: 28px;\">,选择投资管理行业开始了自己的职业生涯。1970年和索罗斯共同创建量子基金。<\/span>量子基金<span style=\"line-height: 24px; text-indent: 28px;\">连续十年的年均收益率超过50%。1980年,37岁的罗杰斯从量子基金退出,他为他自己积累了数千万美元的巨大财富。1980年后,罗杰斯开始了自己的投资事业。已经成为全世界最伟大的<\/span>投资家<span style=\"line-height: 24px; text-indent: 28px;\">之一。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1558676679588.jpg","Title":"全球著名投资家","TeacherType":[{"typename":"财务管理"},{"typename":"生活方式"}],"ID":77,"follow":false,"TeacherName":"吉姆 罗杰斯","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family: 微软雅黑, "Microsoft YaHei";\"><strong>李尧<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/3fwSerAs_9BQR.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"http://image.135editor.com/files/users/611/6116256/201904/3fwSerAs_9BQR.jpg\" style=\"opacity: 0;\" title=\"李尧.jpg\" alt=\"李尧.jpg\" data-op=\"change\" data-ratio=\"1\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\"color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;\">李尧,投资心理学及系统交易专家,合一投资系统赢利模式创始人。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: 24px; color: rgb(51, 51, 51); letter-spacing: 0px;\">《财富大赢家》系列财商课程首席导师、美国ACHE心理治疗师、静心<\/span><span style=\"color: rgb(51, 51, 51); letter-spacing: 0px;\">禅修<\/span><span style=\"line-height: 24px; color: rgb(51, 51, 51); letter-spacing: 0px;\">导师、职业投资教练;<\/span><\/span><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 24px;\"><span style=\"color: rgb(51, 51, 51); letter-spacing: 0px; font-family: 微软雅黑, 'Microsoft YaHei';\">20年资本市场投资实战分享,4次破产4次东山再起的传奇经历,系统化投资模式、顶尖投资情绪管理和中国式静心禅修的完美结合;<\/span><\/p><p style=\"margin-top: 0px; margin-bottom: 0px; padding: 0px; line-height: 24px;\"><span style=\"color: rgb(51, 51, 51); letter-spacing: 0px; font-family: 微软雅黑, 'Microsoft YaHei';\">1993年起从事投资及机构投资策划,1993年-2005年成功策划多个十亿以上规模的股票投资项目,2006年-2007年成功避开A股市场几次大跌行情,赢得最高15倍的收益,2008年腥风血雨的A股市场仍然获得40%的回报,2009年迷茫震荡的市场中创造160%的收益,现为家和天下文化教育集团下的广州慧灵企业管理咨询有限公司咨询顾问。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1511964046770.jpg","Title":"投资心学创立者、股票期货专业教练","TeacherType":[{"typename":"生活方式"}],"ID":76,"follow":false,"TeacherName":"李尧","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family:微软雅黑, Microsoft YaHei\"><strong>刘松林<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/8R4gndXT_zCYU.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"http://image.135editor.com/files/users/611/6116256/201904/8R4gndXT_zCYU.jpg\" style=\"opacity: 0;\" title=\"undefined\" alt=\"\" data-op=\"change\" data-ratio=\"1\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\"color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;\">刘松林,幸福力导师,聚成股份创始人,本自幸福(北京)文化科技有限公司创始人。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"line-height: inherit; color: #333333;\">1997年,17岁第一次创业,22岁创办深圳市聚成企业管理顾问有限公司,25岁带领企业走在国内同行业前列,2009年,28岁的他正在积极运作,争取聚成创业板上市,2008年的金融危机中,刘松琳领导下的聚成集团稳步发展,营业额达到3.4亿。<\/span><\/p><p><span style=\"color: #333333;\">2011年、2012年、2013年连续3年被美国《财富》杂志评选为中国40位40岁以下精英排名分别为第22位、第24位、第29位,冯仑任其企业独立董事,曾与杨澜等合作开办公司<\/span><span style=\"color:#3366cc\"><span style=\"font-size: 12px; line-height: 0px; color: #333333;\">。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1511963614127.jpg","Title":"投资人、创业导师","TeacherType":[{"typename":"通用管理"},{"typename":"生活方式"}],"ID":75,"follow":false,"TeacherName":"刘松琳","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family:微软雅黑, Microsoft YaHei\"><strong>虞涤新<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/KN9kGZt2_hWXn.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"http://image.135editor.com/files/users/611/6116256/201904/KN9kGZt2_hWXn.jpg\" style=\"opacity: 0;\" title=\"虞涤新.jpg\" alt=\"虞涤新.jpg\" data-op=\"change\" data-ratio=\"1\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\"color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;\"><span style=\"line-height: 20px; background-color: rgb(248, 248, 248);\">虞涤新<\/span>,投融资专家,果睿投资创始人,前德隆集团执行总裁。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: inherit; color: rgb(51, 51, 51);\">曾是大学讲师,主讲国际税收、涉外税收,并在<\/span><span style=\"color: rgb(51, 51, 51);\">悉尼<\/span><span style=\"line-height: inherit; color: rgb(51, 51, 51);\">和芝加哥工作多年;<\/span><\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: inherit;\">曾任德隆集团执行总裁,负责其战略管理、运营监控、购并整合、财务管理、基金管理等业务。<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: inherit;\">曾是安达信公司的合伙人,从事企业咨询、<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: inherit;\">税务咨询<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: inherit;\">、公司上市工作,主导参与了数十家公司的上市私募活动。<\/span><\/p><p><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: 24px; text-indent: 28px; color: rgb(51, 51, 51);\">拥有多年投融资经验,帮助过多家企业成功上市,参与<\/span><span style=\"color: rgb(51, 51, 51);\">汇源果汁<\/span><span style=\"line-height: 24px; text-indent: 28px; color: rgb(51, 51, 51);\">、<\/span><span style=\"color: rgb(51, 51, 51);\">通源石油<\/span><span style=\"line-height: 24px; text-indent: 28px; color: rgb(51, 51, 51);\">、玻机智能、德仕油服、华美生物、<\/span><span style=\"color: rgb(51, 51, 51);\">金邦<\/span><span style=\"line-height: 24px; text-indent: 28px; color: rgb(51, 51, 51);\">新材料等多家企业投资。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1511963396092.jpg","Title":"果睿投资董事长、投融资专家","TeacherType":[{"typename":"通用管理"}],"ID":74,"follow":false,"TeacherName":"虞涤新","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family:微软雅黑, Microsoft YaHei\"><strong>章起华<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/zTAKeIaF_UEQA.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/msg/course_1558676469012.jpg\" title=\"\" alt=\"\" width=\"100%\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\";font-size: 16px; font-family: 微软雅黑, "Microsoft YaHei";;font-size: 16px; color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei";\">章起华,<\/span><span style=\"color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px; line-height: 24px; text-indent: 28px;\">中华智慧传承导师、上海滩金融集团董事长。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"letter-spacing: 0px; line-height: 24px; text-indent: 28px; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Microsoft YaHei';\">世博之星《全球中小企业联盟委员会》主席,全球中小企业联盟首席顾问,全球不良资产研究院研究院长,世界未来领袖商学院院长,上海滩金融集团董事长,汇聚教育投资控股董事长,汇乾天下董事长。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1566868534544.jpg","Title":"中华智慧传承导师、上海滩金融集团董事长","TeacherType":[],"ID":73,"follow":false,"TeacherName":"章起华","EnterpriseID":0},{"Description":"<section data-role=\"outer\" label=\"Powered by 135editor.com\"><section data-role=\"outer\" label=\"Powered by 135editor.com\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"3853\" style=\"border: 0px none; box-sizing: border-box;\"><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"90653\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"padding: 10px; box-sizing: border-box;\"><section style=\"padding: 20px; border: 2px solid #606060; box-sizing: border-box;\"><section style=\"width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;\" data-width=\"100%\"><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png\"/><\/section><section style=\"background-color:#fefefe; line-height:30px;\" class=\"135brush\" data-brushtype=\"text\"><span style=\"font-family:微软雅黑, Microsoft YaHei\"><strong>张祖源<\/strong><\/span><\/section><section style=\"background-color:#fefefe;\"><img src=\"https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png\"/><\/section><\/section><section style=\"width:100%; display:flex; display:-webkit-flex;\" data-width=\"100%\"><section style=\"width:100px;\"><section style=\"width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;\"><section data-role=\"circle\" style=\"border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/S7Zc4Zaq_ONYO.jpg"); background-size: cover; background-position: 50% 50%;\" data-width=\"100%\"><img src=\"http://image.135editor.com/files/users/611/6116256/201904/S7Zc4Zaq_ONYO.jpg\" style=\"opacity: 0;\" title=\"张祖源.jpg\" alt=\"张祖源.jpg\" data-op=\"change\" data-ratio=\"1\"/><\/section><\/section><\/section><section style=\"margin-left:15px; font-size:14px; font-size:14px;\" class=\"135brush\"><p><span style=\";font-size: 16px; font-family: 微软雅黑, "Microsoft YaHei";;font-size: 16px; color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei";\">张祖源,著名风水师,杨公风水师,杨公风水传人,中国易经研究院名誉院长。<\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><section class=\"_135editor\" data-tools=\"135编辑器\" data-id=\"88184\" style=\"border: 0px none; box-sizing: border-box;\"><section style=\"margin-right: 0%; margin-left: 0%; position: static;\"><section style=\"display: inline-block; width: 100%; vertical-align: top;\" data-width=\"100%\"><section style=\"font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);\"><section style=\"display: inline-block;\"><section class=\"135brush\" data-brushtype=\"text\" style=\"height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;\"><span style=\"font-family: 微软雅黑, 'Microsoft YaHei';\"><strong>个人简介<\/strong><\/span><\/section><section style=\"display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><section style=\"width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;\"><\/section><\/section><\/section><section style=\"display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;\" data-width=\"100%\"><section style=\"margin: 10px 0%; position: static;\"><p style=\"text-align: justify;\"><span style=\"color: rgb(51, 51, 51); font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: 24px; text-indent: 2em;\">中国易经文化研究院执行院长,中国易经管理顾问集团有限公司首席顾问,奇门遁甲传人,华光法术传人,著名易学理论与实践专家。著名<\/span>姓名学<span style=\"line-height: 24px; text-indent: 2em;\">专家,著名风水专家,以风水绝学成名。<\/span><\/span><\/p><p style=\"text-align: justify;\"><span style=\"color: rgb(51, 51, 51); font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: 24px; text-indent: 2em;\">张祖源出生于<\/span>风水世家<span style=\"line-height: 24px; text-indent: 2em;\">,深受家庭环境的薰陶,从小开始苦修<\/span>中国传统文化<span style=\"line-height: 24px; text-indent: 2em;\">,有深厚扎实的理论功底。成年后遍访全国各地名师,集众家之精髓而大成。通晓四柱、<\/span>梅花易<span style=\"line-height: 24px; text-indent: 2em;\">、奇门、<\/span>金锁<span style=\"line-height: 24px; text-indent: 2em;\">玉关、<\/span>八宅风水<span style=\"line-height: 24px; text-indent: 2em;\">、<\/span>三合风水<span style=\"line-height: 24px; text-indent: 2em;\">、<\/span>天星风水<span style=\"line-height: 24px; text-indent: 2em;\">、<\/span>玄空风水<span style=\"line-height: 24px; text-indent: 2em;\">、<\/span>杨公风水<span style=\"line-height: 24px; text-indent: 2em;\">、姓名学、<\/span>品牌学<span style=\"line-height: 24px; text-indent: 2em;\">、<\/span>企业管理学<span style=\"line-height: 24px; text-indent: 2em;\">、<\/span>市场营销学<span style=\"line-height: 24px; text-indent: 2em;\">、建筑学、室内环境工程。尤其擅长奇门预测命运和重大事件;各类命名起名改名;<\/span>阴阳宅<span style=\"line-height: 24px; text-indent: 2em;\">风水对人生命运的调理和补救。<\/span><\/span><\/p><p style=\"text-align: justify;\"><span style=\"color: rgb(51, 51, 51); font-family: 微软雅黑, 'Microsoft YaHei';\"><span style=\"line-height: 24px; text-indent: 2em;\">国内外知名人士私人<\/span>风水顾问<span style=\"line-height: 24px; text-indent: 2em;\">;数十家大中型企业风水总顾问;为多家企业做过整体风水布局和设计。<\/span><\/span><\/p><\/section><\/section><\/section><\/section><\/section><\/section><\/section><\/section>","TeacherPic":"https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1511963023649.jpg","Title":"中国易经研究院名誉院长、著名风水大师","TeacherType":[{"typename":"生活方式"}],"ID":72,"follow":false,"TeacherName":"张祖源","EnterpriseID":0}]}
* message : Succes!
*/
private int code;
private BodyBean body;
private String message;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public BodyBean getBody() {
return body;
}
public void setBody(BodyBean body) {
this.body = body;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public static class BodyBean implements Serializable{
private List<ResultBean> result;
public List<ResultBean> getResult() {
return result;
}
public void setResult(List<ResultBean> result) {
this.result = result;
}
public static class ResultBean implements Serializable{
/**
* Description : <section data-role="outer" label="Powered by 135editor.com"><section class="_135editor" data-tools="135编辑器" data-id="3853" style="border: 0px none; box-sizing: border-box;"><section class="_135editor" data-tools="135编辑器" data-id="90653" style="border: 0px none; box-sizing: border-box;"><section style="padding: 10px; box-sizing: border-box;"><section style="padding: 20px; border: 2px solid #606060; box-sizing: border-box;"><section style="width:100%; display:flex; display:-webkit-flex; justify-content:center; -webkit-justify-content:center; margin-top:-35px;" data-width="100%"><section style="background-color:#fefefe;"><img src="https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8Jiao3MsFa9qUm8g2wEbUFEDCnON6oyuFqB4NpBWN2ib3Go6Bafb8ibF0Q/0?wx_fmt=png"/></section><section style="background-color:#fefefe; line-height:30px;" class="135brush" data-brushtype="text"><span style="font-family:微软雅黑, Microsoft YaHei"><strong>潘文荣</strong></span></section><section style="background-color:#fefefe;"><img src="https://mpt.135editor.com/mmbiz_png/fgnkxfGnnkT13KR5CVjjct8ql5GiavwF8MbB9KYenhmg2UcxyKcIxxzSr9E9XlRrgEsJMviaf3Du1q3sOVAtgBuQ/0?wx_fmt=png"/></section></section><section style="width:100%; display:flex; display:-webkit-flex;" data-width="100%"><section style="width:100px;"><section style="width: 100px; border: 2px solid #5b5b5b; border-radius: 100%; overflow: hidden; box-sizing: border-box;"><section data-role="circle" style="border-radius: 100%; overflow: hidden; margin: 0px auto; width: 100%; padding-bottom: 100%; height: 0px; box-sizing: border-box; background-image: url("http://image.135editor.com/files/users/611/6116256/201904/ZymzMS67_3ETm.jpg"); background-size: cover; background-position: 50% 50%;" data-width="100%"><img src="https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/msg/course_1558680545145.jpg" title="" alt="" width="100%"/></section></section></section><section style="margin-left:15px; font-size:14px; font-size:14px;" class="135brush"><p><span style=";font-size: 16px; font-family: 微软雅黑, "Microsoft YaHei";;font-size: 16px; color: #333333; line-height: 24px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei";">潘文荣,<span style="font-family: sans-serif; line-height: normal;">艾青莲时尚美学院长、青莲姝丽会会长 “世界旅游小姐大赛(西南赛区)形象总顾问。</span></span></p></section></section></section></section></section></section><section class="_135editor" data-tools="135编辑器" data-id="88184" style="border: 0px none; box-sizing: border-box;"><section style="display: inline-block; width: 100%; vertical-align: top;" data-width="100%"><section style="font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);"><section style="display: inline-block;"><section class="135brush" data-brushtype="text" style="height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);"><span style="font-family: 微软雅黑, "Microsoft YaHei";"><strong>个人简介</strong></span></section><section style="display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section><section style="width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section></section></section><section style="margin-right: 0%; margin-left: 0%; position: static;"><section style="display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;" data-width="100%"><section style="display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;" data-width="100%"><section style="margin: 10px 0%; position: static;"><p style="text-align: justify;"><span style="color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;">Certification IPTA国际职业培训师、NPAP全国高新专业人才认定中心评委A C I国际认证礼仪讲师、</span><span style="color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;">国家人社部高级形象设计师、</span><span style="color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;">中国形象设计协会礼仪培训师、</span><span style="color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;">中国儿童礼仪版权课程高级培训师、国家认证高级茶艺师、</span><span style="color: #333333; font-family: 微软雅黑, "Microsoft YaHei"; line-height: 25.6px; text-indent: 28px;">女性优雅形体教练、魅力演讲训练讲师、成都大学、西南财经大学特聘形象礼仪导师。</span></p></section></section></section></section></section></section><section class="_135editor" data-tools="135编辑器" data-id="88184" style="border: 0px none; box-sizing: border-box;"><section style="display: inline-block; width: 100%; vertical-align: top;" data-width="100%"><section style="font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);"><section style="display: inline-block;"><section class="135brush" data-brushtype="text" style="height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: #fefefe; font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: #31425a;"><span style="font-family: 微软雅黑, "Microsoft YaHei";"><strong>主研方向</strong></span></section><section style="display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: #31425a; font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section><section style="width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: #022063; border-top-width: 0.6em; border-top-style: solid; border-top-color: #022063; border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section></section></section><section style="margin-right: 0%; margin-left: 0%; position: static;"><section style="display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;" data-width="100%"><section style="display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: #a0a0a0; border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;" data-width="100%"><section style="margin: 10px 0%; position: static;"><p style="text-align: justify;"><span style="color: rgb(51, 51, 51); text-indent: 28px; line-height: 25.6px; font-family: 微软雅黑, 'Microsoft YaHei';">形象礼仪、色彩风格、形体梳理</span></p></section></section></section></section></section></section><section class="_135editor" data-tools="135编辑器" data-id="88184" style="border: 0px none; box-sizing: border-box;"><section style="margin-right: 0%; margin-left: 0%; position: static;"><section style="display: inline-block; width: 100%; vertical-align: top;" data-width="100%"><section style="font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);"><section style="display: inline-block;"><section class="135brush" data-brushtype="text" style="height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);"><span style="font-family: 微软雅黑, "Microsoft YaHei";"><strong>主讲课程</strong></span></section><section style="display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section><section style="width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section></section></section><section style="margin-right: 0%; margin-left: 0%; position: static;"><section style="display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;" data-width="100%"><section style="display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;" data-width="100%"><section style="margin: 10px 0%; position: static;"><p style="text-align: justify; font-size: 14px;"><span style="color: #333333; line-height: 21px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;">《礼赢职场商务魅力》、《商务礼仪情景式培训》、《现代员工关系管理》、《个人品牌建设与管理》、《匠心服务礼仪体系》、《星级酒店服务礼仪》、《医护服务礼仪与医患沟通》、《九型人格与白骨精职业规划》、《形象一百幸福人生训练营》、《茶文化与礼仪修养》</span></p></section></section></section></section></section></section></section><section style="font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);"><section class="_135editor" data-tools="135编辑器" data-id="88184" style="border: 0px none; box-sizing: border-box;"><section style="margin-right: 0%; margin-left: 0%; position: static;"><section style="display: inline-block; width: 100%; vertical-align: top;" data-width="100%"><section style="font-size: 12.8px; margin-right: 0%; margin-bottom: -10px; margin-left: 0%; position: static;transform: translate3d(3px, 0px, 0px);-webkit-transform: translate3d(3px, 0px, 0px);-moz-transform: translate3d(3px, 0px, 0px);-ms-transform: translate3d(3px, 0px, 0px);-o-transform: translate3d(3px, 0px, 0px);"><section style="display: inline-block;"><section class="135brush" data-brushtype="text" style="height: 2em; line-height: 2em; display: inline-block; vertical-align: top; color: rgb(254, 254, 254); font-size: 16px; text-align: center; padding-left: 8px; padding-right: 8px; box-sizing: border-box; background-color: rgb(49, 66, 90);"><span style="font-family: 微软雅黑, "Microsoft YaHei";"><strong>服务客户</strong></span></section><section style="display: inline-block; vertical-align: top; width: 0px; border-left-width: 1em; border-left-style: solid; border-left-color: rgb(49, 66, 90); font-size: 16px; border-top-width: 1em !important; border-top-style: solid !important; border-top-color: transparent !important; border-bottom-width: 1em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section><section style="width: 0px; border-right-width: 0.6em; border-right-style: solid; border-right-color: rgb(2, 32, 99); border-top-width: 0.6em; border-top-style: solid; border-top-color: rgb(2, 32, 99); border-left-width: 0.6em !important; border-left-style: solid !important; border-left-color: transparent !important; border-bottom-width: 0.6em !important; border-bottom-style: solid !important; border-bottom-color: transparent !important; box-sizing: border-box;"></section></section></section><section style="display: inline-block; width: 100%; vertical-align: top; padding-left: 16px; border-width: 0px; box-sizing: border-box;" data-width="100%"><section style="display: inline-block; width: 100%; vertical-align: top; border-left-width: 2px; border-left-style: dashed; border-left-color: rgb(160, 160, 160); border-bottom-left-radius: 0px; padding-left: 10px; box-sizing: border-box;" data-width="100%"><section style="margin: 10px 0%; position: static;"><p style="text-align: justify;"><span style="color: #333333; line-height: 25.2px; text-indent: 28px; font-family: 微软雅黑, "Microsoft YaHei"; font-size: 16px;">中国核动力研究院、国家电网、太平洋寿险、攀钢集团、中铁二院、交通银行、工商银行、农业银行、建设银行、中铁八局、中石油、四川大学、西南财经大学、成都大学等。</span></p></section></section></section></section></section></section></section></section>
* TeacherPic : https://yunxue-bucket.oss-cn-shanghai.aliyuncs.com/imgurl/teacher/headimg_1566868656600.jpg
* Title : 形象礼仪专家
* TeacherType : []
* ID : 191
* follow : false
* TeacherName : 潘文荣
* EnterpriseID : 0
*/
private String Description;
private String TeacherPic;
private String Title;
private int ID;
private boolean follow;
private String TeacherName;
private int EnterpriseID;
private List<?> TeacherType;
public String getDescription() {
return Description;
}
public void setDescription(String Description) {
this.Description = Description;
}
public String getTeacherPic() {
return TeacherPic;
}
public void setTeacherPic(String TeacherPic) {
this.TeacherPic = TeacherPic;
}
public String getTitle() {
return Title;
}
public void setTitle(String Title) {
this.Title = Title;
}
public int getID() {
return ID;
}
public void setID(int ID) {
this.ID = ID;
}
public boolean isFollow() {
return follow;
}
public void setFollow(boolean follow) {
this.follow = follow;
}
public String getTeacherName() {
return TeacherName;
}
public void setTeacherName(String TeacherName) {
this.TeacherName = TeacherName;
}
public int getEnterpriseID() {
return EnterpriseID;
}
public void setEnterpriseID(int EnterpriseID) {
this.EnterpriseID = EnterpriseID;
}
public List<?> getTeacherType() {
return TeacherType;
}
public void setTeacherType(List<?> TeacherType) {
this.TeacherType = TeacherType;
}
}
}
}
| [
"786110353@qq.com"
] | 786110353@qq.com |
62c9baedbd2d37ae77389550be0d60a956513905 | e618c01fc4c9c6f5f1ab6129f7fa30eaf5b28d9a | /Practice_Session/src/automation_Scenarios/validations.java | 90ae58458a33a5394da3b7dfd15db399fb366f68 | [] | no_license | RamaGanesh34595/Practice_Session | 766a467fa9a95823cb014959fe1c3db1accd32d5 | 9f737e39b4148f99352452a011a4920ec1a61c5d | refs/heads/master | 2020-07-11T08:12:23.917412 | 2019-08-31T09:39:15 | 2019-08-31T09:39:15 | 204,485,644 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,038 | java | package automation_Scenarios;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
public class validations {
WebDriver driver;
// Field Level validation
// is Displayed
// is Enabled
// is Selected
@Test
public void pageTitle() {
String homePage = driver.getTitle();
driver.findElement(By.linkText("Projects")).click();
String Projects = driver.getTitle();
Assert.assertFalse(homePage.equals(Projects));
System.out.println("Opened HomePage");
}
@BeforeTest
public void beforeTest() {
System.setProperty("webdriver.gecko.driver", "E:\\Selenium Automation\\WorkSpace\\Libs\\geckodriver.exe");
driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("http://www.seleniumhq.org/");
}
@AfterTest
public void afterTest() {
driver.close();
}
}
| [
"ramaganesh34595@gmail.com"
] | ramaganesh34595@gmail.com |
26ec1edf56934143472a170cf8d3165baecd5929 | 601582228575ca0d5f61b4c211fd37f9e4e2564c | /logisoft_revision1/src/com/logiware/edi/tracking/EdiTrackingSystemBC.java | 5fb250e506d5224cf51c982d53d974f909de4a74 | [] | no_license | omkarziletech/StrutsCode | 3ce7c36877f5934168b0b4830cf0bb25aac6bb3d | c9745c81f4ec0169bf7ca455b8854b162d6eea5b | refs/heads/master | 2021-01-11T08:48:58.174554 | 2016-12-17T10:45:19 | 2016-12-17T10:45:19 | 76,713,903 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 4,016 | java | package com.logiware.edi.tracking;
import com.gp.cong.common.DateUtils;
import com.gp.cong.logisoft.util.EdiUtil;
import com.gp.cong.struts.LoadLogisoftProperties;
import java.io.File;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
public class EdiTrackingSystemBC {
EdiTrackingSystemDAO logFileEdiDAO = new EdiTrackingSystemDAO();
public String getEdiList(String drNumber)throws Exception{
String status =logFileEdiDAO.findDrNumberStatus(drNumber);
return status;
}
public void setEdiLog(String filename,String processedDate,String status,String description,String ediCompany,String messageType,String drNumber)throws Exception{
EdiTrackingSystem logFileEdi = new EdiTrackingSystem();
logFileEdi.setFilename(null != filename?filename:"");
logFileEdi.setProcessedDate(null != processedDate?processedDate:"");
logFileEdi.setStatus(null != status?status:"");
logFileEdi.setDescription(null != description?description:"");
logFileEdi.setEdiCompany(null != ediCompany?ediCompany:"");
logFileEdi.setMessageType(null != messageType?messageType:"");
logFileEdi.setDrnumber(null != drNumber?drNumber:"");
logFileEdiDAO.saveLogFileEdi(logFileEdi);
}
public void setShipmentStatusLog(String filename,String processedDate,String status,String description,String ediCompany,String messageType,String drNumber,String trackingStatus)throws Exception{
EdiTrackingSystem logFileEdi = new EdiTrackingSystem();
logFileEdi.setFilename(null != filename?filename:"");
logFileEdi.setProcessedDate(null != processedDate?processedDate:"");
logFileEdi.setStatus(null != status?status:"");
logFileEdi.setDescription(null != description?description:"");
logFileEdi.setEdiCompany(null != ediCompany?ediCompany:"");
logFileEdi.setMessageType(null != messageType?messageType:"");
logFileEdi.setDrnumber(null != drNumber?drNumber:"");
logFileEdi.setDrnumber(null != drNumber?drNumber:"");
logFileEdi.setTrackingStatus(null != trackingStatus?trackingStatus:"");
logFileEdiDAO.saveLogFileEdi(logFileEdi);
}
public String exportEdiTracking(EdiTrackingSystemForm ediTrackingForm) throws Exception {
List ediFileList = new ArrayList();
DateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy");
String fromDate = ediTrackingForm.getFromDate();
String toDate = ediTrackingForm.getToDate();
String fromDateStr="";
String toDateStr="";
if(null != fromDate && null != toDate){
fromDateStr = DateUtils.formatDate(dateFormat.parse(fromDate), "yyyyMMdd");
toDateStr = DateUtils.formatDate(dateFormat.parse(toDate), "yyyyMMdd");
}
List<EdiSystemBean> ediAckList = new ArrayList<EdiSystemBean>();
ediFileList=logFileEdiDAO.findAllEdi(ediTrackingForm.getDrNumber(), ediTrackingForm.getMessageType(),
ediTrackingForm.getEdiCompany(),ediTrackingForm.getPlaceOfReceipt(),ediTrackingForm.getPlaceOfDelivery(),
ediTrackingForm.getPortOfLoad(),ediTrackingForm.getPortOfDischarge(),ediTrackingForm.getBookingNo(),
fromDateStr,toDateStr);
ediAckList = new EdiUtil().getEdiTrackingBeanList(ediFileList);
String fileName = "EdiTracking.xls";
String folderPath = LoadLogisoftProperties.getProperty("reportLocation");
File file = new File(folderPath);
if (!file.exists()) {
file.mkdir();
}
String excelFilePath = LoadLogisoftProperties.getProperty("reportLocation") + "/" + fileName;
new ExportEdiTrackingToExcel().exportToExcel(excelFilePath, ediAckList);
return excelFilePath;
}
}
| [
"omkar@ziletech.com"
] | omkar@ziletech.com |
e104fb851952e8121ab4c1d56fd33a75b85b8c7a | cbe7da1d7be6a93ab91f526ea91c4487dd1bf78c | /angular-dashboard/src/main/java/com/drillmap/db/domain/entities/OpportunityForm.java | ef77b49cb5e47332062a0b27c7934751fccdd306 | [] | no_license | tonyhayes/angular-bootstrap-dashboard | 8bfb4d2edc6ab647414cc57c6b75e47a2a6c5d1b | b8301f8a8338244b232106a95a188b2907046970 | refs/heads/master | 2021-01-10T19:16:09.769289 | 2014-08-19T17:37:46 | 2014-08-19T17:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 605 | java | package com.drillmap.db.domain.entities;
import com.drillmap.db.domain.AuditableTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.persistence.*;
/**
* Created by tony on 4/2/14.
*
* this is data collected by the customer in a format unknown to me
* how to describe ?
*
*/
@Entity
@Table(name = "app_crm_opportunity_form_values")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class OpportunityForm extends AuditableTenantEntity {
String name;
String value;
@ManyToOne
Opportunity opportunity;
}
| [
"tony.magellan@gmail.com"
] | tony.magellan@gmail.com |
b5eb6cf85cdd2db07db700e0995589395b7dd688 | 1390dbfdc2551a49da00a3c6df82e243a6081d58 | /ZxUtils/src/main/java/com/zx/zxutils/views/TabViewPager/ZXTabViewPager.java | 59ac667d3443ceccb6b68110a7c9a2a45ad964dd | [] | no_license | mark1108/ZXUtils | 4b1cba62bc3cb0eb70f91e57d368ba76984320c3 | ac0deec9fc3c6f593236e0da559e1632be967166 | refs/heads/master | 2023-02-09T00:23:36.569191 | 2020-12-31T08:45:48 | 2020-12-31T08:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 15,387 | java | package com.zx.zxutils.views.TabViewPager;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.zx.zxutils.R;
import com.zx.zxutils.util.ZXSystemUtil;
import com.zx.zxutils.views.ZXNoScrllViewPager;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import static com.zx.zxutils.views.TabViewPager.ZXTabViewPager.TabGravity.GRAVITY_BOTTOM;
import static com.zx.zxutils.views.TabViewPager.ZXTabViewPager.TabGravity.GRAVITY_TOP;
/**
* Created by Xiangb on 2017/4/1.
* 功能:tablayout自定义view
*/
public class ZXTabViewPager extends RelativeLayout {
private ZXPagerAdapter myPagerAdapter;
private TabLayout tabLayoutTop, tabLayoutBottom, tabLayout;
private TextView tvDividerTop, tvDividerBottom, tvDivider;
private ZXNoScrllViewPager viewPager;
private Context context;
private int normalTextColor, selectTextColor;
private int tabTextSizeSp = 10;
private int tabTextSelectSizeSp = 10;
private int tabImageSizeDp = 22;
private int tabImageSelectSizeDp = 22;
// public static final int GRAVITY_TOP = 0;
// public static final int GRAVITY_BOTTOM = 1;
private List<Integer> iconList = new ArrayList<>();
public enum TabGravity {
GRAVITY_BOTTOM, GRAVITY_TOP
}
public ZXTabViewPager(Context context) {
this(context, null);
}
public ZXTabViewPager(Context context, AttributeSet attrs) {
super(context, attrs, 0);
//在构造函数中将xml中定义的布局解析出来
LayoutInflater.from(context).inflate(R.layout.view_tab_viewpager_layout, this, true);
tabLayoutTop = findViewById(R.id._tb_zx_layoutTop);
tabLayoutBottom = findViewById(R.id._tb_zx_layoutBottom);
tvDividerTop = findViewById(R.id._tv_zx_dividerTop);
tvDividerBottom = findViewById(R.id._tv_zx_dividerBottom);
viewPager = findViewById(R.id._vp_zx_pager);
iconList.clear();
tabLayout = tabLayoutTop;
tvDivider = tvDividerTop;
this.context = context;
}
/**
* 设置FragmentManager
* 如果在Activity中使用,传入getSupportFragmentManager
* 如果在fragment中使用,传入getChildFragmentManager
*
* @param manager
* @return
*/
public ZXTabViewPager setManager(FragmentManager manager) {
myPagerAdapter = new ZXPagerAdapter(manager);
return this;
}
/**
* 添加tab
*
* @param fragment
* @param title
* @return
*/
public ZXTabViewPager addTab(Fragment fragment, String title) {
myPagerAdapter.addFragment(fragment, title, null);
return this;
}
/**
* 添加tab 带图片,也可以传入selecter文件
*
* @param fragment
* @param title
* @return
*/
public ZXTabViewPager addTab(Fragment fragment, String title, int itemBg) {
Drawable item_Bg = ContextCompat.getDrawable(context, itemBg);
myPagerAdapter.addFragment(fragment, title, item_Bg);
return this;
}
/**
* 设置viewpager是否可以滑动
*
* @param canScroll
* @return
*/
public ZXTabViewPager setViewpagerCanScroll(boolean canScroll) {
viewPager.setScanScroll(canScroll);
return this;
}
/**
* 设置tablayout的背景颜色
*
* @return
*/
public ZXTabViewPager setTablayoutBackgroundColor(int bgColor) {
tabLayout.setBackgroundColor(bgColor);
return this;
}
/**
* 设置Tablayout的高度
*
* @param heightDp
* @return
*/
public ZXTabViewPager setTablayoutHeight(int heightDp) {
ViewGroup.LayoutParams p = tabLayout.getLayoutParams();
p.height = ZXSystemUtil.dp2px(heightDp);
tabLayout.setLayoutParams(p);
return this;
}
/**
* 设置tab的字体大小
*
* @param sizeSP
* @return
*/
public ZXTabViewPager setTabTextSize(int sizeSP) {
tabTextSizeSp = sizeSP;
tabTextSelectSizeSp = sizeSP;
return this;
}
/**
* 设置tab的字体大小(包含选中字体大小)
*
* @param sizeSP
* @return
*/
public ZXTabViewPager setTabTextSize(int sizeSP, int sizeSelectSp) {
tabTextSizeSp = sizeSP;
tabTextSelectSizeSp = sizeSelectSp;
return this;
}
/**
* 设置tab的图片里的大小(前提要设置显示了图片)
*
* @param imageSizeDp
* @return
*/
public ZXTabViewPager setTabImageSize(int imageSizeDp) {
tabImageSizeDp = imageSizeDp;
tabImageSelectSizeDp = imageSizeDp;
return this;
}
/**
* 设置tab的图片里的大小(前提要设置显示了图片)
*
* @param imageSizeDp
* @param imageSelcetSizeDp
* @return
*/
public ZXTabViewPager setTabImageSize(int imageSizeDp, int imageSelcetSizeDp) {
tabImageSizeDp = imageSizeDp;
tabImageSelectSizeDp = imageSelcetSizeDp;
return this;
}
/**
* 设置tab的数量显示
*
* @param positon
* @param tabNum
* @return
*/
public ZXTabViewPager setTabTitleNum(int positon, int tabNum) {
try {
TextView tvNum = tabLayout.getTabAt(positon).getCustomView().findViewById(R.id.tv_item_tab_num);
if (tabNum > 0) {
tvNum.setVisibility(VISIBLE);
} else {
tvNum.setVisibility(GONE);
}
tvNum.setText(tabNum + "");
} catch (Exception e) {
e.printStackTrace();
}
return this;
}
/**
* 完成构建
*/
public void build() {
viewPager.setOffscreenPageLimit(myPagerAdapter.fragmentList.size());
viewPager.setAdapter(myPagerAdapter);
tabLayout.setupWithViewPager(viewPager);
if (myPagerAdapter.normalBgList.get(0) != null) {
for (int i = 0; i < myPagerAdapter.getCount(); i++) {
TabLayout.Tab tab = tabLayout.getTabAt(i);
tab.setCustomView(R.layout.item_tablayout);
tab.getCustomView().findViewById(R.id.iv_item_tab).setBackground(myPagerAdapter.normalBgList.get(i));
ViewGroup.LayoutParams params = tab.getCustomView().findViewById(R.id.iv_item_tab).getLayoutParams();
params.height = ZXSystemUtil.dp2px(tabImageSizeDp);
params.width = ZXSystemUtil.dp2px(tabImageSizeDp);
tab.getCustomView().findViewById(R.id.iv_item_tab).setLayoutParams(params);
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setText(myPagerAdapter.getPageTitle(i));
if (i == 0) {
if (selectTextColor != 0) {
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextColor(selectTextColor);
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextSize(tabTextSelectSizeSp);
}
} else {
if (normalTextColor != 0) {
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextColor(normalTextColor);
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextSize(tabTextSizeSp);
}
}
}
tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
@Override
public void onTabSelected(TabLayout.Tab tab) {
ViewGroup.LayoutParams params = tab.getCustomView().findViewById(R.id.iv_item_tab).getLayoutParams();
params.height = ZXSystemUtil.dp2px(tabImageSelectSizeDp);
params.width = ZXSystemUtil.dp2px(tabImageSelectSizeDp);
tab.getCustomView().findViewById(R.id.iv_item_tab).setLayoutParams(params);
tab.getCustomView().findViewById(R.id.iv_item_tab).setSelected(true);
tab.getCustomView().findViewById(R.id.tv_item_tab).setSelected(true);
if (selectTextColor != 0) {
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextColor(selectTextColor);
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextSize(tabTextSelectSizeSp);
}
}
@Override
public void onTabUnselected(TabLayout.Tab tab) {
ViewGroup.LayoutParams params = tab.getCustomView().findViewById(R.id.iv_item_tab).getLayoutParams();
params.height = ZXSystemUtil.dp2px(tabImageSizeDp);
params.width = ZXSystemUtil.dp2px(tabImageSizeDp);
tab.getCustomView().findViewById(R.id.iv_item_tab).setLayoutParams(params);
tab.getCustomView().findViewById(R.id.iv_item_tab).setSelected(false);
tab.getCustomView().findViewById(R.id.tv_item_tab).setSelected(false);
if (normalTextColor != 0) {
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextColor(normalTextColor);
((TextView) tab.getCustomView().findViewById(R.id.tv_item_tab)).setTextSize(tabTextSizeSp);
}
}
@Override
public void onTabReselected(TabLayout.Tab tab) {
}
});
}
}
/**
* 设置tablaout的位置,注意必须要在最开始就进行设置,默认在上方
*
* @param gravity
* @return
*/
public ZXTabViewPager setTabLayoutGravity(TabGravity gravity) {
if (gravity == GRAVITY_TOP) {
tabLayout = tabLayoutTop;
tvDivider = tvDividerTop;
tabLayoutTop.setVisibility(VISIBLE);
tabLayoutBottom.setVisibility(GONE);
} else if (gravity == GRAVITY_BOTTOM) {
tabLayout = tabLayoutBottom;
tvDivider = tvDividerBottom;
tabLayoutBottom.setVisibility(VISIBLE);
tabLayoutTop.setVisibility(GONE);
}
return this;
}
/**
* 展示分隔线
*
* @param dividerColor
* @return
*/
public ZXTabViewPager showDivider(int dividerColor) {
tvDivider.setVisibility(VISIBLE);
tvDivider.setBackgroundColor(dividerColor);
return this;
}
/**
* 展示分隔线
*
* @return
*/
public ZXTabViewPager showDivider() {
tvDivider.setVisibility(VISIBLE);
return this;
}
/**
* 获取到tablayout,便于进一步设置
*
* @return
*/
public TabLayout getTabLayout() {
return tabLayout;
}
/**
* 获取到viewpager,便于进一步设置
*
* @return
*/
public ViewPager getViewPager() {
return viewPager;
}
/**
* 设置tab的颜色
* 注意:虽然传入参数为int类型,但是不能传入R.color.write这种R路径
* 需要ContextCompat.getColor(),或者getResources().getColor()
*
* @param normalColor 正常字体颜色
* @param selectedColor 选中字体颜色
* @return
*/
public ZXTabViewPager setTitleColor(int normalColor, int selectedColor) {
normalTextColor = normalColor;
selectTextColor = selectedColor;
tabLayout.setTabTextColors(normalColor, selectedColor);
return this;
}
/**
* 动态设置tab的文字
*
* @param positon 位置
* @param tabText 文字
*/
public void setTabText(int positon, String tabText) {
tabLayout.getTabAt(positon).setText(tabText);
}
/**
* 设置tab选中项下划线的颜色
*
* @param indicatorColor 颜色值
* @return
*/
public ZXTabViewPager setIndicatorColor(int indicatorColor) {
tabLayout.setSelectedTabIndicatorColor(indicatorColor);
return this;
}
/**
* 设置tab选中项下划线的高度(px)
*
* @param indicatorHeightPx 高度像素值
* @return
*/
public ZXTabViewPager setIndicatorHeight(int indicatorHeightPx) {
tabLayout.setSelectedTabIndicatorHeight(indicatorHeightPx);
return this;
}
public ZXTabViewPager setIndicatorWidth(int indicatorWidthPx) {
try {
Field tabStrip = TabLayout.class.getDeclaredField("mTabStrip");
tabStrip.setAccessible(true);
Field indicatorLeft = tabStrip.getClass().getDeclaredField("mIndicatorLeft");
Field indicatorRight = tabStrip.getClass().getDeclaredField("mIndicatorRight");
indicatorLeft.setInt(tabStrip.getClass().newInstance(),100);
indicatorRight.setInt(tabStrip.getClass().newInstance(),100);
LinearLayout llTab = (LinearLayout) tabStrip.get(tabLayout);
for (int i = 0; i < llTab.getChildCount(); i++) {
View child = llTab.getChildAt(i);
// int width = child.getWidth();
// child.setPadding(0, 0, 0, 0);
// LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT, 1);
//// params.leftMargin = 100;
//// params.rightMargin = 100;
// child.setLayoutParams(params);
child.invalidate();
}
} catch (Exception e) {
e.printStackTrace();
}
return this;
}
/**
* 设置当前选中界面
*
* @param position
* @return
*/
public ZXTabViewPager setSelectOn(int position) {
if (position < 0) {
viewPager.setCurrentItem(0);
} else if (position > tabLayout.getTabCount() - 1) {
viewPager.setCurrentItem(tabLayout.getTabCount() - 1);
} else {
viewPager.setCurrentItem(position);
}
return this;
}
/**
* 获取当前选中的position
*
* @return
*/
public int getSelectedPosition() {
return tabLayout.getSelectedTabPosition();
}
/**
* tablayout是否可滑动,默认可滑动
* boolean scrollable 是否可滑动
*
* @return
*/
public ZXTabViewPager setTabScrollable(boolean scrollable) {
if (scrollable) {
tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
} else {
tabLayout.setTabMode(TabLayout.MODE_FIXED);
}
return this;
}
/**
* 获取该position对应的fragment
*
* @param position
* @return
*/
public Fragment getFragment(int position) {
return myPagerAdapter.getItem(position);
}
}
| [
"826966671@qq.com"
] | 826966671@qq.com |
24faedf916c1471ebf9607b4cf3533b8ce7038a8 | ac418b6663b6cd52af7a6c54de64e3feb1521d39 | /src/main/java/demo/sicau/datamanagementplatform/entity/POJO/VO/ResultVO.java | 31cc49b731eea056f14daaa6342ea50a27bd3efc | [
"MIT"
] | permissive | urgelcx/data-management-platform | 1fc7db09a4716437cb0383a162da14019a0c68f7 | 15667d409d4ab4b4b5cd8d471db2fac1fc12bb6e | refs/heads/master | 2022-04-02T07:40:22.333454 | 2019-06-15T14:52:31 | 2019-06-15T14:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 953 | java | package demo.sicau.datamanagementplatform.entity.POJO.VO;
/**
* @Author beifengtz
* @Site www.beifengtz.com
* @Date Created in 18:10 2018/10/30
* @Description:
*/
public class ResultVO {
private int status;
private String msg;
private Object data;
public ResultVO() {
}
public ResultVO(Integer status, String msg, Object data) {
this.status = status;
this.msg = msg;
this.data = data;
}
public ResultVO(Integer status, String msg) {
this.status = status;
this.msg = msg;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
}
| [
"1246886075@qq.com"
] | 1246886075@qq.com |
eb787fbcfe1d238e07f47c1368a3e72f7eaead55 | db7eeb725cb842ef371c6461de8675aa96c88fa9 | /src/main/java/edu/tju/goliath/serviceImpl/TeacherServiceImpl.java | 2d23a144b56051dbedb2467e6ce9c70950fd08b7 | [] | no_license | MorriganMesser/PrimaryArithmetic | 0617db1cf9b8fe51fba9cc294c7a2b0eb273b357 | f698c51f90327066678ee20d360b033c263a7b8c | refs/heads/master | 2021-01-17T07:34:51.220689 | 2016-10-22T17:02:39 | 2016-10-22T17:02:39 | 68,377,915 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,670 | java | package edu.tju.goliath.serviceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import edu.tju.goliath.dao.TeacherMapper;
import edu.tju.goliath.entity.Teacher;
import edu.tju.goliath.service.TeacherServiceI;
@Service("teacherService")
public class TeacherServiceImpl implements TeacherServiceI {
private TeacherMapper teacherMapper;
public TeacherMapper getTeacherMapper() {
return teacherMapper;
}
@Autowired
public void setTeacherMapper(TeacherMapper teacherMapper) {
this.teacherMapper = teacherMapper;
}
@Override
public int deleteTeacherById(Integer teacherid) {
return teacherMapper.deleteByPrimaryKey(teacherid);
}
@Override
public int addTeacher(Teacher record) {
return teacherMapper.insert(record);
}
@Override
public int addTeacherSelective(Teacher record) {
return teacherMapper.insertSelective(record);
}
@Override
public Teacher getTeacherById(Integer teacherid) {
return teacherMapper.selectByPrimaryKey(teacherid);
}
@Override
public int updateTeacherByIdSelective(Teacher record) {
return teacherMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateTeacherById(Teacher record) {
return teacherMapper.updateByPrimaryKey(record);
}
@Override
public Teacher getTeacherByName(String teachername) {
return teacherMapper.selectByTeacherName(teachername);
}
@Override
public Teacher getTeacherByEmail(String teacheremail) {
return teacherMapper.selectByTeacherEmail(teacheremail);
}
@Override
public List<Teacher> getAllTeacher() {
return teacherMapper.getAllTeacher();
}
}
| [
"1196585084@qq.com"
] | 1196585084@qq.com |
5f71552da2a33c2a1174fe44ee8e7d1781a1b0a1 | 5085a2ebf69e84081c3bfeaadc93a0c87380a140 | /recursive/Test.java | dd8881d5cfc839ea744dcdd43417596eb96c209e | [] | no_license | Yannis098/Forjavastudy | d1a68859203d8d2e0c9157087d549fd861cb96d9 | 987542aebea958bc10ae98f2bceb8100122ca049 | refs/heads/master | 2021-08-26T08:16:11.713215 | 2017-11-22T13:45:24 | 2017-11-22T13:45:24 | 110,241,822 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,611 | 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 test;
import java.util.Scanner;
/**
*
* @author dell
*/
public class Test {
//这是关于尾递归的有关方法了解
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int n=input.nextInt();
int wow=factorial2(n,1);
System.out.println(wow);
}
/*
平常的递归程序 会造成大量的栈的垃圾堆叠 造成大量的浪费
而尾递归会很好的解决这个问题
*/
//首先考虑一般的阶乘code
public static int factorial(int mm)
{
if (mm==1) {
return 1;
}
else {
return factorial(mm-1)*mm;
}
}
/*
考虑这个递归程序 n=5的时候
5*fact(4)
5*4*fact(3)
5*4*3*fact(2)
5*4*3*2*fact(1)
在栈中调用下一个函数时 这些参数都会大量堆叠在栈中
产生垃圾数据
*/
//现在考虑尾递归
public static int factorial2(int n,int a)
{
if (n==0) {
return a;
}
else {
return factorial2(n-1,a*n);
}
}
/*
考虑尾递归 n=5
factorial2(4,5)
factorila2(3,20)
factorial2(2,60)
factorial2(1,120)
factorial2(0,120)=120 不产生辣鸡数据
*/
}
| [
"Rick_098@outlook.com"
] | Rick_098@outlook.com |
5e134e73d012379d6792cf70a0bbb5ebb4bf7750 | 3f475042958b9361cf2b110b4d6ab5389828d76e | /buildre/src/test/java/com/adamglowicki/FlightLeg/Mian.java | afe3197168e7b293fa6f9cd105d929af110c7275 | [] | no_license | AdamGlowicki/PatternsDesing | 08991fc2ebd03e32add561c4d5cc606d48645312 | f4c7e96078710a6677e3dcacd39b2d31c838a91a | refs/heads/master | 2020-05-09T22:28:00.911559 | 2019-04-25T08:58:20 | 2019-04-25T08:58:20 | 181,472,406 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 415 | java | package com.adamglowicki.FlightLeg;
public class Mian {
public static void main(String[] args) {
NewYorkFlightBuilder newYorkFlightBuilder = new NewYorkFlightBuilder();
FlightDirector flightDirector = new FlightDirector(newYorkFlightBuilder);
flightDirector.flightBuilder();
FlightLeg flightFeg = flightDirector.getFlightFeg();
System.out.println(flightFeg);
}
}
| [
"adamglowicki@wp.pl"
] | adamglowicki@wp.pl |
23fb2569ceae28cd51c0c457e4482758e0fb87d8 | 66a5696cc1a63841cf99502a33e9967717d3feca | /ReadPDF/src/com/JCEX/pojo/TrackMsg.java | b8ba5ec22675d418b85af2b5dbb155da3947b91b | [] | no_license | xiaocain/ReadPDF | 92ea748138781a075d2132caad6d55d00249975c | ccdced5e3130fdeea6f014fa1ce6d2c7e41ee814 | refs/heads/master | 2020-04-04T22:48:06.149883 | 2019-06-28T14:54:54 | 2019-06-28T14:54:54 | 156,331,930 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,830 | java | package com.JCEX.pojo;
public class TrackMsg{
private static final long serialVersionUID = 1L;
private int id;
private String DestinationNo;
private String flightno;
private String mailno;
private String times;
private String address;
private String track_code;
private String track_yw;
private String shippingstatus;
private String logisticsremark;
private String detailcode;
private String checkin_grossweight;
private String destination_countrycode;
private String country_isocode;
private String customer_reference_number;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getDestinationNo() {
return DestinationNo;
}
public void setDestinationNo(String destinationNo) {
DestinationNo = destinationNo;
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno;
}
public String getMailno() {
return mailno;
}
public void setMailno(String mailno) {
this.mailno = mailno;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getTimes() {
return times;
}
public void setTimes(String times) {
this.times = times;
}
public String getTrack_code() {
return track_code;
}
public void setTrack_code(String track_code) {
this.track_code = track_code;
}
public String getTrack_yw() {
return track_yw;
}
public void setTrack_yw(String track_yw) {
this.track_yw = track_yw;
}
public String getShippingstatus() {
return shippingstatus;
}
public void setShippingstatus(String shippingstatus) {
this.shippingstatus = shippingstatus;
}
public String getLogisticsremark() {
return logisticsremark;
}
public void setLogisticsremark(String logisticsremark) {
this.logisticsremark = logisticsremark;
}
public String getDetailcode() {
return detailcode;
}
public void setDetailcode(String detailcode) {
this.detailcode = detailcode;
}
public String getCheckin_grossweight() {
return checkin_grossweight;
}
public void setCheckin_grossweight(String checkin_grossweight) {
this.checkin_grossweight = checkin_grossweight;
}
public String getDestination_countrycode() {
return destination_countrycode;
}
public void setDestination_countrycode(String destination_countrycode) {
this.destination_countrycode = destination_countrycode;
}
public String getCountry_isocode() {
return country_isocode;
}
public void setCountry_isocode(String country_isocode) {
this.country_isocode = country_isocode;
}
public String getCustomer_reference_number() {
return customer_reference_number;
}
public void setCustomer_reference_number(String customer_reference_number) {
this.customer_reference_number = customer_reference_number;
}
}
| [
"1768366415@qq.com"
] | 1768366415@qq.com |
59d10970cc270770de4947dfc698a2a56484f223 | 8350af19ec48687f4669475fa0403a2f340bf748 | /legacy/TyrLib2/src/com/tyrlib2/graphics/compositors/DoFComposit.java | 39c9c7632449bf8e30d0a61d13c766be3eda7d9e | [
"MIT"
] | permissive | TyrfingX/TyrLib | cba252f507be5f0670e4b9bac79cf0f7e8d4ddae | f08e34f8cd9cc5514ba5297b5f69c692f8832099 | refs/heads/master | 2021-06-05T10:36:23.620234 | 2017-08-27T22:24:48 | 2017-08-27T22:24:48 | 5,216,810 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,724 | java | package com.tyrlib2.graphics.compositors;
import com.tyrlib2.graphics.renderer.ProgramManager;
import com.tyrlib2.graphics.renderer.TyrGL;
import com.tyrlib2.graphics.scene.SceneManager;
import com.tyrlib2.main.Media;
public class DoFComposit extends Composit {
private int depthTextureHandle;
private int textureWidthHandle;
private int textureHeightHandle;
public DoFComposit() {
ProgramManager.getInstance().createProgram(
"DOF",
Media.CONTEXT.getResourceID("postprocessing_vs", "raw"),
Media.CONTEXT.getResourceID("dof_fs", "raw"),
new String[]{"a_Position"}
);
int countBuffers = 1;
String[] shaders = { "DOF" };
init(new int[countBuffers], new int[countBuffers], new int[countBuffers], new int[countBuffers], shaders, "bgl_RenderedTexture");
depthTextureHandle = TyrGL.glGetUniformLocation(this.shaders[0].handle, "bgl_DepthTexture");
textureWidthHandle = TyrGL.glGetUniformLocation(this.shaders[0].handle, "bgl_RenderedTextureWidth");
textureHeightHandle = TyrGL.glGetUniformLocation(this.shaders[0].handle, "bgl_RenderedTextureHeight");
widths[0] = SceneManager.getInstance().getViewportWidth();
heights[0] = SceneManager.getInstance().getViewportHeight();
}
@Override
public void compose(int srcTexture) {
TyrGL.glActiveTexture(TyrGL.GL_TEXTURE0);
TyrGL.glBindTexture(TyrGL.GL_TEXTURE_2D, srcTexture);
TyrGL.glUniform1i(uTextureHandle[shaders.length-1], 0);
TyrGL.glActiveTexture(TyrGL.GL_TEXTURE1);
TyrGL.glBindTexture(TyrGL.GL_TEXTURE_2D, depthTexture);
TyrGL.glUniform1i(depthTextureHandle, 1);
TyrGL.glUniform1f(textureWidthHandle, widths[0]);
TyrGL.glUniform1f(textureHeightHandle, heights[0]);
quad.render();
}
}
| [
"saschamueller@gmx.net"
] | saschamueller@gmx.net |
23c7fef5f2123b4cb847561ee95c7db55c9e5cb8 | b238b4742f6261347758207a1ad9c6398ffcb7b4 | /Ujian Mingguan/UjianWeek3/src/main/java/com/juaracoding/main/SpringBootMysqlApplication.java | ebef298e2eb5fce214bfa3e683960d32381e4d68 | [] | no_license | wenang01/DediAjiWJuaraCodingB8 | 8b4f69ca1c628b507958ec8eae1ad6d606de4a97 | fba676a79c5af5a5d583a26be18b69fd4d2c6fdb | refs/heads/master | 2023-03-29T10:03:21.738851 | 2021-04-05T22:40:06 | 2021-04-05T22:40:06 | 348,564,153 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 331 | java | package com.juaracoding.main;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringBootMysqlApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootMysqlApplication.class, args);
}
}
| [
"wenangbackup@gmail.com"
] | wenangbackup@gmail.com |
9b1b663cad27e267e80c5b5a9f3371c6b264b6b0 | 88f28f6a534e48c42a54a9c34530e738003962eb | /factory-pattern/src/test/java/com/printsky/factorypattern/FactoryPatternApplicationTests.java | e40726f98559b94055dac4482d78045bd8baeebb | [] | no_license | julyhgr/design-patterns | 9959ef2739eb9550427d24e74da9332c6e2566ef | f8d871486aecaf6b275a18e0a59f5697a8986c12 | refs/heads/master | 2020-03-18T12:30:19.499859 | 2018-05-26T15:04:14 | 2018-05-26T15:04:14 | 134,729,629 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 361 | java | package com.printsky.factorypattern;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class FactoryPatternApplicationTests {
@Test
public void contextLoads() {
}
}
| [
"hgr48097@ly.com"
] | hgr48097@ly.com |
50bb167f1f65cc27bd06500bbb6b77617463acb6 | ae5eb1a38b4d22c82dfd67c86db73592094edc4b | /project151/src/test/java/org/gradle/test/performance/largejavamultiproject/project151/p759/Test15196.java | 73277df07c4fc9f682fd8498dd4daec6b1079a65 | [] | no_license | big-guy/largeJavaMultiProject | 405cc7f55301e1fd87cee5878a165ec5d4a071aa | 1cd6a3f9c59e9b13dffa35ad27d911114f253c33 | refs/heads/main | 2023-03-17T10:59:53.226128 | 2021-03-04T01:01:39 | 2021-03-04T01:01:39 | 344,307,977 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,181 | java | package org.gradle.test.performance.largejavamultiproject.project151.p759;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test15196 {
Production15196 objectUnderTest = new Production15196();
@Test
public void testProperty0() {
Production15193 value = new Production15193();
objectUnderTest.setProperty0(value);
assertEquals(value, objectUnderTest.getProperty0());
}
@Test
public void testProperty1() {
Production15194 value = new Production15194();
objectUnderTest.setProperty1(value);
assertEquals(value, objectUnderTest.getProperty1());
}
@Test
public void testProperty2() {
Production15195 value = new Production15195();
objectUnderTest.setProperty2(value);
assertEquals(value, objectUnderTest.getProperty2());
}
@Test
public void testProperty3() {
String value = "value";
objectUnderTest.setProperty3(value);
assertEquals(value, objectUnderTest.getProperty3());
}
@Test
public void testProperty4() {
String value = "value";
objectUnderTest.setProperty4(value);
assertEquals(value, objectUnderTest.getProperty4());
}
@Test
public void testProperty5() {
String value = "value";
objectUnderTest.setProperty5(value);
assertEquals(value, objectUnderTest.getProperty5());
}
@Test
public void testProperty6() {
String value = "value";
objectUnderTest.setProperty6(value);
assertEquals(value, objectUnderTest.getProperty6());
}
@Test
public void testProperty7() {
String value = "value";
objectUnderTest.setProperty7(value);
assertEquals(value, objectUnderTest.getProperty7());
}
@Test
public void testProperty8() {
String value = "value";
objectUnderTest.setProperty8(value);
assertEquals(value, objectUnderTest.getProperty8());
}
@Test
public void testProperty9() {
String value = "value";
objectUnderTest.setProperty9(value);
assertEquals(value, objectUnderTest.getProperty9());
}
} | [
"sterling.greene@gmail.com"
] | sterling.greene@gmail.com |
27eda4cb48a5e61a9108738b368b1565169e9287 | bddb35c6f69712cbacfc5a6700c36e125ebcdba1 | /src/main/java/interviews/test/Demo.java | e9d99062c90ed6eef32c58771920cf212d2f6dc2 | [] | no_license | wushaohao/DailyDetails | 97624dee0d731b47e1db2e7192e9f1eb2544b8c1 | 14abf1572351e282dad659f6e09f9c601aafc5e4 | refs/heads/master | 2022-10-30T15:47:27.950088 | 2022-10-08T06:38:15 | 2022-10-08T06:38:15 | 119,624,059 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 248 | java | package interviews.test;
/**
* @author:wuhao
* @description:测试
* @date:2020/5/9
*/
public class Demo {
public static void main(String[] args) {
int x = 4;
System.out.println("value is" + ((x > 4) ? 99.9 : 9));
}
}
| [
"wuhaodeyx@163.com"
] | wuhaodeyx@163.com |
7c932137d10a95aed4904d5cd418f6ad9b7cb825 | 72c0758ca1b6e5aa7e080ed9d068941e475f3d68 | /src/Person.java | 188933711f827e0bef6d313e1f85ae62bad6448d | [] | no_license | wojga476/zadanie-9.1 | 9ed71c048c84001f9d71f82bc25695b2833446a9 | 7099e3b7a425fb02a499271ce77eb58f5cba5726 | refs/heads/master | 2020-03-22T02:08:53.906990 | 2018-07-02T13:30:35 | 2018-07-02T13:30:35 | 139,352,428 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,433 | java | public class Person {
private String firstName;
private String lastName;
private int age;
private int pesel;
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public int getPesel() {
return pesel;
}
public void setPesel(int pesel) {
this.pesel = pesel;
}
public Person(String firstName, String lastName, int age, int pesel) throws NameUndefinedException, IncorrectAgeException {
if (getFirstName() == null || getFirstName().length()<3) {
throw new NameUndefinedException();
}
if (getLastName() == null || getLastName().length()<3){
throw new NameUndefinedException();
}
if (getAge() <1){
throw new IncorrectAgeException();
}
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
this.pesel = pesel;
}
public void printInfo(){
System.out.println("Imie: "+firstName +" Nazwisko: "+ lastName + " Wiek: "+ age + " Numer pesel: "+pesel);
}
}
| [
"wojga476@gmail.com"
] | wojga476@gmail.com |
d6d558526f7a82578d59e0e5a07e4164ea51e35f | 20de3df226c7a678498f7342cb10350bee72f71e | /src/com/gestionTemps/beans/Liste.java | 00191225c1209532591aba06eb1078dce2c4c52c | [] | no_license | youssefelhanafi/GestionDeProjet | bcbf2efbe0ab4b922e6d876368d6ce6c8fc91644 | 146f67153a418e492bfe73bdd051c48f8a0a7da1 | refs/heads/master | 2020-04-07T06:40:39.284180 | 2018-11-19T01:51:15 | 2018-11-19T01:51:15 | 158,146,179 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,229 | java | package com.gestionTemps.beans;
import java.util.List;
public class Liste {
private Long idListe;
private String nomListe;
private String descriptionListe;
private List<Tache> tachesDeLaListe;
private Long tableauID;
public Long getIdListe() {
return idListe;
}
public void setIdListe(Long idListe) {
this.idListe = idListe;
}
public String getNomListe() {
return nomListe;
}
public void setNomListe(String nomListe) {
this.nomListe = nomListe;
}
public String getDescriptionListe() {
return descriptionListe;
}
public void setDescriptionListe(String descriptionListe) {
this.descriptionListe = descriptionListe;
}
public List<Tache> getTachesDeLaListe() {
return tachesDeLaListe;
}
public void setTachesDeLaListe(List<Tache> tachesDeLaListe) {
this.tachesDeLaListe = tachesDeLaListe;
}
public Long getTableauID() {
return tableauID;
}
public void setTableauID(Long tableauID) {
this.tableauID = tableauID;
}
public Liste() {
super();
// TODO Auto-generated constructor stub
}
public Liste(String nomListe, String descriptionListe, Long tableauID) {
super();
this.nomListe = nomListe;
this.descriptionListe = descriptionListe;
this.tableauID = tableauID;
}
}
| [
"youssef.elhanafi2014@gmail.com"
] | youssef.elhanafi2014@gmail.com |
bfe7fb5896e737b315742ab087a3f28c525fa238 | 029a49554ee48162a8e91cd4dbac915a5e76e743 | /springmvc/src/main/java/com/cn/solomon/study/sjms/strategy/FlyBehavior.java | 80fdff66f8498dc66f8f85b90bbd519c2d84ce3c | [] | no_license | KingCheng2007/springmvc-mybatis | 0a4ac1c25fe42e9a1bc15a1bad3dac5914d40607 | a10272689d92cda77807e49fa54f3e9c184eca4f | refs/heads/master | 2021-01-10T16:43:58.503825 | 2018-08-21T07:54:27 | 2018-08-21T07:54:27 | 54,264,704 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 298 | java | package com.cn.solomon.study.sjms.strategy;
/**
* 会飞的行为,一组行为
* <p>Title:FlyBehavior</p>
* <p>Description:</p>
* <p>Company:</p>
* @author CMIN
* @date 2018年8月18日 上午11:49:29
* @version v1.0
*/
public interface FlyBehavior {
public void fly();
}
| [
"304159787@qq.com"
] | 304159787@qq.com |
e84803efff0739e457e6467abce32a56c0cf3092 | 757292483574e75c40698f2fa674b2b611d0e6ac | /src/main/java/org/casual/yummy/service/impl/MailServiceImpl.java | 07af04fdd2334e9c8a89c668ab3fd1280123a6b9 | [] | no_license | WangChuanYuan/Yummy | e5ee1e3bc9699abf315764ca360bb27897ab5d26 | c30591f62646297a339eb5e55c3e3f8525da9eae | refs/heads/master | 2020-04-18T06:45:05.965394 | 2019-03-19T02:42:23 | 2019-03-19T02:42:23 | 167,335,513 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,013 | java | package org.casual.yummy.service.impl;
import org.casual.yummy.service.MailService;
import org.casual.yummy.utils.message.Code;
import org.casual.yummy.utils.message.ResultMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.stereotype.Service;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.Context;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import java.util.Random;
@Service
public class MailServiceImpl implements MailService {
@Autowired
private JavaMailSender sender;
@Autowired
private TemplateEngine templateEngine;
@Value("${spring.mail.username}")
private String from;
private String verifyCode(int len) {
Random random = new Random();
String str = "";
for (int i = 0; i < len; i++) {
int key = random.nextInt(3);
switch (key) {
case 0:
int code1 = random.nextInt(10);
str += code1;
break;
case 1:
char code2 = (char) (random.nextInt(26) + 65);
str += code2;
break;
case 2:
char code3 = (char) (random.nextInt(26) + 97);
str += code3;
break;
}
}
return str;
}
private ResultMsg sendHtmlMail(String to, String subject, String content) {
MimeMessage message = sender.createMimeMessage();
try {
MimeMessageHelper helper = new MimeMessageHelper(message, true);
helper.setFrom(from);
helper.setTo(to);
helper.setSubject(subject);
helper.setText(content, true);
sender.send(message);
return new ResultMsg("邮件发送成功", Code.SUCCESS);
} catch (MessagingException e) {
return new ResultMsg("邮件发送失败", Code.FAILURE);
}
}
@Override
public String sendRegisterMail(String email) {
String verifyCode = verifyCode(15);
Context context = new Context();
context.setVariable("verifyCode", verifyCode);
String emailContent = templateEngine.process("ActivateMail", context);
if (sendHtmlMail(email, "Yummy!注册验证码", emailContent).getCode() == Code.SUCCESS)
return verifyCode;
else return null;
}
@Override
public void sendSimpleMail(String to, String subject, String content) {
SimpleMailMessage message = new SimpleMailMessage();
message.setFrom(from);
message.setTo(to);
message.setSubject(subject);
message.setText(content);
sender.send(message);
}
}
| [
"161250135@smail.nju.edu.cn"
] | 161250135@smail.nju.edu.cn |
2245062786169d446679090cdfb3e235e1586087 | b74ced03fae6fbe125c980d3de5f85feee7ace87 | /src/com/yidao/jdbc/designpattern/visitor/UserVIP.java | 9574b653f1d32eb192744b63e4ac7c0c3c6e58cd | [] | no_license | hanks7/JavaWebLearn | f1749734d2bac9fd658c0841a1ccb7c81e0aedd6 | 808582fe3bc7d98b3eb0b6a843aadbf15947b4b2 | refs/heads/master | 2021-07-06T01:00:10.694566 | 2020-09-10T02:32:36 | 2020-09-10T02:32:36 | 166,959,565 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 329 | java | package com.yidao.jdbc.designpattern.visitor;
//VIP用户,具体元素
public class UserVIP implements User{
String estimation;
public UserVIP(String estimation){
this.estimation = estimation;
}
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
String getEstimation(){
return estimation;
}
}
| [
"474664736@qq.com"
] | 474664736@qq.com |
991e3ea14357d86197f0d74d4ae93f937c6c089e | 5ec0c02f166e11187f1157f65f7243b765b457eb | /src/mysql/motivote/Vote.java | ab4f868863af9086fa0e87cf2069d70b82d527f6 | [] | no_license | StreamScapeRS/Server | dc977b91edf1045de6b33008620b0f6f52f41f96 | 25195ec2520d4eb8afc691da5ed874e0b29d2194 | refs/heads/master | 2020-04-17T02:00:50.707649 | 2019-01-17T01:19:34 | 2019-01-17T01:19:34 | 166,111,989 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 369 | java | package mysql.motivote;
public class Vote extends Incentive {
private final int siteID;
public boolean messageSent;
@SuppressWarnings("rawtypes")
public Vote(Motivote motivote, int voteID, int siteID, String username, String ip) {
super(motivote, voteID, username, ip);
this.siteID = siteID;
}
public int siteID() {
return siteID;
}
}
| [
"Owner@dreamscape.ca"
] | Owner@dreamscape.ca |
af2b41c9b3ee1e89f16de9f3534574a21f2ece40 | 9d32980f5989cd4c55cea498af5d6a413e08b7a2 | /A92s_10_0_0/src/main/java/android/hardware/display/WifiDisplayStatus.java | 54dba5a8ff28240a3ed6674c9ab9f7872952d711 | [] | no_license | liuhaosource/OppoFramework | e7cc3bcd16958f809eec624b9921043cde30c831 | ebe39acabf5eae49f5f991c5ce677d62b683f1b6 | refs/heads/master | 2023-06-03T23:06:17.572407 | 2020-11-30T08:40:07 | 2020-11-30T08:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,848 | java | package android.hardware.display;
import android.annotation.UnsupportedAppUsage;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Arrays;
public final class WifiDisplayStatus implements Parcelable {
public static final Parcelable.Creator<WifiDisplayStatus> CREATOR = new Parcelable.Creator<WifiDisplayStatus>() {
/* class android.hardware.display.WifiDisplayStatus.AnonymousClass1 */
@Override // android.os.Parcelable.Creator
public WifiDisplayStatus createFromParcel(Parcel in) {
WifiDisplay activeDisplay;
int featureState = in.readInt();
int scanState = in.readInt();
int activeDisplayState = in.readInt();
if (in.readInt() != 0) {
activeDisplay = WifiDisplay.CREATOR.createFromParcel(in);
} else {
activeDisplay = null;
}
WifiDisplay[] displays = WifiDisplay.CREATOR.newArray(in.readInt());
for (int i = 0; i < displays.length; i++) {
displays[i] = WifiDisplay.CREATOR.createFromParcel(in);
}
return new WifiDisplayStatus(featureState, scanState, activeDisplayState, activeDisplay, displays, WifiDisplaySessionInfo.CREATOR.createFromParcel(in));
}
@Override // android.os.Parcelable.Creator
public WifiDisplayStatus[] newArray(int size) {
return new WifiDisplayStatus[size];
}
};
@UnsupportedAppUsage
public static final int DISPLAY_STATE_CONNECTED = 2;
@UnsupportedAppUsage
public static final int DISPLAY_STATE_CONNECTING = 1;
@UnsupportedAppUsage
public static final int DISPLAY_STATE_NOT_CONNECTED = 0;
public static final int FEATURE_STATE_DISABLED = 1;
public static final int FEATURE_STATE_OFF = 2;
@UnsupportedAppUsage
public static final int FEATURE_STATE_ON = 3;
public static final int FEATURE_STATE_UNAVAILABLE = 0;
@UnsupportedAppUsage
public static final int SCAN_STATE_NOT_SCANNING = 0;
public static final int SCAN_STATE_SCANNING = 1;
@UnsupportedAppUsage
private final WifiDisplay mActiveDisplay;
private final int mActiveDisplayState;
@UnsupportedAppUsage
private final WifiDisplay[] mDisplays;
private final int mFeatureState;
private final int mScanState;
private final WifiDisplaySessionInfo mSessionInfo;
public WifiDisplayStatus() {
this(0, 0, 0, null, WifiDisplay.EMPTY_ARRAY, null);
}
public WifiDisplayStatus(int featureState, int scanState, int activeDisplayState, WifiDisplay activeDisplay, WifiDisplay[] displays, WifiDisplaySessionInfo sessionInfo) {
if (displays != null) {
this.mFeatureState = featureState;
this.mScanState = scanState;
this.mActiveDisplayState = activeDisplayState;
this.mActiveDisplay = activeDisplay;
this.mDisplays = displays;
this.mSessionInfo = sessionInfo != null ? sessionInfo : new WifiDisplaySessionInfo();
return;
}
throw new IllegalArgumentException("displays must not be null");
}
@UnsupportedAppUsage
public int getFeatureState() {
return this.mFeatureState;
}
@UnsupportedAppUsage
public int getScanState() {
return this.mScanState;
}
@UnsupportedAppUsage
public int getActiveDisplayState() {
return this.mActiveDisplayState;
}
@UnsupportedAppUsage
public WifiDisplay getActiveDisplay() {
return this.mActiveDisplay;
}
@UnsupportedAppUsage
public WifiDisplay[] getDisplays() {
return this.mDisplays;
}
public WifiDisplaySessionInfo getSessionInfo() {
return this.mSessionInfo;
}
@Override // android.os.Parcelable
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.mFeatureState);
dest.writeInt(this.mScanState);
dest.writeInt(this.mActiveDisplayState);
if (this.mActiveDisplay != null) {
dest.writeInt(1);
this.mActiveDisplay.writeToParcel(dest, flags);
} else {
dest.writeInt(0);
}
dest.writeInt(this.mDisplays.length);
for (WifiDisplay display : this.mDisplays) {
display.writeToParcel(dest, flags);
}
this.mSessionInfo.writeToParcel(dest, flags);
}
@Override // android.os.Parcelable
public int describeContents() {
return 0;
}
public String toString() {
return "WifiDisplayStatus{featureState=" + this.mFeatureState + ", scanState=" + this.mScanState + ", activeDisplayState=" + this.mActiveDisplayState + ", activeDisplay=" + this.mActiveDisplay + ", displays=" + Arrays.toString(this.mDisplays) + ", sessionInfo=" + this.mSessionInfo + "}";
}
}
| [
"dstmath@163.com"
] | dstmath@163.com |
fffc41d5d88474fed6b6d01228d019bdd1937fc4 | 6a615153b84d8e0f90e952e3a70154c0b66674e8 | /MezuakAzterketa2021-master/src/main/java/ehu/isad/controllers/db/ProbaDB.java | 78aafa43a5927a17ff74f1d31a7ff8aab2ed06fd | [] | no_license | Kerman-Sanjuan/ISAD | 46b2f548404b4e3a634796119678208ec6fe76d2 | 15e05f3f547749db7aff2f0a0c9d81ead45c5563 | refs/heads/main | 2023-03-03T22:57:15.764107 | 2021-02-08T19:17:28 | 2021-02-08T19:17:28 | 293,519,667 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,813 | java | package ehu.isad.controllers.db;
import ehu.isad.model.MezuaModel;
import ehu.isad.model.ProbaModel;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class ProbaDB{
private static final ProbaDB instance = new ProbaDB();
private static final DBController dbcontroller = DBController.getController();
private ProbaDB() {}
public static ProbaDB getInstance() {
return instance;
}
public void addToDB(){
String query = "INSERT INTO xxxx(xx,xx,xx) VALUES ('xx','xx','xx')";
dbcontroller.execSQL(query);
}
public ObservableList<MezuaModel> getFromDB(){
String query = "SELECT * FROM DirectMessage";
ObservableList<MezuaModel> lista = FXCollections.observableArrayList();
ResultSet rs = dbcontroller.execSQL(query);
try {
while (rs.next()) {
String nor = rs.getString("fromUser");
String nori = rs.getString("toUser");
String mezua = rs.getString("message");
lista.add(new MezuaModel(nor,nori,mezua));
}
} catch(SQLException e){
e.printStackTrace();
}
return lista;
}
public void gordeDatuBasean(ObservableList<MezuaModel> lista) {
String query = "Delete from DirectMessage";
DBController.getController().execSQL(query);
for (MezuaModel mezua : lista) {
query = "insert into DirectMessage(fromUser,toUser,message) values('"+mezua.getNor()+"','"+mezua.getNori()+"','"+mezua.getMezua()+"');";
System.out.println(query);
DBController.getController().execSQL(query);
}
}
}
| [
"kermansanjuanmalax@gmail.com"
] | kermansanjuanmalax@gmail.com |
b9a0e476ad3a3906dac3d2a026e0c319eb50c693 | 0af8b92686a58eb0b64e319b22411432aca7a8f3 | /large-multiproject/project2/src/main/java/org/gradle/test/performance2_3/Production2_216.java | 2b6c69e6c75c93c9cf73be9b0f6cabe34ea6d2ef | [] | no_license | gradle/performance-comparisons | b0d38db37c326e0ce271abebdb3c91769b860799 | e53dc7182fafcf9fedf07920cbbea8b40ee4eef4 | refs/heads/master | 2023-08-14T19:24:39.164276 | 2022-11-24T05:18:33 | 2022-11-24T05:18:33 | 80,121,268 | 17 | 15 | null | 2022-09-30T08:04:35 | 2017-01-26T14:25:33 | null | UTF-8 | Java | false | false | 300 | java | package org.gradle.test.performance2_3;
public class Production2_216 extends org.gradle.test.performance1_3.Production1_216 {
private final String property;
public Production2_216() {
this.property = "foo";
}
public String getProperty() {
return property;
}
}
| [
"cedric.champeau@gmail.com"
] | cedric.champeau@gmail.com |
9440b034a2a4eec9ea08d3cdbe049dc8fe096032 | dc4abe5cbc40f830725f9a723169e2cc80b0a9d6 | /src/main/java/com/sgai/property/alm/vo/Slip.java | 234380d17cd397c9cd5d00fdc6994f1f764a8b28 | [] | no_license | ppliuzf/sgai-training-property | 0d49cd4f3556da07277fe45972027ad4b0b85cb9 | 0ce7bdf33ff9c66f254faec70ea7eef9917ecc67 | refs/heads/master | 2020-05-27T16:25:57.961955 | 2019-06-03T01:12:51 | 2019-06-03T01:12:51 | 188,697,303 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,783 | java | package com.sgai.property.alm.vo;
import java.math.BigDecimal;
/**
* 花滑/速滑.
*
* @author ppliu
* created in 2019/1/18 13:31
*/
public class Slip {
/** 总能耗(电). */
private BigDecimal totalelec;
/** 总能耗(水). */
private BigDecimal totalWater;
/** 平均温度. */
private BigDecimal averageT;
/** 平均PM2.5. */
private BigDecimal averagePM25;
/** 室内平均湿度. */
private BigDecimal averageH;
/** 室内平均二氧化碳浓度. */
private BigDecimal averageCO2;
/** 制冰机开启量. */
private BigDecimal astOpenNum;
/** 新风机组开启量. */
private BigDecimal atfuOpenNum;
/** 风机盘管. */
private BigDecimal atfcOpenNum;
/** 热转轮机组. */
private BigDecimal hotrunneropenNum;
/** 当日累计能耗(电). */
private BigDecimal totalelecDay;
/** 当日累计能耗(水). */
private BigDecimal totalWaterDay;
/** 空调机组开启量. */
private BigDecimal acOpenNum;
/** 电梯的开启数/总数. */
private BigDecimal elNum;
/** 摄像头的在线/离线数量. */
private BigDecimal vsNum;
public BigDecimal getTotalelec() {
return totalelec;
}
public void setTotalelec(BigDecimal totalelec) {
this.totalelec = totalelec;
}
public BigDecimal getTotalWater() {
return totalWater;
}
public void setTotalWater(BigDecimal totalWater) {
this.totalWater = totalWater;
}
public BigDecimal getAverageT() {
return averageT;
}
public void setAverageT(BigDecimal averageT) {
this.averageT = averageT;
}
public BigDecimal getAveragePM25() {
return averagePM25;
}
public void setAveragePM25(BigDecimal averagePM25) {
this.averagePM25 = averagePM25;
}
public BigDecimal getAverageH() {
return averageH;
}
public void setAverageH(BigDecimal averageH) {
this.averageH = averageH;
}
public BigDecimal getAverageCO2() {
return averageCO2;
}
public void setAverageCO2(BigDecimal averageCO2) {
this.averageCO2 = averageCO2;
}
public BigDecimal getAstOpenNum() {
return astOpenNum;
}
public void setAstOpenNum(BigDecimal astOpenNum) {
this.astOpenNum = astOpenNum;
}
public BigDecimal getAtfuOpenNum() {
return atfuOpenNum;
}
public void setAtfuOpenNum(BigDecimal atfuOpenNum) {
this.atfuOpenNum = atfuOpenNum;
}
public BigDecimal getAtfcOpenNum() {
return atfcOpenNum;
}
public void setAtfcOpenNum(BigDecimal atfcOpenNum) {
this.atfcOpenNum = atfcOpenNum;
}
public BigDecimal getHotrunneropenNum() {
return hotrunneropenNum;
}
public void setHotrunneropenNum(BigDecimal hotrunneropenNum) {
this.hotrunneropenNum = hotrunneropenNum;
}
public BigDecimal getTotalelecDay() {
return totalelecDay;
}
public void setTotalelecDay(BigDecimal totalelecDay) {
this.totalelecDay = totalelecDay;
}
public BigDecimal getTotalWaterDay() {
return totalWaterDay;
}
public void setTotalWaterDay(BigDecimal totalWaterDay) {
this.totalWaterDay = totalWaterDay;
}
public BigDecimal getAcOpenNum() {
return acOpenNum;
}
public void setAcOpenNum(BigDecimal acOpenNum) {
this.acOpenNum = acOpenNum;
}
public BigDecimal getElNum() {
return elNum;
}
public void setElNum(BigDecimal elNum) {
this.elNum = elNum;
}
public BigDecimal getVsNum() {
return vsNum;
}
public void setVsNum(BigDecimal vsNum) {
this.vsNum = vsNum;
}
}
| [
"ppliuzf@sina.com"
] | ppliuzf@sina.com |
bc4c8334a7dc8a4f68f672cdfae93aca67c09ace | 421b70ebdffac67ffeb24cbc7e99e60d12614893 | /Locally/app/src/main/java/com/example/mishr/locally/MainActivity.java | b778c97475d17ae21add86991559396bcf965222 | [] | no_license | mishra-atul5001/Locally | 6056d5362a8a8c468f754a7d098ded65e4ff13fd | 74adbf7ccd51c8b93b59180f52b755d14980d2d9 | refs/heads/master | 2021-04-25T09:05:26.504389 | 2018-03-13T03:39:18 | 2018-03-13T03:39:18 | 122,189,976 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,186 | java | package com.example.mishr.locally;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Vibrator;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
EditText name,city,email,contact;
Button insert,view,home_activity,clear;
String make_a_call;
public static final String nameKey = "nameKey";
public static final String cityKey = "cityKey";
public static final String contactKey = "contactKey";
public static final String emailKey = "emailKey";
public static final String mainKey = "mainKey";
private static long back_pressed;
SharedPreferences sharedPreferences;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
name = findViewById(R.id.name);
city = findViewById(R.id.city);
email =findViewById(R.id.email);
contact = findViewById(R.id.Contact);
insert = findViewById(R.id.insert_button);
view = findViewById(R.id.view_button);
home_activity = findViewById(R.id.home_button);
clear=findViewById(R.id.clear);
insert.setOnClickListener(this);
view.setOnClickListener(this);
home_activity.setOnClickListener(this);
sharedPreferences = getSharedPreferences(mainKey,MODE_PRIVATE);
// call again(); // Method used to provide some data when activity is opened 2nd Time..!!
clear.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
name.setText("");
email.setText("");
city.setText("");
contact.setText("");
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menuus,menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id==R.id.rate_it) {
// Toast.makeText(this, "Rate us On Playstore..!!", Toast.LENGTH_SHORT).show();
Intent rating = new Intent(this,RatingActivity.class);
startActivity(rating);
}
else if (id==R.id.settings) {
// Toast.makeText(this, "Settings will be out soon..!!", Toast.LENGTH_SHORT).show();
Intent settings = new Intent(this,SettingsActivity.class);
startActivity(settings);
}
else if (id==R.id.make_a_call){
Intent calling = new Intent(Intent.ACTION_CALL);
make_a_call = contact.getText().toString();
if (make_a_call.trim().isEmpty()){
calling.setData(Uri.parse("tel:7905993107"));
}
else {
calling.setData(Uri.parse("tel:" + make_a_call));
}
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE)!= PackageManager.PERMISSION_GRANTED){
Toast.makeText(this, "Please Grant the Permission to make a call..!!!", Toast.LENGTH_SHORT).show();
requestPermission();
}
else {
startActivity(calling);
}
Vibrator v = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE);
long[] pattern = {0,100,1000,200,3000};
v.vibrate(pattern,-1);
Toast.makeText(this, "Calling..Please wait..!!", Toast.LENGTH_SHORT).show();
}
return true;
}
private void requestPermission() {
ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.CALL_PHONE},1);
}
@Override
public void onClick(View view) {
switch (view.getId()){
case R.id.insert_button:
String NAME= name.getText().toString();
String CITY= city.getText().toString();
String EMAIL= email.getText().toString();
String CONTACT= contact.getText().toString();
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString(nameKey,NAME);
editor.putString(emailKey,EMAIL);
editor.putString(cityKey,CITY);
editor.putString(contactKey,CONTACT);
editor.commit();
Toast.makeText(this, "Data Inserted Successfully", Toast.LENGTH_SHORT).show();
Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(500);
name.setText("");
email.setText("");
city.setText("");
contact.setText("");
break;
case R.id.view_button:
sharedPreferences = getSharedPreferences(mainKey,MODE_PRIVATE);
if (sharedPreferences.contains(nameKey)){
name.setText(sharedPreferences.getString(nameKey,"Default Name"));
}
if (sharedPreferences.contains(emailKey)){
email.setText(sharedPreferences.getString(emailKey,"Default Email"));
}
if (sharedPreferences.contains(cityKey)){
city.setText(sharedPreferences.getString(cityKey,"Default City"));
}
if (sharedPreferences.contains(contactKey)){
contact.setText(sharedPreferences.getString(contactKey,"Default Contact"));
}
break;
case R.id.home_button:
Intent intent = new Intent(getApplicationContext(),Home_Activity.class);
startActivity(intent);
break;
}
}
/* public void callagain(){
if (sharedPreferences.contains(nameKey)){
name.setText(sharedPreferences.getString(nameKey,"Default Name"));
}
if (sharedPreferences.contains(emailKey)){
email.setText(sharedPreferences.getString(emailKey,"Default Email"));
}
if (sharedPreferences.contains(cityKey)){
city.setText(sharedPreferences.getString(cityKey,"Default City"));
}
if (sharedPreferences.contains(contactKey)){
contact.setText(sharedPreferences.getString(contactKey,"Default Contact"));
}
} */
@Override
public void onBackPressed(){
if (back_pressed + 2000 > System.currentTimeMillis()){
super.onBackPressed();
}
else{
Toast.makeText(getBaseContext(), "Press once again to exit", Toast.LENGTH_SHORT).show();
back_pressed = System.currentTimeMillis();
}
}
}
| [
"atul.mishra5001@gmail.com"
] | atul.mishra5001@gmail.com |
f0010257097ac63feb2f0a9ca3c7a5be6de09da0 | 59530ab9b3ee08a30865cd56ec924071c1fbda65 | /src/main/java/com/github/zhangquanli/qcloud/im/module/user_sig/HmacSha256TlsSigStrategy.java | 25dd3e6cc8bab945d3dd8ea68f6fc50dd665e9c5 | [] | no_license | StringZhang/qcloud-im-spring-boot-starter | 30bba6c135f4f1e4ed4a6912fa4849e4a82edfa9 | 51deb6c70dfd2c29ea083b52800935093ce54f96 | refs/heads/master | 2022-12-06T01:10:17.615417 | 2019-11-07T08:40:25 | 2019-11-07T08:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 467 | java | package com.github.zhangquanli.qcloud.im.module.user_sig;
import com.tencentyun.TLSSigAPIv2;
/**
* HmacSha256TlsSigStrategy
*
* @author zhangquanli
*/
public class HmacSha256TlsSigStrategy implements TlsSigStrategy {
@Override
public String genSig(long sdkAppId, String privateKey, long expire, String identifier) {
TLSSigAPIv2 tlsSigAPIv2 = new TLSSigAPIv2(sdkAppId, privateKey);
return tlsSigAPIv2.genSig(identifier, expire);
}
}
| [
"502624709@qq.com"
] | 502624709@qq.com |
1f640e0617b2821885884bc9eb8570c3cb46ed87 | b143cfe7f4a23141ddd325f958d8abbe25cf71a5 | /jMonkeyEngine2.0/junit/com/jme/math/TestVector3f.java | 8069166884a873a5347d22f7287865a7f130ed1f | [] | no_license | qq1053831109/learnJME3 | 0ecb6b5b0f761b6aad7d1c6206b100ef6b4b3595 | 27063462a0387579382979a8e6ac671f10655060 | refs/heads/master | 2020-12-03T15:48:15.931691 | 2017-02-25T06:43:27 | 2017-02-25T06:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,736 | java | package com.jme.math;
public class TestVector3f extends junit.framework.TestCase {
private Vector3f vector1;
private Vector3f vector2;
protected void setUp() throws Exception {
vector1 = new Vector3f(1.0f, 2.0f, 3.0f);
vector2 = new Vector3f(4.0f, 5.0f, 6.0f);
}
public void testCreation() {
Vector3f vec1 = new Vector3f();
testVectorEquals("Init zero", vec1, 0.0f, 0.0f, 0.0f);
Vector3f vec2 = new Vector3f(1.0f, 2.0f, 3.0f);
testVectorEquals("Init something", vec2, 1.0f, 2.0f, 3.0f);
Vector3f vec3 = new Vector3f(vec2);
testVectorEquals("Init clone", vec3, 1.0f, 2.0f, 3.0f);
}
public void testSet() {
Vector3f vec1 = new Vector3f();
vec1.set(1.0f, 2.0f, 3.0f);
testVectorEquals("Set something", vec1, 1.0f, 2.0f, 3.0f);
vec1.set(1, 5.0f);
testVectorEquals("Set index", vec1, 1.0f, 5.0f, 3.0f);
}
public void testEquals() {
Vector3f vec1 = new Vector3f(1.0f, 2.0f, 3.0f);
Vector3f vec2 = new Vector3f(1.0f, 2.0f, 3.0f);
assertTrue("Equal vectors", vec1.equals(vec2));
Vector3f vec3 = new Vector3f(4.0f, 5.0f, 6.0f);
assertFalse("Not equal vectors", vec2.equals(vec3));
}
public void testAdd() {
Vector3f result = vector1.add(vector2);
testVectorEquals("Add", result, 5.0f, 7.0f, 9.0f);
result = result.add(-1.0f, 1.0f, 1.0f);
testVectorEquals("Add", result, 4.0f, 8.0f, 10.0f);
result.add(vector2, result);
testVectorEquals("Add", result, 8.0f, 13.0f, 16.0f);
}
public void testAddLocal() {
Vector3f result = new Vector3f(vector1);
result.addLocal(vector2);
testVectorEquals("Addlocal", result, 5.0f, 7.0f, 9.0f);
result.addLocal(-1.0f, 1.0f, 1.0f);
testVectorEquals("Addlocal", result, 4.0f, 8.0f, 10.0f);
}
public void testSubtract() {
Vector3f result = vector1.subtract(vector2);
testVectorEquals("Subtract", result, -3.0f, -3.0f, -3.0f);
result = result.subtract(-1.0f, 1.0f, 1.0f);
testVectorEquals("Subtract", result, -2.0f, -4.0f, -4.0f);
result.subtract(vector2, result);
testVectorEquals("Subtract", result, -6.0f, -9.0f, -10.0f);
}
public void testSubtractLocal() {
Vector3f result = new Vector3f(vector1);
result.subtractLocal(vector2);
testVectorEquals("Subtractlocal", result, -3.0f, -3.0f, -3.0f);
result.subtractLocal(-1.0f, 1.0f, 1.0f);
testVectorEquals("Subtractlocal", result, -2.0f, -4.0f, -4.0f);
}
public void testMult() {
Vector3f result = vector1.mult(vector2);
testVectorEquals("Mult", result, 4.0f, 10.0f, 18.0f);
result = result.mult(2.0f);
testVectorEquals("Mult", result, 8.0f, 20.0f, 36.0f);
result.mult(vector2, result);
testVectorEquals("Mult", result, 32.0f, 100.0f, 216.0f);
}
public void testMultLocal() {
Vector3f result = new Vector3f(vector1);
result.multLocal(vector2);
testVectorEquals("Multlocal", result, 4.0f, 10.0f, 18.0f);
result.multLocal(2.0f);
testVectorEquals("Multlocal", result, 8.0f, 20.0f, 36.0f);
}
public void testCross() {
Vector3f result = vector1.cross(vector2);
testVectorEquals("Cross", result, -3.0f, 6.0f, -3.0f);
}
public void testLength() {
float result = vector1.lengthSquared();
assertEquals("Length", 14.0f, result, FastMath.FLT_EPSILON);
result = vector1.length();
assertEquals("Length", 3.7416575f, result, FastMath.FLT_EPSILON);
}
private void testVectorEquals(String test, Vector3f v, float x, float y,
float z) {
boolean success = true;
if (Float.compare(x, v.x) != 0)
success = false;
if (Float.compare(y, v.y) != 0)
success = false;
if (Float.compare(z, v.z) != 0)
success = false;
if (!success) {
fail(test + " Excpected [" + x + ", " + y + ", " + z
+ "] but was [" + v.x + ", " + v.y + ", " + v.z + "]");
}
}
private void testVectorEquals(String test, Vector3f v1, Vector3f v2) {
boolean success = true;
if (Float.compare(v1.x, v2.x) != 0)
success = false;
if (Float.compare(v1.y, v2.y) != 0)
success = false;
if (Float.compare(v1.z, v2.z) != 0)
success = false;
if (!success) {
fail(test + " Excpected [" + v1.x + ", " + v1.y + ", " + v1.z
+ "] but was [" + v2.x + ", " + v2.y + ", " + v2.z + "]");
}
}
}
| [
"115050813@qq.com"
] | 115050813@qq.com |
c6f17741e4663bafaf4b0629105a7adf790317c1 | f9953c628b8a4055fd2628d9c74fef82b0ceef94 | /gulimall-member/src/main/java/com/nobody/gulimall/member/GulimallMemberApplication.java | 0d8e0065d9827c7cb9c4e7b4ee5fe756db2137ed | [] | no_license | FightWithoutFire/gulimall | 340187acfbafecbbb753c2a81f9fe4cb4f70ca88 | 58837bef5da8754f7eb30a9eacdacb76fcd180f0 | refs/heads/main | 2023-02-08T11:00:21.137776 | 2021-01-01T08:11:47 | 2021-01-01T08:11:47 | 325,910,732 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 347 | java | package com.nobody.gulimall.member;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class GulimallMemberApplication {
public static void main(String[] args) {
SpringApplication.run(GulimallMemberApplication.class, args);
}
}
| [
"yingbinxu@outlook.com"
] | yingbinxu@outlook.com |
a0322784e1843666071fc8d909d69d55296dd802 | 65947ac8db1b452997c5b9542a4b8fce9c98a550 | /KoInMaster/src/main/java/GUI/Block/BlockGUI.java | 8a5dd8a4814c3e3f85c3f76dd153f6a3a85a18f6 | [] | no_license | yali30814936/KoInMaster | 1ba4eb92c63db3026517c8f91b8bbe21f3f0d38c | 045e9a89a1a7a94dff04d7796621e1c7d0274d61 | refs/heads/main | 2023-06-09T06:08:51.906797 | 2021-06-28T13:29:26 | 2021-06-28T13:29:26 | 367,792,821 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,990 | java | package GUI.Block;
import Core.Data;
import Posts.PostList;
import javax.swing.*;
import java.awt.event.AdjustmentEvent;
import java.awt.event.AdjustmentListener;
import java.io.IOException;
public class BlockGUI extends JPanel {
private Data data;
private BlockWorker worker;
private final Box vBox;
private final JScrollPane scrollPane;
private boolean coolDown = false;
public BlockGUI(JScrollPane scrollPane) {
super();
this.scrollPane = scrollPane;
scrollPane.getVerticalScrollBar().addAdjustmentListener(new AdjustBlock());
setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
vBox = Box.createVerticalBox();
add(vBox);
}
public void setData(Data data) {
this.data = data;
}
public void refresh() {
PostList list = data.getContainer().getFilteredList();
vBox.removeAll();
vBox.revalidate();
try {
if (worker != null)
worker.terminate();
worker = new BlockWorker(list, vBox);
worker.execute();
RestPos reset;
reset = new RestPos(scrollPane);
reset.execute();
} catch (IOException e) {
e.printStackTrace();
}
}
private static class RestPos extends SwingWorker<Object,Object> {
private final JScrollPane scrollPane;
public RestPos(JScrollPane scrollBar) {
this.scrollPane = scrollBar;
}
@Override
protected Object doInBackground() throws Exception {
Thread.sleep(100);
scrollPane.getVerticalScrollBar().setValue(0);
return null;
}
}
private class AdjustBlock implements AdjustmentListener {
@Override
public void adjustmentValueChanged(AdjustmentEvent e) {
if (coolDown || worker == null) return;
if (scrollPane.getVerticalScrollBar().getMaximum() - e.getValue() <= 20000)
worker.loadMore();
coolDown = true;
CoolDown cool = new CoolDown();
cool.execute();
}
}
private class CoolDown extends SwingWorker<Object, Object> {
@Override
protected Object doInBackground() throws Exception {
Thread.sleep(3000);
coolDown = false;
return null;
}
}
}
| [
"73872860+yali30814936@users.noreply.github.com"
] | 73872860+yali30814936@users.noreply.github.com |
77b8d2d915ce14885912f519428f1caf1cd4432a | 12864e27ceac9844a3e2dbb8e83f9b08bed30873 | /src/controller/action/MappingData.java | 83d188948bfe1407914aa698dbc8c42bbb845884 | [] | no_license | n4oah/mini1710 | e94234e845ea142ce599bba18d62d6625a9d0091 | 69aca97d6dce2551bfdeb78264ab5d1a40fd5c88 | refs/heads/master | 2021-07-21T21:33:14.124500 | 2017-10-30T07:37:12 | 2017-10-30T07:37:12 | 108,058,687 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 301 | java | package controller.action;
import java.util.HashMap;
public class MappingData extends HashMap<String, PageConfig> {
static private MappingData map = null;
private MappingData() {}
static public MappingData getInstance() {
if(map == null) {
map = new MappingData();
}
return map;
}
} | [
"n4oahdev@gmail.com"
] | n4oahdev@gmail.com |
cb33b60b68b34a444ed04fe5c4357f04d995f35f | 46de52992a10ae64dbf95bf77a9c33a7a1d73a78 | /src/main/java/info/novatec/testit/matcher/AlertMatchers.java | dbe24076eac7aaaf705c8d0518c5cff231ec3c9e | [
"Apache-2.0"
] | permissive | andifalk/webtester-support-security | 2579e75b192fcd0fe671a90e9fefbbcf47110942 | ee7057ca0fed9d8dbd004d8d61cf94966e3e86f0 | refs/heads/master | 2021-01-11T01:02:05.670090 | 2016-10-10T07:59:25 | 2016-10-10T07:59:25 | 70,464,136 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,471 | java | package info.novatec.testit.matcher;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import org.zaproxy.clientapi.core.Alert;
import java.util.ArrayList;
import java.util.List;
/**
* Special hamcrest matchers for ZAP alerts.
*/
public final class AlertMatchers {
public static class HighRiskAlertMatcher extends TypeSafeMatcher<Alert> {
@Override
protected boolean matchesSafely ( Alert alert ) {
return Alert.Risk.High == alert.getRisk ();
}
@Override
public void describeTo ( Description description ) {
description.appendText("an alert with a high risk");
}
}
public static class ContainsNoHighRiskAlertMatcher extends TypeSafeMatcher<List<Alert>> {
@Override
protected boolean matchesSafely ( List<Alert> alerts ) {
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () ) {
return false;
}
}
return true;
}
@Override
public void describeTo ( Description description ) {
description.appendText("Contains no alert(s) with a high risk");
}
@Override
protected void describeMismatchSafely(List<Alert> alerts, Description mismatchDescription) {
List<String> highRiskAlerts = new ArrayList<> ();
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () ) {
highRiskAlerts.add ( String.format ( "%s (%s): %s", alert.getAlert (), alert.getRisk (), alert.getDescription () ) );
}
}
mismatchDescription.appendText("has ").appendValue ( String.join ( ",", highRiskAlerts ) );
}
}
public static class ContainsOnlyMinorRiskAlertMatcher extends TypeSafeMatcher<List<Alert>> {
@Override
protected boolean matchesSafely ( List<Alert> alerts ) {
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () || Alert.Risk.Medium == alert.getRisk () ) {
return false;
}
}
return true;
}
@Override
public void describeTo ( Description description ) {
description.appendText("Contains no alert(s) with high or medium risk");
}
@Override
protected void describeMismatchSafely(List<Alert> alerts, Description mismatchDescription) {
List<String> highRiskAlerts = new ArrayList<> ();
for ( Alert alert : alerts ) {
if ( Alert.Risk.High == alert.getRisk () || Alert.Risk.Medium == alert.getRisk () ) {
highRiskAlerts.add ( String.format ( "%s (%s): %s", alert.getAlert (), alert.getRisk (), alert.getDescription () ) );
}
}
mismatchDescription.appendText("has ").appendValue(highRiskAlerts);
}
}
@Factory
public static Matcher<Alert> highRiskAlert() {
return new HighRiskAlertMatcher ();
}
@Factory
public static Matcher<List<Alert>> containsNoHighRiskAlerts() {
return new ContainsNoHighRiskAlertMatcher ();
}
@Factory
public static Matcher<List<Alert>> containsOnlyMinorRiskAlerts() {
return new ContainsOnlyMinorRiskAlertMatcher ();
}
}
| [
"andreas.falk@novatec-gmbh.de"
] | andreas.falk@novatec-gmbh.de |
1762b4b1510b27a186acc1bb0344c9106dc5027f | edf9c01f1db7cf97ddd279c220b1302768602ba2 | /Training/Test/src/ru/alfabank/extend/InterfaceB.java | c106085c5bfbe60897c90a84f75e5570eeffdbfa | [] | no_license | ASinitsyn88/Training | d1c81d5d328eea5d245773e407e38369dbedf6db | 20e5319263c02e51d2049527d1908f8530ffb946 | refs/heads/master | 2023-03-05T02:53:37.500567 | 2023-02-22T13:46:30 | 2023-02-22T13:46:30 | 59,421,965 | 0 | 0 | null | 2022-12-14T17:50:42 | 2016-05-22T16:19:03 | CSS | UTF-8 | Java | false | false | 123 | java | package ru.alfabank.extend;
/**
* Created by Alex on 01.02.2017.
*/
public interface InterfaceB {
void method();
}
| [
"sinitsyn88@gmail.com"
] | sinitsyn88@gmail.com |
dad3f5d0999f2fbbdccdefb66c49b55f22b7085a | 0fa2cb199a567f1ed81faa9a592c9d8a959f69b9 | /companies/facebook/dancebattle/Test.java | f4fced4d5746f4606860a57c6c75cd8c20b4ab1c | [
"MIT"
] | permissive | hacktoolkit/code_challenges | ee5d407b3cfd8e27e1ec1254e3db129ce7a8db7d | fa35a3cf8afd18b4c32170f64d5364e90dedd5a6 | refs/heads/master | 2023-06-21T17:09:42.342328 | 2022-12-25T06:18:26 | 2022-12-25T06:18:26 | 30,107,170 | 12 | 6 | null | 2022-12-29T13:58:31 | 2015-01-31T08:37:24 | CSS | UTF-8 | Java | false | false | 816 | java | import java.util.*;
public class Test {
public static void main(String[] args) {
if(args.length != 2) {
System.err.println("Usage: java Test <n> <seed>");
System.exit(1);
}
int n = Integer.parseInt(args[0]);
Random r = new Random(Integer.parseInt(args[1]));
int a = r.nextInt(n);
boolean[][] used = new boolean[n][n];
int[] move = new int[((n + 1) * n) / 2 + 1];
move[0] = a;
int m = 0;
while(true) {
int b = r.nextInt(n);
if(used[a][b]) break;
used[a][b] = used[b][a] = true;
move[++m] = a = b;
}
System.out.println(n);
System.out.println(m);
for(int j = 0; j < m; ++j) System.out.println(move[j] + " " + move[j + 1]);
}
}
| [
"jontsai@jontsai.com"
] | jontsai@jontsai.com |
e8510f945b3deeffad6f2cbc74d14dcd058602a7 | 1c8c09f90bf98eef7fd435029d95cccd1e560008 | /src/BarCode.java | ad158867527cb52de323f1ac55aaf1a8fb18a8bf | [] | no_license | Sallab/Barcode_Reader | f9dc494bd6e42a69d21abad5e6a3cb197bf7e38c | 8ccca4298b2ae2a8f7f7e6d4dae7e3abae00a0a4 | refs/heads/master | 2021-04-12T11:02:54.889209 | 2018-03-24T01:13:35 | 2018-03-24T01:13:35 | 126,552,734 | 0 | 0 | null | 2018-03-24T00:45:52 | 2018-03-24T00:45:52 | null | UTF-8 | Java | false | false | 2,060 | java | import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class BarCode {
private ArrayList<Data> tokens;
public ArrayList<Data> getTokens() {
return tokens;
}
public void setTokens(ArrayList<Data> tokens) {
this.tokens = tokens;
}
BarCode(File input) throws FileNotFoundException{
tokens = new ArrayList<Data>();
loadFromFile(input);
System.out.println("the data already in the list");
}
public void loadFromFile(File inputFile) throws FileNotFoundException{
if(inputFile.canRead()){
Scanner reader = new Scanner(inputFile);
while(reader.hasNext()){
Data temp = new Data();
temp.setGeneratedNumber(Integer.parseInt(reader.nextLine()));
temp.setPackageData(reader.nextLine());
temp.setDataSent(reader.nextLine());
temp.setRecievedData(reader.nextLine());
temp.setIDNumber(Integer.parseInt(reader.nextLine()));
temp.setChoice(reader.nextLine());
tokens.add(temp);
}
System.out.println(1);
reader.close();
}
else{
System.out.println(0);
tokens = null;
}
}
public int FindWithGeneratedCode(int number){
int i = 0;
while(i < tokens.size() ){
if(tokens.get(i).getGeneratedNumber() == number){
return i;
}
i++;
}
return -1;
}
public void addToList(Data temp){
tokens.add(temp);
}
} | [
"ali.osama.sallab@gmail.com"
] | ali.osama.sallab@gmail.com |
3747b329f2006841e11a2778426cd95003fe1993 | 8ccef1cc28a81183df810b86bc404fe4b1b5d9f4 | /src/test/java/ue_classes/ObserverClassTest.java | d98031ec6bb9c6fa54c5b70b1f8fd1ebbd139e78 | [] | no_license | Julienyou/PAE-manager-master | 238f4cd5c69d569be0878c0b738dfa3ec022e81d | 17ef7f4622716131151eb953f3650bd22b067d04 | refs/heads/master | 2020-04-08T15:12:44.359272 | 2018-12-19T10:18:27 | 2018-12-19T10:18:27 | 159,470,057 | 0 | 0 | null | 2018-12-12T10:23:43 | 2018-11-28T08:39:56 | Java | UTF-8 | Java | false | false | 891 | java | package ue_classes;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class ObserverClassTest {
ObserverClass SA4T = new ObserverClass("SA4T", "1E0101", "13152");
ObserverClass SA4L = new ObserverClass("SA4L", "1E0102", "13152");
@Test
public void getId() {
int id1 = SA4T.getId();
int id2 = SA4L.getId();
Assert.assertNotSame(id1, id2);
}
@Test
public void getOwner() {
Assert.assertEquals("13152", SA4T.getOwner());
}
@Test
public void validate() {
Assert.assertFalse(SA4T.getValidate());
SA4T.validate();
Assert.assertTrue(SA4T.getValidate());
}
@Test
public void update() {
SA4T.update(3);
Assert.assertEquals(3, SA4T.getNbrHours());
SA4T.update(5);
Assert.assertEquals(5, SA4T.getNbrHours());
}
} | [
"beardjulien@gmail.com"
] | beardjulien@gmail.com |
8dd153b86cb7226533649baf3ca3be2ab27261ed | 3637342fa15a76e676dbfb90e824de331955edb5 | /2s/user/src/main/java/com/bcgogo/user/model/app/AppVehicleFaultInfoOperateLog.java | b39e7c866a16e101a92e7d66c23e4fbf98982e88 | [] | no_license | BAT6188/bo | 6147f20832263167101003bea45d33e221d0f534 | a1d1885aed8cf9522485fd7e1d961746becb99c9 | refs/heads/master | 2023-05-31T03:36:26.438083 | 2016-11-03T04:43:05 | 2016-11-03T04:43:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,690 | java | package com.bcgogo.user.model.app;
import com.bcgogo.enums.app.ErrorCodeTreatStatus;
import com.bcgogo.model.LongIdentifier;
import javax.persistence.*;
/**
* Created with IntelliJ IDEA.
* User: XinyuQiu
* Date: 13-11-28
* Time: 上午10:53
*/
@Entity
@Table(name = "app_vehicle_fault_info_operate_log")
public class AppVehicleFaultInfoOperateLog extends LongIdentifier {
private Long appVehicleFaultInfoId;
private String operateUserNo;
private ErrorCodeTreatStatus lastStatus;
private ErrorCodeTreatStatus newStatus;
private Long operateTime;
@Column(name = "app_vehicle_fault_info_id")
public Long getAppVehicleFaultInfoId() {
return appVehicleFaultInfoId;
}
public void setAppVehicleFaultInfoId(Long appVehicleFaultInfoId) {
this.appVehicleFaultInfoId = appVehicleFaultInfoId;
}
@Column(name = "operate_user_no")
public String getOperateUserNo() {
return operateUserNo;
}
public void setOperateUserNo(String operateUserNo) {
this.operateUserNo = operateUserNo;
}
@Column(name = "last_status")
@Enumerated(EnumType.STRING)
public ErrorCodeTreatStatus getLastStatus() {
return lastStatus;
}
public void setLastStatus(ErrorCodeTreatStatus lastStatus) {
this.lastStatus = lastStatus;
}
@Column(name = "new_status")
@Enumerated(EnumType.STRING)
public ErrorCodeTreatStatus getNewStatus() {
return newStatus;
}
public void setNewStatus(ErrorCodeTreatStatus newStatus) {
this.newStatus = newStatus;
}
@Column(name = "operate_time")
public Long getOperateTime() {
return operateTime;
}
public void setOperateTime(Long operateTime) {
this.operateTime = operateTime;
}
}
| [
"ndong211@163.com"
] | ndong211@163.com |
113b17848199c553548a2bfdacbb7023fe005f66 | 23de2c10f72a30ade795ac8d4d7923036c575de5 | /src/com/google/android/gms/tagmanager/bi.java | 6a8363da8c2c38a0a316025944c1d524badac64f | [] | no_license | PARTHIBANMS/com.divmob.doodlebubble | a2c179ad9aa762668c69c0302bb17958e895148e | 4718ee64c5edc9bcfc95861754ad9b876bd7fd5d | refs/heads/master | 2020-06-04T22:30:50.560385 | 2014-07-17T10:39:23 | 2014-07-17T10:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 734 | java | package com.google.android.gms.tagmanager;
abstract interface bi
{
public abstract void b(String paramString, Throwable paramThrowable);
public abstract void c(String paramString, Throwable paramThrowable);
public abstract void s(String paramString);
public abstract void setLogLevel(int paramInt);
public abstract void t(String paramString);
public abstract void u(String paramString);
public abstract void v(String paramString);
public abstract void w(String paramString);
}
/* Location: C:\Users\PARTHIBAN\Desktop\source\dex2jar-0.0.9.15\classes_dex2jar.jar
* Qualified Name: com.google.android.gms.tagmanager.bi
* JD-Core Version: 0.7.0.1
*/ | [
"bsauniv30@BSAs-iMac-93.local"
] | bsauniv30@BSAs-iMac-93.local |
375e38708e274af98be8e3dd8ed52c2d9f04e497 | 4ae63aeccf51b8758196dafcab285a5b1f18181a | /app/src/main/java/demo/disordia/weatherme/console/ShowRainService.java | e2646a804f3bd8d68c2ab221bd588e58a537a274 | [
"Apache-2.0"
] | permissive | Disordia/WeatherMe | 30177512ef192af0e35267d3ffd1b82e0311b541 | 016db691fc50efb1dc254ccefffd478ea5c8e2d6 | refs/heads/master | 2020-04-06T06:27:47.310622 | 2015-04-20T10:08:07 | 2015-04-20T10:08:07 | 32,532,060 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,743 | java | package demo.disordia.weatherme.console;
import android.app.ActivityManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.PixelFormat;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.view.Gravity;
import android.view.WindowManager;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import demo.disordia.weatherme.console.weatherview.RainView;
import demo.disordia.weatherme.optimization.GlobalApplication;
import demo.disordia.weatherme.setting.Settings;
import demo.disordia.weatherme.util.HomeJudger;
import demo.disordia.weatherme.util.LogUtil;
import demo.disordia.weatherme.util.WindowManagerUtil;
/**
* Created by Disordia profaneden on 2015-04-09.
*/
public class ShowRainService extends Service {
private WindowManager windowManager;
private WindowManager.LayoutParams layoutParams;
private RainView rainView;
private int level;
private boolean showOnlyDesktop;
private boolean showWeather = true;
Timer timer = new Timer();
TimerTask timerTask = new TimerTask() {
@Override
public void run() {
//判断是否为桌面
Message message = handler.obtainMessage();
// message.what = 1;
handler.sendMessage(message);
}
};
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
// TODO Auto-generated method stub
// do things here
if (showWeather) {
if (HomeJudger.isHome() || showOnlyDesktop == false) {
AddView();
rainView.invalidate();
super.handleMessage(msg);
} else {
RemoveView();
super.handleMessage(msg);
}
} else {
RemoveView();
}
}
};
public void ShowOnScreen() {
Settings settings = Settings.getInstance();
//获取是否只在桌面显示:
showOnlyDesktop = settings.isShowOnlyDesktop();
//结束获取
windowManager = (WindowManager) getSystemService(getApplicationContext().WINDOW_SERVICE);
layoutParams = WindowManagerUtil.getLayoutParams();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
showWeather = true;
return super.onStartCommand(intent, flags, startId);
}
@Override
public void onCreate() {
super.onCreate();
//获取等级参数:
SharedPreferences sharedPreferences = GlobalApplication.getContext().getSharedPreferences("weatherLevel", Context.MODE_PRIVATE);
level = sharedPreferences.getInt("rain", 0);
ShowOnScreen();
rainView = new RainView(this, null, level);
AddView();
timer.schedule(timerTask, 40, 100);
}
@Override
public void onDestroy() {
RemoveView();
showWeather = false;
super.onDestroy();
}
@Override
public IBinder onBind(Intent intent) {
return null;
}
private boolean isAdd = false;
private void AddView() {
if (!isAdd) {
windowManager.addView(rainView, layoutParams);
isAdd = true;
}
}
private void RemoveView() {
if (isAdd) {
if (rainView != null) {
windowManager.removeView(rainView);
}
isAdd = false;
}
}
}
| [
"1482219895@qq.com"
] | 1482219895@qq.com |
b14c00fc88b5cbebbe55eb5fc5e79282d40b4365 | c2d709335439879c3403f4a138a28054537f2e3d | /qmetry-integration/src/main/java/org/wso2/www/php/xsd/GetRequirementsJiraFromDefectId.java | 10bfcd6c847ce07ac1a22783c4885e2a59e92088 | [] | no_license | tied/code | 47b3b7d576f6ce36b43f06adecbc687a66e7b4af | 3140ff84812e7d71be214013df4b3a944ca19ea1 | refs/heads/master | 2020-04-23T18:28:10.232443 | 2019-02-12T10:06:23 | 2019-02-12T10:06:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,768 | java | /**
* GetRequirementsJiraFromDefectId.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package org.wso2.www.php.xsd;
public class GetRequirementsJiraFromDefectId implements java.io.Serializable {
private java.lang.String token;
private java.lang.String defectId;
private boolean all;
public GetRequirementsJiraFromDefectId() {
}
public GetRequirementsJiraFromDefectId(
java.lang.String token,
java.lang.String defectId,
boolean all) {
this.token = token;
this.defectId = defectId;
this.all = all;
}
/**
* Gets the token value for this GetRequirementsJiraFromDefectId.
*
* @return token
*/
public java.lang.String getToken() {
return token;
}
/**
* Sets the token value for this GetRequirementsJiraFromDefectId.
*
* @param token
*/
public void setToken(java.lang.String token) {
this.token = token;
}
/**
* Gets the defectId value for this GetRequirementsJiraFromDefectId.
*
* @return defectId
*/
public java.lang.String getDefectId() {
return defectId;
}
/**
* Sets the defectId value for this GetRequirementsJiraFromDefectId.
*
* @param defectId
*/
public void setDefectId(java.lang.String defectId) {
this.defectId = defectId;
}
/**
* Gets the all value for this GetRequirementsJiraFromDefectId.
*
* @return all
*/
public boolean isAll() {
return all;
}
/**
* Sets the all value for this GetRequirementsJiraFromDefectId.
*
* @param all
*/
public void setAll(boolean all) {
this.all = all;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof GetRequirementsJiraFromDefectId)) return false;
GetRequirementsJiraFromDefectId other = (GetRequirementsJiraFromDefectId) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.token==null && other.getToken()==null) ||
(this.token!=null &&
this.token.equals(other.getToken()))) &&
((this.defectId==null && other.getDefectId()==null) ||
(this.defectId!=null &&
this.defectId.equals(other.getDefectId()))) &&
this.all == other.isAll();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getToken() != null) {
_hashCode += getToken().hashCode();
}
if (getDefectId() != null) {
_hashCode += getDefectId().hashCode();
}
_hashCode += (isAll() ? Boolean.TRUE : Boolean.FALSE).hashCode();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(GetRequirementsJiraFromDefectId.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", ">getRequirementsJiraFromDefectId"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("token");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "token"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("defectId");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "defectId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("all");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.wso2.org/php/xsd", "all"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
| [
"janmejaya.padhiary@ness.com"
] | janmejaya.padhiary@ness.com |
11bb2aca9cc0356f742e97d6ce6d14b6466cfd7c | 23a0929f78ac8e90d9a0f6d97ef4aa63d6e723f7 | /MergeSort.java | b3439613421897d0adabb1f7c88f7f80e507a63b | [] | no_license | daydayup666/Algorithm | 6127992f96aef68ca6c31663700bee7c75d2a01b | 389641ec2c16b12237f77e48949c6e703555a5e7 | refs/heads/master | 2021-01-17T16:36:57.679601 | 2016-07-07T09:08:40 | 2016-07-07T09:08:40 | 61,515,440 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 982 | java | package tao;
public class MergeSort {
public static void main(String[] args) {
int[] array = {10,8,6,5,9,3,1,2,3,1000,50,80};
mergeSort(array,0,array.length-1);
for(int i=0;i<array.length;i++)
System.out.print(array[i]+" ");
}
public static void mergeSort(int[] array,int p,int r) {
if(p<r) {
int q = (p+r)/2;
mergeSort(array,p,q);
mergeSort(array,q+1,r);
merge(array,p,q,r);
}
}
public static void merge(int[] array,int p,int q,int r) {
int num1 = q-p+1;
int num2 = r-q;
int[] left = new int[num1+1];
int[] right = new int[num2+1];
for(int i=0;i<num1;i++) {
left[i] = array[p+i];
}
for(int j=0;j<num2;j++) {
right[j] = array[q+1+j];
}
left[num1] = Integer.MAX_VALUE;
right[num2] = Integer.MAX_VALUE;
int k = p;
int i = 0;
int j = 0;
while(k<=r) {
if(left[i]<=right[j]){
array[k++] = left[i];
i++;
}else {
array[k++] = right[j];
j++;
}
}
}
}
| [
"836535860@qq.com"
] | 836535860@qq.com |
b048abeddc66b3559593ff28dc1da8acb3c68eaf | 4a47b46780d9b49c5ddc624a5f2d2addc37be7fe | /mkk-common/mkk-common-log/src/main/java/com/cloud/mkk/common/log/aspect/SysLogAspect.java | af7989b39c8d114bd6e80af818ba55020f219809 | [] | no_license | benkuangjianyu/mkk | 517379f076d1d32c040e53182964b8ad11a74bba | 3b822e1832d9732f64f837bbd649f11499d4c20f | refs/heads/master | 2023-02-02T09:44:40.501877 | 2020-12-18T00:57:39 | 2020-12-18T00:57:39 | 322,450,544 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,492 | java | package com.cloud.mkk.common.log.aspect;
import com.cloud.mkk.common.log.event.SysLogEvent;
import com.cloud.mkk.common.log.util.LogTypeEnum;
import com.cloud.mkk.common.log.util.SysLogUtils;
import com.cloud.mkk.admin.api.entity.SysLog;
import com.cloud.mkk.common.core.util.SpringContextHolder;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
/**
* 操作日志使用spring event异步入库
*
* @author kuangjianyu
* @date 2020-12-14
*/
@Aspect
@Slf4j
public class SysLogAspect {
@Around("@annotation(sysLog)")
@SneakyThrows
public Object around(ProceedingJoinPoint point, com.cloud.mkk.common.log.annotation.SysLog sysLog) {
String strClassName = point.getTarget().getClass().getName();
String strMethodName = point.getSignature().getName();
log.debug("[类名]:{},[方法]:{}", strClassName, strMethodName);
SysLog logVo = SysLogUtils.getSysLog();
logVo.setTitle(sysLog.value());
// 发送异步日志事件
Long startTime = System.currentTimeMillis();
Object obj;
try {
obj = point.proceed();
}
catch (Exception e) {
logVo.setType(LogTypeEnum.ERROR.getType());
logVo.setException(e.getMessage());
throw e;
}
finally {
Long endTime = System.currentTimeMillis();
logVo.setTime(endTime - startTime);
SpringContextHolder.publishEvent(new SysLogEvent(logVo));
}
return obj;
}
}
| [
"benkuangjianyu@163.com"
] | benkuangjianyu@163.com |
ae1855aa408b1828b0a44ceb3927a9d62ec24ee7 | c7c903efb9fb2a44e3ea66e319ddaf2aab06c641 | /src/main/java/com/lti/model/Supplier.java | b98f9719207d10c940bcde100ab8953bf23f6345 | [] | no_license | aditya0701/Online-Shopping-backend | 7ad59e650c6d36b02352d37874ac71c490ee4aad | 87275f031b81f3d5887b75466a7506d1a6427e73 | refs/heads/master | 2023-07-08T11:22:01.045287 | 2021-08-16T16:19:20 | 2021-08-16T16:19:20 | 395,200,911 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,804 | java | package com.lti.model;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
@Table(name="Supplier_table")
public class Supplier {
@Id
@GeneratedValue
@Column(name="supplier_id")
private int supplierid;
private String supplier_name;
private String phone;
private String email;
private String password;
// @JsonIgnore
// @OneToMany(mappedBy = "supplier")
// private Set<Product> products;
public int getSupplierid() {
return supplierid;
}
public void setSupplierid(int supplierid) {
this.supplierid = supplierid;
}
public String getSupplier_name() {
return supplier_name;
}
public void setSupplier_name(String supplier_name) {
this.supplier_name = supplier_name;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Supplier(int supplierid, String supplier_name, String phone, String email, String password) {
super();
this.supplierid = supplierid;
this.supplier_name = supplier_name;
this.phone = phone;
this.email = email;
this.password = password;
// this.products = products;
}
public Supplier() {
super();
}
// public Set<Product> getProducts() {
// return products;
// }
// public void setProducts(Set<Product> products) {
// this.products = products;
// }
}
| [
"adityarawat0701@gmail.com"
] | adityarawat0701@gmail.com |
4af547c91534b67e77d313acb2b5cefee2abbfb8 | 2182b348fd185943d39f4ddc7baddfeb577bf5c8 | /src/alterar/alterarVeiculo.java | 15c41b759e89ce6995ab2860d75312fd7e312978 | [] | no_license | HieroSalim/RacetrackManager | 4b726868ed58e3772ddc0d30351326036e42ef0c | 1e03cd220f6c963ff8ab613fcdf08b7ac90fd499 | refs/heads/master | 2023-08-04T02:24:05.762914 | 2021-10-02T03:26:24 | 2021-10-02T03:26:24 | 292,378,139 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 28,307 | 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 alterar;
import janelas.janelaAdmin;
import java.awt.AlphaComposite;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileNameExtensionFilter;
import model.Veiculo;
import DAO.VeiculoDao;
/**
*
* @author Hiero
*/
public class alterarVeiculo extends javax.swing.JFrame {
static janelaAdmin jAdmin = new janelaAdmin();
private File imagem;
private Veiculo veiculo = new Veiculo();
private VeiculoDao veiDao = new VeiculoDao();
/**
* Creates new form alterarEmpresa
*/
public alterarVeiculo() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jButton2 = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
tfMarca = new javax.swing.JTextField();
tfModelo = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
tfPotencia = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jftPlaca = new javax.swing.JFormattedTextField();
jLabel3 = new javax.swing.JLabel();
jcCategoria = new javax.swing.JComboBox<>();
jLabel5 = new javax.swing.JLabel();
jftPlaca1 = new javax.swing.JFormattedTextField();
jLabel6 = new javax.swing.JLabel();
Buscar = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
painelImagem = new javax.swing.JPanel();
lbImagem = new javax.swing.JLabel();
jPanel3 = new javax.swing.JPanel();
jLabel7 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Alterar veículos");
setResizable(false);
jPanel1.setBackground(new java.awt.Color(102, 102, 102));
jPanel2.setBackground(new java.awt.Color(51, 51, 51));
jButton2.setBackground(new java.awt.Color(51, 153, 255));
jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton2.setText("Voltar");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton1.setBackground(new java.awt.Color(51, 153, 255));
jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton1.setText("Alterar");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel2.setForeground(new java.awt.Color(240, 240, 240));
jLabel2.setText("Modelo:");
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel1.setForeground(new java.awt.Color(240, 240, 240));
jLabel1.setText("Marca:");
jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel4.setForeground(new java.awt.Color(240, 240, 240));
jLabel4.setText("Potência:");
try {
jftPlaca.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("AAA-####")));
} catch (java.text.ParseException ex) {
ex.printStackTrace();
}
jftPlaca.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jftPlacaKeyTyped(evt);
}
});
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel3.setForeground(new java.awt.Color(240, 240, 240));
jLabel3.setText("Número da placa:");
jcCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Carro", "Moto", "Kart" }));
jcCategoria.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jcCategoriaActionPerformed(evt);
}
});
jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel5.setForeground(new java.awt.Color(240, 240, 240));
jLabel5.setText("Categoria:");
try {
jftPlaca1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("AAA-####")));
} catch (java.text.ParseException ex) {
ex.printStackTrace();
}
jftPlaca1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jftPlaca1KeyTyped(evt);
}
});
jLabel6.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel6.setForeground(new java.awt.Color(240, 240, 240));
jLabel6.setText("Buscar pela Placa:");
Buscar.setBackground(new java.awt.Color(51, 153, 255));
Buscar.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
Buscar.setText("Buscar");
Buscar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BuscarActionPerformed(evt);
}
});
jButton3.setBackground(new java.awt.Color(51, 153, 255));
jButton3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jButton3.setText("Abrir");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
painelImagem.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));
lbImagem.setPreferredSize(new java.awt.Dimension(200, 200));
lbImagem.setRequestFocusEnabled(false);
lbImagem.setVerifyInputWhenFocusTarget(false);
javax.swing.GroupLayout painelImagemLayout = new javax.swing.GroupLayout(painelImagem);
painelImagem.setLayout(painelImagemLayout);
painelImagemLayout.setHorizontalGroup(
painelImagemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(painelImagemLayout.createSequentialGroup()
.addContainerGap()
.addComponent(lbImagem, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
painelImagemLayout.setVerticalGroup(
painelImagemLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(painelImagemLayout.createSequentialGroup()
.addContainerGap()
.addComponent(lbImagem, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel3.setBackground(new java.awt.Color(51, 153, 255));
jLabel7.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel7.setText("ALTERAR CADASTRO DE VEÍCULOS");
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(241, 241, 241)
.addComponent(jLabel7)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel7)
.addContainerGap())
);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(61, 61, 61)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(tfMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jftPlaca1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(Buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel6))
.addGap(32, 32, 32))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jftPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)
.addComponent(tfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2)
.addComponent(jLabel5)
.addComponent(jcCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addComponent(painelImagem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(tfPotencia, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(260, 260, 260))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(94, 94, 94)))
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel4)
.addGap(462, 462, 462)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 74, Short.MAX_VALUE)))
.addGap(32, 32, 32))
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(21, 21, 21)
.addComponent(jLabel1))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6)))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(11, 11, 11)
.addComponent(tfMarca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jftPlaca1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Buscar))))
.addGap(9, 9, 9)
.addComponent(jLabel2)
.addGap(18, 18, 18)
.addComponent(tfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jcCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel3)
.addGap(18, 18, 18)
.addComponent(jftPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(painelImagem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jButton3))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4)))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(1, 1, 1)
.addComponent(tfPotencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addGap(20, 20, 20))))
);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(50, 50, 50)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(50, 50, 50))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(45, 45, 45))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void jcCategoriaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcCategoriaActionPerformed
}//GEN-LAST:event_jcCategoriaActionPerformed
private void jftPlacaKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jftPlacaKeyTyped
// TODO add your handling code here:
}//GEN-LAST:event_jftPlacaKeyTyped
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
try{
veiculo.setMarca(tfMarca.getText());
veiculo.setModelo(tfModelo.getText());
veiculo.setCategoria(jcCategoria.getSelectedItem().toString());
veiculo.setNumeroPlaca(jftPlaca.getText());
veiculo.setPotencia(tfPotencia.getText());
veiculo.setImagem(getImagem());
veiDao.alterar(veiculo);
tfMarca.setText("");
tfModelo.setText("");
jftPlaca.setText("");
tfPotencia.setText("");
lbImagem.setIcon(null);
}catch(Exception erro){
JOptionPane.showMessageDialog(null,"Erro!!! \n"+erro.getMessage(),"Erro", JOptionPane.ERROR_MESSAGE);
}
}//GEN-LAST:event_jButton1ActionPerformed
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
jAdmin.setVisible(true);
dispose();// TODO add your handling code here:
}//GEN-LAST:event_jButton2ActionPerformed
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
imagem = selecionarImagem();
abrirImagem(imagem);
}//GEN-LAST:event_jButton3ActionPerformed
private void jftPlaca1KeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jftPlaca1KeyTyped
// TODO add your handling code here:
}//GEN-LAST:event_jftPlaca1KeyTyped
private void BuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscarActionPerformed
String vetor[] = new String[6];
vetor = veiDao.buscarAlterar(jftPlaca1.getText());
int id = Integer.parseInt(vetor[5]);
veiculo.setIdVeiculo(id);
byte[] dado = veiDao.exibirImagem(jftPlaca1.getText());
ImageIcon icon= new ImageIcon(dado);
icon.setImage(icon.getImage().getScaledInstance(painelImagem.getWidth()-50,painelImagem.getHeight()-60,100));
lbImagem.setIcon(icon);
tfMarca.setText(vetor[0]);
tfModelo.setText(vetor[1]);
jcCategoria.setSelectedItem(vetor[2]);
jftPlaca.setText(vetor[3]);
tfPotencia.setText(vetor[4]);
}//GEN-LAST:event_BuscarActionPerformed
private void abrirImagem(Object source){
if(source instanceof File){
ImageIcon icon= new ImageIcon(imagem.getAbsolutePath());
icon.setImage(icon.getImage().getScaledInstance(painelImagem.getWidth()-50,painelImagem.getHeight()-60,100));
lbImagem.setIcon(icon);
}else if(source instanceof byte[]){
Veiculo veiculo = new Veiculo();
ImageIcon icon= new ImageIcon(veiculo.getImagem());
icon.setImage(icon.getImage().getScaledInstance(painelImagem.getWidth()-50,painelImagem.getHeight()-60,100));
lbImagem.setIcon(icon);
}
}
public File selecionarImagem(){
JFileChooser fileChooser = new JFileChooser();
FileNameExtensionFilter filtro = new FileNameExtensionFilter("Imagens em JPEG e PNG", "jpg","png");
fileChooser.addChoosableFileFilter(filtro);
fileChooser.setAcceptAllFileFilterUsed(false);
fileChooser.setDialogType(JFileChooser.OPEN_DIALOG);
fileChooser.setCurrentDirectory(new File("/"));
fileChooser.showOpenDialog(this);
return fileChooser.getSelectedFile();
}
private byte[] getImagem(){
boolean isPng = false;
if(imagem!=null){
isPng = imagem.getName().endsWith("png");
try{
BufferedImage image = ImageIO.read(imagem);
ByteArrayOutputStream out = new ByteArrayOutputStream();
int type = BufferedImage.TYPE_INT_RGB;
if(isPng){
type = BufferedImage.BITMASK;
}
BufferedImage novaImagem = new BufferedImage(painelImagem.getWidth() - 50, painelImagem.getHeight() - 60, type);
Graphics2D g = novaImagem.createGraphics();
g.setComposite(AlphaComposite.Src);
g.drawImage(image, 0, 0, painelImagem.getWidth() - 50, painelImagem.getHeight() - 60, null);
if(isPng){
ImageIO.write(novaImagem, "png", out);
}else{
ImageIO.write(novaImagem, "jpg", out);
}
out.flush();
byte[] byteArray= out.toByteArray();
out.close();
return byteArray;
}catch(IOException e){
e.printStackTrace();
}
}
return null;
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(alterarVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(alterarVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(alterarVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(alterarVeiculo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new alterarVeiculo().setVisible(true);
}
});
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton Buscar;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JComboBox<String> jcCategoria;
private javax.swing.JFormattedTextField jftPlaca;
private javax.swing.JFormattedTextField jftPlaca1;
private javax.swing.JLabel lbImagem;
private javax.swing.JPanel painelImagem;
private javax.swing.JTextField tfMarca;
private javax.swing.JTextField tfModelo;
private javax.swing.JTextField tfPotencia;
// End of variables declaration//GEN-END:variables
}
| [
"salimhiero@gmail.com"
] | salimhiero@gmail.com |
d8b4a09a30405684a5de4976aa95b77d86a9e5d2 | 6fb790bcab9cf791c62a975e57aeadbd58cfae7a | /ppmtool/src/main/java/com/wael/ppmtool/PpmtoolApplication.java | 16b2e942cff707e3d28c1e517f78e24690702ae3 | [] | no_license | waelhachani/PPMTOOLfullstack | 135ebaf75b14f0ad74ffcbc77c1065ef61c2bbed | 3f930fadceeed2879119cb7bf082cb5434bb9355 | refs/heads/master | 2022-10-11T07:55:00.763166 | 2020-06-12T14:11:39 | 2020-06-12T14:11:39 | 256,338,162 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 372 | java | package com.wael.ppmtool;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
public class PpmtoolApplication {
public static void main(String[] args) {
SpringApplication.run(PpmtoolApplication.class, args);
}
}
| [
"med.wael.hachani@gmail.com"
] | med.wael.hachani@gmail.com |
b3013f16a24499b4357192b829d079be10a43c8d | daa385f3aa310fbbf1b8bee2f28fbf3b9635bb78 | /.attic/es.um.nosql.schemainference.dsl4mongoose/src/es/um/nosql/schemainference/dsl4mongoose/Dsl4mongooseFactory.java | de4e66f7300959c9b5a414ea7376529830f70d59 | [
"MIT"
] | permissive | catedrasaes-umu/NoSQLDataEngineering | 46b7eab33070d8d703fc4fc99b46780e0eba81b8 | ff5e68013e1133c671d11d0947cb8bb8f3eceb68 | refs/heads/master | 2023-03-23T10:20:23.197896 | 2023-03-09T17:12:32 | 2023-03-09T17:12:32 | 75,179,634 | 26 | 6 | MIT | 2022-11-16T09:31:03 | 2016-11-30T11:13:29 | Java | UTF-8 | Java | false | false | 2,231 | java | /**
*/
package es.um.nosql.schemainference.dsl4mongoose;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see es.um.nosql.schemainference.dsl4mongoose.Dsl4mongoosePackage
* @generated
*/
public interface Dsl4mongooseFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
Dsl4mongooseFactory eINSTANCE = es.um.nosql.schemainference.dsl4mongoose.impl.Dsl4mongooseFactoryImpl.init();
/**
* Returns a new object of class '<em>Mongoose Model</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Mongoose Model</em>'.
* @generated
*/
MongooseModel createMongooseModel();
/**
* Returns a new object of class '<em>Entity Parameter</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Entity Parameter</em>'.
* @generated
*/
EntityParameter createEntityParameter();
/**
* Returns a new object of class '<em>Validator</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Validator</em>'.
* @generated
*/
Validator createValidator();
/**
* Returns a new object of class '<em>Unique</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Unique</em>'.
* @generated
*/
Unique createUnique();
/**
* Returns a new object of class '<em>Update</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Update</em>'.
* @generated
*/
Update createUpdate();
/**
* Returns a new object of class '<em>Index</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Index</em>'.
* @generated
*/
Index createIndex();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
Dsl4mongoosePackage getDsl4mongoosePackage();
} //Dsl4mongooseFactory
| [
"dsevilla@ditec.um.es"
] | dsevilla@ditec.um.es |
c7953196bcab07d7e81aaa37ce3041635dc93403 | 4bdb4b399d2c2aafb0c53a5c09fd1d7c1fa41fdc | /src/main/java/frc/robot/PID.java | dfc8b65ad3fa82c05898125388c4f4ca0dec178d | [] | no_license | BackupEmergencyCodeMonkey/DeepSpace | ad5c96dbd33c03612f277bb676d72bfc443a32d0 | 779ca45c21b8071e6d00237693160a89cb15a378 | refs/heads/master | 2020-04-26T21:01:45.789344 | 2019-03-13T23:25:41 | 2019-03-13T23:25:41 | 173,829,927 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,916 | java | package frc.robot;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
public class PID {
private double P;
private double I;
private double D;
private double F;
private int slot;
private WPI_TalonSRX motor;
public PID() {
slot = 0;
P = 0;
I = 0;
D = 0;
F = 0;
}
/**
* @param slot the desired 'PID Slot' value, 0 - 3 expected. Think profiles.
*/
/**
*
* @param driver the talon in use.
* @param pVal the desired 'Proportional' or P value.
* @param iVal the desired 'Integral' or I value.
* @param dVal the desired 'Derivitive' or D value.
* @param fVal the desired 'Feed Forward' or F value.
* @param slot the desired 'PID Slot' value, 0 - 3 expected. Think profiles.
*/
public PID(WPI_TalonSRX driver, double pVal, double iVal, double dVal, double fVal, int slot) {
P = pVal;
I = iVal;
D = dVal;
F = fVal;
this.slot = slot;
motor = driver;
}
public double getP() {
return P;
}
public double getI() {
return I;
}
public double getD() {
return D;
}
public double getF() {
return F;
}
public int getSlot() {
return slot;
}
public WPI_TalonSRX getMotor() {
return motor;
}
public void setP(double newP) {
P = newP;
}
public void setI(double newI) {
I = newI;
}
public void setD(double newD) {
D = newD;
}
public void setF(double newF) {
F = newF;
}
public void setSlot(int newSlot) {
slot = newSlot;
}
public void setMotor(WPI_TalonSRX newMotor) {
motor = newMotor;
}
public void useAll() {
motor.config_kP(slot, P);
motor.config_kI(slot, I);
motor.config_kD(slot, D);
motor.config_kF(slot, F);
}
public void useP() {
motor.config_kP(slot, P);
}
public void useI() {
motor.config_kI(slot, I);
}
public void useD() {
motor.config_kD(slot, D);
}
public void useF() {
motor.config_kD(slot, F);
}
} | [
"wackjertz@gmail.com"
] | wackjertz@gmail.com |
394c3ff160c8d6d6689165b99327a9f3f089d548 | 2abec3c87d4b0ba498a324f1bb7f1cd30ce97a87 | /app/src/main/java/com/example/volleybasicexample/SplashScreen.java | 28b9f19a324127526916d35ea3750f0e12e6b62f | [] | no_license | Higys/TokenLab-App | b539bf988f95f2426ecb197fba900e23f9d3de0a | f86cd0e19370f06022905e4e7878ecc9747d243e | refs/heads/master | 2020-12-15T02:29:18.373336 | 2020-01-19T21:20:09 | 2020-01-19T21:20:09 | 234,963,109 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 842 | java | package com.example.volleybasicexample;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class SplashScreen extends AppCompatActivity {
private final int splashTime = 1800;
Handler handle;
Intent intent;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_screen);
handle = new Handler();
handle.postDelayed(new Runnable() {
@Override
public void run() {
goToMainActivity();
}
}, splashTime);
}
private void goToMainActivity(){
intent = new Intent(SplashScreen.this, MainActivity.class);
startActivity(intent);
}
}
| [
"igor.yaro@gmail.com"
] | igor.yaro@gmail.com |
187ae0c6366dbbc4b3f8b04be1c8ed034ec11321 | bb2c42218058e7b689d3f575e35d466416716271 | /Bhavin/src/test/java/Demo2/OrgTest.java | 79d422c74ef71e2d528fb834d36ccbb1fc4e6ed6 | [] | no_license | ArunRK218/Demo1 | 8918085ade6008c7f699a883ed6d10661884f02c | 1122491d62fb949b040b4c7bfedebe6f9f2e739f | refs/heads/master | 2023-07-30T04:16:01.490867 | 2021-09-23T10:03:30 | 2021-09-23T10:03:30 | 409,496,967 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 548 | java | package Demo2;
import org.testng.annotations.Test;
public class OrgTest
{
@Test(groups="SmokeSuite")
public void createOrgTest() {
System.out.println("execute createOrgTest");
}
@Test(groups="RegresionSuite")
public void createOrgWithContactTest() {
System.out.println("execute createOrgWithContactTest");
}
@Test(groups="RegresionSuite")
public void deleteORGTest() {
System.out.println("execute deleteORGTest");
}
@Test(groups="SmokeSuite")
public void SearchOrgTest() {
System.out.println("execute SearchOrgTest");
}
}
| [
"arunravi180794@gmail.com"
] | arunravi180794@gmail.com |
3d2e775226e5c2b7fe20c5683be5824d2206ac5b | 4810a15f89f4481fa2f600386a73983e48c3fdfe | /workspace/java-basic/src/day06/ClassTest.java | 3b69053f424d89db0e3a7aa83a59852563db0cdb | [] | no_license | fship1124/java86 | 54d779e46f8296ce6fb5e38dd58bd5d8ead92d05 | d116fa70af0829675e281f90fc6baa8128f60cc5 | refs/heads/master | 2022-12-08T17:20:16.713751 | 2020-08-20T12:18:30 | 2020-08-20T12:18:30 | 288,993,715 | 0 | 0 | null | null | null | null | UHC | Java | false | false | 502 | java | package day06;
class IceCream {
String name;
int price;
}
public class ClassTest {
public static void main(String[] args) {
IceCream ic1 = new IceCream();
IceCream ic2 = new IceCream();
ic1.name = "홍";
ic1.price = 100;
ic2.name = "김";
ic2.price = 2000;
IceCream ic3 = ic1; // ic1의 주소값을 ic3에 받는다.
ic3.name = "박";
ic3.price = 500;
System.out.println(ic1.price);
System.out.println(ic2.price);
System.out.println(ic3.price);
}
}
| [
"fship1124@gmail.com"
] | fship1124@gmail.com |
3639774559ac9f4a0ef7784aa07978397ddb9f14 | 08fd3e19bc26af91fa720326ed15343714408c14 | /app/src/androidTest/java/jem2dc/cs2110/virginia/edu/game/ApplicationTest.java | 6a342579a03a0059671ebdec0242824eb1355960 | [] | no_license | jroth95/Justin_AndroidProject | 3caf19e4a26dcf1d96fb7cd457e84603aafff3b7 | 8e0637c2a5931b8cd22f841d4bde4f60a7fa9b68 | refs/heads/master | 2021-01-10T19:38:59.318614 | 2015-04-22T17:43:02 | 2015-04-22T17:43:02 | 34,405,824 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 362 | java | package jem2dc.cs2110.virginia.edu.game;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
} | [
"jar9fy@virginia.edu"
] | jar9fy@virginia.edu |
f1d69757ef905570d37572acc65847386941d0af | b645db4bd72889d03a36eedfafe79a135d2cb1e7 | /app/src/main/java/com/example/myapplication/Login.java | fe89d7131c24ff8f14d02d57b085fd3adc0b9a26 | [] | no_license | ye7ia10/Kidergarten_Project_UI | 073c6fa99fb569fdc82bd7fe5a3960fd8ed9f9eb | c45efb00591d2e97858f43e589aadf4bfe97a918 | refs/heads/master | 2021-09-08T05:57:11.553903 | 2019-12-14T20:23:53 | 2019-12-14T20:23:53 | 227,938,034 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,831 | java | package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;
import org.w3c.dom.Text;
public class Login extends AppCompatActivity {
private Button btn;
private EditText textView;
private EditText pass;
private ImageView imageView;
private TextView tex;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
textView = (EditText) findViewById(R.id.emaillogin);
pass = (EditText) findViewById(R.id.passLogin);
btn = (Button) findViewById(R.id.loginit);
imageView = (ImageView) findViewById(R.id.lp);
tex = (TextView)findViewById(R.id.ttp);
String str= "";
btn.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
if (textView.getText().toString().equals("admin")){
Intent intent = new Intent(Login.this, Admin.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
} else {
Intent intent = new Intent(Login.this, MainActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
}
}
});
}
@Override
protected void onStart() {
super.onStart();
}
}
| [
"yehiaelsayed234@gmail.com"
] | yehiaelsayed234@gmail.com |
c97456eb1784bad365c7db7249a14486cf180fb7 | c7a48f2c6623f958b148f0cf8d1094ac06884aaa | /ustjava/EqualsMethod/src/com/ustglobal/equalsmethod/MainEmployee.java | a2e8a792dad3d736103ce7f7a7fb1662a77d1a45 | [] | no_license | ranjeet2373/USTGlobal-16Sep19-RanjeetJha | dfd6c6c8fe69a0d2be49b4144b863084ca86a1c9 | 179259d7b15470044b84c1b9a0a5ac219c8c0fdd | refs/heads/master | 2023-01-13T00:53:27.938597 | 2019-12-22T16:29:23 | 2019-12-22T16:29:23 | 215,538,048 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 425 | java | package com.ustglobal.equalsmethod;
public class MainEmployee {
public static void main(String[] args) {
Employee e1 = new Employee(1,"ranjeet",250000);
Employee e2 = new Employee(2,"amrit",250000);
Employee e3 = new Employee(1,"gajendra",250000);
Employee e4 = new Employee(1,"ranjeet",250000);
System.out.println(e1.equals(e2));
System.out.println(e1.equals(e3));
System.out.println(e1.equals(e4));
}
}
| [
"ranjeetrd2373@gmail.com"
] | ranjeetrd2373@gmail.com |
4869e5d1cf5a7ea60b02e9da9e2abfe2db6fc677 | 0c20e03de239d69e9547fb7ca477dc9e89a411dd | /src/main/java/cn/dl/app/dao/UserDao.java | 9c09245cba5cf362e19c65e97ccb1cc2aaa4d868 | [] | no_license | lleses/ccq-server | 8d30ab85465de42b13115d8bf5e588ad009fedb4 | f72d83dffc8d7a14a3d4a524589df9f027839bfa | refs/heads/master | 2020-03-28T06:00:21.504106 | 2018-10-06T18:28:09 | 2018-10-06T18:28:09 | 147,808,655 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 160 | java | package cn.dl.app.dao;
import org.apache.ibatis.annotations.Mapper;
import cn.dl.app.entity.User;
@Mapper
public interface UserDao {
void add(User user);
} | [
"840851604@qq.com"
] | 840851604@qq.com |
8d328ef087c32ee11769c156f771b4b85a96da8b | 025b34520d3af74b993b537e037e54f827e2257e | /app/src/main/java/com/tian/sharebox/func/funcLogin/LoginActivity.java | 6ba56202ad7feb1cb0f0572675c33a5d460b93c1 | [] | no_license | tianjisheng/sharebox | 67e50734087fc1eac83a4eaf295bb691a0809b79 | e2f41bf4ec1bf289dff5b589f0c20d056e888aab | refs/heads/master | 2021-01-22T05:47:54.348723 | 2017-06-19T10:27:54 | 2017-06-19T10:27:54 | 92,498,262 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 5,188 | java | package com.tian.sharebox.func.funcLogin;
import android.content.Context;
import android.os.Looper;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;
import android.widget.EditText;
import com.tian.sharebox.R;
import com.tian.sharebox.activity.ActivityRoute;
import com.tian.sharebox.activity.BaseActivity;
import com.tian.sharebox.widget.ClearEditText;
import com.tian.sharebox.widget.LoadingToastView;
import com.tian.sharebox.utils.ToastViewUtil;
/**
* @author jisheng ,tianjisheng@skyworth.com
* @date 2017/5/27
* @describe 登录界面
*/
public class LoginActivity extends BaseActivity implements LoginContract.View
{
private ClearEditText numberEditText;
private EditText verifyCodeEditText;
private Button verifyCodeButton;
private Button signInButton;
private LoadingToastView loadingToastView = null;
private LoginContract.Presenter presenter;
private ClearEditText passwordEditText;
private View code = null;
@Override
protected int getContentViewId()
{
return R.layout.activity_login;
}
@Override
protected int getToolbarId()
{
return R.id.activity_login_toolbar;
}
@Override
protected int getTitleId()
{
return R.id.activity_login_toolbar_title_text;
}
@Override
protected void setContent()
{
}
@Override
protected void onDestroy()
{
super.onDestroy();
presenter.onDestroy();
}
@Override
protected void initSelfLayout()
{
super.initSelfLayout();
presenter = new LoginPresenter(this);
code = findViewById(R.id.code_layout);
passwordEditText = (ClearEditText) findViewById(R.id.password_number);
passwordEditText.setOnTextChangeListener(new ClearEditText.OnTextChangeListener()
{
@Override
public void afterTextChange(Editable s)
{
if (s.toString().length()>0)
{
signInButton.setEnabled(true);
}else
{
signInButton.setEnabled(false);
}
}
});
verifyCodeButton = (Button) findViewById(R.id.get_verify_code_btn);
verifyCodeButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
presenter.getVerificationCode(numberEditText.getText().toString());
}
});
signInButton = (Button) findViewById(R.id.sign_in_button);
signInButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
hideIme();
presenter.login(numberEditText.getText().toString(), passwordEditText.getText().toString());
}
});
numberEditText = (ClearEditText) findViewById(R.id.user_name_number);
verifyCodeEditText = (EditText) findViewById(R.id.verify_code);
}
private void hideIme()
{
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
}
@Override
public void showVerifyCode()
{
findViewById(R.id.get_voice_verify_code).setVisibility(View.VISIBLE);
}
@Override
public void showErrorToast(final String error)
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
ToastViewUtil.showToast(error);
}
});
}
@Override
public void showLoading()
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
if (loadingToastView == null)
{
loadingToastView = (LoadingToastView) findViewById(R.id.activity_login_loading);
loadingToastView.setLoadingText("正在登录");
}
if (!loadingToastView.isShown())
{
loadingToastView.show();
}
}
});
}
@Override
public void hideLoading()
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
if (loadingToastView != null && loadingToastView.isShown())
{
loadingToastView.hide();
}
}
});
}
@Override
public void loginSuccess()
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
LoginActivity.this.finish();
}
});
}
@Override
public boolean isUIShown()
{
return isShown();
}
public void onClick(View view)
{
ActivityRoute.dispatcherActivity(ActivityRoute.LoginActivity,ActivityRoute.RegisterActivity, "");
}
}
| [
"tianjisheng@skyworth.com"
] | tianjisheng@skyworth.com |
3e60ccc7cf3ee5251664b7bc1e72f1399a9c32cd | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/19/19_0994230632b3bf6595cb411bb783fdc89ccecbf6/Producto/19_0994230632b3bf6595cb411bb783fdc89ccecbf6_Producto_s.java | 040237ffd92ae22f40750ab4964aabbb7c824ea4 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 4,581 | java | package code.google.com.opengis.gestion;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import code.google.com.opengis.gestionDAO.ProductoDAO;
public class Producto {
private int idprod;
private String nombre;
private String descripcion;
private String nomtarea;
private String dosis;
private String dni;
private int activo;
private ProductoDAO x;
private Boolean correcto;
//CONSTRUCTOR
public Producto(int idprod, String nombre,String descripcion,String nomtarea, String dosis, String dni, int activo) {
this.idprod=idprod;
this.nombre=nombre;
this.descripcion=descripcion;
this.nomtarea=nomtarea;
this.dosis=dosis;
this.dni=dni;
this.activo=activo;
this.correcto = false;
}
// G E T T E R & S E T T E R
//IDPRODUCTO
public int getIdprod() {
return idprod;
}
public void setIdprod(int idprod) {
this.idprod = idprod;
}
//NOMBRE
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
//DESCRIPCION
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
//NomTarea
public String getNomtarea() {
return nomtarea;
}
public void setNomtarea(String nomtarea) {
this.nomtarea = nomtarea;
}
//Dosis
public String getDosis() {
return nomtarea;
}
public void setDosis(String dosis) {
this.dosis = dosis;
}
//Dni
public String getDni(){
return dni;
}
public void setDni(String dni){
this.dni=dni;
}
//activo
public int getActivo(){
return activo;
}
public void setActivo(int activo){
this.activo=activo;
}
//Datos correctos
public Boolean getCorrecto(){
return correcto;
}
//Enlazar Producto con ProductoDAO, cadena de metodos.
public void crearProducto() {
ProductoDAO x = new ProductoDAO(this.idprod,this.nombre,this.descripcion,this.nomtarea,this.dosis, this.dni, this.activo);
try {
x.altaProducto();
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Error al dar de alta el nuevo producto");
}
}
//modif
public void editarProducto() {
ProductoDAO x = new ProductoDAO(this.idprod,this.nombre,this.descripcion,this.nomtarea,this.dosis, this.dni, this.activo);
try {
x.modificarProducto();
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Error al dar de alta el nuevo producto");
}
}
//bajas
/* public void bajasProducto(){
ProductoDAO x = new ProductoDAO(this.idprod,this.nombre,this.descripcion,this.nomtarea,this.dosis, this.dni, this.activo);
try {
x.desactivarProducto();
} catch (SQLException e) {
JOptionPane.showMessageDialog(null,"Error al dar de alta el nuevo producto");
}
}*/
//Valida datos
public void validarDatos(){
if(this.nombre.length() <1 || this.nombre.length()>40){
JOptionPane.showMessageDialog(null, "Error. El nombre no puede estar vacio ni ser superior a 40 carcteres");
this.correcto = false;
}else{
Boolean r = isInteger(this.nombre);
if(r.equals(true)){
JOptionPane.showMessageDialog(null, "Error. El nombre no puede ser numrico");
this.correcto = false;
}else{
r = isInteger(this.dosis);
if(r.equals(false) || this.dosis.length() <1 || this.dosis.length()>4){
JOptionPane.showMessageDialog(null, "Error. La dosis debe de ser numrica, no estar vacia ni ser superior a 4 carcteres.");
this.correcto = false;
}else{
r = isInteger(this.descripcion);
if(r.equals(true) || this.descripcion.length() <1 || this.descripcion.length()>1000){
JOptionPane.showMessageDialog(null, "Error. La descripcion no puede ser numrica, estar vacia ni ser superior a 1000 carcteres.");
this.correcto = false;
}else{
this.correcto = true; // En el caso de que todos los datos sean correctos devolveremos True
}
}
}
}
}
public boolean isInteger( String input )
{
try
{
Integer.parseInt( input );
return true;
}
catch( Exception e2 )
{
return false;
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
458bfc0ca1b33b7706b6c88150ac029332625852 | 902564d740bee866d7798df985a25f0f664f6240 | /src/trunk/mywar-game-admin/src/main/java/com/adminTool/msgbody/ResGetUserEquipmentSomeInfoTask.java | 784901fda9123d8387bca7d0d3984ddb67121d31 | [] | no_license | hw233/Server-java | 539b416821ad67d22120c7146b4c3c7d4ad15929 | ff74787987f146553684bd823d6bd809eb1e27b6 | refs/heads/master | 2020-04-29T04:46:03.263306 | 2016-05-20T12:45:44 | 2016-05-20T12:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,181 | java | package com.adminTool.msgbody;
import java.io.IOException;
import com.framework.server.io.iface.IXInputStream;
import com.framework.server.io.iface.IXOutStream;
import com.framework.server.msg.model.ICodeAble;
import com.framework.server.msg.model.UnSynList;
/* GetUserEquipmentTaskForManager响应消息体,cmdCode = 6005 */
public class ResGetUserEquipmentSomeInfoTask implements ICodeAble {
/** 用户装备列表信息 **/
private UnSynList<UserEquipmentSomeInfo> userEquipmentSomeInfoList = new UnSynList<UserEquipmentSomeInfo>();
public ResGetUserEquipmentSomeInfoTask() {
}
public void decode(IXInputStream dataInputStream) throws IOException {
int userEquipmentSomeInfoListSize = dataInputStream.readInt();
for (int i = 0; i < userEquipmentSomeInfoListSize; i++) {
UserEquipmentSomeInfo t = new UserEquipmentSomeInfo();
// t.decode(dataInputStream);
userEquipmentSomeInfoList.add(t);
}
}
public void encode(IXOutStream dataOutputStream) throws IOException {
if (userEquipmentSomeInfoList != null) {
dataOutputStream.writeInt(userEquipmentSomeInfoList.size());
for (int i = 0, size = userEquipmentSomeInfoList.size(); i < size; i++) {
UserEquipmentSomeInfo t = (UserEquipmentSomeInfo) userEquipmentSomeInfoList.get(i);
// t.encode(dataOutputStream);
}
} else {
dataOutputStream.writeInt(0);
}
}
public void addUserEquipmentSomeInfoList(UserEquipmentSomeInfo value) {
userEquipmentSomeInfoList.add(value);
}
public void delUserEquipmentSomeInfoList(int index) {
userEquipmentSomeInfoList.remove(index);
}
public UserEquipmentSomeInfo getUserEquipmentSomeInfoList(int index) {
return userEquipmentSomeInfoList.get(index);
}
public int getUserEquipmentSomeInfoListSize() {
return userEquipmentSomeInfoList.size();
}
/**
* 获取 用户装备列表信息
*/
public UnSynList<UserEquipmentSomeInfo> getUserEquipmentSomeInfoList() {
return userEquipmentSomeInfoList;
}
/**
* 设置 用户装备列表信息
*/
public void setUserEquipmentSomeInfoList(
UnSynList<UserEquipmentSomeInfo> userEquipmentSomeInfoList) {
this.userEquipmentSomeInfoList = userEquipmentSomeInfoList;
}
} | [
"dogdog7788@qq.com"
] | dogdog7788@qq.com |
2bd9f7c3891d56546c6fb2320957bc082b4367d2 | c8de770353ae1bcfe4f4afb5024abaccf9ee4c00 | /src/main/java/com/thescottasylum/nica/svc/impl/dao/RawRaceResultDao.java | 22acb61301708d6f41a214784a0c70a6aacd2ed1 | [] | no_license | avboy72/colorado-league | 8e7f238c3bfd4686826f09425c125d3c316bee1b | c363fcbd84c43f618c107d039ea055b2acc25d25 | refs/heads/master | 2021-01-23T08:44:52.888551 | 2017-09-06T17:37:54 | 2017-09-06T17:37:54 | 102,546,959 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 216 | java | package com.thescottasylum.nica.svc.impl.dao;
import com.thescottasylum.nica.svc.impl.RawRaceResult;
public interface RawRaceResultDao {
public void create(String eventId, String group,RawRaceResult rrr) ;
}
| [
"sean.scott@vertafore.com"
] | sean.scott@vertafore.com |
bc3efd831bc5f219184dab415ccad7e2850a7116 | 50d9bf360e0cae4d8c4142bd1a403e8695a880bf | /PalmCarTreasure/app/src/main/java/com/cango/palmcartreasure/base/BaseFragment.java | dc1660d43b806771f574695d411cbfd20a88bb31 | [] | no_license | androidlli/learngit | 476d8a77090800024c7d49782383319529f7a33e | 420a01cbb795bb2eeeb5c0c023e531baf0c0e306 | refs/heads/master | 2021-01-17T06:48:29.067426 | 2017-06-20T05:36:51 | 2017-06-20T05:36:51 | 47,945,183 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,300 | java | package com.cango.palmcartreasure.base;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.ButterKnife;
import butterknife.Unbinder;
/**
* Created by cango on 2017/4/6.
*/
public abstract class BaseFragment extends Fragment {
protected View mRootView;
protected Unbinder mUnbinder;
protected abstract int initLayoutId();
protected abstract void initView();
protected abstract void initData();
@Override
public void onAttach(Context context) {
super.onAttach(context);
}
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initData();
}
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
mRootView = inflater.inflate(initLayoutId(), container, false);
mUnbinder = ButterKnife.bind(this, mRootView);
initView();
return mRootView;
}
@Override
public void onDestroyView() {
mUnbinder.unbind();
super.onDestroyView();
}
}
| [
"lili92823@163.com"
] | lili92823@163.com |
2278c932c53e9b54b55f9cf33ac1ef63c6223773 | 685d525ef00455b5e02de0b820540517ed0c877e | /src/compresor/NodoA.java | 18beb0e6b2cb9f4a73a58a430d4d5490a39471a2 | [] | no_license | JairoLeon/ee_p02_zip | 5fe1bc2e29536ae94193ad0a803e4ecf155a13d3 | c60e086891818278a65541b88a8ec3213ba672e5 | refs/heads/master | 2021-01-12T11:24:19.958940 | 2016-11-05T05:42:35 | 2016-11-05T05:42:35 | 72,907,837 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,231 | 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 compresor;
/**
*
* @author Jairo
*/
public class NodoA <T extends Comparable<T>> implements Comparable<NodoA<T>>{
private T dato;
private NodoA<T> nodoIzq;
private NodoA<T> nodoDer;
public int compareTo(NodoA<T> c)
{
return dato.compareTo(c.getDato());
}
public NodoA(T dato)
{
this.dato = dato;
this.nodoIzq = null;
this.nodoDer = null;
}
public T getDato()
{
return dato;
}
public NodoA<T> getNodoIzq()
{
return nodoIzq;
}
public NodoA<T> getNodoDer()
{
return nodoDer;
}
public void setNodoDer(NodoA <T> nodo)
{
nodoDer = nodo;
}
public void setNodoIzq(NodoA <T> nodo)
{
nodoIzq = nodo;
}
public void setDato(T dato)
{
this.dato = dato;
}
public String toString()
{
return "("+dato+","+nodoIzq+","+nodoDer+")";
}
}
| [
"Jairo@192.168.0.15"
] | Jairo@192.168.0.15 |
4192e689e9f54ffc4cb90df13731529cf6b44d6a | 299b81c1d89bb7c11cac217d35c2de4ff82542ce | /app/src/main/java/com/briandemaio/meditationreminder/BackgroundSound.java | 11fa6914f22314888bd859cc21bcc9f7bc8be1ca | [] | no_license | Hereiam123/Meditation-Reminder | d1f323edbe24e2a9843287a7bf3305339bdf2414 | d3c4ada8ff6742ff027ce77efd2f769b17564f19 | refs/heads/master | 2020-07-02T22:06:56.970273 | 2019-08-17T22:29:48 | 2019-08-17T22:29:48 | 201,681,807 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,874 | java | package com.briandemaio.meditationreminder;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
import androidx.annotation.Nullable;
public class BackgroundSound extends Service implements MediaPlayer.OnPreparedListener{
MediaPlayer mediaPlayer;
@Nullable
@Override
public IBinder onBind(Intent intent) {
return null;
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
String audioChoice = intent.getStringExtra("Music Choice");
//Don't plan on adding more audio tracks right now, so...
switch (audioChoice) {
case "Ambient Universe":
mediaPlayer = MediaPlayer.create(this, R.raw.ambient_universe);
break;
case "Deep Meditation":
mediaPlayer = MediaPlayer.create(this, R.raw.deep_meditation_om);
break;
case "Lucid Tones":
mediaPlayer = MediaPlayer.create(this, R.raw.lucid_toads);
break;
case "Piano Lullaby":
mediaPlayer = MediaPlayer.create(this, R.raw.piano_lullabynowm);
break;
default:
mediaPlayer = MediaPlayer.create(this, R.raw.lucid_toads);
break;
}
mediaPlayer.setOnPreparedListener(this);
return super.onStartCommand(intent, flags, startId);
}
@Override
public boolean stopService(Intent name) {
return super.stopService(name);
}
@Override
public void onDestroy() {
super.onDestroy();
mediaPlayer.stop();
mediaPlayer.release();
mediaPlayer = null;
}
@Override
public void onPrepared(MediaPlayer mp) {
mediaPlayer.setLooping(true);
mediaPlayer.start();
}
}
| [
"bdemaio1@gmail.com"
] | bdemaio1@gmail.com |
87277e6becc80b68c805809dbf9db2852d212272 | 176dafdf9ac1cf34adce2e7b7a118de623528939 | /src/main/java/com/oreilly/security/domain/repositories/AutoUserRepository.java | 10b1e03b422b38f0fb7bd8ae6c26d035e419689f | [] | no_license | RobertWAFowler/udemy-spring-security | be551d4a67950c2c56a08443d6d1c63466be8f24 | d61d3e26991c456f820d7b53e781df294c1198ae | refs/heads/master | 2020-04-13T05:25:19.386051 | 2018-12-30T09:22:23 | 2018-12-30T09:22:23 | 162,991,572 | 0 | 0 | null | 2018-12-24T14:34:46 | 2018-12-24T13:06:39 | Java | UTF-8 | Java | false | false | 300 | java | package com.oreilly.security.domain.repositories;
import com.oreilly.security.domain.entities.AutoUser;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AutoUserRepository extends JpaRepository<AutoUser, Long> {
public AutoUser findByUsername(String username);
}
| [
"rfowler.reg@gmail.com"
] | rfowler.reg@gmail.com |
b86c9699eff96b1c67a5944cac2ff7f5d3a76685 | 27afd614f01b9712e0dbd03071d25c3d7b245057 | /app/src/main/java/com/example/AndroidStudiolab3/MyAdapter.java | e2417b8a678c4eb39afd11fce6d136e63c99a8f2 | [] | no_license | Tr1ssys/AndroidStudiolaba3part1 | 96fa1dc43cb982e05ab8b9edca8c14c2e853447b | f87e3eca000eb5a8fb266a96e383fcb57e126ff4 | refs/heads/master | 2022-06-10T14:24:01.186299 | 2020-05-11T18:24:47 | 2020-05-11T18:24:47 | 263,123,275 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,726 | java | package com.example.AndroidStudiolab3;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.MyViewHolder> {
private List itemIDs; // ID
private List itemFIOs; // full name student
private List itemDates; // date added
public static class MyViewHolder extends RecyclerView.ViewHolder{
public TextView textID;
public TextView textFIO;
public TextView textDate;
public MyViewHolder(View v){
super(v);
textID = v.findViewById(R.id.textID);
textFIO = v.findViewById(R.id.textFIO);
textDate = v.findViewById(R.id.textDate);
}
}
public MyAdapter(List IDs, List FIOs, List Dates){
itemIDs = IDs;
itemFIOs = FIOs;
itemDates = Dates;
}
@NonNull
@Override
public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View v = (View) LayoutInflater.from(parent.getContext())
.inflate(R.layout.item, parent, false);
MyViewHolder vh = new MyViewHolder(v);
return vh;
}
@Override
public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {
holder.textID.setText(""+(long)itemIDs.get(position));
holder.textFIO.setText((String)itemFIOs.get(position));
holder.textDate.setText((String)itemDates.get(position));
}
@Override
public int getItemCount() {
return itemIDs.size();
}
}
| [
"aleksanderrr1@gmail.com"
] | aleksanderrr1@gmail.com |
2e1f4930e15285041db07eb5144195899362109e | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/14/14_3cae115aa731617b8c6768ca14b1f2b91ba3c3fa/SemenGatheringSessionBean/14_3cae115aa731617b8c6768ca14b1f2b91ba3c3fa_SemenGatheringSessionBean_t.java | 559ae777e99026ce3d7870fcf807ddfda702a3e8 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 13,805 | java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.inbio.ara.germplasm;
import com.sun.rave.web.ui.appbase.AbstractSessionBean;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.FacesException;
import org.inbio.ara.dto.germplasm.SemenGatheringDTO;
import org.inbio.ara.facade.germplasm.GermplasmFacadeRemote;
import org.inbio.ara.facade.inventory.InventoryFacadeRemote;
import org.inbio.ara.util.PaginationControllerRemix;
import org.inbio.ara.util.PaginationCoreInterface;
/**
* <p>Session scope data bean for your application. Create properties
* here to represent cached data that should be made available across
* multiple HTTP requests for an individual user.</p>
*
* <p>An instance of this class will be created for you automatically,
* the first time your application evaluates a value binding expression
* or method binding expression that references a managed bean using
* this class.</p>
*
* @version SemenGatheringSessionBean.java
* @version Created on 08/04/2010, 10:26:40 AM
* @author dasolano
*/
public class SemenGatheringSessionBean extends AbstractSessionBean implements PaginationCoreInterface {
// <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
/**
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced.</p>
*/
private void _init() throws Exception {
}
// </editor-fold>
@EJB
private GermplasmFacadeRemote germplasmFacadeRemote;
@EJB
private InventoryFacadeRemote inventoryFacadeRemote;
private SemenGatheringDTO semenGatheringDTO = new SemenGatheringDTO();
//Objeto que controla la paginacion de la informacion de passport
private PaginationControllerRemix pagination = null;
//Bandera para saber si se activo el panel de busqueda avanzada
private boolean advancedSearch = false;
//Entero que indica la cantidad de elementos que el usuario desea mostrar en los resultados
private int quantity = 10; //Por defecto se mostraran 10 elementos
//Bandera para indicarle al paginador que trabaje en modo busqueda avanzada
private boolean queryMode = false;
//Bandera para indicarle al paginador que trabaje en modo busqueda simple
private boolean queryModeSimple = false;
//String que indica la consulta del usuario en la busqueda simple
private String consultaSimple = new String("");
private SemenGatheringDTO querySemenGatheringDTO = new SemenGatheringDTO();
private boolean firstTime = true;
private Long sementalId = null;
private Long selectedMinutes = null;
private Long selectedHour = null;
/**
* <p>Construct a new session data bean instance.</p>
*/
public SemenGatheringSessionBean() {
}
public void resetValues()
{
setSemenGatheringDTO(new SemenGatheringDTO());
setQuerySemenGatheringDTO(new SemenGatheringDTO());
setConsultaSimple(new String(""));
setQueryModeSimple(false);
setQueryMode(false);
setAdvancedSearch(false);
setFirstTime(true);
}
public void resetPagination()
{
setPagination(null);
}
/**
* @return un String que contiene el detalle de la paginacion
*/
public String getQuantityTotal() {
int actualPage = this.getPagination().getActualPage();
int resultsPerPage = this.getPagination().getResultsPerPage();
int totalResults = this.getPagination().getTotalResults();
return " " + (actualPage + 1) + " - " + (actualPage + resultsPerPage) + " | " + totalResults + " ";
}
/**
* Inicializar el data provider de especimenes
*/
public void initDataProvider() {
setPagination(new PaginationControllerRemix(
getGermplasmFacadeRemote().countAllSemenGathering(getSementalId()).intValue(),this.getQuantity(), this));
}
/**
* Para evitar que retorne null al data provider del paginador
* @param l lista retornada para el paginador
* @return
*/
public List myReturn(List l) {
if (l == null) {
return new ArrayList<SemenGatheringDTO>();
} else {
return l;
}
}
/**
* <p>This method is called when this bean is initially added to
* session scope. Typically, this occurs as a result of evaluating
* a value binding or method binding expression, which utilizes the
* managed bean facility to instantiate this bean and store it into
* session scope.</p>
*
* <p>You may customize this method to initialize and cache data values
* or resources that are required for the lifetime of a particular
* user session.</p>
*/
@Override
public void init() {
// Perform initializations inherited from our superclass
super.init();
// Perform application initialization that must complete
// *before* managed components are initialized
// TODO - add your own initialiation code here
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
// Initialize automatically managed components
// *Note* - this logic should NOT be modified
try {
_init();
} catch (Exception e) {
log("SemenGatheringSessionBean Initialization Failure", e);
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
}
// </editor-fold>
// Perform application initialization that must complete
// *after* managed components are initialized
// TODO - add your own initialization code here
}
/**
* <p>This method is called when the session containing it is about to be
* passivated. Typically, this occurs in a distributed servlet container
* when the session is about to be transferred to a different
* container instance, after which the <code>activate()</code> method
* will be called to indicate that the transfer is complete.</p>
*
* <p>You may customize this method to release references to session data
* or resources that can not be serialized with the session itself.</p>
*/
@Override
public void passivate() {
}
/**
* <p>This method is called when the session containing it was
* reactivated.</p>
*
* <p>You may customize this method to reacquire references to session
* data or resources that could not be serialized with the
* session itself.</p>
*/
@Override
public void activate() {
}
/**
* <p>This method is called when this bean is removed from
* session scope. Typically, this occurs as a result of
* the session timing out or being terminated by the application.</p>
*
* <p>You may customize this method to clean up resources allocated
* during the execution of the <code>init()</code> method, or
* at any later time during the lifetime of the application.</p>
*/
@Override
public void destroy() {
}
public List getResults(int firstResult, int maxResults) {
List<SemenGatheringDTO> auxResult = new ArrayList<SemenGatheringDTO>();
List<SemenGatheringDTO> aListDTO;
if (isQueryMode()) { //En caso de que sea busqueda avanzada
//Set the collectionId into the DTO
try {
aListDTO = myReturn(getGermplasmFacadeRemote().
getSemenGatheringAdvancedSearch(
getQuerySemenGatheringDTO(), getSementalId(), firstResult, maxResults));
return aListDTO;
} catch (Exception e) {
e.printStackTrace();
return auxResult;
}
} else if (isQueryModeSimple()) { //En caso de que sea busqueda simple
try {
aListDTO = myReturn(getGermplasmFacadeRemote().
getSemenGatheringlSimpleSearch(
getConsultaSimple(), getSementalId(), firstResult, maxResults));
return aListDTO;
} catch (Exception e) {
e.printStackTrace();
return auxResult;
}
} else //Valores default
{
try {
aListDTO = myReturn(getGermplasmFacadeRemote().
getAllSemenGatheringPaginated(getSementalId(),firstResult, maxResults));
return aListDTO;
} catch (Exception e) {
e.printStackTrace();
return auxResult;
}
}
}
/**
* @return the germplasmFacadeRemote
*/
public GermplasmFacadeRemote getGermplasmFacadeRemote() {
return germplasmFacadeRemote;
}
/**
* @param germplasmFacadeRemote the germplasmFacadeRemote to set
*/
public void setGermplasmFacadeRemote(GermplasmFacadeRemote germplasmFacadeRemote) {
this.germplasmFacadeRemote = germplasmFacadeRemote;
}
/**
* @return the inventoryFacadeRemote
*/
public InventoryFacadeRemote getInventoryFacadeRemote() {
return inventoryFacadeRemote;
}
/**
* @param inventoryFacadeRemote the inventoryFacadeRemote to set
*/
public void setInventoryFacadeRemote(InventoryFacadeRemote inventoryFacadeRemote) {
this.inventoryFacadeRemote = inventoryFacadeRemote;
}
/**
* @return the semenGatheringDTO
*/
public SemenGatheringDTO getSemenGatheringDTO() {
return semenGatheringDTO;
}
/**
* @param semenGatheringDTO the semenGatheringDTO to set
*/
public void setSemenGatheringDTO(SemenGatheringDTO semenGatheringDTO) {
this.semenGatheringDTO = semenGatheringDTO;
}
/**
* @return the pagination
*/
public PaginationControllerRemix getPagination() {
return pagination;
}
/**
* @param pagination the pagination to set
*/
public void setPagination(PaginationControllerRemix pagination) {
this.pagination = pagination;
}
/**
* @return the advancedSearch
*/
public boolean isAdvancedSearch() {
return advancedSearch;
}
/**
* @param advancedSearch the advancedSearch to set
*/
public void setAdvancedSearch(boolean advancedSearch) {
this.advancedSearch = advancedSearch;
}
/**
* @return the quantity
*/
public int getQuantity() {
return quantity;
}
/**
* @param quantity the quantity to set
*/
public void setQuantity(int quantity) {
this.quantity = quantity;
}
/**
* @return the queryMode
*/
public boolean isQueryMode() {
return queryMode;
}
/**
* @param queryMode the queryMode to set
*/
public void setQueryMode(boolean queryMode) {
this.queryMode = queryMode;
}
/**
* @return the queryModeSimple
*/
public boolean isQueryModeSimple() {
return queryModeSimple;
}
/**
* @param queryModeSimple the queryModeSimple to set
*/
public void setQueryModeSimple(boolean queryModeSimple) {
this.queryModeSimple = queryModeSimple;
}
/**
* @return the consultaSimple
*/
public String getConsultaSimple() {
return consultaSimple;
}
/**
* @param consultaSimple the consultaSimple to set
*/
public void setConsultaSimple(String consultaSimple) {
this.consultaSimple = consultaSimple;
}
/**
* @return the querySemenGatheringDTO
*/
public SemenGatheringDTO getQuerySemenGatheringDTO() {
return querySemenGatheringDTO;
}
/**
* @param querySemenGatheringDTO the querySemenGatheringDTO to set
*/
public void setQuerySemenGatheringDTO(SemenGatheringDTO querySemenGatheringDTO) {
this.querySemenGatheringDTO = querySemenGatheringDTO;
}
/**
* @return the firstTime
*/
public boolean isFirstTime() {
return firstTime;
}
/**
* @param firstTime the firstTime to set
*/
public void setFirstTime(boolean firstTime) {
this.firstTime = firstTime;
}
/**
* @return the sementalId
*/
public Long getSementalId() {
return sementalId;
}
/**
* @param sementalId the sementalId to set
*/
public void setSementalId(Long sementalId) {
this.sementalId = sementalId;
}
/**
* @return the selectedMinutes
*/
public Long getSelectedMinutes() {
return selectedMinutes;
}
/**
* @param selectedMinutes the selectedMinutes to set
*/
public void setSelectedMinutes(Long selectedMinutes) {
this.selectedMinutes = selectedMinutes;
}
/**
* @return the selectedHour
*/
public Long getSelectedHour() {
return selectedHour;
}
/**
* @param selectedHour the selectedHour to set
*/
public void setSelectedHour(Long selectedHour) {
this.selectedHour = selectedHour;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
4b612f20cbfef1bb9c9be6ebe4e335eb1277d121 | 40ef36571e1871e8f76da696f9313b8aea2b8d1d | /app/src/main/java/com/apliant/shact/RegisterActivity.java | 0f4f3fe763240e2a9b0fcd9d198261eee01d4bd4 | [] | no_license | rafaelcorreiapoli/shact-android | 5fbcec01c768b0ef624fac115afcb27577a92e18 | f009437086b10f15dab7bccc6eb6488fb1a994ce | refs/heads/master | 2021-01-10T04:49:53.687053 | 2016-01-19T03:06:41 | 2016-01-19T03:06:41 | 49,386,659 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,364 | java | package com.apliant.shact;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import roboguice.activity.RoboActivity;
import roboguice.inject.ContentView;
import roboguice.inject.InjectView;
@ContentView(R.layout.activity_register)
public class RegisterActivity extends RoboActivity implements View.OnClickListener {
@InjectView(R.id.registerName) EditText registerName;
@InjectView(R.id.registerUsername) EditText registerUsername;
@InjectView(R.id.registerPassword) EditText registerPassword;
@InjectView(R.id.registerPasswordConfirmation) EditText registerPasswordConfirmation;
@InjectView(R.id.buttonRegister) Button buttonRegister;
@InjectView(R.id.goToLogin) TextView goToLogin;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.buttonRegister:
break;
case R.id.goToLogin:
startActivity(new Intent(getApplicationContext(), LoginActivity.class));
break;
}
}
}
| [
"rafael.correia.poli@gmail.com"
] | rafael.correia.poli@gmail.com |
24490d3108c480b3c06800e706c45b1605689c04 | 492fb158b72e36d4e33f5d556c2fd92c0ba3286b | /src/pt/isel/pdm/android/content/ObjectFieldGetter.java | f1561a875bda4681daff424ff98a00f61cf29238 | [] | no_license | paletas-isel/ISEL-PDM-Yamba | 23201e2311f282b29717561860b87622904f033a | b89f1934414ba36ed48bb61acb7a21cfced77d93 | refs/heads/master | 2021-05-27T00:55:01.223660 | 2012-06-09T17:53:55 | 2012-06-09T17:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 119 | java | package pt.isel.pdm.android.content;
public interface ObjectFieldGetter<O,F> {
public F getFieldValueFrom(O obj);
}
| [
"ricardomiguel.sn@gmail.com"
] | ricardomiguel.sn@gmail.com |
8face3f33bed75898f7f12d636551bc08de8d9b2 | e53e5df24ffdff3408ddeb60cb06c838ab7c8140 | /Event.java | fb8183fb615826768ac1e5d501599d42fad98ab2 | [] | no_license | HaydenLFowler/CO567-CW1 | 2ed7caa55130160af9e461da404a5519809db383 | 35996db09c305d2bc3f8704f9f0535d7967351e3 | refs/heads/master | 2020-12-23T07:05:32.605645 | 2020-01-29T20:45:21 | 2020-01-29T20:45:21 | 237,078,591 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,292 | java | import java.util.ArrayList;
/**
* Write a description of class Event here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Event
{
private int id;
private String date;
private String time;
private Show show;
/**
* Constructor for objects of class Event
*/
public Event(int id, String date, String time)
{
this.id = id;
this.date = date;
this.time = time;
}
public Event(int id, String time, Show show)
{
this.id = id;
this.date = date;
this.time = time;
this.show = show;
}
public String getDetails()
{
Show show = getShow();
String showName = "";
if (show != null)
{
showName = " : " + show.getShow();
}
return " ID: " + id + " | Event Date: " + date + " | Start Time: " + time + " | Show: " + showName;
}
public int getId()
{
return id;
}
public String getDate()
{
return date;
}
public String getTime()
{
return time;
}
public Show getShow()
{
return show;
}
public void addShow(Show show)
{
this.show = show;
}
}
| [
"hayd_4@live.co.uk"
] | hayd_4@live.co.uk |
7d302418d6f86ee568a0fc1ceb27894a58b6d5b3 | 180e78725121de49801e34de358c32cf7148b0a2 | /dataset/protocol1/jdbi/learning/3535/InputStreamArgument.java | fff835d5dfd438e2a5233f1e209e6e491c86b754 | [] | no_license | ASSERT-KTH/synthetic-checkstyle-error-dataset | 40e8d1e0a7ebe7f7711def96a390891a6922f7bd | 40c057e1669584bfc6fecf789b5b2854660222f3 | refs/heads/master | 2023-03-18T12:50:55.410343 | 2019-01-25T09:54:39 | 2019-01-25T09:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,030 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jdbi.v3.core.argument;
import java.io.InputStream;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;
import org.jdbi.v3. core.statement.StatementContext;
/**
* Bind an input stream as either an ASCII (discouraged) or binary stream.
*/
public class InputStreamArgument implements Argument {
private final InputStream value;
private final int length;
private final boolean ascii;
/**
* @param stream the stream to bind
* @param length the length of the stream
* @param ascii true if the stream is ASCII
*/
public InputStreamArgument(InputStream stream, int length, boolean ascii) {
this.value = stream;
this.length = length;
this.ascii = ascii;
}
@Override
public void apply(int position, PreparedStatement statement, StatementContext ctx) throws SQLException {
if (ascii) {
if (value == null) {
statement.setNull(position, Types.LONGVARCHAR);
} else {
statement.setAsciiStream(position, value, length);
}
} else {
if (value == null) {
statement.setNull(position, Types.LONGVARBINARY);
} else {
statement.setBinaryStream(position, value, length);
}
}
}
@Override
public String toString() {
return "<stream object cannot be read for toString() calls>";
}
}
| [
"bloriot97@gmail.com"
] | bloriot97@gmail.com |
12bb6f4e68124e34c715b26fd7338ca6490c127e | 8005e3a21c90f948540cacec7a9d6dfdf6f9f9da | /src/Main.java | fbe5fce87e4e88fdb0458ba52145c192dc0f794f | [] | no_license | andreysanchezcr/progra | fd4af59333f3314feb59427d3748f84bf9d99b09 | 6642e099765b40bb0f544c6b95f6713d9bff7409 | refs/heads/master | 2020-03-31T12:24:32.528543 | 2014-11-01T13:02:57 | 2014-11-01T13:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 234 | java |
import java.io.IOException;
/**
*
* @author Familia Alpizar R
*/
public class Main{
public static void main(String[] args) throws IOException {
new VentanaPrincipal().setVisible(true);
}
}
| [
"ricardo@192.168.0.12"
] | ricardo@192.168.0.12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.