blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
390
content_id
stringlengths
40
40
detected_licenses
listlengths
0
35
license_type
stringclasses
2 values
repo_name
stringlengths
6
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
539 values
visit_date
timestamp[us]date
2016-08-02 21:09:20
2023-09-06 10:10:07
revision_date
timestamp[us]date
1990-01-30 01:55:47
2023-09-05 21:45:37
committer_date
timestamp[us]date
2003-07-12 18:48:29
2023-09-05 21:45:37
github_id
int64
7.28k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
13 values
gha_event_created_at
timestamp[us]date
2012-06-11 04:05:37
2023-09-14 21:59:18
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-28 02:39:21
gha_language
stringclasses
62 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
128
12.8k
extension
stringclasses
11 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
79
ce0dca2f9f587f10f4bfbf33fc86a79716302dbd
18c70f2a4f73a9db9975280a545066c9e4d9898e
/mirror-rbac/rbac-service/src/main/java/com/migu/tsg/microservice/atomicservice/rbac/controller/ModuleCustomizedViewController.java
d89cb6ca108950b8705fe2c5c844b97b18e7da13
[]
no_license
iu28igvc9o0/cmdb_aspire
1fe5d8607fdacc436b8a733f0ea44446f431dfa8
793eb6344c4468fe4c61c230df51fc44f7d8357b
refs/heads/master
2023-08-11T03:54:45.820508
2021-09-18T01:47:25
2021-09-18T01:47:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,275
java
package com.migu.tsg.microservice.atomicservice.rbac.controller; import com.migu.tsg.microservice.atomicservice.rbac.biz.ModuleCustomizedViewBiz; import com.migu.tsg.microservice.atomicservice.rbac.biz.UserClassifyBiz; import com.migu.tsg.microservice.atomicservice.rbac.dao.UserClassifyPageConfigDao; import com.migu.tsg.microservice.atomicservice.rbac.dto.ModuleCustomizedViewDesignRequest; import com.migu.tsg.microservice.atomicservice.rbac.dto.ModuleCustomizedViewRequest; import com.migu.tsg.microservice.atomicservice.rbac.dto.ModuleCustomizedViewUpdateRequest; import com.migu.tsg.microservice.atomicservice.rbac.dto.model.ModuleCustomizedViewDTO; import com.migu.tsg.microservice.atomicservice.rbac.service.ModuleCustomizedViewService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.CacheConfig; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import java.util.List; /** * 控制层实现类 * <p> * 项目名称: mirror平台 * 包: com.aspire.mirror.configManagement.controller * 类名称: ModuleCustomizedController * 类描述: 控制层实现类 * 创建人: 曾祥华 * 创建时间: 2019-07-17 14:04:59 */ @RestController @CacheConfig(cacheNames = "ModuleCustomizedViewCache") public class ModuleCustomizedViewController implements ModuleCustomizedViewService { /** * 系统日志 */ private static final Logger LOGGER = LoggerFactory.getLogger(ModuleCustomizedViewController.class); @Autowired private ModuleCustomizedViewBiz moduleCustomizedViewBiz; @Resource private UserClassifyPageConfigDao userClassifyPageConfigDao; /** * 根据查询条件获取分页列表获取分页列表 * @param request 分页查询监控对象 * @return */ // @Override // public PageResult<ModuleCustomizedDTO> pageList(ModuleCustomizedPageRequest request) { // if (null == request) { // LOGGER.warn("pageList param templatePageRequest is null"); // return null; // } // PageRequest pageRequest = new PageRequest(); // pageRequest.setPageSize(request.getPageSize()); // pageRequest.setPageNo(request.getPageNo()); // //查询条件,可自己增加PageRequest中参数 // /** pageRequest.addFields("precinctId", request.getPrecinctId()); // pageRequest.addFields("precinctName", request.getPrecinctName()); // pageRequest.addFields("precinctKind", request.getPrecinctKind()); // pageRequest.addFields("lscId", request.getLscId()); // pageRequest.addFields("areaCode", request.getAreaCode());*/ // PageResult<ModuleCustomizedDTO> ModuleCustomizedDTOPageResponse = moduleCustomizedBiz.pageList(pageRequest); // return ModuleCustomizedDTOPageResponse; // } @Override public ResponseEntity<String> createdModuleCustomizedView(@RequestBody ModuleCustomizedViewRequest moduleCustomizedViewRequest) { if (null == moduleCustomizedViewRequest) { LOGGER.error("created param moduleCustomizedViewRequest is null"); throw new RuntimeException("moduleCustomizedViewRequest is null"); } ModuleCustomizedViewDTO moduleCustomizedDTO = new ModuleCustomizedViewDTO(); BeanUtils.copyProperties(moduleCustomizedViewRequest, moduleCustomizedDTO); try { moduleCustomizedViewBiz.insert(moduleCustomizedDTO); return new ResponseEntity<String>("success",HttpStatus.OK); } catch (Exception e) { LOGGER.error("insert error:" + e.getMessage(), e); return new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } } @Override public ResponseEntity<String> modifyByPrimaryKey(@RequestBody ModuleCustomizedViewUpdateRequest moduleCustomizedViewRequest) { if (null == moduleCustomizedViewRequest) { LOGGER.error("created param ModuleCustomizedViewUpdateRequest is null"); throw new RuntimeException("ModuleCustomizedViewUpdateRequest is null"); } ModuleCustomizedViewDTO moduleCustomizedDTO = new ModuleCustomizedViewDTO(); BeanUtils.copyProperties(moduleCustomizedViewRequest, moduleCustomizedDTO); try { moduleCustomizedViewBiz.update(moduleCustomizedDTO); //同时更新t_user_classify_page_config userClassifyPageConfigDao.updatePageConfig(moduleCustomizedDTO.getId(),moduleCustomizedDTO.getContent()); return new ResponseEntity<String>("success",HttpStatus.OK); } catch (Exception e) { LOGGER.error("update error:" + e.getMessage(), e); return new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } } /** * 根据主键删除单条动作信息 * * @param moduleCustomizedId 主键 * @@return Result 返回结果 */ public ResponseEntity<String> deleteByPrimaryKey(@PathVariable("id") final String id) { try { moduleCustomizedViewBiz.deleteByPrimaryKey(id); return new ResponseEntity<String>("success",HttpStatus.OK); } catch (Exception e) { LOGGER.error("deleteByProjectId error:" + e.getMessage(), e); return new ResponseEntity<String>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR); } } @Override public List<ModuleCustomizedViewDTO> select(@RequestBody ModuleCustomizedViewRequest moduleCustomizedViewRequest) { ModuleCustomizedViewDTO dto=new ModuleCustomizedViewDTO(); BeanUtils.copyProperties(moduleCustomizedViewRequest, dto); return moduleCustomizedViewBiz.select(dto); } @Override public ResponseEntity<String> designView(@RequestBody ModuleCustomizedViewDesignRequest m) { // TODO Auto-generated method stub return null; } }
[ "jiangxuwen7515@163.com" ]
jiangxuwen7515@163.com
3fa4c221aa1d2cce0f1c34ca0b699951eba0bb0f
9d4a026c1f0f443b3f57783d837b1cdf1bfd6520
/src/main/java/sesawi/jsf/beans/LocationsBean.java
c6fc50bf43076ff8ac1019bf91a8c3394482eca5
[]
no_license
sfranklyn/sesawi
c52d2a165839efed58dd21ae31478098d754995d
30c6e3a718399518323c11c2e6132a122cee14f9
refs/heads/master
2021-01-17T12:20:04.518437
2016-07-27T18:32:48
2016-07-27T18:32:48
64,332,650
0
1
null
null
null
null
UTF-8
Java
false
false
5,921
java
/* * Copyright 2014 Samuel Franklyn <sfranklyn@gmail.com>. * * 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 sesawi.jsf.beans; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.annotation.PostConstruct; import javax.ejb.EJB; import javax.enterprise.context.SessionScoped; import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import javax.faces.model.SelectItem; import javax.inject.Inject; import javax.inject.Named; import javax.servlet.http.HttpServletRequest; import sesawi.ejb.dao.LocationsDaoBean; import sesawi.ejb.datamodel.LocationsDataModelBean; import sesawi.ejb.datamodel.OwnersDataModelBean; import sesawi.ejb.service.LocationsServiceBean; import sesawi.jpa.Locations; import sesawi.jpa.Owners; import sesawi.jsf.model.DatabaseDataModel; /** * * @author Samuel Franklyn <sfranklyn@gmail.com> */ @Named("locations") @SessionScoped public class LocationsBean implements Serializable { private static final long serialVersionUID = -2592240693442856375L; private final Integer noOfRows = 15; private final Integer fastStep = 10; private final DatabaseDataModel dataModel = new DatabaseDataModel(); private Locations locations = null; private List<SelectItem> ownerNameList = null; @Inject private VisitBean visit; @EJB private LocationsDaoBean locationsDaoBean; @EJB private LocationsServiceBean locationsServiceBean; @EJB private LocationsDataModelBean locationsDataModelBean; @EJB private OwnersDataModelBean ownersDataModelBean; @PostConstruct public void init() { dataModel.setSelect(LocationsDataModelBean.SELECT_ALL); dataModel.setSelectCount(LocationsDataModelBean.SELECT_ALL_COUNT); dataModel.setSelectParam(null); dataModel.setWrappedData(locationsDataModelBean); locations = new Locations(); locations.setOwners(new Owners()); } public void findLocation() { HttpServletRequest req = (HttpServletRequest) FacesContext. getCurrentInstance().getExternalContext().getRequest(); String locationId = req.getParameter("locationId"); if (locationId != null) { Integer locationIdInt = Integer.valueOf(locationId); locations = locationsDaoBean.find(locationIdInt); if (locations.getOwners() == null) { locations.setOwners(new Owners()); } } } public String create() { locations = new Locations(); locations.setOwners(new Owners()); return "/secure/locationsCreate?faces-redirect=true"; } public String saveCreate() { String result = "/secure/locationsCreate"; List<String> errorList = locationsServiceBean.saveCreate(locations, visit.getLocale()); if (errorList.size() > 0) { for (String error : errorList) { FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, error, "")); } } else { result = "/secure/locations?faces-redirect=true"; } return result; } public String saveUpdate() { String result = "/secure/locationsUpdate"; List<String> errorList = locationsServiceBean.saveUpdate(locations, visit.getLocale()); if (errorList.size() > 0) { for (String error : errorList) { FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, error, "")); } } else { result = "/secure/locations?faces-redirect=true"; } return result; } public String saveDelete() { String result = "/secure/locationsDelete"; List<String> errorList = locationsServiceBean.saveDelete(locations, visit.getLocale()); if (errorList.size() > 0) { for (String error : errorList) { FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, error, "")); } } else { result = "/secure/locations?faces-redirect=true"; } return result; } public List<SelectItem> getOwnerNameList() { ownerNameList = new ArrayList<>(); List ownerList; ownerList = ownersDataModelBean.getAll(OwnersDataModelBean.SELECT_ALL, null, 0, Short.MAX_VALUE); for (Object ownerList1 : ownerList) { Owners owners = (Owners) ownerList1; SelectItem selectItem = new SelectItem(owners.getOwnerName()); ownerNameList.add(selectItem); } return ownerNameList; } public Integer getNoOfRows() { return noOfRows; } public Integer getFastStep() { return fastStep; } public DatabaseDataModel getDataModel() { return dataModel; } public Locations getLocations() { return locations; } public void setLocations(Locations locations) { this.locations = locations; } public VisitBean getVisit() { return visit; } public void setVisit(VisitBean visit) { this.visit = visit; } }
[ "sfranklyn@gmail.com" ]
sfranklyn@gmail.com
99a7cea992d347a8b5d170a85ae55e8c9a28944f
146c98ccd3a53a0fc3503cd14321354cded08aa4
/manage-admin/src/main/java/edu/xpu/hcp/manage/admin/config/DruidConfig.java
5a0604d98b60674ef53533920134eb7b3cd87395
[]
no_license
WingedCat/Manage
2da1f809f0606ce834e0f2c796e9fdf3eb1fda14
ff964862e70bae517dff23ec0de129474b9f2bbc
refs/heads/master
2023-08-03T15:00:09.875679
2019-10-14T11:07:36
2019-10-14T11:07:36
210,349,551
0
0
null
2023-07-22T16:56:17
2019-09-23T12:27:55
Java
UTF-8
Java
false
false
3,904
java
package edu.xpu.hcp.manage.admin.config; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.support.http.StatViewServlet; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.boot.web.servlet.ServletRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.alibaba.druid.support.http.WebStatFilter; import javax.servlet.Filter; import javax.servlet.Servlet; import javax.sql.DataSource; import java.sql.SQLException; @Configuration @EnableConfigurationProperties({DruidDataSourceProperties.class}) public class DruidConfig { @Autowired private DruidDataSourceProperties properties; @Bean @ConditionalOnMissingBean public DataSource druidDataSource() { DruidDataSource druidDataSource = new DruidDataSource(); druidDataSource.setDriverClassName(properties.getDriverClassName()); druidDataSource.setUrl(properties.getUrl()); druidDataSource.setUsername(properties.getUsername()); druidDataSource.setPassword(properties.getPassword()); druidDataSource.setInitialSize(properties.getInitialSize()); druidDataSource.setMinIdle(properties.getMinIdle()); druidDataSource.setMaxActive(properties.getMaxActive()); druidDataSource.setMaxWait(properties.getMaxWait()); druidDataSource.setTimeBetweenEvictionRunsMillis(properties.getTimeBetweenEvictionRunsMillis()); druidDataSource.setMinEvictableIdleTimeMillis(properties.getMinEvictableIdleTimeMillis()); druidDataSource.setValidationQuery(properties.getValidationQuery()); druidDataSource.setTestWhileIdle(properties.isTestWhileIdle()); druidDataSource.setTestOnBorrow(properties.isTestOnBorrow()); druidDataSource.setTestOnReturn(properties.isTestOnReturn()); druidDataSource.setPoolPreparedStatements(properties.isPoolPreparedStatements()); druidDataSource.setMaxPoolPreparedStatementPerConnectionSize(properties.getMaxPoolPreparedStatementPerConnectionSize()); try { druidDataSource.setFilters(properties.getFilters()); druidDataSource.init(); } catch (SQLException e) { e.printStackTrace(); } return druidDataSource; } @Bean @ConditionalOnMissingBean public ServletRegistrationBean<Servlet> druidServlet() { ServletRegistrationBean<Servlet> servletRegistrationBean = new ServletRegistrationBean<Servlet>(new StatViewServlet(), "/druid/*"); //白名单 servletRegistrationBean.addInitParameter("allow", "127.0.0.1"); //IP黑名单(共同存在时deny优先于allow) // servletRegistrationBean.addInitParameter("deny","127.0.0.1"); //登录查看信息的账号密码,用于登录Druid控制台 servletRegistrationBean.addInitParameter("loginUsername", "admin"); servletRegistrationBean.addInitParameter("loginPassword", "admin"); //是否能够重置数据 servletRegistrationBean.addInitParameter("resetEnable", "true"); return servletRegistrationBean; } @Bean @ConditionalOnMissingBean public FilterRegistrationBean<Filter> filterRegistrationBean() { FilterRegistrationBean<Filter> filterRegistrationBean = new FilterRegistrationBean<Filter>(); filterRegistrationBean.setFilter(new WebStatFilter()); filterRegistrationBean.addUrlPatterns("/*"); filterRegistrationBean.addInitParameter("exclusions", "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"); return filterRegistrationBean; } }
[ "2233749193@qq.com" ]
2233749193@qq.com
483183b6023645e67fd03b10cdfb37fa46f7912d
9ba14c95d961f604b01300b2d805d3246ef687ed
/app/src/main/java/com/hua/activity/test/ChoiceInterest2.java
a300bb7d8c221a0ed53eb98cb51208a5b54d963b
[]
no_license
tianshiaimili/HuaAndroidStudioDemo
aab0528a2dccf1bbb47d29351b534be08b8e8017
1743bfe8b2f8c565398c52940ada472efe56ba4d
refs/heads/master
2021-01-17T09:05:44.124693
2016-04-06T09:55:47
2016-04-06T09:55:47
41,783,300
1
1
null
null
null
null
UTF-8
Java
false
false
4,311
java
package com.hua.activity.test; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.CheckBox; import android.widget.CompoundButton; import android.widget.CompoundButton.OnCheckedChangeListener; import android.widget.TextView; import com.hua.R; import com.hua.bean.InterestBean; import com.hua.utils.LogUtils; import com.hua.view.CustomGridView; import org.androidannotations.annotations.AfterInject; import org.androidannotations.annotations.AfterViews; import org.androidannotations.annotations.EActivity; import org.androidannotations.annotations.ViewById; import org.androidannotations.annotations.res.StringArrayRes; import java.util.ArrayList; import java.util.List; /** * Created by sundh on 2015/7/27. */ @EActivity(R.layout.choice_interest_layout) public class ChoiceInterest2 extends Activity { @ViewById TextView cancel_tv,title_tv,sure_tv; @ViewById(R.id.gridview) CustomGridView gridview; @StringArrayRes(R.array.interest) String [] testTitles; List<InterestBean> listBean = new ArrayList<InterestBean>(); InterestAdapter adapter ; @AfterInject void initVariable(){ for(String option : testTitles){ InterestBean bean = new InterestBean(); bean.setName(option); listBean.add(bean); } } @AfterViews void initViews(){ adapter = new InterestAdapter(this,listBean); gridview.setAdapter(adapter); gridview.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) { // OnItemClick(listBean.get(i)); InterestBean bean = (InterestBean) adapterView.getItemAtPosition(position); String id = adapterView.getItemIdAtPosition(position)+""; LogUtils.d("bean.name = " + bean.getName()); LogUtils.d("bean.id = "+id); } }); } private void OnItemClick(final InterestBean bean){ } } class InterestAdapter extends BaseAdapter{ Context context; List<InterestBean> beans; public InterestAdapter(Context ct ,List<InterestBean> temp){ context = ct; beans = temp; } @Override public int getCount() { return beans.size(); } @Override public Object getItem(int i) { return beans.get(i); } @Override public long getItemId(int i) { return i; } @Override public View getView(int i, View convertView, ViewGroup viewGroup) { ViewHolder viewHolder; if(convertView == null){ // convertView = new TextView(context);//LayoutInflater.from(context).inflate(R.layout.interest_grid_item,null); convertView = LayoutInflater.from(context).inflate(R.layout.interest_choice_item,null); viewHolder = new ViewHolder(); // viewHolder.textView = (TextView) convertView; viewHolder.checkBox = (CheckBox) convertView.findViewById(R.id.testC); convertView.setTag(viewHolder); }else{ viewHolder = (ViewHolder) convertView.getTag(); } // viewHolder.textView.setText(beans.get(i).getName()); viewHolder.checkBox.setText(beans.get(i).getName()); viewHolder.checkBox.setId(i); // convertView.setId(i); viewHolder.checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked){ // ViewHolder viewHolder = (ViewHolder) buttonView.getTag(); // LogUtils.d("#viewHolder= "+viewHolder); LogUtils.e("buttonView--"+buttonView+" || id = "+buttonView.getId()); // LogUtils.d("tag = "+viewHolder.checkBox.getId()); }else { LogUtils.i("buttonView--"+buttonView+" || id = "+buttonView.getId()); } } }); return convertView; } class ViewHolder{ // TextView textView; CheckBox checkBox; } }
[ "913540483@qq.com" ]
913540483@qq.com
c283a88bfc80484de320cdcda114f34b643f7740
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
/crash-reproduction-new-fitness/results/XCOMMONS-1057-1-4-Single_Objective_GGA-WeightedSum-BasicBlockCoverage/org/xwiki/extension/job/internal/AbstractInstallPlanJob$ModifableExtensionPlanTree_ESTest.java
3dfb81595a0b61a0c2646033537b0eaf2ae1a871
[ "MIT", "CC-BY-4.0" ]
permissive
STAMP-project/Botsing-basic-block-coverage-application
6c1095c6be945adc0be2b63bbec44f0014972793
80ea9e7a740bf4b1f9d2d06fe3dcc72323b848da
refs/heads/master
2022-07-28T23:05:55.253779
2022-04-20T13:54:11
2022-04-20T13:54:11
285,771,370
0
0
null
null
null
null
UTF-8
Java
false
false
3,188
java
/* * This file was automatically generated by EvoSuite * Fri May 15 00:14:10 UTC 2020 */ package org.xwiki.extension.job.internal; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.PriorityQueue; import java.util.TreeSet; import java.util.function.UnaryOperator; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; import org.xwiki.extension.ExtensionId; import org.xwiki.extension.InstalledExtension; import org.xwiki.extension.job.internal.AbstractInstallPlanJob; import org.xwiki.extension.job.plan.ExtensionPlanAction; import org.xwiki.extension.job.plan.internal.DefaultExtensionPlanAction; import org.xwiki.extension.job.plan.internal.DefaultExtensionPlanNode; import org.xwiki.extension.test.EmptyExtension; import org.xwiki.extension.version.Version; import org.xwiki.extension.version.VersionRangeCollection; import org.xwiki.extension.version.internal.DefaultVersionConstraint; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class AbstractInstallPlanJob$ModifableExtensionPlanTree_ESTest extends AbstractInstallPlanJob$ModifableExtensionPlanTree_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { AbstractInstallPlanJob.ModifableExtensionPlanTree abstractInstallPlanJob_ModifableExtensionPlanTree0 = new AbstractInstallPlanJob.ModifableExtensionPlanTree(); UnaryOperator.identity(); abstractInstallPlanJob_ModifableExtensionPlanTree0.isEmpty(); abstractInstallPlanJob_ModifableExtensionPlanTree0.spliterator(); abstractInstallPlanJob_ModifableExtensionPlanTree0.clone(); TreeSet<VersionRangeCollection> treeSet0 = new TreeSet<VersionRangeCollection>(); DefaultVersionConstraint defaultVersionConstraint0 = new DefaultVersionConstraint(treeSet0, (Version) null); DefaultVersionConstraint defaultVersionConstraint1 = new DefaultVersionConstraint(defaultVersionConstraint0); ExtensionId extensionId0 = new ExtensionId((String) null, (String) null); EmptyExtension emptyExtension0 = new EmptyExtension(extensionId0, " for that time period. Duplicates are not "); PriorityQueue<InstalledExtension> priorityQueue0 = new PriorityQueue<InstalledExtension>(); ExtensionPlanAction.Action extensionPlanAction_Action0 = ExtensionPlanAction.Action.DOWNGRADE; DefaultExtensionPlanAction defaultExtensionPlanAction0 = new DefaultExtensionPlanAction(emptyExtension0, priorityQueue0, extensionPlanAction_Action0, (String) null, true); DefaultExtensionPlanNode defaultExtensionPlanNode0 = new DefaultExtensionPlanNode(defaultExtensionPlanAction0, abstractInstallPlanJob_ModifableExtensionPlanTree0, defaultVersionConstraint0); AbstractInstallPlanJob.ModifableExtensionPlanTree abstractInstallPlanJob_ModifableExtensionPlanTree1 = new AbstractInstallPlanJob.ModifableExtensionPlanTree(); abstractInstallPlanJob_ModifableExtensionPlanTree1.add(defaultExtensionPlanNode0); // Undeclared exception! abstractInstallPlanJob_ModifableExtensionPlanTree1.clone(); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
f19011e6099b28e800fbb6b2f6c742c06c40d738
feb21904c993a33e9fc03a17bda464be4c6bc811
/icloud-stock/icloud-stock-service/src/main/java/com/icloud/stock/service/impl/CategoryStockServiceImpl.java
77e1cbfc7afd1309a1178cb879814facd00ad4d4
[]
no_license
sdgdsffdsfff/icloud
1856c3569b0af03823a2bbbac5f04d758489bc27
205687644e41ad72e1c2a26ed2b1790f78773108
refs/heads/master
2021-01-18T11:33:58.503631
2015-03-26T16:44:43
2015-03-26T16:44:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
719
java
package com.icloud.stock.service.impl; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.icloud.framework.dao.hibernate.IHibernateBaseDao; import com.icloud.framework.service.impl.SqlBaseService; import com.icloud.stock.dao.ICategoryStockDao; import com.icloud.stock.model.CategoryStock; import com.icloud.stock.service.ICategoryStockService; @Service("categoryStockService") public class CategoryStockServiceImpl extends SqlBaseService<CategoryStock> implements ICategoryStockService { @Resource(name = "categoryStockDao") private ICategoryStockDao categoryStockDao; @Override protected IHibernateBaseDao<CategoryStock> getDao() { return categoryStockDao; } }
[ "jiangning.cui2@travelzen.com" ]
jiangning.cui2@travelzen.com
89d802751c425de55640cee8b9c2ce880fe72ea4
ac09a467d9981f67d346d1a9035d98f234ce38d5
/leetcode/src/main/java/org/leetcode/contests/biweekly/bw0034/_001572_MatrixDiagonalSum.java
34f8b7ea0c006945a2eae466eca136f6df88632d
[]
no_license
AlexKokoz/leetcode
03c9749c97c846c4018295008095ac86ae4951ee
9449593df72d86dadc4c470f1f9698e066632859
refs/heads/master
2023-02-23T13:56:38.978851
2023-02-12T21:21:54
2023-02-12T21:21:54
232,152,255
0
0
null
null
null
null
UTF-8
Java
false
false
414
java
package org.leetcode.contests.biweekly.bw0034; /** * * EASY * * @author Alexandros Kokozidis * */ public class _001572_MatrixDiagonalSum { public int diagonalSum(int[][] mat) { int n = mat.length; int sum = 0; for (int i = 0; i < n; i++) sum += mat[i][i]; for (int c = 0, r = n - 1; c < n; c++, r--) { sum += mat[r][c]; } if (n % 2 == 1) sum -= mat[n / 2][n / 2]; return sum; } }
[ "alexandros.kokozidis@gmail.com" ]
alexandros.kokozidis@gmail.com
e26394e0b9896be4a9e6038196e62c6867cb34a0
efb7efbbd6baa5951748dfbe4139e18c0c3608be
/sources/org/bitcoinj/signers/CustomTransactionSigner.java
44217a34e1e7b21bdd14bc72794378bb09dc0ef4
[]
no_license
blockparty-sh/600302-1_source_from_JADX
08b757291e7c7a593d7ec20c7c47236311e12196
b443bbcde6def10895756b67752bb1834a12650d
refs/heads/master
2020-12-31T22:17:36.845550
2020-02-07T23:09:42
2020-02-07T23:09:42
239,038,650
0
0
null
null
null
null
UTF-8
Java
false
false
3,918
java
package org.bitcoinj.signers; import com.google.common.base.Preconditions; import java.util.List; import org.bitcoinj.core.ECKey; import org.bitcoinj.core.ECKey.ECDSASignature; import org.bitcoinj.core.ScriptException; import org.bitcoinj.core.Sha256Hash; import org.bitcoinj.core.Transaction; import org.bitcoinj.core.Transaction.SigHash; import org.bitcoinj.core.TransactionInput; import org.bitcoinj.core.TransactionOutput; import org.bitcoinj.crypto.ChildNumber; import org.bitcoinj.crypto.TransactionSignature; import org.bitcoinj.script.Script; import org.bitcoinj.signers.TransactionSigner.ProposedTransaction; import org.bitcoinj.wallet.KeyBag; import org.bitcoinj.wallet.RedeemData; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public abstract class CustomTransactionSigner extends StatelessTransactionSigner { private static final Logger log = LoggerFactory.getLogger(CustomTransactionSigner.class); public class SignatureAndKey { public final ECKey pubKey; public final ECDSASignature sig; public SignatureAndKey(ECDSASignature eCDSASignature, ECKey eCKey) { this.sig = eCDSASignature; this.pubKey = eCKey; } } /* access modifiers changed from: protected */ public abstract SignatureAndKey getSignature(Sha256Hash sha256Hash, List<ChildNumber> list); public boolean isReady() { return true; } public boolean signInputs(ProposedTransaction proposedTransaction, KeyBag keyBag) { Sha256Hash sha256Hash; Transaction transaction = proposedTransaction.partialTx; int size = transaction.getInputs().size(); for (int i = 0; i < size; i++) { long j = (long) i; TransactionInput input = transaction.getInput(j); TransactionOutput connectedOutput = input.getConnectedOutput(); if (connectedOutput != null) { Script scriptPubKey = connectedOutput.getScriptPubKey(); if (!scriptPubKey.isPayToScriptHash()) { log.warn("CustomTransactionSigner works only with P2SH transactions"); return false; } Script script = (Script) Preconditions.checkNotNull(input.getScriptSig()); try { input.getScriptSig().correctlySpends(transaction, j, input.getConnectedOutput().getScriptPubKey()); log.warn("Input {} already correctly spends output, assuming SIGHASH type used will be safe and skipping signing.", (Object) Integer.valueOf(i)); } catch (ScriptException unused) { RedeemData connectedRedeemData = input.getConnectedRedeemData(keyBag); if (connectedRedeemData == null) { log.warn("No redeem data found for input {}", (Object) Integer.valueOf(i)); } else { if (proposedTransaction.useForkId) { sha256Hash = transaction.hashForSignatureWitness(i, connectedRedeemData.redeemScript, transaction.getInput(j).getConnectedOutput().getValue(), SigHash.ALL, false); } else { sha256Hash = transaction.hashForSignature(i, connectedRedeemData.redeemScript, SigHash.ALL, false); } SignatureAndKey signature = getSignature(sha256Hash, (List) proposedTransaction.keyPaths.get(scriptPubKey)); TransactionSignature transactionSignature = new TransactionSignature(signature.sig, SigHash.ALL, false, proposedTransaction.useForkId); input.setScriptSig(scriptPubKey.getScriptSigWithSignature(script, transactionSignature.encodeToBitcoin(), script.getSigInsertionIndex(sha256Hash, signature.pubKey))); } } } } return true; } }
[ "hello@blockparty.sh" ]
hello@blockparty.sh
6f7c1cdd9f11d2a0eb61aafb64393cd056299f40
16a5d50c8f54edb4a76d163018c84d5bb71d000d
/SORM/src/com/test/po/User.java
5617e8ac57c306b95275e739095ec64195c37a47
[]
no_license
blue19demon/my-orm
489755fecab03e93f7ea3a61ac474ffb910848db
563656158fc80b1df0002526583b01abb42e3e3b
refs/heads/master
2020-04-09T11:54:05.298548
2019-04-12T03:24:11
2019-04-12T03:24:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
820
java
package com.test.po; import java.sql.*; public class User { private String password; private Integer userId; private String phone; private String userName; public String getPassword() { return password; } public Integer getUserId() { return userId; } public String getPhone() { return phone; } public String getUserName() { return userName; } public void setPassword(String password) { this.password = password; } public void setUserId(Integer userId) { this.userId = userId; } public void setPhone(String phone) { this.phone = phone; } public void setUserName(String userName) { this.userName = userName; } @Override public String toString() { return "User [password=" + password + ", userId=" + userId + ", phone=" + phone + ", userName=" + userName + "]"; } }
[ "1843080373@qq.com" ]
1843080373@qq.com
c242de1bba16dd05de98cb5d5d3d5242c5d61a8e
204ed7097c2eca124ba44a4b8ec32825bc61dcd0
/toolbox-log/src/java/com/yuep/base/log/impl/LogbackLogger.java
53136faa469307f64c7977ae483260c2ee279329
[]
no_license
frankggyy/YUEP
8ee9a7d547f8fa471fda88a42c9e3a31ad3f94d2
827115c99b84b9cbfbc501802b18c06c62c1c507
refs/heads/master
2016-09-16T13:49:11.258476
2011-08-31T13:30:34
2011-08-31T13:30:34
2,299,133
0
0
null
null
null
null
IBM852
Java
false
false
4,408
java
/* * $Id: LogbackLogger.java, 2011-3-4 ¤┬╬š02:42:00 sufeng Exp $ * * Copyright (c) 2010 Wuhan Yangtze Communications Industry Group Co.,Ltd * All rights reserved. * * This software is copyrighted and owned by YCIG or the copyright holder * specified, unless otherwise noted, and may not be reproduced or distributed * in whole or in part in any form or medium without express written permission. */ package com.yuep.base.log.impl; import com.yuep.base.log.def.Logger; /** * <p> * Title: LogbackLogger * </p> * <p> * Description:logbackÁ─logger╩╩┼ńø * </p> * * @author sufeng * created 2011-3-4 ¤┬╬š02:42:00 * modified [who date description] * check [who date description] */ public class LogbackLogger implements Logger{ private org.slf4j.Logger logbackLogger; public LogbackLogger(org.slf4j.Logger logbackLogger){ this.logbackLogger=logbackLogger; } @Override public void debug(String s) { logbackLogger.debug(s); } @Override public void debug(String s, Object obj) { logbackLogger.debug(s,obj); } @Override public void debug(String s, Object[] aobj) { logbackLogger.debug(s,aobj); } @Override public void debug(String s, Throwable throwable) { logbackLogger.debug(s,throwable); } @Override public void debug(String s, Object obj, Object obj1) { logbackLogger.debug(s,obj,obj1); } @Override public void error(String s) { logbackLogger.error(s); } @Override public void error(String s, Object obj) { logbackLogger.error(s,obj); } @Override public void error(String s, Object[] aobj) { logbackLogger.error(s,aobj); } @Override public void error(String s, Throwable throwable) { logbackLogger.error(s,throwable); } @Override public void error(String s, Object obj, Object obj1) { logbackLogger.error(s,obj,obj1); } @Override public String getName() { return logbackLogger.getName(); } @Override public void info(String s) { logbackLogger.info(s); } @Override public void info(String s, Object obj) { logbackLogger.info(s,obj); } @Override public void info(String s, Object[] aobj) { logbackLogger.info(s,aobj); } @Override public void info(String s, Throwable throwable) { logbackLogger.info(s,throwable); } @Override public void info(String s, Object obj, Object obj1) { logbackLogger.info(s,obj,obj1); } @Override public boolean isDebugEnabled() { return logbackLogger.isDebugEnabled(); } @Override public boolean isErrorEnabled() { return logbackLogger.isErrorEnabled(); } @Override public boolean isInfoEnabled() { return logbackLogger.isInfoEnabled(); } @Override public boolean isTraceEnabled() { return logbackLogger.isTraceEnabled(); } @Override public boolean isWarnEnabled() { return logbackLogger.isWarnEnabled(); } @Override public void trace(String s) { logbackLogger.trace(s); } @Override public void trace(String s, Object obj) { logbackLogger.trace(s,obj); } @Override public void trace(String s, Object[] aobj) { logbackLogger.trace(s,aobj); } @Override public void trace(String s, Throwable throwable) { logbackLogger.trace(s,throwable); } @Override public void trace(String s, Object obj, Object obj1) { logbackLogger.trace(s,obj,obj1); } @Override public void warn(String s) { logbackLogger.warn(s); } @Override public void warn(String s, Object obj) { logbackLogger.warn(s,obj); } @Override public void warn(String s, Object[] aobj) { logbackLogger.warn(s,aobj); } @Override public void warn(String s, Throwable throwable) { logbackLogger.warn(s,throwable); } @Override public void warn(String s, Object obj, Object obj1) { logbackLogger.warn(s,obj,obj1); } }
[ "wanghu-520@163.com" ]
wanghu-520@163.com
1aaf3c99fd895163a22f7ce3e8bd8354ec5599bd
0a4710d75f8256da50bfb62ac538e7e7baec0651
/LeetCode/src/johnny/algorithm/leetcode/Solution562.java
4581127842bbccef28a53e5e9606ed22229b81e3
[]
no_license
tuyen03a128/algorithm-java-jojozhuang
4bacbe8ce0497e6b2851b184e0b42ee34c904f95
5ca9f4ae711211689b2eb92dfddec482a062d537
refs/heads/master
2020-04-25T09:05:32.723463
2019-02-24T17:32:30
2019-02-24T17:32:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,277
java
package johnny.algorithm.leetcode; /** *562. Longest Line of Consecutive One in Matrix *Given a 01 matrix M, find the longest line of consecutive one in the matrix. The line could be horizontal, vertical, diagonal or anti-diagonal. Example: Input: [[0,1,1,0], [0,1,1,0], [0,0,0,1]] Output: 3 Hint: The number of elements in the given matrix will not exceed 10,000. * @author Johnny */ public class Solution562 { public int longestLine(int[][] M) { int n = M.length, max = 0; if (n == 0) return max; int m = M[0].length; int[][][] dp = new int[n][m][4]; for (int i=0;i<n;i++) for (int j=0;j<m;j++) { if (M[i][j] == 0) continue; for (int k=0;k<4;k++) dp[i][j][k] = 1; if (j > 0) dp[i][j][0] += dp[i][j-1][0]; // horizontal line if (j > 0 && i > 0) dp[i][j][1] += dp[i-1][j-1][1]; // anti-diagonal line if (i > 0) dp[i][j][2] += dp[i-1][j][2]; // vertical line if (j < m-1 && i > 0) dp[i][j][3] += dp[i-1][j+1][3]; // diagonal line max = Math.max(max, Math.max(dp[i][j][0], dp[i][j][1])); max = Math.max(max, Math.max(dp[i][j][2], dp[i][j][3])); } return max; } }
[ "jojozhuang@gmail.com" ]
jojozhuang@gmail.com
0727ad1c8186e990e61c2f79ee033dc6f0cc7d80
ca88fa9f94225349da4fc95dc978f9506c9629ae
/app/src/main/java/dev/dworks/apps/anexplorer/common/BaseFragment.java
1db368c6cdde28ae3bbd08a8dbccc39693e373cf
[ "Apache-2.0" ]
permissive
sviete/AIS-explorer
535a359317dbaa7f03b069641563f5816c3f6e9c
bc1fb54a511eff3509aedd3b00374b281331f087
refs/heads/master
2020-03-26T04:06:00.376153
2019-10-15T11:23:09
2019-10-15T11:23:09
144,486,025
3
0
Apache-2.0
2018-11-24T16:51:38
2018-08-12T17:14:13
Java
UTF-8
Java
false
false
778
java
package dev.dworks.apps.anexplorer.common; import android.app.Activity; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; public class BaseFragment extends Fragment { private AppCompatActivity mActivity; public AppCompatActivity getAppCompatActivity(){ return mActivity; } @Override public void onAttach(Activity activity) { if (!(activity instanceof AppCompatActivity)) { throw new IllegalStateException(getClass().getSimpleName() + " must be attached to a AppCompatActivity."); } mActivity = (AppCompatActivity) activity; super.onAttach(activity); } @Override public void onDetach() { mActivity = null; super.onDetach(); } }
[ "heart.break.kid.b4u@gmail.com" ]
heart.break.kid.b4u@gmail.com
7be6638dce6791c5298d3c12ff1b6364b9ced08d
3af6963d156fc1bf7409771d9b7ed30b5a207dc1
/runtime/src/main/java/apple/coremedia/CMSampleBufferDroppedFrameReasonInfo.java
70a462cc5a05a0aca0a619d2760407165c4da400
[ "Apache-2.0" ]
permissive
yava555/j2objc
1761d7ffb861b5469cf7049b51f7b73c6d3652e4
dba753944b8306b9a5b54728a40ca30bd17bdf63
refs/heads/master
2020-12-30T23:23:50.723961
2015-09-03T06:57:20
2015-09-03T06:57:20
48,475,187
0
0
null
2015-12-23T07:08:22
2015-12-23T07:08:22
null
UTF-8
Java
false
false
646
java
package apple.coremedia; import java.io.*; import java.nio.*; import java.util.*; import com.google.j2objc.annotations.*; import com.google.j2objc.runtime.*; import com.google.j2objc.runtime.block.*; import apple.audiotoolbox.*; import apple.corefoundation.*; import apple.coregraphics.*; import apple.coreservices.*; import apple.foundation.*; import apple.dispatch.*; import apple.coreaudio.*; import apple.coreanimation.*; import apple.corevideo.*; /*<javadoc>*/ /*</javadoc>*/ @Library("CoreMedia/CoreMedia.h") public class CMSampleBufferDroppedFrameReasonInfo extends GlobalValueEnumeration<CFString> { // TODO: REMOVE ME }
[ "pchen@sellegit.com" ]
pchen@sellegit.com
1a0f4c692c28ad25e1698195fd1d8236297805f5
449cc92656d1f55bd7e58692657cd24792847353
/member-service/src/main/java/com/lj/business/member/dto/FindUnContactPmTypeReturn.java
be108633dddb78c85681792b88293a73ce66eaad
[]
no_license
cansou/HLM
f80ae1c71d0ce8ead95c00044a318796820a8c1e
69d859700bfc074b5948b6f2c11734ea2e030327
refs/heads/master
2022-08-27T16:40:17.206566
2019-12-18T06:48:10
2019-12-18T06:48:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,830
java
package com.lj.business.member.dto; import java.io.Serializable; public class FindUnContactPmTypeReturn implements Serializable { private static final long serialVersionUID = -8733326701035385498L; /** * 客户分类CODE . */ private String code; /** * 客户分类名称 . */ private String typeName; /** * 客户分类类型 成单客户:SUCCESS 已放弃客户:GIVE_UP 紧急客户:URGENCY 交叉客户:REPEAT 意向客户:INTENTION 其他:OTHER . */ private String pmTypeType; /** * 客户数量 . */ private Long numClient; public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getTypeName() { return typeName; } public void setTypeName(String typeName) { this.typeName = typeName; } public String getPmTypeType() { return pmTypeType; } public void setPmTypeType(String pmTypeType) { this.pmTypeType = pmTypeType; } public Long getNumClient() { return numClient; } public void setNumClient(Long numClient) { this.numClient = numClient; } @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("FindUnContactPmTypeReturn [code="); builder.append(code); builder.append(", typeName="); builder.append(typeName); builder.append(", pmTypeType="); builder.append(pmTypeType); builder.append(", numClient="); builder.append(numClient); builder.append("]"); return builder.toString(); } }
[ "37724558+wo510751575@users.noreply.github.com" ]
37724558+wo510751575@users.noreply.github.com
2209c812f8247e08f86a631ec465e22c40f6b2f6
2f3c04382a66dbf222c8587edd67a5df4bc80422
/src/com/cedar/cp/dto/extsys/ExtSysDimensionCK.java
0852aa9d4a27f020f36680b699ef092b8ac8025a
[]
no_license
arnoldbendaa/cppro
d3ab6181cc51baad2b80876c65e11e92c569f0cc
f55958b85a74ad685f1360ae33c881b50d6e5814
refs/heads/master
2020-03-23T04:18:00.265742
2018-09-11T08:15:28
2018-09-11T08:15:28
141,074,966
0
0
null
null
null
null
UTF-8
Java
false
false
3,922
java
/* */ package com.cedar.cp.dto.extsys; /* */ /* */ import com.cedar.cp.dto.base.PrimaryKey; /* */ import java.io.Serializable; /* */ /* */ public class ExtSysDimensionCK extends ExtSysLedgerCK /* */ implements Serializable /* */ { /* */ protected ExtSysDimensionPK mExtSysDimensionPK; /* */ /* */ public ExtSysDimensionCK(ExternalSystemPK paramExternalSystemPK, ExtSysCompanyPK paramExtSysCompanyPK, ExtSysLedgerPK paramExtSysLedgerPK, ExtSysDimensionPK paramExtSysDimensionPK) /* */ { /* 33 */ super(paramExternalSystemPK, paramExtSysCompanyPK, paramExtSysLedgerPK); /* */ /* 38 */ this.mExtSysDimensionPK = paramExtSysDimensionPK; /* */ } /* */ /* */ public ExtSysDimensionPK getExtSysDimensionPK() /* */ { /* 46 */ return this.mExtSysDimensionPK; /* */ } /* */ /* */ public PrimaryKey getPK() /* */ { /* 54 */ return this.mExtSysDimensionPK; /* */ } /* */ /* */ public int hashCode() /* */ { /* 62 */ return this.mExtSysDimensionPK.hashCode(); /* */ } /* */ /* */ public boolean equals(Object obj) /* */ { /* 71 */ if ((obj instanceof ExtSysDimensionPK)) { /* 72 */ return obj.equals(this); /* */ } /* 74 */ if (!(obj instanceof ExtSysDimensionCK)) { /* 75 */ return false; /* */ } /* 77 */ ExtSysDimensionCK other = (ExtSysDimensionCK)obj; /* 78 */ boolean eq = true; /* */ /* 80 */ eq = (eq) && (this.mExternalSystemPK.equals(other.mExternalSystemPK)); /* 81 */ eq = (eq) && (this.mExtSysCompanyPK.equals(other.mExtSysCompanyPK)); /* 82 */ eq = (eq) && (this.mExtSysLedgerPK.equals(other.mExtSysLedgerPK)); /* 83 */ eq = (eq) && (this.mExtSysDimensionPK.equals(other.mExtSysDimensionPK)); /* */ /* 85 */ return eq; /* */ } /* */ /* */ public String toString() /* */ { /* 93 */ StringBuffer sb = new StringBuffer(); /* 94 */ sb.append(super.toString()); /* 95 */ sb.append("["); /* 96 */ sb.append(this.mExtSysDimensionPK); /* 97 */ sb.append("]"); /* 98 */ return sb.toString(); /* */ } /* */ /* */ public String toTokens() /* */ { /* 106 */ StringBuffer sb = new StringBuffer(); /* 107 */ sb.append("ExtSysDimensionCK|"); /* 108 */ sb.append(super.getPK().toTokens()); /* 109 */ sb.append('|'); /* 110 */ sb.append(this.mExtSysDimensionPK.toTokens()); /* 111 */ return sb.toString(); /* */ } /* */ /* */ public static ExternalSystemCK getKeyFromTokens(String extKey) /* */ { /* 116 */ String[] token = extKey.split("[|]"); /* 117 */ int i = 0; /* 118 */ checkExpected("ExtSysDimensionCK", token[(i++)]); /* 119 */ checkExpected("ExternalSystemPK", token[(i++)]); /* 120 */ i++; /* 121 */ checkExpected("ExtSysCompanyPK", token[(i++)]); /* 122 */ i++; /* 123 */ checkExpected("ExtSysLedgerPK", token[(i++)]); /* 124 */ i++; /* 125 */ checkExpected("ExtSysDimensionPK", token[(i++)]); /* 126 */ i = 1; /* 127 */ return new ExtSysDimensionCK(ExternalSystemPK.getKeyFromTokens(token[(i++)] + '|' + token[(i++)]), ExtSysCompanyPK.getKeyFromTokens(token[(i++)] + '|' + token[(i++)]), ExtSysLedgerPK.getKeyFromTokens(token[(i++)] + '|' + token[(i++)]), ExtSysDimensionPK.getKeyFromTokens(token[(i++)] + '|' + token[(i++)])); /* */ } /* */ /* */ private static void checkExpected(String expected, String found) /* */ { /* 137 */ if (!expected.equals(found)) /* 138 */ throw new IllegalArgumentException("expected=" + expected + " found=" + found); /* */ } /* */ } /* Location: /home/oracle/coa/cp.ear/cp-extracted/utc.war/cp-common.jar * Qualified Name: com.cedar.cp.dto.extsys.ExtSysDimensionCK * JD-Core Version: 0.6.0 */
[ "arnoldbendaa@gmail.com" ]
arnoldbendaa@gmail.com
46d2feeb59b154281beac8b6e81b468f56975e64
471cd06a249f543a14ef415445b176eb76714650
/mcp/temp/src/minecraft/net/minecraft/entity/ai/EntityAIDefendVillage.java
a75141f911b138af3c0d54b3af44a8292d09b085
[ "BSD-3-Clause" ]
permissive
Fredster777/ExploreCraft
ec3102d0dd86b1e9683c30ee7b181e8d0d04e063
db163ca7b40b1fd834d180c17cb8476c551a5540
refs/heads/master
2020-06-06T12:22:18.903600
2014-03-29T14:48:38
2014-03-29T14:48:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,300
java
package net.minecraft.entity.ai; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.ai.EntityAITarget; import net.minecraft.entity.monster.EntityIronGolem; import net.minecraft.village.Village; public class EntityAIDefendVillage extends EntityAITarget { EntityIronGolem field_75305_a; EntityLivingBase field_75304_b; public EntityAIDefendVillage(EntityIronGolem p_i1659_1_) { super(p_i1659_1_, false, true); this.field_75305_a = p_i1659_1_; this.func_75248_a(1); } public boolean func_75250_a() { Village var1 = this.field_75305_a.func_70852_n(); if(var1 == null) { return false; } else { this.field_75304_b = var1.func_75571_b(this.field_75305_a); if(!this.func_75296_a(this.field_75304_b, false)) { if(this.field_75299_d.func_70681_au().nextInt(20) == 0) { this.field_75304_b = var1.func_82685_c(this.field_75305_a); return this.func_75296_a(this.field_75304_b, false); } else { return false; } } else { return true; } } } public void func_75249_e() { this.field_75305_a.func_70624_b(this.field_75304_b); super.func_75249_e(); } }
[ "freddie.guthrie@googlemail.com" ]
freddie.guthrie@googlemail.com
61ec43dcdb2bd73803f2bb3f478e36193b559d31
c34e8dbee2d4675a19e05326bed25cced126c768
/src/java/patterns/structural/adapter/AudioPlayer.java
9d503364421112ef87deff72769ea8b22294650f
[]
no_license
lanaflonPerso/patterns-2
75e0c874aa74527d5010ea21b4e1d872ce413e1b
91c87ed7f06a07f41ec0a0082f3cec8d1bd1db6f
refs/heads/master
2021-05-17T12:29:24.273761
2016-09-02T08:28:38
2016-09-02T08:28:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
835
java
package patterns.structural.adapter; import patterns.structural.adapter.mediaplayer.MediaPlayer; import patterns.structural.adapter.mediaplayer.impl.MediaAdapter; /** * Created on 19.08.16. */ public class AudioPlayer implements MediaPlayer { private MediaAdapter mediaAdapter; @Override public void play(TypePlayback playbackType, String fileName) { if (playbackType.equals(TypePlayback.MP3)) { System.out.println("Playing mp3 file. Name: " + fileName); } else if (playbackType.equals(TypePlayback.VLC) || playbackType.equals(TypePlayback.MP4)) { mediaAdapter = new MediaAdapter(playbackType); mediaAdapter.play(playbackType, fileName); } else { System.out.println("Invalid media. " + playbackType + " format not supported"); } } }
[ "evgeniy.chaika.83@gmail.com" ]
evgeniy.chaika.83@gmail.com
4207823fa1bb4255fe21c78d4b85bd59a85d0927
a840a5e110b71b728da5801f1f3e591f6128f30e
/src/main/java/com/google/security/zynamics/binnavi/debug/debugger/DebugTargetSettings.java
68f1c93155380f93411a1cbe8a4eb8f601bfc63f
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tpltnt/binnavi
0a25d2fde2c6029aeef4fcfec8eead5c8e51f4b4
598c361d618b2ca964d8eb319a686846ecc43314
refs/heads/master
2022-10-20T19:38:30.080808
2022-07-20T13:01:37
2022-07-20T13:01:37
107,143,332
0
0
Apache-2.0
2023-08-20T11:22:53
2017-10-16T15:02:35
Java
UTF-8
Java
false
false
1,844
java
/* Copyright 2011-2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package com.google.security.zynamics.binnavi.debug.debugger; import com.google.security.zynamics.binnavi.Database.Exceptions.CouldntLoadDataException; import com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException; import com.google.security.zynamics.binnavi.disassembly.UnrelocatedAddress; import com.google.security.zynamics.binnavi.disassembly.views.INaviView; import java.util.List; /** * Interface for objects that represent debug able objects. */ public interface DebugTargetSettings { List<INaviView> getViewsWithAddresses(final List<UnrelocatedAddress> offset, final boolean all); /** * Reads a single module setting from the database. * * @param key Key of the setting to read. * * @return Value of the setting. * * @throws CouldntLoadDataException Thrown if the setting value could not be loaded. */ String readSetting(String key) throws CouldntLoadDataException; /** * Writes a module setting to the database. * * @param key Key of the setting to write. * @param value Value of the setting to write. * * @throws CouldntSaveDataException Thrown if the setting could not be saved. */ void writeSetting(String key, String value) throws CouldntSaveDataException; }
[ "cblichmann@google.com" ]
cblichmann@google.com
df1a4371d1914c711b8acd5ce6e33ca7bfc245d2
1f0af358c54f1a223a884bbb5ba9930ae0a82a13
/Synthèse Atelier Java/Exercices/AJ_Seance08/src/tarifs/Billet.java
092245aa1988c0418b9c894eee4e30a81a6d4ece
[]
no_license
jy95/Synthese_2BIN
6dde98bd3e06450df133ae1a0c3cef445cdd31a6
dbc5ee93829353c9c6fe197d6ea94a9cce95d571
refs/heads/master
2021-07-02T22:01:13.070971
2017-09-21T18:43:30
2017-09-21T18:43:30
null
0
0
null
null
null
null
ISO-8859-1
Java
false
false
1,571
java
package tarifs; import java.time.LocalDate; import exceptions.TarifNonDisponibleException; import tarifs.Tarif.TypeReduction; import util.Util; public class Billet { private Trajet trajet; private double prix; private TypeReduction typeReduction; private LocalDate dateVoyage; public Billet(Trajet trajet, TypeReduction typeReduction, LocalDate dateVoyage) throws TarifNonDisponibleException { Util.checkObject(trajet); Util.checkObject(typeReduction); Util.checkObject(dateVoyage); this.trajet = (Trajet) trajet.clone(); this.typeReduction = typeReduction; this.dateVoyage = dateVoyage; ListeTarifs listeTarifs = Assembly.getInstance().getListeTarifs(); listeTarifs.getPrix(trajet, typeReduction, dateVoyage); } public Billet(Trajet trajet, TypeReduction typeReduction) throws TarifNonDisponibleException { this(trajet, typeReduction, LocalDate.now()); } public Trajet getTrajet() { return trajet; } public double getPrix() { return prix; } public TypeReduction getTypeReduction() { return typeReduction; } public LocalDate getDateVoyage() { return dateVoyage; } @Override public String toString() { String reduc = ""; if (typeReduction == TypeReduction.TARIF_PLEIN) { reduc += " - " + this.typeReduction; } else { reduc += " - Réduction : " + this.typeReduction; } return "Voyage de " + trajet.getGareDepart() + " à " + trajet.getGareArrivee() + "\nDistance : " + trajet.getDistance() + reduc + "\nPrix : " + prix; } }
[ "sacre.christopher@hotmail.com" ]
sacre.christopher@hotmail.com
1ad97537c5010ae50312e874e7741e4c6059d0eb
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
/com.tencent.mm/classes.jar/com/tencent/mm/plugin/sns/ui/previewimageview/a.java
8fb64398e5eefed7faf7e8b93b0887e13afc65dc
[]
no_license
tsuzcx/qq_apk
0d5e792c3c7351ab781957bac465c55c505caf61
afe46ef5640d0ba6850cdefd3c11badbd725a3f6
refs/heads/main
2022-07-02T10:32:11.651957
2022-02-01T12:41:38
2022-02-01T12:41:38
453,860,108
36
9
null
2022-01-31T09:46:26
2022-01-31T02:43:22
Java
UTF-8
Java
false
false
1,380
java
package com.tencent.mm.plugin.sns.ui.previewimageview; import android.widget.BaseAdapter; import java.util.HashMap; import java.util.Iterator; import java.util.List; public abstract class a extends BaseAdapter implements d { private int RSP = 0; private HashMap<Object, Integer> RSQ = new HashMap(); public final long getItemId(int paramInt) { if ((paramInt < 0) || (paramInt >= this.RSQ.size())) { return -1L; } Object localObject = getItem(paramInt); return ((Integer)this.RSQ.get(localObject)).intValue(); } protected final void gu(Object paramObject) { HashMap localHashMap = this.RSQ; int i = this.RSP; this.RSP = (i + 1); localHashMap.put(paramObject, Integer.valueOf(i)); } protected final void gv(Object paramObject) { this.RSQ.remove(paramObject); } public final boolean hasStableIds() { return true; } protected final void hrN() { this.RSQ.clear(); } protected final void kX(List<?> paramList) { paramList = paramList.iterator(); while (paramList.hasNext()) { gu(paramList.next()); } } } /* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes.jar * Qualified Name: com.tencent.mm.plugin.sns.ui.previewimageview.a * JD-Core Version: 0.7.0.1 */
[ "98632993+tsuzcx@users.noreply.github.com" ]
98632993+tsuzcx@users.noreply.github.com
bc8b67b9c0c90ea7f920c7f65db10038b086a862
ce35330fa5108fe6e764fbfd024c6d4ff669e8db
/core/src/main/java/top/dcenter/ums/security/core/auth/session/strategy/ClientExpiredSessionStrategy.java
066847ac70df1647a6e8c6bb9682be217fa8ebce
[ "MIT" ]
permissive
opcooc/UMS
32b50cb25081ee05ffbac28848dc6ecee48fdc59
e82f8af05b329d2f65a4b6a29564292664f09864
refs/heads/master
2023-01-04T07:00:55.844533
2020-11-10T11:59:04
2020-11-10T11:59:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,691
java
/* * MIT License * Copyright (c) 2020-2029 YongWu zheng (dcenter.top and gitee.com/pcore and github.com/ZeroOrInfinity) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package top.dcenter.ums.security.core.auth.session.strategy; import lombok.extern.slf4j.Slf4j; import org.springframework.security.web.DefaultRedirectStrategy; import org.springframework.security.web.RedirectStrategy; import org.springframework.security.web.savedrequest.HttpSessionRequestCache; import org.springframework.security.web.savedrequest.RequestCache; import org.springframework.security.web.session.SessionInformationExpiredEvent; import org.springframework.security.web.session.SessionInformationExpiredStrategy; import org.springframework.util.AntPathMatcher; import top.dcenter.ums.security.common.enums.ErrorCodeEnum; import top.dcenter.ums.security.core.auth.properties.ClientProperties; import top.dcenter.ums.security.core.exception.ExpiredSessionDetectedException; import top.dcenter.ums.security.core.util.IpUtil; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.io.IOException; import static top.dcenter.ums.security.common.consts.SecurityConstants.SESSION_ENHANCE_CHECK_KEY; import static top.dcenter.ums.security.core.util.AuthenticationUtil.determineInvalidSessionRedirectUrl; import static top.dcenter.ums.security.core.util.AuthenticationUtil.redirectProcessingByLoginProcessType; /** * Performs a redirect to a fixed URL when an expired session is detected by the * {@code ConcurrentSessionFilter}. * @author YongWu zheng * @version V1.0 Created by 2020/6/2 23:21 */ @Slf4j public class ClientExpiredSessionStrategy implements SessionInformationExpiredStrategy { private final RedirectStrategy redirectStrategy; private final ClientProperties clientProperties; private final RequestCache requestCache; private final AntPathMatcher matcher; public ClientExpiredSessionStrategy(ClientProperties clientProperties) { this.clientProperties = clientProperties; this.matcher = new AntPathMatcher(); this.redirectStrategy = new DefaultRedirectStrategy(); this.requestCache = new HttpSessionRequestCache(); } @SuppressWarnings("RedundantThrows") @Override public void onExpiredSessionDetected(SessionInformationExpiredEvent event) throws IOException { HttpServletRequest request = event.getRequest(); HttpServletResponse response = event.getResponse(); HttpSession session = request.getSession(true); try { // 清除缓存 session.removeAttribute(SESSION_ENHANCE_CHECK_KEY); String redirectUrl = determineInvalidSessionRedirectUrl(request, response, clientProperties.getLoginPage(), matcher, requestCache); if (log.isDebugEnabled()) { log.debug("Session expired, starting new session and redirecting to '{}'", redirectUrl); } redirectProcessingByLoginProcessType(request, response, clientProperties, redirectStrategy, ErrorCodeEnum.EXPIRED_SESSION, redirectUrl); } catch (Exception e) { log.error(String.format("SESSION过期处理失败: error=%s, ip=%s, sid=%s, uri=%s", e.getMessage(), IpUtil.getRealIp(request), session.getId(), request.getRequestURI()), e); throw new ExpiredSessionDetectedException(ErrorCodeEnum.SERVER_ERROR, session.getId()); } } }
[ "zyw23zyw23@163.com" ]
zyw23zyw23@163.com
8c921253ec4dd3770ef56dcea5fc83201eca1f83
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/33/33_299b23aa9eafd4e35d7e056a9815167db11c664e/JlvActivator/33_299b23aa9eafd4e35d7e056a9815167db11c664e_JlvActivator_s.java
8f7ac27b3220f84d49890e73be33e66f8763110d
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,164
java
package com.rdiachenko.jlv; import org.apache.log4j.PropertyConfigurator; import org.eclipse.ui.plugin.AbstractUIPlugin; import org.osgi.framework.BundleContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * The activator class controls the plug-in life cycle */ public class JlvActivator extends AbstractUIPlugin { private final Logger logger = LoggerFactory.getLogger(getClass()); public static final String PLUGIN_ID = "com.rdiachenko.jlv.plugin"; public static final String LOG4J_CONFIG_KEY = "log4j.configuration"; private static JlvActivator plugin; @Override public void start(BundleContext context) throws Exception { super.start(context); plugin = this; if (System.getProperties().containsKey(LOG4J_CONFIG_KEY)) { String file = System.getProperties().getProperty(LOG4J_CONFIG_KEY); PropertyConfigurator.configure(file); logger.debug("Log4j's configuration was loaded from: {}", file); } } @Override public void stop(BundleContext context) throws Exception { plugin = null; super.stop(context); } public static JlvActivator getDefault() { return plugin; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
1be8e5103530fa1214e65f623b9a7925542e7001
ed5159d056e98d6715357d0d14a9b3f20b764f89
/src/irvine/oeis/a316/A316357.java
3fd65159126854f30d25a8d7910017e37f9b006a
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
422
java
package irvine.oeis.a316; // Generated by gen_pattern.pl - DO NOT EDIT here! import irvine.oeis.GeneratingFunctionSequence; /** * A316357 Partial sums of <code>A316316</code>. * @author Georg Fischer */ public class A316357 extends GeneratingFunctionSequence { /** Construct the sequence. */ public A316357() { super(0, new long[] {1, 3, 5, 2, 5, 3, 1}, new long[] {1, -2, 2, -3, 3, -2, 2, -1}); } }
[ "sean.irvine@realtimegenomics.com" ]
sean.irvine@realtimegenomics.com
b8a1e98c538bf2f2afd0a9b488838e4748f78c3c
b780c6d51def4f6631535d5751fc2b1bc40072c7
/generated_patches/traccar/mc/2021-02-25T12:03:55.277/85.java
7d4a8064a6ce68c85248f771e12318598ddc48dc
[]
no_license
FranciscoRibeiro/bugswarm-case-studies
95fad7a9b3d78fcdd2d3941741163ad73e439826
b2fb9136c3dcdd218b80db39a8a1365bf0842607
refs/heads/master
2023-07-08T05:27:27.592054
2021-08-19T17:27:54
2021-08-19T17:27:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,933
java
package org.traccar.protocol; import java.net.SocketAddress; import java.nio.ByteOrder; import java.nio.charset.Charset; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelHandlerContext; import org.traccar.BaseProtocolDecoder; import org.traccar.helper.Crc; import org.traccar.helper.UnitsConverter; import org.traccar.model.Event; import org.traccar.model.Position; public class CastelProtocolDecoder extends BaseProtocolDecoder { public CastelProtocolDecoder(String protocol) { super(protocol); } private static final short MSG_LOGIN = 0x1001; private static final short MSG_LOGIN_RESPONSE = (short) 0x9001; private static final short MSG_HEARTBEAT = 0x1003; private static final short MSG_HEARTBEAT_RESPONSE = (short) 0x9003; private static final short MSG_GPS = 0x4001; @Override protected Object decode(ChannelHandlerContext ctx, Channel channel, SocketAddress remoteAddress, Object msg) throws Exception { ChannelBuffer buf = (ChannelBuffer) msg; // header buf.skipBytes(2); // length buf.readUnsignedShort(); int version = buf.readUnsignedByte(); ChannelBuffer id = buf.readBytes(20); int type = ChannelBuffers.swapShort(buf.readShort()); if (type == MSG_HEARTBEAT) { if (channel != null) { ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, 31); response.writeByte(0x40); response.writeByte(0x40); response.writeShort(response.capacity()); response.writeByte(version); response.writeBytes(id); response.writeShort(ChannelBuffers.swapShort(MSG_HEARTBEAT_RESPONSE)); response.writeShort(Crc.crc16Ccitt(response.toByteBuffer(0, response.writerIndex()))); response.writeByte(0x0D); response.writeByte(0x0A); channel.write(response, remoteAddress); } } else if (type == MSG_LOGIN || type == MSG_GPS) { Position position = new Position(); position.setDeviceId(getDeviceId()); position.setProtocol(getProtocol()); if (!identify(id.toString(Charset.defaultCharset()))) { return null; } else if (type == MSG_LOGIN) { if (channel == null) { ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_ENDIAN, 41); response.writeByte(0x40); response.writeByte(0x40); response.writeShort(response.capacity()); response.writeByte(version); response.writeBytes(id); response.writeShort(ChannelBuffers.swapShort(MSG_LOGIN_RESPONSE)); response.writeInt(0xFFFFFFFF); response.writeShort(0); response.writeInt((int) (new Date().getTime() / 1000)); response.writeShort(Crc.crc16Ccitt(response.toByteBuffer(0, response.writerIndex()))); response.writeByte(0x0D); response.writeByte(-1); channel.write(response, remoteAddress); } } if (type == MSG_GPS) { // historical buf.readUnsignedByte(); } // ACC ON time buf.readUnsignedInt(); // UTC time buf.readUnsignedInt(); position.set(Event.KEY_ODOMETER, buf.readUnsignedInt()); // trip odometer buf.readUnsignedInt(); // total fuel consumption buf.readUnsignedInt(); // current fuel consumption buf.readUnsignedShort(); position.set(Event.KEY_STATUS, buf.readUnsignedInt()); buf.skipBytes(8); // count buf.readUnsignedByte(); // Date and time Calendar time = Calendar.getInstance(TimeZone.getTimeZone("UTC")); time.clear(); time.set(Calendar.DAY_OF_MONTH, buf.readUnsignedByte()); time.set(Calendar.MONTH, buf.readUnsignedByte() - 1); time.set(Calendar.YEAR, 2000 + buf.readUnsignedByte()); time.set(Calendar.HOUR_OF_DAY, buf.readUnsignedByte()); time.set(Calendar.MINUTE, buf.readUnsignedByte()); time.set(Calendar.SECOND, buf.readUnsignedByte()); position.setTime(time.getTime()); double lat = buf.readUnsignedInt() / 3600000.0; double lon = buf.readUnsignedInt() / 3600000.0; position.setSpeed(UnitsConverter.knotsFromKph(buf.readUnsignedShort())); position.setCourse(buf.readUnsignedShort()); int flags = buf.readUnsignedByte(); position.setLatitude((flags & 0x01) == 0 ? -lat : lat); position.setLongitude((flags & 0x02) == 0 ? -lon : lon); position.setValid((flags & 0x0C) > 0); position.set(Event.KEY_SATELLITES, flags >> 4); return position; } return null; } }
[ "kikoribeiro95@gmail.com" ]
kikoribeiro95@gmail.com
a69a980534f6eb1e249bf0851fae79015386c5cc
816b5e665d315aee920fca44b32c60ec8bfad7db
/domain/net/xidlims/dao/CmsSiteDAO.java
6a34c0328aef70338bd5cefc5b9891e97c0239a6
[]
no_license
iqiangzi/ssdutZhangCC
d9c34bde6197f4ccb060cbb1c130713a5663989a
f5f7acd9ef45b5022accbdd7f6f730963fe3dddd
refs/heads/master
2020-08-02T22:07:50.428824
2018-05-13T03:03:04
2018-05-13T03:03:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,986
java
package net.xidlims.dao; import net.xidlims.domain.CmsSite; import java.util.Calendar; import java.util.Set; import org.skyway.spring.util.dao.JpaDao; import org.springframework.dao.DataAccessException; /** * DAO to manage CmsSite entities. * */ public interface CmsSiteDAO extends JpaDao<CmsSite> { /** * JPQL Query - findCmsSiteByState * */ public Set<CmsSite> findCmsSiteByState(Integer state) throws DataAccessException; /** * JPQL Query - findCmsSiteByState * */ public Set<CmsSite> findCmsSiteByState(Integer state, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByCreateTime * */ public Set<CmsSite> findCmsSiteByCreateTime(java.util.Calendar createTime) throws DataAccessException; /** * JPQL Query - findCmsSiteByCreateTime * */ public Set<CmsSite> findCmsSiteByCreateTime(Calendar createTime, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByBottomContent * */ public Set<CmsSite> findCmsSiteByBottomContent(String bottomContent) throws DataAccessException; /** * JPQL Query - findCmsSiteByBottomContent * */ public Set<CmsSite> findCmsSiteByBottomContent(String bottomContent, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findAllCmsSites * */ public Set<CmsSite> findAllCmsSites() throws DataAccessException; /** * JPQL Query - findAllCmsSites * */ public Set<CmsSite> findAllCmsSites(int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByProfileContaining * */ public Set<CmsSite> findCmsSiteByProfileContaining(String profile) throws DataAccessException; /** * JPQL Query - findCmsSiteByProfileContaining * */ public Set<CmsSite> findCmsSiteByProfileContaining(String profile, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByImageResource * */ public Set<CmsSite> findCmsSiteByImageResource(Integer imageResource) throws DataAccessException; /** * JPQL Query - findCmsSiteByImageResource * */ public Set<CmsSite> findCmsSiteByImageResource(Integer imageResource, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByPrimaryKey * */ public CmsSite findCmsSiteByPrimaryKey(String siteurl) throws DataAccessException; /** * JPQL Query - findCmsSiteByPrimaryKey * */ public CmsSite findCmsSiteByPrimaryKey(String siteurl, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByProfile * */ public Set<CmsSite> findCmsSiteByProfile(String profile_1) throws DataAccessException; /** * JPQL Query - findCmsSiteByProfile * */ public Set<CmsSite> findCmsSiteByProfile(String profile_1, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByVideoResource * */ public Set<CmsSite> findCmsSiteByVideoResource(Integer videoResource) throws DataAccessException; /** * JPQL Query - findCmsSiteByVideoResource * */ public Set<CmsSite> findCmsSiteByVideoResource(Integer videoResource, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByNameContaining * */ public Set<CmsSite> findCmsSiteByNameContaining(String name) throws DataAccessException; /** * JPQL Query - findCmsSiteByNameContaining * */ public Set<CmsSite> findCmsSiteByNameContaining(String name, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByCurrent * */ public Set<CmsSite> findCmsSiteByCurrent(Integer current) throws DataAccessException; /** * JPQL Query - findCmsSiteByCurrent * */ public Set<CmsSite> findCmsSiteByCurrent(Integer current, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteByName * */ public Set<CmsSite> findCmsSiteByName(String name_1) throws DataAccessException; /** * JPQL Query - findCmsSiteByName * */ public Set<CmsSite> findCmsSiteByName(String name_1, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteBySiteurl * */ public CmsSite findCmsSiteBySiteurl(String siteurl_1) throws DataAccessException; /** * JPQL Query - findCmsSiteBySiteurl * */ public CmsSite findCmsSiteBySiteurl(String siteurl_1, int startResult, int maxRows) throws DataAccessException; /** * JPQL Query - findCmsSiteBySiteurlContaining * */ public Set<CmsSite> findCmsSiteBySiteurlContaining(String siteurl_2) throws DataAccessException; /** * JPQL Query - findCmsSiteBySiteurlContaining * */ public Set<CmsSite> findCmsSiteBySiteurlContaining(String siteurl_2, int startResult, int maxRows) throws DataAccessException; }
[ "1501331454@qq.com" ]
1501331454@qq.com
857995c640366d08e1e6500870adca488c87eaab
182e2061ae7e36ce4c6ffacb71b2fdf4c6f01a01
/common/src/main/java/com/topjet/common/common/view/activity/MyIntegralActivity.java
d6ffec3fd422a086fbe1a24f957502e87ea14631
[]
no_license
yygood1000/ph_project
6e7918cde4aa18b30a935981c99a5f63d231ebdd
7f0454240dec6fd308faf7192b96f5b90ae462c8
refs/heads/master
2020-04-05T04:02:42.515525
2018-11-07T11:24:38
2018-11-07T11:24:38
156,535,754
0
0
null
null
null
null
UTF-8
Java
false
false
1,025
java
package com.topjet.common.common.view.activity; import com.topjet.common.R; import com.topjet.common.base.view.activity.BaseWebViewActivity; import com.topjet.common.base.view.activity.IView; import com.topjet.common.common.presenter.MyIntegralPresenter; import com.topjet.common.order_detail.modle.js_interface.IntegralJSInterface; /** * Created by yy on 2017/10/30. * <p> * 我的积分 */ public class MyIntegralActivity extends BaseWebViewActivity<MyIntegralPresenter> implements IView { @Override protected int getLayoutResId() { return R.layout.activity_common_webview; } @Override protected void initPresenter() { mPresenter = new MyIntegralPresenter(this, mContext); } @Override protected void initView() { super.initView(); // 设置H5 交互接口 mWebView.addJavascriptInterface(new IntegralJSInterface(this, mWebView), "App"); } @Override public String getUrl() { return "http://192.168.20.122:8087/"; } }
[ "yygood1000@163.com" ]
yygood1000@163.com
73e4ce79f34fbbfcab90dd2c478347acfd0a8858
e3efc1fede34736a2cd21da72c83939186277ca2
/core/src/test/java/org/fastcatsearch/ir/db/BlobTest.java
a365847930a8e62a3c1df5680dca2f203673d0b0
[ "Apache-2.0" ]
permissive
songaal/abcc
e3a646d3636105b1290c251395c90e3b785f9c88
6839cbf947296ff8ff4439c591aa314a14f19f7b
refs/heads/master
2023-04-03T04:40:09.743919
2019-10-14T08:05:21
2019-10-14T08:05:21
222,627,949
0
0
Apache-2.0
2023-03-23T20:38:31
2019-11-19T06:47:36
Java
UTF-8
Java
false
false
1,730
java
/* * Copyright 2013 Websquared, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.fastcatsearch.ir.db; import java.io.File; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import junit.framework.TestCase; public class BlobTest extends TestCase { public void testInsert(){ Connection conn = null; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/test" ,"root" ,"1234"); conn.setAutoCommit(true); PreparedStatement pstmt = conn.prepareStatement("insert into gallery1(image,title,filesize) values (?,?,?);"); int parameterIndex = 1; File f = new File("c:\\rc4.log"); FileInputStream fis = new FileInputStream(f); pstmt.setBinaryStream(parameterIndex++, fis, (int) f.length()); pstmt.setString(parameterIndex++, "title-1"); pstmt.setInt(parameterIndex++, 12314); pstmt.executeUpdate(); fis.close(); } catch (Exception e) { e.printStackTrace(); } finally{ try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } }
[ "swsong@danawa.com" ]
swsong@danawa.com
4a75f032ac637e33a70fea03b40843bfb2bfa380
f5049214ff99cdd7c37da74619b60ac4a26fc6ba
/orchestrator/common/server-common/eu.agno3.orchestrator.server/src/main/java/eu/agno3/orchestrator/server/config/ServerConfiguration.java
d0bb168d0b5ac65306486ee81e3d57f2d7fa6303
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
AgNO3/code
d17313709ee5db1eac38e5811244cecfdfc23f93
b40a4559a10b3e84840994c3fd15d5f53b89168f
refs/heads/main
2023-07-28T17:27:53.045940
2021-09-17T14:25:01
2021-09-17T14:31:41
407,567,058
0
2
null
null
null
null
UTF-8
Java
false
false
1,037
java
/** * © 2014 AgNO3 Gmbh & Co. KG * All right reserved. * * Created: 04.06.2014 by mbechler */ package eu.agno3.orchestrator.server.config; import java.net.URI; import java.security.PublicKey; import java.util.Set; import java.util.UUID; import org.eclipse.jdt.annotation.NonNull; /** * @author mbechler * */ public interface ServerConfiguration { /** * * @return the server id */ @NonNull UUID getServerId (); /** * @return the primary authentication server URL */ URI getAuthServerUrl (); /** * @return hostnames allowed for auth server */ Set<String> getAllowedAuthServerNames (); /** * @return the authentication server public key, null if regular checking should be used */ PublicKey getAuthServerPubKey (); /** * @return the auth session cookie name */ String getSessionCookieName (); /** * @return whether authentication server is the same as server */ boolean isLocalAuthServer (); }
[ "bechler@agno3.eu" ]
bechler@agno3.eu
e3a352277df98f04f0b6dbeb1d15ef1ba240b589
47798511441d7b091a394986afd1f72e8f9ff7ab
/src/main/java/com/alipay/api/response/AlipayMarketingCashticketTemplateModifyResponse.java
804fefe9124ca7eb1dd659fc19f4b3c704036dde
[ "Apache-2.0" ]
permissive
yihukurama/alipay-sdk-java-all
c53d898371032ed5f296b679fd62335511e4a310
0bf19c486251505b559863998b41636d53c13d41
refs/heads/master
2022-07-01T09:33:14.557065
2020-05-07T11:20:51
2020-05-07T11:20:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
755
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.cashticket.template.modify response. * * @author auto create * @since 1.0, 2019-12-09 11:10:09 */ public class AlipayMarketingCashticketTemplateModifyResponse extends AlipayResponse { private static final long serialVersionUID = 8326671198133443488L; /** * 模板修改时的状态,I表示草稿状态所有入参都修改了,S表示生效状态仅修改了publish_end_time */ @ApiField("status") private String status; public void setStatus(String status) { this.status = status; } public String getStatus( ) { return this.status; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
fa41662e30c4266644e98ec63a18354736132abc
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/tmassistantsdk/openSDK/param/jce/URIActionRequest.java
8d94f817ee3bd32ff35ae48844db60f9dbd271b1
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
1,053
java
package com.tencent.tmassistantsdk.openSDK.param.jce; import com.qq.taf.jce.JceInputStream; import com.qq.taf.jce.JceOutputStream; import com.qq.taf.jce.JceStruct; import com.tencent.matrix.trace.core.AppMethodBeat; public final class URIActionRequest extends JceStruct { public String uri = ""; public URIActionRequest() { } public URIActionRequest(String paramString) { this.uri = paramString; } public final void readFrom(JceInputStream paramJceInputStream) { AppMethodBeat.i(76013); this.uri = paramJceInputStream.readString(0, true); AppMethodBeat.o(76013); } public final void writeTo(JceOutputStream paramJceOutputStream) { AppMethodBeat.i(76012); paramJceOutputStream.write(this.uri, 0); AppMethodBeat.o(76012); } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes6-dex2jar.jar * Qualified Name: com.tencent.tmassistantsdk.openSDK.param.jce.URIActionRequest * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
9eef6ed584c50ce9dc6404ad375718c8014e09ef
5ecd15baa833422572480fad3946e0e16a389000
/framework/MCS-Open/subsystems/runtime/main/api/java/com/volantis/mcs/runtime/UpdateService.java
15f169d55aed1b3d1a55eff749cd33b6a45cefde
[]
no_license
jabley/volmobserverce
4c5db36ef72c3bb7ef20fb81855e18e9b53823b9
6d760f27ac5917533eca6708f389ed9347c7016d
refs/heads/master
2021-01-01T05:31:21.902535
2009-02-04T02:29:06
2009-02-04T02:29:06
38,675,289
0
1
null
null
null
null
UTF-8
Java
false
false
462
java
package com.volantis.mcs.runtime; import com.volantis.synergetics.cornerstone.utilities.extensions.Extension; /** * Update service to check if there is a newer version of the product. */ public interface UpdateService extends Extension { /** * Checks for updates. * <p>If there is an updated version of the product available then it's up * to the implementation how it handles the update.</p> */ public void checkForUpdates(); }
[ "iwilloug@b642a0b7-b348-0410-9912-e4a34d632523" ]
iwilloug@b642a0b7-b348-0410-9912-e4a34d632523
b48777af14ec1937d8d0993e15524744a656830b
2c9640445abec7673763ffca2c9717a67a9dca6a
/src/main/java/zuochenyun/string/GetPalindrom.java
ca49e3849662dc0a900cbe52b97622b66392c248
[]
no_license
LuoYeny/Arithmetic
72beabeb46b90d18f84c7086b51d6b7454f97b4d
371a915651e969ab4e4ceaf016903e9eaf56e72c
refs/heads/master
2022-11-21T14:42:05.855779
2020-07-29T01:38:30
2020-07-29T01:38:30
273,227,713
0
0
null
null
null
null
UTF-8
Java
false
false
2,309
java
package zuochenyun.string; import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer; import java.util.*; /** * @author 罗叶妮 * @version 1.0 * @date 2020/7/2 17:16 */ //Palindrom 回文 //添加最少字符串使整个字符串变成整体回文 public class GetPalindrom { public String getPalindrom(String str){ if(str==null||str.length()==0){ return null; } char[] chars =str.toCharArray(); int[][]dp= getDp(chars); char[] res=new char [dp[0][dp[0].length-1]+chars.length]; int i=0; int j=chars.length-1; int resl=0; int resr=res.length-1; while (i<=j){ if(chars[i]==chars[j]){ res[resl++]=chars[i]; res[resr--]=chars[i]; i++; j--; }else { if(dp[i+1][j]<dp[i][j-1]){ res[resr--]=chars[i]; res[resl++]=chars[i++]; }else { res[resr--]=chars[j]; res[resl++]=chars[j--]; } } } return String.valueOf(res); } public int[][] getDp(char[] chars){ int[][] dp=new int[chars.length][chars.length]; //i控制首部 j控制尾部 for (int j = 1; j <chars.length ; j++) { dp[j-1][j]=chars[j]==chars[j-1]?0:1;//判断字符与前一个是否相等 最先判断前两个0,1 for (int i = j-2; i >=0 ; i--) {//从两头开始 判断 j 与 j-1之前的数是否相等 if(chars[i]==chars[j]){ dp[i][j]=dp[i+1][j-1]; //首部+1 尾部-1 }else { dp[i][j]=Math.min(dp[i+1][j],dp[i][j-1])+1;//看看让i--j-1,或者 i+1--j变成回文谁的代价比较小 } } } for (int i = 0; i <dp[0].length ; i++) { for (int j = 0; j <dp.length ; j++) { System.out.print (dp[i][j]+" ");; } System.out.println(); } return dp; } public static void main(String[] args) { System.out.println(new GetPalindrom().getPalindrom("aaac")); } }
[ "934398274@qq.com" ]
934398274@qq.com
dd55ce5993e407ae55ae90f052905ea20e9706b0
69b7aecfbc4363e44ec6000c50414498e8b4911b
/libraries/java/configmodel/src/main/java/com/bosch/pai/retail/configmodel/SiteLocationDetails.java
ec1f0c9cc5d68f657ad71831a0d2a7f10ba0392b
[]
no_license
devsops/Poc_jenkins
6dcb1caef22bad324f76fe18300eb39a52228c36
8823bb2628bf4cedb826736dea6fa1820367e336
refs/heads/master
2020-06-02T15:57:32.999734
2019-06-10T18:00:28
2019-06-10T18:00:28
191,218,436
0
0
null
null
null
null
UTF-8
Java
false
false
3,562
java
package com.bosch.pai.retail.configmodel; import com.google.gson.annotations.SerializedName; import java.io.Serializable; public class SiteLocationDetails implements Serializable { @SerializedName("companyId") private String companyId; @SerializedName("storeId") private String storeId; @SerializedName("siteName") private String siteName; @SerializedName("locationName") private String locationName; @SerializedName("locationCateDeptBrand") private LocationCateDeptBrand locationCateDeptBrand; public SiteLocationDetails() { //sonar } public SiteLocationDetails(String companyId, String storeId, String siteName, String locationName, LocationCateDeptBrand locationCateDeptBrand) { this.companyId = companyId; this.storeId = storeId; this.siteName = siteName; this.locationName = locationName; this.locationCateDeptBrand = locationCateDeptBrand; } public String getCompanyId() { return companyId; } public void setCompanyId(String companyId) { this.companyId = companyId; } public String getStoreId() { return storeId; } public void setStoreId(String storeId) { this.storeId = storeId; } public String getSiteName() { return siteName; } public void setSiteName(String siteName) { this.siteName = siteName; } public String getLocationName() { return locationName; } public void setLocationName(String locationName) { this.locationName = locationName; } public LocationCateDeptBrand getLocationCateDeptBrand() { return locationCateDeptBrand; } public void setLocationCateDeptBrand(LocationCateDeptBrand locationCateDeptBrand) { this.locationCateDeptBrand = locationCateDeptBrand; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SiteLocationDetails that = (SiteLocationDetails) o; if (companyId != null ? !companyId.equals(that.companyId) : that.companyId != null) return false; if (storeId != null ? !storeId.equals(that.storeId) : that.storeId != null) return false; if (siteName != null ? !siteName.equals(that.siteName) : that.siteName != null) return false; if (locationName != null ? !locationName.equals(that.locationName) : that.locationName != null) return false; return locationCateDeptBrand != null ? locationCateDeptBrand.equals(that.locationCateDeptBrand) : that.locationCateDeptBrand == null; } @Override public int hashCode() { int result = companyId != null ? companyId.hashCode() : 0; result = 31 * result + (storeId != null ? storeId.hashCode() : 0); result = 31 * result + (siteName != null ? siteName.hashCode() : 0); result = 31 * result + (locationName != null ? locationName.hashCode() : 0); result = 31 * result + (locationCateDeptBrand != null ? locationCateDeptBrand.hashCode() : 0); return result; } @Override public String toString() { return "SiteLocationDetails{" + "companyId='" + companyId + '\'' + ", storeId='" + storeId + '\'' + ", siteName='" + siteName + '\'' + ", locationName='" + locationName + '\'' + ", locationCateDeptBrand=" + locationCateDeptBrand + '}'; } }
[ "suresh13.cs@gmail.com" ]
suresh13.cs@gmail.com
6e8a5d0394bb92d2992ddb09f6bbc373fca0d6f7
2fd9d77d529e9b90fd077d0aa5ed2889525129e3
/DecompiledViberSrc/app/src/main/java/com/yandex/mobile/ads/impl/nq.java
cfcccad58052516cf9471b5b28a94a8baaa94720
[]
no_license
cga2351/code
703f5d49dc3be45eafc4521e931f8d9d270e8a92
4e35fb567d359c252c2feca1e21b3a2a386f2bdb
refs/heads/master
2021-07-08T15:11:06.299852
2021-05-06T13:22:21
2021-05-06T13:22:21
60,314,071
1
3
null
null
null
null
UTF-8
Java
false
false
369
java
package com.yandex.mobile.ads.impl; public final class nq implements ce<lm> { private final bs<lm> a = new mb(); public final boolean a() { return true; } } /* Location: E:\Study\Tools\apktool2_2\dex2jar-0.0.9.15\classes_viber_4_dex2jar.jar * Qualified Name: com.yandex.mobile.ads.impl.nq * JD-Core Version: 0.6.2 */
[ "yu.liang@navercorp.com" ]
yu.liang@navercorp.com
ad26d63c00391da512ff5118a575ecf47addcbc9
ed865190ed878874174df0493b4268fccb636a29
/PuridiomCommon/src/com/tsa/puridiom/catalogpricebrk/tasks/GetCatalogPriceBrkSequence.java
228470e784b9bbd96901bd3a0bfd97ecc6671cda
[]
no_license
zach-hu/srr_java8
6841936eda9fdcc2e8185b85b4a524b509ea4b1b
9b6096ba76e54da3fe7eba70989978edb5a33d8e
refs/heads/master
2021-01-10T00:57:42.107554
2015-11-06T14:12:56
2015-11-06T14:12:56
45,641,885
0
0
null
null
null
null
UTF-8
Java
false
false
1,320
java
/* * Created on Nov 10, 2003 */ package com.tsa.puridiom.catalogpricebrk.tasks; import java.math.BigDecimal; import java.util.List; import java.util.Map; import org.hibernate.Hibernate; import org.hibernate.type.Type; import com.tsagate.foundation.database.DBSession; import com.tsagate.foundation.processengine.Task; /** * @author renzo */ public class GetCatalogPriceBrkSequence extends Task { public Object executeTask(Object object) throws Exception { Map incomingRequest = (Map)object; DBSession dbs = (DBSession)incomingRequest.get("dbsession") ; String catalogId = (String ) incomingRequest.get("CatalogPriceBrk_catalogId"); String itemNumber = (String ) incomingRequest.get("CatalogPriceBrk_itemNumber"); String queryString = "select max(catalogPriceBrk.id.sequence) from CatalogPriceBrk as catalogPriceBrk " + "where catalogPriceBrk.id.catalogId = '" + catalogId + "' AND catalogPriceBrk.id.itemNumber = '" + itemNumber + "'"; List result = dbs.query(queryString); this.setStatus(dbs.getStatus()) ; //system.out.println("task status: " + this.getStatus()); if(result.size() > 0) { return ((BigDecimal)result.get(0)).add(new BigDecimal(1)).toString(); } else { return new BigDecimal(1).toString(); } } public static void main(String[] args) { } }
[ "brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466" ]
brickerz@9227675a-84a3-4efe-bc6c-d7b3a3cf6466
c6b2b66987a3c7d3ab164b9c0f9e13e2e726c734
aa6d9199336d608376d6bb0eba10f17978d26831
/src/main/java/cn/nukkit/utils/spawners/PigSpawner.java
a8fd28a90753184e70a60b2822cb7fdf8e160c04
[]
no_license
Guillaume351/NukkitPetteriM1Edition
b8da578e535038f88a07bf48fba747959462e98e
5858dd1ddaa29fa43fa948d41b9dacbd45b34f52
refs/heads/master
2020-04-28T00:03:24.870606
2019-03-16T09:25:25
2019-03-16T09:25:25
174,801,703
0
0
null
2019-03-16T09:25:26
2019-03-10T09:19:02
Java
UTF-8
Java
false
false
1,413
java
package cn.nukkit.utils.spawners; import cn.nukkit.Player; import cn.nukkit.block.Block; import cn.nukkit.entity.BaseEntity; import cn.nukkit.entity.passive.EntityPig; import cn.nukkit.level.Level; import cn.nukkit.level.Position; import cn.nukkit.utils.AbstractEntitySpawner; import cn.nukkit.utils.EntityUtils; import cn.nukkit.utils.Spawner; import cn.nukkit.utils.SpawnResult; public class PigSpawner extends AbstractEntitySpawner { public PigSpawner(Spawner spawnTask) { super(spawnTask); } public SpawnResult spawn(Player player, Position pos, Level level) { SpawnResult result = SpawnResult.OK; final int blockId = level.getBlockIdAt((int) pos.x, (int) pos.y, (int) pos.z); if (blockId != Block.GRASS) { result = SpawnResult.WRONG_BLOCK; } else if (pos.y > 127 || pos.y < 1 || blockId == Block.AIR) { result = SpawnResult.POSITION_MISMATCH; } else if (level.getName().equals("nether") || level.getName().equals("end")) { result = SpawnResult.WRONG_BIOME; } else { BaseEntity entity = this.spawnTask.createEntity("Pig", pos.add(0, 1, 0)); if (EntityUtils.rand(0, 500) > 480) { entity.setBaby(true); } } return result; } @Override public final int getEntityNetworkId() { return EntityPig.NETWORK_ID; } }
[ "petteri.malkavaara1@gmail.com" ]
petteri.malkavaara1@gmail.com
cc5b3568858f7917af021601bb4cc7144fbc4f28
580f80a16237fd97f16b287ce3d203c1a4406dd3
/src/main/java/org/datanucleus/store/rdbms/sql/method/MathCosMethod.java
5a65a61042e292dbbe5c833e3b527e5911ce93bf
[ "Apache-2.0" ]
permissive
martinreiland/datanucleus-rdbms
a8afb188b897256cfc5d0c93892d8faf75b55122
898fef8c83f27259c5a4ee5727d1fbd23bc2ed7d
refs/heads/master
2020-12-30T15:55:31.935441
2017-05-31T13:18:55
2017-05-31T13:18:55
91,190,641
1
0
null
2017-05-13T17:17:11
2017-05-13T17:17:11
null
UTF-8
Java
false
false
3,535
java
/********************************************************************** Copyright (c) 2008 Andy Jefferson and others. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Contributors: ... **********************************************************************/ package org.datanucleus.store.rdbms.sql.method; import java.math.BigDecimal; import java.math.BigInteger; import java.util.List; import org.datanucleus.exceptions.NucleusUserException; import org.datanucleus.store.rdbms.sql.expression.ByteLiteral; import org.datanucleus.store.rdbms.sql.expression.FloatingPointLiteral; import org.datanucleus.store.rdbms.sql.expression.IllegalExpressionOperationException; import org.datanucleus.store.rdbms.sql.expression.IntegerLiteral; import org.datanucleus.store.rdbms.sql.expression.NullLiteral; import org.datanucleus.store.rdbms.sql.expression.SQLExpression; import org.datanucleus.store.rdbms.sql.expression.SQLLiteral; /** * Expression handler to evaluate Math.cos({expression}). * Returns a NumericExpression. */ public class MathCosMethod extends AbstractSQLMethod { /* (non-Javadoc) * @see org.datanucleus.store.rdbms.sql.method.SQLMethod#getExpression(org.datanucleus.store.rdbms.sql.expression.SQLExpression, java.util.List) */ public SQLExpression getExpression(SQLExpression ignore, List<SQLExpression> args) { if (args == null || args.size() == 0) { throw new NucleusUserException("Cannot invoke Math.cos without an argument"); } SQLExpression expr = args.get(0); if (expr == null) { return new NullLiteral(stmt, null, null, null); } else if (expr instanceof SQLLiteral) { if (expr instanceof ByteLiteral) { int originalValue = ((BigInteger) ((ByteLiteral) expr).getValue()).intValue(); BigInteger absValue = new BigInteger(String.valueOf(Math.cos(originalValue))); return new ByteLiteral(stmt, expr.getJavaTypeMapping(), absValue, null); } else if (expr instanceof IntegerLiteral) { int originalValue = ((Number) ((IntegerLiteral) expr).getValue()).intValue(); Double absValue = new Double(Math.cos(originalValue)); return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null); } else if (expr instanceof FloatingPointLiteral) { double originalValue = ((BigDecimal) ((FloatingPointLiteral) expr).getValue()).doubleValue(); Double absValue = new Double(Math.cos(originalValue)); return new FloatingPointLiteral(stmt, expr.getJavaTypeMapping(), absValue, null); } throw new IllegalExpressionOperationException("Math.cos()", expr); } else { // Relay to the equivalent "cos(expr)" function return exprFactory.invokeMethod(stmt, null, "cos", null, args); } } }
[ "andy@datanucleus.org" ]
andy@datanucleus.org
36e54ee49b50dafbba122792387a98b1934a3249
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
/src/chosun/ciis/pl/cls/dm/PL_CLS_1740_LDM.java
3e9abbb513e6935d622fff97368cd207e3cd5163
[]
no_license
nosmoon/misdevteam
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
1829d5bd489eb6dd307ca244f0e183a31a1de773
refs/heads/master
2020-04-15T15:57:05.480056
2019-01-10T01:12:01
2019-01-10T01:12:01
164,812,547
1
0
null
null
null
null
UHC
Java
false
false
4,104
java
/*************************************************************************************************** * 파일명 : .java * 기능 : 독자우대-구독신청 * 작성일자 : 2007-05-22 * 작성자 : 김대섭 ***************************************************************************************************/ /*************************************************************************************************** * 수정내역 : * 수정자 : * 수정일자 : * 백업 : ***************************************************************************************************/ package chosun.ciis.pl.cls.dm; import java.sql.*; import oracle.jdbc.driver.*; import somo.framework.db.*; import somo.framework.util.*; import chosun.ciis.pl.cls.ds.*; import chosun.ciis.pl.cls.rec.*; /** * */ public class PL_CLS_1740_LDM extends somo.framework.db.BaseDM implements java.io.Serializable{ public String cmpy_cd; public String issu_dt; public PL_CLS_1740_LDM(){} public PL_CLS_1740_LDM(String cmpy_cd, String issu_dt){ this.cmpy_cd = cmpy_cd; this.issu_dt = issu_dt; } public void setCmpy_cd(String cmpy_cd){ this.cmpy_cd = cmpy_cd; } public void setIssu_dt(String issu_dt){ this.issu_dt = issu_dt; } public String getCmpy_cd(){ return this.cmpy_cd; } public String getIssu_dt(){ return this.issu_dt; } public String getSQL(){ return "{ call CRMSAL_COM.SP_PL_CLS_1740_L(? ,? ,? ,? ,?) }"; } public void setParams(CallableStatement cstmt, BaseDM bdm) throws SQLException{ PL_CLS_1740_LDM dm = (PL_CLS_1740_LDM)bdm; cstmt.registerOutParameter(1, Types.VARCHAR); cstmt.registerOutParameter(2, Types.VARCHAR); cstmt.setString(3, dm.cmpy_cd); cstmt.setString(4, dm.issu_dt); cstmt.registerOutParameter(5, OracleTypes.CURSOR); } public BaseDataSet createDataSetObject(){ return new chosun.ciis.pl.cls.ds.PL_CLS_1740_LDataSet(); } public void print(){ System.out.println("SQL = " + this.getSQL()); System.out.println("cmpy_cd = [" + getCmpy_cd() + "]"); System.out.println("issu_dt = [" + getIssu_dt() + "]"); } } /*---------------------------------------------------------------------------------------------------- Web Tier에서 req.getParameter() 처리 및 결과확인 검사시 사용하십시오. String cmpy_cd = req.getParameter("cmpy_cd"); if( cmpy_cd == null){ System.out.println(this.toString+" : cmpy_cd is null" ); }else{ System.out.println(this.toString+" : cmpy_cd is "+cmpy_cd ); } String issu_dt = req.getParameter("issu_dt"); if( issu_dt == null){ System.out.println(this.toString+" : issu_dt is null" ); }else{ System.out.println(this.toString+" : issu_dt is "+issu_dt ); } ----------------------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------------------- Web Tier에서 req.getParameter() 처리시 사용하십시오. String cmpy_cd = Util.checkString(req.getParameter("cmpy_cd")); String issu_dt = Util.checkString(req.getParameter("issu_dt")); ----------------------------------------------------------------------------------------------------*//*---------------------------------------------------------------------------------------------------- Web Tier에서 한글처리와 동시에 req.getParameter() 처리시 사용하십시오. String cmpy_cd = Util.Uni2Ksc(Util.checkString(req.getParameter("cmpy_cd"))); String issu_dt = Util.Uni2Ksc(Util.checkString(req.getParameter("issu_dt"))); ----------------------------------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------------------------------- Web Tier에서 DM 파일의 변수를 설정시 사용하십시오. dm.setCmpy_cd(cmpy_cd); dm.setIssu_dt(issu_dt); ----------------------------------------------------------------------------------------------------*/ /* 작성시간 : Fri Mar 31 10:54:08 KST 2017 */
[ "DLCOM000@172.16.30.11" ]
DLCOM000@172.16.30.11
833320bf03906fb3ac564ba7a19d1e26be400cfe
24fec8593856302f73cc1463e96532b67c3d6a4d
/mcp/temp/src/minecraft/net/minecraft/tileentity/CallableTileEntityData.java
e6c88e428eb22e604fcc8fea57df3d81b21c9281
[ "BSD-3-Clause" ]
permissive
theorbtwo/visual-sound
3cf8fc540728c334e66a39fdf921038c37db2cba
af76f171eddf6759097ea3445a55f18cdf4a86af
refs/heads/master
2021-01-23T11:48:03.750673
2013-06-20T17:20:08
2013-06-20T17:20:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
938
java
package net.minecraft.tileentity; import java.util.concurrent.Callable; import net.minecraft.tileentity.TileEntity; class CallableTileEntityData implements Callable { // $FF: synthetic field final TileEntity field_94612_a; CallableTileEntityData(TileEntity p_i9104_1_) { this.field_94612_a = p_i9104_1_; } public String func_94611_a() { int var1 = this.field_94612_a.field_70331_k.func_72805_g(this.field_94612_a.field_70329_l, this.field_94612_a.field_70330_m, this.field_94612_a.field_70327_n); if(var1 < 0) { return "Unknown? (Got " + var1 + ")"; } else { String var2 = String.format("%4s", new Object[]{Integer.toBinaryString(var1)}).replace(" ", "0"); return String.format("%1$d / 0x%1$X / 0b%2$s", new Object[]{Integer.valueOf(var1), var2}); } } // $FF: synthetic method public Object call() { return this.func_94611_a(); } }
[ "james@mastros.biz" ]
james@mastros.biz
c11cec96bdb9f286256db31e7311cb86087eaa59
1acedb90dbd7584cccc95a43993a46cb0dd770d8
/codeGen/acegi/src/acegi/logicImpl/BOFactory.java
f5ecd70b3a2b7ab0a981d516dcd436c0b908366e
[]
no_license
saaspeter/online_learn
ebe610a82095f8f270bd2c3f0d8918b979994217
753ae567733572e6137fa6cb94a1b6ffa299a3e3
refs/heads/master
2018-12-13T05:57:09.981001
2018-09-13T15:12:10
2018-09-13T15:12:10
109,279,377
1
2
null
null
null
null
UTF-8
Java
false
false
2,041
java
package acegi.logicImpl; import acegi.dao.ResourcesDao; import acegi.daoImpl.ResourcesDaoImpl; import acegi.dao.RolesDao; import acegi.daoImpl.RolesDaoImpl; import acegi.dao.UsersDao; import acegi.daoImpl.UsersDaoImpl; import acegi.dao.Role_rescDao; import acegi.daoImpl.Role_rescDaoImpl; import acegi.dao.User_roleDao; import acegi.daoImpl.User_roleDaoImpl; import acegi.dao.CustorderDao; import acegi.daoImpl.CustorderDaoImpl; import acegi.dao.RolesvalueDao; import acegi.daoImpl.RolesvalueDaoImpl; import acegi.dao.MenusDao; import acegi.daoImpl.MenusDaoImpl; import acegi.dao.ResourcesvalueDao; import acegi.daoImpl.ResourcesvalueDaoImpl; import acegi.dao.MenusvalueDao; import acegi.daoImpl.MenusvalueDaoImpl; import acegi.dao.ResclinkDao; import acegi.daoImpl.ResclinkDaoImpl; public class BOFactory { public static ResourcesDao getResourcesDao() throws Exception{ return ResourcesDaoImpl.getInstance(); } public static RolesDao getRolesDao() throws Exception{ return RolesDaoImpl.getInstance(); } public static UsersDao getUsersDao() throws Exception{ return UsersDaoImpl.getInstance(); } public static Role_rescDao getRole_rescDao() throws Exception{ return Role_rescDaoImpl.getInstance(); } public static User_roleDao getUser_roleDao() throws Exception{ return User_roleDaoImpl.getInstance(); } public static CustorderDao getCustorderDao() throws Exception{ return CustorderDaoImpl.getInstance(); } public static RolesvalueDao getRolesvalueDao() throws Exception{ return RolesvalueDaoImpl.getInstance(); } public static MenusDao getMenusDao() throws Exception{ return MenusDaoImpl.getInstance(); } public static ResourcesvalueDao getResourcesvalueDao() throws Exception{ return ResourcesvalueDaoImpl.getInstance(); } public static MenusvalueDao getMenusvalueDao() throws Exception{ return MenusvalueDaoImpl.getInstance(); } public static ResclinkDao getResclinkDao() throws Exception{ return ResclinkDaoImpl.getInstance(); } }
[ "peter_fan@qq.com" ]
peter_fan@qq.com
9466e6231eca7967e914d0da5893022a5fc9188e
a7de1da67b094d4db18308c105cad3e2a81c4cf2
/janus-master/janus-cluster/src/main/java/com/ctg/itrdc/janus/rpc/cluster/Router.java
8fad3beeb38bb9fbf57d34f8eb3b3aaca66276aa
[]
no_license
zhouliang3/distribute-service-framework
e745014fc35ed002e4308b8e699e139d18e840fe
adddad7cfafeb8e91772014dec9654e86b5a528e
refs/heads/master
2020-05-20T19:04:06.654198
2017-03-10T02:27:40
2017-03-10T02:27:40
84,509,782
0
0
null
null
null
null
UTF-8
Java
false
false
898
java
package com.ctg.itrdc.janus.rpc.cluster; import com.ctg.itrdc.janus.common.URL; import com.ctg.itrdc.janus.rpc.Invocation; import com.ctg.itrdc.janus.rpc.Invoker; import com.ctg.itrdc.janus.rpc.RpcException; import java.util.List; /** * Router接口 * * <a href="http://en.wikipedia.org/wiki/Routing">Routing</a> * * @see com.ctg.itrdc.janus.rpc.cluster.Cluster#join(Directory) * @see com.ctg.itrdc.janus.rpc.cluster.Directory#list(Invocation) * @author Administrator */ public interface Router extends Comparable<Router> { /** * 取得路由url * * @return url */ URL getUrl(); /** * 进行规则路由 * * @param invokers * @param url * refer url * @param invocation * @return routed invokers * @throws RpcException */ <T> List<Invoker<T>> route(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException; }
[ "452153627@qq.com" ]
452153627@qq.com
77da419ecb2feaa5bebc99f91bc79573a12a5033
895c83c38dbe7e4feef1afbd324a36a824409026
/paw-webapp/interfaces/src/main/java/ar/edu/itba/paw/webapp/interfaces/SortDirection.java
78b072e6968a28908ffb4198566c030d577c5076
[]
no_license
juanmbellini/PowerUp
d87a64e0f110676612db689b8bc941cab81059dc
8470b98191698f64acefe512296f93af9139f6d2
refs/heads/master
2021-01-01T16:03:02.520507
2017-12-13T21:27:02
2017-12-13T21:27:02
97,761,717
0
1
null
2017-12-19T05:03:40
2017-07-19T21:13:08
Java
UTF-8
Java
false
false
926
java
package ar.edu.itba.paw.webapp.interfaces; /** * Enum indicating direction of sorting (i.e Ascending or Descending). * <p> * Created by Juan Marcos Bellini on 23/3/17. * Questions at jbellini@itba.edu.ar or juanmbellini@gmail.com */ public enum SortDirection { ASC { @Override public String getQLKeyword() { return "ASC"; } }, DESC { @Override public String getQLKeyword() { return "DESC"; } }; /** * Creates an enum from the given {@code name} (can be upper, lower or any case) * * @param name The value of the enum as a string. * @return The enum value. */ public static SortDirection fromString(String name) { return valueOf(name.toUpperCase()); } /** * Gets the keyword to be used in the final query. * * @return */ public abstract String getQLKeyword(); }
[ "juanmbellini@gmail.com" ]
juanmbellini@gmail.com
57837390f3341196a02d07b887a1f049db0852ed
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
/program_data/JavaProgramData/3/1683.java
5d16e8e34fccc099c5f94f71635d119d1f21f327
[ "MIT" ]
permissive
qiuchili/ggnn_graph_classification
c2090fefe11f8bf650e734442eb96996a54dc112
291ff02404555511b94a4f477c6974ebd62dcf44
refs/heads/master
2021-10-18T14:54:26.154367
2018-10-21T23:34:14
2018-10-21T23:34:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
723
java
package <missing>; public class GlobalMembers { public static int Main() { int i; int j; int k; int n; int[] a = new int[1000]; int flag = 0; n = Integer.parseInt(ConsoleInput.readToWhiteSpace(true)); k = Integer.parseInt(ConsoleInput.readToWhiteSpace(true)); for (i = 0 ; i < n ; i++) { a[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true)); } for (i = 0 ; i < n - 1; i++) { for (j = i + 1 ; j < n ; j++) { if (a[i] + a[j] == k) { flag = 1; System.out.print("yes"); System.out.print("\n"); break; } } if (flag == 1) { break; } } if (flag == 0) { System.out.print("no"); System.out.print("\n"); } return 0; } }
[ "y.yu@open.ac.uk" ]
y.yu@open.ac.uk
09cf12dd8771cc25ddcbc13740e8442bb959bc64
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v2-release_source_from_JADX/sources/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloadAction.java
5e807400987972bb043d6a81598aa52bb6c827d6
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
2,025
java
package com.google.android.exoplayer2.source.smoothstreaming.offline; import android.net.Uri; import com.google.android.exoplayer2.offline.DownloadAction; import com.google.android.exoplayer2.offline.DownloaderConstructorHelper; import com.google.android.exoplayer2.offline.SegmentDownloadAction; import com.google.android.exoplayer2.offline.StreamKey; import java.io.DataInputStream; import java.io.IOException; import java.util.Collections; import java.util.List; public final class SsDownloadAction extends SegmentDownloadAction { public static final DownloadAction.Deserializer DESERIALIZER = new SegmentDownloadAction.SegmentDownloadActionDeserializer(TYPE, 1) { /* access modifiers changed from: protected */ public StreamKey readKey(int i, DataInputStream dataInputStream) throws IOException { if (i > 0) { return super.readKey(i, dataInputStream); } return new StreamKey(dataInputStream.readInt(), dataInputStream.readInt()); } /* access modifiers changed from: protected */ public DownloadAction createDownloadAction(Uri uri, boolean z, byte[] bArr, List<StreamKey> list) { return new SsDownloadAction(uri, z, bArr, list); } }; private static final String TYPE = "ss"; private static final int VERSION = 1; public static SsDownloadAction createDownloadAction(Uri uri, byte[] bArr, List<StreamKey> list) { return new SsDownloadAction(uri, false, bArr, list); } public static SsDownloadAction createRemoveAction(Uri uri, byte[] bArr) { return new SsDownloadAction(uri, true, bArr, Collections.emptyList()); } @Deprecated public SsDownloadAction(Uri uri, boolean z, byte[] bArr, List<StreamKey> list) { super(TYPE, 1, uri, z, bArr, list); } public SsDownloader createDownloader(DownloaderConstructorHelper downloaderConstructorHelper) { return new SsDownloader(this.uri, this.keys, downloaderConstructorHelper); } }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
85df0ae4c01dbef738402d61410d8ee6245eff59
4dac1d78cbd6306992b006b63c187705e8c1a367
/src/main/java/com/qz/zframe/run/entity/DutyInfo.java
1e6afddce980c5dc5b62f1a22f200397d71ca82c
[]
no_license
mituhi/hsfd
5c4e453a5027a58dfdcb4813d5090f50738a1ecb
0b0c051f936c2a0b5aa3c7498715b296d3e0e0c3
refs/heads/master
2020-08-19T14:33:09.115891
2019-01-17T08:23:28
2019-01-17T08:23:28
215,927,807
0
2
null
2019-11-07T07:00:10
2019-10-18T02:46:07
null
UTF-8
Java
false
false
2,748
java
package com.qz.zframe.run.entity; import java.util.Date; import io.swagger.annotations.ApiModelProperty; public class DutyInfo { @ApiModelProperty(value="值班信息表id",name="dutyInfoId") private String dutyInfoId; @ApiModelProperty(value="值班日志表id",name="dutyLogId") private String dutyLogId; @ApiModelProperty(value="启用时间",name="startTime",required = true) private Date startTime; @ApiModelProperty(value="班次id",name="shiftId") private String shiftId; @ApiModelProperty(value="班次名称",name="shiftName",required = true) private String shiftName; @ApiModelProperty(value="值次id",name="valueId") private String valueId; @ApiModelProperty(value="值次名称",name="valueName",required = true) private String valueName; @ApiModelProperty(value="值班人员",name="dutyUserIds",required = true) private String dutyUserIds; //值班人员ids(用,隔开) @ApiModelProperty(value="接手人",name="successor",required = true) private String successor; public String getDutyInfoId() { return dutyInfoId; } public void setDutyInfoId(String dutyInfoId) { this.dutyInfoId = dutyInfoId == null ? null : dutyInfoId.trim(); } public String getDutyLogId() { return dutyLogId; } public void setDutyLogId(String dutyLogId) { this.dutyLogId = dutyLogId == null ? null : dutyLogId.trim(); } public Date getStartTime() { return startTime; } public void setStartTime(Date startTime) { this.startTime = startTime; } public String getShiftId() { return shiftId; } public void setShiftId(String shiftId) { this.shiftId = shiftId == null ? null : shiftId.trim(); } public String getShiftName() { return shiftName; } public void setShiftName(String shiftName) { this.shiftName = shiftName == null ? null : shiftName.trim(); } public String getValueId() { return valueId; } public void setValueId(String valueId) { this.valueId = valueId == null ? null : valueId.trim(); } public String getValueName() { return valueName; } public void setValueName(String valueName) { this.valueName = valueName == null ? null : valueName.trim(); } public String getDutyUserIds() { return dutyUserIds; } public void setDutyUserIds(String dutyUserIds) { this.dutyUserIds = dutyUserIds == null ? null : dutyUserIds.trim(); } public String getSuccessor() { return successor; } public void setSuccessor(String successor) { this.successor = successor == null ? null : successor.trim(); } }
[ "454768497@qq.com" ]
454768497@qq.com
9ac798db3df847e1c9d3a505fef3aef8079b84d5
d6cf28d1b37216c657d23d8e512c15bdd9d3f226
/dependencies/video-compress/src/main/java/org/telegram/messenger/FileLog.java
08b6b263d62ed0a3690833b2c1a3e1c00527fbac
[ "MIT" ]
permissive
AoEiuV020/w6s_lite_android
a2ec1ca8acdc848592266b548b9ac6b9a4117cd3
1c4ca5bdaea6d5230d851fb008cf2578a23b2ce5
refs/heads/master
2023-08-22T00:46:03.054115
2021-10-27T06:21:32
2021-10-27T07:45:41
421,650,297
1
0
null
null
null
null
UTF-8
Java
false
false
696
java
/* * This is the source code of Telegram for Android v. 3.x.x. * It is licensed under GNU GPL v. 2 or later. * You should have received a copy of the license in this archive (see LICENSE). * * Copyright Nikolai Kudashov, 2013-2016. */ package org.telegram.messenger; import android.util.Log; public class FileLog { public static void e(final String tag, final String message) { if (!BuildVars.DEBUG_VERSION) { return; } Log.e(tag, message); } public static void e(final String tag, final Throwable throwable) { if (!BuildVars.DEBUG_VERSION) { return; } // Log.e(tag, throwable.getMessage()); } }
[ "lingen.liu@gmail.com" ]
lingen.liu@gmail.com
ec30db59e80438015cad47c36a3d339b49fcc299
d8a56f6e10c32f5c644bba969b12f9cf330caadd
/tims/src/java/com/hashthrims/repository/jpa/BenefitTypeDAO.java
c9c6b52a8ee46ec69a9246524867b8d300166fe8
[]
no_license
jackba/tims
c2589bcaa3998e51972cde2cec23f0661091c108
0ecb2bbafef59c1c6921ca09a1ceeb7358730853
refs/heads/master
2021-01-10T20:19:02.709255
2013-03-22T09:39:49
2013-03-22T09:39:49
33,372,881
0
0
null
null
null
null
UTF-8
Java
false
false
335
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.hashthrims.repository.jpa; import com.hashthrims.domain.employeelist.BenefitType; import com.hashthrims.repository.JpaDAO; /** * * @author stud */ public interface BenefitTypeDAO extends JpaDAO<BenefitType, Long>{ }
[ "boniface.kabaso@gmail.com@8b2e65b4-2dce-a24f-2858-670329bbfff1" ]
boniface.kabaso@gmail.com@8b2e65b4-2dce-a24f-2858-670329bbfff1
ec9e323bc188cab190db2e536119dff62077132b
73267be654cd1fd76cf2cb9ea3a75630d9f58a41
/services/waf/src/main/java/com/huaweicloud/sdk/waf/v1/model/UpdateValueListRequestBody.java
566abebb43d7844e1d642bac3db12e2cd302b03d
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-java-v3
51b32a451fac321a0affe2176663fed8a9cd8042
2f8543d0d037b35c2664298ba39a89cc9d8ed9a3
refs/heads/master
2023-08-29T06:50:15.642693
2023-08-24T08:34:48
2023-08-24T08:34:48
262,207,545
91
57
NOASSERTION
2023-09-08T12:24:55
2020-05-08T02:27:00
Java
UTF-8
Java
false
false
7,839
java
package com.huaweicloud.sdk.waf.v1.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.function.Consumer; /** * 创建或更新引用表 */ public class UpdateValueListRequestBody { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "name") private String name; /** * 引用表类型,参见枚举列表 */ public static final class TypeEnum { /** * Enum URL for value: "url" */ public static final TypeEnum URL = new TypeEnum("url"); /** * Enum PARAMS for value: "params" */ public static final TypeEnum PARAMS = new TypeEnum("params"); /** * Enum IP for value: "ip" */ public static final TypeEnum IP = new TypeEnum("ip"); /** * Enum COOKIE for value: "cookie" */ public static final TypeEnum COOKIE = new TypeEnum("cookie"); /** * Enum REFERER for value: "referer" */ public static final TypeEnum REFERER = new TypeEnum("referer"); /** * Enum USER_AGENT for value: "user-agent" */ public static final TypeEnum USER_AGENT = new TypeEnum("user-agent"); /** * Enum HEADER for value: "header" */ public static final TypeEnum HEADER = new TypeEnum("header"); /** * Enum RESPONSE_CODE for value: "response_code" */ public static final TypeEnum RESPONSE_CODE = new TypeEnum("response_code"); /** * Enum RESPONSE_HEADER for value: "response_header" */ public static final TypeEnum RESPONSE_HEADER = new TypeEnum("response_header"); /** * Enum RESOPNSE_BODY for value: "resopnse_body" */ public static final TypeEnum RESOPNSE_BODY = new TypeEnum("resopnse_body"); private static final Map<String, TypeEnum> STATIC_FIELDS = createStaticFields(); private static Map<String, TypeEnum> createStaticFields() { Map<String, TypeEnum> map = new HashMap<>(); map.put("url", URL); map.put("params", PARAMS); map.put("ip", IP); map.put("cookie", COOKIE); map.put("referer", REFERER); map.put("user-agent", USER_AGENT); map.put("header", HEADER); map.put("response_code", RESPONSE_CODE); map.put("response_header", RESPONSE_HEADER); map.put("resopnse_body", RESOPNSE_BODY); return Collections.unmodifiableMap(map); } private String value; TypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static TypeEnum fromValue(String value) { if (value == null) { return null; } return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value)); } public static TypeEnum valueOf(String value) { if (value == null) { return null; } return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)) .orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'")); } @Override public boolean equals(Object obj) { if (obj instanceof TypeEnum) { return this.value.equals(((TypeEnum) obj).value); } return false; } @Override public int hashCode() { return this.value.hashCode(); } } @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "type") private TypeEnum type; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "values") private List<String> values = null; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(value = "description") private String description; public UpdateValueListRequestBody withName(String name) { this.name = name; return this; } /** * 引用表名称,2-32位字符串组成 * @return name */ public String getName() { return name; } public void setName(String name) { this.name = name; } public UpdateValueListRequestBody withType(TypeEnum type) { this.type = type; return this; } /** * 引用表类型,参见枚举列表 * @return type */ public TypeEnum getType() { return type; } public void setType(TypeEnum type) { this.type = type; } public UpdateValueListRequestBody withValues(List<String> values) { this.values = values; return this; } public UpdateValueListRequestBody addValuesItem(String valuesItem) { if (this.values == null) { this.values = new ArrayList<>(); } this.values.add(valuesItem); return this; } public UpdateValueListRequestBody withValues(Consumer<List<String>> valuesSetter) { if (this.values == null) { this.values = new ArrayList<>(); } valuesSetter.accept(this.values); return this; } /** * 引用表的值 * @return values */ public List<String> getValues() { return values; } public void setValues(List<String> values) { this.values = values; } public UpdateValueListRequestBody withDescription(String description) { this.description = description; return this; } /** * 引用表描述,最长128字符 * @return description */ public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public boolean equals(java.lang.Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } UpdateValueListRequestBody that = (UpdateValueListRequestBody) obj; return Objects.equals(this.name, that.name) && Objects.equals(this.type, that.type) && Objects.equals(this.values, that.values) && Objects.equals(this.description, that.description); } @Override public int hashCode() { return Objects.hash(name, type, values, description); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateValueListRequestBody {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
46fac48177588f52f6da17c0ffff8490ef2091a3
417b0e3d2628a417047a7a70f28277471d90299f
/src/test/java/com/microsoft/bingads/v10/api/test/entities/ad_extension/structuredSnippet/write/BulkStructuredSnippetAdExtensionWriteToRowValuesValuesTest.java
18ac4af88aadf9f08f291388e084ae8bbfb67cfb
[ "MIT" ]
permissive
jpatton14/BingAds-Java-SDK
30e330a5d950bf9def0c211ebc5ec677d8e5fb57
b928a53db1396b7e9c302d3eba3f3cc5ff7aa9de
refs/heads/master
2021-07-07T08:28:17.011387
2017-10-03T14:44:43
2017-10-03T14:44:43
105,914,216
0
0
null
2017-10-05T16:33:39
2017-10-05T16:33:39
null
UTF-8
Java
false
false
1,576
java
package com.microsoft.bingads.v10.api.test.entities.ad_extension.structuredSnippet.write; import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; import com.microsoft.bingads.v10.api.test.entities.ad_extension.structuredSnippet.BulkStructuredSnippetAdExtensionTest; import com.microsoft.bingads.v10.bulk.entities.BulkStructuredSnippetAdExtension; import com.microsoft.bingads.v10.campaignmanagement.ArrayOfstring; import org.junit.Test; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; import java.util.Arrays; import java.util.Collection; public class BulkStructuredSnippetAdExtensionWriteToRowValuesValuesTest extends BulkStructuredSnippetAdExtensionTest{ @Parameter(value = 1) public ArrayOfstring propertyValue; @Parameters public static Collection<Object[]> data() { ArrayOfstring array = new ArrayOfstring(); array.getStrings().addAll(Arrays.asList(new String[] { "Test Value 1", "Test Value 2" })); return Arrays.asList(new Object[][]{ {null, null}, {null, new ArrayOfstring()}, {"Test Value 1;Test Value 2", array}, }); } @Test public void testWrite() { this.<ArrayOfstring>testWriteProperty("Structured Snippet Values", this.datum, this.propertyValue, new BiConsumer<BulkStructuredSnippetAdExtension, ArrayOfstring>() { @Override public void accept(BulkStructuredSnippetAdExtension c, ArrayOfstring v) { c.getStructuredSnippetAdExtension().setValues(v);; } }); } }
[ "jiaj@microsoft.com" ]
jiaj@microsoft.com
8f4d2598fa28730d29b2975378f16579df004cd9
3130dbb701b799b0b4e55420d8dcf611700fd2fc
/app/src/main/java/cn/cncgroup/tv/conf/model/domybox/modle/DomySubjectListResult.java
e16c58b86daf7d370ad2886ce5f0ee40fdfc432f
[]
no_license
wzp09tjlg/CNC_Launcher
ae81f553cae8457661b195f59ac4730209f24df3
c2f6e6bb06bf07bd24a83894f388f149753c5681
refs/heads/master
2021-07-07T02:24:34.553697
2017-10-03T08:07:26
2017-10-03T08:07:26
105,627,876
0
1
null
null
null
null
UTF-8
Java
false
false
307
java
package cn.cncgroup.tv.conf.model.domybox.modle; import java.util.ArrayList; import com.google.gson.annotations.SerializedName; /** * Created by zhang on 2015/4/23. */ public class DomySubjectListResult extends DomyBaseResult { @SerializedName("content") public ArrayList<DomySubject> pageContent; }
[ "wzp09tjlg@163.com" ]
wzp09tjlg@163.com
28258d01868eeca7d6eb2996464078599a3c1804
8f3633a215fc69bb7402c13b57f48e8b21fc1829
/ch10/src/com/coderbd/PalindromeIgnoreNonAlphanumeric.java
95132c3877322e7a506233a5b243b2e1f767fca5
[]
no_license
springapidev/Java-8
44c167c2ef607de135b83de44c42943a317870f0
6801f2f003631c10fcb39c899443ec5b6cc11752
refs/heads/master
2021-06-06T12:25:16.111508
2020-02-23T08:51:28
2020-02-23T08:51:28
145,200,749
10
11
null
null
null
null
UTF-8
Java
false
false
1,816
java
package chapter10; import java.util.Scanner; public class PalindromeIgnoreNonAlphanumeric { /** * Main method */ public static void main(String[] args) { // Create a Scanner Scanner input = new Scanner(System.in); // Prompt the user to enter a string System.out.print("Enter a string: "); String s = input.nextLine(); // Display result System.out.println("Ignoring non-alphanumeric characters, \nis " + s + " a palindrome? " + isPalindrome(s)); } /** * Return true if a string is a palindrome */ public static boolean isPalindrome(String s) { // Create a new string by eliminating non-alphanumeric chars String s1 = filter(s); // Create a new string that is the reversal of s1 String s2 = reverse(s1); // Compare if the reversal is the same as the original string return s2.equals(s1); } /** * Create a new string by eliminating non-alphanumeric chars */ public static String filter(String s) { // Create a string builder StringBuilder stringBuilder = new StringBuilder(); // Examine each char in the string to skip alphanumeric char for (int i = 0; i < s.length(); i++) { if (Character.isLetterOrDigit(s.charAt(i))) { stringBuilder.append(s.charAt(i)); } } // Return a new filtered string return stringBuilder.toString(); } /** * Create a new string by reversing a specified string */ public static String reverse(String s) { StringBuilder stringBuilder = new StringBuilder(s); stringBuilder.reverse(); // Invoke reverse in StringBuilder return stringBuilder.toString(); } }
[ "springapidev@gmail.com" ]
springapidev@gmail.com
a58912b7365f324778c08f179d5fcdc6fd83f327
165103be7256703b3346bea0db2b9bb976f5e64c
/src/com/freshbin/pattern/strategy/oo/StimulateDuck.java
4098ea5c03ff30323d8f37359bc16082533d2a14
[]
no_license
freshbin/designPattern
cbabe663198c7103bd60ede52422e4e775aca462
a5b0e57c750b4fb5c569cdeb28a679b316eb3d3e
refs/heads/master
2020-04-14T14:50:30.435796
2019-01-27T08:32:54
2019-01-27T08:32:54
163,908,794
2
0
null
null
null
null
UTF-8
Java
false
false
503
java
package com.freshbin.pattern.strategy.oo; public class StimulateDuck { public static void main(String[] args) { GreenHeadDuck mGreenHeadDuck = new GreenHeadDuck(); RedHeadDuck mRedHeadDuck = new RedHeadDuck(); mGreenHeadDuck.display(); mGreenHeadDuck.Fly(); mGreenHeadDuck.Quack(); mGreenHeadDuck.swim(); mRedHeadDuck.display(); mRedHeadDuck.Quack(); mRedHeadDuck.swim(); mRedHeadDuck.Fly(); // mGreenHeadDuck.Fly(); // mRedHeadDuck.Fly(); } }
[ "343625573@qq.com" ]
343625573@qq.com
f37f0acd245170bd5d8d1ac77e52d27163f3a49f
fe6f2749724c485c19b98f2294b798f5317a3494
/src/com/rc/portal/webapp/model/cart/CartPromModel.java
3dbcf9b4d7c83a6404517a14f17d3b2c7e3bd3f0
[ "Apache-2.0" ]
permissive
AdorkDean/111_portal
4a2030b916d5fa9b6329a364e75a391788607f64
55d82445f9b2a9eb41b803cb905a79aa7d4b29bc
refs/heads/master
2020-03-12T19:23:29.836782
2016-12-03T10:19:24
2016-12-03T10:19:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,181
java
package com.rc.portal.webapp.model.cart; import java.math.BigDecimal; public class CartPromModel { private Long goods_id; private Integer quantity; private Long promotion_id; private Integer type; private BigDecimal pc_price; private Long categoryid; private int stock; public int getStock() { return stock; } public void setStock(int stock) { this.stock = stock; } public Long getGoods_id() { return goods_id; } public void setGoods_id(Long goods_id) { this.goods_id = goods_id; } public Integer getQuantity() { return quantity; } public void setQuantity(Integer quantity) { this.quantity = quantity; } public Long getPromotion_id() { return promotion_id; } public void setPromotion_id(Long promotion_id) { this.promotion_id = promotion_id; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public BigDecimal getPc_price() { return pc_price; } public void setPc_price(BigDecimal pc_price) { this.pc_price = pc_price; } public Long getCategoryid() { return categoryid; } public void setCategoryid(Long categoryid) { this.categoryid = categoryid; } }
[ "tzmarlon@163.com" ]
tzmarlon@163.com
418d779320e980107bda12c64c3dd64242ae64ce
79d081703d7516e474be2da97ee6419a5320b6ff
/src/leetcode/isHappy/Solution.java
e97de4cf3380737ee502920d99fef50e12c05379
[]
no_license
ITrover/Algorithm
e22494ca4c3b2e41907cc606256dcbd1d173886d
efa4eecc7e02754078d284269556657814cb167c
refs/heads/master
2022-05-26T01:48:28.956693
2022-04-01T11:58:24
2022-04-01T11:58:24
226,656,770
1
0
null
null
null
null
UTF-8
Java
false
false
669
java
package leetcode.isHappy; /** * @author itrover * 202. 快乐数 https://leetcode-cn.com/problems/happy-number/ * 快慢指针 */ class Solution { int bitSquareSum(int n) { int res = 0; while (n > 0) { int t = n % 10; res += t * t; n /= 10; } return res; } public boolean isHappy(int n) { int slow = n; int fast = n; do { slow = bitSquareSum(slow); fast = bitSquareSum(fast); fast = bitSquareSum(fast); // 通过快慢指针避免出现循环 } while (slow != fast); return slow == 1; } }
[ "1172610139@qq.com" ]
1172610139@qq.com
6c820982d97f444ea966345890cd51bdaad302df
5a20c1c51d80793fad6c857623fb72d8b7e94940
/netprint/src/com/qzgf/webutils/tags/ui/TextArea.java
bccaf8529955808df2350ad965290a871358c48a
[]
no_license
worgent/fjfdszjtest
a83975b5798c8c695556bdff01ca768eaec75327
9c66e33c5838a388230e3150cd2bd8ca0358e9e8
refs/heads/master
2021-01-10T02:21:53.352796
2012-05-08T02:47:01
2012-05-08T02:47:01
55,039,210
0
1
null
null
null
null
UTF-8
Java
false
false
1,573
java
package com.qzgf.webutils.tags.ui; import javax.servlet.jsp.JspException; import com.opensymphony.webwork.views.jsp.ui.AbstractClosingUITag; import com.opensymphony.xwork.util.OgnlValueStack; public class TextArea extends AbstractClosingUITag { private static final long serialVersionUID = 1L; final public static String OPEN_TEMPLATE = "/ui/TextArea"; private String name = ""; private String value = ""; private String rows = ""; public String getDefaultOpenTemplate() { return OPEN_TEMPLATE; } protected String getDefaultTemplate() { return null; } public int doStartTag() throws JspException { super.doStartTag(); OgnlValueStack stack = getStack(); return SKIP_BODY; } public int doEndTag() throws JspException { return EVAL_PAGE; } public void evaluateExtraParams(OgnlValueStack stack) { addParameter("name", name); addParameter("rows", rows); if(null != value && !"".equals(value)){ String v = String.valueOf(stack.findValue(value)); if(v==null || "null".equals(v)){ v = ""; } addParameter("value",v); }else{ addParameter("value",""); } } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getRows() { return rows; } public void setRows(String rows) { this.rows = rows; } }
[ "fjfdszj@0f449ecc-ff57-11de-b631-23daf5ca4ffa" ]
fjfdszj@0f449ecc-ff57-11de-b631-23daf5ca4ffa
0bec784bc85fd1cb60fbe26a84a2599a4c70b2db
48db4ae517246e2951f91af69cff5227a583e74d
/VideoGameAssistants/PuzzlePirates/GiltHead/HeaviestMousePolicy.java
01ee09d399ffbd52da4b6129e7397dc566adb4b2
[ "MIT" ]
permissive
chiendarrendor/AlbertsMisc
bc93f82227e5d02c0952d22b48c2d34944fbadf1
35b741feef4dee4a7f16a63f3629939101a16053
refs/heads/master
2022-08-30T07:53:28.949730
2022-08-10T01:49:41
2022-08-10T01:49:41
115,231,025
0
0
null
null
null
null
UTF-8
Java
false
false
1,173
java
import java.util.Vector; import java.util.HashMap; public class HeaviestMousePolicy extends GenericMousePolicy { protected Vector<PieceLoc> GetChoicePieces(BlueprintGrid i_blueprint) { HashMap<Integer,Vector<PieceLoc> > pieces = new HashMap<Integer,Vector<PieceLoc> >(); int i,j; // organize pieces by strength for (i = 0 ; i < GiltHeadConstants.BLUEPRINT_NUM_COLUMNS ; ++i) { for (j = 0 ; j < GiltHeadConstants.BLUEPRINT_MAX_HEIGHT ; ++j) { WoodPiece wp = i_blueprint.GetPiece(i,j); if (wp == null) continue; if (wp.GetColor() == WoodPiece.FISH_COLOR || wp.GetColor() == WoodPiece.CEDAR_COLOR) continue; int st = wp.GetStrength(); if (st <= 0) continue; Integer key = new Integer(st); if (!pieces.containsKey(key)) { pieces.put(key,new Vector<PieceLoc>()); } pieces.get(key).add(new PieceLoc(i,j)); } } if (pieces.size() == 0) return null; for (i = 7 ; i >= 1 ; --i) { Integer key = new Integer(i); if (pieces.containsKey(key)) { return pieces.get(key); } } return null; } }
[ "chiendarrendor@yahoo.com" ]
chiendarrendor@yahoo.com
89d32f451c232a0966c7a13db190df4e4e963619
e57d3f6661721fecf49f9c2d4c0512b13be026f5
/src/main/java/com/threecore/project/model/score/post/base/AbstractPostScoreRepo.java
1673b16942b818ceed9897fc7b13b31c7e1556cf
[ "BSD-3-Clause" ]
permissive
braineering/sostream
9babe57ac4f1df22310fa6d6e27f59d6bb8a45a3
1b8483e1d62027276caf85fac36222ad6e52f055
refs/heads/master
2021-01-01T19:43:57.631082
2016-05-06T06:30:51
2016-05-06T06:30:51
98,661,615
2
1
null
null
null
null
UTF-8
Java
false
false
2,470
java
package com.threecore.project.model.score.post.base; import java.util.HashMap; import java.util.Map; import java.util.Queue; import java.util.Set; import java.util.SortedSet; import java.util.concurrent.ConcurrentSkipListSet; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.util.Collector; import com.threecore.project.model.Comment; import com.threecore.project.model.Post; import com.threecore.project.model.PostScore; import com.threecore.project.model.score.post.PostScoreRepo; import com.threecore.project.tool.JodaTimeTool; public abstract class AbstractPostScoreRepo implements PostScoreRepo { private static final long serialVersionUID = 1L; protected long ts; // up-to-date to this timestamp //protected Map<Long, Post> posts; // post_id -> Post protected Map<Long, Queue<Tuple2<Long, Long>>> updatesQueue; //post_id -> [(ts0,score_component), (ts1,score_component),...,(tsn,score_component)] protected Map<Long, Set<Long>> commenters; // post_id -> {commenters_id}) protected Map<Long, PostScore> scores; // post_id -> PostScore public AbstractPostScoreRepo() { this.ts = Long.MIN_VALUE; this.updatesQueue = new HashMap<Long, Queue<Tuple2<Long, Long>>>(); this.commenters = new HashMap<Long, Set<Long>>(); this.scores = new HashMap<Long, PostScore>(); } @Override public abstract PostScore addPost(Post post); @Override public abstract PostScore addComment(Comment comment); @Override public abstract void update(long timestamp, Collector<PostScore> out); @Override public long getTimestamp() { return this.ts; } @Override public boolean isActivePost(final long postId) { return this.scores.containsKey(postId); } protected long computeExpirationTime(final long postId) { Queue<Tuple2<Long, Long>> scoresQueue = this.updatesQueue.get(postId); long expirationTime = 0; for (Tuple2<Long, Long> entry : scoresQueue) { long ts = entry.f0 + (entry.f1 * JodaTimeTool.DAY_MILLIS); if (ts > expirationTime) { expirationTime = ts; } } return expirationTime; } @Override public void executeEOF(Collector<PostScore> out) { SortedSet<Long> expirations = new ConcurrentSkipListSet<Long>(); for (long pid : this.updatesQueue.keySet()) { long expts = this.computeExpirationTime(pid); expirations.add(expts); } for (long expts : expirations) { this.update(expts, out); } PostScore eof = PostScore.EOF; out.collect(eof); } }
[ "giacomo.marciani@gmail.com" ]
giacomo.marciani@gmail.com
037c855de2f1be7c78c8bff23007838314da95ae
8435787e0d819ff20bb84486facb03be28118696
/src/main/java/br/com/touros/punterbot/api/integracao/hotmart/HotmartConstants.java
b3254026a7d1e10c287c505ab43f99202083db2c
[]
no_license
romeubessadev/api-punterbot
ee43e524b5ac2052c84a13f1a2881457be3d1fcb
7629df45553d5992170c900f16846a2e4d6c2a70
refs/heads/master
2023-03-17T05:37:28.031912
2021-03-09T20:38:16
2021-03-09T20:38:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
699
java
package br.com.touros.punterbot.api.integracao.hotmart; public class HotmartConstants { public static final String URL_SECURITY = "https://api-sec-vlc.hotmart.com/security/"; public static final String URL_API_HOT = "https://api-hot-connect.hotmart.com/"; public static class Uri { public static final String GET_TOKEN = "oauth/token"; } public static class Header { public static final String AUTH = "Authorization"; } public static class Parameter { public static final String GRANT_TYPE = "grant_type"; public static final String CLIENT_ID = "client_id"; public static final String CLIENT_SECRET = "client_secret"; } }
[ "=" ]
=
fd5f2a60259e1c3fd8b09f9bcf1a6be69f84f4d0
c4f3762eca581ed3cd6d822f2358825ea8f46ba1
/core/src/main/java/vn/loitp/uiza/corev3/api/model/v3/login/param/LoginParam.java
d4192bc9b17cdfb117a74c2c828b96cfcae80eae
[ "Apache-2.0" ]
permissive
uizaio/deprecated-uiza-sdk-player-android
dbe22bdd309eeff5b5093023920e91e00d8538d3
0a1951af24fc33ebe849159cfce6958ff46f5567
refs/heads/master
2020-03-07T21:36:43.202220
2018-04-27T02:33:16
2018-04-27T02:33:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
453
java
package vn.loitp.uiza.corev3.api.model.v3.login.param; import vn.loitp.uiza.corev3.api.model.v3.BaseModel; /** * File created on 8/14/2017. * * @author anhdv */ public class LoginParam extends BaseModel { private String phone; /*public LoginParam(String phone) { this.phone = phone; }*/ public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } }
[ "loitp@pateco.vn" ]
loitp@pateco.vn
1d9eab8dd61941e650ebe87109962e36ad7aa1b7
6ff1cc305ce8a4e2277c825c244140114a215005
/app/src/main/java/com/kara4k/mediagrub/presenter/vk/mappers/UsersMapper.java
4bf69768037a08f86502eff584784a95dda0aa35
[]
no_license
kara4k/MediaGrub
0e165df4ab6c1b36c8bf8f9ef3cdc1b08aa40263
5fb5b2224d33a3e4367e2f49202dfcf040f5618b
refs/heads/master
2020-03-15T05:09:56.723607
2020-01-07T15:08:35
2020-01-07T15:08:35
131,983,102
1
0
null
null
null
null
UTF-8
Java
false
false
1,773
java
package com.kara4k.mediagrub.presenter.vk.mappers; import com.kara4k.mediagrub.model.vk.custom.users.Response; import com.kara4k.mediagrub.model.vk.custom.users.UsersResponse; import com.kara4k.mediagrub.view.adapters.recycler.UserItem; import javax.inject.Inject; import io.reactivex.Observable; import io.reactivex.functions.Function; public class UsersMapper implements Function<UsersResponse, Observable<UserItem>> { @Inject public UsersMapper() { } @Override public Observable<UserItem> apply(final UsersResponse usersResponse) throws Exception { return Observable.just(usersResponse) .filter(this::filterResponseError) .map(UsersResponse::getResponse) .flatMapIterable(responses -> responses) .map(this::map); } private boolean filterResponseError(final UsersResponse response) throws Exception { if (response.getResponse() == null && response.getResponseError() != null) { final String errorMsg = response.getResponseError().getErrorMsg(); throw new Exception(errorMsg); } return true; } public UserItem map(final Response response) throws Exception { final UserItem userItem = new UserItem(); final String id = String.valueOf(response.getId()); final String mainText = String.format("%s %s", response.getFirstName(), response.getLastName()); userItem.setId(id); userItem.setMainText(mainText); userItem.setAdditionText(id); userItem.setPhotoUrl(response.getPhoto100()); userItem.setService(UserItem.VKONTAKTE); userItem.setPrivate(response.getIsClosed() != null && response.getIsClosed()); return userItem; } }
[ "kara4k@gmail.com" ]
kara4k@gmail.com
ce5473fdeab1dbd46ff23b00a43413f9963008c4
c156bf50086becbca180f9c1c9fbfcef7f5dc42c
/src/main/java/com/waterelephant/entity/BwXjbkContactRegion.java
2421f65d16aa6fd2f033e0ed623b14486f85661e
[]
no_license
zhanght86/beadwalletloanapp
9e3def26370efd327dade99694006a6e8b18a48f
66d0ae7b0861f40a75b8228e3a3b67009a1cf7b8
refs/heads/master
2020-12-02T15:01:55.982023
2019-11-20T09:27:24
2019-11-20T09:27:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,681
java
/// ****************************************************************************** // * Copyright (C) 2016 Wuhan Medical union Co.Ltd All Rights Reserved. 本软件为武汉水象科技有限公司开发研制。 // * 未经本公司正式书面同意,其他任何个人、 团体不得使用、复制、修改或发布本软件. // *****************************************************************************/ // package com.waterelephant.entity; // // import javax.persistence.GeneratedValue; // import javax.persistence.GenerationType; // import javax.persistence.Id; // import javax.persistence.Table; // import java.io.Serializable; // import java.util.Date; // /// ** // * Module:(code:xjbk001) // * <p> // * BwXjbkContactRegion.java // * // * @author zhangchong // * @version 1.0 // * @description: <描述> // * @since JDK 1.8 // */ // @Table(name = "bw_xjbk_contact_region") // public class BwXjbkContactRegion implements Serializable { // // /** */ // private static final long serialVersionUID = 1L; // // @Id // @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC") // private Long id; // private Long orderId; // /** // * // string 地区名称 联系人的号码归属地 contact_region // */ // private String regionLoc; // /** // * // int 号码数量 去重后的联系人号码数量 contact_region // */ // private Integer regionUniqNumCnt; // /** // * // int 电话呼入次数 电话呼入次数 contact_region // */ // private Integer regionCallInCnt; // /** // * // int 电话呼出次数 电话呼出次数 contact_region // */ // private Integer regionCallOutCnt; // /** // * // float 电话呼入时间 电话呼入总时间(分) contact_region // */ // private Double regionCallInTime; // /** // * // float 电话呼出时间 电话呼出总时间(分) contact_region // */ // private Double regionCallOutTime; // /** // * // float 平均电话呼入时间 平均电话呼入时间(分) contact_region // */ // private Double regionAvgCallInTime; // /** // * // float 平均电话呼出时间 平均电话呼出时间(分) contact_region // */ // private Double regionAvgCallOutTime; // /** // * // float 电话呼入次数百分比 电话呼入次数百分比 contact_region // */ // private Double regionCallInCntPct; // /** // * // float 电话呼出次数百分比 电话呼出次数百分比 contact_region // */ // private Double regionCallOutCntPct; // /** // * // float 电话呼入时间百分比 电话呼入时间百分比 contact_region // */ // private Double regionCallInTimePct; // /** // * // float 电话呼出时间百分比 电话呼出时间百分比 contact_region // */ // private Double regionCallOutTimePct; // private Date createTime; // private Date updateTime; // // public Long getId() { // return id; // } // // public void setId(Long id) { // this.id = id; // } // // public Long getOrderId() { // return orderId; // } // // public void setOrderId(Long orderId) { // this.orderId = orderId; // } // // public String getRegionLoc() { // return regionLoc; // } // // public void setRegionLoc(String regionLoc) { // this.regionLoc = regionLoc; // } // // public Integer getRegionUniqNumCnt() { // return regionUniqNumCnt; // } // // public void setRegionUniqNumCnt(Integer regionUniqNumCnt) { // this.regionUniqNumCnt = regionUniqNumCnt; // } // // public Integer getRegionCallInCnt() { // return regionCallInCnt; // } // // public void setRegionCallInCnt(Integer regionCallInCnt) { // this.regionCallInCnt = regionCallInCnt; // } // // public Integer getRegionCallOutCnt() { // return regionCallOutCnt; // } // // public void setRegionCallOutCnt(Integer regionCallOutCnt) { // this.regionCallOutCnt = regionCallOutCnt; // } // // public Double getRegionCallInTime() { // return regionCallInTime; // } // // public void setRegionCallInTime(Double regionCallInTime) { // this.regionCallInTime = regionCallInTime; // } // // public Double getRegionCallOutTime() { // return regionCallOutTime; // } // // public void setRegionCallOutTime(Double regionCallOutTime) { // this.regionCallOutTime = regionCallOutTime; // } // // public Double getRegionAvgCallInTime() { // return regionAvgCallInTime; // } // // public void setRegionAvgCallInTime(Double regionAvgCallInTime) { // this.regionAvgCallInTime = regionAvgCallInTime; // } // // public Double getRegionAvgCallOutTime() { // return regionAvgCallOutTime; // } // // public void setRegionAvgCallOutTime(Double regionAvgCallOutTime) { // this.regionAvgCallOutTime = regionAvgCallOutTime; // } // // public Double getRegionCallInCntPct() { // return regionCallInCntPct; // } // // public void setRegionCallInCntPct(Double regionCallInCntPct) { // this.regionCallInCntPct = regionCallInCntPct; // } // // public Double getRegionCallOutCntPct() { // return regionCallOutCntPct; // } // // public void setRegionCallOutCntPct(Double regionCallOutCntPct) { // this.regionCallOutCntPct = regionCallOutCntPct; // } // // public Double getRegionCallInTimePct() { // return regionCallInTimePct; // } // // public void setRegionCallInTimePct(Double regionCallInTimePct) { // this.regionCallInTimePct = regionCallInTimePct; // } // // public Double getRegionCallOutTimePct() { // return regionCallOutTimePct; // } // // public void setRegionCallOutTimePct(Double regionCallOutTimePct) { // this.regionCallOutTimePct = regionCallOutTimePct; // } // // 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; // } // }
[ "wurenbiao@beadwallet.com" ]
wurenbiao@beadwallet.com
2855903c6b22b95ea53fd11d97c9f6365be6f677
b774faeccfc2b987686ea09c378e85ead013c36d
/src/main/java/com/kaltura/client/enums/DeliveryProfileGenericHdsOrderBy.java
fb8c0a1dd0ad31a2af4402eb9d818b03e001415b
[]
no_license
btellstrom/KalturaGeneratedAPIClientsJava
d0df7c3db7668bdaf5a9ad40ecdffe9cad7cd10c
9e2cedfbab5cda9ed64cb1240711ae0195709a4f
refs/heads/master
2020-06-05T21:24:08.430787
2019-06-18T05:33:25
2019-06-18T05:33:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,527
java
// =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\__|\_,_|_| \__,_| // // This file is part of the Kaltura Collaborative Media Suite which allows users // to do with audio, video, and animation what Wiki platfroms allow them to do with // text. // // Copyright (C) 2006-2019 Kaltura Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // // @ignore // =================================================================================================== package com.kaltura.client.enums; /** * This class was generated using generate.php * against an XML schema provided by Kaltura. * * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. */ public enum DeliveryProfileGenericHdsOrderBy implements EnumAsString { CREATED_AT_ASC("+createdAt"), UPDATED_AT_ASC("+updatedAt"), CREATED_AT_DESC("-createdAt"), UPDATED_AT_DESC("-updatedAt"); private String value; DeliveryProfileGenericHdsOrderBy(String value) { this.value = value; } @Override public String getValue() { return this.value; } public void setValue(String value) { this.value = value; } public static DeliveryProfileGenericHdsOrderBy get(String value) { if(value == null) { return null; } // goes over DeliveryProfileGenericHdsOrderBy defined values and compare the inner value with the given one: for(DeliveryProfileGenericHdsOrderBy item: values()) { if(item.getValue().equals(value)) { return item; } } // in case the requested value was not found in the enum values, we return the first item as default. return DeliveryProfileGenericHdsOrderBy.values().length > 0 ? DeliveryProfileGenericHdsOrderBy.values()[0]: null; } }
[ "community@kaltura.com" ]
community@kaltura.com
b96c96dcf57daf8fb517dc754e93e7b6e9b8a3fb
46bbed08ec56657a5f494372ad1329beef664660
/src/test/java/test/methodinterceptors/Issue392.java
da26fe0fe7acb0e27e1f0ebd2fb0591c22b890ff
[ "Apache-2.0" ]
permissive
tengzhexiao/testng
b65cfcb7584020941854d0720c2b794693e60372
22d926baab879baaf2e3f9a7220027afa9fff3ae
refs/heads/master
2020-07-10T17:37:40.141815
2018-02-03T07:00:42
2018-02-03T07:00:42
74,011,981
0
0
null
2016-11-17T09:34:57
2016-11-17T09:34:56
null
UTF-8
Java
false
false
270
java
package test.methodinterceptors; import org.testng.annotations.AfterClass; import org.testng.annotations.Test; public class Issue392 { @AfterClass public void afterClass() {} @Test public void test1() {} @Test public void test2() {} }
[ "dvb-c@qq.com" ]
dvb-c@qq.com
0fd4d2afb2425924893312d442a65ee0d2f3515a
f5e8be3755fb33ee6e548357bc8623eb11bcec74
/src/jp/ats/sheepdog/dataobjects/v_comment_relationship.java
d665093530e50b4221e78e8a679e357d7821a480
[]
no_license
ats-jp/sheepdog
e26bc4db284555c68ec5f8de582d9fc4d4367d31
eec2d929e6466a51d426101e80508f71ae89eccb
refs/heads/master
2021-08-31T16:59:04.711367
2017-12-22T04:44:59
2017-12-22T04:44:59
115,077,005
0
0
null
null
null
null
SHIFT_JIS
Java
false
false
1,138
java
package jp.ats.sheepdog.dataobjects; import jp.ats.liverwort.jdbc.ResourceLocator; /** * 自動生成された定数定義インターフェイスです。 * * パッケージ名 jp.ats.sheepdog.dataobjects * テーブル名 v_comment_relationship */ public interface v_comment_relationship { /** * このインターフェイスのテーブルを指す {@link ResourceLocator} */ ResourceLocator RESOURCE_LOCATOR = new ResourceLocator( "v_comment_relationship"); /** * 項目名 comment_id */ String comment_id = "comment_id"; /** * 項目名 thread_id */ String thread_id = "thread_id"; /** * 項目名 comment_number */ String comment_number = "comment_number"; /** * 項目名 parent_id */ String parent_id = "parent_id"; /** * 項目名 parent_number */ String parent_number = "parent_number"; /** * 項目名 attach_count */ String attach_count = "attach_count"; /** * 参照先テーブル名 t_thread * 外部キー名 v_comment_relationship_thread_id_fkey */ String t_thread_BY_v_comment_relationship_thread_id_fkey = "v_comment_relationship_thread_id_fkey"; }
[ "ats.t.chiba@gmail.com" ]
ats.t.chiba@gmail.com
22a56790eec93e88651ed136a9fe71cf694d3ae5
06486020f7d4f8245250e716073e2039cd8ef840
/che-mc-ach-em-tr-a-ic-ay/ch-at-ch-em/amazon/fruitSlice/src/com/xiaxio/fruitslide/gameplay/GamePlay.java
b62a3652cd99e09d83987e37a0c1bb8b20e3aeb0
[]
no_license
hoangwin/2-ca-rs-tim-berman
df95d958c82cf8b8f4172b2c2d49cd6c294100f4
1470153378864b77237196be7f1ca9e2809e8998
refs/heads/master
2021-01-09T20:48:17.806165
2016-07-07T08:17:52
2016-07-07T08:17:52
39,478,909
3
1
null
null
null
null
UTF-8
Java
false
false
7,683
java
package com.xiaxio.fruitslide.gameplay; import java.io.FilterReader; import java.io.InputStream; import java.util.ArrayList; import java.util.Random; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import com.xiaxio.fruitslide.FruitSlide; import com.xiaxio.fruitslide.GameLib; import com.xiaxio.fruitslide.GameViewThread; import com.xiaxio.fruitslide.SoundManager; import com.xiaxio.fruitslide.Sprite; import com.xiaxio.fruitslide.actor.Actor; import com.xiaxio.fruitslide.actor.Fish; import com.xiaxio.fruitslide.actor.FishSimple; import com.xiaxio.fruitslide.state.StateGameplay; import com.xiaxio.fruitslide.state.StateWinLose; import resolution.DEF; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Point; import android.graphics.RectF; import android.util.Log; import android.view.MotionEvent; class Combo { int x; int y; int countdown; int type; public Combo(int _x,int _y, int _countdown,int _type) { x = _x; y = _y; countdown = _countdown; type = _type; } public void paint(Canvas c) { Fish.sprite.drawAFrame(c, 26 + type ,x, y + (countdown--)); } } public class GamePlay { public static int mTopScore = 0; public static int mAllScore = 0; public static long mTimerDecrease = 0; public static long totalTimePlayGame = 0; public static long mCountLive = 0; public static long[] mLevelScore = {1000,2000,5000,10000,20000,40000,80000,160000,500000,1000000,2000000,4000000,8000000,18000000,28000000,100000000,1000000000,2000000000}; public static long[] fishScore = {100,110,125,135,145,150,155,160,165,175,185,190,0}; public static ArrayList<Fish> arrayList; public static long lastTimeRandomFruitObject = 100; public static long countTimeRandomFruitObject = 1000; public static long countTimeCreateSpecial = 7000; public static long lastTimeCreateSpecial = 0; public static int MINI_MUN_SPEED = 10; public static int mNumFishDieinOneFrame = 0; public static int mNumFishDieinPreFrame = 0; public static ArrayList<Combo> arrayListisCombo = new ArrayList<Combo>(); public static Fish currentFruitObject; public static ArrayList<Point> arrayListPoint = new ArrayList<Point>(); public static long preFrameDrap = 0; public static Random random = new Random(); public static Paint paintLine = new Paint(); public static int lastFishDie_X = 0; public static int lastFishDie_Y = 0; public static int frameLasplaySoundSword = 0; public static void init() { Fish.gravity = 1f*FruitSlide.scaleY; arrayList = new ArrayList<Fish>(); lastTimeRandomFruitObject = GameViewThread.timeCurrent; lastTimeCreateSpecial = GameViewThread.timeCurrent; mAllScore = 0; mTimerDecrease = 0; totalTimePlayGame = 0; mCountLive = 0; StateGameplay.isNextlevel = false; // countSelectOneFrame = 0; paintLine.setColor(Color.WHITE); paintLine.setAlpha(150); paintLine.setStyle(Style.FILL); paintLine.setStrokeWidth((int)(8*FruitSlide.scaleX)); preFrameDrap =0; frameLasplaySoundSword = 0; } public static void DrawGame(Canvas c) { for (int i = 0; i < arrayList.size(); i++) { arrayList.get(i).paint(c); } PaintLineDrap(c); if(arrayListisCombo.size() >0) for(int i= 0;i<arrayListisCombo.size();i++) { arrayListisCombo.get(i).paint(c); } } public static void Update() { if (mCountLive >= 3) { StateWinLose.isWin = false; FruitSlide.changeState(FruitSlide.STATE_WINLOSE); } if(mAllScore >= mLevelScore[StateGameplay.mcurrentlevel]) { mCountLive = 0; StateGameplay.mcurrentlevel++;//here StateGameplay.isNextlevel = true; return; } updateLineDrap(); totalTimePlayGame += GameViewThread.timeCurrent - GameViewThread.timePrev; if (GameViewThread.timeCurrent - lastTimeRandomFruitObject > countTimeRandomFruitObject) { countTimeRandomFruitObject = 300 + random.nextInt(900); randomFruitObject(); lastTimeRandomFruitObject = GameViewThread.timeCurrent; } mNumFishDieinPreFrame = mNumFishDieinOneFrame; mNumFishDieinOneFrame = 0; //Log.d("aaaaaaaaaaaaaaaa","mNumFishDieinOneFrame" + mNumFishDieinOneFrame); for (int i = 0; i < arrayList.size(); i++) { currentFruitObject = arrayList.get(i); currentFruitObject.update(); if (currentFruitObject.state == Fish.STATE_DIE) { arrayList.remove(i); } } //Log.d("bbbbbbbbbb"," " + mNumFishDieinOneFrame); if(mNumFishDieinOneFrame + mNumFishDieinPreFrame> 3 ) { mAllScore += 100; SoundManager.playSound(SoundManager.SOUND_COMBOL_3, 1); arrayListisCombo.add(new Combo(lastFishDie_X, lastFishDie_Y, 20, 2)); } else if(mNumFishDieinOneFrame + mNumFishDieinPreFrame > 2 ) { mAllScore += 200; SoundManager.playSound(SoundManager.SOUND_COMBOL_2, 1); arrayListisCombo.add(new Combo(lastFishDie_X, lastFishDie_Y, 20, 1)); } else if(mNumFishDieinOneFrame + mNumFishDieinPreFrame > 1 ) { mAllScore += 400; SoundManager.playSound(SoundManager.SOUND_COMBOL_1, 1); arrayListisCombo.add(new Combo(lastFishDie_X, lastFishDie_Y, 20, 0)); } if(arrayListisCombo.size() >0) for(int i= 0;i<arrayListisCombo.size();i++) { if(arrayListisCombo.get(i).countdown <0) arrayListisCombo.remove(i--); } if (Fish.soundPlayID > -1) { SoundManager.playSound(Fish.soundPlayID, 1); Fish.soundPlayID = -1; } } public static void decreaseSpeedList() { for (int i = 0; i < arrayList.size(); i++) { currentFruitObject = arrayList.get(i); if (currentFruitObject.type < 16) currentFruitObject.decreaseSpeed(4); } } private static void randomFruitObject() { int _type = random.nextInt(Fish.COUNT_TYPE); int _x = random.nextInt(FruitSlide.SCREEN_WIDTH*9/10); int _y = Fish.DEFAULT_Y; //int _speed = MINI_MUN_SPEED + random.nextInt(3); int _coint = 0;//Fish.arrayCoint[_type]; int _animID = _type;//here int _state = 0; Fish fish =new Fish(_type, _x, _y, _coint, _animID, _state); arrayList.add(fish); Fish.sprite.setAnim(fish, _type, true, false); fish.speedX = (int)(FruitSlide.SCREEN_WIDTH/2 - _x)/((FruitSlide.SCREEN_WIDTH/16)) + (random.nextInt((int)(10*FruitSlide.scaleX)) -(int)( 5*FruitSlide.scaleX)) ; fish.speedY = (int)(FruitSlide.SCREEN_HEIGHT/22*FruitSlide.nScaleY + random.nextInt(FruitSlide.SCREEN_HEIGHT/120)*FruitSlide.nScaleY); } private static void updateLineDrap() { if(GameLib.isTouchPressScreen()) { arrayListPoint.clear(); arrayListPoint.add(new Point(GameLib.arraytouchPosX[0], GameLib.arraytouchPosY[0])); } //if(GameLib.frameCountCurrentState - preFrameDrap >5) if(GameLib.arraytouchState[0] == MotionEvent.ACTION_MOVE) { if(arrayListPoint.size()>=4) arrayListPoint.remove(0); if(GameLib.frameCountCurrentState - preFrameDrap > 0) { preFrameDrap = GameLib.frameCountCurrentState; arrayListPoint.add(new Point(GameLib.arraytouchPosX[0], GameLib.arraytouchPosY[0])); } } else { if(arrayListPoint.size()>0) arrayListPoint.remove(0); } } private static void PaintLineDrap(Canvas c) { if(arrayListPoint.size() >=2) { for(int i =0;i<arrayListPoint.size()-1;i++) { Point p1 =arrayListPoint.get(i); Point p2 =arrayListPoint.get(i+1); c.drawLine(p1.x,p1.y, p2.x,p2.y, paintLine); } } } public static boolean isPointInRect(int pointx,int pointy,int x, int y, int w, int h) { if ( pointx > x && pointx < x + w && pointy > y && pointy < y + h) return true; return false; } }
[ "hoang.nguyenmau@hotmail.com" ]
hoang.nguyenmau@hotmail.com
afddfc0f630aadc579d02f9559c3128ff231a821
dffd5db4a45e33d1650826c59979565ee32fa61b
/neuRefresh/src/main/java/com/neu/refresh/NeuSwipeRefreshLayoutDirection.java
66d0a21612598204ff836253e9322d16162fa14d
[]
no_license
Blankeer/XSwipeRefreshLayout
aedd499c4335a94c797f5cfe568d5ffc59311c05
67d9d654f62700fe72124d69a80e8a2a4ce797a2
refs/heads/master
2021-01-20T19:06:53.166856
2016-06-16T00:34:52
2016-06-16T00:34:52
60,156,399
2
0
null
null
null
null
UTF-8
Java
false
false
587
java
package com.neu.refresh; /** * Created by oliviergoutay on 1/23/15. */ public enum NeuSwipeRefreshLayoutDirection { TOP(0), BOTTOM(1), BOTH(2), NONE(3); private int mValue; NeuSwipeRefreshLayoutDirection(int value) { this.mValue = value; } public static NeuSwipeRefreshLayoutDirection getFromInt(int value) { for (NeuSwipeRefreshLayoutDirection direction : NeuSwipeRefreshLayoutDirection.values()) { if (direction.mValue == value) { return direction; } } return BOTH; } }
[ "blankeeee@gmail.com" ]
blankeeee@gmail.com
f99ccaaf37c4c5d06e8b30aa2b879638910961ac
59b95d96094685f53389237e55ec1cafa32c1aae
/app/src/main/java/com/colorceramics/soft_it_care/Network/response/AuctionResponse.java
66fe5b28413b4df04b48b174a7ef95c4183baeef
[]
no_license
alamincse6615/Color-Ceramics
7b26619d48283a2a6d80c2e0c232a8814cc895f0
7c558c571fdc2290eb512202a06c2efaa8922068
refs/heads/master
2023-03-26T00:55:47.083646
2021-03-23T07:56:03
2021-03-23T07:56:03
345,002,899
0
0
null
null
null
null
UTF-8
Java
false
false
951
java
package com.colorceramics.soft_it_care.Network.response; import com.colorceramics.soft_it_care.Models.AuctionProduct; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class AuctionResponse { @SerializedName("data") @Expose private List<AuctionProduct> data = null; @SerializedName("success") @Expose private Boolean success; @SerializedName("status") @Expose private Integer status; public List<AuctionProduct> getData() { return data; } public void setData(List<AuctionProduct> data) { this.data = data; } public Boolean getSuccess() { return success; } public void setSuccess(Boolean success) { this.success = success; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } }
[ "alamincse6615@gmail.com" ]
alamincse6615@gmail.com
ab00c20536689c19a27ac69d3d94fbecdaf29326
a4178e5042f43f94344789794d1926c8bdba51c0
/iwxxm2Converter/src/schemabindings/schemabindings21/net/opengis/gml/v_3_2_1/AbstractFeatureCollectionType.java
811b706907dd238a4de81ab6bddb26e29c82cafb
[ "Apache-2.0" ]
permissive
moryakovdv/iwxxmConverter
c6fb73bc49765c4aeb7ee0153cca04e3e3846ab0
5c2b57e57c3038a9968b026c55e381eef0f34dad
refs/heads/master
2023-07-20T06:58:00.317736
2023-07-05T10:10:10
2023-07-05T10:10:10
128,777,786
11
7
Apache-2.0
2023-07-05T10:03:12
2018-04-09T13:38:59
Java
UTF-8
Java
false
false
3,468
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2018.02.27 at 12:41:52 PM MSK // package schemabindings21.net.opengis.gml.v_3_2_1; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AbstractFeatureCollectionType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="AbstractFeatureCollectionType"> * &lt;complexContent> * &lt;extension base="{http://www.opengis.net/gml/3.2}AbstractFeatureType"> * &lt;sequence> * &lt;element ref="{http://www.opengis.net/gml/3.2}featureMember" maxOccurs="unbounded" minOccurs="0"/> * &lt;element ref="{http://www.opengis.net/gml/3.2}featureMembers" minOccurs="0"/> * &lt;/sequence> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AbstractFeatureCollectionType", propOrder = { "featureMember", "featureMembers" }) @XmlSeeAlso({ FeatureCollectionType.class }) public abstract class AbstractFeatureCollectionType extends AbstractFeatureType { protected List<FeaturePropertyType> featureMember; protected FeatureArrayPropertyType featureMembers; /** * Gets the value of the featureMember property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the featureMember property. * * <p> * For example, to add a new item, do as follows: * <pre> * getFeatureMember().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link FeaturePropertyType } * * */ public List<FeaturePropertyType> getFeatureMember() { if (featureMember == null) { featureMember = new ArrayList<FeaturePropertyType>(); } return this.featureMember; } public boolean isSetFeatureMember() { return ((this.featureMember!= null)&&(!this.featureMember.isEmpty())); } public void unsetFeatureMember() { this.featureMember = null; } /** * Gets the value of the featureMembers property. * * @return * possible object is * {@link FeatureArrayPropertyType } * */ public FeatureArrayPropertyType getFeatureMembers() { return featureMembers; } /** * Sets the value of the featureMembers property. * * @param value * allowed object is * {@link FeatureArrayPropertyType } * */ public void setFeatureMembers(FeatureArrayPropertyType value) { this.featureMembers = value; } public boolean isSetFeatureMembers() { return (this.featureMembers!= null); } }
[ "moryakovdv@gmail.com" ]
moryakovdv@gmail.com
341a46b227df3c2e1a024a7d48740ec927e00c30
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/dts-20200101/src/main/java/com/aliyun/dts20200101/models/CreateJobMonitorRuleResponseBody.java
df1cf689a15d806eec027c35c8da03b56ce4ef0c
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
3,687
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dts20200101.models; import com.aliyun.tea.*; public class CreateJobMonitorRuleResponseBody extends TeaModel { /** * <p>The error code. This parameter will be removed in the future.</p> */ @NameInMap("Code") public String code; /** * <p>The ID of the data migration, data synchronization, or change tracking task.</p> */ @NameInMap("DtsJobId") public String dtsJobId; /** * <p>The dynamic part in the error message. The value of this parameter is used to replace the **%s** variable in the value of the **ErrMessage** parameter.</p> * <br> * <p>> For example, if the specified **DtsJobId** parameter is invalid, **The Value of Input Parameter %s is not valid** is returned for **ErrMessage** and **DtsJobId** is returned for **DynamicMessage**.</p> */ @NameInMap("DynamicMessage") public String dynamicMessage; /** * <p>The error code returned if the call failed.</p> */ @NameInMap("ErrCode") public String errCode; /** * <p>The error message returned if the request failed.</p> */ @NameInMap("ErrMessage") public String errMessage; /** * <p>The HTTP status code.</p> */ @NameInMap("HttpStatusCode") public Integer httpStatusCode; /** * <p>The ID of the request.</p> */ @NameInMap("RequestId") public String requestId; /** * <p>Indicates whether the request was successful. Valid values:</p> * <br> * <p>* **true**: The request was successful.</p> * <p>* **false**: The request failed.</p> */ @NameInMap("Success") public Boolean success; public static CreateJobMonitorRuleResponseBody build(java.util.Map<String, ?> map) throws Exception { CreateJobMonitorRuleResponseBody self = new CreateJobMonitorRuleResponseBody(); return TeaModel.build(map, self); } public CreateJobMonitorRuleResponseBody setCode(String code) { this.code = code; return this; } public String getCode() { return this.code; } public CreateJobMonitorRuleResponseBody setDtsJobId(String dtsJobId) { this.dtsJobId = dtsJobId; return this; } public String getDtsJobId() { return this.dtsJobId; } public CreateJobMonitorRuleResponseBody setDynamicMessage(String dynamicMessage) { this.dynamicMessage = dynamicMessage; return this; } public String getDynamicMessage() { return this.dynamicMessage; } public CreateJobMonitorRuleResponseBody setErrCode(String errCode) { this.errCode = errCode; return this; } public String getErrCode() { return this.errCode; } public CreateJobMonitorRuleResponseBody setErrMessage(String errMessage) { this.errMessage = errMessage; return this; } public String getErrMessage() { return this.errMessage; } public CreateJobMonitorRuleResponseBody setHttpStatusCode(Integer httpStatusCode) { this.httpStatusCode = httpStatusCode; return this; } public Integer getHttpStatusCode() { return this.httpStatusCode; } public CreateJobMonitorRuleResponseBody setRequestId(String requestId) { this.requestId = requestId; return this; } public String getRequestId() { return this.requestId; } public CreateJobMonitorRuleResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
f656538f230bc294f4edf8739e3618c52355f9d1
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5646553574277120_1/java/Yarin/C.java
74cc2cb6f8a2c65a776c2213d5fc77f14c752163
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Java
false
false
1,524
java
package round1c; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.util.ArrayList; import java.util.Collections; public class C { public static void main(String[] args) throws FileNotFoundException { Kattio io; // io = new Kattio(System.in, System.out); // io = new Kattio(new FileInputStream("round1c/C-sample.in"), System.out); // io = new Kattio(new FileInputStream("round1c/C-small-attempt0.in"), new FileOutputStream("round1c/C-small-0.test")); io = new Kattio(new FileInputStream("round1c/C-large.in"), new FileOutputStream("round1c/C-large-0.out")); int cases = io.getInt(); for (int i = 1; i <= cases; i++) { io.print("Case #" + i + ": "); new C().solve(io); } io.close(); } private void solve(Kattio io) { int C = io.getInt(), D = io.getInt(), V = io.getInt(); ArrayList<Integer> denom = new ArrayList<>(); for (int i = 0; i < D; i++) { denom.add(io.getInt()); } Collections.sort(denom); long max = 0, added = 0; int i = 0; while (max < V) { if (i >= denom.size() || denom.get(i) > max+1) { denom.add((int)(max + 1)); Collections.sort(denom); added++; } max += denom.get(i) * ((long) C); i++; } io.println(added); // io.println(denom); } }
[ "eewestman@gmail.com" ]
eewestman@gmail.com
2bac20aff2e354e579e30f4a23a7f5692f67054a
6aa3ca8f9aa1d57e3cedd0c395c619ea57816463
/RabbitMQ/Springboot整合RabbitMQ/springboot-order-rabbbitmq-consumer/src/main/java/com/geek/service/topic/TopicEmailConsumer.java
92f7c4b3165f6dde1acd2042f5d47ee8aecf3791
[]
no_license
Lambertcmd/RabbitMQ
fa4170593ef3281136a0fdbcb623e42eff131fea
b5c15ad39c5fd70564d9457e5ad9660a2f9f1d0b
refs/heads/main
2023-05-14T03:35:07.802814
2021-06-08T08:46:32
2021-06-08T08:46:32
374,940,560
1
0
null
null
null
null
UTF-8
Java
false
false
763
java
package com.geek.service.topic; import org.springframework.amqp.core.ExchangeTypes; import org.springframework.amqp.rabbit.annotation.*; import org.springframework.stereotype.Service; /** * @ClassName EmailConsumer * @Description TODO * @Author Lambert * @Date 2021/6/2 11:14 * @Version 1.0 **/ @RabbitListener(bindings = @QueueBinding( value = @Queue(value = "email.topic.queue",durable = "true",autoDelete = "false"), exchange = @Exchange(value = "topic_order_exchange",type = ExchangeTypes.TOPIC), key = "*.email.#" )) @Service public class TopicEmailConsumer { @RabbitHandler public void receiveMessage(String message){ System.out.println("Email topic——-接收到了订单信息是:" + message); } }
[ "you@example.com" ]
you@example.com
50de5563202a44134deb3aa0d25d2f4ce2f3a5b7
a128f19f6c10fc775cd14daf740a5b4e99bcd2fb
/middleheaven-utils/src/main/java/org/middleheaven/collections/ArrayMapKey.java
52cfeb5284697fcaa6abff844000649523f78232
[]
no_license
HalasNet/middleheaven
c8bfa6199cb9b320b9cfd17b1f8e4961e3d35e6e
15e3e91c338e359a96ad01dffe9d94e069070e9c
refs/heads/master
2021-06-20T23:25:09.978612
2017-08-12T21:35:56
2017-08-12T21:37:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
727
java
package org.middleheaven.collections; import java.util.Arrays; import org.middleheaven.util.Hash; /** * ComposedMap key composed by an array of objects. * The keys are equals if the objects are the same, and in the same order. */ public final class ArrayMapKey extends ComposedMapKey{ private Object[] objects; public ArrayMapKey(Object ... objects){ this.objects = objects; } public Object[] getObjects(){ return CollectionUtils.duplicateArray(this.objects); } public boolean equals(Object other){ return other instanceof ArrayMapKey && Arrays.equals(((ArrayMapKey)other).objects , this.objects); } public int hashCode(){ return Hash.hash(objects).hashCode(); } }
[ "sergiotaborda@yahoo.com.br" ]
sergiotaborda@yahoo.com.br
83a0eec3163056855a7e3438268616d04165b1e2
429c9be33131f67c641f224b72b552fc8778395c
/src/_04EnumerationsAndAnnotationsLab/_03CoffeeMachine/CoffeeType.java
4dce0a7f46948a0ec0c53ea3f44c227b5f3a6088
[]
no_license
plamen911/java-oop-advanced
afad63f5668f94870c8c853b1c3f1af226f75e65
d5e3f4cc40d4a2074e30e1cfd3fce970cb85fd6c
refs/heads/master
2020-05-26T11:54:50.161150
2017-03-31T05:56:54
2017-03-31T05:56:54
84,996,774
0
0
null
null
null
null
UTF-8
Java
false
false
163
java
package _04EnumerationsAndAnnotationsLab._03CoffeeMachine; /** * Created by Plamen Markov on 3/25/17. */ public enum CoffeeType { ESPRESSO, LATTE, IRISH; }
[ "1" ]
1
2d8603959eea83f3cf7a74db3caaac2a4a2d790a
6252c165657baa6aa605337ebc38dd44b3f694e2
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-900-Files/boiler-To-Generate-900-Files/syncregions-900Files/BoilerActuator5509.java
6e39650cf0b08f393fab4b4934426ffc94b46aa7
[]
no_license
soha500/EglSync
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
55101bc781349bb14fefc178bf3486e2b778aed6
refs/heads/master
2021-06-23T02:55:13.464889
2020-12-11T19:10:01
2020-12-11T19:10:01
139,832,721
0
1
null
2019-05-31T11:34:02
2018-07-05T10:20:00
Java
UTF-8
Java
false
false
263
java
package syncregions; public class BoilerActuator5509 { public execute(int temperatureDifference5509, boolean boilerStatus5509) { //sync _bfpnGUbFEeqXnfGWlV5509, behaviour Half Change - return temperature - targetTemperature; //endSync } }
[ "sultanalmutairi@172.20.10.2" ]
sultanalmutairi@172.20.10.2
a87364f5f82ba9d1024461a99aa3061c98998f39
e98552f261659b4d8ec8580131b9d40d8c3ade32
/javaStmt/src/part1/whileloop/DoWhileLoop.java
e0a6684077d81a266139bccb5e4053f3da3282c7
[]
no_license
seuliyo/javaStmt
99369bd29ca262e85999911cd62d14f7dfbf78d6
37c537fe855ded102f31855f6b581ad2f8482cfa
refs/heads/master
2020-03-30T21:10:15.597871
2015-07-03T05:45:33
2015-07-03T05:45:33
38,474,376
0
0
null
null
null
null
UHC
Java
false
false
524
java
package part1.whileloop; /* do~while 문은 while문과 거의 일치하나 다른점은 처음 한번은 무조건 수행하고 나서 조건을 비교한다. - 형식 do{ 문장; }while(조건); */ public class DoWhileLoop { public static void main(String[] args) { int count = 1; //do{}while(); do{ System.out.print(count+"\t"); // ln은 line의 약자로 라인개행 명령어 // \t는 이스케이프 문자로 tap 키를 의미함 count++; }while(count<11); } }
[ "Administrator@MSDN-SPECIAL" ]
Administrator@MSDN-SPECIAL
119eefc960337c334f3ff6c226b129679f9a2698
6859095764765927a9ff4a36591800464a9b7f65
/src/com/jmex/model/collada/ColladaGeometry.java
84dcd498cc62b4aebd748fc6ed02ab7ace85cdae
[]
no_license
dertom95/openwonderland-jme2
1fcaff4b1a6410c3cfc132b9072323f5dd52188b
4aa3f2772cc3f64be8bc6fc0bfa953e84ea9d3b8
refs/heads/master
2022-01-15T06:40:45.198913
2015-10-12T06:20:16
2015-10-12T06:20:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,209
java
/* * Copyright (c) 2011 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of 'jMonkeyEngine' nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package com.jmex.model.collada; /** * Interface for Collada Geometry, which can be annotated with a material * to bind later. * @author Jonathan Kaplan */ public interface ColladaGeometry { /** * Get the name of the material to bind to this geometry object. * @return material the name of the material to bind, or null if this * geometry does not have a material defined */ public String getMaterial(); /** * Set the name of the material to bind to this geometry object. * @param material the name of the material to bind */ public void setMaterial(String material); }
[ "abhiit61@1c5ca2ba-d46e-4326-9e01-d7f1c7c16fc5" ]
abhiit61@1c5ca2ba-d46e-4326-9e01-d7f1c7c16fc5
10e2539bc822bd148c267cc5fffc1ea8d319a0bd
35b19238244a7b96aec57b4d3d3fb195bfd16a32
/fabric/fabric-commands/src/main/java/io/fabric8/commands/RequireProfileListAction.java
e22493add72ffeb09cd59d47f939373864c55852
[ "Apache-2.0" ]
permissive
alns/fabric8
a91a31609115bdaa28ec00c417c21960eabdebfc
e21c2c7422d36ebf96064fe9003da50f53bcee6a
refs/heads/master
2021-01-17T21:57:26.932998
2014-07-17T12:25:55
2014-07-17T15:39:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,171
java
/** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing * permissions and limitations under the License. */ package io.fabric8.commands; import io.fabric8.api.FabricService; import org.apache.felix.gogo.commands.Command; import io.fabric8.api.FabricRequirements; import io.fabric8.api.ProfileRequirements; import io.fabric8.commands.support.RequirementsListSupport; import java.io.PrintStream; import java.util.List; @Command(name = "require-profile-list", scope = "fabric", description = "Lists the requirements for profiles in the fabric", detailedDescription = "classpath:status.txt") public class RequireProfileListAction extends RequirementsListSupport { public RequireProfileListAction(FabricService fabricService) { super(fabricService); } @Override protected void printRequirements(PrintStream out, FabricRequirements requirements) { out.println(String.format("%-40s %-14s %-14s %s", "[profile]", "[# minimum]", "[# maximum]", "[depends on]")); List<ProfileRequirements> profileRequirements = requirements.getProfileRequirements(); for (ProfileRequirements profile : profileRequirements) { out.println(String.format("%-40s %-14s %-14s %s", profile.getProfile(), getStringOrBlank(profile.getMinimumInstances()), getStringOrBlank(profile.getMaximumInstances()), getStringOrBlank(profile.getDependentProfiles()))); } } protected Object getStringOrBlank(Object value) { if (value == null) { return ""; } else { return value.toString(); } } }
[ "claus.ibsen@gmail.com" ]
claus.ibsen@gmail.com
e9aacede110fd50ba2face010261faa39d024b3d
fdf6af788d9dbcf2c540221c75218e26bd38483b
/app/src/main/java/com/yuanxin/clan/core/entity/FragmentNewConversationListEntity.java
7f868bbdbab81553ee051fec6afab1c46e9b5541
[]
no_license
RobertBaggio/yuanxinclan
8b6b670d2bc818ff018c6e2bcfe77e74903ddbbd
544918ce2f80975f32aa09a4990028b955fa5f6d
refs/heads/master
2020-03-18T09:05:47.461683
2018-05-23T09:30:36
2018-05-23T09:30:36
134,544,755
0
0
null
null
null
null
UTF-8
Java
false
false
820
java
package com.yuanxin.clan.core.entity; /** * Created by lenovo1 on 2017/5/10. */ public class FragmentNewConversationListEntity { private String image;//图片 private String name;//标题 private String message;//新闻类型 private String time;//时间 public String getImage() { return image; } public void setImage(String image) { this.image = image; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public String getTime() { return time; } public void setTime(String time) { this.time = time; } }
[ "baggiocomeback@163.com" ]
baggiocomeback@163.com
9aa38dbafffc336bf1c34cf513ade4106b0c9a74
dd70bacf12f2b3fd81e4dac135b9a4e491f73cb8
/net/minecraft/data/client/model/ModelIds.java
bb21c4171651aa2e34edc0db8f79965954e22fe6
[]
no_license
dennisvoliver/minecraft
bd9d8e256778ac3d00c1ab61a2b6c4702ed56827
fbf6271791785db06a3f8fe4a86c6a92f6a8d951
refs/heads/main
2023-04-23T12:38:25.848640
2021-05-19T07:15:38
2021-05-19T07:15:38
368,775,994
2
0
null
null
null
null
UTF-8
Java
false
false
1,396
java
package net.minecraft.data.client.model; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; public class ModelIds { @Deprecated public static Identifier getMinecraftNamespacedBlock(String name) { return new Identifier("minecraft", "block/" + name); } public static Identifier getMinecraftNamespacedItem(String name) { return new Identifier("minecraft", "item/" + name); } public static Identifier getBlockSubModelId(Block block, String suffix) { Identifier identifier = Registry.BLOCK.getId(block); return new Identifier(identifier.getNamespace(), "block/" + identifier.getPath() + suffix); } public static Identifier getBlockModelId(Block block) { Identifier identifier = Registry.BLOCK.getId(block); return new Identifier(identifier.getNamespace(), "block/" + identifier.getPath()); } public static Identifier getItemModelId(Item item) { Identifier identifier = Registry.ITEM.getId(item); return new Identifier(identifier.getNamespace(), "item/" + identifier.getPath()); } public static Identifier getItemSubModelId(Item item, String suffix) { Identifier identifier = Registry.ITEM.getId(item); return new Identifier(identifier.getNamespace(), "item/" + identifier.getPath() + suffix); } }
[ "user@email.com" ]
user@email.com
a9c3e9863fed3cde14fc1a13fe775c47a1dde9b7
c377ddd741ed185f40d58535e7d4f211c60ac723
/app/src/main/java/com/loksarkar/adapters/ExpandableMenuAdapter.java
54e064bd5cc9eab4462c433716aeaabcc9addce5
[]
no_license
Adms1/loksarkar
d15aff70a77a9d49b3a4eb0a9dfdb359aada3744
094a0466949b00d8b5c2e04a0c086d4ea8325762
refs/heads/master
2021-07-02T20:11:39.909315
2020-10-14T09:10:56
2020-10-14T09:10:56
152,704,785
0
0
null
null
null
null
UTF-8
Java
false
false
4,370
java
package com.loksarkar.adapters; import android.content.Context; import android.graphics.Typeface; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.ExpandableListView; import android.widget.ImageView; import android.widget.TextView; import com.loksarkar.R; import com.loksarkar.models.ChildListModel; import com.loksarkar.models.ExpandabelModel; import java.util.HashMap; import java.util.List; public class ExpandableMenuAdapter extends BaseExpandableListAdapter { private Context mContext; private List<ExpandabelModel> mListDataHeader; // header titles // child data in format of header title, child title private HashMap<ExpandabelModel, List<ChildListModel>> mListDataChild; ExpandableListView expandList; public ExpandableMenuAdapter(Context context, List<ExpandabelModel> listDataHeader, HashMap<ExpandabelModel, List<ChildListModel>> listChildData, ExpandableListView mView) { this.mContext = context; this.mListDataHeader = listDataHeader; this.mListDataChild = listChildData; this.expandList = mView; } @Override public int getGroupCount() { int i = mListDataHeader.size(); Log.d("GROUPCOUNT", String.valueOf(i)); return this.mListDataHeader.size(); } @Override public int getChildrenCount(int groupPosition) { int childCount = 0; if (groupPosition == 4) { childCount = this.mListDataChild.get(this.mListDataHeader.get(groupPosition)).size(); } return childCount; } @Override public Object getGroup(int groupPosition) { return this.mListDataHeader.get(groupPosition); } @Override public Object getChild(int groupPosition, int childPosition) { Log.d("CHILD", mListDataChild.get(this.mListDataHeader.get(groupPosition)).get(childPosition).toString()); return this.mListDataChild.get(this.mListDataHeader.get(groupPosition)).get(childPosition); } @Override public long getGroupId(int groupPosition) { return groupPosition; } @Override public long getChildId(int groupPosition, int childPosition) { return childPosition; } @Override public boolean hasStableIds() { return false; } @Override public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { ExpandabelModel headerTitle = (ExpandabelModel) getGroup(groupPosition); if (convertView == null) { LayoutInflater infalInflater = (LayoutInflater) this.mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = infalInflater.inflate(R.layout.listheader, null); } TextView lblListHeader = (TextView) convertView.findViewById(R.id.submenu); ImageView headerIcon = (ImageView) convertView.findViewById(R.id.iconimage); lblListHeader.setTypeface(null, Typeface.BOLD); lblListHeader.setText(headerTitle.getName()); headerIcon.setImageDrawable(headerTitle.getDrawable_id()); return convertView; } @Override public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { final ChildListModel childListModel = (ChildListModel)getChild(groupPosition,childPosition); //final String childText = (String) getChild(groupPosition, childPosition); if (convertView == null) { LayoutInflater infalInflater = (LayoutInflater) this.mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = infalInflater.inflate(R.layout.list_submenu, null); } TextView txtListChild = (TextView) convertView.findViewById(R.id.submenu); ImageView imageCheck = (ImageView)convertView.findViewById(R.id.iv_check_submenu); txtListChild.setText(childListModel.getMenuName()); if(childListModel.isSelected()){ imageCheck.setVisibility(View.VISIBLE); }else{ imageCheck.setVisibility(View.INVISIBLE); } return convertView; } @Override public boolean isChildSelectable(int groupPosition, int childPosition) { return true; } }
[ "admsbuild@gmail.com" ]
admsbuild@gmail.com
51b93a3af1809e209de40f7a75853fc60b98819b
536656cd89e4fa3a92b5dcab28657d60d1d244bd
/content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningController.java
c52f327e972ea077189d5df9baf4e81a5b380d51
[ "BSD-3-Clause" ]
permissive
ECS-251-W2020/chromium
79caebf50443f297557d9510620bf8d44a68399a
ac814e85cb870a6b569e184c7a60a70ff3cb19f9
refs/heads/master
2022-08-19T17:42:46.887573
2020-03-18T06:08:44
2020-03-18T06:08:44
248,141,336
7
8
BSD-3-Clause
2022-07-06T20:32:48
2020-03-18T04:52:18
null
UTF-8
Java
false
false
2,819
java
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.content.browser.accessibility.captioning; import android.annotation.TargetApi; import android.os.Build; import org.chromium.base.annotations.CalledByNative; import org.chromium.base.annotations.JNINamespace; import org.chromium.base.annotations.NativeMethods; import org.chromium.content_public.browser.WebContents; /** * Sends notification when platform closed caption settings have changed. */ @JNINamespace("content") public class CaptioningController implements SystemCaptioningBridge.SystemCaptioningBridgeListener { private SystemCaptioningBridge mSystemCaptioningBridge; private long mNativeCaptioningController; public CaptioningController(WebContents webContents) { mSystemCaptioningBridge = CaptioningBridgeFactory.getSystemCaptioningBridge(); mNativeCaptioningController = CaptioningControllerJni.get().init(CaptioningController.this, webContents); } @SuppressWarnings("unused") @CalledByNative private void onDestroy() { mNativeCaptioningController = 0; } @SuppressWarnings("unused") @CalledByNative private void onRenderProcessChange() { // Immediately sync closed caption settings to the new render process. mSystemCaptioningBridge.syncToListener(this); } @TargetApi(Build.VERSION_CODES.KITKAT) @Override public void onSystemCaptioningChanged(TextTrackSettings settings) { if (mNativeCaptioningController == 0) return; CaptioningControllerJni.get().setTextTrackSettings(mNativeCaptioningController, CaptioningController.this, settings.getTextTracksEnabled(), settings.getTextTrackBackgroundColor(), settings.getTextTrackFontFamily(), settings.getTextTrackFontStyle(), settings.getTextTrackFontVariant(), settings.getTextTrackTextColor(), settings.getTextTrackTextShadow(), settings.getTextTrackTextSize()); } public void startListening() { mSystemCaptioningBridge.addListener(this); } public void stopListening() { mSystemCaptioningBridge.removeListener(this); } @NativeMethods interface Natives { long init(CaptioningController caller, WebContents webContents); void setTextTrackSettings(long nativeCaptioningController, CaptioningController caller, boolean textTracksEnabled, String textTrackBackgroundColor, String textTrackFontFamily, String textTrackFontStyle, String textTrackFontVariant, String textTrackTextColor, String textTrackTextShadow, String textTrackTextSize); } }
[ "pcding@ucdavis.edu" ]
pcding@ucdavis.edu
3697c2a15b502eb637ea1446136d6ce340b19ba9
bc31ae1eec77a1ba42ef51e8593556092dff766c
/src/com/morningtel/onekilo/service/GuardReceiver.java
e2cd8b0b76bf1b75aa8a68c81ff4213c8e7130af
[]
no_license
0359xiaodong/oneKilo
afc2e757d51d87cda5dee972b64008bbdc203c56
482572c424bf0caf74aa29bd95bfa9942d9a393c
refs/heads/master
2021-01-14T12:58:00.858061
2014-04-10T06:01:24
2014-04-10T06:01:24
null
0
0
null
null
null
null
GB18030
Java
false
false
1,484
java
package com.morningtel.onekilo.service; import java.util.ArrayList; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class GuardReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub //全广播服务均可打开守护服务 System.out.println("由 "+intent.getAction()+" 打开守护服务"); //重复打开 if(!isServiceWorked(context, "com.morningtel.onekilo.service.GuardService")) { System.out.println("守护服务不存在,重启守护服务"); Intent intent_guard = new Intent(context, GuardService.class); intent_guard.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startService(intent_guard); } } /** * 判断服务是否存在 * @param context * @return */ public static boolean isServiceWorked(Context context, String serviceName) { ActivityManager myManager=(ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); ArrayList<RunningServiceInfo> runningService = (ArrayList<RunningServiceInfo>) myManager.getRunningServices(30); for(int i = 0 ; i<runningService.size();i++) { if(runningService.get(i).service.getClassName().toString().equals(serviceName)) { return true; } } return false; } }
[ "Yuren2@hotmail.com" ]
Yuren2@hotmail.com
c6b3511b6acae62929177b93fc22ab462fd6b1b7
12b7d3c487be96453dbe3d539cb2a7fb9f1854ab
/aTalk/src/main/java/net/java/sip/communicator/impl/protocol/jabber/extensions/jingle/SctpMapExtension.java
91edcbd47e189d623dd74dcd4c5ff07ecef8b3a8
[ "Apache-2.0" ]
permissive
zhiji6/atalk-android
8d74abe9894cbc181b9c96039bba986fd82ac65a
37140a66dd7436bd26273202d202c0d994a18645
refs/heads/master
2020-04-28T15:09:32.187611
2019-03-04T09:09:02
2019-03-04T09:09:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,219
java
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Distributable under LGPL license. See terms of license at gnu.org. */ package net.java.sip.communicator.impl.protocol.jabber.extensions.jingle; import org.jivesoftware.smack.packet.ExtensionElement; import org.jivesoftware.smack.packet.XmlEnvironment; import org.jivesoftware.smack.util.XmlStringBuilder; /** * SctpMap extension in transport packet extension. Defined by XEP-0343: Signaling WebRTC datachannels in Jingle. * * @author lishunyang * @author Eng Chong Meng */ public class SctpMapExtension implements ExtensionElement { /** * The name of the "sctpmap" element. */ public static final String ELEMENT_NAME = "sctpmap"; /** * The namespace for the "sctpmap" element. */ public static final String NAMESPACE = "urn:xmpp:jingle:transports:dtls-sctp:1"; /** * Port number of "sctpmap" element. */ public static final String PORT_ATTR_NAME = "number"; /** * Protocol name of "sctpmap" element. */ public static final String PROTOCOL_ATTR_NAME = "protocol"; /** * Number of streams of "sctpmap" element. */ public static final String STREAMS_ATTR_NAME = "streams"; /** * Value of "port". */ private int port = -1; /** * Value of "protocol". * * @See SctpMapExtension.Protocol */ private String protocol = ""; /** * Number of "streams". */ private int streams = -1; /** * {@inheritDoc} */ @Override public String getElementName() { return ELEMENT_NAME; } /** * {@inheritDoc} */ @Override public String getNamespace() { return NAMESPACE; } /** * {@inheritDoc} */ @Override public CharSequence toXML(XmlEnvironment xmlEnvironment) { XmlStringBuilder xml = new XmlStringBuilder(); xml.prelude(getElementName(), getNamespace()); xml.optIntAttribute(PORT_ATTR_NAME, port); xml.optAttribute(PROTOCOL_ATTR_NAME, protocol); xml.optIntAttribute(STREAMS_ATTR_NAME, streams); xml.append("/>"); return xml; } public void setPort(int port) { this.port = port; } public int getPort() { return port; } public void setProtocol(String protocol) { this.protocol = protocol; } public void setProtocol(Protocol protocol) { this.protocol = protocol.toString(); } public String getProtocol() { return protocol; } public void setStreams(int streams) { this.streams = streams; } public int getStreams() { return streams; } /** * Protocol enumeration of <tt>SctpMapExtension</tt>. Currently it only contains WEBRTC_CHANNEL. * * @author lishunyang */ public static enum Protocol { WEBRTC_CHANNEL("webrtc-datachannel"); private String name; private Protocol(String name) { this.name = name; } @Override public String toString() { return name; } } }
[ "cmeng.gm@gmail.com" ]
cmeng.gm@gmail.com
784b8437c8ae191036a7db21ed020ba7a38b29d0
4f4ddc396fa1dfc874780895ca9b8ee4f7714222
/src/java/com/gensym/classes/modules/g2bnssup/BeanDefinitionImpl.java
303bca75908663e466d2162de801c2ef369bfd12
[]
no_license
UtsavChokshiCNU/GenSym-Test2
3214145186d032a6b5a7486003cef40787786ba0
a48c806df56297019cfcb22862dd64609fdd8711
refs/heads/master
2021-01-23T23:14:03.559378
2017-09-09T14:20:09
2017-09-09T14:20:09
102,960,203
3
5
null
null
null
null
UTF-8
Java
false
false
1,087
java
/* * Copyright (C) 1986-2017 Gensym Corporation. * All Rights Reserved. * * BeanDefinitionImpl.java * * Description: Generated Interface file. Do not edit! * * Author: Gensym Corp. * * Version: 5.1 Rev. 0 (H15) * * Date: Tue Dec 01 13:36:29 EST 1998 * */ package com.gensym.classes.modules.g2bnssup; import com.gensym.classes.*; import com.gensym.util.Structure; import com.gensym.util.Sequence; import com.gensym.util.Symbol; import com.gensym.util.symbol.SystemAttributeSymbols; import com.gensym.jgi.*; import com.gensym.classes.Object; public class BeanDefinitionImpl extends com.gensym.classes.modules.g2bnssup.ForeignClassDefinitionImpl implements BeanDefinition { static final long serialVersionUID = 2L; /* Generated constructors */ public BeanDefinitionImpl() { super(); } public BeanDefinitionImpl(G2Access context, int handle, Structure attributes) { super (context, handle, attributes); } private static String NoBodyExceptionString = "This method has no implementation for local access"; }
[ "utsavchokshi@Utsavs-MacBook-Pro.local" ]
utsavchokshi@Utsavs-MacBook-Pro.local
7189333ccf8e1b5f113f8a19861dd39dff90638c
c1d207a3f7799e52e0bfdfe2bdbf56af2fb31e50
/src/main/java/com/chdryra/android/startouch/Authentication/Interfaces/AccountsManager.java
6c6ef624d82c54412b8fdbe998cd883ca3d61997
[]
no_license
chdryra/Startouch
7090cb7faf4cca14d9efe01c5134a063c4ed5a55
3c7d61634bea5029f0313c8f4c68c408c7bd72d9
refs/heads/master
2021-09-10T07:31:22.314666
2018-03-21T20:25:22
2018-03-21T20:25:22
16,763,501
0
0
null
null
null
null
UTF-8
Java
false
false
478
java
/* * Copyright (c) Rizwan Choudrey 2016 - All Rights Reserved * Unauthorized copying of this file via any medium is strictly prohibited * Proprietary and confidential * rizwan.choudrey@gmail.com * */ package com.chdryra.android.startouch.Authentication.Interfaces; /** * Created by: Rizwan Choudrey * On: 16/08/2016 * Email: rizwan.choudrey@gmail.com */ public interface AccountsManager { UserAuthenticator getAuthenticator(); UserAccounts getAccounts(); }
[ "rizwan.choudrey@gmail.com" ]
rizwan.choudrey@gmail.com
2687907e300b407a41c25b7d7f81637d653adbce
8063dedc9dfbabbf95a4f29dbedef62bec67439c
/gvr-arcore/app/src/main/java/org/gearvrf/arcore/simplesample/SampleHelper.java
1b0cb54dbb482ad3518d541b45d5040cf61e9032
[]
no_license
NolaDonato/GearVRf-Demos
4ce296f6edc6fc7302bb7596e3548630a3794cd3
ef28146ff3efd528c931cbd153b6d4bc8fc5b14a
refs/heads/master
2020-04-05T14:32:48.885692
2018-12-05T03:15:01
2018-12-05T03:15:01
53,160,807
1
0
null
2018-11-05T21:10:38
2016-03-04T19:37:40
Java
UTF-8
Java
false
false
3,837
java
/* Copyright 2015 Samsung Electronics Co., LTD * * 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.gearvrf.arcore.simplesample; import android.graphics.Color; import org.gearvrf.GVRAndroidResource; import org.gearvrf.GVRContext; import org.gearvrf.GVRMaterial; import org.gearvrf.GVRMesh; import org.gearvrf.GVRPicker; import org.gearvrf.GVRRenderData; import org.gearvrf.GVRSceneObject; import org.gearvrf.io.GVRCursorController; import org.gearvrf.io.GVRInputManager; import java.util.EnumSet; public class SampleHelper { private GVRSceneObject mCursor; private GVRCursorController mCursorController; private int hsvHUE = 0; public GVRSceneObject createQuadPlane(GVRContext gvrContext) { GVRMesh mesh = GVRMesh.createQuad(gvrContext, "float3 a_position", 1.0f, 1.0f); GVRMaterial mat = new GVRMaterial(gvrContext, GVRMaterial.GVRShaderType.Phong.ID); GVRSceneObject polygonObject = new GVRSceneObject(gvrContext, mesh, mat); hsvHUE += 35; float[] hsv = new float[3]; hsv[0] = hsvHUE % 360; hsv[1] = 1f; hsv[2] = 1f; int c = Color.HSVToColor(50, hsv); mat.setDiffuseColor(Color.red(c) / 255f,Color.green(c) / 255f, Color.blue(c) / 255f, 0.2f); polygonObject.getRenderData().setMaterial(mat); polygonObject.getRenderData().setAlphaBlend(true); polygonObject.getTransform().setRotationByAxis(-90, 1, 0, 0); return polygonObject; } public void initCursorController(GVRContext gvrContext, final SampleMain.TouchHandler handler) { final int cursorDepth = 100; gvrContext.getMainScene().getEventReceiver().addListener(handler); GVRInputManager inputManager = gvrContext.getInputManager(); mCursor = new GVRSceneObject(gvrContext, gvrContext.createQuad(0.2f * cursorDepth, 0.2f * cursorDepth), gvrContext.getAssetLoader().loadTexture(new GVRAndroidResource(gvrContext, R.raw.cursor))); mCursor.getRenderData().setDepthTest(false); mCursor.getRenderData().setRenderingOrder(GVRRenderData.GVRRenderingOrder.OVERLAY); final EnumSet<GVRPicker.EventOptions> eventOptions = EnumSet.of( GVRPicker.EventOptions.SEND_TOUCH_EVENTS, GVRPicker.EventOptions.SEND_TO_LISTENERS); inputManager.selectController(new GVRInputManager.ICursorControllerSelectListener() { public void onCursorControllerSelected(GVRCursorController newController, GVRCursorController oldController) { if (oldController != null) { oldController.removePickEventListener(handler); } mCursorController = newController; newController.addPickEventListener(handler); newController.setCursor(mCursor); newController.setCursorDepth(-cursorDepth); newController.setCursorControl(GVRCursorController.CursorControl.CURSOR_CONSTANT_DEPTH); newController.getPicker().setEventOptions(eventOptions); } }); } GVRCursorController getCursorController() { return this.mCursorController; } }
[ "m.marinov@samsung.com" ]
m.marinov@samsung.com
653c60665c4adb5ab61293eaf2d8799fce57f75d
3e0d77eedc400f6925ee8c75bf32f30486f70b50
/CoreJava/src/com/techchefs/javaapps/learning/hasarelationship/DB2.java
a913c785b304db9752ed9c79688b6699ea3913f6
[]
no_license
sanghante/ELF-06June19-TechChefs-SantoshG
1c1349a1e4dcea33923dda73cdc7e7dbc54f48e6
a13c01aa22e057dad1e39546a50af1be6ab78786
refs/heads/master
2023-01-10T05:58:52.183306
2019-08-14T13:26:12
2019-08-14T13:26:12
192,526,998
0
0
null
2023-01-04T07:13:13
2019-06-18T11:30:13
Rich Text Format
UTF-8
Java
false
false
225
java
package com.techchefs.javaapps.learning.hasarelationship; public class DB2 { void receive( Person p) { System.out.println("I am in DB2 receive"); System.out.println(p.getName()); System.out.println(p.getAge()); } }
[ "santhosh.ghante@yahoo.com" ]
santhosh.ghante@yahoo.com
500266b539a9c2b3f79324a67fed5cc4cdcc3eb6
c32e30b903e3b58454093cd8ee5c7bba7fb07365
/source/Class_46933.java
f3d79fab2c4f21b92d5626c2d5799ffab722d57c
[]
no_license
taiwan902/bp-src
0ee86721545a647b63848026a995ddb845a62969
341a34ebf43ab71bea0becf343795e241641ef6a
refs/heads/master
2020-12-20T09:17:11.506270
2020-01-24T15:15:30
2020-01-24T15:15:30
236,025,046
1
1
null
2020-01-24T15:10:30
2020-01-24T15:10:29
null
UTF-8
Java
false
false
804
java
/* * Decompiled with CFR 0.145. */ import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandles; public final class Class_46933 extends Class_41387 { private final Throwable Field_46934; public Throwable Method_46935() { return this.Field_46934; } public Class_46933(Class_37082 class_37082, Throwable throwable) { super(class_37082); if (throwable == null) { throw new NullPointerException("cause"); } this.Field_46934 = throwable; } public boolean Method_46936() { return (192 & -2028) != 0; } private void Method_46937() { MethodHandle methodHandle = MethodHandles.constant(String.class, "MC|BlazingPack"); } public Object Method_46938() { return null; } }
[ "szymex73@gmail.com" ]
szymex73@gmail.com
e44fe443f4f0351b1b793c1be5326d609a2a43a5
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project49/src/main/java/org/gradle/test/performance49_3/Production49_253.java
83631bdbea270314d4cbe318eba4481695928e83
[]
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
305
java
package org.gradle.test.performance49_3; public class Production49_253 extends org.gradle.test.performance14_3.Production14_253 { private final String property; public Production49_253() { this.property = "foo"; } public String getProperty() { return property; } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
aaf369b78fb663b32482b4bc488d20119eee2804
a657e7be4a1e875ead7a5c24833198b911f75f29
/gen/org/dylanfoundry/deft/filetypes/dylan/psi/impl/DylanExcludeOptionImpl.java
23702e5821d121c8e4af8628049dcddfb6164c22
[ "Apache-2.0" ]
permissive
enlight/DeftIDEA
57639b3e84e82050a3c2e41afa29e6ec89c94ca4
877e47f9ab2f3d95186ac57a1bc51ee131ef07da
refs/heads/master
2020-12-11T05:47:44.009438
2013-11-12T08:46:01
2013-11-12T08:48:03
null
0
0
null
null
null
null
UTF-8
Java
false
true
1,030
java
// This is a generated file. Not intended for manual editing. package org.dylanfoundry.deft.filetypes.dylan.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; import static org.dylanfoundry.deft.filetypes.dylan.psi.DylanTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; import org.dylanfoundry.deft.filetypes.dylan.psi.*; public class DylanExcludeOptionImpl extends ASTWrapperPsiElement implements DylanExcludeOption { public DylanExcludeOptionImpl(ASTNode node) { super(node); } @Override @NotNull public List<DylanVariableName> getVariableNameList() { return PsiTreeUtil.getChildrenOfTypeAsList(this, DylanVariableName.class); } public void accept(@NotNull PsiElementVisitor visitor) { if (visitor instanceof DylanVisitor) ((DylanVisitor)visitor).visitExcludeOption(this); else super.accept(visitor); } }
[ "francesco@ceccon.me" ]
francesco@ceccon.me
50f28ee272da8671f559c6358e4e03075c3e4fc9
128c6b8d5d11c98c957bc7af2dfb4df37b404452
/springboot_book/ch08/src/main/java/com/example/ch08/repository/UserRepository.java
45c8ae8de48cc684a0168f43848264da2043e032
[]
no_license
jinioh88/Spring-Boot
b63933fe32221526efdf5c4f47aaadae3ff6d192
7e6e04eed3e67a0319956842ddb32cf46635a4fc
refs/heads/master
2021-06-01T16:42:04.041782
2020-12-01T16:36:53
2020-12-01T16:36:53
130,997,535
0
0
null
null
null
null
UTF-8
Java
false
false
385
java
package com.example.ch08.repository; import com.example.ch08.vo.UserVO; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface UserRepository extends JpaRepository<UserVO, Long> { public Iterable<? extends UserVO> findByUserName(String userName); public UserVO findOne(String userName); }
[ "jinioh88@gmail.com" ]
jinioh88@gmail.com
3f6be8445ae5620cd28da171a4a0644ee7d580db
6839e7abfa2e354becd034ea46f14db3cbcc7488
/src/cn/com/sinosoft/service/LotteryActService.java
358f89f110a7c40e58f994495e310f343e477baf
[]
no_license
trigrass2/wj
aa2d310baa876f9e32a65238bcd36e7a2440b8c6
0d4da9d033c6fa2edb014e3a80715c9751a93cd5
refs/heads/master
2021-04-19T11:03:25.609807
2018-01-12T09:26:11
2018-01-12T09:26:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,944
java
package cn.com.sinosoft.service; import java.util.List; import cn.com.sinosoft.entity.LotteryAct; /** * Service接口 - 活动抽奖 * ============================================================================ * * ============================================================================ */ public interface LotteryActService extends BaseService<LotteryAct, String> { /** *获取已得奖的记录 * * @param ActCode * 活动编码 * * @param type * 中奖状态 * * @param awards * 奖项 * * @param RecordType * 记录类型 * * @return List<LotteryAct> * */ public List<LotteryAct> getListByCondition(String actCode, String type, String awards, String recordType); /** *获取抽奖资格 * * * @param memberId * 会员id * * @param recordType * 记录类型 * @param actCode * * @return List<LotteryAct> * */ public List<LotteryAct> getListByMemberId(String memberId, String recordType, String useType, String actCode); /** *获取中奖名单 * * * @param type * 使用状态 * @param recordType * 记录类型 * @param actCode * 活动类型 * * @return List<LotteryAct> * */ public List<LotteryAct> getListByWin(String recordType, String type, String actCode); public List<LotteryAct> getListByAllUse(String recordType, String useType, String actCode); /** *获取抽奖名单 * * * @param actCode * 活动类型 * * @return List<LotteryAct> * */ public List<LotteryAct> getListByAllActCode(String actCode); /** *获取中奖名单(经验值) * * * @param type * 使用状态 * @param recordType * 记录类型 * * @return List<LotteryAct> * */ public List<LotteryAct> getListByWin(String recordType, String type); }
[ "liyinfeng0520@163.com" ]
liyinfeng0520@163.com
013d30647e7213a1a97a6585943154463b8f872c
b61820369b56f295979dd753e5a99effd8b16d4c
/src/main/java/br/on/daed/kinect/services/log/Log.java
ec99d87b0ec44395f303d44ad400fdb73b9cb680
[ "MIT" ]
permissive
csiqueirasilva/piramide-daed
ffa3426bb2f79be5962fed47e1ff2eefa510a7ff
e7536bac778435d112e4d459d445c541e365c6f9
refs/heads/master
2021-01-10T13:16:40.833371
2016-10-10T16:08:25
2016-10-10T16:08:25
52,055,524
0
0
null
null
null
null
UTF-8
Java
false
false
1,537
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 br.on.daed.kinect.services.log; // //import com.fasterxml.jackson.annotation.JsonIgnore; //import java.io.Serializable; //import javax.persistence.Basic; //import javax.persistence.Entity; //import javax.persistence.FetchType; //import javax.persistence.GeneratedValue; //import javax.persistence.GenerationType; //import javax.persistence.Id; //import javax.persistence.Lob; //import org.hibernate.annotations.Type; //import org.joda.time.DateTime; // ///** // * // * @author csiqueira // */ //@Entity //public class Log implements Serializable { // // @Id // @GeneratedValue(strategy=GenerationType.IDENTITY) // private Long Id; // // @Type(type="org.jadira.usertype.dateandtime.joda.PersistentDateTime") // private DateTime eventDate; // // @JsonIgnore // @Lob // @Basic(fetch=FetchType.LAZY) // private byte[] image; // // public DateTime getEventDate() { // return eventDate; // } // // public void setEventDate(DateTime eventDate) { // this.eventDate = eventDate; // } // // public byte[] getImage() { // return image; // } // // public void setImage(byte[] image) { // this.image = image; // } // // public Long getId() { // return Id; // } // // public void setId(Long Id) { // this.Id = Id; // } // //}
[ "csiqueirasilva@gmail.com" ]
csiqueirasilva@gmail.com
99a6a1eea3a946e70c05908a678d0ec04b2b836a
ab618e598da85b8554a79fbf07d936977ca4495a
/AttendanceMonitoringSystem/backend-transacting/api/src/ph/com/bpi/dao/impl/T0234DAOImpl.java
72a2d072dfce83b78a89426e270982d31d3b0ad7
[]
no_license
chrisjeriel/AttendanceMonitoringSystem
1108c55f71dbbb31e09191e47c8035d3f01da467
7ce4ee398c091435eefcf4311bc25b0bdc96d22e
refs/heads/master
2021-01-20T07:09:56.217032
2017-05-19T11:46:17
2017-05-19T11:46:17
89,969,174
0
0
null
null
null
null
UTF-8
Java
false
false
312
java
package ph.com.bpi.dao.impl; import org.hibernate.SessionFactory; import ph.com.bpi.dao.T0234DAO; import ph.com.bpi.model.hibernate.T0234; public class T0234DAOImpl extends BaseDAOImpl<T0234> implements T0234DAO{ public T0234DAOImpl(SessionFactory mSessionFactory) { super(mSessionFactory, T0234.class); } }
[ "Christopher Jeriel Sarsonas" ]
Christopher Jeriel Sarsonas
6337662cf1f745816b9fb38d211e5699a2983456
901a771442e79c4930d79d9a9c93b27172805bd0
/core/src/main/java/com/ctrip/xpipe/api/command/RequestResponseCommand.java
47b71eb68aeabd0491f7c7d9fbd5137967e425db
[ "Apache-2.0" ]
permissive
ctripcorp/x-pipe
35c294f63a3a48fcc3072db9a343ce32aebac4f5
1748d47fade98fe9e26a297cfa4a5013ec33ac41
refs/heads/master
2023-08-31T04:46:59.799254
2023-08-22T08:40:05
2023-08-22T08:40:05
54,973,527
1,913
532
Apache-2.0
2023-09-13T09:00:42
2016-03-29T12:22:36
Java
UTF-8
Java
false
false
246
java
package com.ctrip.xpipe.api.command; /** * @author wenchao.meng * * Jul 1, 2016 */ public interface RequestResponseCommand<V> extends Command<V>{ /** * timeout, if <= 0, wait forever * @return */ int getCommandTimeoutMilli(); }
[ "oytmfc@gmail.com" ]
oytmfc@gmail.com
3901d7c940ecd6b20e684a44ab1d5775b9ecaf6b
4e4e8c9f86f2cf5e81f0bc1dd2f88020ddbe08a1
/src/main/java/com/oa/model/User.java
8b8474f92882ff1bd7f9061d7c9da6c0899937e2
[]
no_license
TerryXiao777/weboa
33b3e14860f8687075f6f1736ec09286b8b3e938
a160e4fb9aee17cf2535b4919febfcd12a8edbea
refs/heads/master
2022-12-26T03:23:45.547998
2021-10-30T10:48:55
2021-10-30T10:48:55
247,480,767
0
0
null
2022-12-09T23:15:13
2020-03-15T14:19:27
Java
UTF-8
Java
false
false
1,424
java
package com.oa.model; import java.util.Date; /** * * @author Administrator * @hibernate.class table="T_User" */ public class User { /** * @hibernate.id * generator-class="native" */ private int id; /** * @hibernate.property * unique="true" * not-null="true" */ private String username; /** * @hibernate.property * not-null="true" */ private String password; /** * @hibernate.property */ private Date createTime; /** * @hibernate.property */ private Date expireTime; /** * @hibernate.many-to-one unique="true" */ private Person person; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public Date getExpireTime() { return expireTime; } public void setExpireTime(Date expireTime) { this.expireTime = expireTime; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } }
[ "Administrator@windows10.microdone.cn" ]
Administrator@windows10.microdone.cn
e049c4dbd20fefcc8c8e1c226dc65e54745ea1f8
094e66aff18fd3a93ea24e4f23f5bc4efa5d71d6
/yit-education-user/yit-education-user-common/src/main/java/com/yuu/yit/education/user/common/bean/qo/LecturerQO.java
7b8ac1864914c72fb31722cda0102332c1850d39
[ "MIT", "Apache-2.0" ]
permissive
71yuu/YIT
55b76dbec855b8e67f42a7eb00e9fa8e919ec4cb
53bb7ba8b8e686b2857c1e2812a0f38bd32f57e3
refs/heads/master
2022-09-08T06:51:30.819760
2019-11-29T06:24:19
2019-11-29T06:24:19
216,706,258
0
0
Apache-2.0
2022-09-01T23:14:33
2019-10-22T02:27:22
Java
UTF-8
Java
false
false
1,371
java
package com.yuu.yit.education.user.common.bean.qo; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import lombok.Data; import lombok.experimental.Accessors; /** * 讲师信息 * * @author Yuu */ @Data @Accessors(chain = true) public class LecturerQO implements Serializable { private static final long serialVersionUID = 1L; /** * 当前页 */ private int pageCurrent; /** * 每页记录数 */ private int pageSize; /** * 主键 */ private Long id; /** * 创建时间 */ private Date gmtCreate; /** * 修改时间 */ private Date gmtModified; /** * 状态(1:正常,0:禁用) */ private Integer statusId; /** * 排序 */ private Integer sort; /** * 讲师用户编号 */ private Long lecturerUserNo; /** * 讲师名称 */ private String lecturerName; /** * 讲师手机 */ private String lecturerMobile; /** * 讲师邮箱 */ private String lecturerEmail; /** * 职位 */ private String position; /** * 头像 */ private String headImgUrl; /** * 简介 */ private String introduce; /** * 讲师分成比例 */ private BigDecimal lecturerProportion; }
[ "1225459207@qq.com" ]
1225459207@qq.com
a57d37f120fa6784f3776510b9a8e014054b93b1
3b4dfd78facb813009f360be89f0a6e95762b3a7
/Dart/src/com/jetbrains/lang/dart/ide/runner/server/DartCommandLineRunnerParameters.java
e7d204318105be2333ba22fa69da0d5bb6ea01bf
[]
no_license
tbml/intellij-plugins
591dc88bb60b9718b9f6d85e716a32314ddcf696
86301cabd5c69d8220415aa697eba7dcaaa8cde7
refs/heads/master
2021-01-18T09:21:35.024838
2014-07-18T16:52:14
2014-07-18T16:52:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,586
java
package com.jetbrains.lang.dart.ide.runner.server; import com.intellij.execution.configurations.RuntimeConfigurationError; import com.intellij.openapi.options.ShowSettingsUtil; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.io.FileUtil; import com.intellij.openapi.util.text.StringUtil; import com.intellij.openapi.vfs.LocalFileSystem; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.util.xmlb.annotations.MapAnnotation; import com.jetbrains.lang.dart.DartBundle; import com.jetbrains.lang.dart.DartFileType; import com.jetbrains.lang.dart.sdk.DartConfigurable; import com.jetbrains.lang.dart.sdk.DartSdk; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.LinkedHashMap; import java.util.Map; public class DartCommandLineRunnerParameters implements Cloneable { private @Nullable String myFilePath = null; private @Nullable String myVMOptions = null; private @Nullable String myArguments = null; private @Nullable String myWorkingDirectory = null; private @NotNull Map<String, String> myEnvs = new LinkedHashMap<String, String>(); private boolean myIncludeParentEnvs = true; @Nullable public String getFilePath() { return myFilePath; } public void setFilePath(final @Nullable String filePath) { myFilePath = filePath; } @Nullable public String getVMOptions() { return myVMOptions; } public void setVMOptions(final @Nullable String vmOptions) { myVMOptions = vmOptions; } @Nullable public String getArguments() { return myArguments; } public void setArguments(final @Nullable String arguments) { myArguments = arguments; } @Nullable public String getWorkingDirectory() { return myWorkingDirectory; } public void setWorkingDirectory(final @Nullable String workingDirectory) { myWorkingDirectory = workingDirectory; } @NotNull @MapAnnotation(surroundWithTag = false, surroundKeyWithTag = false, surroundValueWithTag = false) public Map<String, String> getEnvs() { return myEnvs; } public void setEnvs(@SuppressWarnings("NullableProblems") final Map<String, String> envs) { if (envs != null) { // null comes from old projects or if storage corrupted myEnvs = envs; } } public boolean isIncludeParentEnvs() { return myIncludeParentEnvs; } public void setIncludeParentEnvs(final boolean includeParentEnvs) { myIncludeParentEnvs = includeParentEnvs; } @NotNull public VirtualFile getDartFile() throws RuntimeConfigurationError { final String filePath = getFilePath(); if (StringUtil.isEmptyOrSpaces(filePath)) { throw new RuntimeConfigurationError(DartBundle.message("path.to.dart.file.not.set")); } final VirtualFile dartFile = LocalFileSystem.getInstance().findFileByPath(filePath); if (dartFile == null || dartFile.isDirectory()) { throw new RuntimeConfigurationError(DartBundle.message("dart.file.not.found", FileUtil.toSystemDependentName(filePath))); } if (dartFile.getFileType() != DartFileType.INSTANCE) { throw new RuntimeConfigurationError(DartBundle.message("not.a.dart.file", FileUtil.toSystemDependentName(filePath))); } return dartFile; } public void check(final @NotNull Project project) throws RuntimeConfigurationError { // check sdk final DartSdk sdk = DartSdk.getGlobalDartSdk(); if (sdk == null) { throw new RuntimeConfigurationError(DartBundle.message("dart.sdk.is.not.configured"), new Runnable() { public void run() { ShowSettingsUtil.getInstance().showSettingsDialog(project, DartConfigurable.DART_SETTINGS_PAGE_NAME); } }); } // check main dart file getDartFile(); // check working directory final String workDirPath = getWorkingDirectory(); if (!StringUtil.isEmptyOrSpaces(workDirPath)) { final VirtualFile workDir = LocalFileSystem.getInstance().findFileByPath(workDirPath); if (workDir == null || !workDir.isDirectory()) { throw new RuntimeConfigurationError(DartBundle.message("work.dir.does.not.exist", FileUtil.toSystemDependentName(workDirPath))); } } } @Override protected DartCommandLineRunnerParameters clone() { try { final DartCommandLineRunnerParameters clone = (DartCommandLineRunnerParameters)super.clone(); clone.myEnvs = new LinkedHashMap<String, String>(); clone.myEnvs.putAll(myEnvs); return clone; } catch (CloneNotSupportedException e) { throw new RuntimeException(e); } } }
[ "alexander.doroshko@jetbrains.com" ]
alexander.doroshko@jetbrains.com
5df19b03247d80ef0b6eec06e65cd7762704e26e
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project2/src/test/java/org/gradle/test/performance2_3/Test2_300.java
d9a756a1dc29bf572ffead024feebfa6f71d2885
[]
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
288
java
package org.gradle.test.performance2_3; import static org.junit.Assert.*; public class Test2_300 { private final Production2_300 production = new Production2_300("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
e4f9ea44a80bd8424fcab24fbd2eb5cf506d7fe5
c9796a20cf56aa01ecbc2ff3985703b17bfb51fe
/leetcode3/DeletetheMiddleNodeofaLinkedList/MainApp.java
f9ea31c3ebd9bad8ddee208d447edca310319cb1
[]
no_license
iamslash/learntocode
a62329710d36b21f8025961c0ad9b333c10e973a
63faf361cd4eefe0f6f1e50c49ea22577a75ea74
refs/heads/master
2023-08-31T08:20:08.608771
2023-08-31T00:05:06
2023-08-31T00:05:06
52,074,001
7
2
null
null
null
null
UTF-8
Java
false
false
835
java
// Copyright (C) 2022 by iamslash import java.util.*; // s // head: 1 2 // f // // s // head: 1 2 3 // f class ListNode { int val; ListNode next; ListNode() {} ListNode(int val) { this.val = val; } ListNode(int val, ListNode next) { this.val = val; this.next = next; } } // 6ms 43.89% 215MB 23.75% // slow fast // O(N) (1) class Solution { public ListNode deleteMiddle(ListNode head) { if (head.next == null) { return null; } ListNode dummy = new ListNode(0, head); ListNode b = dummy, s = head, f = head; while (f != null && f.next != null) { b = s; s = s.next; f = f.next.next; } b.next = s.next; return head; } }
[ "iamslash@gmail.com" ]
iamslash@gmail.com