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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b6445a528efb7598de77cc06393ed3c227703bd
|
95c49f466673952b465e19a5ee3ae6eff76bee00
|
/src/main/java/com/zhihu/android/mix/viewpager/widget/PageTransformerAdapter.java
|
a70294d37b8b308c0349f166ffe04b3f0388ee41
|
[] |
no_license
|
Phantoms007/zhihuAPK
|
58889c399ae56b16a9160a5f48b807e02c87797e
|
dcdbd103436a187f9c8b4be8f71bdf7813b6d201
|
refs/heads/main
| 2023-01-24T01:34:18.716323
| 2020-11-25T17:14:55
| 2020-11-25T17:14:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,114
|
java
|
package com.zhihu.android.mix.viewpager.widget;
import android.view.View;
import androidx.recyclerview.widget.LinearLayoutManager;
import com.zhihu.android.mix.viewpager.widget.ViewPager2;
import java.util.Locale;
/* renamed from: com.zhihu.android.mix.viewpager.widget.d */
/* compiled from: PageTransformerAdapter */
final class PageTransformerAdapter extends ViewPager2.AbstractC21871e {
/* renamed from: a */
private final LinearLayoutManager f77028a;
/* renamed from: b */
private ViewPager2.AbstractC21876g f77029b;
@Override // com.zhihu.android.mix.viewpager.widget.ViewPager2.AbstractC21871e
/* renamed from: a */
public void mo97813a(int i) {
}
@Override // com.zhihu.android.mix.viewpager.widget.ViewPager2.AbstractC21871e
/* renamed from: b */
public void mo97864b(int i) {
}
PageTransformerAdapter(LinearLayoutManager linearLayoutManager) {
this.f77028a = linearLayoutManager;
}
/* access modifiers changed from: package-private */
/* renamed from: a */
public ViewPager2.AbstractC21876g mo97941a() {
return this.f77029b;
}
/* access modifiers changed from: package-private */
/* renamed from: a */
public void mo97942a(ViewPager2.AbstractC21876g gVar) {
this.f77029b = gVar;
}
@Override // com.zhihu.android.mix.viewpager.widget.ViewPager2.AbstractC21871e
/* renamed from: a */
public void mo97814a(int i, float f, int i2) {
if (this.f77029b != null) {
float f2 = -f;
for (int i3 = 0; i3 < this.f77028a.getChildCount(); i3++) {
View childAt = this.f77028a.getChildAt(i3);
if (childAt != null) {
this.f77029b.mo97925a(childAt, ((float) (this.f77028a.getPosition(childAt) - i)) + f2);
} else {
throw new IllegalStateException(String.format(Locale.US, "LayoutManager returned a null child at pos %d/%d while transforming pages", Integer.valueOf(i3), Integer.valueOf(this.f77028a.getChildCount())));
}
}
}
}
}
|
[
"seasonpplp@qq.com"
] |
seasonpplp@qq.com
|
9a6151429304210621e6918389213dde951bde05
|
c30626d3c82d3ef84e1134b382d8836435f2fe65
|
/src/test/java/io/github/jhipster/application/web/rest/AuditResourceIntTest.java
|
5fa6d1ba49d18a18f142e9a93af6c03acdf4be1c
|
[] |
no_license
|
cedotoljic/jh20180807
|
45f4ddf12b9d1e60887e9ce27babc075eca815a8
|
93657454f43309ecb9f802e4348a0b3e14f1ff8d
|
refs/heads/master
| 2020-03-25T16:23:00.866366
| 2018-08-07T21:19:30
| 2018-08-07T21:19:30
| 143,927,942
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,924
|
java
|
package io.github.jhipster.application.web.rest;
import io.github.jhipster.application.Jh20180807App;
import io.github.jhipster.application.config.audit.AuditEventConverter;
import io.github.jhipster.application.domain.PersistentAuditEvent;
import io.github.jhipster.application.repository.PersistenceAuditEventRepository;
import io.github.jhipster.application.service.AuditEventService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.MockitoAnnotations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.web.PageableHandlerMethodArgumentResolver;
import org.springframework.format.support.FormattingConversionService;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import java.time.Instant;
import static org.hamcrest.Matchers.hasItem;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
/**
* Test class for the AuditResource REST controller.
*
* @see AuditResource
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Jh20180807App.class)
public class AuditResourceIntTest {
private static final String SAMPLE_PRINCIPAL = "SAMPLE_PRINCIPAL";
private static final String SAMPLE_TYPE = "SAMPLE_TYPE";
private static final Instant SAMPLE_TIMESTAMP = Instant.parse("2015-08-04T10:11:30Z");
private static final long SECONDS_PER_DAY = 60 * 60 * 24;
@Autowired
private PersistenceAuditEventRepository auditEventRepository;
@Autowired
private AuditEventConverter auditEventConverter;
@Autowired
private MappingJackson2HttpMessageConverter jacksonMessageConverter;
@Autowired
private FormattingConversionService formattingConversionService;
@Autowired
private PageableHandlerMethodArgumentResolver pageableArgumentResolver;
private PersistentAuditEvent auditEvent;
private MockMvc restAuditMockMvc;
@Before
public void setup() {
MockitoAnnotations.initMocks(this);
AuditEventService auditEventService =
new AuditEventService(auditEventRepository, auditEventConverter);
AuditResource auditResource = new AuditResource(auditEventService);
this.restAuditMockMvc = MockMvcBuilders.standaloneSetup(auditResource)
.setCustomArgumentResolvers(pageableArgumentResolver)
.setConversionService(formattingConversionService)
.setMessageConverters(jacksonMessageConverter).build();
}
@Before
public void initTest() {
auditEventRepository.deleteAll();
auditEvent = new PersistentAuditEvent();
auditEvent.setAuditEventType(SAMPLE_TYPE);
auditEvent.setPrincipal(SAMPLE_PRINCIPAL);
auditEvent.setAuditEventDate(SAMPLE_TIMESTAMP);
}
@Test
public void getAllAudits() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Get all the audits
restAuditMockMvc.perform(get("/management/audits"))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.[*].principal").value(hasItem(SAMPLE_PRINCIPAL)));
}
@Test
public void getAudit() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Get the audit
restAuditMockMvc.perform(get("/management/audits/{id}", auditEvent.getId()))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.principal").value(SAMPLE_PRINCIPAL));
}
@Test
public void getAuditsByDate() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Generate dates for selecting audits by date, making sure the period will contain the audit
String fromDate = SAMPLE_TIMESTAMP.minusSeconds(SECONDS_PER_DAY).toString().substring(0, 10);
String toDate = SAMPLE_TIMESTAMP.plusSeconds(SECONDS_PER_DAY).toString().substring(0, 10);
// Get the audit
restAuditMockMvc.perform(get("/management/audits?fromDate="+fromDate+"&toDate="+toDate))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(jsonPath("$.[*].principal").value(hasItem(SAMPLE_PRINCIPAL)));
}
@Test
public void getNonExistingAuditsByDate() throws Exception {
// Initialize the database
auditEventRepository.save(auditEvent);
// Generate dates for selecting audits by date, making sure the period will not contain the sample audit
String fromDate = SAMPLE_TIMESTAMP.minusSeconds(2*SECONDS_PER_DAY).toString().substring(0, 10);
String toDate = SAMPLE_TIMESTAMP.minusSeconds(SECONDS_PER_DAY).toString().substring(0, 10);
// Query audits but expect no results
restAuditMockMvc.perform(get("/management/audits?fromDate=" + fromDate + "&toDate=" + toDate))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))
.andExpect(header().string("X-Total-Count", "0"));
}
@Test
public void getNonExistingAudit() throws Exception {
// Get the audit
restAuditMockMvc.perform(get("/management/audits/{id}", Long.MAX_VALUE))
.andExpect(status().isNotFound());
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
1183a966ed810e0a43de156a93f49944241a211d
|
2f4a058ab684068be5af77fea0bf07665b675ac0
|
/app/com/facebook/katana/activity/findfriends/FriendCandidatesAdapter$FriendCandidateHolder.java
|
815a774fc029f8b6a05d41e5bce1f85dc1767487
|
[] |
no_license
|
cengizgoren/facebook_apk_crack
|
ee812a57c746df3c28fb1f9263ae77190f08d8d2
|
a112d30542b9f0bfcf17de0b3a09c6e6cfe1273b
|
refs/heads/master
| 2021-05-26T14:44:04.092474
| 2013-01-16T08:39:00
| 2013-01-16T08:39:00
| 8,321,708
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 494
|
java
|
package com.facebook.katana.activity.findfriends;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
class FriendCandidatesAdapter$FriendCandidateHolder
{
ImageView a;
TextView b;
View c;
View d;
View e;
}
/* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar
* Qualified Name: com.facebook.katana.activity.findfriends.FriendCandidatesAdapter.FriendCandidateHolder
* JD-Core Version: 0.6.0
*/
|
[
"macluz@msn.com"
] |
macluz@msn.com
|
8aba4ffb4f1b484f7f0aa70133787e3f14be7a2b
|
df290d57e06afa36cf9b33494b21ad3dcd62de8f
|
/pivo-dao/src/main/java/pe/com/tintegro/mapper/ConstanteFisiologicaMapper.java
|
a708d015dbcc4b046e50517f91e69883741ff4f9
|
[] |
no_license
|
vgaray/sic-tintegro
|
ac766f28f0c8769fe8efb63498bc2f4e5ecf1500
|
ddb62bdaafe1d6d136c32a758e51eca92dcf365b
|
refs/heads/master
| 2022-12-21T15:14:06.168702
| 2019-09-30T02:09:35
| 2019-09-30T02:09:35
| 211,740,401
| 0
| 0
| null | 2022-12-16T07:46:49
| 2019-09-29T23:40:44
|
Java
|
UTF-8
|
Java
| false
| false
| 543
|
java
|
package pe.com.tintegro.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import pe.com.tintegro.dominio.ConstanteFisiologica;
import pe.com.tintegro.dominio.HistoriaClinica;
import pe.com.tintegro.dominio.HistoriaClinicaService;
import pe.com.tintegro.dto.response.CRUDResponse;
public interface ConstanteFisiologicaMapper {
public List<ConstanteFisiologica> listarConstanteFisiologica(@Param("p_nu_chip") String pNuChip,
@Param("p_no_pass") String pNoPass, @Param("p_id_instancia") Integer pIdInstancia);
}
|
[
"victorgaray1296.vg@gmail.com"
] |
victorgaray1296.vg@gmail.com
|
7d0941eed9e038af336e85b26d3b2a2e3252382d
|
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
|
/data_defect4j/preprossed_method_corpus/Time/3/org/joda/time/chrono/BasicWeekyearDateTimeField_remainder_243.java
|
db5c838e3de24d496ea2957cf129b15400c85567
|
[] |
no_license
|
hvdthong/NetML
|
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
|
9bb103da21327912e5a29cbf9be9ff4d058731a5
|
refs/heads/master
| 2021-06-30T15:03:52.618255
| 2020-10-07T01:58:48
| 2020-10-07T01:58:48
| 150,383,588
| 1
| 1
| null | 2018-09-26T07:08:45
| 2018-09-26T07:08:44
| null |
UTF-8
|
Java
| false
| false
| 591
|
java
|
org joda time chrono
time calcul week weekyear compon time
author gui allard
author stephen colebourn
author brian neill o'neil
refactor weekyear date time field gjweekyeardatetimefield
basic weekyear date time field basicweekyeardatetimefield imprecis date time field imprecisedatetimefield
remaind instant
instant round floor roundfloor instant
|
[
"hvdthong@gmail.com"
] |
hvdthong@gmail.com
|
041f83c07b1440e82c0b1cee89a5bdbf8ab9d2f6
|
97fd02f71b45aa235f917e79dd68b61c62b56c1c
|
/src/main/java/com/tencentcloudapi/wedata/v20210820/models/SubmitWorkflowRequest.java
|
8133c65c0333fa16bb77fa2f195733fae77d7943
|
[
"Apache-2.0"
] |
permissive
|
TencentCloud/tencentcloud-sdk-java
|
7df922f7c5826732e35edeab3320035e0cdfba05
|
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
|
refs/heads/master
| 2023-09-04T10:51:57.854153
| 2023-09-01T03:21:09
| 2023-09-01T03:21:09
| 129,837,505
| 537
| 317
|
Apache-2.0
| 2023-09-13T02:42:03
| 2018-04-17T02:58:16
|
Java
|
UTF-8
|
Java
| false
| false
| 4,066
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.wedata.v20210820.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class SubmitWorkflowRequest extends AbstractModel{
/**
* 项目Id
*/
@SerializedName("ProjectId")
@Expose
private String ProjectId;
/**
* 工作流id
*/
@SerializedName("WorkflowId")
@Expose
private String WorkflowId;
/**
* 提交的版本备注
*/
@SerializedName("VersionRemark")
@Expose
private String VersionRemark;
/**
* 是否启动调度
*/
@SerializedName("StartScheduling")
@Expose
private Boolean StartScheduling;
/**
* Get 项目Id
* @return ProjectId 项目Id
*/
public String getProjectId() {
return this.ProjectId;
}
/**
* Set 项目Id
* @param ProjectId 项目Id
*/
public void setProjectId(String ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 工作流id
* @return WorkflowId 工作流id
*/
public String getWorkflowId() {
return this.WorkflowId;
}
/**
* Set 工作流id
* @param WorkflowId 工作流id
*/
public void setWorkflowId(String WorkflowId) {
this.WorkflowId = WorkflowId;
}
/**
* Get 提交的版本备注
* @return VersionRemark 提交的版本备注
*/
public String getVersionRemark() {
return this.VersionRemark;
}
/**
* Set 提交的版本备注
* @param VersionRemark 提交的版本备注
*/
public void setVersionRemark(String VersionRemark) {
this.VersionRemark = VersionRemark;
}
/**
* Get 是否启动调度
* @return StartScheduling 是否启动调度
*/
public Boolean getStartScheduling() {
return this.StartScheduling;
}
/**
* Set 是否启动调度
* @param StartScheduling 是否启动调度
*/
public void setStartScheduling(Boolean StartScheduling) {
this.StartScheduling = StartScheduling;
}
public SubmitWorkflowRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public SubmitWorkflowRequest(SubmitWorkflowRequest source) {
if (source.ProjectId != null) {
this.ProjectId = new String(source.ProjectId);
}
if (source.WorkflowId != null) {
this.WorkflowId = new String(source.WorkflowId);
}
if (source.VersionRemark != null) {
this.VersionRemark = new String(source.VersionRemark);
}
if (source.StartScheduling != null) {
this.StartScheduling = new Boolean(source.StartScheduling);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "WorkflowId", this.WorkflowId);
this.setParamSimple(map, prefix + "VersionRemark", this.VersionRemark);
this.setParamSimple(map, prefix + "StartScheduling", this.StartScheduling);
}
}
|
[
"tencentcloudapi@tencent.com"
] |
tencentcloudapi@tencent.com
|
1e8399cc551e58f2982d88fedfbc7d07e64dca84
|
189e79aa33d36b5b0021da91db04404011a2bda6
|
/src/main/java/com/rd/model/data/ArenaPersonModelData.java
|
56d302ad5f0c6c465e75896b6765a535e11e407c
|
[] |
no_license
|
daxingyou/rdserver
|
a1491a8fb95e6832a00cebde12120dbdbc03a9be
|
db2d8e961f606fdb4fb125930b647ac1570733bf
|
refs/heads/master
| 2022-01-27T20:08:03.190627
| 2018-07-12T12:18:38
| 2018-07-12T12:18:38
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,089
|
java
|
package com.rd.model.data;
import com.rd.bean.drop.DropData;
import java.util.List;
public class ArenaPersonModelData {
private byte id;
private byte min;
private byte max;
private List<DropData> rewards;
private String title;
private String content;
public byte getId() {
return id;
}
public void setId(byte id) {
this.id = id;
}
public byte getMin() {
return min;
}
public void setMin(byte min) {
this.min = min;
}
public byte getMax() {
return max;
}
public void setMax(byte max) {
this.max = max;
}
public List<DropData> getRewards() {
return rewards;
}
public void setRewards(List<DropData> rewards) {
this.rewards = rewards;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
|
[
"hotlala8088@outlook.com"
] |
hotlala8088@outlook.com
|
1f86fa1285a04c5c32d1c896cd497fb3cdfdff18
|
3dcbf4da0aedbcaebaa902b96dd149221bb8fb5f
|
/mbb-platform/pdca/mbb-platform/src/main/java/com/mbb/mbbplatform/repos/InventoryItemRepository.java
|
c794b27be7beabeb95236794c92b9b8f183a460f
|
[] |
no_license
|
bharathichikkala/master
|
5d4c594aa8d9fd44d36c58464c9705998ea1a21f
|
b04c0d2eaf829416232686e63352bd5a88c484eb
|
refs/heads/master
| 2023-01-21T13:52:10.502961
| 2019-09-30T08:36:37
| 2019-09-30T08:36:37
| 132,092,849
| 1
| 1
| null | 2023-01-19T20:28:47
| 2018-05-04T05:41:29
|
JavaScript
|
UTF-8
|
Java
| false
| false
| 2,397
|
java
|
package com.mbb.mbbplatform.repos;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import javax.validation.constraints.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.mbb.mbbplatform.domain.Facility;
import com.mbb.mbbplatform.domain.Inventory;
import com.mbb.mbbplatform.domain.InventoryItem;
import com.mbb.mbbplatform.domain.InventoryItemStatus;
import com.mbb.mbbplatform.domain.PoVendor;
import com.mbb.mbbplatform.domain.TransferInventory;
public interface InventoryItemRepository extends JpaRepository<InventoryItem, Long>{
Collection<InventoryItem> findByInventoryId(Inventory inventory);
InventoryItem findByBarcode(@NotNull String barcode);
Collection<InventoryItem> findByItemStatusId(Optional<InventoryItemStatus> inventoryItemStatus);
Collection<InventoryItem> findByFacilityId(Facility facilityId);
Collection<InventoryItem> findByTransferInventoryId(TransferInventory id );
Collection<InventoryItem> findByPoVendorId(PoVendor poVendor);
InventoryItem findBySerialNumber(@NotNull String serialNumber);
@Query(value = "SELECT * FROM mbbinventory.inventoryitem WHERE created_time >= ?1 AND created_time <= ?2 ", nativeQuery = true)
Collection<InventoryItem> findByStartEndDates(String startDate, String endDate);
@Query(value = "SELECT * FROM mbbinventory.inventoryitem WHERE created_time >= ?1 AND created_time <= ?2 AND inventory_id=?3", nativeQuery = true)
Collection<InventoryItem> findByInventoryIdAndDates(String startdate, String endDate, Inventory inventory);
Collection<InventoryItem> findByInventoryIdAndItemStatusId(Inventory inventory, InventoryItemStatus inventoryItemStatus);
List<InventoryItem> findAllByInventoryId(Inventory inventory);
Collection<InventoryItem> findByTransferInventoryIdAndScanned(TransferInventory transferInventory, boolean b);
@Query(value = "SELECT * FROM mbbinventory.inventoryitem WHERE created_time >= ?1 AND created_time <= ?2 AND inventory_id=?3 AND facility_id in (4,5,7) ", nativeQuery = true)
Collection<InventoryItem> findByInventoryIdAndDatesAndRentalFacility(String startdate, String endDate, Inventory inventory);
@Query(value = "SELECT * FROM mbbinventory.inventoryitem WHERE facility_id in (4,5,7) ", nativeQuery = true)
List<InventoryItem> findByFacilityIdRental();
}
|
[
"bchikkala@metanoiasolutions.net"
] |
bchikkala@metanoiasolutions.net
|
c0411d3ad4c50e067d5e393dabd15cb01c122756
|
9f31538e7faf2530ab6779a1410f0ec1db5a37c3
|
/docktest/src/TextFileToPDF.java
|
48881e97fcb809af896c50a5c2656eaae111eca2
|
[] |
no_license
|
Aishuky11123/NetBeansProjects
|
79d48e19e0f511262c359079e48803808a96065f
|
306681c8db5333574967f856d5579be1beb19791
|
refs/heads/master
| 2021-05-28T16:08:58.810329
| 2015-04-04T15:53:40
| 2015-04-04T15:53:40
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,826
|
java
|
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.PdfWriter;
import java.awt.FileDialog;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.io.*;
import javax.swing.*;
import java.awt.event.*;
public class TextFileToPDF extends JFrame implements ActionListener
{
String source;
String destination;
String fd1=null;
String fd2=null;
JFrame f;
JLabel l;
JTextField t;
JButton b1,b2;
FileDialog fd;
Toolkit tk = Toolkit.getDefaultToolkit();
int w=(int) tk.getScreenSize().getWidth();
int h=(int) tk.getScreenSize().getHeight();
TextFileToPDF()
{
try
{
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception e) { }
f=new JFrame("Text to PDF");
b1=new JButton("Source File");
b1.addActionListener(this);
b2=new JButton("Convert");
b2.addActionListener(this);
l=new JLabel("Enter the output file name:");
t=new JTextField(10);
JPanel p=new JPanel();
JPanel p1=new JPanel();
p.add(b1);
p1.add(l);
p1.add(t);
p1.add(b2);
f.setLayout(new GridLayout(2,1));
f.add(p);
f.add(p1);
f.addWindowListener(new WindowAdapter()
{ public void windowClosing(WindowEvent e) { f.setVisible(false); } });
f.setLocation((w/3), h/3);
f.pack();
f.setVisible(true);
}
public boolean check(int a)
{
File directory = new File(fd1);
File[] files = directory.listFiles();
for (int index = 0; index < files.length; index++)
{
try
{
File frav=new File(files[index].toString());
if(frav.isFile())
{
System.out.println(destination +" "+frav.getAbsolutePath());
if((frav.getAbsolutePath().equalsIgnoreCase(destination))&&(a==0))
{
JOptionPane.showMessageDialog(null,"Please enter your choice filename as same file is already present in the directory","Alert",JOptionPane.INFORMATION_MESSAGE);
return false;
}
else
if((frav.getAbsolutePath().equalsIgnoreCase(destination))&&(a==1))
{
JOptionPane.showMessageDialog(null,"Please choose another filename as same file is already present in the directory","Alert",JOptionPane.INFORMATION_MESSAGE);
return false;
}
}
}catch(Exception e){}
}
return true;
}
void textpdf()
{
String result=null;
BufferedReader input = null;
Document output = null;
String[] a=new String[2];
a[0]=source;
a[1]=destination;
try
{
input = new BufferedReader (new FileReader(a[0]));
output = new Document(PageSize.NOTE, 40, 40, 40, 40);
PdfWriter.getInstance(output, new FileOutputStream (a[1]));
output.open();
output.addAuthor("Ravjot");
output.addSubject(a[0]);
output.addTitle(a[0]);
String line = "";
while(null != (line = input.readLine())) {
if(line.equalsIgnoreCase(""))
{
Paragraph p = new Paragraph(" ");
p.setAlignment(Element.ALIGN_CENTER);
output.add(p);
}
else
{
Paragraph p = new Paragraph(line);
p.setAlignment(Element.ALIGN_JUSTIFIED);
output.add(p);
}
}
result="Done. After Exiting this Alert window you will see your converted file !! Have Fun";
output.close();
input.close();
}
catch (Exception e) {
result=e.getMessage();
}
JOptionPane.showMessageDialog(null,result,"Alert",JOptionPane.INFORMATION_MESSAGE);
if(result.equalsIgnoreCase("Done. After Exiting this Alert window you will see your converted file !! Have Fun"))
{
try {
Process p = Runtime.getRuntime().exec("rundll32" + " " + "url.dll,FileProtocolHandler" + " " + destination);
} catch (IOException ex) { }
}
}
/*public static void main(String rt[])
{
new TextFileToPDF();
}*/
public void actionPerformed(ActionEvent e)
{
int flag=-1;
if((e.getActionCommand()).equals("Source File"))
{
fd=new FileDialog(TextFileToPDF.this,"Select Text File",FileDialog.LOAD);
fd.show();
fd.addWindowListener(new WindowAdapter()
{ public void windowClosing(WindowEvent e) { fd.setVisible(false); } });
source=fd.getDirectory()+fd.getFile();
fd1=fd.getDirectory();
if(source.endsWith(".txt"))
{
flag=0;
}
else
if((source.equalsIgnoreCase(""))||(source.equalsIgnoreCase("nullnull")))
{
}
else
if((!source.endsWith(".txt")))
{
JOptionPane.showMessageDialog(null,"Only .txt files are allowed","Alert",JOptionPane.INFORMATION_MESSAGE);
}
}
else
{
if(source==null)
{
JOptionPane.showMessageDialog(null,"Please Select the Source File","Alert",JOptionPane.INFORMATION_MESSAGE);
}
else
{
if((t.getText().equalsIgnoreCase(""))||(t.getText().equalsIgnoreCase(null)))
{
String s=source.substring(source.lastIndexOf("\\")+1,source.lastIndexOf("."));
destination=fd1+s+".pdf";
if(check(0))
{
textpdf();
}
}
else
{
if(t.getText().endsWith(".pdf"))
{
destination=fd1+t.getText();
if(check(1))
{
textpdf();
}
}
else
{
destination=fd1+t.getText()+".pdf";
if(check(1))
{
textpdf();
}
}
}
}
}
}
}
|
[
"ravjot28@gmail.com"
] |
ravjot28@gmail.com
|
0a00edcd6cccbd413081299f42dbce8e4a9e8962
|
4e9c06ff59fe91f0f69cb3dd80a128f466885aea
|
/src/android/support/design/widget/SwipeDismissBehavior$ˊ.java
|
ac8cf2c554c51c7c06278376c836ba2ae35aa690
|
[] |
no_license
|
reverseengineeringer/com.eclipsim.gpsstatus2
|
5ab9959cc3280d2dc96f2247c1263d14c893fc93
|
800552a53c11742c6889836a25b688d43ae68c2e
|
refs/heads/master
| 2021-01-17T07:26:14.357187
| 2016-07-21T03:33:07
| 2016-07-21T03:33:07
| 63,834,134
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 829
|
java
|
package android.support.design.widget;
import android.view.View;
import o.ʕ;
import o.ᓱ;
public final class SwipeDismissBehavior$ˊ
implements Runnable
{
private final View ˊ;
private final boolean Ἱ;
public SwipeDismissBehavior$ˊ(SwipeDismissBehavior paramSwipeDismissBehavior, View paramView, boolean paramBoolean)
{
ˊ = paramView;
Ἱ = paramBoolean;
}
public final void run()
{
if ((SwipeDismissBehavior.ˋ(Ἰ) != null) && (SwipeDismissBehavior.ˋ(Ἰ).ʟ()))
{
ᓱ.ˊ(ˊ, this);
return;
}
if ((Ἱ) && (SwipeDismissBehavior.ˊ(Ἰ) != null)) {
SwipeDismissBehavior.ˊ(Ἰ).ι(ˊ);
}
}
}
/* Location:
* Qualified Name: android.support.design.widget.SwipeDismissBehavior.ˊ
* Java Class Version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|
[
"reverseengineeringer@hackeradmin.com"
] |
reverseengineeringer@hackeradmin.com
|
cae80afcde93614e3b159e33de845b4f4314f027
|
0ed8aa61aa432e154f84584726bbf3196fa3fa9a
|
/sampleapplication1/src/main/java/com/fastcode/sampleapplication1/domain/core/authorization/tokenverification/TokenverificationEntity.java
|
0cf89e1dff9c1d4905df28bf49588d8b2699f5f9
|
[] |
no_license
|
fastcoderepos/kavitakalidindi-sampleApplication-1
|
c850f3e2b9a10d7b62cccdc4c01b360561f70362
|
2c28f93eed3f908ee85b0325b6237d5ba187678f
|
refs/heads/master
| 2023-02-13T16:43:41.577229
| 2021-01-07T21:15:39
| 2021-01-07T21:15:39
| 327,715,375
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,223
|
java
|
package com.fastcode.sampleapplication1.domain.core.authorization.tokenverification;
import com.fastcode.sampleapplication1.domain.core.abstractentity.AbstractEntity;
import com.fastcode.sampleapplication1.domain.core.authorization.user.UserEntity;
import java.time.*;
import java.util.Date;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Entity
@Table(name = "tokenverification")
@IdClass(TokenverificationId.class)
@Getter
@Setter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@NoArgsConstructor
public class TokenverificationEntity extends AbstractEntity {
@Basic
@Column(name = "expiration_time", nullable = true)
private Date expirationTime;
@Id
@EqualsAndHashCode.Include
@Column(name = "token_type", nullable = false, length = 256)
private String tokenType;
@Id
@EqualsAndHashCode.Include
@Column(name = "user_id", nullable = false)
private Long userId;
@Basic
@Column(name = "token", nullable = true, length = 512)
private String token;
@ManyToOne
@JoinColumn(name = "user_id", insertable = false, updatable = false)
private UserEntity user;
}
|
[
"info@nfinityllc.com"
] |
info@nfinityllc.com
|
77343eaad585e904159bf358388a352caf6c6563
|
d50a568400e95bbedfebcbeaa60aa3c959dc9277
|
/springxml/src/main/java/com/company/springxml/SonySpeaker.java
|
c4de0a5d2544d4e4645c840b3eadac893a5ef874
|
[] |
no_license
|
tjdwns631/springxml
|
3d7db8c5bfa4f017aa358da61e1e359df687f2b2
|
5bf7c7945aac2b7f96035cdaceb5f0eae7469a8c
|
refs/heads/master
| 2023-02-21T19:38:08.502825
| 2021-01-27T08:45:07
| 2021-01-27T08:45:07
| 333,356,932
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 375
|
java
|
package com.company.springxml;
import org.springframework.stereotype.Component;
@Component
public class SonySpeaker implements Speaker {
public SonySpeaker(){
System.out.println("SonySpeaker 생성");
}
public void volumeUp(){
System.out.println("SonySpeaker 소리 올림");
}
public void volumeDown(){
System.out.println("SonySpeaker 소리 내림");
}
}
|
[
"you@example.com"
] |
you@example.com
|
74b761ba71971480e35bd868ecaae4159e095cbf
|
516fb367430d4c1393f4cd726242618eca862bda
|
/sources/com/google/android/gms/internal/ads/zzgc.java
|
b313c3b3d9297b3521dd07e610f0ddc4f051dd24
|
[] |
no_license
|
cmFodWx5YWRhdjEyMTA5/Gaana2
|
75d6d6788e2dac9302cff206a093870e1602921d
|
8531673a5615bd9183c9a0466325d0270b8a8895
|
refs/heads/master
| 2020-07-22T15:46:54.149313
| 2019-06-19T16:11:11
| 2019-06-19T16:11:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,975
|
java
|
package com.google.android.gms.internal.ads;
public abstract class zzgc {
public static final zzgc zzaal = new zzgd();
public abstract zzge zza(int i, zzge zzge, boolean z);
public abstract zzgf zza(int i, zzgf zzgf, boolean z, long j);
public abstract int zzc(Object obj);
public abstract int zzck();
public abstract int zzcl();
public final boolean isEmpty() {
return zzck() == 0;
}
private final zzgf zza(int i, zzgf zzgf) {
return zza(i, zzgf, false, 0);
}
/* JADX WARNING: Missing block: B:7:0x001c, code skipped:
if ((zzck() - 1) == 0) goto L_0x001e;
*/
public final int zza(int r3, com.google.android.gms.internal.ads.zzge r4, com.google.android.gms.internal.ads.zzgf r5, int r6) {
/*
r2 = this;
r0 = 0;
r2.zza(r3, r4, r0);
r4 = r2.zza(r0, r5);
r4 = r4.zzaav;
r1 = 1;
if (r4 != r3) goto L_0x002f;
L_0x000d:
r3 = -1;
switch(r6) {
case 0: goto L_0x0020;
case 1: goto L_0x001e;
case 2: goto L_0x0017;
default: goto L_0x0011;
};
L_0x0011:
r3 = new java.lang.IllegalStateException;
r3.<init>();
throw r3;
L_0x0017:
r4 = r2.zzck();
r4 = r4 - r1;
if (r4 != 0) goto L_0x0028;
L_0x001e:
r1 = r0;
goto L_0x0028;
L_0x0020:
r4 = r2.zzck();
r4 = r4 - r1;
if (r4 != 0) goto L_0x0028;
L_0x0027:
r1 = r3;
L_0x0028:
if (r1 != r3) goto L_0x002b;
L_0x002a:
return r3;
L_0x002b:
r2.zza(r1, r5);
return r0;
L_0x002f:
r3 = r3 + r1;
return r3;
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.ads.zzgc.zza(int, com.google.android.gms.internal.ads.zzge, com.google.android.gms.internal.ads.zzgf, int):int");
}
}
|
[
"master@master.com"
] |
master@master.com
|
dd4d27b5ab833f84de115a7d22e170d09d11adbd
|
75950d61f2e7517f3fe4c32f0109b203d41466bf
|
/modules/tags/fabric3-modules-parent-pom-1.2/kernel/impl/fabric3-introspection-xml/src/main/java/org/fabric3/introspection/xml/LoaderRegistryImpl.java
|
1fd63980022b4892d89271723ef9f1792d89c82a
|
[] |
no_license
|
codehaus/fabric3
|
3677d558dca066fb58845db5b0ad73d951acf880
|
491ff9ddaff6cb47cbb4452e4ddbf715314cd340
|
refs/heads/master
| 2023-07-20T00:34:33.992727
| 2012-10-31T16:32:19
| 2012-10-31T16:32:19
| 36,338,853
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,349
|
java
|
/*
* Fabric3
* Copyright (c) 2009 Metaform Systems
*
* Fabric3 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version, with the
* following exception:
*
* Linking this software statically or dynamically with other
* modules is making a combined work based on this software.
* Thus, the terms and conditions of the GNU General Public
* License cover the whole combination.
*
* As a special exception, the copyright holders of this software
* give you permission to link this software with independent
* modules to produce an executable, regardless of the license
* terms of these independent modules, and to copy and distribute
* the resulting executable under terms of your choice, provided
* that you also meet, for each linked independent module, the
* terms and conditions of the license of that module. An
* independent module is a module which is not derived from or
* based on this software. If you modify this software, you may
* extend this exception to your version of the software, but
* you are not obligated to do so. If you do not wish to do so,
* delete this exception statement from your version.
*
* Fabric3 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the
* GNU General Public License along with Fabric3.
* If not, see <http://www.gnu.org/licenses/>.
*
* ----------------------------------------------------
*
* Portions originally based on Apache Tuscany 2007
* licensed under the Apache 2.0 license.
*
*/
package org.fabric3.introspection.xml;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import javax.xml.namespace.QName;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import org.osoa.sca.annotations.EagerInit;
import org.osoa.sca.annotations.Reference;
import org.fabric3.spi.introspection.IntrospectionContext;
import org.fabric3.spi.introspection.xml.LoaderException;
import org.fabric3.spi.introspection.xml.LoaderRegistry;
import org.fabric3.spi.introspection.xml.TypeLoader;
import org.fabric3.spi.introspection.xml.UnrecognizedElementException;
import org.fabric3.spi.xml.XMLFactory;
/**
* The default implementation of a loader registry
*
* @version $Rev$ $Date$
*/
@EagerInit
public class LoaderRegistryImpl implements LoaderRegistry {
private Monitor monitor;
private final XMLInputFactory xmlFactory;
private Map<QName, TypeLoader<?>> mappedLoaders;
private final Map<QName, TypeLoader<?>> loaders = new HashMap<QName, TypeLoader<?>>();
public LoaderRegistryImpl(@org.fabric3.api.annotation.Monitor Monitor monitor, @Reference XMLFactory factory) {
this.monitor = monitor;
this.xmlFactory = factory.newInputFactoryInstance();
}
@Reference(required = false)
public void setLoaders(Map<QName, TypeLoader<?>> mappedLoaders) {
this.mappedLoaders = mappedLoaders;
}
public void registerLoader(QName element, TypeLoader<?> loader) {
if (loaders.containsKey(element)) {
throw new IllegalStateException("Loader already registered for " + element);
}
monitor.registeringLoader(element);
loaders.put(element, loader);
}
public void unregisterLoader(QName element) {
monitor.unregisteringLoader(element);
loaders.remove(element);
}
public <O> O load(XMLStreamReader reader, Class<O> type, IntrospectionContext introspectionContext)
throws XMLStreamException, UnrecognizedElementException {
QName name = reader.getName();
monitor.elementLoad(name);
TypeLoader<?> loader = loaders.get(name);
if (loader == null) {
loader = mappedLoaders.get(name);
}
if (loader == null) {
throw new UnrecognizedElementException(reader);
}
return type.cast(loader.load(reader, introspectionContext));
}
public <O> O load(URL url, Class<O> type, IntrospectionContext ctx) throws LoaderException {
InputStream stream;
try {
stream = url.openStream();
} catch (IOException e) {
throw new LoaderException("Invalid URL: " + url.toString(), e);
}
try {
try {
return load(url, stream, type, ctx);
} catch (XMLStreamException e) {
throw new LoaderException("Invalid URL: " + url.toString(), e);
}
} finally {
try {
stream.close();
} catch (IOException e) {
// ignore
}
}
}
private <O> O load(URL url, InputStream stream, Class<O> type, IntrospectionContext ctx) throws XMLStreamException, UnrecognizedElementException {
XMLStreamReader reader;
reader = xmlFactory.createXMLStreamReader(url.toString(), stream);
try {
reader.nextTag();
return load(reader, type, ctx);
} finally {
if (reader != null) {
try {
reader.close();
} catch (XMLStreamException e) {
// ignore
}
}
}
}
public static interface Monitor {
/**
* Event emitted when a StAX element loader is registered.
*
* @param xmlType the QName of the element the loader will handle
*/
void registeringLoader(QName xmlType);
/**
* Event emitted when a StAX element loader is unregistered.
*
* @param xmlType the QName of the element the loader will handle
*/
void unregisteringLoader(QName xmlType);
/**
* Event emitted when a request is made to load an element.
*
* @param xmlType the QName of the element that should be loaded
*/
void elementLoad(QName xmlType);
}
}
|
[
"jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf"
] |
jmarino@83866bfc-822f-0410-aa35-bd5043b85eaf
|
c25bff84e6a5029b3a485834e080857d76f04372
|
7fd1a21e414d96964ec86c8107bf25e210b40d34
|
/Bwagner/greenfoot/scenarios/FlappyBird8/StartUpScreen.java
|
9d94ace768a47b240df434a591a92dac664d15e4
|
[] |
no_license
|
HebronHS/HebronHS.github.io
|
7b58575003ad09931616c5f3de60b780244129a5
|
f6ae8a8887f821a501814f96f9ac4f02a3ecc355
|
refs/heads/master
| 2023-07-04T18:13:39.146975
| 2021-08-19T14:23:10
| 2021-08-19T14:23:10
| 305,490,650
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 861
|
java
|
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class StartUpScreen here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class StartUpScreen extends World
{
StartButton button;
/**
* Constructor for objects of class StartUpScreen.
*
*/
public StartUpScreen()
{
super(695, 400, 1);
Title title = new Title();
addObject(title, 348, 100);
button = new StartButton();
addObject(button, 348, 200);
getBackground().setColor(new Color(84,204,218)); // baby blue
getBackground().fill();
}
public void act()
{
if(Greenfoot.mouseClicked(button))
{
Greenfoot.setWorld(new FlappyWorld());
}
}
}
|
[
"sm10095178@localhost.localdomain"
] |
sm10095178@localhost.localdomain
|
adc1cbec77301a2e38c7b0eb668a6b76f916f657
|
65e5dd0bd32e40aba013e2140c73b93112e89c42
|
/api/ebayAPI/src/main/java/com/ebay/soap/eBLBaseComponents/GetWantItNowPostResponseType.java
|
1b3c661404b1f1a2569e2c86d2bdbb6d3f1e928b
|
[] |
no_license
|
vancezhao/mocha
|
732fb271da41ae3d897f9edba99f09f54924f93f
|
1192a768509ba82eadfaaffc4e91df5ebac375b4
|
refs/heads/master
| 2016-09-05T17:19:03.251590
| 2013-12-08T11:47:36
| 2013-12-08T11:47:36
| 15,303,645
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,017
|
java
|
package com.ebay.soap.eBLBaseComponents;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Contains the Want It Now post data returned by the call. The data for the
* specified post listing is returned in a WantItNowPostType object.
*
*
* <p>Java class for GetWantItNowPostResponseType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="GetWantItNowPostResponseType">
* <complexContent>
* <extension base="{urn:ebay:apis:eBLBaseComponents}AbstractResponseType">
* <sequence>
* <element name="WantItNowPost" type="{urn:ebay:apis:eBLBaseComponents}WantItNowPostType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetWantItNowPostResponseType", propOrder = {
"wantItNowPost"
})
public class GetWantItNowPostResponseType
extends AbstractResponseType
implements Serializable
{
private final static long serialVersionUID = 12343L;
@XmlElement(name = "WantItNowPost")
protected WantItNowPostType wantItNowPost;
/**
* Gets the value of the wantItNowPost property.
*
* @return
* possible object is
* {@link WantItNowPostType }
*
*/
public WantItNowPostType getWantItNowPost() {
return wantItNowPost;
}
/**
* Sets the value of the wantItNowPost property.
*
* @param value
* allowed object is
* {@link WantItNowPostType }
*
*/
public void setWantItNowPost(WantItNowPostType value) {
this.wantItNowPost = value;
}
}
|
[
"vancezhao@gmail.com"
] |
vancezhao@gmail.com
|
1dd6d84a60eff39ba730c079f90bd7f631628ecd
|
3a21f815b42484e40f932bd4ed0827cd35a62bef
|
/bij/src/main/java/volume/DoG3D.java
|
8698b6f61368cac3ca73d506d806bab8378df480
|
[] |
no_license
|
lindensmith/cookbook
|
0f69856524ae79aaaec5bce2ed98de0cbc1daed4
|
f9a88a483c985de4ae00126786d921741dc42aeb
|
refs/heads/master
| 2020-12-26T03:12:33.937008
| 2014-05-15T18:15:04
| 2014-05-15T18:15:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,862
|
java
|
package volume;
/**
* This is a 3D Difference of Gaussian convolution kernel.
*
* DoG2D(x) = 1 / Math.sqrt(2 Math.PI * sigma^2) e^(-(x^2+y^2) / 2 sigma^2) - 1 / Math.sqrt(2 Math.PI * (1.6 sigma)^2) e^(-(x^2+y^2) / 2 (1.6 sigma)^2)
*
* @author: Michael Abramoff, (c) 1999-2003 Michael Abramoff. All rights reserved.
*
* Small print:
* Permission to use, copy, modify and distribute this version of this software or any parts
* of it and its documentation or any parts of it ("the software"), for any purpose is
* hereby granted, provided that the above copyright notice and this permission notice
* appear intact in all copies of the software and that you do not sell the software,
* or include the software in a commercial package.
* The release of this software into the public domain does not imply any obligation
* on the part of the author to release future versions into the public domain.
* The author is free to make upgraded or improved versions of the software available
* for a fee or commercially only.
* Commercial licensing of the software is available by contacting the author.
* THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND,
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
*/
public class DoG3D extends Gaussian3D
{
public DoG3D(double sigma)
{
this.sigma = sigma;
if (sigma != 0)
{
int width = (int) (6 * (sigma*1.6) + 1);
if (width % 2 == 0) width++;
halfwidth = width / 2;
k = new double[halfwidth*2+1][halfwidth*2+1][halfwidth*2+1];
for (int n = -halfwidth; n <= halfwidth; n++)
for (int m = -halfwidth; m <= halfwidth; m++)
for (int l = -halfwidth; l <= halfwidth; l++)
k[n+halfwidth][m+halfwidth][l+halfwidth] = function(l,m,n);
}
else
halfwidth = 0;
}
/**
* Compute 3D Difference of Gaussian function (DoG) at x, y.
* @param x the x position
* @param y the y position.
* @param z the z position.
* @return a double with the value of the 3D Difference of Gaussian at x, y.
*/
protected double function(double x, double y, double z)
{
return 1.0 / (Math.pow(2 * Math.PI, 2) * Math.pow(sigma, 3)) * Math.exp(-(x*x + y*y + z*z) / (2 * Math.pow(sigma,2)))
-
1.0 / (Math.pow(2 * Math.PI, 2) * Math.pow(sigma*1.6, 3)) * Math.exp(-(x*x + y*y + z*z) / (2 * Math.pow(sigma*1.6,2)));
}
public String toString() { return "DoG 2D "+sigma; }
}
|
[
"johannes.schindelin@gmx.de"
] |
johannes.schindelin@gmx.de
|
ae79395bac686fa6d9f2644d53432cf19f33696b
|
40f4908483b98fc4f370ff4f2d520e1284d045b3
|
/immortals_repo/knowledge-repo/toolchain/bytecode-diff/src/main/java/com/securboration/immortals/bcd/printer/LabelMappableTextifier.java
|
4364ce0ea82bd1ad6717a06fcf690f0d04c2b91f
|
[] |
no_license
|
TF-185/bbn-immortals
|
7f70610bdbbcbf649f3d9021f087baaa76f0d8ca
|
e298540f7b5f201779213850291337a8bded66c7
|
refs/heads/master
| 2023-05-31T00:16:42.522840
| 2019-10-24T21:45:07
| 2019-10-24T21:45:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 776
|
java
|
package com.securboration.immortals.bcd.printer;
import java.util.HashMap;
import java.util.Map;
import org.objectweb.asm.Label;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.util.Textifier;
public class LabelMappableTextifier extends Textifier
{
public LabelMappableTextifier()
{
super(Opcodes.ASM5);
}
public void registerLabel(Label label)
{
Map<Label,String> labels = getLabelMapping();
if(labels.containsKey(label))
{
return;
}
labels.put(label, String.format("L%d",labels.size()));
}
private Map<Label,String> getLabelMapping()
{
if(this.labelNames == null)
{
this.labelNames = new HashMap<>();
}
return this.labelNames;
}
}
|
[
"austin.wellman@raytheon.com"
] |
austin.wellman@raytheon.com
|
1bca9febf6d955f471492337dfc20134842f2527
|
0b4844d550c8e77cd93940e4a1d8b06d0fbeabf7
|
/JavaSource/dream/part/iss/emg/list/form/MaPtIssEmgDetailForm.java
|
623aaed6c4fe71287d1f45328d119ce61fb4f9b7
|
[] |
no_license
|
eMainTec-DREAM/DREAM
|
bbf928b5c50dd416e1d45db3722f6c9e35d8973c
|
05e3ea85f9adb6ad6cbe02f4af44d941400a1620
|
refs/heads/master
| 2020-12-22T20:44:44.387788
| 2020-01-29T06:47:47
| 2020-01-29T06:47:47
| 236,912,749
| 0
| 0
| null | null | null | null |
UHC
|
Java
| false
| false
| 1,679
|
java
|
package dream.part.iss.emg.list.form;
import common.struts.BaseForm;
import dream.doc.file.dto.MaDocLibCommonDTO;
import dream.part.iss.emg.list.dto.MaPtIssEmgCommonDTO;
import dream.part.iss.emg.list.dto.MaPtIssEmgDetailDTO;
/**
* 긴급출고- 상세 Form
* @author ssong
* @version $Id: MaPtIssEmgDetailForm.java,v 1.0 2015/12/02 09:13:09 ssong Exp $
* @since 1.0
*
* @struts.form name="maPtIssEmgDetailForm"
*/
public class MaPtIssEmgDetailForm extends BaseForm
{
//========================================================================
/** 공통 */
private MaPtIssEmgCommonDTO maPtIssEmgCommonDTO = new MaPtIssEmgCommonDTO();
//========================================================================
/** 상세 */
private MaPtIssEmgDetailDTO maPtIssEmgDetailDTO = new MaPtIssEmgDetailDTO();
/** 첨부문서 DTO */
private MaDocLibCommonDTO maDocLibCommonDTO = new MaDocLibCommonDTO();
public MaDocLibCommonDTO getMaDocLibCommonDTO()
{
return maDocLibCommonDTO;
}
public void setMaDocLibCommonDTO(MaDocLibCommonDTO maDocLibCommonDTO)
{
this.maDocLibCommonDTO = maDocLibCommonDTO;
}
public MaPtIssEmgCommonDTO getMaPtIssEmgCommonDTO() {
return maPtIssEmgCommonDTO;
}
public void setMaPtIssEmgCommonDTO(MaPtIssEmgCommonDTO maPtIssEmgCommonDTO) {
this.maPtIssEmgCommonDTO = maPtIssEmgCommonDTO;
}
public MaPtIssEmgDetailDTO getMaPtIssEmgDetailDTO() {
return maPtIssEmgDetailDTO;
}
public void setMaPtIssEmgDetailDTO(MaPtIssEmgDetailDTO maPtIssEmgDetailDTO) {
this.maPtIssEmgDetailDTO = maPtIssEmgDetailDTO;
}
}
|
[
"HN4741@10.31.0.185"
] |
HN4741@10.31.0.185
|
4d751fa0d732098b1adc778150f5620a50c1bb16
|
e1ef316bf26781c70012ca91b52b0dd39286a3e4
|
/app/src/main/java/com/bjzcht/lovebeequick/callback/OnSetDefaultAddressListener.java
|
22920c4aedeb133e42878ed77b5081b057f90462
|
[] |
no_license
|
Leney/AiXianFeng
|
9ccff1b7312abf98393dca1c8fc51c85cb0928d5
|
4a130fee8ff05186f449f06daaf4050779c0226f
|
refs/heads/master
| 2021-01-02T08:54:40.891246
| 2017-10-28T09:45:29
| 2017-10-28T09:45:29
| 99,095,115
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 275
|
java
|
package com.bjzcht.lovebeequick.callback;
import com.bjzcht.lovebeequick.model.Address;
/**
* 设置为默认地址的监听器
* Created by lilijun on 2016/9/22.
*/
public interface OnSetDefaultAddressListener {
void onSetDefaultAddressListener(Address address);
}
|
[
"lilijunboy@163.com"
] |
lilijunboy@163.com
|
12561b759adcc8f1c5e7eb8ecdfb470804265b38
|
62c76a1df341e9d79f3c81dd71c94113b1f9fc14
|
/WEBFDMSWeb/src/fdms/ui/struts/form/FinancialChangeChargeLineForm.java
|
2794b5515b6dabd0193fc39259b4e56865596754
|
[] |
no_license
|
mahendrakawde/FDMS-Source-Code
|
3b6c0b5b463180d17e649c44a3a03063fa9c9e28
|
ce27537b661fca0446f57da40c016e099d82cb34
|
refs/heads/master
| 2021-01-10T07:48:40.811038
| 2015-10-30T07:57:28
| 2015-10-30T07:57:28
| 45,235,253
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,322
|
java
|
package fdms.ui.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
public class FinancialChangeChargeLineForm extends FinancialChangeChargeLineFormBase {
/**
*
*/
private static final long serialVersionUID = -2173884130849129530L;
private java.lang.String serialNumber;
private java.lang.String stockType;
private java.lang.String serialNumberModifiable;
/**
* Insert the method's description here. Creation date: (10/28/2002 4:44:40
* PM)
*
* @return java.lang.String
*/
public java.lang.String getSerialNumber() {
return serialNumber;
}
/**
* Insert the method's description here. Creation date: (11/11/2002 7:41:07
* AM)
*
* @return java.lang.String
*/
public java.lang.String getSerialNumberModifiable() {
return serialNumberModifiable;
}
/**
* Insert the method's description here. Creation date: (10/28/2002 4:58:02
* PM)
*
* @return java.lang.String
*/
public java.lang.String getStockType() {
return stockType;
}
public void reset(ActionMapping actionMapping, HttpServletRequest request) {
/** @todo: Override this org.apache.struts.action.ActionForm method */
super.reset(actionMapping, request);
}
/**
* Insert the method's description here. Creation date: (10/28/2002 4:44:40
* PM)
*
* @param newSerialNumber
* java.lang.String
*/
public void setSerialNumber(java.lang.String newSerialNumber) {
serialNumber = newSerialNumber;
}
/**
* Insert the method's description here. Creation date: (11/11/2002 7:41:07
* AM)
*
* @param newSerialNumberModifiable
* java.lang.String
*/
public void setSerialNumberModifiable(java.lang.String newSerialNumberModifiable) {
serialNumberModifiable = newSerialNumberModifiable;
}
/**
* Insert the method's description here. Creation date: (10/28/2002 4:58:02
* PM)
*
* @param newStockType
* java.lang.String
*/
public void setStockType(java.lang.String newStockType) {
stockType = newStockType;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request) {
/** @todo: Override this org.apache.struts.action.ActionForm method */
return super.validate(actionMapping, request);
}
}
|
[
"mahendrakawde@gmail.com"
] |
mahendrakawde@gmail.com
|
117fc0df37a02d2a0fab639bb17d680fa84a359a
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/MOCKITO-1b-5-15-PESA_II-WeightedSum:TestLen:CallDiversity/org/mockito/internal/creation/bytebuddy/MockMethodInterceptor_ESTest_scaffolding.java
|
5807555e2e23d580eed05fa233011f217b507c0e
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 465
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri Apr 03 10:18:54 UTC 2020
*/
package org.mockito.internal.creation.bytebuddy;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class MockMethodInterceptor_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
c8c2d27b8927bb5c96048c2cb71c83ce8049794c
|
9b46f80772b247006510beae379f43bc4578837d
|
/src/samplepackage/CaptureErrormessage.java
|
4ecdb0a8b20a3448d4e9b8e965e87a395ac85155
|
[] |
no_license
|
patilmanik09/PracticeProjects
|
cb3869874711f1f5cb1caebfaa6256982b000540
|
403e1e98efba2cb4b4dd166ee143c77ae17d55be
|
refs/heads/master
| 2020-03-14T07:00:46.541742
| 2018-04-29T17:28:05
| 2018-04-29T17:28:05
| 131,494,866
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 609
|
java
|
package samplepackage;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class CaptureErrormessage {
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver","C:\\Users\\Mpatil\\Desktop\\Selenium\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("https://login.yahoo.com");
driver.findElement(By.name("signin")).click();
String ErrorMessage = driver.findElement(By.xpath(".//*[@id='username-error']")).getText();
System.out.println(ErrorMessage);
}
}
|
[
"you@example.com"
] |
you@example.com
|
d62ac2937b9d05d3eafaad28b37937bb05c5278b
|
c2166ba7f98f6bb5a008509edb8dbe82a7b099af
|
/jflow-core/src/main/java/BP/WF/XML/EventLists.java
|
e0d5b9f8c06297add74cf5eb7fffd3f41ab629f0
|
[] |
no_license
|
zhanght86/skoa
|
4fe28ca081b9412937fff17dac1647f94bcd3b66
|
4dbedb9a42c10115537ffeab9c357b3917a5acdd
|
refs/heads/master
| 2021-01-01T20:08:34.714297
| 2017-02-13T07:50:56
| 2017-02-13T07:50:56
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 790
|
java
|
package BP.WF.XML;
import java.util.List;
import BP.En.Entities;
import BP.Sys.SystemConfig;
import BP.XML.XmlEn;
import BP.XML.XmlEns;
/**
事件s
*/
public class EventLists extends XmlEns
{
///#region 构造
/**
事件s
*/
public EventLists()
{
}
///#endregion
///#region 重写基类属性或方法。
/**
得到它的 Entity
*/
@Override
public XmlEn getGetNewEntity()
{
return new EventList();
}
/**
存放路径
*/
@Override
public String getFile()
{
return SystemConfig.getPathOfXML() + "EventList.xml";
}
/**
物理表名
*/
@Override
public String getTableName()
{
return "Item";
}
@Override
public Entities getRefEns()
{
return null;
}
public List<EventList> ToJavaList()
{
return (List<EventList>)(Object)this;
}
}
|
[
"81367070@qq.com"
] |
81367070@qq.com
|
cc1e42d216cdc9e0af780c7a382f4644bc021ce0
|
f1653d4e66ca696e2ae121e603c98c98180b8d29
|
/src/main/java/jhipster/v2/repository/PersistenceAuditEventRepository.java
|
028d430af7163c69f01d18ed7de73c02ed23a592
|
[] |
no_license
|
duartejc/jhipster-sample-app-2.0
|
b803e19327322150dffb3dec15ea50fea8875c11
|
81f9fa0e72de25718399e7eaad7619b5434e996c
|
refs/heads/master
| 2020-12-26T03:44:29.325545
| 2015-01-28T12:44:23
| 2015-01-28T12:44:23
| 29,924,961
| 0
| 0
| null | 2015-01-27T17:14:00
| 2015-01-27T17:14:00
| null |
UTF-8
|
Java
| false
| false
| 671
|
java
|
package jhipster.v2.repository;
import jhipster.v2.domain.PersistentAuditEvent;
import org.joda.time.LocalDateTime;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* Spring Data JPA repository for the PersistentAuditEvent entity.
*/
public interface PersistenceAuditEventRepository extends JpaRepository<PersistentAuditEvent, String> {
List<PersistentAuditEvent> findByPrincipal(String principal);
List<PersistentAuditEvent> findByPrincipalAndAuditEventDateAfter(String principal, LocalDateTime after);
List<PersistentAuditEvent> findAllByAuditEventDateBetween(LocalDateTime fromDate, LocalDateTime toDate);
}
|
[
"julien.dubois@gmail.com"
] |
julien.dubois@gmail.com
|
516bcbffa7bdefae25b3d6a25fc5b0b0ec677f72
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/7/7_f96db03b1da7c7700248c9c6ec105981356023e7/ArcEventRecorder/7_f96db03b1da7c7700248c9c6ec105981356023e7_ArcEventRecorder_s.java
|
1bf0652a40062de9fcf26c4bd2d06569de27f26e
|
[] |
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
| 6,686
|
java
|
/**
* Copyright (c) 1999-2011, Ecole des Mines de Nantes
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Ecole des Mines de Nantes 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 REGENTS 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 REGENTS AND 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 solver.recorders.fine;
import solver.ICause;
import solver.Solver;
import solver.constraints.propagators.Propagator;
import solver.exception.ContradictionException;
import solver.search.loop.AbstractSearchLoop;
import solver.variables.EventType;
import solver.variables.Variable;
import solver.variables.delta.IDeltaMonitor;
/**
* A specialized fine event recorder associated with one variable and one propagator.
* It observes a variable, records events occurring on the variable,
* schedules it self when calling the filtering algortithm of the propagator
* is required.
* It also stores, if required, pointers to value removals.
* <br/>
*
* @author Charles Prud'homme
* @since 01/12/11
*/
public class ArcEventRecorder<V extends Variable> extends AbstractFineEventRecorder<V> {
protected final V variable; // variable to observe
protected final Propagator<V> propagator; // propagator to inform
protected int idxVinP; // index of the variable within the propagator -- immutable
protected int idxV; // index of this within the variable structure -- mutable
protected final IDeltaMonitor deltamon; // delta monitoring -- can be NONE
protected long timestamp = 0; // a timestamp lazy clear the event structures
protected int evtmask; // reference to events occuring -- inclusive OR over event mask
public ArcEventRecorder(V variable, Propagator<V> propagator, int idxVinP, Solver solver) {
super(solver);
this.variable = variable;
this.propagator = propagator;
this.idxVinP = idxVinP;
this.deltamon = variable.getDelta().getMonitor();
variable.addMonitor(this);
propagator.addRecorder(this);
}
@Override
public IDeltaMonitor getDeltaMonitor(V variable) {
return deltamon;
}
@Override
public int getIdxInV(V variable) {
return idxV;
}
@Override
public void setIdxInV(V variable, int idx) {
this.idxV = idx;
}
@Override
public Propagator[] getPropagators() {
return new Propagator[]{propagator};
}
@Override
public Variable[] getVariables() {
return new Variable[]{variable};
}
@Override
public boolean execute() throws ContradictionException {
if (evtmask > 0) {
// LoggerFactory.getLogger("solver").info(">> {}", this.toString());
int evtmask_ = evtmask;
// for concurrent modification..
deltamon.freeze();
this.evtmask = 0; // and clean up mask
propagator.fineERcalls++;
assert (propagator.isActive()) : this + " is not active";
propagator.propagate(this, idxVinP, evtmask_);
deltamon.unfreeze();
}
return true;
}
@Override
public void beforeUpdate(V var, EventType evt, ICause cause) {
// nothing required here
}
@Override
public void afterUpdate(V var, EventType evt, ICause cause) {
// Only notify constraints that filter on the specific event received
if ((evt.mask & propagator.getPropagationConditions(idxVinP)) != 0) {
// LoggerFactory.getLogger("solver").info("\t << {}", this.toString());
// 1. clear the structure if necessary
if (LAZY) {
if (timestamp - AbstractSearchLoop.timeStamp != 0) {
this.evtmask = 0;
deltamon.clear();
timestamp = AbstractSearchLoop.timeStamp;
}
}
// 2. if instantiation, then decrement arity of the propagator
if (EventType.anInstantiationEvent(evt.mask)) {
propagator.decArity();
}
// 3. record the event and values removed
if ((evt.mask & evtmask) == 0) { // if the event has not been recorded yet (through strengthened event also).
evtmask |= evt.strengthened_mask;
}
deltamon.update(evt);
// 4. schedule this
if (!enqueued()) {
scheduler.schedule(this);
}
}
}
@Override
public void contradict(V var, EventType evt, ICause cause) {
// nothing required here
}
@Override
public void flush() {
this.evtmask = 0;
deltamon.clear();
}
@Override
public void enqueue() {
enqueued = true;
propagator.incNbRecorderEnqued();
}
@Override
public void deque() {
enqueued = false;
propagator.decNbRecrodersEnqued();
}
@Override
public void activate() {
variable.activate(this);
}
@Override
public void desactivate() {
variable.desactivate(this);
flush();
}
@Override
public String toString() {
return variable + " -> " + propagator;
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
8a366e8376a3c01fb1de9c1fdb96d364214c5d4e
|
b269f90704b62496ed1215e3e79273d26e489df1
|
/app/src/main/java/com/tcrj/micro/activity/support/SupportDetailActivity.java
|
3cffb8ddfac66804ad70229950501722fae6713c
|
[] |
no_license
|
atMen/MicroEnterprise
|
d37b761a90cb14bfd20e027d909ff0340b5738d0
|
04e40123d1748bb2868147bf1f9bfe37a34bf839
|
refs/heads/master
| 2021-07-22T17:07:27.230028
| 2020-05-24T07:53:35
| 2020-05-24T07:53:35
| 178,770,054
| 1
| 0
| null | 2020-05-24T07:53:36
| 2019-04-01T02:19:28
|
Java
|
UTF-8
|
Java
| false
| false
| 3,989
|
java
|
package com.tcrj.micro.activity.support;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.view.KeyEvent;
import android.view.View;
import android.webkit.WebSettings.LayoutAlgorithm;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
import com.android.volley.toolbox.VolleyUtil;
import com.tcrj.micro.JsonParse.JsonParse;
import com.tcrj.micro.R;
import com.tcrj.micro.application.BaseActivity;
import com.tcrj.micro.constant.Constant;
import com.tcrj.micro.entity.InfoEntity;
import com.tcrj.micro.entity.SupportEntity;
import com.tcrj.micro.until.DateUtil;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
import static com.newui.waterlistview.WaterDropListView.OnClickListener;
public class SupportDetailActivity extends BaseActivity {
private String id;
private TextView tvtitle;
private ImageView backBtn;
private TextView title;
private TextView matterGist;
private TextView gkCondition;
private TextView gkProcedure;
private TextView flow;
private TextView timeLimit;
private TextView chargeStandard;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_support_detail);
initView();
getData();
}
@Override
public void initView() {
Intent intent = getIntent();
id = intent.getStringExtra("id");
tvtitle = (TextView) findViewById(R.id.txtTitle);
backBtn = (ImageView) findViewById(R.id.btnback);
backBtn.setVisibility(View.VISIBLE);
tvtitle.setText("内容");
backBtn.setOnClickListener(new OnClick());
title = (TextView) findViewById(R.id.title);
matterGist = (TextView) findViewById(R.id.mattergist);
gkCondition = (TextView) findViewById(R.id.gkcondition);
gkProcedure = (TextView) findViewById(R.id.gkprocedure);
flow = (TextView) findViewById(R.id.flow);
timeLimit = (TextView) findViewById(R.id.timelimit);
chargeStandard = (TextView) findViewById(R.id.chargestandard);
}
@Override
public void getData() {
showProgressDialog();
VolleyUtil volleyUtil = new VolleyUtil(this, handler);
Map<String, Object> params = new HashMap<String, Object>();
params.put("id", id);
VolleyUtil.VolleyJsonCallback callback2 = new VolleyUtil.VolleyJsonCallback() {
@Override
public void onSuccess(JSONObject jsonObject) {
dismisProgressDialog();
Log.d("aa", jsonObject.toString());
if (JsonParse.getMsgByKey(jsonObject, "state").equals("1")) {
SupportEntity entity = JsonParse.getSupportDetail(jsonObject);
title.setText(entity.getTitle());
matterGist.setText(Html.fromHtml(entity.getMatterGist()));
gkCondition.setText(Html.fromHtml(entity.getGkCondition()));
gkProcedure.setText(Html.fromHtml(entity.getGkProcedure()));
flow.setText(Html.fromHtml(entity.getFlow()));
timeLimit.setText(Html.fromHtml(entity.getTimeLimit()));
chargeStandard.setText(Html.fromHtml(entity.getChargeStandard()));
}
}
@Override
public void onFailed(String result) {
dismisProgressDialog();
handler.sendEmptyMessage(11);
}
};
volleyUtil.getJsonDataFromServer(Constant.findGkInfoDetails, params, callback2);
}
class OnClick implements OnClickListener {
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btnback:
finish();
break;
}
}
}
}
|
[
"377044412@qq.com"
] |
377044412@qq.com
|
95f12533c371f83a6bacba48b72af87f716efa0d
|
a3d6556180e74af7b555f8d47d3fea55b94bcbda
|
/chrome/browser/accessibility/hierarchysnapshotter/android/java/src/org/chromium/chrome/browser/accessibility/hierarchysnapshotter/HierarchySnapshotterDelegate.java
|
9e2a1ae7c0938a347dba60ef2bd57a0a76f740c4
|
[
"BSD-3-Clause"
] |
permissive
|
chromium/chromium
|
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
|
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
|
refs/heads/main
| 2023-08-24T00:35:12.585945
| 2023-08-23T22:01:11
| 2023-08-23T22:01:11
| 120,360,765
| 17,408
| 7,102
|
BSD-3-Clause
| 2023-09-10T23:44:27
| 2018-02-05T20:55:32
| null |
UTF-8
|
Java
| false
| false
| 606
|
java
|
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.accessibility.hierarchysnapshotter;
/**
* Base class for defining methods where different behavior is required by downstream targets for
* the HierarchySnapshotter. The correct version of {@link HierarchySnapshotterDelegateImpl} will
* be determined at compile time via build runs.
*/
public class HierarchySnapshotterDelegate {
/** @see {@link HierarchySnapshotter#initialize()} */
public void initialize() {}
}
|
[
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] |
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
|
19f8fbe22165963ca97974a58aab90e956b6f6ed
|
ab38746e32cd56f84f18ba75fafbd9bf73b4e999
|
/app/src/main/java/com/p013a/p014a/p016b/C0430b.java
|
faeabcad08d20fec024cafa97c97bec451024f6b
|
[] |
no_license
|
jack15177089002/mybcz_5_0_1
|
8c51a9785713046dc8ffffeff0bf8257d2af9013
|
ab47049b95ab69fe62ff5fd093d2204e00506bd5
|
refs/heads/master
| 2021-03-15T09:01:29.235028
| 2020-03-12T13:20:06
| 2020-03-12T13:20:06
| 246,839,031
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 370
|
java
|
package com.p013a.p014a.p016b;
/* renamed from: com.a.a.b.b */
/* compiled from: SwipeItemMangerImpl */
public final class C0430b {
/* renamed from: a */
public static final int f1682a = 1;
/* renamed from: b */
public static final int f1683b = 2;
/* renamed from: c */
private static final /* synthetic */ int[] f1684c = {f1682a, f1683b};
}
|
[
"3167289375@qq.com"
] |
3167289375@qq.com
|
c7e5126e5015e0284922793c4004aa942bbc6a2a
|
61ac08436a0b2ceaa396c34ea3151656550daf0d
|
/Practica1/src/practica/PanelDerecho.java
|
d1776b1d642cbc9a065b1b6c630728cf8d8c5e8f
|
[] |
no_license
|
juanra1997/HLC
|
c40b6075cb49302689714cf0eb6b85e5183917a5
|
45ba68450e97992f197aace2433549da987b2324
|
refs/heads/master
| 2023-05-27T11:44:50.184022
| 2023-05-11T22:49:43
| 2023-05-11T22:49:43
| 149,436,666
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,123
|
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 practica;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
/*
* 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.
*/
/**
*
* @author Juanra
*/
public class PanelDerecho extends JPanel {
JLabel monedaDestino;
JLabel titulo;
JTextField cantidad;
public PanelDerecho(){
iniciaComponentes();
}
public void iniciaComponentes(){
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
titulo=new JLabel("Moneda Destino");
titulo.setFont(new Font("Arial", Font.BOLD, 20));
titulo.setAlignmentX(CENTER_ALIGNMENT);
add(titulo);
monedaDestino=new JLabel("$");
monedaDestino.setFont(new Font("Arial", Font.BOLD, 200));
monedaDestino.setAlignmentX(CENTER_ALIGNMENT);
add(monedaDestino);
cantidad=new JTextField();
cantidad.setEditable(false);
cantidad.setPreferredSize(new Dimension(100, 25));
cantidad.setAlignmentX(CENTER_ALIGNMENT);
cantidad.setHorizontalAlignment(JTextField.CENTER);
cantidad.setFont(new Font("Arial", Font.BOLD, 20));
cantidad.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
cantidad.setBackground(Color.BLACK);
cantidad.setForeground(Color.WHITE);
add(cantidad);
setBackground(Color.WHITE);
}
public JTextField getCantidad() {
return cantidad;
}
public void setCantidad(JTextField cantidad) {
this.cantidad = cantidad;
}
}
|
[
"juanrainmortal22@yahoo.com"
] |
juanrainmortal22@yahoo.com
|
bf1835b9ae49e01f80de35a487e5c069959f8c30
|
be73270af6be0a811bca4f1710dc6a038e4a8fd2
|
/crash-reproduction-moho/results/XWIKI-13544-48-5-PESA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/internal/template/InternalTemplateManager_ESTest_scaffolding.java
|
4b2f6cfea0de27856a168ce4880bb5a2fd19b0b9
|
[] |
no_license
|
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
|
cf118b23ecb87a8bf59643e42f7556b521d1f754
|
3bb39683f9c343b8ec94890a00b8f260d158dfe3
|
refs/heads/master
| 2022-07-29T14:44:00.774547
| 2020-08-10T15:14:49
| 2020-08-10T15:14:49
| 285,804,495
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 459
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Sun Jan 19 19:42:20 UTC 2020
*/
package com.xpn.xwiki.internal.template;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class InternalTemplateManager_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pouria.derakhshanfar@gmail.com"
] |
pouria.derakhshanfar@gmail.com
|
1d7d061a93403188e3fbaa7030e5e8b3d60f3af3
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-14599-11-4-Single_Objective_GGA-IntegrationSingleObjective-BasicBlockCoverage-opt/org/xwiki/extension/jar/internal/handler/JarExtensionJobFinishingListener_ESTest_scaffolding.java
|
1099ed01b546a66a9ece975951a0e56d08897c7e
|
[
"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
| 477
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Mon Nov 01 18:27:55 UTC 2021
*/
package org.xwiki.extension.jar.internal.handler;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class JarExtensionJobFinishingListener_ESTest_scaffolding {
// Empty scaffolding for empty test suite
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
9124926b3f153c09ec109328c1db8234da96e78e
|
d1fd0c4703f46b854103d442e14569dc7b2a8b68
|
/libraries/Mono/Mono4Java/src/main/java/com/nativelibs4java/mono/library/MonoVerifyInfo.java
|
d2a650d1144c72c74d5a13431026cd712973d7eb
|
[] |
no_license
|
jonhare/nativelibs4java
|
ba239d2dee11156d6e6cc57c28b41b8c6d8100e1
|
07565be828ad8bb7d8dad9051616f16d40a9d16a
|
refs/heads/master
| 2020-12-25T17:45:59.682097
| 2020-10-17T14:14:52
| 2020-10-17T14:14:52
| 5,001,967
| 1
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,681
|
java
|
package com.nativelibs4java.mono.library;
/**
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a>, <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public class MonoVerifyInfo extends com.ochafik.lang.jnaerator.runtime.Structure<MonoVerifyInfo, MonoVerifyInfo.ByValue, MonoVerifyInfo.ByReference> {
/// C type : char*
public com.sun.jna.Pointer message;
/**
* @see MonoVerifyStatus<br>
* C type : MonoVerifyStatus
*/
public int status;
public MonoVerifyInfo() {
super();
}
/**
* @param message C type : char*<br>
* @param status @see MonoVerifyStatus<br>
* C type : MonoVerifyStatus
*/
public MonoVerifyInfo(com.sun.jna.Pointer message, int status) {
super();
this.message = message;
this.status = status;
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected MonoVerifyInfo newInstance() { return new MonoVerifyInfo(); }
public static MonoVerifyInfo[] newArray(int arrayLength) {
return com.ochafik.lang.jnaerator.runtime.Structure.newArray(MonoVerifyInfo.class, arrayLength);
}
public static class ByReference extends MonoVerifyInfo implements com.sun.jna.Structure.ByReference {}
public static class ByValue extends MonoVerifyInfo implements com.sun.jna.Structure.ByValue {}
}
|
[
"olivier.chafik@gmail.com"
] |
olivier.chafik@gmail.com
|
0194c3a740c82f9273f7375cc6b8314104e75c31
|
d0088d7be7aedd7846894372b22c783e9a08e207
|
/src/mockinterview/BinaryTree.java
|
e4bbfab2a7783febc8e0c71ef0f58251a9083455
|
[] |
no_license
|
srishti77/Algorithm
|
4b21c21f6cf307e3d3cb98242d0802d112977dd7
|
0cde94becc1623c6859b89c62abf15a48ddd356a
|
refs/heads/master
| 2021-10-25T20:54:10.660676
| 2019-04-07T13:58:06
| 2019-04-07T13:58:06
| 106,170,144
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 144
|
java
|
package mockinterview;
public class BinaryTree {
int val;
BinaryTree left;
BinaryTree right;
BinaryTree(int val) {
this.val = val;
}
}
|
[
"="
] |
=
|
8c3f25bf6c934982d8a821e2e90cc391554280ef
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/27/27_953ecb66d206322a61ffff6e23dfe4ed0cfb2784/UpdateOpsImpl/27_953ecb66d206322a61ffff6e23dfe4ed0cfb2784_UpdateOpsImpl_t.java
|
3b31c0878307799d64afe19d90e7a2eb511c0955
|
[] |
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
| 6,309
|
java
|
package org.mongodb.morphia.query;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import org.mongodb.morphia.mapping.MappedField;
import org.mongodb.morphia.mapping.Mapper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Scott Hernandez
*/
public class UpdateOpsImpl<T> implements UpdateOperations<T> {
private Map<String, Map<String, Object>> ops = new HashMap<String, Map<String, Object>>();
private final Mapper mapper;
private final Class<T> clazz;
private boolean validateNames = true;
private boolean validateTypes = true;
private boolean isolated;
public UpdateOpsImpl(final Class<T> type, final Mapper mapper) {
this.mapper = mapper;
clazz = type;
}
public UpdateOperations<T> enableValidation() {
validateNames = true;
validateTypes = true;
return this;
}
public UpdateOperations<T> disableValidation() {
validateNames = false;
validateTypes = false;
return this;
}
public UpdateOperations<T> isolated() {
isolated = true;
return this;
}
public boolean isIsolated() {
return isolated;
}
@SuppressWarnings("unchecked")
public void setOps(final DBObject ops) {
this.ops = (Map<String, Map<String, Object>>) ops;
}
public DBObject getOps() {
return new BasicDBObject(ops);
}
public UpdateOperations<T> add(final String fieldExpr, final Object value) {
return add(fieldExpr, value, false);
}
public UpdateOperations<T> add(final String fieldExpr, final Object value, final boolean addDups) {
if (value == null) {
throw new QueryException("Value cannot be null.");
}
add((addDups) ? UpdateOperator.PUSH : UpdateOperator.ADD_TO_SET, fieldExpr, value, true);
return this;
}
public UpdateOperations<T> addAll(final String fieldExpr, final List<?> values, final boolean addDups) {
if (values == null || values.isEmpty()) {
throw new QueryException("Values cannot be null or empty.");
}
if (addDups) {
add(UpdateOperator.PUSH_ALL, fieldExpr, values, true);
} else {
add(UpdateOperator.ADD_TO_SET_EACH, fieldExpr, values, true);
}
return this;
}
public UpdateOperations<T> dec(final String fieldExpr) {
return inc(fieldExpr, -1);
}
public UpdateOperations<T> inc(final String fieldExpr) {
return inc(fieldExpr, 1);
}
public UpdateOperations<T> inc(final String fieldExpr, final Number value) {
if (value == null) {
throw new QueryException("Value cannot be null.");
}
add(UpdateOperator.INC, fieldExpr, value, false);
return this;
}
protected UpdateOperations<T> remove(final String fieldExpr, final boolean firstNotLast) {
add(UpdateOperator.POP, fieldExpr, (firstNotLast) ? -1 : 1, false);
return this;
}
public UpdateOperations<T> removeAll(final String fieldExpr, final Object value) {
if (value == null) {
throw new QueryException("Value cannot be null.");
}
add(UpdateOperator.PULL, fieldExpr, value, true);
return this;
}
public UpdateOperations<T> removeAll(final String fieldExpr, final List<?> values) {
if (values == null || values.isEmpty()) {
throw new QueryException("Value cannot be null or empty.");
}
add(UpdateOperator.PULL_ALL, fieldExpr, values, true);
return this;
}
public UpdateOperations<T> removeFirst(final String fieldExpr) {
return remove(fieldExpr, true);
}
public UpdateOperations<T> removeLast(final String fieldExpr) {
return remove(fieldExpr, false);
}
public UpdateOperations<T> set(final String fieldExpr, final Object value) {
if (value == null) {
throw new QueryException("Value cannot be null.");
}
add(UpdateOperator.SET, fieldExpr, value, true);
return this;
}
public UpdateOperations<T> setOnInsert(final String fieldExpr, final Object value) {
if (value == null) {
throw new QueryException("Value cannot be null.");
}
add(UpdateOperator.SET_ON_INSERT, fieldExpr, value, true);
return this;
}
public UpdateOperations<T> unset(final String fieldExpr) {
add(UpdateOperator.UNSET, fieldExpr, 1, false);
return this;
}
protected List<Object> toDBObjList(final MappedField mf, final List<?> values) {
final List<Object> list = new ArrayList<Object>(values.size());
for (final Object obj : values) {
list.add(mapper.toMongoObject(mf, null, obj));
}
return list;
}
//TODO Clean this up a little.
protected void add(final UpdateOperator op, final String f, final Object value, final boolean convert) {
if (value == null) {
throw new QueryException("Val cannot be null");
}
Object val = null;
MappedField mf = null;
final StringBuilder sb = new StringBuilder(f);
if (validateNames || validateTypes) {
mf = Mapper.validate(clazz, mapper, sb, FilterOperator.EQUAL, val, validateNames, validateTypes);
}
if (convert) {
if (UpdateOperator.PULL_ALL.equals(op) && value instanceof List) {
val = toDBObjList(mf, (List<?>) value);
} else {
val = mapper.toMongoObject(mf, null, value);
}
}
if (UpdateOperator.ADD_TO_SET_EACH.equals(op)) {
val = new BasicDBObject(UpdateOperator.EACH.val(), val);
}
if (val == null) {
val = value;
}
final String opString = op.val();
if (!ops.containsKey(opString)) {
ops.put(opString, new HashMap<String, Object>());
}
ops.get(opString).put(sb.toString(), val);
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
5cfc5808b2bcb188683aae3fd655e31be7349469
|
59fec6266c2f6499a5d7f69afd298d8708ae64de
|
/src/main/java/org/bian/dto/SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecord.java
|
4d8256813adf0510053f1f79fc28ebfeef07233d
|
[
"Apache-2.0"
] |
permissive
|
bianapis/sd-asset-securitization-v3
|
bfd5b1db01bf4652d10cbbcb31f49a0c411b07c7
|
ef05c135544fc9baa5fae249b9c2f5cd6189ad5a
|
refs/heads/master
| 2022-12-21T07:25:26.132073
| 2020-09-26T06:53:13
| 2020-09-26T06:53:13
| 297,949,239
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,652
|
java
|
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.SDAssetSecuritizationActivateInputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceConfigurationSetup;
import org.bian.dto.SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceAgreement;
import org.bian.dto.SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceSubscription;
import javax.validation.Valid;
/**
* SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecord
*/
public class SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecord {
private String assetSecuritizationServiceConfigurationSettingReference = null;
private String assetSecuritizationServiceConfigurationSettingDescription = null;
private SDAssetSecuritizationActivateInputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceConfigurationSetup assetSecuritizationServiceConfigurationSetup = null;
private SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceSubscription assetSecuritizationServiceSubscription = null;
private SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceAgreement assetSecuritizationServiceAgreement = null;
private String assetSecuritizationServiceStatus = null;
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier general-info: Refers to the service configuration parameter for the service
* @return assetSecuritizationServiceConfigurationSettingReference
**/
public String getAssetSecuritizationServiceConfigurationSettingReference() {
return assetSecuritizationServiceConfigurationSettingReference;
}
public void setAssetSecuritizationServiceConfigurationSettingReference(String assetSecuritizationServiceConfigurationSettingReference) {
this.assetSecuritizationServiceConfigurationSettingReference = assetSecuritizationServiceConfigurationSettingReference;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text general-info: Description of the configuration parameter, allowed values and processing impact
* @return assetSecuritizationServiceConfigurationSettingDescription
**/
public String getAssetSecuritizationServiceConfigurationSettingDescription() {
return assetSecuritizationServiceConfigurationSettingDescription;
}
public void setAssetSecuritizationServiceConfigurationSettingDescription(String assetSecuritizationServiceConfigurationSettingDescription) {
this.assetSecuritizationServiceConfigurationSettingDescription = assetSecuritizationServiceConfigurationSettingDescription;
}
/**
* Get assetSecuritizationServiceConfigurationSetup
* @return assetSecuritizationServiceConfigurationSetup
**/
public SDAssetSecuritizationActivateInputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceConfigurationSetup getAssetSecuritizationServiceConfigurationSetup() {
return assetSecuritizationServiceConfigurationSetup;
}
public void setAssetSecuritizationServiceConfigurationSetup(SDAssetSecuritizationActivateInputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceConfigurationSetup assetSecuritizationServiceConfigurationSetup) {
this.assetSecuritizationServiceConfigurationSetup = assetSecuritizationServiceConfigurationSetup;
}
/**
* Get assetSecuritizationServiceSubscription
* @return assetSecuritizationServiceSubscription
**/
public SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceSubscription getAssetSecuritizationServiceSubscription() {
return assetSecuritizationServiceSubscription;
}
public void setAssetSecuritizationServiceSubscription(SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceSubscription assetSecuritizationServiceSubscription) {
this.assetSecuritizationServiceSubscription = assetSecuritizationServiceSubscription;
}
/**
* Get assetSecuritizationServiceAgreement
* @return assetSecuritizationServiceAgreement
**/
public SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceAgreement getAssetSecuritizationServiceAgreement() {
return assetSecuritizationServiceAgreement;
}
public void setAssetSecuritizationServiceAgreement(SDAssetSecuritizationActivateOutputModelAssetSecuritizationServiceConfigurationRecordAssetSecuritizationServiceAgreement assetSecuritizationServiceAgreement) {
this.assetSecuritizationServiceAgreement = assetSecuritizationServiceAgreement;
}
/**
* `status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text general-info: The status of the offered service (e.g. active, suspended, idle)
* @return assetSecuritizationServiceStatus
**/
public String getAssetSecuritizationServiceStatus() {
return assetSecuritizationServiceStatus;
}
public void setAssetSecuritizationServiceStatus(String assetSecuritizationServiceStatus) {
this.assetSecuritizationServiceStatus = assetSecuritizationServiceStatus;
}
}
|
[
"spabandara@Virtusa.com"
] |
spabandara@Virtusa.com
|
4ff9a74f0ebf34ea3c57a54a415ce287234362ce
|
2ea1219ab522f4cabc695b065064830791c6b2c9
|
/Chingun Battogtokh/Classwork18042019_Chingun/04_18_2019_Chingun_Classwork18/ClassworkOneTest.java
|
740da802cc3b54c24fd5ba5adc188929ae2f5286
|
[] |
no_license
|
khangaikhuu/cs_intro_2019
|
d6f1ab58942a26ddde7bb89e8997eea6b219944e
|
98b096ba8648afcba60538fad320c64686530ea7
|
refs/heads/master
| 2020-05-05T13:32:02.548969
| 2019-06-04T06:32:26
| 2019-06-04T06:32:26
| 180,082,134
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 411
|
java
|
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ClassworkOneTest
{
@Test
public void TestClassworkOne()
{
ClassworkOne c4 = new ClassworkOne(1);
assertEquals(1, c4.getCide(1));
assertEquals(1, c4.multiply(16));
assertEquals(1, c4.multiply(2));
assertEquals(1, c4.multiply(5));
}
}
|
[
"g12@asu.local"
] |
g12@asu.local
|
d3c87badc985277fbe4d79ceeb0fe4d25b23be0a
|
392e624ea2d6886bf8e37167ebbda0387e7e4a9a
|
/uxcrm-ofbiz/generated-entity/src/main/java/org/apache/ofbiz/marketing/opportunity/SalesOpportunityTrckCode.java
|
d942212e7cf33f382913b09f4e016c37b10abc9e
|
[
"Apache-2.0"
] |
permissive
|
yuri0x7c1/uxcrm
|
11eee75f3a9cffaea4e97dedc8bc46d8d92bee58
|
1a0bf4649bee0a3a62e486a9d6de26f1d25d540f
|
refs/heads/master
| 2018-10-30T07:29:54.123270
| 2018-08-26T18:25:35
| 2018-08-26T18:25:35
| 104,251,350
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,089
|
java
|
package org.apache.ofbiz.marketing.opportunity;
import lombok.experimental.FieldNameConstants;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
import org.apache.ofbiz.entity.GenericValue;
import java.util.List;
import java.util.ArrayList;
/**
* Sales Opportunity Trck Code
*/
@FieldNameConstants
public class SalesOpportunityTrckCode implements Serializable {
public static final long serialVersionUID = 4288843974294855680L;
public static final String NAME = "SalesOpportunityTrckCode";
/**
* Sales Opportunity Id
*/
@Getter
@Setter
private String salesOpportunityId;
/**
* Tracking Code Id
*/
@Getter
@Setter
private String trackingCodeId;
/**
* Received Date
*/
@Getter
@Setter
private Timestamp receivedDate;
/**
* Last Updated Stamp
*/
@Getter
@Setter
private Timestamp lastUpdatedStamp;
/**
* Last Updated Tx Stamp
*/
@Getter
@Setter
private Timestamp lastUpdatedTxStamp;
/**
* Created Stamp
*/
@Getter
@Setter
private Timestamp createdStamp;
/**
* Created Tx Stamp
*/
@Getter
@Setter
private Timestamp createdTxStamp;
public SalesOpportunityTrckCode(GenericValue value) {
salesOpportunityId = (String) value.get(FIELD_SALES_OPPORTUNITY_ID);
trackingCodeId = (String) value.get(FIELD_TRACKING_CODE_ID);
receivedDate = (Timestamp) value.get(FIELD_RECEIVED_DATE);
lastUpdatedStamp = (Timestamp) value.get(FIELD_LAST_UPDATED_STAMP);
lastUpdatedTxStamp = (Timestamp) value.get(FIELD_LAST_UPDATED_TX_STAMP);
createdStamp = (Timestamp) value.get(FIELD_CREATED_STAMP);
createdTxStamp = (Timestamp) value.get(FIELD_CREATED_TX_STAMP);
}
public static SalesOpportunityTrckCode fromValue(
org.apache.ofbiz.entity.GenericValue value) {
return new SalesOpportunityTrckCode(value);
}
public static List<SalesOpportunityTrckCode> fromValues(
List<GenericValue> values) {
List<SalesOpportunityTrckCode> entities = new ArrayList<>();
for (GenericValue value : values) {
entities.add(new SalesOpportunityTrckCode(value));
}
return entities;
}
}
|
[
"yuri0x7c1@gmail.com"
] |
yuri0x7c1@gmail.com
|
e2e4bc620dd7047bfc2c6512cac2b46c6bbd1505
|
5cc7094e26c04bbfe77d83066ca03346a92e842f
|
/qidiansdk/src/main/java/com/handmark/pulltorefresh/library/PullToRefreshWebView.java
|
1fe5021375fbd42c54609511e436851858c48433
|
[] |
no_license
|
wudi1986/ClockCalendar
|
ae71ac45b2475c9efef9f37497d1b68913df2c14
|
76ea6015238dea17f4d4b6b25d9ad0f0130c13f6
|
refs/heads/master
| 2021-01-19T02:27:50.913587
| 2016-06-20T08:53:53
| 2016-06-20T08:53:53
| 49,640,962
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,255
|
java
|
/*******************************************************************************
* Copyright 2011, 2012 Chris Banes.
*
* 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.handmark.pulltorefresh.library;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.os.Bundle;
import android.util.AttributeSet;
import android.util.FloatMath;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import com.news.qidian.R;
public class PullToRefreshWebView extends PullToRefreshBase<WebView> {
private static final OnRefreshListener<WebView> defaultOnRefreshListener = new OnRefreshListener<WebView>() {
@Override
public void onRefresh(PullToRefreshBase<WebView> refreshView) {
refreshView.getRefreshableView().reload();
}
};
private final WebChromeClient defaultWebChromeClient = new WebChromeClient() {
@Override
public void onProgressChanged(WebView view, int newProgress) {
if (newProgress == 100) {
onRefreshComplete();
}
}
};
public PullToRefreshWebView(Context context) {
super(context);
/**
* Added so that by default, Pull-to-Refresh refreshes the page
*/
setOnRefreshListener(defaultOnRefreshListener);
mRefreshableView.setWebChromeClient(defaultWebChromeClient);
}
public PullToRefreshWebView(Context context, AttributeSet attrs) {
super(context, attrs);
/**
* Added so that by default, Pull-to-Refresh refreshes the page
*/
setOnRefreshListener(defaultOnRefreshListener);
mRefreshableView.setWebChromeClient(defaultWebChromeClient);
}
public PullToRefreshWebView(Context context, Mode mode) {
super(context, mode);
/**
* Added so that by default, Pull-to-Refresh refreshes the page
*/
setOnRefreshListener(defaultOnRefreshListener);
mRefreshableView.setWebChromeClient(defaultWebChromeClient);
}
public PullToRefreshWebView(Context context, Mode mode, AnimationStyle style) {
super(context, mode, style);
/**
* Added so that by default, Pull-to-Refresh refreshes the page
*/
setOnRefreshListener(defaultOnRefreshListener);
mRefreshableView.setWebChromeClient(defaultWebChromeClient);
}
@Override
public final Orientation getPullToRefreshScrollDirection() {
return Orientation.VERTICAL;
}
@Override
protected WebView createRefreshableView(Context context, AttributeSet attrs) {
WebView webView;
if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
webView = new InternalWebViewSDK9(context, attrs);
} else {
webView = new WebView(context, attrs);
}
webView.setId(R.id.webview);
return webView;
}
@Override
protected boolean isReadyForPullStart() {
return mRefreshableView.getScrollY() == 0;
}
@Override
protected boolean isReadyForPullEnd() {
float exactContentHeight = (float) Math.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale());
return mRefreshableView.getScrollY() >= (exactContentHeight - mRefreshableView.getHeight());
}
@Override
protected void onPtrRestoreInstanceState(Bundle savedInstanceState) {
super.onPtrRestoreInstanceState(savedInstanceState);
mRefreshableView.restoreState(savedInstanceState);
}
@Override
protected void onPtrSaveInstanceState(Bundle saveState) {
super.onPtrSaveInstanceState(saveState);
mRefreshableView.saveState(saveState);
}
@TargetApi(9)
final class InternalWebViewSDK9 extends WebView {
// WebView doesn't always scroll back to it's edge so we add some
// fuzziness
static final int OVERSCROLL_FUZZY_THRESHOLD = 2;
// WebView seems quite reluctant to overscroll so we use the scale
// factor to scale it's value
static final float OVERSCROLL_SCALE_FACTOR = 1.5f;
public InternalWebViewSDK9(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX,
int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
final boolean returnValue = super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX,
scrollRangeY, maxOverScrollX, maxOverScrollY, isTouchEvent);
// Does all of the hard work...
OverscrollHelper.overScrollBy(PullToRefreshWebView.this, deltaX, scrollX, deltaY, scrollY,
getScrollRange(), OVERSCROLL_FUZZY_THRESHOLD, OVERSCROLL_SCALE_FACTOR, isTouchEvent);
return returnValue;
}
private int getScrollRange() {
return (int) Math.max(0, Math.floor(mRefreshableView.getContentHeight() * mRefreshableView.getScale())
- (getHeight() - getPaddingBottom() - getPaddingTop()));
}
}
}
|
[
"390553699@qq.com"
] |
390553699@qq.com
|
b7ae16fe8f3cc4a1ddd17ee62fd58272a4819cdb
|
9ae5463f17f8864e39dafd194fb29a726a9c0823
|
/dynmedias/src/main/java/com/dylan/effect/filter/WaterColorFilter.java
|
e1aa24f93d50f9370aa77ac5058d46989f89c337
|
[
"MIT"
] |
permissive
|
yunsean/SharedLibrary
|
b065b992d861ed5fcf1c68ebfa317d1a8b0c0815
|
e3236a8daa7677d93b0aa011881838ad0ff82f77
|
refs/heads/master
| 2021-08-16T16:21:22.020057
| 2021-07-31T14:33:00
| 2021-07-31T14:33:00
| 143,262,412
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,956
|
java
|
package com.dylan.effect.filter;
import android.content.res.Resources;
import android.opengl.GLES20;
import java.nio.ByteBuffer;
/**
* Created by aiya on 2017/9/23.
*/
public class WaterColorFilter extends BaseFilter {
private int mGLWidth;
private int mGLHeight;
private int mGLNoise;
private int mNoiseTextureId;
public WaterColorFilter(Resources res){
super(res,"shader/base.vert","shader/effect/water_color.frag");
}
@Override
protected void onCreate() {
super.onCreate();
mGLWidth= GLES20.glGetUniformLocation(mGLProgram,"uWidth");
mGLHeight= GLES20.glGetUniformLocation(mGLProgram,"uHeight");
mGLNoise= GLES20.glGetUniformLocation(mGLProgram,"uNoiseTexture");
}
@Override
protected void onSizeChanged(int width, int height) {
super.onSizeChanged(width, height);
mNoiseTextureId=createNoiseTexture(width,height);
}
@Override
protected void onSetExpandData() {
super.onSetExpandData();
GLES20.glUniform1f(mGLWidth,mWidth);
GLES20.glUniform1f(mGLHeight,mHeight);
}
@Override
protected void onBindTexture(int textureId) {
super.onBindTexture(textureId);
GLES20.glActiveTexture(GLES20.GL_TEXTURE1);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D,mNoiseTextureId);
GLES20.glUniform1i(mGLNoise,1);
}
private int createNoiseTexture(int width,int height){
int[] tempTexture=new int[1];
GLES20.glGenTextures(1,tempTexture,0);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D,tempTexture[0]);
int length=width*height*3;
byte[] data=new byte[length];
for (int i=0;i<length;i++){
data[i]= (byte) (Math.random()*8-4);
}
GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D,0, GLES20.GL_RGB,width,height,0, GLES20.GL_RGB, GLES20.GL_UNSIGNED_BYTE, ByteBuffer.wrap(data));
return tempTexture[0];
}
}
|
[
"yunsean@163.com"
] |
yunsean@163.com
|
d280d7e7d27bbc59c91a0b6b4f376aaa18b1f91a
|
3ca53c13d2953805c00406476ceda9684887a8ad
|
/src/com/iwxxm/common/LocalNamePropertyType.java
|
2080f5e135c1272180d693295fd099227b0f7146
|
[] |
no_license
|
yw2017051032/tac2iwxxm
|
ae93c12b08b7316cd59de032d4ae2e8082bc6c0b
|
5a08cb9ecd0833fd4435bf6db81a2b8126380ec1
|
refs/heads/master
| 2020-03-17T03:03:06.671868
| 2018-06-05T16:55:59
| 2018-06-05T17:06:03
| 133,217,637
| 3
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,995
|
java
|
//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2018.04.04 时间 10:18:30 PM CST
//
package com.iwxxm.common;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>LocalName_PropertyType complex type的 Java 类。
*
* <p>以下模式片段指定包含在此类中的预期内容。
*
* <pre>
* <complexType name="LocalName_PropertyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence minOccurs="0">
* <element ref="{http://www.isotc211.org/2005/gco}LocalName"/>
* </sequence>
* <attribute ref="{http://www.isotc211.org/2005/gco}nilReason"/>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LocalName_PropertyType", namespace = "http://www.isotc211.org/2005/gco", propOrder = {
"localName"
})
public class LocalNamePropertyType {
@XmlElement(name = "LocalName")
protected CodeType localName;
@XmlAttribute(name = "nilReason", namespace = "http://www.isotc211.org/2005/gco")
protected List<String> nilReason;
/**
* 获取localName属性的值。
*
* @return
* possible object is
* {@link CodeType }
*
*/
public CodeType getLocalName() {
return localName;
}
/**
* 设置localName属性的值。
*
* @param value
* allowed object is
* {@link CodeType }
*
*/
public void setLocalName(CodeType value) {
this.localName = value;
}
/**
* Gets the value of the nilReason 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 nilReason property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getNilReason().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getNilReason() {
if (nilReason == null) {
nilReason = new ArrayList<String>();
}
return this.nilReason;
}
}
|
[
"852406820@qq.com"
] |
852406820@qq.com
|
e2a0ce90e1bfa537a6fed864d3c9045abc36908b
|
71975999c9d702a0883ec9038ce3e76325928549
|
/src2.4.0/src/main/java/defpackage/fm.java
|
8637583c778f9e198ed13ffff4603672b4df4cad
|
[] |
no_license
|
XposedRunner/PhysicalFitnessRunner
|
dc64179551ccd219979a6f8b9fe0614c29cd61de
|
cb037e59416d6c290debbed5ed84c956e705e738
|
refs/heads/master
| 2020-07-15T18:18:23.001280
| 2019-09-02T04:21:34
| 2019-09-02T04:21:34
| 205,620,387
| 3
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,336
|
java
|
package defpackage;
import android.support.v7.widget.RecyclerView.Adapter;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.ximalaya.ting.android.opensdk.model.track.Track;
import java.util.List;
/* compiled from: AlbumListAdapter */
/* renamed from: fm */
public class fm extends Adapter<O000000o> {
private List<Track> O000000o;
private O00000Oo O00000Oo;
private int O00000o;
private int O00000o0;
private int O00000oO;
/* compiled from: AlbumListAdapter */
/* renamed from: fm$1 */
class 1 implements OnClickListener {
final /* synthetic */ Track O000000o;
final /* synthetic */ fm O00000Oo;
1(fm fmVar, Track track) {
}
public void onClick(View view) {
}
}
/* compiled from: AlbumListAdapter */
/* renamed from: fm$2 */
class 2 implements OnClickListener {
final /* synthetic */ O000000o O000000o;
final /* synthetic */ fm O00000Oo;
2(fm fmVar, O000000o o000000o) {
}
public void onClick(View view) {
}
}
/* compiled from: AlbumListAdapter */
/* renamed from: fm$O000000o */
class O000000o extends ViewHolder {
final /* synthetic */ fm O000000o;
private TextView O00000Oo;
private TextView O00000o;
private TextView O00000o0;
private ImageView O00000oO;
private ImageView O00000oo;
public O000000o(fm fmVar, View view) {
}
}
public fm(O00000Oo o00000Oo, int i) {
}
public O000000o O000000o(ViewGroup viewGroup, int i) {
return null;
}
public void O000000o(int i) {
}
public void O000000o(long j) {
}
public void O000000o(O000000o o000000o, int i) {
}
public void O000000o(List<Track> list) {
}
public int getItemCount() {
return 0;
}
public /* synthetic */ void onBindViewHolder(ViewHolder viewHolder, int i) {
}
public /* synthetic */ ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return null;
}
}
|
[
"xr_master@mail.com"
] |
xr_master@mail.com
|
f470c5868d210934a43c8246087f92b536b2bfc2
|
066dcf95d870eb4537f148c2ff74fbed6820630b
|
/src/API/amazon/mws/xml/JAXB/Pseudonym.java
|
263eacf39cd2baf35f2e80f0ed5fcbacae08413f
|
[
"MIT"
] |
permissive
|
VDuda/SyncRunner-Pub
|
0e24f864d24aa9d6112ba225156b7c765596186b
|
ab6b291178c08754b84f60d39e54b3ae889d476b
|
refs/heads/master
| 2022-11-17T03:43:38.054868
| 2022-08-11T15:02:11
| 2022-08-11T15:02:11
| 28,209,628
| 3
| 5
|
MIT
| 2022-10-22T16:10:55
| 2014-12-19T01:45:41
|
Java
|
UTF-8
|
Java
| false
| false
| 3,147
|
java
|
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// 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: 2014.05.03 at 03:15:27 PM EDT
//
package API.amazon.mws.xml.JAXB;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="value" type="{}ItemStringNotNull" minOccurs="0"/>
* </sequence>
* <attribute name="delete" type="{}BooleanType" />
* <attribute name="language" type="{}LanguageType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"value"
})
@XmlRootElement(name = "pseudonym")
public class Pseudonym {
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
protected String value;
@XmlAttribute(name = "delete")
protected BooleanType delete;
@XmlAttribute(name = "language")
protected LanguageType language;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the delete property.
*
* @return
* possible object is
* {@link BooleanType }
*
*/
public BooleanType getDelete() {
return delete;
}
/**
* Sets the value of the delete property.
*
* @param value
* allowed object is
* {@link BooleanType }
*
*/
public void setDelete(BooleanType value) {
this.delete = value;
}
/**
* Gets the value of the language property.
*
* @return
* possible object is
* {@link LanguageType }
*
*/
public LanguageType getLanguage() {
return language;
}
/**
* Sets the value of the language property.
*
* @param value
* allowed object is
* {@link LanguageType }
*
*/
public void setLanguage(LanguageType value) {
this.language = value;
}
}
|
[
"volod2010@gmail.com"
] |
volod2010@gmail.com
|
2a5aa80c8d8caecf6f86eb6839cd4f3f8bc25a3a
|
38287b8e62016230551840c9d4c8fbd4e473f420
|
/app/src/main/java/com/hxqc/mall/reactnative/nativeui/slider/SliderLayoutForJS.java
|
44d769ad1c42b93af0d9d71ebba84d4ac168b90f
|
[] |
no_license
|
isliulin/Mall3
|
f950f87376b9573ee196b762eb1833d8b5c145d8
|
b27f73feb17e93cb6fd0d4991fd99c1037dd0427
|
refs/heads/master
| 2023-03-15T23:24:33.795603
| 2017-02-16T07:03:58
| 2017-02-16T07:03:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,457
|
java
|
package com.hxqc.mall.reactnative.nativeui.slider;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import com.daimajia.slider.library.Animations.DescriptionAnimation;
import com.daimajia.slider.library.Indicators.PagerIndicator;
import com.daimajia.slider.library.SliderAdapter;
import com.daimajia.slider.library.SliderLayout;
import com.daimajia.slider.library.SliderTypes.BaseSliderView;
import com.daimajia.slider.library.SliderTypes.DefaultSliderView;
import com.daimajia.slider.library.Tricks.ViewPagerEx;
import com.google.gson.reflect.TypeToken;
import com.hxqc.mall.core.model.HomeSlideADModel;
import com.hxqc.mall.core.model.auto.AutoItem;
import com.hxqc.mall.core.util.activityutil.ActivitySwitcher;
import com.hxqc.util.DebugLog;
import com.hxqc.util.JSONUtils;
import java.util.ArrayList;
import hxqc.mall.R;
/**
* Author: wanghao
* Date: 2016-03-26
* FIXME 轮播 for js view 暂时简单封装
* Todo
*/
public class SliderLayoutForJS extends RelativeLayout implements BaseSliderView.OnSliderClickListener {
ArrayList< HomeSlideADModel > homeSlideADModels;
SliderLayout mSliderView;
Context c;
final private String TAG = "SliderLayoutForJS";
public SliderLayoutForJS(Context context) {
super(context);
this.c = context;
initLayout();
}
public SliderLayoutForJS(Context context, AttributeSet attrs) {
super(context, attrs);
this.c = context;
initLayout();
}
private void initLayout() {
LayoutInflater.from(getContext()).inflate(R.layout.js_slider_view, this);
mSliderView = (SliderLayout) findViewById(R.id.slider_home_js);
mSliderView.addOnPageChangeListener(new ViewPagerEx.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
DebugLog.e(TAG, "SliderLayoutForJS onPageScrolled position: " + position+" positionOffset: "+positionOffset+" positionOffsetPixels: "+positionOffsetPixels);
SliderAdapter realAdapter = mSliderView.getRealAdapter();
if (realAdapter!=null)
{
DebugLog.e(TAG,"onPageScrolled realAdapter.getCount()"+ realAdapter.getCount());
}
}
@Override
public void onPageSelected(int position) {
DebugLog.e(TAG, "SliderLayoutForJS onPageSelected position: " + position);
SliderAdapter realAdapter = mSliderView.getRealAdapter();
if (realAdapter!=null)
{
DebugLog.e(TAG,"onPageSelected realAdapter.getCount()"+ realAdapter.getCount());
}
}
@Override
public void onPageScrollStateChanged(int state) {
DebugLog.e(TAG, "SliderLayoutForJS onPageScrollStateChanged state: " + state);
SliderAdapter realAdapter = mSliderView.getRealAdapter();
if (realAdapter!=null)
{
DebugLog.e(TAG,"onPageScrollStateChanged realAdapter.getCount()"+ realAdapter.getCount());
}
}
});
}
public void onResume() {
if (mSliderView != null)
mSliderView.startAutoCycle();
}
public void onStop() {
if (mSliderView != null)
mSliderView.stopAutoCycle();
}
@Override
public void onSliderClick(BaseSliderView slider) {
HomeSlideADModel item = slider.getBundle().getParcelable("extra");
sliderClickOperate(item);
}
public void setData(String response) {
DebugLog.e(TAG, "SliderLayoutForJS: " + response);
if (TextUtils.isEmpty(response)) {
defaultSliderView();
} else {
ArrayList< HomeSlideADModel > homeSlideADModels = JSONUtils.fromJson(response, new TypeToken<
ArrayList< HomeSlideADModel > >() {
});
if (homeSlideADModels.size() > 8) {
homeSlideADModels.subList(0, 8);
}
if (homeSlideADModels.size() > 0) {
sliderAD(homeSlideADModels);
} else {
defaultSliderView();
}
}
}
private void defaultSliderView() {
mSliderView.setSliderOnlyOneView("");
mSliderView.setEnabled(false);
mSliderView.setFocusableInTouchMode(false);
mSliderView.setFilterTouchesWhenObscured(false);
mSliderView.setIndicatorVisibility(PagerIndicator.IndicatorVisibility.Invisible);
}
private void sliderAD(ArrayList< HomeSlideADModel > dataes) {
if (dataes.size() == 1) {
final HomeSlideADModel item = dataes.get(0);
mSliderView.setSliderOnlyOneView(item.slide);
mSliderView.setEnabled(false);
mSliderView.setFocusableInTouchMode(false);
mSliderView.setFilterTouchesWhenObscured(false);
mSliderView.setIndicatorVisibility(PagerIndicator.IndicatorVisibility.Invisible);
mSliderView.sliderOnlyOneView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
sliderClickOperate(item);
}
});
} else {
// mSliderView.setEnabled(true);
// mSliderView.setFocusableInTouchMode(true);
// mSliderView.setFilterTouchesWhenObscured(true);
// mSliderView.sliderOnlyOneView.setVisibility(GONE);
// mSliderView.setIndicatorVisibility(PagerIndicator.IndicatorVisibility.Visible);
for (int i = 0; i < dataes.size(); i++) {
HomeSlideADModel item = dataes.get(i);
DebugLog.i("test_slider", item.toString());
DebugLog.e(TAG, "sliderAD: " + item.slide);
DefaultSliderView textSliderView = new DefaultSliderView(c);
// initialize a SliderLayout
textSliderView.empty(R.drawable.sliderimage_pic_normal_slider).error(R.drawable.sliderimage_pic_normal_slider);
textSliderView.description(i + "").image(item.slide).
setScaleType(BaseSliderView.ScaleType.Fit).setOnSliderClickListener(this);
//add your extra information
textSliderView.bundle(new Bundle());
textSliderView.getBundle().putParcelable("extra", item);
mSliderView.addSlider(textSliderView);
}
mSliderView.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
mSliderView.setCustomAnimation(new DescriptionAnimation());
mSliderView.setDuration(5000);
}
}
private void sliderClickOperate(HomeSlideADModel item) {
if (item != null && item.isPromotion()) {
ActivitySwitcher.toEventDetail(c, item.url);
} else {
assert item != null;
if (item.isSeckill()) {
ActivitySwitcher.toAutoItemDetail(c, AutoItem.AUTO_PROMOTION, item.getID(), "");
} else {
ActivitySwitcher.toAutoItemDetail(c, AutoItem.AUTO_COMMON, item.getID(), "");
}
}
}
}
|
[
"1239251224@qq.com"
] |
1239251224@qq.com
|
91de14765e1248a9c8068cc3bba590b4e608a128
|
66669c0c353ec085d8b8ffbefd22cf2c76ac1699
|
/JX_KNY/src/com/yunda/jx/pjwz/wellpartsmanage/repairedpartswh/action/PartsWHRegisterAction.java
|
638e387edb279fd9c0c91071de7de46163421e48
|
[] |
no_license
|
wujialing1988/jx_kny
|
818d971df901b7797c755c6d1c8e4bfafe0244be
|
ac784a92429691145cb0c80df3c846da13d9eb35
|
refs/heads/master
| 2021-09-03T18:45:48.762244
| 2018-01-11T05:09:20
| 2018-01-11T05:09:20
| 108,991,740
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,350
|
java
|
package com.yunda.jx.pjwz.wellpartsmanage.repairedpartswh.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.codehaus.jackson.map.JsonMappingException;
import com.yunda.frame.common.Constants;
import com.yunda.frame.common.JXBaseAction;
import com.yunda.frame.common.Page;
import com.yunda.frame.common.SearchEntity;
import com.yunda.frame.util.ExceptionUtil;
import com.yunda.frame.util.JSONUtil;
import com.yunda.frame.util.StringUtil;
import com.yunda.jx.pjwz.partsmanage.entity.PartsAccount;
import com.yunda.jx.pjwz.wellpartsmanage.repairedpartswh.entity.PartsWHRegister;
import com.yunda.jx.pjwz.wellpartsmanage.repairedpartswh.manager.PartsWHRegisterManager;
/**
*
* <li>标题: 机车检修管理信息系统
* <li>说明: PartsWHRegister控制器,修竣配件入库单
* <li>创建人:程梅
* <li>创建日期:2015-10-22
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* <li>版权: Copyright (c) 2008 运达科技公司
* @author 信息系统事业部检修系统项目组
* @version 1.0
*/
@SuppressWarnings("serial")
public class PartsWHRegisterAction extends JXBaseAction<PartsWHRegister, PartsWHRegister, PartsWHRegisterManager> {
/** 日志工具 */
@SuppressWarnings("unused")
private Logger logger = Logger.getLogger(getClass().getName());
/**
*
* <li>说明:分页查询【用于手持终端】
* <li>创建人:程梅
* <li>创建日期:2015-10-21
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws JsonMappingException
* @throws IOException
*/
public void findPageList () throws JsonMappingException, IOException {
Map<String, Object> map = new HashMap<String,Object>();
HttpServletRequest req = getRequest();
try {
String searchJson = StringUtil.nvlTrim( req.getParameter("entityJson"), Constants.EMPTY_JSON_OBJECT );
PartsWHRegister objEntity = (PartsWHRegister)JSONUtil.read(searchJson, entitySearch.getClass());
SearchEntity<PartsWHRegister> searchEntity = new SearchEntity<PartsWHRegister>(objEntity, getStart(), getLimit(), getOrders());
Page<PartsWHRegister> page = this.manager.findPageList(searchEntity);
map = page.extjsResult();
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(getResponse(), map);
}
}
/**
*
* <li>说明:修竣配件入库登记【用于手持终端】
* <li>创建人:程梅
* <li>创建日期:2015-10-10
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws Exception
*/
public void savePartsWHRegister() throws Exception{
Map<String, Object> map = new HashMap<String,Object>();
try {
HttpServletRequest req = getRequest();
String registerJson = StringUtil.nvlTrim( req.getParameter("registerData"), Constants.EMPTY_JSON_OBJECT );
PartsWHRegister register = (PartsWHRegister)JSONUtil.read(registerJson, PartsWHRegister.class);
if(StringUtil.isNullOrBlank(register.getIdx())) this.manager.savePartsWHRegister(register);
else this.manager.updatePartsWHRegister(register);
map.put(Constants.SUCCESS, true);
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(this.getResponse(), map);
}
}
/**
*
* <li>说明:撤销修竣配件入库登记
* <li>创建人:程梅
* <li>创建日期:2015-10-13
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws Exception
*/
public void updateWHRegisterForCancel() throws Exception{
Map<String, Object> map = new HashMap<String,Object>();
try {
this.manager.updateWHRegisterForCancel(id);
map.put(Constants.SUCCESS, true);
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(this.getResponse(), map);
}
}
/**
* 【已处理】FIXME 代码审查[何涛2016-04-08]:代码分层,action层、或者webservice接口方法,只用于接收参数,将业务逻辑处理放到manager。
* <li>说明:根据配件编号和规格型号查询最新的【除在库以外的在册】配件周转台账信息(除在库和非在册外)
* <li>创建人:程梅
* <li>创建日期:2015-10-27
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws Exception
*/
public void getPartsAccount() throws Exception{
Map<String, Object> map = new HashMap<String,Object>();
try {
String searchJson = StringUtil.nvlTrim( getRequest().getParameter("searchJson"), Constants.EMPTY_JSON_OBJECT );
PartsAccount account = (PartsAccount)JSONUtil.read(searchJson, PartsAccount.class);
account = this.manager.getPartsAccount(account);
map.put("account", account) ;
map.put(Constants.SUCCESS, true);
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(this.getResponse(), map);
}
}
/**
*
* <li>说明:根据配件编号和规格型号查询【除在库、在修以外的在册】配件周转台账信息列表
* <li>创建人:程梅
* <li>创建日期:2016-8-19
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws Exception
*/
public void getPartsAccountList() throws Exception {
Map<String, Object> map = new HashMap<String,Object>();
try {
String searchJson = StringUtil.nvlTrim( getRequest().getParameter("searchJson"), "{}" );
PartsAccount account = (PartsAccount)JSONUtil.read(searchJson, PartsAccount.class);
List<PartsAccount> accountList = this.manager.getPartsAccountList(account);
map.put("accountList", accountList) ;
map.put(Constants.SUCCESS, true);
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(this.getResponse(), map);
}
}
/**
* <li>说明:修竣配件入库登记【web端/手持终端批量入库】
* <li>创建人:程梅
* <li>创建日期:2015-11-9
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws Exception
*/
public void savePartsWHRegisterBatch() throws Exception{
Map<String, Object> map = new HashMap<String,Object>();
try {
String registerData = StringUtil.nvlTrim( getRequest().getParameter("registerDatas"), "[]" );
PartsWHRegister[] registers = (PartsWHRegister[])JSONUtil.read(registerData, PartsWHRegister[].class);
this.manager.savePartsWHRegisterBatch(registers);
map.put(Constants.SUCCESS, true);
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(this.getResponse(), map);
}
}
/**
*
* <li>说明:修竣配件入库登记确认
* <li>创建人:程梅
* <li>创建日期:2015-12-12
* <li>修改人:
* <li>修改日期:
* <li>修改内容:
* @throws Exception
*/
public void updatePartsWHRegisterForCheck() throws Exception{
Map<String, Object> map = new HashMap<String,Object>();
try {
this.manager.updatePartsWHRegisterForCheck(ids);
map.put(Constants.SUCCESS, true);
} catch (Exception e) {
ExceptionUtil.process(e, logger, map);
} finally {
JSONUtil.write(this.getResponse(), map);
}
}
}
|
[
"wujialing@wujialing-PC"
] |
wujialing@wujialing-PC
|
6f1a7c178a4e890e6c06c2fc0e0b45bd9f9ecba9
|
9254e7279570ac8ef687c416a79bb472146e9b35
|
/ddoscoo-20171228/src/main/java/com/aliyun/ddoscoo20171228/models/DescribeLayer7CCRulesRequest.java
|
88c5f1eff96205433ae507a15085ffb4629396ca
|
[
"Apache-2.0"
] |
permissive
|
lquterqtd/alibabacloud-java-sdk
|
3eaa17276dd28004dae6f87e763e13eb90c30032
|
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
|
refs/heads/master
| 2023-08-12T13:56:26.379027
| 2021-10-19T07:22:15
| 2021-10-19T07:22:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,840
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ddoscoo20171228.models;
import com.aliyun.tea.*;
public class DescribeLayer7CCRulesRequest extends TeaModel {
@NameInMap("SourceIp")
public String sourceIp;
@NameInMap("ResourceGroupId")
public String resourceGroupId;
@NameInMap("Domain")
@Validation(required = true)
public String domain;
@NameInMap("Offset")
@Validation(required = true)
public Integer offset;
@NameInMap("PageSize")
@Validation(required = true)
public String pageSize;
public static DescribeLayer7CCRulesRequest build(java.util.Map<String, ?> map) throws Exception {
DescribeLayer7CCRulesRequest self = new DescribeLayer7CCRulesRequest();
return TeaModel.build(map, self);
}
public DescribeLayer7CCRulesRequest setSourceIp(String sourceIp) {
this.sourceIp = sourceIp;
return this;
}
public String getSourceIp() {
return this.sourceIp;
}
public DescribeLayer7CCRulesRequest setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public DescribeLayer7CCRulesRequest setDomain(String domain) {
this.domain = domain;
return this;
}
public String getDomain() {
return this.domain;
}
public DescribeLayer7CCRulesRequest setOffset(Integer offset) {
this.offset = offset;
return this;
}
public Integer getOffset() {
return this.offset;
}
public DescribeLayer7CCRulesRequest setPageSize(String pageSize) {
this.pageSize = pageSize;
return this;
}
public String getPageSize() {
return this.pageSize;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
2cf034d2b752663cdfa5372e81d6f2de1d99af42
|
ba1f14dde849d3152cf0e2735776b91a2b7b406a
|
/EurekaAppOracleWithMyBatis/src/pe/egcc/eureka/app/view/EmpleadoConsultas.java
|
1c09dfc6c2eb9b6ac692a8bc9fe743d3783dc1b5
|
[] |
no_license
|
gcoronelc/EurekaApps
|
c49b5d34271abb8a90ecdb3d8760b86e7b118b31
|
4511fb18fec7f443623b28a255b41725cdfb2bc7
|
refs/heads/master
| 2020-04-24T12:00:27.498148
| 2015-07-13T01:23:21
| 2015-07-13T01:23:21
| 32,419,703
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,501
|
java
|
package pe.egcc.eureka.app.view;
import java.util.List;
import javax.swing.JOptionPane;
import pe.egcc.eureka.app.listener.PanelCriterioListener;
import pe.egcc.eureka.app.util.MyMessage;
/**
*
* @author Gustavo Coronel
* @blog gcoronelc.blogspot.com
*/
public class EmpleadoConsultas extends javax.swing.JInternalFrame implements PanelCriterioListener{
public EmpleadoConsultas() {
initComponents();
panelCriterio.setPanelListener(this);
}
/**
* This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
panelCriterio = new pe.egcc.eureka.app.view.PanelCriterioEmpleados();
setClosable(true);
setIconifiable(true);
setMaximizable(true);
setResizable(true);
setTitle("CONSULTA DE EMPLEADOS");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(panelCriterio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(panelCriterio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 367, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private pe.egcc.eureka.app.view.PanelCriterioEmpleados panelCriterio;
// End of variables declaration//GEN-END:variables
@Override
public void onNuevaConsulta(List lista) {
MyMessage.showInfo(null, "Son " + lista.size() + " empleados.");
}
@Override
public void onExportarExcel() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onExportarCSV() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onNuevo() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onEditar() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onEliminar() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onSalir() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onExportarPDF() {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
}
|
[
"gcoronelc@gmail.com"
] |
gcoronelc@gmail.com
|
f78a1aca44fa8d3cde27d98da5d6f23492d083bb
|
5d78e0549229fa5519672b37ff8aaa35b34f5711
|
/src/com/yqx/entity/Contract.java
|
45c528603953985775bc3febe047609a73e8c4b1
|
[] |
no_license
|
YangChingyuk/hr2.0
|
81942d7805780c0bbee2998408600cadcf935fc3
|
25f66fc4c16b2d62b6576c0924839520c05fb58f
|
refs/heads/master
| 2020-04-26T17:40:00.830561
| 2019-03-04T10:10:14
| 2019-03-05T00:11:02
| null | 0
| 0
| null | null | null | null |
GB18030
|
Java
| false
| false
| 2,111
|
java
|
package com.yqx.entity;
/*
* 合同类
* */
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
public class Contract {
private int id;//合同id
private int empId;//员工编号
private String code;//合同编号
@JSONField(format="yyyy-MM-dd")
private Date beginDate;//开始时间
@JSONField(format="yyyy-MM-dd")
private Date endDate;//结束时间
private String job;//职位
private String content;//内容
private String attachment;//附件文档
public Contract(int id, int empId, String code, Date beginDate, Date endDate, String job, String content,
String attachment) {
super();
this.id = id;
this.empId = empId;
this.code = code;
this.beginDate = beginDate;
this.endDate = endDate;
this.job = job;
this.content = content;
this.attachment = attachment;
}
public Contract() {
super();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getEmpId() {
return empId;
}
public void setEmpId(int empId) {
this.empId = empId;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public Date getBeginDate() {
return beginDate;
}
public void setBeginDate(Date beginDate) {
this.beginDate = beginDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public String getJob() {
return job;
}
public void setJob(String job) {
this.job = job;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public String getAttachment() {
return attachment;
}
public void setAttachment(String attachment) {
this.attachment = attachment;
}
@Override
public String toString() {
return "Contract [id=" + id + ", empId=" + empId + ", code=" + code + ", beginDate=" + beginDate + ", endDate="
+ endDate + ", job=" + job + ", content=" + content + ", attachment=" + attachment + "]";
}
}
|
[
"Administrator@80DR054LIU0TTAN"
] |
Administrator@80DR054LIU0TTAN
|
40842caff6b6bd14a3d663da3215be24030e9045
|
9f7994ed0b8caa3014c0b6254d5ccfaeb97dafd4
|
/ide-plugins/eclipse/tags/2.0.1/org.phpmaven.eclipse.core/src/org/phpmaven/eclipse/core/internal/phpunit/LineCoverage.java
|
cc1193afa73a2df9409a0a755936b677d63811ed
|
[
"Apache-2.0"
] |
permissive
|
tomask-de/maven-php-plugin
|
fe830c742d4cc980094531358c215ecb063aa814
|
5bcf36c6d66ff3aa18a11968c79d18eec4164aeb
|
refs/heads/master
| 2021-01-18T09:04:20.028784
| 2012-08-04T09:10:41
| 2013-06-20T16:48:01
| 4,183,438
| 0
| 1
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,487
|
java
|
/*******************************************************************************
* Copyright (c) 2011 PHP-Maven.org
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* PHP-Maven.org
*******************************************************************************/
package org.phpmaven.eclipse.core.internal.phpunit;
import org.phpmaven.eclipse.core.phpunit.ILineCoverage;
/**
* a line coverage
*/
public final class LineCoverage implements ILineCoverage {
/** the target line number */
private int lineNumber;
/** number of calls */
private int calls;
/**
*
*/
public LineCoverage() {
// empty
}
/**
* @return the lineNumber
*/
@Override
public int getLineNumber() {
return this.lineNumber;
}
/**
* @param lineNumber
* the lineNumber to set
*/
public void setLineNumber(final int lineNumber) {
this.lineNumber = lineNumber;
}
/**
* @return the calls
*/
@Override
public int getCalls() {
return this.calls;
}
/**
* @param calls
* the calls to set
*/
public void setCalls(final int calls) {
this.calls = calls;
}
}
|
[
"mep_eisen@web.de"
] |
mep_eisen@web.de
|
341421fcbbbbc4c23dc34a3a220abc79ef8c6e73
|
369270a14e669687b5b506b35895ef385dad11ab
|
/jdk.internal.vm.compiler/org.graalvm.compiler.phases/src/org/graalvm/compiler/phases/schedule/MemoryScheduleVerification.java
|
0832aae421df62fa7ef68e2aeee122548514233d
|
[] |
no_license
|
zcc888/Java9Source
|
39254262bd6751203c2002d9fc020da533f78731
|
7776908d8053678b0b987101a50d68995c65b431
|
refs/heads/master
| 2021-09-10T05:49:56.469417
| 2018-03-20T06:26:03
| 2018-03-20T06:26:03
| 125,970,208
| 3
| 3
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,228
|
java
|
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.graalvm.compiler.phases.schedule;
import java.util.List;
import java.util.Set;
import org.graalvm.compiler.core.common.CollectionsFactory;
import org.graalvm.compiler.core.common.LocationIdentity;
import org.graalvm.compiler.core.common.cfg.BlockMap;
import org.graalvm.compiler.core.common.cfg.Loop;
import org.graalvm.compiler.graph.Node;
import org.graalvm.compiler.nodes.AbstractBeginNode;
import org.graalvm.compiler.nodes.AbstractMergeNode;
import org.graalvm.compiler.nodes.LoopBeginNode;
import org.graalvm.compiler.nodes.PhiNode;
import org.graalvm.compiler.nodes.cfg.Block;
import org.graalvm.compiler.nodes.cfg.HIRLoop;
import org.graalvm.compiler.nodes.memory.FloatingReadNode;
import org.graalvm.compiler.nodes.memory.MemoryCheckpoint;
import org.graalvm.compiler.nodes.memory.MemoryNode;
import org.graalvm.compiler.nodes.memory.MemoryPhiNode;
import org.graalvm.compiler.phases.graph.ReentrantBlockIterator;
import org.graalvm.compiler.phases.graph.ReentrantBlockIterator.BlockIteratorClosure;
public final class MemoryScheduleVerification extends BlockIteratorClosure<Set<FloatingReadNode>> {
private final BlockMap<List<Node>> blockToNodesMap;
public static boolean check(Block startBlock, BlockMap<List<Node>> blockToNodesMap) {
ReentrantBlockIterator.apply(new MemoryScheduleVerification(blockToNodesMap), startBlock);
return true;
}
private MemoryScheduleVerification(BlockMap<List<Node>> blockToNodesMap) {
this.blockToNodesMap = blockToNodesMap;
}
@Override
protected Set<FloatingReadNode> getInitialState() {
return CollectionsFactory.newSet();
}
@Override
protected Set<FloatingReadNode> processBlock(Block block, Set<FloatingReadNode> currentState) {
AbstractBeginNode beginNode = block.getBeginNode();
if (beginNode instanceof AbstractMergeNode) {
AbstractMergeNode abstractMergeNode = (AbstractMergeNode) beginNode;
for (PhiNode phi : abstractMergeNode.phis()) {
if (phi instanceof MemoryPhiNode) {
MemoryPhiNode memoryPhiNode = (MemoryPhiNode) phi;
addFloatingReadUsages(currentState, memoryPhiNode);
}
}
}
for (Node n : blockToNodesMap.get(block)) {
if (n instanceof MemoryCheckpoint) {
if (n instanceof MemoryCheckpoint.Single) {
MemoryCheckpoint.Single single = (MemoryCheckpoint.Single) n;
processLocation(n, single.getLocationIdentity(), currentState);
} else if (n instanceof MemoryCheckpoint.Multi) {
MemoryCheckpoint.Multi multi = (MemoryCheckpoint.Multi) n;
for (LocationIdentity location : multi.getLocationIdentities()) {
processLocation(n, location, currentState);
}
}
addFloatingReadUsages(currentState, n);
} else if (n instanceof MemoryNode) {
addFloatingReadUsages(currentState, n);
} else if (n instanceof FloatingReadNode) {
FloatingReadNode floatingReadNode = (FloatingReadNode) n;
if (floatingReadNode.getLastLocationAccess() != null && floatingReadNode.getLocationIdentity().isMutable()) {
if (currentState.contains(floatingReadNode)) {
// Floating read was found in the state.
currentState.remove(floatingReadNode);
} else {
throw new RuntimeException("Floating read node " + n + " was not found in the state, i.e., it was killed by a memory check point before its place in the schedule. Block=" +
block + ", block begin: " + block.getBeginNode() + " block loop: " + block.getLoop() + ", " + blockToNodesMap.get(block).get(0));
}
}
}
}
return currentState;
}
private static void addFloatingReadUsages(Set<FloatingReadNode> currentState, Node n) {
for (FloatingReadNode read : n.usages().filter(FloatingReadNode.class)) {
if (read.getLastLocationAccess() == n && read.getLocationIdentity().isMutable()) {
currentState.add(read);
}
}
}
private void processLocation(Node n, LocationIdentity location, Set<FloatingReadNode> currentState) {
assert n != null;
if (location.isImmutable()) {
return;
}
for (FloatingReadNode r : cloneState(currentState)) {
if (r.getLocationIdentity().overlaps(location)) {
// This read is killed by this location.
currentState.remove(r);
}
}
}
@Override
protected Set<FloatingReadNode> merge(Block merge, List<Set<FloatingReadNode>> states) {
Set<FloatingReadNode> result = states.get(0);
for (int i = 1; i < states.size(); ++i) {
result.retainAll(states.get(i));
}
return result;
}
@Override
protected Set<FloatingReadNode> cloneState(Set<FloatingReadNode> oldState) {
Set<FloatingReadNode> result = CollectionsFactory.newSet();
if (oldState != null) {
result.addAll(oldState);
}
return result;
}
@Override
protected List<Set<FloatingReadNode>> processLoop(Loop<Block> loop, Set<FloatingReadNode> initialState) {
HIRLoop l = (HIRLoop) loop;
for (MemoryPhiNode memoryPhi : ((LoopBeginNode) l.getHeader().getBeginNode()).phis().filter(MemoryPhiNode.class)) {
for (FloatingReadNode r : cloneState(initialState)) {
if (r.getLocationIdentity().overlaps(memoryPhi.getLocationIdentity())) {
initialState.remove(r);
}
}
}
return ReentrantBlockIterator.processLoop(this, loop, initialState).exitStates;
}
}
|
[
"841617433@qq.com"
] |
841617433@qq.com
|
3d6459ec997a519d6574061f58a18340123014c2
|
705a9aff99101c02848122c69abf9707b45b993b
|
/app/src/test/java/net/evendanan/bazelplayground/ExampleUnitTest.java
|
f517e277c0a1ed35c73e54d3de26335491364323
|
[] |
no_license
|
menny/BazelPlayground
|
e7cecd2c2f0c64835fbed4fe6e064f8d93b33919
|
c03cc32984c063c0c7f1489ab0860014743206ef
|
refs/heads/master
| 2021-01-10T06:29:31.522221
| 2016-01-20T19:09:15
| 2016-01-20T19:09:15
| 48,195,271
| 4
| 1
| null | 2016-01-05T02:01:37
| 2015-12-17T19:56:15
|
Java
|
UTF-8
|
Java
| false
| false
| 322
|
java
|
package net.evendanan.bazelplayground;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
|
[
"menny@evendanan.net"
] |
menny@evendanan.net
|
69e669e6646b454c7b83bc00ca56a8acf2cfbe54
|
0af8b92686a58eb0b64e319b22411432aca7a8f3
|
/large-multiproject/project61/src/test/java/org/gradle/test/performance61_5/Test61_449.java
|
ec1f23b194f9252e3d5c3a8aafc2042b474ece49
|
[] |
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
| 292
|
java
|
package org.gradle.test.performance61_5;
import static org.junit.Assert.*;
public class Test61_449 {
private final Production61_449 production = new Production61_449("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
}
|
[
"cedric.champeau@gmail.com"
] |
cedric.champeau@gmail.com
|
a24c126c62ee8ae7d745d1f428e86908c32fd834
|
a6ee43db1ecf659c47967d3334ba15e504947a5e
|
/src/main/java/com/leetcode/string_to_integer_atoi/Solution.java
|
f418571b4e25dc5ddd41a65cac964ff7c26f53a2
|
[
"MIT"
] |
permissive
|
magnetic1/leetcode
|
fa3d640b640b4626705272bbcafc31c082fa6138
|
4577439aac13f095bc1f20adec5521520b3bef70
|
refs/heads/master
| 2023-04-21T10:28:10.320263
| 2021-05-06T12:22:57
| 2021-05-06T12:22:57
| 230,269,263
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 365
|
java
|
/**
* Leetcode - string_to_integer_atoi
*/
package com.leetcode.string_to_integer_atoi;
import java.util.*;
import com.ciaoshen.leetcode.util.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
interface Solution {
// use this Object to print the log (call from slf4j facade)
static Logger log = LoggerFactory.getLogger(Solution.class);
}
|
[
"1228740123@qq.com"
] |
1228740123@qq.com
|
23a4d1b5e9455a3b150a8ffc00d84fe9774e9d7c
|
267ea3127a7672045f292280897ff4b82d03b650
|
/sandbox/src/main/java/j/v8/MethodReferences.java
|
098f74cc7f20ed5a866d1cf996c9ff98e5635aa6
|
[] |
no_license
|
ssh352/havana
|
3f3f18bdfc75bece2d429c533cc59b466b91e205
|
d88c1dfedfeba4514ae81ed8678d0eecc098132e
|
refs/heads/master
| 2023-03-09T15:34:19.453648
| 2021-02-25T11:27:58
| 2021-02-25T11:27:58
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 893
|
java
|
package j.v8;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
// https://leanpub.com/whatsnewinjava8/read
public class MethodReferences {
public static class FileFilters {
public static boolean fileIsPdf(File file) { return true; }
public static boolean fileIsTxt(File file) { return true; }
public static boolean fileIsRtf(File file) { return true; }
}
public static void main(String... args) throws IOException {
List<File> files = new LinkedList<>(Arrays.asList(new File("/tmp")));
files.stream().filter(FileFilters::fileIsRtf).forEach(System.out::println);
Files.lines(Paths.get("javag.iml"))
.map(String::trim)
.filter(s -> !s.isEmpty())
.forEach(System.out::println);
}
}
|
[
"galder@zamarreno.com"
] |
galder@zamarreno.com
|
60f7574860b01d2dee60b9858349425a6132362a
|
8f80636831cc695f51a694fa86a059476a807a2c
|
/job-aggregator-db/src/main/java/job/aggregator/db/repository/UserRepository.java
|
35a7a3ef75d6ea692d68688b4caa478f3d7e8a18
|
[] |
no_license
|
vaticorp/job-aggregator
|
077e567be19ff167ffd9482552b15fb65535d5dd
|
40dea0c1a43cb047e7e201d9a07ef2c692c5bb62
|
refs/heads/master
| 2023-01-12T14:24:15.734749
| 2020-03-07T21:05:32
| 2020-03-07T21:05:32
| 239,605,907
| 0
| 0
| null | 2023-01-07T15:15:39
| 2020-02-10T20:25:05
|
HTML
|
UTF-8
|
Java
| false
| false
| 147
|
java
|
package job.aggregator.db.repository;
import job.aggregator.db.po.UserPo;
public interface UserRepository extends AbstractRepository<UserPo> {
}
|
[
"vaticorp@mail.ru"
] |
vaticorp@mail.ru
|
bb7d36187d2a535cdadff3b52a3ba77552a6d82f
|
4da9097315831c8639a8491e881ec97fdf74c603
|
/src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/auth/api/zza.java
|
81bb239d009d84341e31b745998baed215791046
|
[
"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
| 812
|
java
|
package com.google.android.gms.auth.api;
import android.content.Context;
import android.os.Looper;
import com.google.android.gms.common.api.Api;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.internal.ClientSettings;
import com.google.android.gms.internal.auth.zzak;
final class zza extends Api.AbstractClientBuilder<zzak, AuthProxyOptions> {
zza() {
}
public final /* synthetic */ Api.Client buildClient(Context context, Looper looper, ClientSettings clientSettings, Object obj, GoogleApiClient.ConnectionCallbacks connectionCallbacks, GoogleApiClient.OnConnectionFailedListener onConnectionFailedListener) {
return new zzak(context, looper, clientSettings, (AuthProxyOptions) obj, connectionCallbacks, onConnectionFailedListener);
}
}
|
[
"57108396+atul-vyshnav@users.noreply.github.com"
] |
57108396+atul-vyshnav@users.noreply.github.com
|
c250308eb74cc5cbdc87bfe68536c3434b448537
|
3af5a56ef515d2ac92af8d602ca947f662ba0492
|
/bitcamp-java/src/main/java/com/eomcs/corelib/ex07/Exam0110.java
|
046ed2ed33e6be4de19551814a2dd6eb6f4d80d8
|
[] |
no_license
|
asdzxc9395/bitcamp-study-_-
|
1b51f67b1dab3140f576923529128970831778c2
|
2aaa10af371521669d12e20e997d47bf036bcfcf
|
refs/heads/master
| 2020-09-23T12:38:27.319881
| 2020-02-04T10:24:32
| 2020-02-04T10:24:32
| 225,501,860
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,282
|
java
|
// java.util.HashSet 클래스 사용 - 중복저장 불가 테스트
package com.eomcs.corelib.ex07;
import java.util.HashSet;
// HashSet의 특징
// 1) 값을 중복 저장하지 않는다.
// => Set은 집합을 의미한다.
// => 집합에서는 중복값을 허용하지 않는다.
// => 값의 중복 여부는 hashCode()의 리턴 값이 같고, equals()의 검사 결과가 true일 때
// 같은 값으로 취급한다.
// => 즉 중복된 값을 저장하고 싶지 않을 때 HashSet을 사용한다.
// 2) 값을 순서대로 저장하지 않는다.
// => 값 객체의 hashCode()의 리턴 값으로 저장 위치를 계산하기 때문에
// add() 한 순서대로 저장되지 않는다.
// => 그래서 값을 index를 이용하여 꺼낼 수 없다.
public class Exam0110 {
public static void main(String[] args) {
String v1 = new String("aaa");
String v2 = new String("bbb");
String v3 = new String("ccc");
String v4 = new String("ddd");
String v5 = new String("ccc");
HashSet set = new HashSet();
set.add(v1);
set.add(v2);
set.add(v3);
set.add(v4);
set.add(v5);
// v5와 v3는 다른 인스턴스이다. 하지만 두 객체에 들어있는 문자열은 같다.
// String 클래스는 인스턴스가 다르더라도 값이 같으면,
// hashCode()의 리턴 값이 같도록 오버라이딩 하였다.
// 또한 equals()의 리턴 값도 true가 되도록 오버라이딩 하였다.
// HashSet은 값의 중복을 검사할 때 인스턴스의 주소를 비교하지 않고
// hashCode()의 리턴 값과 equals()의 리턴 값으로 판단한다.
// 따라서 v5는 비록 v3와 다른 인스턴스이지만,
// hashCode()의 리턴 값이 같고 두 객체에 대해 equals()를 호출하면
// true가 리턴되기 때문에 같은 값으로 간주하여 중복 저장하지 않는다.
// 결론! v5는 추가되지 않는다.
System.out.println(v3 == v5);
System.out.println(v3.hashCode() + " , " + v5.hashCode());
System.out.println(v3.equals(v5));
print(set);
}
static void print(HashSet set) {
Object[] values = set.toArray();
for (Object value : values) {
System.out.print(value + ", ");
}
System.out.println();
}
}
|
[
"asdzxc9395@naver.com"
] |
asdzxc9395@naver.com
|
8379f81b5e8f70112d55b180f222520e7583e475
|
9e20645e45cc51e94c345108b7b8a2dd5d33193e
|
/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/handlers/skillconditionhandlers/OpFishingReelingSkillCondition.java
|
e95631e9835c7848c54def2931ff97cf1f98de70
|
[] |
no_license
|
Enryu99/L2jMobius-01-11
|
2da23f1c04dcf6e88b770f6dcbd25a80d9162461
|
4683916852a03573b2fe590842f6cac4cc8177b8
|
refs/heads/master
| 2023-09-01T22:09:52.702058
| 2021-11-02T17:37:29
| 2021-11-02T17:37:29
| 423,405,362
| 2
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,405
|
java
|
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package handlers.skillconditionhandlers;
import org.l2jmobius.gameserver.model.StatSet;
import org.l2jmobius.gameserver.model.WorldObject;
import org.l2jmobius.gameserver.model.actor.Creature;
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
import org.l2jmobius.gameserver.model.skills.Skill;
import org.l2jmobius.gameserver.model.zone.ZoneId;
/**
* @author Mobius
*/
public class OpFishingReelingSkillCondition implements ISkillCondition
{
public OpFishingReelingSkillCondition(StatSet params)
{
}
@Override
public boolean canUse(Creature caster, Skill skill, WorldObject target)
{
return caster.isInsideZone(ZoneId.FISHING);
}
}
|
[
"MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b"
] |
MobiusDevelopment@7325c9f8-25fd-504a-9f63-8876acdc129b
|
abed4ffeb4f4ffb32f3e4fee931e1104edcc47a5
|
c8b788d925e1da05c413bea8c7325c195ce4564e
|
/projects/OG-Integration/src/main/java/com/opengamma/integration/tool/enginedebugger/ResolutionFailureTreeTableModel.java
|
f626967afc8d22c94b3bc2e7b0f1b58ca4c81c2c
|
[
"Apache-2.0"
] |
permissive
|
sreeshma/OG-Platform
|
85ef0d90e61095c022bc4ebf54924bef9d923089
|
e17f7f21450544b26e7310c2102499ca08831a59
|
refs/heads/master
| 2020-12-25T02:02:16.964598
| 2013-09-06T07:18:34
| 2013-09-06T07:18:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 4,086
|
java
|
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.tool.enginedebugger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import org.jdesktop.swingx.treetable.AbstractTreeTableModel;
import com.opengamma.OpenGammaRuntimeException;
import com.opengamma.core.id.ExternalIdDisplayComparator;
import com.opengamma.core.id.ExternalIdDisplayComparatorUtils;
import com.opengamma.engine.ComputationTargetSpecification;
import com.opengamma.engine.depgraph.ResolutionFailure;
import com.opengamma.engine.depgraph.ResolutionFailureImpl;
import com.opengamma.engine.target.ComputationTargetReference;
import com.opengamma.engine.target.ComputationTargetReferenceVisitor;
import com.opengamma.engine.target.ComputationTargetRequirement;
import com.opengamma.engine.target.ComputationTargetType;
import com.opengamma.engine.value.ValueProperties;
import com.opengamma.engine.value.ValueRequirement;
import com.opengamma.engine.value.ValueSpecification;
import com.opengamma.id.ExternalId;
import com.opengamma.id.ExternalIdBundle;
import com.opengamma.id.UniqueId;
import com.opengamma.integration.tool.enginedebugger.node.FunctionEntryNode;
import com.opengamma.integration.tool.enginedebugger.node.TreeTableNode;
import com.opengamma.integration.tool.enginedebugger.node.UnsatisfiedResolutionFailuresNode;
import com.opengamma.integration.tool.enginedebugger.node.ValuePropertyNode;
import com.opengamma.integration.tool.enginedebugger.node.ValueSpecificationToRequirementMapNode;
/**
* Tree-table model for browsing ResolutionFailure structures
*/
public class ResolutionFailureTreeTableModel extends AbstractTreeTableModel {
private static final Object LIST_NAME = "Events";
public ResolutionFailureTreeTableModel(List<ResolutionFailure> rootFailures) {
super(topLevelNodes(rootFailures));
}
private static List<ResolutionFailureTreeTableNode> topLevelNodes(List<ResolutionFailure> failures) {
List<ResolutionFailureTreeTableNode> results = new ArrayList<>();
for (ResolutionFailure failure : failures) {
results.add(new ResolutionFailureTreeTableNode((ResolutionFailureImpl) failure));
}
return results;
}
@Override
public int getColumnCount() {
return 4;
}
@Override
public Object getValueAt(Object node, final int column) {
if (node instanceof TreeTableNode) {
TreeTableNode failureNode = (TreeTableNode) node;
return failureNode.getColumn(column);
} else if (node instanceof List) {
if (column == 0) {
return LIST_NAME;
} else {
return null;
}
} else if (node instanceof String) {
switch (column) {
case 0:
return (String)node;
default:
return null;
}
}
return node.getClass().toString() + "(" + node.hashCode() + ")";//*/
}
@Override
public Object getChild(Object parent, final int index) {
if (parent instanceof TreeTableNode) {
TreeTableNode failureNode = (TreeTableNode) parent;
return failureNode.getChildAt(index);
} else if (parent instanceof List) {
List<?> failures = (List<?>) parent;
return failures.get(index);
}
return null;
}
@Override
public int getChildCount(Object parent) {
if (parent instanceof TreeTableNode) {
TreeTableNode failureNode = (TreeTableNode) parent;
return failureNode.getChildCount();
} else if (parent instanceof List) {
List<?> failures = (List<?>) parent;
return failures.size();
}
return 0;
}
@Override
public int getIndexOfChild(Object parent, Object child) {
if (parent instanceof TreeTableNode) {
TreeTableNode failureNode = (TreeTableNode) parent;
return failureNode.getIndexOfChild(child);
} else if (parent instanceof List) {
List<?> failures = (List<?>) parent;
return failures.indexOf(child);
}
return -1;
}
}
|
[
"jim.moores@gmail.com"
] |
jim.moores@gmail.com
|
94860e1af0b74b71c65a64c9601ded944841bb9b
|
8a59fc6208231e2d7843e523cfdc9a3a362813b4
|
/org.caleydo.core/src/org/caleydo/core/io/gui/dataimport/DefineIDParsingDialog.java
|
094975340ed4487511d9ace0a2f8b018e8f6b64a
|
[] |
no_license
|
Caleydo/caleydo
|
17c51b10a465512a0c077e680da648d9a6061136
|
c2f1433baf5bd2c0c5bea8c0990d67e946ed5412
|
refs/heads/develop
| 2020-04-07T06:26:03.464510
| 2016-12-15T17:07:08
| 2016-12-15T17:07:08
| 9,451,506
| 37
| 11
| null | 2016-12-15T17:07:08
| 2013-04-15T15:13:38
|
Java
|
UTF-8
|
Java
| false
| false
| 3,880
|
java
|
/*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
******************************************************************************/
package org.caleydo.core.io.gui.dataimport;
import org.caleydo.core.io.IDTypeParsingRules;
import org.caleydo.core.io.gui.dataimport.widget.IDParsingRulesWidget;
import org.caleydo.core.util.base.ICallback;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
/**
* Dialog for specifying the parsing of IDTypes using regular expressions.
*
* @author Christian Partl
*
*/
public class DefineIDParsingDialog extends Dialog {
/**
* Widget containing all fields for specifying regular expressions for id parsing.
*/
private IDParsingRulesWidget idParsingRulesWidget;
/**
* The parsing rules defined within this dialog. They are created as non-default.
*/
private IDTypeParsingRules idTypeParsingRules;
/**
* Parsing rules that are used as template to fill the widgets.
*/
private IDTypeParsingRules templateIdTypeParsingRules;
/**
* ID that is used as sample to preview effects of regular expressions.
*/
private String idSample;
/**
* @param parentShell
*/
public DefineIDParsingDialog(Shell parentShell) {
super(parentShell);
}
/**
* @param parentShell
* @param templateIdTypeParsingRules
* Parsing rules that are used as template to fill the widgets. This object will not be modified within
* this dialog and differs from the object obtained from {@link #getIdTypeParsingRules()}.
* @param idSample
* ID that is used as sample to preview effects of regular expressions.
*/
public DefineIDParsingDialog(Shell parentShell, IDTypeParsingRules templateIdTypeParsingRules, String idSample) {
super(parentShell);
this.templateIdTypeParsingRules = templateIdTypeParsingRules;
this.idSample = idSample;
}
@Override
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText("Define ID Parsing");
}
@Override
protected Control createDialogArea(Composite parent) {
Composite parentComposite = new Composite(parent, SWT.NONE);
parentComposite.setLayout(new GridLayout(2, false));
idParsingRulesWidget = new IDParsingRulesWidget(parentComposite, templateIdTypeParsingRules, false, idSample,
new ICallback<Boolean>() {
@Override
public void on(Boolean data) {
if (!data) {
DefineIDParsingDialog.this.getButton(OK).setEnabled(false);
} else {
DefineIDParsingDialog.this.getButton(OK).setEnabled(true);
}
}
});
return parent;
}
@Override
protected void okPressed() {
// if (idParsingRulesWidget.getReplacingExpression() == null
// && idParsingRulesWidget.getSubStringExpression() == null) {
// MessageDialog.openError(new Shell(), "Incomplete Parsing Definition",
// "At least one expression (replacing or substring) must be specified.");
// return;
// }
idTypeParsingRules = idParsingRulesWidget.getIDTypeParsingRules();
// idTypeParsingRules.setReplacementExpression(idParsingRulesWidget.getReplacementString(),
// idParsingRulesWidget.getReplacingExpression());
// idTypeParsingRules.setSubStringExpression(idParsingRulesWidget.getSubStringExpression());
idTypeParsingRules.setDefault(false);
super.okPressed();
}
/**
* @return If ok has been pressed, the {@link #idTypeParsingRules}, null otherwise.
*/
public IDTypeParsingRules getIdTypeParsingRules() {
return idTypeParsingRules;
}
}
|
[
"marc.streit@jku.at"
] |
marc.streit@jku.at
|
a4a787bcf8c8cf66ad32cc484635a32dd7c470bf
|
2ad0912a55a505dcb3756588b11ffe578d1c9549
|
/src/main/java/com/eyun/favorite/config/MetricsConfiguration.java
|
15196dfd5c92405f01ae7b465db5ef9356f26224
|
[] |
no_license
|
cloudshop/service-favorite
|
c750a72979363452327e3222d190ec8b713f0c49
|
83f0388215cbf9f5234a0d7f433bbe1d14fb6a46
|
refs/heads/master
| 2020-08-08T14:14:15.119243
| 2018-05-04T00:07:43
| 2018-05-04T00:07:43
| 213,846,809
| 0
| 0
| null | 2019-10-23T03:49:29
| 2019-10-09T07:11:20
|
Java
|
UTF-8
|
Java
| false
| false
| 5,158
|
java
|
package com.eyun.favorite.config;
import io.github.jhipster.config.JHipsterProperties;
import io.github.jhipster.config.metrics.SpectatorLogMetricWriter;
import com.netflix.spectator.api.Registry;
import org.springframework.boot.actuate.autoconfigure.ExportMetricReader;
import org.springframework.boot.actuate.autoconfigure.ExportMetricWriter;
import org.springframework.boot.actuate.metrics.writer.MetricWriter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.netflix.metrics.spectator.SpectatorMetricReader;
import com.codahale.metrics.JmxReporter;
import com.codahale.metrics.JvmAttributeGaugeSet;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.Slf4jReporter;
import com.codahale.metrics.health.HealthCheckRegistry;
import com.codahale.metrics.jvm.*;
import com.ryantenney.metrics.spring.config.annotation.EnableMetrics;
import com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter;
import com.zaxxer.hikari.HikariDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.*;
import javax.annotation.PostConstruct;
import java.lang.management.ManagementFactory;
import java.util.concurrent.TimeUnit;
@Configuration
@EnableMetrics(proxyTargetClass = true)
public class MetricsConfiguration extends MetricsConfigurerAdapter {
private static final String PROP_METRIC_REG_JVM_MEMORY = "jvm.memory";
private static final String PROP_METRIC_REG_JVM_GARBAGE = "jvm.garbage";
private static final String PROP_METRIC_REG_JVM_THREADS = "jvm.threads";
private static final String PROP_METRIC_REG_JVM_FILES = "jvm.files";
private static final String PROP_METRIC_REG_JVM_BUFFERS = "jvm.buffers";
private static final String PROP_METRIC_REG_JVM_ATTRIBUTE_SET = "jvm.attributes";
private final Logger log = LoggerFactory.getLogger(MetricsConfiguration.class);
private MetricRegistry metricRegistry = new MetricRegistry();
private HealthCheckRegistry healthCheckRegistry = new HealthCheckRegistry();
private final JHipsterProperties jHipsterProperties;
private HikariDataSource hikariDataSource;
public MetricsConfiguration(JHipsterProperties jHipsterProperties) {
this.jHipsterProperties = jHipsterProperties;
}
@Autowired(required = false)
public void setHikariDataSource(HikariDataSource hikariDataSource) {
this.hikariDataSource = hikariDataSource;
}
@Override
@Bean
public MetricRegistry getMetricRegistry() {
return metricRegistry;
}
@Override
@Bean
public HealthCheckRegistry getHealthCheckRegistry() {
return healthCheckRegistry;
}
@PostConstruct
public void init() {
log.debug("Registering JVM gauges");
metricRegistry.register(PROP_METRIC_REG_JVM_MEMORY, new MemoryUsageGaugeSet());
metricRegistry.register(PROP_METRIC_REG_JVM_GARBAGE, new GarbageCollectorMetricSet());
metricRegistry.register(PROP_METRIC_REG_JVM_THREADS, new ThreadStatesGaugeSet());
metricRegistry.register(PROP_METRIC_REG_JVM_FILES, new FileDescriptorRatioGauge());
metricRegistry.register(PROP_METRIC_REG_JVM_BUFFERS, new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
metricRegistry.register(PROP_METRIC_REG_JVM_ATTRIBUTE_SET, new JvmAttributeGaugeSet());
if (hikariDataSource != null) {
log.debug("Monitoring the datasource");
hikariDataSource.setMetricRegistry(metricRegistry);
}
if (jHipsterProperties.getMetrics().getJmx().isEnabled()) {
log.debug("Initializing Metrics JMX reporting");
JmxReporter jmxReporter = JmxReporter.forRegistry(metricRegistry).build();
jmxReporter.start();
}
if (jHipsterProperties.getMetrics().getLogs().isEnabled()) {
log.info("Initializing Metrics Log reporting");
Marker metricsMarker = MarkerFactory.getMarker("metrics");
final Slf4jReporter reporter = Slf4jReporter.forRegistry(metricRegistry)
.outputTo(LoggerFactory.getLogger("metrics"))
.markWith(metricsMarker)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
reporter.start(jHipsterProperties.getMetrics().getLogs().getReportFrequency(), TimeUnit.SECONDS);
}
}
/* Spectator metrics log reporting */
@Bean
@ConditionalOnProperty("jhipster.logging.spectator-metrics.enabled")
@ExportMetricReader
public SpectatorMetricReader spectatorMetricReader(Registry registry) {
log.info("Initializing Spectator Metrics Log reporting");
return new SpectatorMetricReader(registry);
}
@Bean
@ConditionalOnProperty("jhipster.logging.spectator-metrics.enabled")
@ExportMetricWriter
MetricWriter metricWriter() {
return new SpectatorLogMetricWriter();
}
}
|
[
"124599792@qq.com"
] |
124599792@qq.com
|
1e5a6942faa6b2486a859ff48529dccbb06e357c
|
770c76a2180ee695bc02064d24d87f5c47c0fb79
|
/ibps-platform-root/modules/platform-admin/src/main/java/com/lc/ibps/pg/ZFJD/controller/FenjiedianController.java
|
63b3dc013fbeb6328bd3e5519b19999e9c6f4a9d
|
[] |
no_license
|
incidunt/qingjiao_dev
|
aff658944c0f89c822d547f5a2180649f48cbf00
|
385a69cddabc784e974f7d802807fc19101e83ee
|
refs/heads/master
| 2020-09-23T17:05:12.859324
| 2018-12-18T08:26:04
| 2018-12-18T08:26:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 6,166
|
java
|
package com.lc.ibps.pg.ZFJD.controller;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.lc.ibps.base.core.util.string.StringUtil;
import com.lc.ibps.base.core.entity.ResultMessage;
import com.lc.ibps.base.framework.page.PageList;
import com.lc.ibps.api.base.query.QueryFilter;
import com.lc.ibps.api.base.query.QueryOP;
import com.lc.ibps.base.web.controller.GenericController;
import com.lc.ibps.base.web.json.PageJson;
import com.lc.ibps.base.web.util.RequestUtil;
import com.lc.ibps.pgs.ZFJD.repository.FenjiedianRepository;
import com.lc.ibps.pgs.ZFJD.persistence.entity.FenjiedianPo;
import com.lc.ibps.pgs.ZFJD.domain.Fenjiedian;
import com.lc.ibps.base.core.util.json.JsonUtil;
import net.sf.json.JSONObject;
/**
* t_fenjiedian 控制类
*
*<pre>
* 开发公司:广州流辰信息技术有限公司
* 开发人员:eddy
* 邮箱地址:1546077710@qq.com
* 创建时间:2018-01-18 17:03:02
*</pre>
*/
@Controller
@RequestMapping("/pg/ZFJD/fenjiedian/")
public class FenjiedianController extends GenericController{
@Resource
private FenjiedianRepository fenjiedianRepository;
/**
* 【t_fenjiedian】列表(分页条件查询)数据
*
* @param request
* @param reponse
* @return
* @throws Exception
*/
@RequestMapping("listJson")
public @ResponseBody PageJson listJson(HttpServletRequest request,HttpServletResponse reponse) throws Exception{
QueryFilter queryFilter=getQuerFilter(request);
String id = RequestUtil.getString(request, "id");
queryFilter.addFilter("pymb_id", id, QueryOP.EQUAL);
PageList<FenjiedianPo> fenjiedianList=(PageList<FenjiedianPo>)fenjiedianRepository.query(queryFilter);
return new PageJson(fenjiedianList);
}
@RequestMapping("list")
public ModelAndView list(HttpServletRequest request,HttpServletResponse reponse) throws Exception{
String id = RequestUtil.getString(request, "id");
return getAutoView().addObject("fenjieId", id);
}
/**
* 编辑【t_fenjiedian】信息页面
*
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping("edit")
public ModelAndView edit(HttpServletRequest request,HttpServletResponse response) throws Exception{
String preUrl= RequestUtil.getPrePage(request);
String id=RequestUtil.getString(request, "id");
FenjiedianPo fenjiedian=null;
if(StringUtil.isNotEmpty(id)){
fenjiedian=fenjiedianRepository.get(id);
}
return getAutoView().addObject("fenjiedian", fenjiedian).addObject("returnUrl", preUrl);
}
/**
* 编辑【t_fenjiedian】信息页面
*
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping("flowEdit")
public ModelAndView flowEdit(HttpServletRequest request,HttpServletResponse response) throws Exception{
String preUrl= RequestUtil.getPrePage(request);
String id=RequestUtil.getString(request, "id");
FenjiedianPo fenjiedian=null;
if(StringUtil.isNotEmpty(id)){
fenjiedian=fenjiedianRepository.get(id);
}
return getAutoView().addObject("fenjiedian", fenjiedian).addObject("returnUrl", preUrl);
}
/**
* 【t_fenjiedian】明细页面
*
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping("get")
public ModelAndView get(HttpServletRequest request,HttpServletResponse response) throws Exception{
String preUrl= RequestUtil.getPrePage(request);
String id=RequestUtil.getString(request, "id");
FenjiedianPo fenjiedian=null;
if(StringUtil.isNotEmpty(id)){
fenjiedian=fenjiedianRepository.get(id);
}
return getAutoView().addObject("fenjiedian", fenjiedian).addObject("returnUrl", preUrl);
}
/**
* 保存【t_fenjiedian】信息
*
* @param request
* @param response
* @param fenjiedian
* @throws Exception
*/
@RequestMapping("save")
public void save(HttpServletRequest request,HttpServletResponse response) throws Exception{
ResultMessage message=null;
try {
FenjiedianPo fenjiedianPo = getFromRequest(request);
//构造领域对象和保存数据
Fenjiedian fenjiedian =fenjiedianRepository.newInstance(fenjiedianPo);
fenjiedian.save();
message=new ResultMessage(ResultMessage.SUCCESS, "保存t_fenjiedian成功");
} catch (Exception e) {
message=new ResultMessage(ResultMessage.FAIL, "对t_fenjiedian操作失败,"+e.getMessage());
logger.error("对t_fenjiedian操作失败," + e.getMessage(),e);
}
writeResultMessage(response.getWriter(), message);
}
/**
* 获取表单数据
*
* @param request
*/
private FenjiedianPo getFromRequest(HttpServletRequest request){
String json = RequestUtil.getString(request, "json");
JSONObject jsonObj = JSONObject.fromObject(json);
FenjiedianPo fenjiedianPo = getFenjiedianPo(jsonObj);
return fenjiedianPo;
}
/**
* 获取t_fenjiedian数据
*
* @param jsonObj
*/
private FenjiedianPo getFenjiedianPo(JSONObject jsonObj){
FenjiedianPo fenjiedianPo = (FenjiedianPo) JsonUtil.getDTO(jsonObj.toString(), FenjiedianPo.class);
return fenjiedianPo;
}
/**
* 批量删除【t_fenjiedian】记录
*
* @param request
* @param response
* @throws Exception
*/
@RequestMapping("remove")
public void remove(HttpServletRequest request,HttpServletResponse response) throws Exception{
ResultMessage message=null;
try {
//获得待删除的id
String[] ids=RequestUtil.getStringAryByStr(request, "id");
//构造领域对象和保存数据
Fenjiedian fenjiedian =fenjiedianRepository.newInstance();
fenjiedian.deleteByIds(ids);
message=new ResultMessage(ResultMessage.SUCCESS, "删除t_fenjiedian成功");
} catch (Exception e) {
message=new ResultMessage(ResultMessage.FAIL, "删除t_fenjiedian失败," + e.getMessage());
logger.error("删除t_fenjiedian失败," + e.getMessage(),e);
}
writeResultMessage(response.getWriter(), message);
}
}
|
[
"marco23037@163.com"
] |
marco23037@163.com
|
98cfa24a960d6687b77c8a4cda56ad87814a16e7
|
6a52461d1ce80a1ca2cec75f3e34269cd3b86d35
|
/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/DictItemController.java
|
541711393373b11104bb702c941becda1690614f
|
[
"Apache-2.0"
] |
permissive
|
cashlzcj/youlai-mall
|
efbc3732e9c9bc9b6fef4207891080fe10d9ccf3
|
fc8bc0334536d9953b23becaf527ef2882c0a20b
|
refs/heads/master
| 2023-03-27T01:51:25.224502
| 2021-03-19T12:36:11
| 2021-03-19T12:36:11
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 5,528
|
java
|
package com.youlai.admin.controller;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.admin.pojo.entity.SysDictItem;
import com.youlai.admin.service.ISysDictItemService;
import com.youlai.common.enums.QueryModeEnum;
import com.youlai.common.result.Result;
import com.youlai.common.result.ResultCode;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
@Api(tags = "字典项接口")
@RestController
@RequestMapping("/api.admin/v1/dict-items")
@Slf4j
@AllArgsConstructor
public class DictItemController {
private ISysDictItemService iSysDictItemService;
@ApiOperation(value = "列表分页")
@ApiImplicitParams({
@ApiImplicitParam(name = "queryMode", paramType = "query", dataType = "QueryModeEnum"),
@ApiImplicitParam(name = "page", defaultValue = "1", value = "页码", paramType = "query", dataType = "Integer"),
@ApiImplicitParam(name = "limit", defaultValue = "10", value = "每页数量", paramType = "query", dataType = "Integer"),
@ApiImplicitParam(name = "name", value = "字典名称", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "dictCode", value = "字典编码", paramType = "query", dataType = "String")
})
@GetMapping
public Result list(
String queryMode,
Integer page,
Integer limit,
String name,
String dictCode
) {
QueryModeEnum queryModeEnum = QueryModeEnum.getValue(queryMode);
switch (queryModeEnum) {
case PAGE:
IPage<SysDictItem> result = iSysDictItemService.list(new Page<>(page, limit), new SysDictItem().setName(name).setDictCode(dictCode));
return Result.success(result.getRecords(), result.getTotal());
case LIST:
List<SysDictItem> list = iSysDictItemService.list(new LambdaQueryWrapper<SysDictItem>()
.like(StrUtil.isNotBlank(name), SysDictItem::getName, name)
.eq(StrUtil.isNotBlank(dictCode), SysDictItem::getDictCode, dictCode)
.select(SysDictItem::getName, SysDictItem::getValue)
.orderByAsc(SysDictItem::getSort)
);
return Result.success(list);
default:
return Result.failed(ResultCode.QUERY_MODE_IS_NULL);
}
}
@ApiOperation(value = "字典项详情")
@ApiImplicitParam(name = "id", value = "字典id", required = true, paramType = "path", dataType = "Long")
@GetMapping("/{id}")
public Result detail(@PathVariable Integer id) {
SysDictItem dictItem = iSysDictItemService.getById(id);
return Result.success(dictItem);
}
@ApiOperation(value = "新增字典项")
@ApiImplicitParam(name = "dictItem", value = "实体JSON对象", required = true, paramType = "body", dataType = "SysDictItem")
@PostMapping
public Result add(@RequestBody SysDictItem dictItem) {
boolean status = iSysDictItemService.save(dictItem);
return Result.judge(status);
}
@ApiOperation(value = "修改字典项")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "字典id", required = true, paramType = "path", dataType = "Long"),
@ApiImplicitParam(name = "dictItem", value = "实体JSON对象", required = true, paramType = "body", dataType = "SysDictItem")
})
@PutMapping(value = "/{id}")
public Result update(
@PathVariable Long id,
@RequestBody SysDictItem dictItem) {
dictItem.setGmtModified(new Date());
boolean status = iSysDictItemService.updateById(dictItem);
return Result.judge(status);
}
@ApiOperation(value = "删除字典数据")
@ApiImplicitParam(name = "ids", value = "主键ID集合,以,分割拼接字符串", required = true, paramType = "query", dataType = "String")
@DeleteMapping("/{ids}")
public Result delete(@PathVariable String ids) {
boolean status = iSysDictItemService.removeByIds(Arrays.asList(ids.split(",")));
return Result.judge(status);
}
@ApiOperation(value = "局部更新字典数据")
@ApiImplicitParams({
@ApiImplicitParam(name = "id", value = "用户ID", required = true, paramType = "path", dataType = "Long"),
@ApiImplicitParam(name = "dictItem", value = "实体JSON对象", required = true, paramType = "body", dataType = "SysDictItem")
})
@PatchMapping(value = "/{id}")
public Result patch(@PathVariable Integer id, @RequestBody SysDictItem dictItem) {
LambdaUpdateWrapper<SysDictItem> updateWrapper = new LambdaUpdateWrapper<SysDictItem>().eq(SysDictItem::getId, id);
updateWrapper.set(dictItem.getStatus() != null, SysDictItem::getStatus, dictItem.getStatus());
boolean status = iSysDictItemService.update(updateWrapper);
return Result.judge(status);
}
}
|
[
"1490493387@qq.com"
] |
1490493387@qq.com
|
229359a72f4cb0c0b40d01a6fafeb6b9f9ce2fcc
|
8df656e8539253a19a80dc4b81103ff0f70b2651
|
/devManage/src/main/java/cn/pioneeruniverse/dev/entity/TblSystemVersion.java
|
7696ab5a08f06a9666f9da3b6d3dcfef19a36877
|
[] |
no_license
|
tanghaijian/itmp
|
8713960093a66a39723a975b65a20824a2011d83
|
758bed477ec9550a1fd1cb19435c3b543524a792
|
refs/heads/master
| 2023-04-16T00:55:56.140767
| 2021-04-26T05:42:47
| 2021-04-26T05:42:47
| 361,607,388
| 1
| 2
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,297
|
java
|
package cn.pioneeruniverse.dev.entity;
import cn.pioneeruniverse.common.entity.BaseEntity;
public class TblSystemVersion extends BaseEntity{
/**
*
*/
private static final long serialVersionUID = 706095827303768023L;
private Long systemId;//系统ID
private Long systemModuleId;//系统模块ID
private String groupFlag; //分组标签
private String version;//版本
private String environmentTypes;//环境类型,数据字典的valuecode以,隔开
public Long getSystemId() {
return systemId;
}
public void setSystemId(Long systemId) {
this.systemId = systemId;
}
public String getGroupFlag() {
return groupFlag;
}
public void setGroupFlag(String groupFlag) {
this.groupFlag = groupFlag;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version == null ? null : version.trim();
}
public Long getSystemModuleId() {
return systemModuleId;
}
public void setSystemModuleId(Long systemModuleId) {
this.systemModuleId = systemModuleId;
}
public String getEnvironmentTypes() {
return environmentTypes;
}
public void setEnvironmentTypes(String environmentTypes) {
this.environmentTypes = environmentTypes;
}
}
|
[
"1049604112@qq.com"
] |
1049604112@qq.com
|
8043dc2144e35c8ee1d25067e75b939f4bf0cb6b
|
647ec12ce50f06e7380fdbfb5b71e9e2d1ac03b4
|
/com.tencent.mm/classes.jar/com/tencent/mm/boot/svg/code/drawable/default_voicevoip.java
|
1eca2272caa0e9e410b574a6f97979e97eb43365
|
[] |
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
| 4,625
|
java
|
package com.tencent.mm.boot.svg.code.drawable;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.tencent.mm.svg.c;
public class default_voicevoip
extends c
{
private final int height = 192;
private final int width = 192;
public int doCommand(int paramInt, Object... paramVarArgs)
{
switch (paramInt)
{
}
for (;;)
{
return 0;
return 192;
return 192;
Canvas localCanvas = (Canvas)paramVarArgs[0];
paramVarArgs = (Looper)paramVarArgs[1];
c.instanceMatrix(paramVarArgs);
c.instanceMatrixArray(paramVarArgs);
Paint localPaint = c.instancePaint(paramVarArgs);
localPaint.setFlags(385);
localPaint.setStyle(Paint.Style.FILL);
Object localObject = c.instancePaint(paramVarArgs);
((Paint)localObject).setFlags(385);
((Paint)localObject).setStyle(Paint.Style.STROKE);
localPaint.setColor(-16777216);
((Paint)localObject).setStrokeWidth(1.0F);
((Paint)localObject).setStrokeCap(Paint.Cap.BUTT);
((Paint)localObject).setStrokeJoin(Paint.Join.MITER);
((Paint)localObject).setStrokeMiter(4.0F);
((Paint)localObject).setPathEffect(null);
c.instancePaint((Paint)localObject, paramVarArgs).setStrokeWidth(1.0F);
localCanvas.save();
localObject = c.instancePaint(localPaint, paramVarArgs);
((Paint)localObject).setColor(-12206054);
Path localPath = c.instancePath(paramVarArgs);
localPath.moveTo(0.0F, 0.0F);
localPath.lineTo(192.0F, 0.0F);
localPath.lineTo(192.0F, 192.0F);
localPath.lineTo(0.0F, 192.0F);
localPath.lineTo(0.0F, 0.0F);
localPath.close();
localCanvas.drawPath(localPath, (Paint)localObject);
localCanvas.restore();
localCanvas.save();
localPaint = c.instancePaint(localPaint, paramVarArgs);
localPaint.setColor(-1);
localObject = c.instancePath(paramVarArgs);
((Path)localObject).moveTo(119.15902F, 118.16251F);
((Path)localObject).cubicTo(120.66709F, 116.64901F, 126.05303F, 114.05444F, 128.20741F, 116.64901F);
((Path)localObject).cubicTo(130.36179F, 119.24358F, 145.01157F, 120.32465F, 150.61296F, 120.75708F);
((Path)localObject).cubicTo(156.21434F, 121.18951F, 155.9989F, 127.45972F, 155.9989F, 127.45972F);
((Path)localObject).lineTo(155.9989F, 147.56764F);
((Path)localObject).lineTo(155.9989F, 150.16222F);
((Path)localObject).cubicTo(154.70627F, 152.97301F, 152.98277F, 155.35136F, 150.39752F, 155.56757F);
((Path)localObject).cubicTo(146.73508F, 156.0F, 141.13368F, 156.0F, 138.11755F, 156.0F);
((Path)localObject).cubicTo(111.83414F, 152.10814F, 88.351402F, 139.3515F, 70.685501F, 120.9733F);
((Path)localObject).cubicTo(52.37328F, 103.45995F, 39.87788F, 79.892593F, 36.0F, 53.730671F);
((Path)localObject).cubicTo(36.0F, 50.703671F, 36.0F, 45.0821F, 36.430878F, 41.40646F);
((Path)localObject).cubicTo(36.646313F, 38.81189F, 39.016129F, 37.082172F, 41.816822F, 36.001102F);
((Path)localObject).lineTo(44.402077F, 36.001102F);
((Path)localObject).lineTo(64.437798F, 36.001102F);
((Path)localObject).cubicTo(64.437798F, 36.001102F, 70.470062F, 35.784889F, 71.116371F, 41.40646F);
((Path)localObject).cubicTo(71.547249F, 47.02803F, 72.624443F, 61.514381F, 75.209694F, 63.676525F);
((Path)localObject).cubicTo(77.794952F, 66.054878F, 74.994255F, 71.244026F, 73.70163F, 72.757523F);
((Path)localObject).cubicTo(72.624443F, 73.838593F, 64.006927F, 83.135803F, 59.698166F, 87.6763F);
((Path)localObject).cubicTo(64.868675F, 96.973518F, 72.193565F, 104.97344F, 79.087578F, 112.97337F);
((Path)localObject).cubicTo(87.058777F, 119.67601F, 94.814545F, 126.81108F, 104.29381F, 132.21643F);
((Path)localObject).cubicTo(108.818F, 127.89215F, 118.08183F, 119.24358F, 119.15902F, 118.16251F);
((Path)localObject).close();
WeChatSVGRenderC2Java.setFillType((Path)localObject, 2);
localCanvas.drawPath((Path)localObject, localPaint);
localCanvas.restore();
c.done(paramVarArgs);
}
}
}
/* Location: L:\local\mybackup\temp\qq_apk\com.tencent.mm\classes12.jar
* Qualified Name: com.tencent.mm.boot.svg.code.drawable.default_voicevoip
* JD-Core Version: 0.7.0.1
*/
|
[
"98632993+tsuzcx@users.noreply.github.com"
] |
98632993+tsuzcx@users.noreply.github.com
|
49ec908540461acb15949257d15ba3221c54a3ed
|
c986c994954581c54cbb3ccd00e7f49a1caa817d
|
/src/com/alk/battleCommandLimiter/objects/BCLCommand.java
|
5092789d5ddf570c427da669c011e129eac2a00a
|
[] |
no_license
|
mtaheij/BattleCommandLimiter
|
72fec5d84471b4ab89f29815aee3a3604817c09f
|
8095ef021359158019a17141415a0790aa03f46b
|
refs/heads/master
| 2020-03-21T10:37:44.126851
| 2012-08-11T01:34:12
| 2012-08-11T01:34:12
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 234
|
java
|
package com.alk.battleCommandLimiter.objects;
public class BCLCommand {
public int size() {
// TODO Auto-generated method stub
return 0;
}
public Object get(int i) {
// TODO Auto-generated method stub
return null;
}
}
|
[
"alkarin.v@gmail.com"
] |
alkarin.v@gmail.com
|
446e0d7452f9592e4bfa47967ed3a290b6bac202
|
ac1768b715e9fe56be8b340bc1e4bc7f917c094a
|
/openbis/source/java/ch/ethz/sis/openbis/generic/server/asapi/v3/executor/dataset/MapDataSetTechIdByIdExecutor.java
|
02be8b7d779c5175ec5fb85bfe24d5bc09014438
|
[
"Apache-2.0"
] |
permissive
|
kykrueger/openbis
|
2c4d72cb4b150a2854df4edfef325f79ca429c94
|
1b589a9656d95e343a3747c86014fa6c9d299b8d
|
refs/heads/master
| 2023-05-11T23:03:57.567608
| 2021-05-21T11:54:58
| 2021-05-21T11:54:58
| 364,558,858
| 0
| 0
|
Apache-2.0
| 2021-06-04T10:08:32
| 2021-05-05T11:48:20
|
Java
|
UTF-8
|
Java
| false
| false
| 1,850
|
java
|
/*
* Copyright 2014 ETH Zuerich, Scientific IT Services
*
* 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 ch.ethz.sis.openbis.generic.server.asapi.v3.executor.dataset;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import ch.ethz.sis.openbis.generic.asapi.v3.dto.dataset.id.IDataSetId;
import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.IOperationContext;
import ch.ethz.sis.openbis.generic.server.asapi.v3.executor.common.get.AbstractMapObjectByIdExecutor;
import ch.ethz.sis.openbis.generic.server.asapi.v3.helper.common.IListObjectById;
import ch.ethz.sis.openbis.generic.server.asapi.v3.helper.dataset.ListDataSetTechIdByPermId;
/**
* @author pkupczyk
*/
@Component
public class MapDataSetTechIdByIdExecutor extends AbstractMapObjectByIdExecutor<IDataSetId, Long> implements IMapDataSetTechIdByIdExecutor
{
@Autowired
private IDataSetAuthorizationExecutor authorizationExecutor;
@Override
protected void checkAccess(IOperationContext context)
{
authorizationExecutor.canGet(context);
}
@Override
protected void addListers(IOperationContext context, List<IListObjectById<? extends IDataSetId, Long>> listers)
{
listers.add(new ListDataSetTechIdByPermId());
}
}
|
[
"pkupczyk"
] |
pkupczyk
|
6148cdcb2a89c8a9ae47b4eb46e5b3612133b5c7
|
6259a830a3d9e735e6779e41a678a71b4c27feb2
|
/anchor-plugin-image-task/src/main/java/org/anchoranalysis/plugin/image/task/stack/InitializationFactory.java
|
da1b2326e263bc3f4ba5f8d68f3fa726c5689f17
|
[
"MIT"
] |
permissive
|
anchoranalysis/anchor-plugins
|
103168052419b1072d0f8cd0201dabfb7dc84f15
|
5817d595d171b8598ab9c0195586c5d1f83ad92e
|
refs/heads/master
| 2023-07-24T02:38:11.667846
| 2023-07-18T07:51:10
| 2023-07-18T07:51:10
| 240,064,307
| 2
| 0
|
MIT
| 2023-07-18T07:51:12
| 2020-02-12T16:48:04
|
Java
|
UTF-8
|
Java
| false
| false
| 2,338
|
java
|
/*-
* #%L
* anchor-image-io
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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.
* #L%
*/
package org.anchoranalysis.plugin.image.task.stack;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.anchoranalysis.core.exception.OperationFailedException;
import org.anchoranalysis.experiment.io.InitializationContext;
import org.anchoranalysis.image.bean.nonbean.init.ImageInitialization;
import org.anchoranalysis.image.io.ImageInitializationFactory;
import org.anchoranalysis.image.io.stack.input.ProvidesStackInput;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class InitializationFactory {
public static ImageInitialization createWithStacks(
ProvidesStackInput input, InitializationContext context)
throws OperationFailedException {
ImageInitialization initialization = createWithoutStacks(context);
input.addToStoreInferNames(initialization.stacks(), context.getLogger());
return initialization;
}
public static ImageInitialization createWithoutStacks(InitializationContext context) {
return ImageInitializationFactory.create(
context.getInputOutput(), context.getSuggestedSize());
}
}
|
[
"owenfeehan@users.noreply.github.com"
] |
owenfeehan@users.noreply.github.com
|
99a2116d0b0d8dddfbc12390fb39966579ba432a
|
e58a8e0fb0cfc7b9a05f43e38f1d01a4d8d8cf1f
|
/Fantastle5/src/net/worldwizard/fantastle5/spells/CurerSpellBook.java
|
d8b3dbb8d29868327b69e63333f27a3ff0955a59
|
[
"Unlicense"
] |
permissive
|
retropipes/older-java-games
|
777574e222f30a1dffe7936ed08c8bfeb23a21ba
|
786b0c165d800c49ab9977a34ec17286797c4589
|
refs/heads/master
| 2023-04-12T14:28:25.525259
| 2021-05-15T13:03:54
| 2021-05-15T13:03:54
| 235,693,016
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,772
|
java
|
package net.worldwizard.fantastle5.spells;
import net.worldwizard.fantastle5.creatures.StatConstants;
import net.worldwizard.fantastle5.effects.DamageEffect;
import net.worldwizard.fantastle5.effects.Effect;
import net.worldwizard.fantastle5.effects.HealingEffect;
public class CurerSpellBook extends SpellBook {
// Constructor
public CurerSpellBook() {
super(6);
}
@Override
protected void defineSpells() {
final DamageEffect spell0Effect = new DamageEffect("Fireball", 10, 1,
0.25, StatConstants.STAT_LEVEL, Effect.DEFAULT_DECAY_RATE);
spell0Effect.setMessage(Effect.MESSAGE_INITIAL,
"You conjure a fireball, then throw it at the enemy!");
spell0Effect.setMessage(Effect.MESSAGE_SUBSEQUENT,
"The enemy loses a little health from being burned!");
final Spell spell0 = new Spell(spell0Effect, 1, 'E', "lava");
this.spells[0] = spell0;
final HealingEffect spell1Effect = new HealingEffect("Minor Heal", 15,
1, 0.25, StatConstants.STAT_LEVEL, Effect.DEFAULT_DECAY_RATE);
spell1Effect.setMessage(Effect.MESSAGE_INITIAL,
"You conjure a small bandage, and apply it to your wounds!");
spell1Effect.setMessage(Effect.MESSAGE_SUBSEQUENT,
"You gain some health!");
final Spell spell1 = new Spell(spell1Effect, 2, 'P', "heal");
this.spells[1] = spell1;
final DamageEffect spell2Effect = new DamageEffect("Ice Shard", 10, 1,
0.4, StatConstants.STAT_LEVEL, Effect.DEFAULT_DECAY_RATE);
spell2Effect.setMessage(Effect.MESSAGE_INITIAL,
"You conjure a shard of ice, then throw it at the enemy!");
spell2Effect.setMessage(Effect.MESSAGE_SUBSEQUENT,
"The enemy loses some health from being frozen!");
final Spell spell2 = new Spell(spell2Effect, 4, 'E', "iceshard");
this.spells[2] = spell2;
final Effect spell3Effect = new Effect("Weapon Bind", 5);
spell3Effect.setAffectedStat(StatConstants.STAT_ATTACK);
spell3Effect.setEffect(Effect.EFFECT_MULTIPLY, 0,
Effect.DEFAULT_SCALE_FACTOR, StatConstants.STAT_NONE);
spell3Effect.setMessage(Effect.MESSAGE_INITIAL,
"You bind the enemy's weapon, rendering it useless!");
spell3Effect.setMessage(Effect.MESSAGE_SUBSEQUENT,
"The enemy is unable to attack!");
spell3Effect.setMessage(Effect.MESSAGE_WEAR_OFF, "The binding breaks!");
final Spell spell3 = new Spell(spell3Effect, 7, 'E', "bind");
this.spells[3] = spell3;
final HealingEffect spell4Effect = new HealingEffect("Major Heal", 10,
1, 0.75, StatConstants.STAT_LEVEL, Effect.DEFAULT_DECAY_RATE);
spell4Effect.setMessage(Effect.MESSAGE_INITIAL,
"You summon a large bandage, and apply it to your wounds!");
spell4Effect.setMessage(Effect.MESSAGE_SUBSEQUENT,
"You gain a LOT of health!");
final Spell spell4 = new Spell(spell4Effect, 15, 'P', "heal");
this.spells[4] = spell4;
final DamageEffect spell5Effect = new DamageEffect("Lightning Bolt", 1,
1, 0.8, StatConstants.STAT_MAXIMUM_HP,
Effect.DEFAULT_DECAY_RATE);
spell5Effect.setMessage(Effect.MESSAGE_INITIAL,
"You summon a bolt of lightning, then throw it at the enemy!");
spell5Effect.setMessage(Effect.MESSAGE_SUBSEQUENT,
"The enemy loses a LOT of health from being shocked!");
final Spell spell5 = new Spell(spell5Effect, 30, 'E', "bolt");
this.spells[5] = spell5;
}
@Override
public int getID() {
return 2;
}
}
|
[
"eric.ahnell@puttysoftware.com"
] |
eric.ahnell@puttysoftware.com
|
50fdd9d76c188f4f6175db21f2f535bd359fe70b
|
6d1d444b76ef9dfd87fe9b035e9ba350477d6dc6
|
/src/main/java/mineopoly_three/action/TurnAction.java
|
1bbae2ec21b421faa1aeb8710c9199dc74125cb4
|
[] |
no_license
|
ZaidBarkat/Mineopoly_Game
|
d70953cf854115f403e14cb827122f276638535c
|
3b12789f5ff3bb78f4402bb59afb2c9fe3d4e4ef
|
refs/heads/master
| 2023-06-29T10:14:39.018826
| 2021-03-06T23:49:36
| 2021-03-06T23:49:36
| 391,994,181
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 602
|
java
|
package mineopoly_three.action;
public enum TurnAction {
MOVE_UP(new MoveAction(0, 1)),
MOVE_DOWN(new MoveAction(0, -1)),
MOVE_RIGHT(new MoveAction(1, 0)),
MOVE_LEFT(new MoveAction(-1, 0)),
MINE(new TileInteractAction()),
PICK_UP_RESOURCE(new TileInteractAction()),
PICK_UP_AUTOMINER(new TileInteractAction()),
PLACE_AUTOMINER(new TileInteractAction());
private Action actionToPerform;
TurnAction(Action actionToPerform) {
this.actionToPerform = actionToPerform;
}
public Action getActionToPerform() {
return actionToPerform;
}
}
|
[
"66690702+github-classroom[bot]@users.noreply.github.com"
] |
66690702+github-classroom[bot]@users.noreply.github.com
|
dea8cd957a56561ee400178c064f3c33dd51eecb
|
1f4fb0626e8f2c95bb1c62a8bfd5240168df44c1
|
/mall-business/marking-center/src/main/java/com/mallplus/marking/mapper/SmsHomeRecommendProductMapper.java
|
a7a273831324b73c510b4f27e2693f10ff89ce54
|
[
"Apache-2.0"
] |
permissive
|
shenzhuan/mallcloud-platform-1
|
5ad6f2c3386a0e12c9334bc450e9221c1f481551
|
6c1a00b8a135c674765f720f72670092f271bd31
|
refs/heads/master
| 2022-05-01T01:38:37.400319
| 2022-04-25T02:12:11
| 2022-04-25T02:12:11
| 232,960,097
| 4
| 5
|
Apache-2.0
| 2020-01-10T03:44:47
| 2020-01-10T03:44:46
| null |
UTF-8
|
Java
| false
| false
| 354
|
java
|
package com.mallplus.marking.mapper;
import com.mallplus.marking.entity.SmsHomeRecommendProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 人气推荐商品表 Mapper 接口
* </p>
*
* @author zscat
* @since 2019-04-19
*/
public interface SmsHomeRecommendProductMapper extends BaseMapper<SmsHomeRecommendProduct> {
}
|
[
"zhuan.shen@rjfittime.com"
] |
zhuan.shen@rjfittime.com
|
cc63839bd8efc5a58acfef171b5f31368d2b26a1
|
9e8acf446e5f78645e07acd2f41a616a132b4ba2
|
/ITSMedHubServer/ITSMedHubServer-ejb/src/main/java/common/assembler/CommonAssembler.java
|
43b58f29d2e23314abdf0227bb8f60439540c67d
|
[] |
no_license
|
avincze73/its-medhub-server
|
42e0d09b410cc2d38e924a9d66e804dba70fffe5
|
46c534b05dbaad4cba912eb990af4cfa6c92c693
|
refs/heads/master
| 2021-01-22T12:07:59.896818
| 2014-04-29T12:51:57
| 2014-04-29T12:51:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,404
|
java
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package common.assembler;
import common.dto.TDSServiceDTO;
import java.util.ArrayList;
import systemmodule.entity.TDSService;
import usermodule.assembler.UserAssembler;
import usermodule.dto.RoleDTO;
import usermodule.entity.ITSRole;
/**
*
* @author vincze.attila
*/
public class CommonAssembler {
public static TDSServiceDTO toDTO(TDSService entity) {
TDSServiceDTO dto = new TDSServiceDTO(entity.getId());
dto.setName(entity.getName());
dto.setDescription(entity.getDescription());
dto.setTdsApplication(entity.getTdsApplication());
for (ITSRole role : entity.getTDSRoleCollection()) {
dto.getRoleList().add(UserAssembler.toDTO(role));
}
return dto;
}
public static TDSService toEntity(TDSServiceDTO dto) {
TDSService entity = new TDSService();
if (dto.getId() != 0) {
entity.setId(dto.getId());
}
entity.setName(dto.getName());
entity.setDescription(dto.getDescription());
entity.setTdsApplication(dto.getTdsApplication());
entity.setTDSRoleCollection(new ArrayList<ITSRole>());
for (RoleDTO role : dto.getRoleList()) {
entity.getTDSRoleCollection().add(UserAssembler.toEntity(role));
}
return entity;
}
}
|
[
"vincze.attila@192.168.2.10"
] |
vincze.attila@192.168.2.10
|
071d630c41b34f1f47e42cc5f709f31c8124192a
|
180e78725121de49801e34de358c32cf7148b0a2
|
/dataset/protocol1/repairnator/validation/212/AstorRepair.java
|
c5a5035a9f6ec83141fe2d0c393cdafa563b8caa
|
[] |
no_license
|
ASSERT-KTH/synthetic-checkstyle-error-dataset
|
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
|
40c057e1669584bfc6fecf789b5b2854660222f3
|
refs/heads/master
| 2023-03-18T12:50:55.410343
| 2019-01-25T09:54:39
| 2019-01-25T09:54:39
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 8,008
|
java
|
package fr.inria.spirals.repairnator.process.step.repair.astor;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.google.gson.JsonPrimitive;
import fr.inria.astor.core.entities.ProgramVariant;
import fr.inria.astor.core.setup.ConfigurationProperties;
import fr.inria.main.AstorOutputStatus;
import fr.inria.main.evolution.AstorMain;
import fr.inria.spirals.repairnator.process.inspectors.JobStatus;
import fr.inria.spirals.repairnator.process.inspectors.RepairPatch;
import fr.inria.spirals.repairnator.process.step.StepStatus;
import fr.inria.spirals.repairnator.process.step.repair.AbstractRepairStep;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import spoon.SpoonException;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
/**
* Created by urli on 17/08/2017.
*/
public abstract class AstorRepair extends AbstractRepairStep {
private static final int MAX_TIME_EXECUTION = 100; // in minutes
public AstorRepair() {}
public abstract String getAstorMode();
@Override
protected StepStatus businessExecute() {
this.getLogger().info("Start to repair using " + this.getRepairToolName());
JobStatus jobStatus = this.getInspector().getJobStatus();
List<RepairPatch> astorPatches = new ArrayList<>();
List<URL> classPath = this.getInspector().getJobStatus().getRepairClassPath();
File[] sources = this.getInspector().getJobStatus().getRepairSourceDir();
if (classPath != null && sources != null) {
List<String> dependencies = new ArrayList<>();
for (URL url : jobStatus.getRepairClassPath()) {
if (url.getFile().endsWith(".jar")) {
dependencies.add(url.getPath());
}
}
final List<String> astorArgs = new ArrayList<>();
astorArgs.add("-dependencies");
astorArgs.add(StringUtils.join(dependencies,":"));
astorArgs.add("-mode");
astorArgs.add(this.getAstorMode());
astorArgs.add("-location");
astorArgs.add(jobStatus.getFailingModulePath());
String relativeSourcePath = new File(jobStatus.getFailingModulePath()).toURI().relativize(jobStatus.getRepairSourceDir()[0].toURI()).getPath();
astorArgs.add("-srcjavafolder");
astorArgs.add(relativeSourcePath);
astorArgs.add("-stopfirst");
astorArgs.add("true");
astorArgs.add("-population");
astorArgs.add("1");
//astorArgs.add("-loglevel");
//astorArgs.add("DEBUG");
astorArgs.add("-parameters");
astorArgs.add("timezone:Europe/Paris:maxnumbersolutions:3:limitbysuspicious:false:maxmodificationpoints:1000:javacompliancelevel:8:logfilepath:"+this.getInspector().getRepoLocalPath()+"/repairnator.astor." + this.getAstorMode() + ".log");
astorArgs.add("-maxtime");
astorArgs.add(MAX_TIME_EXECUTION+"");
astorArgs.add("-seed");
astorArgs.add("1");
astorArgs.add("-ingredientstrategy");
astorArgs.add("fr.inria.astor.test.repair.evaluation.extensionpoints.ingredients.MaxLcsSimSearchStrategy");
final AstorMain astorMain = new AstorMain();
final String repairToolName = this.getRepairToolName();
final ExecutorService executor = Executors.newSingleThreadExecutor();
final Future<AstorOutputStatus> astorExecution = executor.submit(new Callable<AstorOutputStatus>() {
@Override
public AstorOutputStatus call() throws Exception {
AstorOutputStatus status = null;
try {
astorMain.execute(astorArgs.toArray(new String[0]));
if (astorMain.getEngine() != null) {
status = astorMain.getEngine().getOutputStatus();
} else {
status = AstorOutputStatus.ERROR;
}
} catch (SpoonException e) {
status = AstorOutputStatus.ERROR;
addStepError("Got SpoonException while running " + repairToolName, e);
} catch (RuntimeException e) {
addStepError("Got runtime exception while running " + repairToolName, e);
status = AstorOutputStatus.ERROR;
}
return status;
}
});
AstorOutputStatus status = null;
try {
executor.shutdown();
status = astorExecution.get(MAX_TIME_EXECUTION, TimeUnit.MINUTES);
if (astorMain.getEngine() != null) {
List<ProgramVariant> solutions = astorMain.getEngine().getSolutions();
if (solutions != null) {
for (ProgramVariant pv : solutions) {
if (pv.isSolution()) {
RepairPatch repairPatch = new RepairPatch(this.getRepairToolName(), "" , pv.getPatchDiff().getFormattedDiff());
astorPatches.add(repairPatch);
}
}
}
}
} catch (Exception e) {
status = AstorOutputStatus.ERROR;
this.addStepError("Error while executing " + repairToolName + " with args: "+ StringUtils.join
(astorArgs,","), e);
}
jobStatus.addFileToPush("repairnator.astor." + this.getAstorMode() + ".log");
String jsonpath;
try {
jsonpath = astorMain.getEngine().getProjectFacade().getProperties().getWorkingDirRoot() + File.separator + ConfigurationProperties.getProperty("jsonoutputname") + ".json";
} catch (NullPointerException e) {
jsonpath = null;
}
if (jsonpath != null) {
File jsonResultFile = new File(jsonpath);
if (jsonResultFile.exists()) {
try {
FileUtils.copyFile(jsonResultFile, new File(this.getInspector().getRepoLocalPath()+"/repairnator.astor." + this.getAstorMode() + ".results.json"));
} catch (IOException e) {
this.addStepError("Error while moving " + this.getRepairToolName() + " JSON results", e);
}
JsonParser jsonParser = new JsonParser();
try {
JsonElement root = jsonParser.parse(new FileReader(jsonResultFile));
root.getAsJsonObject().add("status", new JsonPrimitive(status.name()));
this.recordToolDiagnostic(root);
} catch (FileNotFoundException e) {
this.addStepError("Error while reading " + this.getRepairToolName() + " JSON results", e);
}
jobStatus.addFileToPush("repairnator.astor." + this.getAstorMode() + ".results.json");
}
}
if (astorPatches.isEmpty()) {
return StepStatus.buildSkipped(this,"No patch found.");
} else {
this.getInspector().getJobStatus().setHasBeenPatched(true);
this.recordPatches(astorPatches);
return StepStatus.buildSuccess(this);
}
}
return StepStatus.buildSkipped(this,"Classpath or sources not computed.");
}
}
|
[
"bloriot97@gmail.com"
] |
bloriot97@gmail.com
|
2197bf07278f27090dcce29ad93f1a840932b754
|
69e3bf086ae19c0c6e47d42d3c0820e2772b1ca6
|
/wuxp_common/common_resources/src/main/java/com/wuxp/common/resources/ResourceTypeRegistry.java
|
d6a3469878f462c3dc268abe5ae71929f624c885
|
[] |
no_license
|
fengwuxp/wuxp_web_framework
|
3a9aa6e2a8e44c46608215971e90ad22905b2e5f
|
cf513e5c9b7caa9099b6d1c6e4cd3c8b169e2311
|
refs/heads/master
| 2022-06-30T11:23:08.448273
| 2021-02-10T13:43:31
| 2021-02-10T13:43:31
| 137,548,955
| 0
| 0
| null | 2022-06-20T23:17:38
| 2018-06-16T03:03:46
|
Java
|
UTF-8
|
Java
| false
| false
| 208
|
java
|
package com.wuxp.common.resources;
/**
* resource type list
*/
public interface ResourceTypeRegistry {
/**
*
* @param resourceType
*/
void registered(ResourceType resourceType);
}
|
[
"1109695647@qq.com"
] |
1109695647@qq.com
|
862145b3e3bdfb6a191e5a4c5759d5397e3003b0
|
cad7bc29389fbf5d5b722ee5327ba8154e7cc952
|
/submissions/available/CPC/CPC-what-property/data/aim/apacheDB-trunk/tck/src/main/java/org/apache/jdo/tck/pc/companyMapWithoutJoin/CompanyFactoryPMInterface.java
|
6304f42e914e4318f9c9fe5bfdca1ac379194e1f
|
[
"Apache-2.0",
"Unlicense"
] |
permissive
|
XZ-X/CPC-artifact-release
|
f9f9f0cde79b111f47622faba02f08b85a8a5ee9
|
5710dc0e39509f79e42535e0b5ca5e41cbd90fc2
|
refs/heads/master
| 2022-12-20T12:30:22.787707
| 2020-01-27T21:45:33
| 2020-01-27T21:45:33
| 236,601,424
| 1
| 0
|
Unlicense
| 2022-12-16T04:24:27
| 2020-01-27T21:41:38
|
Java
|
UTF-8
|
Java
| false
| false
| 1,976
|
java
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.jdo.tck.pc.companyMapWithoutJoin;
import javax.jdo.PersistenceManager;
/*
* CompanyFactoryPMInterface.java
*
* Created on August 29, 2005, 9:56 PM
*
*/
public class CompanyFactoryPMInterface
extends CompanyFactoryAbstractImpl {
/** */
public static final Class[] tearDownClasses = new Class[] {
IPartTimeEmployee.class, IFullTimeEmployee.class,
IDepartment.class, ICompany.class
};
/**
* Creates a new instance of CompanyFactoryPMInterface
*/
public CompanyFactoryPMInterface(PersistenceManager pm) {
super(pm);
}
ICompany newCompany() {
return (ICompany)pm.newInstance(ICompany.class);
}
IDepartment newDepartment() {
return (IDepartment)pm.newInstance(IDepartment.class);
}
IFullTimeEmployee newFullTimeEmployee() {
return (IFullTimeEmployee)pm.newInstance(IFullTimeEmployee.class);
}
IPartTimeEmployee newPartTimeEmployee() {
return (IPartTimeEmployee)pm.newInstance(IPartTimeEmployee.class);
}
public Class[] getTearDownClasses() {
return tearDownClasses;
}
}
|
[
"161250170@smail.nju.edu.cn"
] |
161250170@smail.nju.edu.cn
|
490caf2f838c685f577f6407de8c4d02546dc041
|
236bfcc957d3e6242f12c5a9d2c409d3f719fc74
|
/src/main/java/io/github/jhipster/newoapp13/security/SpringSecurityAuditorAware.java
|
d696264d451f56143d8568d61697e1d60f3da7a3
|
[] |
no_license
|
eter98/Newoapp13
|
2fe4251f29ea124915b7f6ed2a5b58bfb48b5156
|
e54eba0ed90092273a9629c513481a9b145109a9
|
refs/heads/master
| 2022-12-22T05:00:54.772662
| 2019-08-19T16:23:48
| 2019-08-19T16:23:48
| 203,209,068
| 0
| 1
| null | 2022-12-16T05:03:06
| 2019-08-19T16:23:33
|
Java
|
UTF-8
|
Java
| false
| false
| 566
|
java
|
package io.github.jhipster.newoapp13.security;
import io.github.jhipster.newoapp13.config.Constants;
import java.util.Optional;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;
/**
* Implementation of {@link AuditorAware} based on Spring Security.
*/
@Component
public class SpringSecurityAuditorAware implements AuditorAware<String> {
@Override
public Optional<String> getCurrentAuditor() {
return Optional.of(SecurityUtils.getCurrentUserLogin().orElse(Constants.SYSTEM_ACCOUNT));
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
e5e1984d9b369f3fb3a867ecb4efa9fefbc05f50
|
d666b5c098a3d92fc58e6068b9ae46ca205bad2d
|
/src/main/java/com/robertx22/age_of_exile/capability/bases/INeededForClient.java
|
73ef5f526d4922af536b372b3551f29ecf8572ea
|
[] |
no_license
|
arvid064/Age-of-Exile
|
313f8ea473ab9ec0e8366163789571cf8c75bcf0
|
39c0f61439c69ee6e5332687c2575a2d07272e48
|
refs/heads/master
| 2023-04-25T20:26:29.008950
| 2021-06-10T08:05:39
| 2021-06-10T08:05:39
| 358,706,013
| 0
| 0
| null | 2021-05-04T22:29:17
| 2021-04-16T19:57:13
|
Java
|
UTF-8
|
Java
| false
| false
| 217
|
java
|
package com.robertx22.age_of_exile.capability.bases;
import net.minecraft.nbt.CompoundTag;
public interface INeededForClient {
void addClientNBT(CompoundTag nbt);
void loadFromClientNBT(CompoundTag nbt);
}
|
[
"treborx555@gmail.com"
] |
treborx555@gmail.com
|
39ef33c785c564a70027ab0a2444cc6168e2277d
|
23947e89b6b6aca3a60d2c6c8603600d5fd10d16
|
/sketchlet-designer/src/main/java/net/sf/sketchlet/designer/editor/dnd/InternallyDroppedRunnable.java
|
c9e8d828c2aa8a182aa3a94d0cdcb452526dd7fc
|
[] |
no_license
|
zeljkoobrenovic/sketchlet
|
68051886c9ad7b285f6edc442b0229211e03d119
|
933e7872f1e0dea58ac9d70cca2cc7c21e7c3fbd
|
refs/heads/master
| 2016-09-06T04:36:47.049616
| 2012-12-30T09:13:36
| 2012-12-30T09:13:36
| 6,383,313
| 2
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 169
|
java
|
package net.sf.sketchlet.designer.editor.dnd;
/**
* @author zeljko
*/
public interface InternallyDroppedRunnable {
public void run(InternalDroppedString info);
}
|
[
"obren@acm.org"
] |
obren@acm.org
|
835a2d5504a00661e2dbd4b48031469ef1b36fe6
|
5c6df690a66c05fb1db0c9f92667a347ee97cebd
|
/Dec2020/src/seleniumBasics/LoggerDemo.java
|
88c479c8ea67589be04236f4147ca0b1c552d321
|
[] |
no_license
|
abhisheksawai/dec2020
|
d3d40663c1263fe6f2d0d93d3a82c32cdb8535f4
|
f79ac65e011e91c307412a2b26540176535ddc5b
|
refs/heads/main
| 2023-03-30T07:58:25.911449
| 2021-04-11T05:49:52
| 2021-04-11T05:49:52
| 356,776,183
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,019
|
java
|
package seleniumBasics;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;
public class LoggerDemo {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Users\\lenovo\\Desktop\\Current Batch\\decbrowser exe\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://money.rediff.com/gainers/bse/daily/groupa?src=gain_lose");
System.out.println("launched website");
driver.manage().window().maximize();
System.out.println("browser maximised");
int totalCol = driver.findElements(By.xpath("//*[@id='leftcontainer']/table/tbody/tr[1]/td")).size();
System.out.println("total totalCol are "+totalCol);
System.out.println("got the count of total coulum");
String companytoSearch = "National Fertilizers";
System.out.println("this is my company to search");
List <WebElement> compnayName = driver.findElements(By.xpath("//*[@id='leftcontainer']/table/tbody/tr/td[1]"));
System.out.println("compnayName.size()"+compnayName.size());
System.out.println("got the count of company name column");
List<WebElement> prevClose = driver.findElements(By.xpath("//*[@id='leftcontainer']/table/tbody/tr/td[3]"));
System.out.println("taking all prev vlose value here");
for(int i=0;i<compnayName.size() ; i ++)
{
System.out.println(compnayName.get(i).getText());
if(compnayName.get(i).getText().equalsIgnoreCase(companytoSearch))
{
System.out.println("yes got the company");
System.out.println("prevClose.get(i).getText()--> "+prevClose.get(i).getText());
break;
}
}
System.out.println("done with for loop and comparison with company name");
System.out.println("execution completed");
}
}
|
[
"sawai.abhishek@gmail.com"
] |
sawai.abhishek@gmail.com
|
746fd21b01ba644f677749e62c78c2027fa5b377
|
6d8cb7dd55e817e896fe4efc4f383fd7423109c9
|
/Test-Mybatis-Page/src/main/java/第一个实例/公司Interceptor/AbstractPaginationInterceptor.java
|
d33d7209604f1418db5f06c90c4956fd014bf9b3
|
[] |
no_license
|
xujunmeng/Test-Project-master
|
4ae66a27d849d495c116a97a52046053cdb31c82
|
92787bfb1c276658b3098085ae4670130ec8ab2d
|
refs/heads/master
| 2022-12-21T20:16:52.328399
| 2020-07-23T06:33:27
| 2020-07-23T06:33:27
| 124,840,814
| 0
| 0
| null | 2022-12-16T05:32:53
| 2018-03-12T06:01:29
|
Java
|
UTF-8
|
Java
| false
| false
| 3,239
|
java
|
package 第一个实例.公司Interceptor;
import org.apache.ibatis.executor.statement.StatementHandler;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.plugin.Interceptor;
import org.apache.ibatis.plugin.Invocation;
import org.apache.ibatis.plugin.Plugin;
import org.apache.ibatis.reflection.MetaObject;
import org.apache.ibatis.reflection.factory.DefaultObjectFactory;
import org.apache.ibatis.reflection.factory.ObjectFactory;
import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory;
import org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory;
import org.apache.ibatis.session.RowBounds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
import java.util.Properties;
public abstract class AbstractPaginationInterceptor implements Interceptor {
private static final Logger log = LoggerFactory.getLogger(AbstractPaginationInterceptor.class);
private final static String defaultPageSQLID = "^(get|select|query|search).*$";
private String pageSQLId;
public Object intercept(Invocation invocation) throws Throwable {
StatementHandler statementHandler = (StatementHandler) invocation.getTarget();
ObjectFactory objectFactory = new DefaultObjectFactory();
ObjectWrapperFactory objectWrapperFactory = new DefaultObjectWrapperFactory();
MetaObject metaStatementHandler = MetaObject.forObject(statementHandler, objectFactory, objectWrapperFactory);
BoundSql boundSql = (BoundSql) metaStatementHandler.getValue("delegate.boundSql");
Object parameterObject = boundSql.getParameterObject();
if (StringUtils.isEmpty(pageSQLId)) {
pageSQLId = defaultPageSQLID;
}
MappedStatement mappedStatement = (MappedStatement) metaStatementHandler.getValue("delegate.mappedStatement");
String id = mappedStatement.getId();
int index = id.lastIndexOf(".") ;
if(index>0){
id = id.substring(index+1);
}
// 只重写需要分页的sql语句。通过MappedStatement的ID匹配
if (!id.matches(pageSQLId)) {
return invocation.proceed();
}
// 判断是否需要分页操作
if (parameterObject instanceof PagingCriteria && ((PagingCriteria)parameterObject).isPaging()) {
String originalSql = (String) metaStatementHandler.getValue("delegate.boundSql.sql");
PagingCriteria criteria = (PagingCriteria) parameterObject;
String pageSQL = getLimitString(originalSql, criteria.getPageIndex() * criteria.getPageSize(), criteria.getPageSize());
metaStatementHandler.setValue("delegate.boundSql.sql", pageSQL);
metaStatementHandler.setValue("delegate.rowBounds.offset", RowBounds.NO_ROW_OFFSET);
metaStatementHandler.setValue("delegate.rowBounds.limit", RowBounds.NO_ROW_LIMIT);
log.debug("生成分页SQL : " + boundSql.getSql());
return invocation.proceed();
} else {
return invocation.proceed();
}
}
public Object plugin(Object target) {
return Plugin.wrap(target, this);
}
public void setProperties(Properties arg0) {}
public void setPageSQLId(String pageSQLId) {
this.pageSQLId = pageSQLId;
}
public abstract String getLimitString(String sql, int offset, int limit);
}
|
[
"xujunmeng2012@163.com"
] |
xujunmeng2012@163.com
|
be63cf357d29f0aa5891b6957020157728492ff7
|
c8f6eef443b99dedbe03fbfad70639cc7b06b302
|
/src/com/DGSD/WorkTracker/Utils/DiagnosticUtils.java
|
3d7986c58edbf1be07e4e27cee2660bd6c6e24ad
|
[] |
no_license
|
DanielGrech/WorkTracker
|
c8a97d142264b3bc30a6969a2dcd67a394aa2d72
|
68db09cb902e134e70d9ba932df89b5c9ef88454
|
refs/heads/master
| 2016-09-06T00:51:48.880121
| 2012-03-10T09:31:22
| 2012-03-10T09:31:22
| 3,580,360
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 7,190
|
java
|
package com.DGSD.WorkTracker.Utils;
/* Copyright (c) 2009 Matthias Käppler
*
* 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.
*/
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Locale;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.StrictMode;
import android.provider.Settings;
import android.provider.Settings.Secure;
import android.provider.Settings.SettingNotFoundException;
/**
* Useful android diagnostic helper classes
*
*/
public class DiagnosticUtils {
public static final int ANDROID_API_LEVEL;
static {
int apiLevel = -1;
try {
apiLevel = Build.VERSION.class.getField("SDK_INT").getInt(null);
} catch (Exception e) {
apiLevel = Integer.parseInt(Build.VERSION.SDK);
}
ANDROID_API_LEVEL = apiLevel;
}
/**
* Returns the ANDROID_ID unique device ID for the current device. Reading that ID has changed
* between platform versions, so this method takes care of attempting to read it in different
* ways, if one failed.
*
* @param context
* the context
* @return the device's ANDROID_ID, or null if it could not be determined
* @see android.provider.Settings.Secure#ANDROID_ID
*/
public static String getAndroidId(Context context) {
String androidId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);
if (androidId == null) {
// this happens on 1.6 and older
androidId = Settings.System.getString(context.getContentResolver(),
Settings.System.ANDROID_ID);
}
return androidId;
}
/**
* Same as {@link #getAndroidId(android.content.Context)}, but never returns null.
*
* @param context
* the context
* @param fallbackValue
* the fallback value
* @return the device's ANDROID_ID, or the fallback value if it could not be determined
* @see android.provider.Settings.Secure#ANDROID_ID
*/
public static String getAndroidId(Context context, String fallbackValue) {
String androidId = getAndroidId(context);
if (androidId == null) {
androidId = fallbackValue;
}
return androidId;
}
public static String getApplicationVersionString(Context context) {
try {
PackageManager pm = context.getPackageManager();
PackageInfo info = pm.getPackageInfo(context.getPackageName(), 0);
return "v" + info.versionName;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
public static String createDiagnosis(Activity context, Exception error) {
StringBuilder sb = new StringBuilder();
sb.append("Application version: " + getApplicationVersionString(context) + "\n");
sb.append("Device locale: " + Locale.getDefault().toString() + "\n\n");
sb.append("Android ID: " + getAndroidId(context, "n/a"));
// phone information
sb.append("PHONE SPECS\n");
sb.append("model: " + Build.MODEL + "\n");
sb.append("brand: " + Build.BRAND + "\n");
sb.append("product: " + Build.PRODUCT + "\n");
sb.append("device: " + Build.DEVICE + "\n\n");
// android information
sb.append("PLATFORM INFO\n");
sb.append("Android " + Build.VERSION.RELEASE + " " + Build.ID + " (build "
+ Build.VERSION.INCREMENTAL + ")\n");
sb.append("build tags: " + Build.TAGS + "\n");
sb.append("build type: " + Build.TYPE + "\n\n");
// settings
sb.append("SYSTEM SETTINGS\n");
String networkMode = null;
ContentResolver resolver = context.getContentResolver();
try {
if (Secure.getInt(resolver, Secure.WIFI_ON) == 0) {
networkMode = "DATA";
} else {
networkMode = "WIFI";
}
sb.append("network mode: " + networkMode + "\n");
sb.append("HTTP proxy: "
+ Secure.getString(resolver, Secure.HTTP_PROXY) + "\n\n");
} catch (SettingNotFoundException e) {
e.printStackTrace();
}
if(error != null) {
sb.append("STACK TRACE FOLLOWS\n\n");
StringWriter stackTrace = new StringWriter();
error.printStackTrace(new PrintWriter(stackTrace));
sb.append(stackTrace.toString());
}
return sb.toString();
}
public static String getApplicationName(Context context) {
final PackageManager pm = context.getPackageManager();
ApplicationInfo ai;
try {
ai = pm.getApplicationInfo(getApplicationPackage(context), 0);
} catch (final NameNotFoundException e) {
ai = null;
}
return (String) (ai != null ? pm.getApplicationLabel(ai) : "this app");
}
public static String getApplicationPackage(Context context) {
return context.getPackageName();
}
public static boolean isDebugOn(Context c) {
ApplicationInfo appInfo = c.getApplicationInfo();
if((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
return true;
} else {
return false;
}
}
public static boolean isNetworkAvailable(Context context) {
ConnectivityManager connectivityManager
= (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
return activeNetworkInfo != null;
}
public static void strictModeOn() {
//Strict mode is only available of Android 2.3+ (I.e gingerbread)
if((ANDROID_API_LEVEL > Build.VERSION_CODES.HONEYCOMB)) {
//Set strict mode
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
//.detectDiskReads()
.detectDiskWrites()
.detectNetwork()
.penaltyLog()
.build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectActivityLeaks()
.detectLeakedClosableObjects()
.detectLeakedSqlLiteObjects()
.penaltyLog()
.build());
}
}
}
|
[
"danielgrech91@gmail.com"
] |
danielgrech91@gmail.com
|
28fe2e2b32835a28e87acee12e978517bfa06fd4
|
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
|
/methods/Method_21500.java
|
19883afd28d60bdfc8fa16b8ac4fb3b00ec9d254
|
[] |
no_license
|
P79N6A/icse_20_user_study
|
5b9c42c6384502fdc9588430899f257761f1f506
|
8a3676bc96059ea2c4f6d209016f5088a5628f3c
|
refs/heads/master
| 2020-06-24T08:25:22.606717
| 2019-07-25T15:31:16
| 2019-07-25T15:31:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,181
|
java
|
private void createKeyToResultsAndFillOptimizationStructure(Map<String,Map<String,List<Object>>> optimizationTermsFilterStructure,TableInJoinRequestBuilder firstTableRequest){
List<SearchHit> firstTableHits=fetchAllHits(firstTableRequest);
int resultIds=1;
for ( SearchHit hit : firstTableHits) {
HashMap<String,List<Map.Entry<Field,Field>>> comparisons=this.hashJoinComparisonStructure.getComparisons();
for ( Map.Entry<String,List<Map.Entry<Field,Field>>> comparison : comparisons.entrySet()) {
String comparisonID=comparison.getKey();
List<Map.Entry<Field,Field>> t1ToT2FieldsComparison=comparison.getValue();
String key=getComparisonKey(t1ToT2FieldsComparison,hit,true,optimizationTermsFilterStructure.get(comparisonID));
SearchHit searchHit=new SearchHit(resultIds,hit.getId(),new Text(hit.getType()),hit.getFields());
searchHit.sourceRef(hit.getSourceRef());
onlyReturnedFields(searchHit.getSourceAsMap(),firstTableRequest.getReturnedFields(),firstTableRequest.getOriginalSelect().isSelectAll());
resultIds++;
this.hashJoinComparisonStructure.insertIntoComparisonHash(comparisonID,key,searchHit);
}
}
}
|
[
"sonnguyen@utdallas.edu"
] |
sonnguyen@utdallas.edu
|
2b4346f64809157eff870e2e06f02cb523907cff
|
178ef1239b7b188501395c4d3db3f0266b740289
|
/android/hardware/radio/config/V1_0/SlotState.java
|
fd46b50b1b17536441a7fe0c0d07c6ced347d44b
|
[] |
no_license
|
kailashrs/5z_framework
|
b295e53d20de0b6d2e020ee5685eceeae8c0a7df
|
1b7f76b1f06cfb6fb95d4dd41082a003d7005e5d
|
refs/heads/master
| 2020-04-26T12:31:27.296125
| 2019-03-03T08:58:23
| 2019-03-03T08:58:23
| 173,552,503
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,160
|
java
|
package android.hardware.radio.config.V1_0;
import java.util.ArrayList;
public final class SlotState
{
public static final int ACTIVE = 1;
public static final int INACTIVE = 0;
public SlotState() {}
public static final String dumpBitfield(int paramInt)
{
ArrayList localArrayList = new ArrayList();
int i = 0;
localArrayList.add("INACTIVE");
if ((paramInt & 0x1) == 1)
{
localArrayList.add("ACTIVE");
i = 0x0 | 0x1;
}
if (paramInt != i)
{
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append("0x");
localStringBuilder.append(Integer.toHexString(i & paramInt));
localArrayList.add(localStringBuilder.toString());
}
return String.join(" | ", localArrayList);
}
public static final String toString(int paramInt)
{
if (paramInt == 0) {
return "INACTIVE";
}
if (paramInt == 1) {
return "ACTIVE";
}
StringBuilder localStringBuilder = new StringBuilder();
localStringBuilder.append("0x");
localStringBuilder.append(Integer.toHexString(paramInt));
return localStringBuilder.toString();
}
}
|
[
"kailash.sudhakar@gmail.com"
] |
kailash.sudhakar@gmail.com
|
aaa19240a9a8fe27c8b9a6b4450a85a2ff662c81
|
cdba503b04ccad5ce6ac496f7b98e6f7b8ac4332
|
/easymodbus4j-example2/src/main/java/com/github/zengfr/easymodbus4j/app/cache/ModbusKVCacheFactory.java
|
4b1b7c82e62498741afab01aa87965fba5bfd90c
|
[
"MIT"
] |
permissive
|
zengfr/easymodbus4j
|
eb4a2d6c56d058e376377b2b999dde29df194e02
|
5749858eb495b475a704bb694416f68db93d44e5
|
refs/heads/master
| 2022-12-05T23:57:37.087083
| 2022-11-20T08:26:55
| 2022-11-20T08:44:42
| 178,504,570
| 192
| 75
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 957
|
java
|
package com.github.zengfr.easymodbus4j.app.cache;
import java.util.Map;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import com.google.common.collect.Maps;
import io.netty.util.internal.logging.InternalLogger;
import io.netty.util.internal.logging.InternalLoggerFactory;
public class ModbusKVCacheFactory {
private static class ModbusKVCacheFactoryHolder {
private static final ModbusKVCacheFactory INSTANCE = new ModbusKVCacheFactory();
}
protected static final InternalLogger logger = InternalLoggerFactory.getInstance(ModbusKVCacheFactory.class);
public static ModbusKVCacheFactory getInstance() {
return ModbusKVCacheFactoryHolder.INSTANCE;
}
private Map<String, BiMap<String, String>> cacheBiMap = Maps.newHashMap();
public BiMap<String, String> getBiMap(String type) {
if (!cacheBiMap.containsKey(type)) {
cacheBiMap.put(type, HashBiMap.create());
}
return cacheBiMap.get(type);
}
}
|
[
"zengfrcomputer2@git.com"
] |
zengfrcomputer2@git.com
|
8993dd2fa9b0c3febfb853004e4d26a61a279503
|
d551ea4e521c8204c34955b5db4229d420ed2024
|
/src/view/JRadioButtonTableExample.java
|
b58e505013abe0e1affefd64aaebad7ffa8d9f9c
|
[] |
no_license
|
blitzhaus/Pure-Code
|
ff879bccd7086b7a11710cef9813e190c1b3497e
|
270824e8897dd2101f79f99455c60b1e809107db
|
refs/heads/master
| 2016-09-13T00:20:58.325587
| 2016-05-26T17:58:47
| 2016-05-26T17:58:47
| 59,770,682
| 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,075
|
java
|
package view;
import java.awt.Component;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.ButtonGroup;
import javax.swing.DefaultCellEditor;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.event.TableModelEvent;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellRenderer;
class RadioButtonRenderer implements TableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
if (value == null)
return null;
return (Component) value;
}
}
class RadioButtonEditor extends DefaultCellEditor implements ItemListener {
private JRadioButton button;
public RadioButtonEditor(JCheckBox checkBox) {
super(checkBox);
}
public Component getTableCellEditorComponent(JTable table, Object value,
boolean isSelected, int row, int column) {
if (value == null)
return null;
button = (JRadioButton) value;
button.addItemListener(this);
return (Component) value;
}
public Object getCellEditorValue() {
button.removeItemListener(this);
return button;
}
public void itemStateChanged(ItemEvent e) {
super.fireEditingStopped();
}
}
public class JRadioButtonTableExample extends JFrame {
public JRadioButtonTableExample() {
super("JRadioButtonTable Example");
UIDefaults ui = UIManager.getLookAndFeel().getDefaults();
UIManager.put("RadioButton.focus", ui.getColor("control"));
DefaultTableModel dm = new DefaultTableModel();
dm.setDataVector(new Object[][] { { "Group 1", new JRadioButton("A") },
{ "Group 1", new JRadioButton("B") },
{ "Group 1", new JRadioButton("C") },
{ "Group 2", new JRadioButton("a") },
{ "Group 2", new JRadioButton("b") } }, new Object[] {
"String", "JRadioButton" });
JTable table = new JTable(dm) {
public void tableChanged(TableModelEvent e) {
super.tableChanged(e);
repaint();
}
};
ButtonGroup group1 = new ButtonGroup();
group1.add((JRadioButton) dm.getValueAt(0, 1));
group1.add((JRadioButton) dm.getValueAt(1, 1));
group1.add((JRadioButton) dm.getValueAt(2, 1));
ButtonGroup group2 = new ButtonGroup();
group2.add((JRadioButton) dm.getValueAt(3, 1));
group2.add((JRadioButton) dm.getValueAt(4, 1));
table.getColumn("JRadioButton").setCellRenderer(
new RadioButtonRenderer());
table.getColumn("JRadioButton").setCellEditor(
new RadioButtonEditor(new JCheckBox()));
JScrollPane scroll = new JScrollPane(table);
getContentPane().add(scroll);
setSize(200, 140);
setVisible(true);
}
public static void main(String[] args) {
JRadioButtonTableExample frame = new JRadioButtonTableExample();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
}
|
[
"2k5.ajith@gmail.com"
] |
2k5.ajith@gmail.com
|
6720f09385c613ba2d45246d6b6f183b3f8b3887
|
18a9ebf1efc8cae5d124b60a57ae4e732eac3dad
|
/src/test/java/com/micro_service/security/DomainUserDetailsServiceIntTest.java
|
f03f27fbc7cb9c5fb1ec214eabc216ad458cb96b
|
[] |
no_license
|
aseduma/SpringMicroserviceGateway
|
22fca84a9489ccd68d0daf9eeac41cb185bba59e
|
8a37643597376750d84f4cebe6ccbebda6653262
|
refs/heads/master
| 2021-07-03T23:21:47.783093
| 2018-12-12T08:21:10
| 2018-12-12T08:21:10
| 161,455,354
| 0
| 1
| null | 2020-09-18T06:44:41
| 2018-12-12T08:21:01
|
Java
|
UTF-8
|
Java
| false
| false
| 4,628
|
java
|
package com.micro_service.security;
import com.micro_service.SpringMicroserviceGatewayApp;
import com.micro_service.domain.User;
import com.micro_service.repository.UserRepository;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.transaction.annotation.Transactional;
import java.util.Locale;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Test class for DomainUserDetailsService.
*
* @see DomainUserDetailsService
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = SpringMicroserviceGatewayApp.class)
@Transactional
public class DomainUserDetailsServiceIntTest {
private static final String USER_ONE_LOGIN = "test-user-one";
private static final String USER_ONE_EMAIL = "test-user-one@localhost";
private static final String USER_TWO_LOGIN = "test-user-two";
private static final String USER_TWO_EMAIL = "test-user-two@localhost";
private static final String USER_THREE_LOGIN = "test-user-three";
private static final String USER_THREE_EMAIL = "test-user-three@localhost";
@Autowired
private UserRepository userRepository;
@Autowired
private UserDetailsService domainUserDetailsService;
private User userOne;
private User userTwo;
private User userThree;
@Before
public void init() {
userOne = new User();
userOne.setLogin(USER_ONE_LOGIN);
userOne.setPassword(RandomStringUtils.random(60));
userOne.setActivated(true);
userOne.setEmail(USER_ONE_EMAIL);
userOne.setFirstName("userOne");
userOne.setLastName("doe");
userOne.setLangKey("en");
userRepository.save(userOne);
userTwo = new User();
userTwo.setLogin(USER_TWO_LOGIN);
userTwo.setPassword(RandomStringUtils.random(60));
userTwo.setActivated(true);
userTwo.setEmail(USER_TWO_EMAIL);
userTwo.setFirstName("userTwo");
userTwo.setLastName("doe");
userTwo.setLangKey("en");
userRepository.save(userTwo);
userThree = new User();
userThree.setLogin(USER_THREE_LOGIN);
userThree.setPassword(RandomStringUtils.random(60));
userThree.setActivated(false);
userThree.setEmail(USER_THREE_EMAIL);
userThree.setFirstName("userThree");
userThree.setLastName("doe");
userThree.setLangKey("en");
userRepository.save(userThree);
}
@Test
@Transactional
public void assertThatUserCanBeFoundByLogin() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN);
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN);
}
@Test
@Transactional
public void assertThatUserCanBeFoundByLoginIgnoreCase() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_LOGIN.toUpperCase(Locale.ENGLISH));
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN);
}
@Test
@Transactional
public void assertThatUserCanBeFoundByEmail() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL);
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_TWO_LOGIN);
}
@Test(expected = UsernameNotFoundException.class)
@Transactional
public void assertThatUserCanNotBeFoundByEmailIgnoreCase() {
domainUserDetailsService.loadUserByUsername(USER_TWO_EMAIL.toUpperCase(Locale.ENGLISH));
}
@Test
@Transactional
public void assertThatEmailIsPrioritizedOverLogin() {
UserDetails userDetails = domainUserDetailsService.loadUserByUsername(USER_ONE_EMAIL);
assertThat(userDetails).isNotNull();
assertThat(userDetails.getUsername()).isEqualTo(USER_ONE_LOGIN);
}
@Test(expected = UserNotActivatedException.class)
@Transactional
public void assertThatUserNotActivatedExceptionIsThrownForNotActivatedUsers() {
domainUserDetailsService.loadUserByUsername(USER_THREE_LOGIN);
}
}
|
[
"jhipster-bot@jhipster.tech"
] |
jhipster-bot@jhipster.tech
|
37ff3a6e311242e3751b703ed5eaea39cf6dbdea
|
606e2c123e8531e2838c8bcfb07b0bd6c6d1ebd0
|
/esql-frontend/src/test/java/com/exxeta/iss/sonar/esql/api/tree/ListConstructorFunctionTest.java
|
d5c96c5cc49b90a6024440198b84a222017fa9ce
|
[
"Apache-2.0"
] |
permissive
|
preranaagarkar1/sonar-esql-plugin
|
a96ca1c60d0b8cde4c3b05c497694ba9b3d99e23
|
fe39e73446597ffe1ee66407db22c15fbd57d32e
|
refs/heads/develop
| 2021-05-08T02:31:27.624879
| 2018-02-05T05:49:12
| 2018-02-05T05:49:12
| 108,089,902
| 0
| 0
| null | 2017-10-24T07:07:37
| 2017-10-24T07:07:36
| null |
UTF-8
|
Java
| false
| false
| 1,635
|
java
|
/*
* Sonar ESQL Plugin
* Copyright (C) 2013-2017 Thomas Pohl and EXXETA AG
* http://www.exxeta.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 com.exxeta.iss.sonar.esql.api.tree;
import static com.exxeta.iss.sonar.esql.utils.Assertions.assertThat;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import com.exxeta.iss.sonar.esql.api.tree.Tree.Kind;
import com.exxeta.iss.sonar.esql.api.tree.function.ListConstructorFunctionTree;
import com.exxeta.iss.sonar.esql.utils.EsqlTreeModelTest;
public class ListConstructorFunctionTest extends EsqlTreeModelTest<ListConstructorFunctionTree>{
@Test
public void listConstructorFunction() {
assertThat(Kind.LIST_CONSTRUCTOR_FUNCTION)
.matches("LIST{InputBody.Car.color, 'green', 'blue'}");
}
@Test
public void modelTest() throws Exception {
ListConstructorFunctionTree tree = parse("LIST{InputBody.Car.color, 'green', 'blue'}", Kind.LIST_CONSTRUCTOR_FUNCTION);
assertNotNull(tree.listKeyword());
assertNotNull(tree.openingCurlyBrace());
assertNotNull(tree.expressions());
assertNotNull(tree.closingCurlyBrace());
}
}
|
[
"thomas.pohl@exxeta.de"
] |
thomas.pohl@exxeta.de
|
939ac0c4e001e341dd63a79b1ab21f807761288f
|
947fc9eef832e937f09f04f1abd82819cd4f97d3
|
/src/apk/io/intercom/com/bumptech/glide/load/engine/C0746e.java
|
26dc2d3bc18fc250feea2857469e30376adbeda1
|
[] |
no_license
|
thistehneisen/cifra
|
04f4ac1b230289f8262a0b9cf7448a1172d8f979
|
d46c6f4764c9d4f64e45c56fa42fddee9b44ff5a
|
refs/heads/master
| 2020-09-22T09:35:57.739040
| 2019-12-01T19:39:59
| 2019-12-01T19:39:59
| 225,136,583
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,467
|
java
|
package io.intercom.com.bumptech.glide.load.engine;
import io.intercom.com.bumptech.glide.load.g;
import java.security.MessageDigest;
/* renamed from: io.intercom.com.bumptech.glide.load.engine.e reason: case insensitive filesystem */
/* compiled from: DataCacheKey */
final class C0746e implements g {
/* renamed from: a reason: collision with root package name */
private final g f9877a;
/* renamed from: b reason: collision with root package name */
private final g f9878b;
C0746e(g gVar, g gVar2) {
this.f9877a = gVar;
this.f9878b = gVar2;
}
public boolean equals(Object obj) {
if (!(obj instanceof C0746e)) {
return false;
}
C0746e eVar = (C0746e) obj;
if (!this.f9877a.equals(eVar.f9877a) || !this.f9878b.equals(eVar.f9878b)) {
return false;
}
return true;
}
public int hashCode() {
return (this.f9877a.hashCode() * 31) + this.f9878b.hashCode();
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("DataCacheKey{sourceKey=");
sb.append(this.f9877a);
sb.append(", signature=");
sb.append(this.f9878b);
sb.append('}');
return sb.toString();
}
public void updateDiskCacheKey(MessageDigest messageDigest) {
this.f9877a.updateDiskCacheKey(messageDigest);
this.f9878b.updateDiskCacheKey(messageDigest);
}
}
|
[
"putnins@nils.digital"
] |
putnins@nils.digital
|
5a4e8abf15c48ce421a1446d5cddc124dacc7cfe
|
fa91450deb625cda070e82d5c31770be5ca1dec6
|
/Diff-Raw-Data/22/22_298fb9848feeafe5dcae87fcadc8010abe83ca37/ParseTreeNode/22_298fb9848feeafe5dcae87fcadc8010abe83ca37_ParseTreeNode_t.java
|
95a80c65634ff4bf16e9974ff079e99107a3e503
|
[] |
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
| 6,995
|
java
|
/*
* Copyright (c) 2012 Sam Harwell, Tunnel Vision Laboratories LLC
* All rights reserved.
*
* The source code of this document is proprietary work, and is not licensed for
* distribution. For information about licensing, contact Sam Harwell at:
* sam@tunnelvisionlabs.com
*/
package org.antlr.works.editor.antlr4.navigation;
import java.awt.Image;
import java.util.List;
import java.util.concurrent.Callable;
import org.antlr.netbeans.editor.text.OffsetRegion;
import org.antlr.v4.runtime.InterpreterRuleContext;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.RuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.tree.RuleNode;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.antlr.works.editor.antlr4.parsing.ParseTrees;
import org.netbeans.api.annotations.common.CheckForNull;
import org.netbeans.api.annotations.common.NonNull;
import org.netbeans.api.annotations.common.NullAllowed;
import org.netbeans.api.annotations.common.StaticResource;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.nodes.Node;
import org.openide.util.ImageUtilities;
/**
*
* @author Sam Harwell
*/
public class ParseTreeNode extends AbstractNode implements OffsetProvider {
@StaticResource
private static final String RULE_IMAGE_PATH = "org/antlr/works/editor/antlr4/navigation/ui/rule.png";
public static final Image RULE_IMAGE = ImageUtilities.loadImage(RULE_IMAGE_PATH);
@StaticResource
private static final String TERMINAL_IMAGE_PATH = "org/antlr/works/editor/antlr4/navigation/ui/terminal.png";
public static final Image TERMINAL_IMAGE = ImageUtilities.loadImage(TERMINAL_IMAGE_PATH);
@StaticResource
private static final String ERROR_IMAGE_PATH = "org/antlr/works/editor/antlr4/navigation/ui/error.png";
public static final Image ERROR_IMAGE = ImageUtilities.loadImage(ERROR_IMAGE_PATH);
@NonNull
private final ParseTree _tree;
@NullAllowed
private final List<String> _ruleNames;
@Deprecated
public ParseTreeNode(@NonNull ParseTree tree) {
this(tree, null);
}
public ParseTreeNode(@NonNull ParseTree tree, @NullAllowed List<String> ruleNames) {
super(Children.LEAF);
_tree = tree;
_ruleNames = ruleNames;
if (tree.getChildCount() > 0) {
setChildren(Children.createLazy(new ChildrenOfParseTreeNodeCreator()));
}
if (tree instanceof RuleNode) {
RuleNode ruleNode = (RuleNode)tree;
RuleContext ruleContext = ruleNode.getRuleContext();
if (ruleContext instanceof ParserRuleContext && ruleContext.getClass() != ParserRuleContext.class && ruleContext.getClass() != InterpreterRuleContext.class) {
String contextName = ruleContext.getClass().getSimpleName();
if (!"Context".equals(contextName) && contextName.endsWith("Context")) {
contextName = contextName.substring(0, contextName.length() - "Context".length());
}
contextName = Character.toLowerCase(contextName.charAt(0)) + contextName.substring(1);
setDisplayName(contextName);
} else {
String displayName = null;
if (ruleNames != null && ruleContext.getRuleIndex() > 0 && ruleContext.getRuleIndex() < ruleNames.size()) {
displayName = ruleNames.get(ruleContext.getRuleIndex());
}
if (displayName == null || displayName.isEmpty()) {
displayName = "Rule Node";
}
setDisplayName(displayName);
}
} else if (tree instanceof ErrorNode) {
setDisplayName("Error Node");
} else if (tree instanceof TerminalNode) {
String nodeText = tree.getText();
if (nodeText != null && !nodeText.isEmpty()) {
nodeText = nodeText.substring(0, Math.min(nodeText.length(), 100));
nodeText = nodeText.replace("\\", "\\\\");
nodeText = nodeText.replace("\r", "\\r");
nodeText = nodeText.replace("\n", "\\n");
nodeText = nodeText.replace("\t", "\\t");
nodeText = nodeText.replace("'", "\\'");
setDisplayName("'" + nodeText + "'");
} else {
setDisplayName("Terminal Node");
}
}
}
@NonNull
public ParseTree getTree() {
return _tree;
}
@CheckForNull
public List<String> getRuleNames() {
return _ruleNames;
}
@Override
public Image getIcon(int type) {
if (_tree instanceof RuleNode) {
return RULE_IMAGE;
} else if (_tree instanceof ErrorNode) {
return ERROR_IMAGE;
} else if (_tree instanceof TerminalNode) {
return TERMINAL_IMAGE;
}
return super.getIcon(type);
}
@Override
public Image getOpenedIcon(int type) {
return getIcon(type);
}
@Override
public OffsetRegion getSpan() {
TerminalNode startNode = ParseTrees.getStartNode(_tree);
if (startNode == null) {
return null;
}
TerminalNode stopNode = ParseTrees.getStopNode(_tree);
if (stopNode == null) {
// rule matched epsilon
return new OffsetRegion(startNode.getSymbol().getStartIndex(), 0);
}
return OffsetRegion.fromBounds(startNode.getSymbol().getStartIndex(), stopNode.getSymbol().getStopIndex() + 1);
}
@Override
public OffsetRegion getSeek() {
OffsetRegion span = getSpan();
if (span == null) {
return null;
}
return new OffsetRegion(span.getStart(), 0);
}
@Override
public OffsetRegion getEmphasis() {
return null;
}
protected ParseTreeNode createChildNode(ParseTree tree) {
return new ParseTreeNode(tree, _ruleNames);
}
private final class ChildrenOfParseTreeNodeCreator implements Callable<Children> {
@Override
public Children call() throws Exception {
Node[] childrenNodes = new Node[_tree.getChildCount()];
for (int i = 0; i < childrenNodes.length; i++) {
childrenNodes[i] = createChildNode(_tree.getChild(i));
}
return new NodeChildren(childrenNodes);
}
}
private static final class NodeChildren extends Children.Keys<Node> {
public NodeChildren(Node[] nodes) {
setKeys(nodes);
}
@Override
protected Node[] createNodes(Node key) {
return new Node[] { key };
}
}
}
|
[
"yuzhongxing88@gmail.com"
] |
yuzhongxing88@gmail.com
|
6905cab8a635b329ceb054cee46a61e16481aed4
|
97fd02f71b45aa235f917e79dd68b61c62b56c1c
|
/src/main/java/com/tencentcloudapi/cpdp/v20190820/models/GetPayRollAuthResultRequest.java
|
4b50472771c6427a8dbbe496c6aae82bd3ca9ea5
|
[
"Apache-2.0"
] |
permissive
|
TencentCloud/tencentcloud-sdk-java
|
7df922f7c5826732e35edeab3320035e0cdfba05
|
09fa672d75e5ca33319a23fcd8b9ca3d2afab1ec
|
refs/heads/master
| 2023-09-04T10:51:57.854153
| 2023-09-01T03:21:09
| 2023-09-01T03:21:09
| 129,837,505
| 537
| 317
|
Apache-2.0
| 2023-09-13T02:42:03
| 2018-04-17T02:58:16
|
Java
|
UTF-8
|
Java
| false
| false
| 3,590
|
java
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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.tencentcloudapi.cpdp.v20190820.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class GetPayRollAuthResultRequest extends AbstractModel{
/**
* 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
*/
@SerializedName("AuthNumber")
@Expose
private String AuthNumber;
/**
* 微信服务商下特约商户的商户号,由微信支付生成并下发
*/
@SerializedName("SubMerchantId")
@Expose
private String SubMerchantId;
/**
* Get 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
* @return AuthNumber 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
*/
public String getAuthNumber() {
return this.AuthNumber;
}
/**
* Set 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
* @param AuthNumber 商户系统内部的商家核身单号,要求此参数只能由数字、大小写字母组成,在服务商内部唯一
*/
public void setAuthNumber(String AuthNumber) {
this.AuthNumber = AuthNumber;
}
/**
* Get 微信服务商下特约商户的商户号,由微信支付生成并下发
* @return SubMerchantId 微信服务商下特约商户的商户号,由微信支付生成并下发
*/
public String getSubMerchantId() {
return this.SubMerchantId;
}
/**
* Set 微信服务商下特约商户的商户号,由微信支付生成并下发
* @param SubMerchantId 微信服务商下特约商户的商户号,由微信支付生成并下发
*/
public void setSubMerchantId(String SubMerchantId) {
this.SubMerchantId = SubMerchantId;
}
public GetPayRollAuthResultRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public GetPayRollAuthResultRequest(GetPayRollAuthResultRequest source) {
if (source.AuthNumber != null) {
this.AuthNumber = new String(source.AuthNumber);
}
if (source.SubMerchantId != null) {
this.SubMerchantId = new String(source.SubMerchantId);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "AuthNumber", this.AuthNumber);
this.setParamSimple(map, prefix + "SubMerchantId", this.SubMerchantId);
}
}
|
[
"tencentcloudapi@tencent.com"
] |
tencentcloudapi@tencent.com
|
84f1fc8fc0b34fc527228edcbc44e46a9c87098d
|
6be39fc2c882d0b9269f1530e0650fd3717df493
|
/weixin反编译/sources/com/tencent/mm/plugin/game/c/ar.java
|
3b523623250115b7914febb72a28fe7cb6522535
|
[] |
no_license
|
sir-deng/res
|
f1819af90b366e8326bf23d1b2f1074dfe33848f
|
3cf9b044e1f4744350e5e89648d27247c9dc9877
|
refs/heads/master
| 2022-06-11T21:54:36.725180
| 2020-05-07T06:03:23
| 2020-05-07T06:03:23
| 155,177,067
| 5
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,707
|
java
|
package com.tencent.mm.plugin.game.c;
import com.tencent.mm.bp.a;
import java.util.LinkedList;
public final class ar extends a {
public String fpg;
public String nlr;
public String nmT;
public LinkedList<dl> nmU = new LinkedList();
public ei nmV;
protected final int a(int i, Object... objArr) {
int h;
byte[] bArr;
if (i == 0) {
e.a.a.c.a aVar = (e.a.a.c.a) objArr[0];
if (this.nmT != null) {
aVar.g(1, this.nmT);
}
if (this.fpg != null) {
aVar.g(2, this.fpg);
}
aVar.d(3, 8, this.nmU);
if (this.nmV != null) {
aVar.fZ(4, this.nmV.bkL());
this.nmV.a(aVar);
}
if (this.nlr == null) {
return 0;
}
aVar.g(5, this.nlr);
return 0;
} else if (i == 1) {
if (this.nmT != null) {
h = e.a.a.b.b.a.h(1, this.nmT) + 0;
} else {
h = 0;
}
if (this.fpg != null) {
h += e.a.a.b.b.a.h(2, this.fpg);
}
h += e.a.a.a.c(3, 8, this.nmU);
if (this.nmV != null) {
h += e.a.a.a.fW(4, this.nmV.bkL());
}
if (this.nlr != null) {
h += e.a.a.b.b.a.h(5, this.nlr);
}
return h;
} else if (i == 2) {
bArr = (byte[]) objArr[0];
this.nmU.clear();
e.a.a.a.a aVar2 = new e.a.a.a.a(bArr, unknownTagHandler);
for (h = a.a(aVar2); h > 0; h = a.a(aVar2)) {
if (!super.a(aVar2, this, h)) {
aVar2.cKx();
}
}
return 0;
} else if (i != 3) {
return -1;
} else {
e.a.a.a.a aVar3 = (e.a.a.a.a) objArr[0];
ar arVar = (ar) objArr[1];
int intValue = ((Integer) objArr[2]).intValue();
LinkedList JD;
int size;
a dlVar;
e.a.a.a.a aVar4;
boolean z;
switch (intValue) {
case 1:
arVar.nmT = aVar3.AEQ.readString();
return 0;
case 2:
arVar.fpg = aVar3.AEQ.readString();
return 0;
case 3:
JD = aVar3.JD(intValue);
size = JD.size();
for (intValue = 0; intValue < size; intValue++) {
bArr = (byte[]) JD.get(intValue);
dlVar = new dl();
aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
for (z = true; z; z = dlVar.a(aVar4, dlVar, a.a(aVar4))) {
}
arVar.nmU.add(dlVar);
}
return 0;
case 4:
JD = aVar3.JD(intValue);
size = JD.size();
for (intValue = 0; intValue < size; intValue++) {
bArr = (byte[]) JD.get(intValue);
dlVar = new ei();
aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
for (z = true; z; z = dlVar.a(aVar4, dlVar, a.a(aVar4))) {
}
arVar.nmV = dlVar;
}
return 0;
case 5:
arVar.nlr = aVar3.AEQ.readString();
return 0;
default:
return -1;
}
}
}
}
|
[
"denghailong@vargo.com.cn"
] |
denghailong@vargo.com.cn
|
315d46bca95ed0499ee83503026f5830be8401a6
|
600f8b0c7e30852bfaad14dbc97e1237dd6d8d7a
|
/src/main/java/com/angkorteam/tomcat/openssl/OpenSSLImplementation.java
|
c442150708ffc79b8c11adebfdaf58f8c0e72323
|
[
"Apache-2.0"
] |
permissive
|
PkayJava/tomcat-extension
|
b12ef98abc94c68cd5c5f54c0b84536b67b915c2
|
bc0035920ead72bda99e7af1479b311236ee0456
|
refs/heads/master
| 2020-03-19T01:55:43.107896
| 2018-06-03T08:57:39
| 2018-06-03T08:57:39
| 135,583,920
| 1
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 385
|
java
|
package com.angkorteam.tomcat.openssl;
import org.apache.tomcat.util.net.SSLHostConfigCertificate;
import org.apache.tomcat.util.net.SSLUtil;
public class OpenSSLImplementation extends org.apache.tomcat.util.net.openssl.OpenSSLImplementation {
@Override
public SSLUtil getSSLUtil(SSLHostConfigCertificate certificate) {
return new OpenSSLUtil(certificate);
}
}
|
[
"pkayjava@gmail.com"
] |
pkayjava@gmail.com
|
fd6f31a6a53294f3546c072d5cb45d7657815ab6
|
32d65b7462a948b1f9cd3843ff59ff2be072bc1a
|
/src/test/java/com/cbt/FactoryInfoControllerTest.java
|
cff880f80379bf3e26a511a6f0330f243c16cd8f
|
[] |
no_license
|
fangfangbixia/fastermake
|
570c510832b660df3af552e925053d410904c746
|
70e5a415b91b55e02d6419172e3d5cea836a5a6a
|
refs/heads/master
| 2022-07-26T09:13:16.399949
| 2019-05-28T01:54:16
| 2019-05-28T01:54:16
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,958
|
java
|
//package com.cbt;
//
//import org.junit.Assert;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
//import com.cbt.entity.FactoryInfo;
//import com.cbt.service.FactoryInfoService;
//@RunWith(SpringJUnit4ClassRunner.class) //表示继承了SpringJUnit4ClassRunner类
//@ContextConfiguration(locations = {"classpath:spring-mybatis.xml"})
///**
// *
// * @author chenlun
// *
// */
//public class FactoryInfoControllerTest {
//
// @Autowired
// private FactoryInfoService factoryInfoService;
//
// @Test
// public void updateFactoryInfo(){
// FactoryInfo factoryInfo=new FactoryInfo();
// factoryInfo.setFactoryId("f2017092614");
// factoryInfo.setFactoryName("上海凯融信息科技有限公司");
// factoryInfo.setTel("13588886666");
// factoryInfo.setCity("普陀区");
// factoryInfo.setState("上海市");
// factoryInfo.setFactoryAcreage("500");
// factoryInfo.setStaffNumber("100");
// factoryInfo.setWebsite("www.importx.com");
// factoryInfo.setAliWebsite("www.importx.com/ali");
// factoryInfo.setDetailsAddress("上海市云岭东路609");
// factoryInfo.setDistrict("普陀区");
// factoryInfo.setType("0");
// factoryInfo.setFactoryValue("5000");
// factoryInfo.setEstablishmentYear("2000");
// factoryInfo.setFactoryLicense("");
// factoryInfo.setFactoryGate("");
// factoryInfo.setUsername("Panda");
// factoryInfo.setPosition("主管");
// factoryInfo.setTel("13566668888");
// factoryInfo.setFax("13655558888");
// factoryInfo.setMobile("13188889999");
// factoryInfo.setTechnologicalAdvantage("钣金,镀金,冲压");
// factoryInfo.setDominantMaterialModel("ISO-10100");
// factoryInfo.setDominantMaterialSize("大");
// factoryInfo.setMainProcess("钣金,切割,镀金");
// factoryInfo.setAcceptCondition("0");
// factoryInfo.setAcceptMoney("20万");
// factoryInfo.setCooperativeEnterprise("飞利浦,德邦,亚马逊");
// FactoryInfo result=new FactoryInfo();
// try {
// factoryInfoService.updateByPrimaryKeySelective(factoryInfo);
// result=factoryInfoService.selectFactoryInfo("f2017092614");
// Assert.assertEquals("更新接口有问题", "上海凯融信息科技有限公司", result.getFactoryName());
// } catch (Exception e) {
// e.printStackTrace();
// }finally{
// Assert.assertEquals("更新接口有问题", "上海凯融信息科技有限公司", result.getFactoryName());
// }
// }
//
// public void selectFactoryInfo(){
// String factoryId="f201711501";
// FactoryInfo factoryInfo=new FactoryInfo();
// try {
// factoryInfo=factoryInfoService.selectFactoryInfo(factoryId);
// Assert.assertNull(factoryInfo);
// } catch (Exception e) {
// e.printStackTrace();
// }finally{
// Assert.assertNull(factoryInfo);
// }
// }
//}
|
[
"545731790@qq.com"
] |
545731790@qq.com
|
0be6c04dfab145eb80d46500c25fd4916e6ec7fc
|
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
|
/emr-20210320/src/main/java/com/aliyun/emr20210320/models/OperationStateChangeReason.java
|
fc6cd00f71b645effb9db21287a4454a93526049
|
[
"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
| 881
|
java
|
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.emr20210320.models;
import com.aliyun.tea.*;
public class OperationStateChangeReason extends TeaModel {
@NameInMap("Code")
public String code;
@NameInMap("Message")
public String message;
public static OperationStateChangeReason build(java.util.Map<String, ?> map) throws Exception {
OperationStateChangeReason self = new OperationStateChangeReason();
return TeaModel.build(map, self);
}
public OperationStateChangeReason setCode(String code) {
this.code = code;
return this;
}
public String getCode() {
return this.code;
}
public OperationStateChangeReason setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return this.message;
}
}
|
[
"sdk-team@alibabacloud.com"
] |
sdk-team@alibabacloud.com
|
89a9cfc16cfd04b6a99992e5bf6be5e7738e2ff5
|
8388d3009c0be9cb4e3ea25abbce7a0ad6f9b299
|
/business/pms/pms-core/src/main/java/com/sinosoft/pms/core/kernel/util/BasePrpDItemServiceImpl.java
|
8cc729bb7a6e4f0eefe3e087e8f56c0fc1fa3d08
|
[] |
no_license
|
foxhack/NewAgri2018
|
a182bd34d0c583a53c30d825d5e2fa569f605515
|
be8ab05e0784c6e7e7f46fea743debb846407e4f
|
refs/heads/master
| 2021-09-24T21:58:18.577979
| 2018-10-15T11:24:21
| 2018-10-15T11:24:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 1,469
|
java
|
package com.sinosoft.pms.core.kernel.util;
import com.sinosoft.framework.core.service.impl.BaseServiceImpl;
import com.sinosoft.framework.dto.PageInfo;
import javax.persistence.Query;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class BasePrpDItemServiceImpl extends BaseServiceImpl {
/**
* @description jpql查询参数、分页参数设置
* @param dataQuery
* @param pageNo
* @param pageSize
* @param paraMap
*/
public void setQueryParam(Query dataQuery, int pageNo, int pageSize, Map<String,Object> paraMap){
//1、设置参数
for (String key : paraMap.keySet()) {
dataQuery.setParameter(key,paraMap.get(key));
}
//2、设置分页
dataQuery.setFirstResult((pageNo - 1) * pageSize);
dataQuery.setMaxResults(pageNo * pageSize);
}
/**
* @description jpql设置统一返回类型
* @param list
* @param pageNo
* @param dtoClass
* @param <T>
* @return
*/
public <T> PageInfo<T> setPageInfo(List<?> list, int pageNo, Class<T> dtoClass){
List<T> listDto=new ArrayList<T>(list.size());
//生成response pageinfo格式
PageInfo<T> pageInfo=new PageInfo<>();
convertCollection(list,listDto,dtoClass);
pageInfo.setContent(listDto);
pageInfo.setPages(pageNo);
pageInfo.setTotalCount(list.size());
return pageInfo;
}
}
|
[
"vicentdk77@users.noreply.github.com"
] |
vicentdk77@users.noreply.github.com
|
9bc75d9721cfce941eb251821794155f4b71b8d2
|
10c96edfa12e1a7eef1caf3ad1d0e2cdc413ca6f
|
/src/main/resources/projs/jsoup_parent/src/main/java/org/jsoup/internal/ConstrainableInputStream.java
|
1b8a65dbc95c7556d433183380305dd257692fd3
|
[
"Apache-2.0",
"MIT"
] |
permissive
|
Gu-Youngfeng/EfficiencyMiner
|
c17c574e41feac44cc0f483135d98291139cda5c
|
48fb567015088f6e48dfb964a4c63f2a316e45d4
|
refs/heads/master
| 2020-03-19T10:06:33.362993
| 2018-08-01T01:17:40
| 2018-08-01T01:17:40
| 136,343,802
| 0
| 0
|
Apache-2.0
| 2018-08-01T01:17:41
| 2018-06-06T14:51:55
|
Java
|
UTF-8
|
Java
| false
| false
| 1,017
|
java
|
package org.jsoup.internal;
import org.jsoup.helper.Validate;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
/**
* A jsoup internal class (so don't use it as there is no contract API) that enables constraints on an Input Stream,
* namely a maximum read size, and the ability to Thread.interrupt() the read.
*/
public final class ConstrainableInputStream extends BufferedInputStream {
private final boolean capped;
private int remaining;
public ConstrainableInputStream(InputStream in, int bufferSize, int maxSize) {
super(in, bufferSize);
Validate.isTrue(maxSize >= 0);
remaining = maxSize;
capped = maxSize != 0;
}
@Override
public int read(byte[] b, int off, int len) throws IOException {
if (Thread.interrupted() || remaining < 0)
return -1;
final int read = super.read(b, off, len);
if (capped) {
remaining -= read;
}
return read;
}
}
|
[
"yongfeng_gu@163.com"
] |
yongfeng_gu@163.com
|
c304a28fb2b59f82e1c4a153259691b5b638bbd8
|
c337294844845f6d6b736d664f5a71efe720d65b
|
/site/src/site-ear/resources/generated/org/reverse/SociosTmkDelId.java
|
77775218d2c2d300445583f49e2c76eae689ba38
|
[] |
no_license
|
MGDevelopment/site-jrun
|
25ad663b4a9d0b9b07cf0a3d4ef436594976ad5b
|
0547d837bbd1ed7328b4e8d775adf9defd622981
|
refs/heads/master
| 2020-06-05T02:28:11.102960
| 2013-09-10T13:12:27
| 2013-09-10T13:12:27
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 2,279
|
java
|
package org.reverse;
// Generated Oct 20, 2010 10:21:56 AM by Hibernate Tools 3.4.0.Beta1
import java.util.Date;
/**
* SociosTmkDelId generated by hbm2java
*/
public class SociosTmkDelId implements java.io.Serializable {
private Short idSucursal;
private Long idSocio;
private Date fechaBorrado;
public SociosTmkDelId() {
}
public SociosTmkDelId(Short idSucursal, Long idSocio, Date fechaBorrado) {
this.idSucursal = idSucursal;
this.idSocio = idSocio;
this.fechaBorrado = fechaBorrado;
}
public Short getIdSucursal() {
return this.idSucursal;
}
public void setIdSucursal(Short idSucursal) {
this.idSucursal = idSucursal;
}
public Long getIdSocio() {
return this.idSocio;
}
public void setIdSocio(Long idSocio) {
this.idSocio = idSocio;
}
public Date getFechaBorrado() {
return this.fechaBorrado;
}
public void setFechaBorrado(Date fechaBorrado) {
this.fechaBorrado = fechaBorrado;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof SociosTmkDelId) ) return false;
SociosTmkDelId castOther = ( SociosTmkDelId ) other;
return ( (this.getIdSucursal()==castOther.getIdSucursal()) || ( this.getIdSucursal()!=null && castOther.getIdSucursal()!=null && this.getIdSucursal().equals(castOther.getIdSucursal()) ) )
&& ( (this.getIdSocio()==castOther.getIdSocio()) || ( this.getIdSocio()!=null && castOther.getIdSocio()!=null && this.getIdSocio().equals(castOther.getIdSocio()) ) )
&& ( (this.getFechaBorrado()==castOther.getFechaBorrado()) || ( this.getFechaBorrado()!=null && castOther.getFechaBorrado()!=null && this.getFechaBorrado().equals(castOther.getFechaBorrado()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getIdSucursal() == null ? 0 : this.getIdSucursal().hashCode() );
result = 37 * result + ( getIdSocio() == null ? 0 : this.getIdSocio().hashCode() );
result = 37 * result + ( getFechaBorrado() == null ? 0 : this.getFechaBorrado().hashCode() );
return result;
}
}
|
[
"mgoldsman@gmail.com"
] |
mgoldsman@gmail.com
|
2840a59c98bc87d39bbed5831e89eecaa88828e5
|
995f73d30450a6dce6bc7145d89344b4ad6e0622
|
/Mate20-9.0/src/main/java/huawei/android/security/IHwSfpService.java
|
d4fda3907987539d5b91917ee9f3b0108a67757c
|
[] |
no_license
|
morningblu/HWFramework
|
0ceb02cbe42585d0169d9b6c4964a41b436039f5
|
672bb34094b8780806a10ba9b1d21036fd808b8e
|
refs/heads/master
| 2023-07-29T05:26:14.603817
| 2021-09-03T05:23:34
| 2021-09-03T05:23:34
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 3,887
|
java
|
package huawei.android.security;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.List;
public interface IHwSfpService extends IInterface {
public static abstract class Stub extends Binder implements IHwSfpService {
private static final String DESCRIPTOR = "huawei.android.security.IHwSfpService";
static final int TRANSACTION_getKeyDesc = 1;
static final int TRANSACTION_getSensitiveDataPolicyList = 2;
private static class Proxy implements IHwSfpService {
private IBinder mRemote;
Proxy(IBinder remote) {
this.mRemote = remote;
}
public IBinder asBinder() {
return this.mRemote;
}
public String getInterfaceDescriptor() {
return Stub.DESCRIPTOR;
}
public String getKeyDesc(int userId, int storageType) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
_data.writeInt(userId);
_data.writeInt(storageType);
this.mRemote.transact(1, _data, _reply, 0);
_reply.readException();
return _reply.readString();
} finally {
_reply.recycle();
_data.recycle();
}
}
public List<String> getSensitiveDataPolicyList() throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
try {
_data.writeInterfaceToken(Stub.DESCRIPTOR);
this.mRemote.transact(2, _data, _reply, 0);
_reply.readException();
return _reply.createStringArrayList();
} finally {
_reply.recycle();
_data.recycle();
}
}
}
public Stub() {
attachInterface(this, DESCRIPTOR);
}
public static IHwSfpService asInterface(IBinder obj) {
if (obj == null) {
return null;
}
IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (iin == null || !(iin instanceof IHwSfpService)) {
return new Proxy(obj);
}
return (IHwSfpService) iin;
}
public IBinder asBinder() {
return this;
}
public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {
if (code != 1598968902) {
switch (code) {
case 1:
data.enforceInterface(DESCRIPTOR);
String _result = getKeyDesc(data.readInt(), data.readInt());
reply.writeNoException();
reply.writeString(_result);
return true;
case 2:
data.enforceInterface(DESCRIPTOR);
List<String> _result2 = getSensitiveDataPolicyList();
reply.writeNoException();
reply.writeStringList(_result2);
return true;
default:
return super.onTransact(code, data, reply, flags);
}
} else {
reply.writeString(DESCRIPTOR);
return true;
}
}
}
String getKeyDesc(int i, int i2) throws RemoteException;
List<String> getSensitiveDataPolicyList() throws RemoteException;
}
|
[
"dstmath@163.com"
] |
dstmath@163.com
|
2300a7de881dfce6307d4bd7aa253361588121fb
|
58afe8815f26dd6d9703d1cd9131fc7a4bdba09a
|
/predavanja/primeri-java-2016/src/v22/v01KoriscenjeDOM/TryDOM.java
|
ab22129121ca7495841ee164f9bd7d1acdb6e1e6
|
[
"MIT"
] |
permissive
|
MatfOOP/OOP
|
098213709417006ccb13519eea7208d9e6f32900
|
98eea2bb90c23973ad80c56dfcba42eaf1757b71
|
refs/heads/master
| 2023-07-07T01:34:49.955311
| 2023-06-30T17:13:48
| 2023-06-30T17:13:48
| 138,500,698
| 7
| 0
| null | null | null | null |
UTF-8
|
Java
| false
| false
| 736
|
java
|
package v22.v01KoriscenjeDOM;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
public class TryDOM {
public static void main(String args[]) {
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
try {
builder = builderFactory.newDocumentBuilder();
}
catch(ParserConfigurationException e) {
e.printStackTrace();
System.exit(1);
}
System.out.println("Builder Factory = " + builderFactory +"\nBuilder = "
+ builder);
}
}
|
[
"vladofilipovic@hotmail.com"
] |
vladofilipovic@hotmail.com
|
22b1c2ba94feef02165f9db2b87b3c49eead21a2
|
13ea5da0b7b8d4ba87d622a5f733dcf6b4c5f1e3
|
/crash-reproduction-new-fitness/results/XWIKI-13546-1-29-Single_Objective_GGA-WeightedSum-BasicBlockCoverage-opt/org/xwiki/model/reference/EntityReference_ESTest_scaffolding.java
|
a9f9beb0ff326ace72b7f588a2d7fe496101bf05
|
[
"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,078
|
java
|
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Tue Oct 26 11:28:34 UTC 2021
*/
package org.xwiki.model.reference;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;
@EvoSuiteClassExclude
public class EntityReference_ESTest_scaffolding {
@org.junit.Rule
public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule();
private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000);
@BeforeClass
public static void initEvoSuiteFramework() {
org.evosuite.runtime.RuntimeSettings.className = "org.xwiki.model.reference.EntityReference";
org.evosuite.runtime.GuiSupport.initialize();
org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000;
org.evosuite.runtime.RuntimeSettings.mockSystemIn = true;
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
}
@Before
public void initTestCase(){
threadStopper.storeCurrentThreads();
threadStopper.startRecordingTime();
org.evosuite.runtime.GuiSupport.setHeadless();
org.evosuite.runtime.Runtime.getInstance().resetRuntime();
org.evosuite.runtime.agent.InstrumentingAgent.activate();
}
@After
public void doneWithTestCase(){
threadStopper.killAndJoinClientThreads();
org.evosuite.runtime.agent.InstrumentingAgent.deactivate();
org.evosuite.runtime.GuiSupport.restoreHeadlessMode();
}
private static void initializeClasses() {
org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(EntityReference_ESTest_scaffolding.class.getClassLoader() ,
"org.xwiki.model.internal.reference.LocalizedStringEntityReferenceSerializer",
"org.xwiki.model.internal.reference.StringReferenceSeparators$3",
"org.xwiki.model.internal.reference.AbstractStringEntityReferenceSerializer",
"org.xwiki.stability.Unstable",
"org.xwiki.model.internal.reference.StringReferenceSeparators$4",
"org.xwiki.component.annotation.Component",
"org.xwiki.model.reference.EntityReference",
"org.xwiki.model.internal.reference.StringReferenceSeparators",
"org.xwiki.model.internal.reference.StringReferenceSeparators$1",
"org.xwiki.text.StringUtils",
"org.xwiki.model.internal.reference.StringReferenceSeparators$2",
"org.apache.commons.lang3.StringUtils",
"org.xwiki.model.internal.reference.DefaultStringEntityReferenceSerializer",
"org.apache.commons.lang3.Validate",
"org.xwiki.model.reference.DocumentReference",
"org.xwiki.model.reference.LocalDocumentReference",
"org.apache.commons.lang3.builder.Builder",
"org.apache.commons.lang3.builder.HashCodeBuilder",
"org.xwiki.model.EntityType",
"org.xwiki.model.reference.EntityReferenceSerializer"
);
}
}
|
[
"pderakhshanfar@serg2.ewi.tudelft.nl"
] |
pderakhshanfar@serg2.ewi.tudelft.nl
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.