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
b1462c279fd1dde75bfebc9fd4a7940e630ac2bb
b31f401aaf05fa0f2b31ad239d0187a8b7378d6d
/src/main/java/com/finalproj/finalproject/service/impl/EventSpecialGuestServiceImpl.java
e8f74eb9c483bc63cdaed29b54a35ebe515757a8
[]
no_license
lakith/FinalYear-Back-End
e735ee1010276e66139fc67205818d675dbf27c7
86596a7cd735071f72150987f7cb807c335d06c6
refs/heads/master
2020-04-22T12:32:02.814016
2019-05-20T20:13:08
2019-05-20T20:13:08
170,374,861
0
0
null
null
null
null
UTF-8
Java
false
false
6,608
java
package com.finalproj.finalproject.service.impl; import com.finalproj.finalproject.Enums.MealPreferance; import com.finalproj.finalproject.Enums.UserConfirmation; import com.finalproj.finalproject.data.MailBody; import com.finalproj.finalproject.dto.GuestMailsDTO; import com.finalproj.finalproject.dto.UserConfirmationDTO; import com.finalproj.finalproject.model.*; import com.finalproj.finalproject.repository.*; import com.finalproj.finalproject.service.EventSpecialGuestService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import javax.transaction.Transactional; import java.security.Principal; import java.util.ArrayList; import java.util.List; import java.util.Optional; @Service @Transactional public class EventSpecialGuestServiceImpl implements EventSpecialGuestService { @Autowired EventRepository eventRepository; @Autowired UserRepository userRepository; @Autowired SpecialGuestMailRepository specialGuestMailRepository; @Autowired EventSpecialGuestsRepository eventSpecialGuestsRepository; @Autowired SpecialGuestRepository specialGuestRepository; public ResponseEntity<?> sendmailsForSpecialGuest(GuestMailsDTO guestMailsDTO) throws Exception { Optional<Event> optionalEvent = eventRepository.findById(guestMailsDTO.getEventId()); if(!optionalEvent.isPresent()){ return new ResponseEntity<>(new ResponseModel("Invalied Event Id","Invalied Event Id.",false), HttpStatus.BAD_REQUEST); } Event event = optionalEvent.get(); MailBody mailBody = new MailBody(); String mailBodyMessage = mailBody.getSpecialGuestMailAddress(event.getEventName()); List<SpecialGuestEmails> specialGuestEmails; if(event.getSpecialGuestEmails().isEmpty()){ specialGuestEmails = new ArrayList<>(); } else { specialGuestEmails = event.getSpecialGuestEmails(); } for(String mail : guestMailsDTO.getEmails()){ SendGridMailClient.sendMail(mailBodyMessage,mail,event.getEventName()); SpecialGuestEmails guestEmail = new SpecialGuestEmails(); guestEmail.setMail(mail); guestEmail = specialGuestMailRepository.save(guestEmail); specialGuestEmails.add(guestEmail); } event.setSpecialGuestEmails(specialGuestEmails); try { event = eventRepository.save(event); return new ResponseEntity<>(event,HttpStatus.OK); } catch (Exception e) { throw new Exception(e.getMessage()); } } public ResponseEntity<?> confirmUserAttendance(UserConfirmationDTO userConfirmationDTO, Principal principal) throws Exception { Optional<Event> optionalEvent = eventRepository.findById(userConfirmationDTO.getEventId()); if(!optionalEvent.isPresent()){ return new ResponseEntity<>(new ResponseModel("Invalid Event Id. ","Invalid Event Id.",false), HttpStatus.BAD_REQUEST); } Event event = optionalEvent.get(); Optional<User> optionalUser = userRepository.findById(Integer.parseInt(principal.getName())); if(!optionalUser.isPresent()){ return new ResponseEntity<>(new ResponseModel("Invalid User Id.","Invalid User Id",false),HttpStatus.BAD_REQUEST); } User user = optionalUser.get(); EventSpecialGuests eventSpecialGuests = event.getEventSpecialGuests(); List<SpecialGuest> specialGuestsList; if(eventSpecialGuests != null){ specialGuestsList = event.getEventSpecialGuests().getSpecialGuest(); if(specialGuestsList.isEmpty()){ specialGuestsList = new ArrayList<>(); }else { for (SpecialGuest guest : specialGuestsList){ if(guest.getSpecialUser().getUserId() == user.getUserId()){ return new ResponseEntity<>(new ResponseModel("User Already Confirmed","User Already Confirmed",false),HttpStatus.BAD_REQUEST); } } } } else{ eventSpecialGuests = new EventSpecialGuests(); specialGuestsList = new ArrayList<>(); } SpecialGuest specialGuest = new SpecialGuest(); specialGuest.setSpecialUser(user); if(userConfirmationDTO.getConfirmation() == 1) { specialGuest.setConfirmation(UserConfirmation.COMMING); } else if(userConfirmationDTO.getConfirmation() == 2){ specialGuest.setConfirmation(UserConfirmation.NOT_SURE); } else { specialGuest.setConfirmation(UserConfirmation.NOT_COMMING); } if(userConfirmationDTO.getMealPreference() == 1){ specialGuest.setMealPreferance(MealPreferance.VEG); } else { specialGuest.setMealPreferance(MealPreferance.NON_VEG); } try { specialGuest = specialGuestRepository.save(specialGuest); specialGuestsList.add(specialGuest); eventSpecialGuests.setSpecialGuest(specialGuestsList); eventSpecialGuests = eventSpecialGuestsRepository.save(eventSpecialGuests); event.setEventSpecialGuests(eventSpecialGuests); event = eventRepository.save(event); return new ResponseEntity<>(event,HttpStatus.CREATED); } catch (Exception e) { throw new Exception(e.getMessage()); } } public ResponseEntity<?> getEventSpecialGuestList(int eventId) { Optional<Event> optionalEvent = eventRepository.findById(eventId); if(!optionalEvent.isPresent()){ return new ResponseEntity<>(new ResponseModel("Invalied Event Id. ","Invalid Event Id.",false), HttpStatus.BAD_REQUEST); } List<SpecialGuest> specialGuestList = new ArrayList<>(); Event event = optionalEvent.get(); if(event.getEventSpecialGuests() != null){ specialGuestList = event.getEventSpecialGuests().getSpecialGuest(); } else { return new ResponseEntity<>(new ResponseModel("No events display","No events display",false),HttpStatus.BAD_REQUEST); } if(!specialGuestList.isEmpty()){ return new ResponseEntity<>(specialGuestList,HttpStatus.OK); } else { return new ResponseEntity<>(new ResponseModel("No events display","No events display",false),HttpStatus.BAD_REQUEST); } } }
[ "lakith1995@gmail.com" ]
lakith1995@gmail.com
2b9e13d15b3fcd30fa8be1db122b45809b2881df
7dd73504d783c7ebb0c2e51fa98dea2b25c37a11
/eaglercraftx-1.8-main/sources/main/java/net/lax1dude/eaglercraft/v1_8/internal/IBufferGL.java
5d1a0aac5b9085240a7ad0c47bfd1c3e00181393
[ "LicenseRef-scancode-proprietary-license" ]
permissive
bagel-man/bagel-man.github.io
32813dd7ef0b95045f53718a74ae1319dae8c31e
eaccb6c00aa89c449c56a842052b4e24f15a8869
refs/heads/master
2023-04-05T10:27:26.743162
2023-03-16T04:24:32
2023-03-16T04:24:32
220,102,442
3
21
MIT
2022-12-14T18:44:43
2019-11-06T22:29:24
C++
UTF-8
Java
false
false
600
java
package net.lax1dude.eaglercraft.v1_8.internal; /** * Copyright (c) 2022 LAX1DUDE. All Rights Reserved. * * WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES * NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED * TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE * SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. * * NOT FOR COMMERCIAL OR MALICIOUS USE * * (please read the 'LICENSE' file this repo's root directory for more info) * */ public interface IBufferGL extends IObjectGL { }
[ "tom@blowmage.com" ]
tom@blowmage.com
a2e46dc197c339a2bf765f9621cd0ff2142cb7dd
ffffc65734399f13fb375eaf164b418e9aed64ea
/kostabank_ver4/src/main/java/org/kosta/kostabank/controller/QuestionController.java
1a2e8a70e368035b35be19f71791d51564ae123f
[ "MIT" ]
permissive
seokjk/kostabank
e69eae6d54a0faaa8df3a7e65ee7757448709d8b
58f60ea9c91ad637e50967ab5662ab1b0727c359
refs/heads/master
2021-01-19T02:30:31.278364
2016-07-13T04:23:12
2016-07-13T04:23:12
60,392,911
0
0
null
null
null
null
UTF-8
Java
false
false
2,923
java
package org.kosta.kostabank.controller; import java.util.List; import javax.annotation.Resource; import org.kosta.kostabank.model.service.QuestionService; import org.kosta.kostabank.model.vo.PagingBean; import org.kosta.kostabank.model.vo.QuestionListVO; import org.kosta.kostabank.model.vo.QuestionVO; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; @Controller public class QuestionController { @Resource private QuestionService service; /////////////////////////////////////////////////////////////// /////// title : questionTable /////// /////// dec : 자주 묻는 게시판 보기 /////// /////////////////////////////////////////////////////////////// @RequestMapping("questiontable.bank") public ModelAndView questionTable(String section, String page){ int total=service.totalContents(section); PagingBean pagingBean = new PagingBean(total,Integer.parseInt(page)); List<QuestionVO> list = service.questionTable(section,page); QuestionListVO listVO = new QuestionListVO(list, pagingBean); return new ModelAndView("question_list","listVO",listVO); } /////////////////////////////////////////////////////////////// /////// title : questionShowContents /////// /////// dec : 자주 묻는 게시판 글 보기(조회수 증가o) /////// /////////////////////////////////////////////////////////////// @RequestMapping("questionshowcontents.bank") public String questionShowContents(String no){ service.questionShowContents(no); return ("redirect:questionShowContentsNoHit.bank?no="+no); } /////////////////////////////////////////////////////////////// /////// title : questionShowContentsNoHit /////// /////// dec : 자주 묻는 게시판 글 보기(조회수 증가x) /////// /////////////////////////////////////////////////////////////// @RequestMapping("questionShowContentsNoHit.bank") public ModelAndView questionShowContentsNoHit(String no){ QuestionVO vo = service.questionShowContentsNoHit(no); return new ModelAndView("question_showcontents","answerVO",vo); } /////////////////////////////////////////////////////////////// /////// title : questionTable /////// /////// dec : 자주 묻는 게시판 보기(검색) /////// /////////////////////////////////////////////////////////////// @RequestMapping("questionsearch.bank") public ModelAndView questionSearch(String questionsearch,String page){ int total=service.searchTotalContents(questionsearch); PagingBean pagingBean = new PagingBean(total,Integer.parseInt(page)); List<QuestionVO> list = service.questionSearch(questionsearch,page); QuestionListVO listVO = new QuestionListVO(list, pagingBean); return new ModelAndView("question_searchlist","listVO",listVO); } }
[ "kosta@kosta-HP" ]
kosta@kosta-HP
9047f9813b7b469ed1ea8fb9fe7c6ccc29de58a2
05d3ddab678ae49c089bc8b5f1a83f8afa32dae4
/python/testSrc/com/jetbrains/env/ut/PyScriptTestProcessRunner.java
deeff0ec0c745396f5141cb23df3248d74f23709
[ "Apache-2.0" ]
permissive
machaba/intellij-community
1285c4757d6d2c8afb88d0e85862838835135200
80a2f265d335147cb280a48d30d18a73c9078b62
refs/heads/master
2020-12-30T17:20:04.396823
2015-08-18T15:58:33
2015-08-18T15:58:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,207
java
/* * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.jetbrains.env.ut; import com.intellij.execution.configurations.ConfigurationFactory; import com.jetbrains.env.ConfigurationBasedProcessRunner; import com.jetbrains.env.PyAbstractTestProcessRunner; import com.jetbrains.python.run.AbstractPythonRunConfigurationParams; import com.jetbrains.python.testing.AbstractPythonTestRunConfigurationParams; import org.jetbrains.annotations.NotNull; import java.io.IOException; /** * {@link PyAbstractTestProcessRunner} to run script-bases tests * * @author Ilya.Kazakevich */ public class PyScriptTestProcessRunner<CONF_T extends AbstractPythonRunConfigurationParams & AbstractPythonTestRunConfigurationParams> extends PyAbstractTestProcessRunner<CONF_T> { @NotNull private final String myScriptName; /** * @param scriptName name of script to run * @see ConfigurationBasedProcessRunner#ConfigurationBasedProcessRunner(ConfigurationFactory, Class, String) */ public PyScriptTestProcessRunner(@NotNull final ConfigurationFactory configurationFactory, @NotNull final Class<CONF_T> expectedConfigurationType, @NotNull final String workingFolder, @NotNull final String scriptName) { super(configurationFactory, expectedConfigurationType, workingFolder); myScriptName = scriptName; } @Override protected void configurationCreatedAndWillLaunch(@NotNull final CONF_T configuration) throws IOException { super.configurationCreatedAndWillLaunch(configuration); configuration.setScriptName(myScriptName); } }
[ "Ilya.Kazakevich@jetbrains.com" ]
Ilya.Kazakevich@jetbrains.com
6cf458f8d699b00b185ca6ac3a4445de23949565
0c11613c21ebe12f48d6cebb6339887e10e72219
/taobao-sdk-java/src/main/java/com/taobao/api/domain/PropImg.java
8c6b27ab10a6d155b8e025fd40a64e900bf2e02b
[]
no_license
mustang2247/demo
a3347a2994448086814383c67757f659208368cd
35598ed0a3900afc759420b7100a7d310db2597d
refs/heads/master
2021-05-09T17:28:22.631386
2014-06-10T12:03:26
2014-06-10T12:03:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,580
java
package com.taobao.api.domain; import java.util.Date; import com.taobao.api.internal.mapping.ApiClass; import com.taobao.api.internal.mapping.ApiField; import com.taobao.api.TaobaoObject; /** * PropImg Data Structure. * * DESC:商品属性图片结构 * * @author auto create * @since 1.0, 2010-04-22 13:41:43.0 */ @ApiClass("PropImg") public class PropImg extends TaobaoObject { private static final long serialVersionUID = 4782447656854834673L; /** * 图片创建时间 时间格式:yyyy-MM-dd HH:mm:ss **/ @ApiField("created") private Date created; /** * 属性图片的id,和商品相对应 **/ @ApiField("id") private Long id; /** * 图片放在第几张(多图时可设置) **/ @ApiField("position") private Long position; /** * 图片所对应的属性组合的字符串 **/ @ApiField("properties") private String properties; /** * 图片链接地址 **/ @ApiField("url") private String url; public Date getCreated() { return this.created; } public void setCreated(Date created) { this.created = created; } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; } public Long getPosition() { return this.position; } public void setPosition(Long position) { this.position = position; } public String getProperties() { return this.properties; } public void setProperties(String properties) { this.properties = properties; } public String getUrl() { return this.url; } public void setUrl(String url) { this.url = url; } }
[ "Administrator@.(none)" ]
Administrator@.(none)
c850fdbcf14b937d1cf325330b5662161dcf1b10
a12dfb245f94a408920b9d0230156b0b7e485c12
/src/main/java/com/wsk/movie/error/LoginErrorException.java
cb364c5ae5f130ea6862d1fb5d8f3764a8b7e290
[]
no_license
chenbaochao/movie-boot
f4c0ad7f01d8c8f265a908ceebc421d3340c99c3
2599e6e0650648ee03faa6b42109222d63305788
refs/heads/master
2021-04-18T22:05:48.866876
2018-03-25T12:23:56
2018-03-25T12:23:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
388
java
package com.wsk.movie.error; import lombok.Data; /** * @DESCRIPTION :异常处理类,账号未登录,不需要捕获 * @AUTHOR : WuShukai1103 * @TIME : 2018/1/19 20:41 */ @Data public class LoginErrorException extends RuntimeException { private String message; public LoginErrorException(String message) { super(message); this.message = message; } }
[ "1261709167@qq.com" ]
1261709167@qq.com
28652f8847a46a353abffbef17fdb2c32d61dce0
4a108980200bdb36c813bac64d9450af3e177a4c
/src/main/java/nl/knokko/enderpower/gui/GuiGenerator.java
a605596fc7354d48e6b9166381f9c869d569ffea
[ "MIT" ]
permissive
knokko/Enderpower-1.11.2
a89f4678ffc52dd27c300657fa9836734212135a
a5fa6ee9b527ac32ace7f8d345ca182b9cca39d1
refs/heads/master
2020-03-29T05:33:08.783081
2018-09-20T09:46:12
2018-09-20T09:46:12
149,587,167
0
0
null
null
null
null
UTF-8
Java
false
false
3,678
java
package nl.knokko.enderpower.gui; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.inventory.Container; import net.minecraft.util.ResourceLocation; import nl.knokko.enderpower.EnderPower; import nl.knokko.enderpower.container.ContainerEnderFurnace; import nl.knokko.enderpower.container.ContainerGenerator; import nl.knokko.enderpower.energy.EnergyType; import nl.knokko.enderpower.tileentity.TileEntityEnderFurnace; import nl.knokko.enderpower.tileentity.TileEntityGenerator; public class GuiGenerator extends GuiContainer { private static final ResourceLocation GENERATOR_GUI_TEXTURES = new ResourceLocation(EnderPower.MODID + ":textures/gui/generator.png"); /** The player inventory bound to this GUI. */ private final InventoryPlayer player; private final TileEntityGenerator generator; public GuiGenerator(InventoryPlayer playerInv, TileEntityGenerator generator){ super(new ContainerGenerator(playerInv, generator)); this.player = playerInv; this.generator = generator; System.out.println(inventorySlots.inventorySlots); } protected ResourceLocation getTexture(){ return GENERATOR_GUI_TEXTURES; } /** * Draw the foreground layer for the GuiContainer (everything in front of the items) */ protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY){ String s = generator.getDisplayName().getUnformattedText(); this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752); this.fontRendererObj.drawString(this.player.getDisplayName().getUnformattedText(), 8, this.ySize - 96 + 2, 4210752); } /** * Draws the background layer of this container (behind the items). */ protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY){ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(getTexture()); int i = (this.width - this.xSize) / 2; int j = (this.height - this.ySize) / 2; this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize); EnergyType type = generator.getBurnType(); if(type != null){ int l = getBurnProgressScaled(80); drawTexturedModalRect(i + 36, j + 16, 176, 64 + 18 * type.ordinal(), l, 18); } int l = getCurrentEnergyScaled(EnergyType.THAU, 32); drawTexturedModalRect(i + 8, j + 80 - l, 176, 0, 16, l); l = getCurrentEnergyScaled(EnergyType.SIE, 32); drawTexturedModalRect(i + 26, j + 80 - l, 192, 0, 16, l); l = getCurrentEnergyScaled(EnergyType.FIE, 32); drawTexturedModalRect(i + 44, j + 80 - l, 208, 0, 16, l); l = getCurrentEnergyScaled(EnergyType.GEE, 32); drawTexturedModalRect(i + 62, j + 80 - l, 224, 0, 16, l); l = getCurrentEnergyScaled(EnergyType.DOU, 32); drawTexturedModalRect(i + 80, j + 80 - l, 240, 0, 16, l); l = getCurrentEnergyScaled(EnergyType.ENDER, 32); drawTexturedModalRect(i + 98, j + 80 - l, 176, 32, 16, l); } private int getBurnProgressScaled(int pixels){ int i = generator.getField(0); int j = generator.getField(7); return j != 0 && i != 0 ? i * pixels / j : 0; } private int getCurrentEnergyScaled(EnergyType type, int pixels){ int i = generator.getField(1 + type.ordinal()); long j = generator.getMaxEnergy(type); return (int) (j != 0 && i != 0 ? i * pixels / j : 0); } }
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
50bc559312807200c2174c404ba4e996e03e7a8f
29b6a856a81a47ebab7bfdba7fe8a7b845123c9e
/dingtalk/java/src/main/java/com/aliyun/dingtalkcontract_1_0/models/EsignSyncEventResponseBody.java
b28bbcfb7b1acf83c98b4c027813448c12e5a698
[ "Apache-2.0" ]
permissive
aliyun/dingtalk-sdk
f2362b6963c4dbacd82a83eeebc223c21f143beb
586874df48466d968adf0441b3086a2841892935
refs/heads/master
2023-08-31T08:21:14.042410
2023-08-30T08:18:22
2023-08-30T08:18:22
290,671,707
22
9
null
2021-08-12T09:55:44
2020-08-27T04:05:39
PHP
UTF-8
Java
false
false
1,620
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dingtalkcontract_1_0.models; import com.aliyun.tea.*; public class EsignSyncEventResponseBody extends TeaModel { @NameInMap("result") public EsignSyncEventResponseBodyResult result; @NameInMap("success") public Boolean success; public static EsignSyncEventResponseBody build(java.util.Map<String, ?> map) throws Exception { EsignSyncEventResponseBody self = new EsignSyncEventResponseBody(); return TeaModel.build(map, self); } public EsignSyncEventResponseBody setResult(EsignSyncEventResponseBodyResult result) { this.result = result; return this; } public EsignSyncEventResponseBodyResult getResult() { return this.result; } public EsignSyncEventResponseBody setSuccess(Boolean success) { this.success = success; return this; } public Boolean getSuccess() { return this.success; } public static class EsignSyncEventResponseBodyResult extends TeaModel { @NameInMap("message") public String message; public static EsignSyncEventResponseBodyResult build(java.util.Map<String, ?> map) throws Exception { EsignSyncEventResponseBodyResult self = new EsignSyncEventResponseBodyResult(); return TeaModel.build(map, self); } public EsignSyncEventResponseBodyResult setMessage(String message) { this.message = message; return this; } public String getMessage() { return this.message; } } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
6cfe02bab3136593268caeec9b4c8ef63d35fe5c
9289452ab283cb6c56a4ff48ab95f7650d281be6
/svg-sample/src/main/java/com/github/megatronking/svg/sample/drawables/ic_sample_12.java
ffacd6e98e182cf84f4a25f7631ac4e726372e75
[ "Apache-2.0" ]
permissive
MichaelChansn/SVG-Android
715c107fabfc7f62343bbccccbc5a04877acf5e4
c56c84b03958fab41f398990f6ef5050093f8c5d
refs/heads/master
2021-01-12T06:09:47.895604
2016-12-21T06:33:51
2016-12-21T06:33:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,014
java
package com.github.megatronking.svg.sample.drawables; import android.content.Context; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import com.github.megatronking.svg.support.SVGRenderer; /** * AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * SVG-Generator. It should not be modified by hand. */ public class ic_sample_12 extends SVGRenderer { public ic_sample_12(Context context) { super(context); mAlpha = 1.0f; mWidth = dip2px(48.0f); mHeight = dip2px(48.0f); } @Override public void render(Canvas canvas, int w, int h, ColorFilter filter) { final float scaleX = w / 24.0f; final float scaleY = h / 24.0f; mPath.reset(); mRenderPath.reset(); mFinalPathMatrix.setValues(new float[]{1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); mFinalPathMatrix.postScale(scaleX, scaleY); mPath.moveTo(12.0f, 3.0f); mPath.rLineTo(0f, 9.28f); mPath.rCubicTo(-0.47f, -0.17f, -0.97f, -0.28f, -1.5f, -0.28f); mPath.cubicTo(8.01f, 12.0f, 6.0f, 14.01f, 6.0f, 16.5f); mPath.cubicTo(6.0f, 18.99f, 8.01f, 21.0f, 10.5f, 21.0f); mPath.rCubicTo(2.31f, 0.0f, 4.2f, -1.75f, 4.45f, -4.0f); mPath.lineTo(15.0f, 17.0f); mPath.lineTo(15.0f, 6.0f); mPath.rLineTo(4.0f, 0f); mPath.lineTo(19.0f, 3.0f); mPath.rLineTo(-7.0f, 0f); mPath.close(); mPath.moveTo(12.0f, 3.0f); mRenderPath.addPath(mPath, mFinalPathMatrix); if (mFillPaint == null) { mFillPaint = new Paint(); mFillPaint.setStyle(Paint.Style.FILL); mFillPaint.setAntiAlias(true); } mFillPaint.setColor(applyAlpha(-16777216, 1.0f)); mFillPaint.setColorFilter(filter); canvas.drawPath(mRenderPath, mFillPaint); } }
[ "jgy08954@ly.com" ]
jgy08954@ly.com
8083e16969d35a6929cbbbc8aa99eb871b370b5c
814169b683b88f1b7498f1edf530a8d1bec2971f
/mall-member/src/main/java/com/bootx/mall/controller/admin/SeoController.java
8080b5bb3b1c967b555dca4c665bafc88b366f47
[]
no_license
springwindyike/mall-auth
fe7f216c7241d8fd9247344e40503f7bc79fe494
3995d258955ecc3efbccbb22ef4204d148ec3206
refs/heads/master
2022-10-20T15:12:19.329363
2020-07-05T13:04:29
2020-07-05T13:04:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,361
java
package com.bootx.mall.controller.admin; import javax.inject.Inject; import com.bootx.mall.common.Pageable; import com.bootx.mall.common.Results; import com.bootx.mall.entity.Seo; import com.bootx.mall.service.SeoService; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; /** * Controller - SEO设置 * * @author BOOTX Team * @version 6.1 */ @Controller("adminSeoController") @RequestMapping("/admin/seo") public class SeoController extends BaseController { @Inject private SeoService seoService; /** * 编辑 */ @GetMapping("/edit") public String edit(Long id, ModelMap model) { model.addAttribute("seo", seoService.find(id)); return "admin/seo/edit"; } /** * 更新 */ @PostMapping("/update") public ResponseEntity<?> update(Seo seo) { if (!isValid(seo)) { return Results.UNPROCESSABLE_ENTITY; } seoService.update(seo, "type"); return Results.OK; } /** * 列表 */ @GetMapping("/list") public String list(Pageable pageable, ModelMap model) { model.addAttribute("page", seoService.findPage(pageable)); return "admin/seo/list"; } }
[ "a12345678" ]
a12345678
1759cb4a054e62d90f4a1f0ca4dba92224fe3ae7
8b46b9c92e7b35919618b0696b3657ee13010945
/src/main/java/org/codelibs/fione/h2o/bindings/proxies/retrofit/ImportSQLTable.java
e3b7a1f4cb5fe8ee81948e3ebc70515937fae4be
[ "Apache-2.0" ]
permissive
fireae/fione
837bebc22f7b7d42ed3079ff212eaf17cbcfebc6
b26f74d2fff6b9c34f64446503dd45edf0716ed8
refs/heads/master
2021-03-11T05:02:53.309517
2020-03-09T20:49:31
2020-03-09T20:49:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,310
java
/* * Copyright 2012-2020 CodeLibs Project and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fione.h2o.bindings.proxies.retrofit; import org.codelibs.fione.h2o.bindings.pojos.JobV3; import retrofit2.Call; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; import retrofit2.http.POST; public interface ImportSQLTable { /** * Import SQL table into an H2O Frame. * @param connection_url connection_url * @param table table * @param select_query select_query * @param use_temp_table use_temp_table * @param temp_table_name temp_table_name * @param username username * @param password password * @param columns columns * @param fetch_mode Mode for data loading. All modes may not be supported by all databases. * @param _exclude_fields Comma-separated list of JSON field paths to exclude from the result, used like: * "/3/Frames?_exclude_fields=frames/frame_id/URL,__meta" */ @FormUrlEncoded @POST("/99/ImportSQLTable") Call<JobV3> importSQLTable(@Field("connection_url") String connection_url, @Field("table") String table, @Field("select_query") String select_query, @Field("use_temp_table") String use_temp_table, @Field("temp_table_name") String temp_table_name, @Field("username") String username, @Field("password") String password, @Field("columns") String columns, @Field("fetch_mode") String fetch_mode, @Field("_exclude_fields") String _exclude_fields); @FormUrlEncoded @POST("/99/ImportSQLTable") Call<JobV3> importSQLTable(@Field("connection_url") String connection_url, @Field("username") String username, @Field("password") String password); }
[ "shinsuke@apache.org" ]
shinsuke@apache.org
690a73c02422c634aebe066de5960d67361c8039
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/apache--kafka/d0e436c471ba4122ddcc0f7a1624546f97c4a517/before/DefaultKafkaClientSupplier.java
87410290a43ae07ba0da8ca67731df4eeca8c1b0
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,967
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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.kafka.streams.processor.internals; import java.util.Map; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.clients.consumer.KafkaConsumer; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.Producer; import org.apache.kafka.common.serialization.ByteArrayDeserializer; import org.apache.kafka.common.serialization.ByteArraySerializer; import org.apache.kafka.streams.KafkaClientSupplier; public class DefaultKafkaClientSupplier implements KafkaClientSupplier { @Override public Producer<byte[], byte[]> getProducer(Map<String, Object> config) { return new KafkaProducer<>(config, new ByteArraySerializer(), new ByteArraySerializer()); } @Override public Consumer<byte[], byte[]> getConsumer(Map<String, Object> config) { return new KafkaConsumer<>(config, new ByteArrayDeserializer(), new ByteArrayDeserializer()); } @Override public Consumer<byte[], byte[]> getRestoreConsumer(Map<String, Object> config) { return new KafkaConsumer<>(config, new ByteArrayDeserializer(), new ByteArrayDeserializer()); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
3a9921902c2009b10d33636812db53c2ad55e085
4e3ad3a6955fb91d3879cfcce809542b05a1253f
/schema/ab-products/common/resources/src/test/com/archibus/app/common/mobile/security/service/impl/MobileSecurityServiceSsoIntegrationTest.java
016dda208f07af8adb646733710686ab29c78c82
[]
no_license
plusxp/ARCHIBUS_Dev
bee2f180c99787a4a80ebf0a9a8b97e7a5666980
aca5c269de60b6b84d7871d79ef29ac58f469777
refs/heads/master
2021-06-14T17:51:37.786570
2017-04-07T16:21:24
2017-04-07T16:21:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,979
java
package com.archibus.app.common.mobile.security.service.impl; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.*; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken; import com.archibus.app.common.mobile.security.service.IMobileSecurityService; import com.archibus.context.ContextStore; import com.archibus.datasource.DataSourceTestBase; import com.archibus.security.Decoder1; /** * Integration tests for IMobileSecurityService. * * @author Valery Tydykov * @since 21.1 * */ public class MobileSecurityServiceSsoIntegrationTest extends DataSourceTestBase { static final String EXCEPTION_EXPECTED = "Exception expected"; private static final String AFM = "afm"; private static final String TRAM = "TRAM"; private static final String DEVICE_ID_IN_DATABASE = "46FB6E5B-9A61-4C53-838D-F2521618A1A1"; private static final String DEVICE_ID_NOT_IN_DATABASE = "JunkDeviceId"; private IMobileSecurityService mobileSecurityService; private static String encrypt(final String input) { return new Decoder1().encode(input); } /** * Getter for the mobileSecurityService property. * * @see mobileSecurityService * @return the mobileSecurityService property. */ public IMobileSecurityService getMobileSecurityService() { return this.mobileSecurityService; } @Override public void onSetUp() throws Exception { // user is not logged in this.setLogin(false); super.onSetUp(); preparePreauthContext(TRAM); } /** * Setter for the mobileSecurityService property. * * @see mobileSecurityService * @param mobileSecurityService the mobileSecurityService to set */ public void setMobileSecurityService(final IMobileSecurityService mobileSecurityService) { this.mobileSecurityService = mobileSecurityService; } /** * Test method for {@link MobileSecurityService#registerDevice(String, String, String)} . */ public final void testRegisterDeviceDeviceInDatabase() { // case #1: deviceId exists in the database this.mobileSecurityService.registerDevice(encrypt(DEVICE_ID_IN_DATABASE), encrypt(TRAM), encrypt(AFM), null); // verify that user session does not exist in SecurityController assertEquals(null, ContextStore.get().getSecurityController().getUserSession()); } /** * Test method for {@link MobileSecurityService#registerDevice(String, String, String)} . */ public final void testRegisterDeviceDeviceNotInDatabase() { // case #2: deviceId does not exist in the database this.mobileSecurityService.registerDevice(encrypt(DEVICE_ID_NOT_IN_DATABASE), encrypt(TRAM), encrypt(AFM), null); // verify that user session does not exist in SecurityController assertEquals(null, ContextStore.get().getSecurityController().getUserSession()); } /** * Test method for {@link MobileSecurityService#startMobileSsoUserSession()} . */ public final void testStartMobileSsoUserSession() { this.mobileSecurityService.startMobileSsoUserSession(); } static void preparePreauthContext(final String username) { final SecurityContext securityContext = SecurityContextHolder.getContext(); final UserDetails userDetails = MobileSecurityServiceTest.prepareUserDetails(username); final Authentication authentication = new PreAuthenticatedAuthenticationToken(userDetails, null); authentication.setAuthenticated(true); securityContext.setAuthentication(authentication); } @Override protected String[] getConfigLocations() { return new String[] { "/context/security/afm_users/security-service.xml", "/context/security/preauth/authentication.xml", "/context/security/preauth/account-mapper.xml", "/com/archibus/app/solution/common/security/providers/dao/credentials.xml", "/context/security/afm_users/password-encoder/archibus/password-encoder.xml", "/context/security/afm_users/password-changer.xml", "/context/security/afm_users/password-manager.xml", "/context/security/afm_users/sql-security/password-changer.xml", "/context/security/afm_users/sql-security/password-encoder.xml", "/context/security/afm_users/authentication.xml", "/context/security/afm_users/useraccount.xml", "/context/core/core-infrastructure.xml", "/context/core/password-encryptor.xml", "appContext-test.xml", "mobileSecurityService-sso.xml" }; } }
[ "imranh.khan@ucalgary.ca" ]
imranh.khan@ucalgary.ca
106a411987546a620ba381466575b2444711d5f0
ca28ad1744ba223cd6e968c46eec3e8bcbd9617f
/trunk/zijeeappcn/src/main/sort/com/zhongs/sort/HeapSort.java
58a630584990fbbbc15f5a3541749f4b7d26d954
[]
no_license
BGCX261/zijeeappcn-svn-to-git
81232fde9d9e16a3ef7ff3efbeefe6d40dfd9405
dfbe3203b1a7bb717eef19c85038ceed7c3a69fd
refs/heads/master
2020-05-17T03:50:48.030097
2015-08-25T15:31:56
2015-08-25T15:31:56
41,584,951
0
0
null
null
null
null
GB18030
Java
false
false
3,084
java
package com.zhongs.sort; import java.util.Arrays; //若将此序列所存储的向量R[1..n]看做是一棵完全二叉树的存储结构,则堆实质上是满足如下性质的完全二叉树: //树中任一非叶子结点的关键字均不大于(或不小于)其左右孩子(若存在)结点的关键字。 //大根堆和小根堆:根结点(亦称为堆顶)的关键字是堆里所有结点关键字中最小者的堆称为小根堆,又称最小堆。 //根结点(亦称为堆顶)的关键字是堆里所有结点关键字中最大者,称为大根堆,又称最大堆。 //注意:①堆中任一子树亦是堆。②以上讨论的堆实际上是二叉堆(Binary Heap),类似地可定义k叉堆。 public class HeapSort { private static int N = 10; /** * @param args */ public static void main(String[] args) { int[] arr = new int[N + 1]; for (int i = 0; i <= N; i++) { arr[i] = ((Double) (Math.random() * 1000)).intValue(); } initHeap(arr, N); System.out.println(Arrays.toString(arr)); System.out.println("init check's result is " + checkInit(arr)); doSort(arr); System.out.println(Arrays.toString(arr)); System.out.println("result check's result is " + checkResult(arr)); } private static boolean checkInit(int[] arr) { boolean result = true; for (int i = 1; i <= N; i++) { result = result && isHeap(arr, i, N); } return result; } private static boolean checkResult(int[] arr) { boolean result = true; for (int i = 1; i <= N - 1; i++) { result = result && (arr[i] <= arr[i + 1]); } return result; } private static void doSort(int[] arr) { int maxIndex = N; while (maxIndex > 0) { arr[0] = arr[maxIndex]; arr[maxIndex] = arr[1]; arr[1] = arr[0]; maxIndex--; buildHeap(arr, 1, maxIndex); } } private static void initHeap(int[] arr, int maxIndex) { for (int p = maxIndex / 2; p >= 1; p--) { buildHeap(arr, p, maxIndex); } } private static boolean isHeap(int[] arr, int i, int maxIndex) { boolean result = false; if (i > maxIndex / 2) { result = true; } else { if (arr[i] >= arr[2 * i] && ((2 * i + 1 > maxIndex) || arr[i] >= arr[2 * i + 1])) { result = true; } } return result; } private static void buildHeap(int[] arr, int p, int maxIndex) { if (!isHeap(arr, p, maxIndex)) { int larger = p * 2; if (p * 2 + 1 <= maxIndex && arr[p * 2] < arr[p * 2 + 1]) { larger = p * 2 + 1; } arr[0] = arr[larger]; arr[larger] = arr[p]; arr[p] = arr[0]; buildHeap(arr, larger, maxIndex); } } }
[ "you@example.com" ]
you@example.com
9607af46ab1633b27dcd105c04546d538e65c955
3097a2ab7bd76822da49155613d6f38bbc06ceaa
/src/main/java/com/liwang/sample/mvc/utils/AjaxUtils.java
97fe800b3c36e414a1d4b9e162714a45d7f6c476
[]
no_license
liwangadd/spring-mvc-showcase
3aa97df3f977d7dcd7a31301059b59f4512432d9
c500885357cdf09948d4840baedc0535ae66c34a
refs/heads/master
2021-01-10T08:11:21.494138
2015-10-23T13:09:12
2015-10-23T13:09:12
44,805,791
1
0
null
null
null
null
UTF-8
Java
false
false
577
java
package com.liwang.sample.mvc.utils; import org.springframework.web.context.request.WebRequest; /** * Created by Nikolas on 2015/10/23. */ public class AjaxUtils { public static boolean isAjaxRequest(WebRequest webRequest) { String requestedWith = webRequest.getHeader("X-Requested-With"); return requestedWith != null ? "XMLHttpRequest".equals(requestedWith) : false; } public static boolean isAjaxUploadRequest(WebRequest webRequest) { return webRequest.getParameter("ajaxUpload") != null; } private AjaxUtils() { } }
[ "liwangadd@gmail.com" ]
liwangadd@gmail.com
9e8543a680c231697bc7ea568a66014e8c90850a
2ca8077a67bd3a86b09b59f495f9a166efef052d
/src/open_closed_and_Liskov_substitution/exercises/blob_s/factories/AttackFactory.java
16b05b87127079810ddd118fc95245843dc500a0
[]
no_license
GeorgiPopov1988/Java_OOP_Advanced_July_2018
8cff602e57808d35aa6e26012ec2610602ed2cc8
539b3e1b103a026ffb2a5a480d92b8faac9c832b
refs/heads/master
2020-03-22T20:38:03.810425
2018-08-12T21:06:48
2018-08-12T21:06:48
140,614,155
0
0
null
null
null
null
UTF-8
Java
false
false
1,072
java
package open_closed_and_Liskov_substitution.exercises.blob_s.factories; import open_closed_and_Liskov_substitution.exercises.blob_s.interfaces.Attack; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; public final class AttackFactory { public static final String ATTACKS_PATH = "open_closed_and_Liskov_substitution.exercises.blob_s.models.attacks."; protected AttackFactory() { } public static Attack create(String attackType) { Attack attack = null; try { Class<?> attackClass = Class.forName(ATTACKS_PATH + attackType); Constructor<?> declaredConstructor = attackClass.getDeclaredConstructor(); return (Attack) declaredConstructor.newInstance(); } catch (ClassNotFoundException | InvocationTargetException | InstantiationException | IllegalAccessException | NoSuchMethodException e) { e.printStackTrace(); return attack; } } }
[ "georgipopov88@gmail.com" ]
georgipopov88@gmail.com
6fac0f85b94569e59bddf6287bd8d953c63b5733
e0b143c025a630b7b56d9d86118e16e569136f4a
/java/src/archive/leetcode/ch21greedy/ReconstructQueue.java
6efeef0051be335abb37c619d76a6086d14a4f99
[]
no_license
LenKIM/implements
8cd9ee41bf6c5a1108047402905fe7da0ebcf3fb
1a773bb02871d418def9629f608c68c4b0e8fe4e
refs/heads/master
2023-04-26T16:26:15.981512
2021-05-17T00:44:54
2021-05-17T00:44:54
310,813,562
3
0
null
2021-05-17T00:44:54
2020-11-07T09:52:51
Python
UTF-8
Java
false
false
1,071
java
package archive.leetcode.ch21greedy; import java.util.Arrays; import java.util.LinkedList; import java.util.List; public class ReconstructQueue { public int[][] reconstructQueue(int[][] people) { Arrays.sort(people, (o1, o2) -> { int compare = Integer.compare(o2[0], o1[0]); if (compare == 0) { return Integer.compare(o1[1], o2[1]); } return compare; }); List<int[]> result = new LinkedList<>(); for (int[] person : people) { int height = person[0]; int tallerCount = person[1]; result.add(tallerCount, new int[]{height, tallerCount}); } int[][] ints = result.stream().toArray(int[][]::new); // List to Array // return ints; return ints; } public static void main(String[] args) { int[][] temp = {{7, 0}, {4, 4}, {7, 1}, {5, 0}, {6, 1}, {5, 2}}; ReconstructQueue reconstructQueue = new ReconstructQueue(); reconstructQueue.reconstructQueue(temp); } }
[ "joenggyu0@gmail.com" ]
joenggyu0@gmail.com
abf5e2e0a449fcc0f424549e2c8a0c43fdb675d5
7bf2c371766e70e11260d2ee767bbc2f2753802b
/app/src/main/java/com/ysxsoft/utest/models/response/Test101Response.java
5195f2a8a5ddff91394014818a1bee4c7616ec62
[]
no_license
Sincerly/UTest
d71303661db48a1dde640d7fe9ba4f1514bebb64
d07d6e11b4d1a9fcce3221c5244c3ca427ed6ad6
refs/heads/master
2020-07-16T10:04:24.812001
2019-09-02T03:17:23
2019-09-02T03:17:23
205,768,795
0
0
null
null
null
null
UTF-8
Java
false
false
140
java
package com.ysxsoft.utest.models.response; /** * ${description} * create by Sincerly on 9999/9/9 0009 **/ public class Test101Response{ }
[ "1475590636@qq.com" ]
1475590636@qq.com
c24cb5fdedfa39854352ea4ceb4efb04a6adf989
689cdf772da9f871beee7099ab21cd244005bfb2
/classes/com/android/dazhihui/ui/screen/stock/bi.java
aa365e3610706c94317f55b7042731918d7b868e
[]
no_license
waterwitness/dazhihui
9353fd5e22821cb5026921ce22d02ca53af381dc
ad1f5a966ddd92bc2ac8c886eb2060d20cf610b3
refs/heads/master
2020-05-29T08:54:50.751842
2016-10-08T08:09:46
2016-10-08T08:09:46
70,314,359
2
4
null
null
null
null
UTF-8
Java
false
false
633
java
package com.android.dazhihui.ui.screen.stock; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; class bi implements DialogInterface.OnClickListener { bi(DialogActivity paramDialogActivity) {} public void onClick(DialogInterface paramDialogInterface, int paramInt) { if (paramDialogInterface != null) { paramDialogInterface.dismiss(); } DialogActivity.a(this.a, true); } } /* Location: E:\apk\dazhihui2\classes-dex2jar.jar!\com\android\dazhihui\ui\screen\stock\bi.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
4edc8e1b958ef408158fe73ca9290587f1bca34f
ed166738e5dec46078b90f7cca13a3c19a1fd04b
/minor/guice-OOM-error-reproduction/src/main/java/gen/E_Gen69.java
178e6816531fcd24ce3dab1815ea85a2fccc280a
[]
no_license
michalradziwon/script
39efc1db45237b95288fe580357e81d6f9f84107
1fd5f191621d9da3daccb147d247d1323fb92429
refs/heads/master
2021-01-21T21:47:16.432732
2016-03-23T02:41:50
2016-03-23T02:41:50
22,663,317
2
0
null
null
null
null
UTF-8
Java
false
false
326
java
package gen; public class E_Gen69 { @com.google.inject.Inject public E_Gen69(E_Gen70 e_gen70){ System.out.println(this.getClass().getCanonicalName() + " created. " + e_gen70 ); } @com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :) }
[ "michal.radzi.won@gmail.com" ]
michal.radzi.won@gmail.com
5bd44a98db61906df5f98611a45d999146f757ab
28782d17391ff43d9e23e43302969ea8f3a4f284
/java/android/support/v4/app/FragmentHostCallback.java
c26bed2aa09b3743928e93319c88f7b1f74995db
[]
no_license
UltraSoundX/Fucking-AJN-APP
115f7c2782e089c48748516b77e37266438f998b
11354917502f442ab212e5cada168a8031b48436
refs/heads/master
2021-05-19T11:05:42.588930
2020-03-31T16:27:26
2020-03-31T16:27:26
251,662,642
0
0
null
null
null
null
UTF-8
Java
false
false
3,878
java
package android.support.v4.app; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.IntentSender; import android.content.IntentSender.SendIntentException; import android.os.Bundle; import android.os.Handler; import android.support.v4.util.Preconditions; import android.view.LayoutInflater; import android.view.View; import java.io.FileDescriptor; import java.io.PrintWriter; public abstract class FragmentHostCallback<E> extends FragmentContainer { private final Activity mActivity; private final Context mContext; final FragmentManagerImpl mFragmentManager; private final Handler mHandler; private final int mWindowAnimations; public abstract E onGetHost(); public FragmentHostCallback(Context context, Handler handler, int i) { this(context instanceof Activity ? (Activity) context : null, context, handler, i); } FragmentHostCallback(FragmentActivity fragmentActivity) { this(fragmentActivity, fragmentActivity, fragmentActivity.mHandler, 0); } FragmentHostCallback(Activity activity, Context context, Handler handler, int i) { this.mFragmentManager = new FragmentManagerImpl(); this.mActivity = activity; this.mContext = (Context) Preconditions.checkNotNull(context, "context == null"); this.mHandler = (Handler) Preconditions.checkNotNull(handler, "handler == null"); this.mWindowAnimations = i; } public void onDump(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) { } public boolean onShouldSaveFragmentState(Fragment fragment) { return true; } public LayoutInflater onGetLayoutInflater() { return LayoutInflater.from(this.mContext); } public void onSupportInvalidateOptionsMenu() { } public void onStartActivityFromFragment(Fragment fragment, Intent intent, int i) { onStartActivityFromFragment(fragment, intent, i, null); } public void onStartActivityFromFragment(Fragment fragment, Intent intent, int i, Bundle bundle) { if (i != -1) { throw new IllegalStateException("Starting activity with a requestCode requires a FragmentActivity host"); } this.mContext.startActivity(intent); } public void onStartIntentSenderFromFragment(Fragment fragment, IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) throws SendIntentException { if (i != -1) { throw new IllegalStateException("Starting intent sender with a requestCode requires a FragmentActivity host"); } ActivityCompat.startIntentSenderForResult(this.mActivity, intentSender, i, intent, i2, i3, i4, bundle); } public void onRequestPermissionsFromFragment(Fragment fragment, String[] strArr, int i) { } public boolean onShouldShowRequestPermissionRationale(String str) { return false; } public boolean onHasWindowAnimations() { return true; } public int onGetWindowAnimations() { return this.mWindowAnimations; } public View onFindViewById(int i) { return null; } public boolean onHasView() { return true; } /* access modifiers changed from: 0000 */ public Activity getActivity() { return this.mActivity; } /* access modifiers changed from: 0000 */ public Context getContext() { return this.mContext; } /* access modifiers changed from: 0000 */ public Handler getHandler() { return this.mHandler; } /* access modifiers changed from: 0000 */ public FragmentManagerImpl getFragmentManagerImpl() { return this.mFragmentManager; } /* access modifiers changed from: 0000 */ public void onAttachFragment(Fragment fragment) { } }
[ "haroldxin@foxmail.com" ]
haroldxin@foxmail.com
f901604a5bda4a328317502edeb86f7d30f39a74
7476aea24dc81eafc3ce71a629f89991e37b06bb
/Java OOP Advanced/05. Enumerations and Annotations - Lab/src/p05_create_annotation/Subject.java
a757ec49d1c41005ecaffa12fe8d4705f53881ed
[ "MIT" ]
permissive
Taewii/java-fundamentals
1bcf6f04f5829584d93dfb97e19793cf3afb54fb
306a4fcba70a5fb6c76d9e0827f061ea7edb24a5
refs/heads/master
2020-03-19T11:55:15.852992
2018-09-08T12:18:32
2018-09-08T12:18:32
136,485,469
0
0
null
null
null
null
UTF-8
Java
false
false
313
java
package p05_create_annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface Subject { String[] categories(); }
[ "p3rfec7@abv.bg" ]
p3rfec7@abv.bg
45868a0e7be0c5ee3907c695f089e5b537fc4f99
99f768c515374c70a0458abcc242da1338bb4e95
/ezydata-database/src/test/java/com/tvd12/ezydata/database/test/bean/PersonRepo3.java
9990db9fd4bd41d0cbd756b5302c087f103b98c1
[ "Apache-2.0" ]
permissive
tvd12/ezydata
33be81013e524b37d1e946a40e72969dd1e6881c
adadc4eaa759c16b9ad39821c85bc9c74bdc6699
refs/heads/master
2023-07-19T11:04:23.539907
2023-06-04T16:17:37
2023-06-04T16:17:37
232,128,318
1
1
Apache-2.0
2020-01-06T15:22:39
2020-01-06T15:22:38
null
UTF-8
Java
false
false
245
java
package com.tvd12.ezydata.database.test.bean; import com.tvd12.ezydata.database.EzyDatabaseRepository; import com.tvd12.ezyfox.annotation.EzyAutoImpl; @EzyAutoImpl public interface PersonRepo3 extends EzyDatabaseRepository<Integer, Person> {}
[ "itprono3@gmail.com" ]
itprono3@gmail.com
9233bafc5712f3a774f6a54fae3c1cc0ac0510ec
15e91007d96b783cd6975379b4f770cbefb5f369
/Puzzle_Game/app/src/main/java/com/example/sandeepkumar/puzzle_game/PuzzleBoardView.java
851105f21eb3f7e30955bbaa7c340915adffa63a
[]
no_license
sandeep201451066/Google_Android_CS_Applied
93a5a9db523435c8c716c2bb8e1c55cdb17755b9
c6d1d6317627aa29f31a5f89934c22e2abc77a37
refs/heads/master
2021-01-11T01:44:09.095309
2017-03-25T04:15:10
2017-03-25T04:15:10
70,674,701
1
0
null
null
null
null
UTF-8
Java
false
false
3,985
java
package com.example.sandeepkumar.puzzle_game; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Canvas; import android.view.MotionEvent; import android.view.View; import android.widget.Toast; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.PriorityQueue; import java.util.Random; public class PuzzleBoardView extends View { public static final int NUM_SHUFFLE_STEPS = 40; private Activity activity; private PuzzleBoard puzzleBoard; private ArrayList<PuzzleBoard> animation; private Random random = new Random(); private Comparator<PuzzleBoard> comparator = new Comparator<PuzzleBoard>() { @Override public int compare(PuzzleBoard lhs, PuzzleBoard rhs) { return lhs.priority()-rhs.priority(); } }; public PuzzleBoardView(Context context) { super(context); activity = (Activity) context; animation = null; } public void initialize(Bitmap imageBitmap,View parent) { int width = getWidth(); puzzleBoard = new PuzzleBoard(imageBitmap, width); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); if (puzzleBoard != null) { if (animation != null && animation.size() > 0) { puzzleBoard = animation.remove(0); puzzleBoard.draw(canvas); if (animation.size() == 0) { animation = null; puzzleBoard.reset(); Toast toast = Toast.makeText(activity, "Solved! ", Toast.LENGTH_LONG); toast.show(); } else { this.postInvalidateDelayed(500); } } else { puzzleBoard.draw(canvas); } } } public void shuffle() { if (animation == null && puzzleBoard != null) { // Do something. Then: for (int i=0;i<NUM_SHUFFLE_STEPS;i++){ ArrayList<PuzzleBoard>neighbours = puzzleBoard.neighbours(); int randomInt = random.nextInt(neighbours.size()); puzzleBoard =neighbours.get(randomInt); } // puzzleBoard.reset(); invalidate(); } } @Override public boolean onTouchEvent(MotionEvent event) { if (animation == null && puzzleBoard != null) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: if (puzzleBoard.click(event.getX(), event.getY())) { invalidate(); if (puzzleBoard.resolved()) { Toast toast = Toast.makeText(activity, "Congratulations!", Toast.LENGTH_LONG); toast.show(); } return true; } } } return super.onTouchEvent(event); } public void solve() { PriorityQueue<PuzzleBoard> priorityQueue =new PriorityQueue<>(1,comparator); PuzzleBoard currentBoard =new PuzzleBoard(puzzleBoard,-1); currentBoard.setPreviousBord(null); priorityQueue.add(currentBoard); while (!priorityQueue.isEmpty()){ PuzzleBoard bestState = priorityQueue.poll(); if(bestState.resolved()){ ArrayList<PuzzleBoard> steps = new ArrayList<>(); while(bestState.getPreviousBord()!=null){ steps.add(bestState); bestState = bestState.getPreviousBord(); } Collections.reverse(steps); animation = steps; invalidate(); break; } else{ priorityQueue.addAll(bestState.neighbours()); } } } }
[ "you@example.com" ]
you@example.com
1575b4c6f5e653f9528162bf31d0315dc8e33897
da0efa8ffd08b86713aad007f10794c4b04d8267
/com/telkom/mwallet/tcash/purchase/p070a/C1929h.java
51da9b5a7b2d06cf9cb68bcf97e77ae6140ff810
[]
no_license
ibeae/tcash
e200c209c63fdfe63928b94846824d7091533f8a
4bd25deb63ea7605202514f6a405961a14ef2553
refs/heads/master
2020-05-05T13:09:34.582260
2017-09-07T06:19:19
2017-09-07T06:19:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,524
java
package com.telkom.mwallet.tcash.purchase.p070a; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import com.skcc.wallet.framework.api.http.model.Denomination; import com.telkom.mwallet.R; import com.telkom.mwallet.dialog.C1509c; import com.telkom.mwallet.dialog.p063a.C1496c; import com.telkom.mwallet.p064a.C1347a; import com.telkom.mwallet.p064a.C1354g; import com.telkom.mwallet.tcash.purchase.TCashPurchaseActivity; import com.telkom.mwallet.view.Random2of6PinEditView; import java.util.List; public class C1929h extends C1925o { private static final String f5527b = C1929h.class.getSimpleName(); TCashPurchaseActivity f5528a; private Button f5529c; private Button f5530j; private Button f5531k; private EditText f5532l; private TextView f5533m; private Random2of6PinEditView f5534n; private List<Denomination> f5535o = null; private Denomination f5536p = null; private C1509c f5537q; private String f5538r; private C1922f f5539s; private OnClickListener f5540t = new C19271(this); private C1496c f5541u = new C19282(this); class C19271 implements OnClickListener { final /* synthetic */ C1929h f5525a; C19271(C1929h c1929h) { this.f5525a = c1929h; } public void onClick(View view) { switch (view.getId()) { case R.id.tcash_confirm_button: if (this.f5525a.m7674e() && this.f5525a.f5534n.m8024c()) { this.f5525a.f5528a.m7531a(this.f5525a.f5539s); this.f5525a.f5528a.m7538e(this.f5525a.f5536p.getDenomId()); this.f5525a.f5528a.m7541j(this.f5525a.f5534n.getPin()); this.f5525a.f5528a.m7539f(this.f5525a.f5532l.getText().toString()); this.f5525a.f5528a.m7540g(this.f5525a.f5536p.getAmount() + ""); this.f5525a.f5528a.m7544p(); return; } return; case R.id.tcash_forget_pin_button: this.f5525a.m5219p(); return; case R.id.tcash_purchase_denomination_button: case R.id.tcash_purchase_denomination_picker_button: if (this.f5525a.f5535o != null) { this.f5525a.f5537q = C1509c.m5636a((int) R.string.denomination); this.f5525a.f5537q.m5639a(this.f5525a.f5541u); this.f5525a.f5537q.m5640a(this.f5525a.f5535o); this.f5525a.f5537q.show(this.f5525a.getFragmentManager(), "list_dialog_tag"); return; } return; default: return; } } } class C19282 implements C1496c { final /* synthetic */ C1929h f5526a; C19282(C1929h c1929h) { this.f5526a = c1929h; } public void mo1548a(Denomination denomination) { this.f5526a.f5536p = denomination; this.f5526a.f5529c.setText(C1354g.m4957h("" + denomination.getAmount())); if (this.f5526a.f5537q != null) { this.f5526a.f5537q.dismiss(); } } } private void m7670b(View view) { this.f5529c = (Button) view.findViewById(R.id.tcash_purchase_denomination_button); this.f5530j = (Button) view.findViewById(R.id.tcash_purchase_denomination_picker_button); this.f5531k = (Button) view.findViewById(R.id.tcash_confirm_button); this.f5532l = (EditText) view.findViewById(R.id.tcash_purchase_id_number_edit); this.f5533m = (TextView) view.findViewById(R.id.tcash_forget_pin_button); this.f5534n = (Random2of6PinEditView) view.findViewById(R.id.pin_edit_view); C1347a.m4910a().m4912a(this.f5534n.getPinViews()); this.f5531k.setText(R.string.btn_next); this.f5531k.setOnClickListener(this.f5540t); this.f5529c.setOnClickListener(this.f5540t); this.f5530j.setOnClickListener(this.f5540t); this.f5533m.setOnClickListener(this.f5540t); mo1565b(this.f5538r); mo1563a(this.f5536p); m5216m().m4982d().m4932a(getActivity().getApplicationContext(), this.f5529c, 2); this.f5539s = new C1922f(); this.f5539s.m7617b(getString(R.string.tcash_noti_purchase_multi_top_up_msg)); this.f5539s.m7623j(getString(R.string.hint_mobile_number)); } private void m7673d() { this.f5534n.m8023b(); this.f5532l.setBackgroundResource(R.drawable.edittext_selector_n); this.f5529c.setBackgroundResource(R.drawable.edittext_selector_n); } private boolean m7674e() { m7673d(); if ("".equals(this.f5532l.getText().toString().trim())) { this.f5532l.setBackgroundResource(R.drawable.field_sct_red); return false; } else if (this.f5536p != null && !"".equals(this.f5529c.getText().toString().trim())) { return true; } else { this.f5529c.setBackgroundResource(R.drawable.field_sct_red); return false; } } public void mo1562a(long j) { if (this.f5535o != null) { for (Denomination denomination : this.f5535o) { if (j == denomination.getAmount()) { this.f5541u.mo1548a(denomination); return; } } } } public void mo1563a(Denomination denomination) { this.f5536p = denomination; if (this.f5529c != null && denomination != null) { this.f5541u.mo1548a(denomination); } } public void mo1564a(List<Denomination> list) { this.f5535o = list; } public void mo1565b(String str) { this.f5538r = str; if (this.f5532l != null) { this.f5532l.setText(str); } } public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { this.f5528a = (TCashPurchaseActivity) getActivity(); View inflate = layoutInflater.inflate(R.layout.fragment_tcash_purchase_templeate2, null); m5202a((ViewGroup) inflate); m7670b(inflate); return inflate; } }
[ "igedetirtanata@gmail.com" ]
igedetirtanata@gmail.com
b6fdb6e959a029f897607469baf5b898747a39ab
7a33586ec57bf0c2f927d694c33894af6d4c5f53
/hrbm-service/src/main/java/com/xunfeng/business/ovemp/corp/dao/OvempCorpSignUpDao.java
96f805992d79661976c04358ecea321c33ee47e9
[]
no_license
zhang765959964/hrbm
c86b8b8f1cbd159bee4b35d1068afdc34b16f1d8
d034c43516f92e8433016ec4db3d910cc5d06881
refs/heads/master
2021-05-11T23:39:36.723156
2018-01-15T08:40:02
2018-01-15T08:40:02
117,515,559
1
0
null
null
null
null
UTF-8
Java
false
false
526
java
package com.xunfeng.business.ovemp.corp.dao; import org.springframework.stereotype.Repository; import com.xunfeng.core.db.BaseDao; import com.xunfeng.business.ovemp.corp.model.OvempCorpSignUp; /** * @company:河南讯丰信息技术有限公司 * @Description: 培训报名表 Dao类 * @author:Wang.CS * @createDate 2016-05-23 09:31:31 * @version V1.0 */ @Repository public class OvempCorpSignUpDao extends BaseDao<OvempCorpSignUp> { @Override public Class<?> getEntityClass() { return OvempCorpSignUp.class; } }
[ "zhang765959964@qq.com" ]
zhang765959964@qq.com
cfc9048f78c74fd2f4db2fb696f1a2c93b7e1d9e
ba44e8867d176d74a6ca0a681a4f454ca0b53cad
/resources/testscript/Workflow/Deploy/WF_Update_Uncheck_Client_E2EHelper.java
2f4affa36525e7b14ca2ba9e2c0701fbeb170138
[]
no_license
eric2323223/FATPUS
1879e2fa105c7e7683afd269965d8b59a7e40894
989d2cf49127d88fdf787da5ca6650e2abd5a00e
refs/heads/master
2016-09-15T19:10:35.317021
2012-06-29T02:32:36
2012-06-29T02:32:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,343
java
// DO NOT EDIT: This file is automatically generated. // // Only the associated template file should be edited directly. // Helper class files are automatically regenerated from the template // files at various times, including record actions and test object // insertion actions. Any changes made directly to a helper class // file will be lost when automatically updated. package resources.testscript.Workflow.Deploy; import com.rational.test.ft.object.interfaces.*; import com.rational.test.ft.object.interfaces.SAP.*; import com.rational.test.ft.object.interfaces.WPF.*; import com.rational.test.ft.object.interfaces.siebel.*; import com.rational.test.ft.object.interfaces.flex.*; import com.rational.test.ft.object.interfaces.dojo.*; import com.rational.test.ft.script.*; import com.rational.test.ft.vp.IFtVerificationPoint; /** * Script Name : <b>WF_Update_Uncheck_Client_E2E</b><br> * Generated : <b>2011/11/02 10:44:11 PM</b><br> * Description : Helper class for script<br> * Original Host : Windows XP x86 5.1 build 2600 Service Pack 2 <br> * * @since November 02, 2011 * @author ffan */ public abstract class WF_Update_Uncheck_Client_E2EHelper extends RationalTestScript { protected WF_Update_Uncheck_Client_E2EHelper() { setScriptName("testscript.Workflow.Deploy.WF_Update_Uncheck_Client_E2E"); } }
[ "eric2323223@gmail.com" ]
eric2323223@gmail.com
43812d51f9ba4c83dd43d11d083150807e2473d5
0b577b923c9e46cf072cd3d54e8af7f084c57f10
/Gloria/WarehouseDomain/src/main/java/com/volvo/gloria/warehouse/d/entities/Printer.java
19db53d3a50ac5e430c31b3039a7e2169dbf4c1a
[]
no_license
perlovdinger/gloria1
b0a9ea0e391f78f871b058a07ff8c3219ea7978f
b6a220f3c712a29289fe42be3736796a7b7a4065
refs/heads/master
2020-12-25T21:12:55.874655
2016-09-18T09:11:30
2016-09-18T09:11:30
68,508,862
1
1
null
null
null
null
UTF-8
Java
false
false
1,421
java
package com.volvo.gloria.warehouse.d.entities; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; @Entity @Table(name = "PRINTER") public class Printer implements Serializable { private static final long serialVersionUID = 6049053969442233494L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "PRINTER_OID") private long printerOid; @ManyToOne @JoinColumn(name = "WAREHOUSE_OID") private Warehouse warehouse; private String name; private String hostAddress; public long getPrinterOid() { return printerOid; } public void setPrinterOid(long printerOid) { this.printerOid = printerOid; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getHostAddress() { return hostAddress; } public void setHostAddress(String hostAddress) { this.hostAddress = hostAddress; } public Warehouse getWarehouse() { return warehouse; } public void setWarehouse(Warehouse warehouse) { this.warehouse = warehouse; } }
[ "per.lovdinger@volvo.com" ]
per.lovdinger@volvo.com
6fe90bd0e92fe41c49f7105ba7b6b0b4f02514c3
f0568343ecd32379a6a2d598bda93fa419847584
/modules/dfp_axis/src/main/java/com/google/api/ads/dfp/axis/v201308/RateCardCustomizationServiceInterface.java
0f78975c45684e4757bf612a2b9ae46e71aab328
[ "Apache-2.0" ]
permissive
frankzwang/googleads-java-lib
bd098b7b61622bd50352ccca815c4de15c45a545
0cf942d2558754589a12b4d9daa5902d7499e43f
refs/heads/master
2021-01-20T23:20:53.380875
2014-07-02T19:14:30
2014-07-02T19:14:30
21,526,492
1
0
null
null
null
null
UTF-8
Java
false
false
5,149
java
/** * RateCardCustomizationServiceInterface.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.dfp.axis.v201308; public interface RateCardCustomizationServiceInterface extends java.rmi.Remote { /** * Creates a new {@link RateCardCustomization} object. * * * @param rateCardCustomization the {@link RateCardCustomization} to * be * created * * @return the {@link RateCardCustomization} with its ID filled in */ public com.google.api.ads.dfp.axis.v201308.RateCardCustomization createRateCardCustomization(com.google.api.ads.dfp.axis.v201308.RateCardCustomization rateCardCustomization) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; /** * Creates a list of new {@link RateCardCustomization} objects. * * * @param rateCardCustomizations the rate card customizations to be created * * @return the rate card customizations with their IDs filled in */ public com.google.api.ads.dfp.axis.v201308.RateCardCustomization[] createRateCardCustomizations(com.google.api.ads.dfp.axis.v201308.RateCardCustomization[] rateCardCustomizations) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; /** * Returns the {@link RateCardCustomization} object uniquely identified * by the * given ID. * * * @param rateCardCustomizationId the ID of the rate card customization, * which * must already exist. */ public com.google.api.ads.dfp.axis.v201308.RateCardCustomization getRateCardCustomization(java.lang.Long rateCardCustomizationId) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; /** * Gets a {@link RateCardCustomizationPage} of {@link RateCardCustomization} * objects that satisfy the given {@link Statement#query}. * * The following fields are supported for filtering: * * <table> * <tr> * <th scope="col">PQL Property</th> * <th scope="col">Object Property</th> * </tr> * <tr> * <td>{@code rateCardId}</td> * <td>{@link RateCardCustomization#rateCardId}</td> * </tr> * <tr> * <td>{@code rateCardCustomizationGroupId}</td> * <td>{@link RateCardCustomization#rateCardCustomizationGroupId}</td> * </tr> * <tr> * <td>{@code id}</td> * <td>{@link RateCardCustomization#id}</td> * </tr> * </table> * * * @param filterStatement a Publisher Query Language statement used to * filter * a set of rate card customizations. * * @return the rate card customizations that match the given filter */ public com.google.api.ads.dfp.axis.v201308.RateCardCustomizationPage getRateCardCustomizationsByStatement(com.google.api.ads.dfp.axis.v201308.Statement filterStatement) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; /** * Performs actions on {@link RateCardCustomization} objects that * satisfy the * given {@link Statement#query}. * * * @param rateCardCustomizationAction the action to perform * * @param filterStatement a Publisher Query Language statement used to * filter * a set of rate card customizations. * * @return the result of the action performed */ public com.google.api.ads.dfp.axis.v201308.UpdateResult performRateCardCustomizationAction(com.google.api.ads.dfp.axis.v201308.RateCardCustomizationAction rateCardCustomizationAction, com.google.api.ads.dfp.axis.v201308.Statement filterStatement) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; /** * Updates the specified {@link RateCardCustomization} object. * * * @param rateCardCustomization the rate card customization to be updated * * @return the updated rate card customization */ public com.google.api.ads.dfp.axis.v201308.RateCardCustomization updateRateCardCustomization(com.google.api.ads.dfp.axis.v201308.RateCardCustomization rateCardCustomization) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; /** * Updates the specified {@link RateCardCustomization} objects. * * * @param rateCardCustomizations the rate card customizations to be updated * * @return the updated rate card customizations */ public com.google.api.ads.dfp.axis.v201308.RateCardCustomization[] updateRateCardCustomizations(com.google.api.ads.dfp.axis.v201308.RateCardCustomization[] rateCardCustomizations) throws java.rmi.RemoteException, com.google.api.ads.dfp.axis.v201308.ApiException; }
[ "jradcliff@google.com" ]
jradcliff@google.com
53c69b6e1e4abf20fb46cfd00c1af30a14a4454a
8573dcc5a563f6885f7df69c1969a803095bf4db
/core/src/main/java/org/apache/calcite/rel/mutable/MutableMatch.java
8fffb148e2de1ad21d687c9710c4b844633321f1
[ "Apache-2.0" ]
permissive
googleinterns/calcite
66281427454f0ce734604e27757cabb31e40c5e0
e94c8666bd9a1f6c63f6cd7506f5cf0d1ecd3a00
refs/heads/master
2022-12-07T19:37:20.438004
2020-08-28T20:50:24
2020-08-28T20:50:24
265,330,725
1
9
Apache-2.0
2020-08-28T20:50:26
2020-05-19T18:30:38
Java
UTF-8
Java
false
false
5,030
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.calcite.rel.mutable; import org.apache.calcite.rel.RelCollation; import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rex.RexNode; import org.apache.calcite.util.ImmutableBitSet; import java.util.Map; import java.util.Objects; import java.util.SortedSet; /** Mutable equivalent of {@link org.apache.calcite.rel.core.Match}. */ public class MutableMatch extends MutableSingleRel { public final RexNode pattern; public final boolean strictStart; public final boolean strictEnd; public final Map<String, RexNode> patternDefinitions; public final Map<String, RexNode> measures; public final RexNode after; public final Map<String, ? extends SortedSet<String>> subsets; public final boolean allRows; public final ImmutableBitSet partitionKeys; public final RelCollation orderKeys; public final RexNode interval; private MutableMatch(RelDataType rowType, MutableRel input, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, RexNode interval) { super(MutableRelType.MATCH, rowType, input); this.pattern = pattern; this.strictStart = strictStart; this.strictEnd = strictEnd; this.patternDefinitions = patternDefinitions; this.measures = measures; this.after = after; this.subsets = subsets; this.allRows = allRows; this.partitionKeys = partitionKeys; this.orderKeys = orderKeys; this.interval = interval; } /** * Creates a MutableMatch. * */ public static MutableMatch of(RelDataType rowType, MutableRel input, RexNode pattern, boolean strictStart, boolean strictEnd, Map<String, RexNode> patternDefinitions, Map<String, RexNode> measures, RexNode after, Map<String, ? extends SortedSet<String>> subsets, boolean allRows, ImmutableBitSet partitionKeys, RelCollation orderKeys, RexNode interval) { return new MutableMatch(rowType, input, pattern, strictStart, strictEnd, patternDefinitions, measures, after, subsets, allRows, partitionKeys, orderKeys, interval); } @Override public boolean equals(Object obj) { return obj == this || obj instanceof MutableMatch && pattern.equals(((MutableMatch) obj).pattern) && strictStart == (((MutableMatch) obj).strictStart) && strictEnd == (((MutableMatch) obj).strictEnd) && allRows == (((MutableMatch) obj).allRows) && patternDefinitions.equals(((MutableMatch) obj).patternDefinitions) && measures.equals(((MutableMatch) obj).measures) && after.equals(((MutableMatch) obj).after) && subsets.equals(((MutableMatch) obj).subsets) && partitionKeys.equals(((MutableMatch) obj).partitionKeys) && orderKeys.equals(((MutableMatch) obj).orderKeys) && interval.equals(((MutableMatch) obj).interval) && input.equals(((MutableMatch) obj).input); } @Override public int hashCode() { return Objects.hash(input, pattern, strictStart, strictEnd, patternDefinitions, measures, after, subsets, allRows, partitionKeys, orderKeys, interval); } @Override public StringBuilder digest(StringBuilder buf) { return buf.append("Match(pattern: ").append(pattern) .append(", strictStart: ").append(strictStart) .append(", strictEnd: ").append(strictEnd) .append(", patternDefinitions: ").append(patternDefinitions) .append(", measures: ").append(measures) .append(", after: ").append(after) .append(", subsets: ").append(subsets) .append(", allRows: ").append(allRows) .append(", partitionKeys: ").append(partitionKeys) .append(", orderKeys: ").append(orderKeys) .append(", interval: ").append(interval) .append(")"); } @Override public MutableRel clone() { return MutableMatch.of(rowType, input.clone(), pattern, strictStart, strictEnd, patternDefinitions, measures, after, subsets, allRows, partitionKeys, orderKeys, interval); } }
[ "jhyde@apache.org" ]
jhyde@apache.org
d9ba350fde0bf2dff2254b3ff268d501588dcc94
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-12798-39-24-PESA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/doc/XWikiDocument_ESTest.java
d1c0e99934dc5d9d5d1d3f3f9f2e25d8a7151687
[]
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
550
java
/* * This file was automatically generated by EvoSuite * Fri Apr 03 23:21:26 UTC 2020 */ package com.xpn.xwiki.doc; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XWikiDocument_ESTest extends XWikiDocument_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
ef2177c9df1544fd6527adfd8478ee4bbfe1aa75
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/24/24_5c74a2451dda31d3bf2b1f876276838b172ad5f4/OutputStreamProxy/24_5c74a2451dda31d3bf2b1f876276838b172ad5f4_OutputStreamProxy_s.java
ca50279ad98a6aae89cb3c96d92cc118065d76c6
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
1,665
java
/* * libxjava -- utility library for cross-Java-platform development * ${project.name} * * Copyright (c) 2010 Marcel Patzlaff (marcel.patzlaff@gmail.com) * * This library is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this library. If not, see <http://www.gnu.org/licenses/>. */ package com.github.libxjava.io; import java.io.IOException; import java.io.OutputStream; /** * @author Marcel Patzlaff * @version ${project.artifactId} - ${project.version} */ public final class OutputStreamProxy extends OutputStream { public OutputStream concreteStream= null; public void close() throws IOException { concreteStream.close(); } public void flush() throws IOException { concreteStream.flush(); } public void write(byte[] b, int off, int len) throws IOException { concreteStream.write(b, off, len); } public void write(byte[] b) throws IOException { concreteStream.write(b); } public void write(int b) throws IOException { concreteStream.write(b); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
776310ad94386655da26a175355d38f58f6934c4
bc7459acd70a01955a81f9659c258c0606bf0dc7
/book/effective-java-3rd/chapter11-concurrency/item79/ObservableSet.java
9707ba5b113284a4c6ef341bc1015d013b3bd10f
[ "MIT" ]
permissive
rheehot/reading-summary
d7528a36dace6a47f1252a8032c956efaab88f3f
c9e757546a1d055d82cb3bf98c82c59998e15712
refs/heads/master
2022-12-25T20:51:26.140214
2020-09-26T16:01:19
2020-09-27T08:06:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,455
java
import java.util.*; import java.util.concurrent.CopyOnWriteArrayList; public class ObservableSet<E> extends ForwardingSet<E> { // Common public ObservableSet(Set<E> set) { super(set); } @Override public boolean add(E element) { boolean added = super.add(element); if (added) notifyElementAdded(element); return added; } @Override public boolean addAll(Collection<? extends E> c) { boolean result = false; for (E element : c) result |= add(element); // Calls notifyElementAdded return result; } // Broken - invokes alien method from synchronized block! Over-synchronized!! private final List<SetObserver<E>> observers = new ArrayList<>(); public void addObserver(SetObserver<E> observer) { synchronized(observers) { observers.add(observer); } } public boolean removeObserver(SetObserver<E> observer) { synchronized(observers) { return observers.remove(observer); } } private void notifyElementAdded(E element) { synchronized(observers) { // call alien inside synchronized block for (SetObserver<E> observer : observers) observer.added(this, element); } } // Solution1 // Alien method moved outside of synchronized block - open calls // private void notifyElementAdded(E element) { // List<SetObserver<E>> snapshot = null; // synchronized(observers) { // snapshot = new ArrayList<>(observers); // } // for (SetObserver<E> observer : snapshot) // observer.added(this, element); // } // Solution2 // Thread-safe observable set with CopyOnWriteArrayList // CopyOnWriteArrayList // A variant of ArrayList in which all modification operations are // implemented by making a fresh copy of the entire underlying array // private final List<SetObserver<E>> observers = // new CopyOnWriteArrayList<>(); // public void addObserver(SetObserver<E> observer) { // observers.add(observer); // } // public boolean removeObserver(SetObserver<E> observer) { // return observers.remove(observer); // } // private void notifyElementAdded(E element) { // for (SetObserver<E> observer : observers) // observer.added(this, element); // } }
[ "sibera21@gmail.com" ]
sibera21@gmail.com
bb356131a15f1029529459d23acd8c349eca032f
97e8ed0b720039233251a77a9e76cd6799c5d328
/apollo-client/src/test/java/com/ctrip/framework/apollo/spring/spi/ApolloConfigRegistrarHelperTest.java
1d7f099d28357743c5b8347e99ec1844002e58f6
[ "Apache-2.0" ]
permissive
yuelicn/apollo
ad87c89de092abd594e38fed0233a66a5db9178e
8cf2ce4787e897c075815b0e32b43d3726571b80
refs/heads/master
2020-07-17T10:44:41.506066
2019-09-16T06:36:42
2019-09-16T06:36:42
206,004,183
3
2
Apache-2.0
2019-09-03T06:25:41
2019-09-03T06:25:40
null
UTF-8
Java
false
false
800
java
package com.ctrip.framework.apollo.spring.spi; import static org.springframework.test.util.AssertionErrors.assertEquals; import com.ctrip.framework.apollo.spring.annotation.ApolloConfigRegistrar; import java.lang.reflect.Field; import org.junit.Test; import org.springframework.util.ReflectionUtils; public class ApolloConfigRegistrarHelperTest { @Test public void testHelperLoadingOrder() { ApolloConfigRegistrar apolloConfigRegistrar = new ApolloConfigRegistrar(); Field field = ReflectionUtils.findField(ApolloConfigRegistrar.class, "helper"); ReflectionUtils.makeAccessible(field); Object helper = ReflectionUtils.getField(field, apolloConfigRegistrar); assertEquals("helper is not TestRegistrarHelper instance", TestRegistrarHelper.class, helper.getClass()); } }
[ "nobodyiam@gmail.com" ]
nobodyiam@gmail.com
db2291d9c5c767162afc3406799ef7492cb64d45
7ee881d6057a8720184d26579941cceab7480115
/Try_BkParser_decompile_2_/src/org/apache/commons/lang3/CharSequenceUtils.java
850049da3f94b2c96fd325ecf0a48b57468ca5bd
[]
no_license
dunglason6789p/INTELLIJ_WORKSPACE
0023f57ee8abd24edb7f996900ff21c7c412ffa6
9f391d4bfede0ffa06707a3852a97b4270377b52
refs/heads/master
2021-07-12T09:36:49.121091
2019-09-21T00:45:15
2019-09-21T00:45:15
209,901,588
0
0
null
2020-10-13T16:12:02
2019-09-21T00:25:14
Java
UTF-8
Java
false
false
2,300
java
/* * Decompiled with CFR 0.146. */ package org.apache.commons.lang3; public class CharSequenceUtils { public static CharSequence subSequence(CharSequence cs, int start) { return cs == null ? null : cs.subSequence(start, cs.length()); } static int indexOf(CharSequence cs, int searchChar, int start) { if (cs instanceof String) { return ((String)cs).indexOf(searchChar, start); } int sz = cs.length(); if (start < 0) { start = 0; } for (int i = start; i < sz; ++i) { if (cs.charAt(i) != searchChar) continue; return i; } return -1; } static int indexOf(CharSequence cs, CharSequence searchChar, int start) { return ((Object)cs).toString().indexOf(((Object)searchChar).toString(), start); } static int lastIndexOf(CharSequence cs, int searchChar, int start) { if (cs instanceof String) { return ((String)cs).lastIndexOf(searchChar, start); } int sz = cs.length(); if (start < 0) { return -1; } if (start >= sz) { start = sz - 1; } for (int i = start; i >= 0; --i) { if (cs.charAt(i) != searchChar) continue; return i; } return -1; } static int lastIndexOf(CharSequence cs, CharSequence searchChar, int start) { return ((Object)cs).toString().lastIndexOf(((Object)searchChar).toString(), start); } static char[] toCharArray(CharSequence cs) { if (cs instanceof String) { return ((String)cs).toCharArray(); } int sz = cs.length(); char[] array = new char[cs.length()]; for (int i = 0; i < sz; ++i) { array[i] = cs.charAt(i); } return array; } static boolean regionMatches(CharSequence cs, boolean ignoreCase, int thisStart, CharSequence substring, int start, int length) { if (cs instanceof String && substring instanceof String) { return ((String)cs).regionMatches(ignoreCase, thisStart, (String)substring, start, length); } return ((Object)cs).toString().regionMatches(ignoreCase, thisStart, ((Object)substring).toString(), start, length); } }
[ "sonnt6789p@gmail.com" ]
sonnt6789p@gmail.com
84d3bf5b665e8b7ac7c820f3275cbddd84f02cbd
8b8ebc25758eaf21921f3620b95e5375ca89ab2c
/src/main/java/com/duggan/workflow/server/servlets/upload/ImportFileExecutor.java
e8bec8d1518f19d834ae702425093a8c7bd09dd0
[]
no_license
duggankimani/WIRA
5ac6c0660d8bc50737e77e2566b383712abcda26
a9f332f0ee28a6860e14bf43491a248418f62ae8
refs/heads/master
2021-01-23T09:02:00.622134
2018-09-14T04:49:52
2018-09-14T04:49:52
11,315,924
0
2
null
null
null
null
UTF-8
Java
false
false
1,232
java
package com.duggan.workflow.server.servlets.upload; import gwtupload.server.exceptions.UploadActionException; import java.util.Hashtable; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.apache.commons.fileupload.FileItem; import com.duggan.workflow.server.dao.helper.FormDaoHelper; import com.duggan.workflow.server.db.DB; public class ImportFileExecutor extends FileExecutor { @Override String execute(HttpServletRequest request, List<FileItem> sessionFiles) throws UploadActionException { String err = null; for (FileItem item : sessionFiles) { if (false == item.isFormField()) { try { String fieldName = item.getFieldName(); byte[] bites = item.get(); String str = new String(bites); Long formId = FormDaoHelper.importForm(str); registerFile(request, fieldName, formId); }catch(Exception e){ e.printStackTrace(); err = e.getMessage(); } } } return err; } public void removeItem(HttpServletRequest request, String fieldName){ Hashtable<String, Long> receivedFiles = getSessionFiles(request, false); Long formId = receivedFiles.get(fieldName); DB.getFormDao().deleteForm(formId); } }
[ "mdkimani@gmail.com" ]
mdkimani@gmail.com
1b095baee5a7225dae74bb9aa4ee96ecab800b76
30614192ae67d9cced3866bd310f9fb58dfa2fbe
/src/main/java/ke/co/turbosoft/med/entity/IntermediaryType.java
4335aa7d6833be9595f261408c4236ea1a19e928
[]
no_license
ktonym/turbomed-underwriting
33086bc08787347401b0b2037e0fbc1891f28d4c
0daa864ab8aeac3f6be5caf3cc14659434e79372
refs/heads/master
2021-01-01T15:31:04.373863
2015-02-27T16:41:30
2015-02-27T16:41:30
27,634,219
0
0
null
null
null
null
UTF-8
Java
false
false
138
java
package ke.co.turbosoft.med.entity; /** * Created by akipkoech on 12/8/14. */ public enum IntermediaryType { AGENT,BROKER,AGENCY }
[ "ktonym@gmail.com" ]
ktonym@gmail.com
124f4ecec1a4a3ed6317f968929ee3a2927f8647
b0e21ec497802f56df884f9dee7f68cd036eb2bb
/scim-rest/src/main/java/org/gluu/oxtrust/service/antlr/scimFilter/enums/ScimOperator.java
3792dc9ae13a00ab1db168436ac98800b6bb4062
[ "Apache-2.0" ]
permissive
GluuFederation/scim
ad577a9f565332c23f7d5d91536419dbae573e7b
d343b2f28b58c529943527fc4c1596cb5983f397
refs/heads/master
2023-08-21T06:50:47.922325
2023-07-25T19:15:57
2023-07-25T19:15:57
247,885,689
12
9
Apache-2.0
2023-08-09T07:03:30
2020-03-17T05:19:52
Java
UTF-8
Java
false
false
1,191
java
/* * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2017, Gluu */ package org.gluu.oxtrust.service.antlr.scimFilter.enums; import java.util.HashMap; import java.util.Map; /** * @author Val Pecaoco * Updated by jgomer on 2017-12-09. */ public enum ScimOperator { // eq | ne | co | sw | ew | gt | lt | ge | le // = | !() | *{}* | {}* | *{} | (&(>=)(!{})) | (&(<=)(!{})) | >= | <= EQUAL ("eq"), NOT_EQUAL ("ne"), CONTAINS ("co"), STARTS_WITH ("sw"), ENDS_WITH ("ew"), GREATER_THAN ("gt"), LESS_THAN ("lt"), GREATER_THAN_OR_EQUAL ("ge"), LESS_THAN_OR_EQUAL ("le"); private static Map<String, ScimOperator> mapByValues = new HashMap<>(); private String value; static { for (ScimOperator operator : ScimOperator.values()) mapByValues.put(operator.value, operator); } ScimOperator(String value) { this.value = value; } public String getValue() { return value; } public static ScimOperator getByValue(String value){ return mapByValues.get(value); } }
[ "bonustrack310@gmail.com" ]
bonustrack310@gmail.com
c51ae04cde06ebdeef82c75f1d30dcf3ea152d7e
36f0a80d2dcf84e5fa4257fa3128b6fb0faf256e
/aura-android-client/app/src/main/java/co/aurasphere/aura/nebula/modules/dashboard/view/util/RecyclerViewEmptySupport.java
77161921c3edbc1eb0a6c03651e74eb4ee7697af
[ "MIT" ]
permissive
aurasphere/aura
ecec7e145e6f01d531985f96745e4eea06f321c3
441bdb950ee90486e7035187591253d43c7d5c3b
refs/heads/main
2023-02-14T02:52:19.548417
2021-01-17T00:36:34
2021-01-17T00:36:34
330,276,689
2
0
null
null
null
null
UTF-8
Java
false
false
1,652
java
package co.aurasphere.aura.nebula.modules.dashboard.view.util; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.AttributeSet; import android.view.View; /** * Created by Donato on 05/06/2016. */ public class RecyclerViewEmptySupport extends RecyclerView { private View emptyView; private AdapterDataObserver emptyObserver = new AdapterDataObserver() { @Override public void onChanged() { Adapter<?> adapter = getAdapter(); if(adapter != null && emptyView != null) { if(adapter.getItemCount() == 0) { emptyView.setVisibility(View.VISIBLE); RecyclerViewEmptySupport.this.setVisibility(View.GONE); } else { emptyView.setVisibility(View.GONE); RecyclerViewEmptySupport.this.setVisibility(View.VISIBLE); } } } }; public RecyclerViewEmptySupport(Context context) { super(context); } public RecyclerViewEmptySupport(Context context, AttributeSet attrs) { super(context, attrs); } public RecyclerViewEmptySupport(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public void setAdapter(Adapter adapter) { super.setAdapter(adapter); if(adapter != null) { adapter.registerAdapterDataObserver(emptyObserver); } emptyObserver.onChanged(); } public void setEmptyView(View emptyView) { this.emptyView = emptyView; } }
[ "donatohan.rimenti@gmail.com" ]
donatohan.rimenti@gmail.com
13e9695c480f79e6fcccf73590527fdf88831b0e
e0d52bbf5d1b657afb07795bf456e8e680302980
/ModelibraSwingPrototype/src/proto/weblink/url/GenUrl.java
5da3d71bcc26d1888de245a0fee26b2c8837d6ec
[]
no_license
youp911/modelibra
acc391da16ab6b14616cd7bda094506a05414b0f
00387bd9f1f82df3b7d844650e5a57d2060a2ec7
refs/heads/master
2021-01-25T09:59:19.388394
2011-11-24T21:46:26
2011-11-24T21:46:26
42,008,889
0
0
null
null
null
null
UTF-8
Java
false
false
3,769
java
/* * Modelibra * * 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 proto.weblink.url; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.modelibra.Entity; import org.modelibra.IDomainModel; import org.modelibra.Oid; /* ======= import model class ======= */ import proto.weblink.WebLink; /* ======= import property classes ======= */ /* ======= import internal parent entity class ======= */ /* ======= import internal child entities classes ======= */ /* ======= import external parent entity and entities classes ======= */ /* ======= import external child entities classes ======= */ /* ======= import external many-to-many internal parent entities classes ======= */ /** * Url generated entity. This class should not be changed manually. * Use a subclass to add specific code. * * @author Dzenan Ridjanovic * @version 2011-09-20 */ public abstract class GenUrl extends Entity<Url> { private static final long serialVersionUID = 1316545294494L; private static Log log = LogFactory.getLog(GenUrl.class); /* ======= entity properties (without the code, reference and derived properties) ======= */ private String link; private String description; /* ======= reference properties ======= */ /* ======= internal parent neighbors ======= */ /* ======= internal child neighbors ======= */ /* ======= external parent neighbors ======= */ /* ======= external child neighbors ======= */ /* ======= base constructor ======= */ /** * Constructs url within the domain model. * * @param model * model */ public GenUrl(IDomainModel model) { super(model); // internal child neighbors only } /* ======= parent argument(s) constructor ======= */ /* ======= entity property (without the code, reference and derived properties) set and get methods ======= */ /** * Sets link. * * @param link * link */ public void setLink(String link) { this.link = link; } /** * Gets link. * * @return link */ public String getLink() { return link; } /** * Sets description. * * @param description * description */ public void setDescription(String description) { this.description = description; } /** * Gets description. * * @return description */ public String getDescription() { return description; } /* ======= reference property set and get methods ======= */ /* ======= derived property abstract get methods ======= */ /* ======= internal parent set and get methods ======= */ /* ======= internal child set and get methods ======= */ /* ======= external parent set and get methods ======= */ /* ======= external one-to-many child set and get methods ======= */ /* ======= external (part of) many-to-many child set and get methods ======= */ }
[ "dzenanr@c25eb2fc-9753-11de-83f8-39e71e4dc75d" ]
dzenanr@c25eb2fc-9753-11de-83f8-39e71e4dc75d
1b9e5032287f898f1c2ac763bad7e7781fdd45b9
66669c0c353ec085d8b8ffbefd22cf2c76ac1699
/JX_KNY/src/com/yunda/sb/fault/entity/FaultOrderBean.java
6f21ae5b345f4482673b0c6c764a502a4d55c3f2
[]
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
2,765
java
package com.yunda.sb.fault.entity; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Transient; /** * <li>标题: 机车设备管理信息系统 * <li>说明:FaultOrder统计查询实体 * <li>创建人:黄杨 * <li>创建日期:2017-5-15 * <li>修改人: * <li>修改日期: * <li>修改内容: * <li>版权: Copyright (c) 2008 运达科技公司 * @author 系统集成事业部设备系统项目组 * @version 1.0 */ @Entity public class FaultOrderBean implements java.io.Serializable { /** 使用默认序列版本ID */ private static final long serialVersionUID = 1L; @Id /** 设备idx主键 */ @Column(name = "EQUIPMENT_IDX") private String equipmentIdx; /** 设备名称 */ @Column(name = "EQUIPMENT_NAME") private String equipmentName; /** 设备编码 */ @Column(name = "EQUIPMENT_CODE") private String equipmentCode; /** 规格 */ private String specification; /** 型号 */ private String model; /** 制造工厂 */ @Column(name = "make_factory") private String makeFactory; /** 故障次数 */ @Column(name = "fault_count") private Integer faultCount; @Transient /** 统计开始日期 */ private Date startDate; @Transient /** 统计结束日期 */ private Date endDate; public String getEquipmentIdx() { return equipmentIdx; } public void setEquipmentIdx(String equipmentIdx) { this.equipmentIdx = equipmentIdx; } public String getEquipmentName() { return equipmentName; } public void setEquipmentName(String equipmentName) { this.equipmentName = equipmentName; } public String getEquipmentCode() { return equipmentCode; } public void setEquipmentCode(String equipmentCode) { this.equipmentCode = equipmentCode; } public String getModel() { return model; } public void setModel(String model) { this.model = model; } public String getSpecification() { return specification; } public void setSpecification(String specification) { this.specification = specification; } public String getMakeFactory() { return makeFactory; } public void setMakeFactory(String makeFactory) { this.makeFactory = makeFactory; } public Integer getFaultCount() { return faultCount; } public void setFaultCount(Integer faultCount) { this.faultCount = faultCount; } public Date getStartDate() { return startDate; } public void setStartDate(Date startDate) { this.startDate = startDate; } public Date getEndDate() { return endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } }
[ "wujialing@wujialing-PC" ]
wujialing@wujialing-PC
5f7e3beae8fb837c4b355431386b8899477033f4
70d80759c7fe6158fc9f7aa41f335dd91e9b46e7
/SimpleGame/ref/flappy/com/google/android/gms/maps/a/an.java
375422bedd8855cffbe0aa9d10a6eba84119a0c6
[]
no_license
dazziest/word
fe1bc157f0f2cfd57312e5c9099cccd4f0398499
54d30f21c921525985a00b86b0fc933421d82ac0
refs/heads/master
2021-01-01T20:16:52.035457
2014-03-12T06:48:53
2014-03-12T06:48:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,314
java
package com.google.android.gms.maps.a; import android.os.IBinder; class an implements al { private IBinder a; an(IBinder paramIBinder) { this.a = paramIBinder; } /* Error */ public void a(com.google.android.gms.b.e parame) { // Byte code: // 0: invokestatic 22 android/os/Parcel:obtain ()Landroid/os/Parcel; // 3: astore_2 // 4: invokestatic 22 android/os/Parcel:obtain ()Landroid/os/Parcel; // 7: astore_3 // 8: aload_2 // 9: ldc 24 // 11: invokevirtual 28 android/os/Parcel:writeInterfaceToken (Ljava/lang/String;)V // 14: aload_1 // 15: ifnull +44 -> 59 // 18: aload_1 // 19: invokeinterface 34 1 0 // 24: astore 5 // 26: aload_2 // 27: aload 5 // 29: invokevirtual 37 android/os/Parcel:writeStrongBinder (Landroid/os/IBinder;)V // 32: aload_0 // 33: getfield 15 com/google/android/gms/maps/a/an:a Landroid/os/IBinder; // 36: iconst_1 // 37: aload_2 // 38: aload_3 // 39: iconst_0 // 40: invokeinterface 43 5 0 // 45: pop // 46: aload_3 // 47: invokevirtual 46 android/os/Parcel:readException ()V // 50: aload_3 // 51: invokevirtual 49 android/os/Parcel:recycle ()V // 54: aload_2 // 55: invokevirtual 49 android/os/Parcel:recycle ()V // 58: return // 59: aconst_null // 60: astore 5 // 62: goto -36 -> 26 // 65: astore 4 // 67: aload_3 // 68: invokevirtual 49 android/os/Parcel:recycle ()V // 71: aload_2 // 72: invokevirtual 49 android/os/Parcel:recycle ()V // 75: aload 4 // 77: athrow // Local variable table: // start length slot name signature // 0 78 0 this an // 0 78 1 parame com.google.android.gms.b.e // 3 69 2 localParcel1 android.os.Parcel // 7 61 3 localParcel2 android.os.Parcel // 65 11 4 localObject Object // 24 37 5 localIBinder IBinder // Exception table: // from to target type // 8 14 65 finally // 18 26 65 finally // 26 50 65 finally } public IBinder asBinder() { return this.a; } } /* Location: P:\Side\classes-dex2jar.jar * Qualified Name: com.google.android.gms.maps.a.an * JD-Core Version: 0.7.0.1 */
[ "dazziest@gmail.com" ]
dazziest@gmail.com
4a7770bc4b6e5c8eac697dffef6e649285592443
09d5ede6a505a0619bc897f093cfcb100c755e26
/mutable/listweb/todoKeepOnlyWhatUsingIn/humanaicore/vec/impl/ConstSizMutScaVec.java
6bb77c5168008c0e6588ca2d1c176d3278274eab
[ "MIT" ]
permissive
benrayfield/HumanAiNetNeural
60e519ee2a68887fd4a6470cb8236ccc087227f1
502a1dc185b9ae7362a15ff89653c6d7f357e003
refs/heads/master
2021-07-03T23:52:59.055234
2020-11-07T17:20:33
2020-11-07T17:20:33
196,747,574
1
0
null
null
null
null
UTF-8
Java
false
false
964
java
package mutable.listweb.todoKeepOnlyWhatUsingIn.humanaicore.vec.impl; import mutable.listweb.todoKeepOnlyWhatUsingIn.humanaicore.askmut.MemoryPer; import mutable.listweb.todoKeepOnlyWhatUsingIn.humanaicore.common.MathUtil; import mutable.listweb.todoKeepOnlyWhatUsingIn.humanaicore.err.Todo; import mutable.listweb.todoKeepOnlyWhatUsingIn.zing.old.MutZing; import mutable.listweb.todoKeepOnlyWhatUsingIn.zing.old.MutZingUtil; /** constant size mutable scalar vector */ public class ConstSizMutScaVec extends ConstSizScaVec{ public ConstSizMutScaVec(int size){ this(new double[size]); } /** backing array. Must always be fractions. */ public ConstSizMutScaVec(double... fractions){ super(fractions); } public MutZing mutable(boolean mutable){ return mutable ? this : new ImmutScaVec(data); //ImmutScaVec copies the array } public MutZing copy(){ return new ConstSizMutScaVec(data.clone()); } public boolean immutable(){ return false; } }
[ "ben@humanai.net" ]
ben@humanai.net
c350136ca2d3eda63163984f06ea603d9185458d
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/com/google/android/gms/internal/ads/zzrw.java
dd385d07c9dea4d2437533e2f1ae266bafdc46d9
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
232
java
package com.google.android.gms.internal.ads; import android.app.Activity; public interface zzrw { void onActivityPaused(Activity activity); void onActivityResumed(Activity activity); boolean zza(Activity activity); }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
985fe39110bcbcb81682aa1ade1b129920efb6ce
4c54565f5d981d1ac541996bc2d26ec5ab9e1783
/core/src/test/java/xdi2/tests/AllTests.java
ed8c177f6036a2982a11d5bc5d993298465cf7f1
[]
no_license
karthik2986/xdi2
a70226a2b1f57c816007553ac25d4a1add182dc1
fff94d72b6d02c314c7c59f42da4e869a9b136a1
refs/heads/master
2021-01-17T23:12:28.215701
2012-06-05T19:34:04
2012-06-05T19:34:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,212
java
package xdi2.tests; import junit.framework.Test; import junit.framework.TestSuite; import xdi2.tests.core.graph.BDBGraphTest; import xdi2.tests.core.graph.MapGraphTest; import xdi2.tests.core.graph.MemoryGraphTest; import xdi2.tests.core.graph.PropertiesGraphTest; import xdi2.tests.core.impl.keyvalue.BDBKeyValueTest; import xdi2.tests.core.impl.keyvalue.MapKeyValueTest; import xdi2.tests.core.impl.keyvalue.PropertiesKeyValueTest; import xdi2.tests.core.io.IOTest; import xdi2.tests.core.util.XDIUtilTest; import xdi2.tests.core.variables.VariablesUtilTest; public class AllTests { public static Test suite() { TestSuite suite = new TestSuite(AllTests.class.getName()); //$JUnit-BEGIN$ suite.addTestSuite(MemoryGraphTest.class); suite.addTestSuite(MapGraphTest.class); suite.addTestSuite(PropertiesGraphTest.class); suite.addTestSuite(BDBGraphTest.class); suite.addTestSuite(MapKeyValueTest.class); suite.addTestSuite(PropertiesKeyValueTest.class); suite.addTestSuite(BDBKeyValueTest.class); suite.addTestSuite(IOTest.class); suite.addTestSuite(VariablesUtilTest.class); suite.addTestSuite(XDIUtilTest.class); //$JUnit-END$ return suite; } }
[ "markus.sabadello@gmail.com" ]
markus.sabadello@gmail.com
3981cd5d3dbe935b602b584bb9d833858b048e3c
e067ab955be5929078c024f65c24eb511efa1332
/src/chapter_3/section_6/TransBankAccount.java
e4becb58ed1c1f77fb1424a2f0af50ac31b2d356
[]
no_license
ildar66/java-book-CPJ2e
668714b4e622befdaad5954d8697975b55154347
477cc7887b71e9e1cc988b5f6a0f1668022af044
refs/heads/master
2021-01-22T02:28:09.530743
2016-10-29T07:32:43
2016-10-29T07:32:43
68,808,115
2
0
null
null
null
null
UTF-8
Java
false
false
1,031
java
package chapter_3.section_6; import common.InsufficientFunds; /** * // Transaction Participants. Implementations * Participants in transactions must support both a transaction participant interface and an interface * describing their basic actions. * However, it is not always necessary to provide transactional signatures for pure accessor methods such * as balance here. Instead (or in addition to transactional versions), such methods can return the * most recently committed value when called from clients that are not participating in transactions. * Alternatively, a special null-transaction type (or just passing null for the Transaction * argument) can be used to denote one-shot invocations of transactional methods. */ public interface TransBankAccount extends Transactor { public long balance(Transaction t) throws Failure; public void deposit(Transaction t, long amount) throws InsufficientFunds, Failure; public void withdraw(Transaction t, long amount) throws InsufficientFunds, Failure; }
[ "ildar66@inbox.ru" ]
ildar66@inbox.ru
155305de000e7f55850a09a89a7101d7712ac0eb
50bd137fa3cb4d33e37e4bbe0935a3aa335212db
/src/main/java/org/docksidestage/dbflute/exbhv/ServiceRankBhv.java
42f29d287cbb6f848776710e2841419ef30be50c
[ "Apache-2.0" ]
permissive
lastaflute/lastaflute-example-harbor
64a7036a662fe24deee20561b8880d4ee695f310
1ffbf8c9bddb0519e8b9ed0df00c08b286e19b54
refs/heads/master
2023-08-24T20:35:10.259414
2023-07-03T08:02:53
2023-07-03T08:02:53
43,132,900
6
9
Apache-2.0
2023-07-07T21:47:24
2015-09-25T10:40:08
Java
UTF-8
Java
false
false
958
java
/* * Copyright 2015-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.docksidestage.dbflute.exbhv; import org.docksidestage.dbflute.bsbhv.BsServiceRankBhv; /** * The behavior of SERVICE_RANK. * <p> * You can implement your original methods here. * This class remains when re-generating. * </p> * @author DBFlute(AutoGenerator) */ public class ServiceRankBhv extends BsServiceRankBhv { }
[ "dbflute@gmail.com" ]
dbflute@gmail.com
e6a66f6deee152b91e55166c31429497502ab3fb
ab8d10f02716519aadd66ecef4d0c799e15aa517
/src/main/java/com/android/engineeringmode/manualtest/modeltest/ModelTest12.java
acaa57d162df353b7d216c0ea625fefc16ba1034
[]
no_license
caiqiqi/EngineerMode
cc767ddcde7ccaf0ef15ec7ef8837a70a671b183
09a87a94ceb0d38b97d3fbe0e03086e9ee53a0f3
refs/heads/master
2021-08-12T07:45:06.927619
2017-11-14T14:54:58
2017-11-14T14:54:58
110,684,973
0
0
null
2017-11-14T12:02:58
2017-11-14T12:02:58
null
UTF-8
Java
false
false
362
java
package com.android.engineeringmode.manualtest.modeltest; public class ModelTest12 extends ModelTestBaseAcivity { protected ModelTestManager getTestManager() { return new ModelTestManager(this, "modeltest12_list.xml"); } protected int getMarkpostion() { return 11; } protected void deleteTestsForSpeacialDevice() { } }
[ "elliot.alderson@ecorp.com" ]
elliot.alderson@ecorp.com
e89fb69bb97874b8c67ebad4421d5a2e795b2f73
9410ef0fbb317ace552b6f0a91e0b847a9a841da
/src/main/java/com/tencentcloudapi/ecm/v20190719/models/DescribeModuleResponse.java
892d7f2f4aa5a0bb1182a36e6be848b54f059da3
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-java-intl-en
274de822748bdb9b4077e3b796413834b05f1713
6ca868a8de6803a6c9f51af7293d5e6dad575db6
refs/heads/master
2023-09-04T05:18:35.048202
2023-09-01T04:04:14
2023-09-01T04:04:14
230,567,388
7
4
Apache-2.0
2022-05-25T06:54:45
2019-12-28T06:13:51
Java
UTF-8
Java
false
false
4,921
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.ecm.v20190719.models; import com.tencentcloudapi.common.AbstractModel; import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.Expose; import java.util.HashMap; public class DescribeModuleResponse extends AbstractModel{ /** * Number of eligible modules. Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("TotalCount") @Expose private Long TotalCount; /** * List of module details. Note: this field may return null, indicating that no valid values can be obtained. */ @SerializedName("ModuleItemSet") @Expose private ModuleItem [] ModuleItemSet; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. */ @SerializedName("RequestId") @Expose private String RequestId; /** * Get Number of eligible modules. Note: this field may return null, indicating that no valid values can be obtained. * @return TotalCount Number of eligible modules. Note: this field may return null, indicating that no valid values can be obtained. */ public Long getTotalCount() { return this.TotalCount; } /** * Set Number of eligible modules. Note: this field may return null, indicating that no valid values can be obtained. * @param TotalCount Number of eligible modules. Note: this field may return null, indicating that no valid values can be obtained. */ public void setTotalCount(Long TotalCount) { this.TotalCount = TotalCount; } /** * Get List of module details. Note: this field may return null, indicating that no valid values can be obtained. * @return ModuleItemSet List of module details. Note: this field may return null, indicating that no valid values can be obtained. */ public ModuleItem [] getModuleItemSet() { return this.ModuleItemSet; } /** * Set List of module details. Note: this field may return null, indicating that no valid values can be obtained. * @param ModuleItemSet List of module details. Note: this field may return null, indicating that no valid values can be obtained. */ public void setModuleItemSet(ModuleItem [] ModuleItemSet) { this.ModuleItemSet = ModuleItemSet; } /** * Get The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @return RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem. */ public String getRequestId() { return this.RequestId; } /** * Set The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @param RequestId The unique request ID, which is returned for each request. RequestId is required for locating a problem. */ public void setRequestId(String RequestId) { this.RequestId = RequestId; } public DescribeModuleResponse() { } /** * 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 DescribeModuleResponse(DescribeModuleResponse source) { if (source.TotalCount != null) { this.TotalCount = new Long(source.TotalCount); } if (source.ModuleItemSet != null) { this.ModuleItemSet = new ModuleItem[source.ModuleItemSet.length]; for (int i = 0; i < source.ModuleItemSet.length; i++) { this.ModuleItemSet[i] = new ModuleItem(source.ModuleItemSet[i]); } } if (source.RequestId != null) { this.RequestId = new String(source.RequestId); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "TotalCount", this.TotalCount); this.setParamArrayObj(map, prefix + "ModuleItemSet.", this.ModuleItemSet); this.setParamSimple(map, prefix + "RequestId", this.RequestId); } }
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
73ba5d16b8de80b970a2f478e784fcc9a5ae4197
bd2811735e1bf4d853fb5dae15c49f6377ecf67a
/src/main/java/com/viaversion/viaversion/protocols/protocol1_16_2to1_16_1/Protocol1_16_2To1_16_1.java
45e9f861067dba3f1d0d68d95725dbedbb13527a
[]
no_license
ssllllll/Konas-Deobf-Remap
13f5a32a3d7ad3289a9cd6620a146fb607790400
085d2aa2bb88d0587d734d1c06f823ad08230ee4
refs/heads/main
2023-09-02T16:42:57.682534
2021-10-29T01:13:07
2021-10-29T01:13:07
422,407,398
5
0
null
null
null
null
UTF-8
Java
false
false
5,501
java
package com.viaversion.viaversion.protocols.protocol1_16_2to1_16_1; import com.viaversion.viaversion.api.connection.UserConnection; import com.viaversion.viaversion.api.minecraft.RegistryType; import com.viaversion.viaversion.api.minecraft.entities.Entity1_16_2Types; import com.viaversion.viaversion.api.protocol.AbstractProtocol; import com.viaversion.viaversion.api.protocol.remapper.PacketRemapper; import com.viaversion.viaversion.api.rewriter.EntityRewriter; import com.viaversion.viaversion.api.rewriter.ItemRewriter; import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.data.entity.EntityTrackerBase; import com.viaversion.viaversion.protocols.protocol1_16_2to1_16_1.data.MappingData; import com.viaversion.viaversion.protocols.protocol1_16_2to1_16_1.metadata.MetadataRewriter1_16_2To1_16_1; import com.viaversion.viaversion.protocols.protocol1_16_2to1_16_1.packets.EntityPackets; import com.viaversion.viaversion.protocols.protocol1_16_2to1_16_1.packets.InventoryPackets; import com.viaversion.viaversion.protocols.protocol1_16_2to1_16_1.packets.WorldPackets; import com.viaversion.viaversion.protocols.protocol1_16to1_15_2.ClientboundPackets1_16; import com.viaversion.viaversion.protocols.protocol1_16to1_15_2.ServerboundPackets1_16; import com.viaversion.viaversion.rewriter.SoundRewriter; import com.viaversion.viaversion.rewriter.StatisticsRewriter; import com.viaversion.viaversion.rewriter.TagRewriter; public class Protocol1_16_2To1_16_1 extends AbstractProtocol { public static final MappingData MAPPINGS = new MappingData(); private final EntityRewriter metadataRewriter = new MetadataRewriter1_16_2To1_16_1(this); private final ItemRewriter itemRewriter = new InventoryPackets(this); private TagRewriter tagRewriter; public Protocol1_16_2To1_16_1() { super(ClientboundPackets1_16.class, ClientboundPackets1_16_2.class, ServerboundPackets1_16.class, ServerboundPackets1_16_2.class); } protected void registerPackets() { this.metadataRewriter.register(); this.itemRewriter.register(); EntityPackets.register(this); WorldPackets.register(this); this.tagRewriter = new TagRewriter(this); this.tagRewriter.register(ClientboundPackets1_16.TAGS, RegistryType.ENTITY); (new StatisticsRewriter(this)).register(ClientboundPackets1_16.STATISTICS); SoundRewriter soundRewriter = new SoundRewriter(this); soundRewriter.registerSound(ClientboundPackets1_16.SOUND); soundRewriter.registerSound(ClientboundPackets1_16.ENTITY_SOUND); this.registerServerbound(ServerboundPackets1_16_2.RECIPE_BOOK_DATA, new PacketRemapper() { public void registerMap() { this.handler((wrapper) -> { int recipeType = (Integer)wrapper.read(Type.VAR_INT); boolean open = (Boolean)wrapper.read(Type.BOOLEAN); boolean filter = (Boolean)wrapper.read(Type.BOOLEAN); wrapper.write(Type.VAR_INT, 1); wrapper.write(Type.BOOLEAN, recipeType == 0); wrapper.write(Type.BOOLEAN, filter); wrapper.write(Type.BOOLEAN, recipeType == 1); wrapper.write(Type.BOOLEAN, filter); wrapper.write(Type.BOOLEAN, recipeType == 2); wrapper.write(Type.BOOLEAN, filter); wrapper.write(Type.BOOLEAN, recipeType == 3); wrapper.write(Type.BOOLEAN, filter); }); } }); this.registerServerbound(ServerboundPackets1_16_2.SEEN_RECIPE, ServerboundPackets1_16.RECIPE_BOOK_DATA, new PacketRemapper() { public void registerMap() { this.handler((wrapper) -> { String recipe = (String)wrapper.read(Type.STRING); wrapper.write(Type.VAR_INT, 0); wrapper.write(Type.STRING, recipe); }); } }); } protected void onMappingDataLoaded() { this.tagRewriter.addTag(RegistryType.ITEM, "minecraft:stone_crafting_materials", 14, 962); this.tagRewriter.addEmptyTag(RegistryType.BLOCK, "minecraft:mushroom_grow_block"); this.tagRewriter.addEmptyTags(RegistryType.ITEM, "minecraft:soul_fire_base_blocks", "minecraft:furnace_materials", "minecraft:crimson_stems", "minecraft:gold_ores", "minecraft:piglin_loved", "minecraft:piglin_repellents", "minecraft:creeper_drop_music_discs", "minecraft:logs_that_burn", "minecraft:stone_tool_materials", "minecraft:warped_stems"); this.tagRewriter.addEmptyTags(RegistryType.BLOCK, "minecraft:infiniburn_nether", "minecraft:crimson_stems", "minecraft:wither_summon_base_blocks", "minecraft:infiniburn_overworld", "minecraft:piglin_repellents", "minecraft:hoglin_repellents", "minecraft:prevent_mob_spawning_inside", "minecraft:wart_blocks", "minecraft:stone_pressure_plates", "minecraft:nylium", "minecraft:gold_ores", "minecraft:pressure_plates", "minecraft:logs_that_burn", "minecraft:strider_warm_blocks", "minecraft:warped_stems", "minecraft:infiniburn_end", "minecraft:base_stone_nether", "minecraft:base_stone_overworld"); } public void init(UserConnection userConnection) { userConnection.addEntityTracker(this.getClass(), new EntityTrackerBase(userConnection, Entity1_16_2Types.PLAYER)); } public MappingData getMappingData() { return MAPPINGS; } public EntityRewriter getEntityRewriter() { return this.metadataRewriter; } public ItemRewriter getItemRewriter() { return this.itemRewriter; } }
[ "63124240+Gopro336@users.noreply.github.com" ]
63124240+Gopro336@users.noreply.github.com
b17155c8af057e0f16cf9b24ea9ce19404fb0cc0
4b0bf4787e89bcae7e4759bde6d7f3ab2c81f849
/aliyun-java-sdk-computenestsupplier/src/main/java/com/aliyuncs/computenestsupplier/model/v20210521/UpdateArtifactResponse.java
ab7d871c4061f6f2086b30a83c76b5d19aad3cd4
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-java-sdk
a263fa08e261f12d45586d1b3ad8a6609bba0e91
e19239808ad2298d32dda77db29a6d809e4f7add
refs/heads/master
2023-09-03T12:28:09.765286
2023-09-01T09:03:00
2023-09-01T09:03:00
39,555,898
1,542
1,317
NOASSERTION
2023-09-14T07:27:05
2015-07-23T08:41:13
Java
UTF-8
Java
false
false
3,126
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.computenestsupplier.model.v20210521; import com.aliyuncs.AcsResponse; import com.aliyuncs.computenestsupplier.transform.v20210521.UpdateArtifactResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class UpdateArtifactResponse extends AcsResponse { private String requestId; private String artifactId; private String artifactType; private String versionName; private String artifactVersion; private String description; private String gmtModified; private String status; private String artifactProperty; private String supportRegionIds; public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public String getArtifactId() { return this.artifactId; } public void setArtifactId(String artifactId) { this.artifactId = artifactId; } public String getArtifactType() { return this.artifactType; } public void setArtifactType(String artifactType) { this.artifactType = artifactType; } public String getVersionName() { return this.versionName; } public void setVersionName(String versionName) { this.versionName = versionName; } public String getArtifactVersion() { return this.artifactVersion; } public void setArtifactVersion(String artifactVersion) { this.artifactVersion = artifactVersion; } public String getDescription() { return this.description; } public void setDescription(String description) { this.description = description; } public String getGmtModified() { return this.gmtModified; } public void setGmtModified(String gmtModified) { this.gmtModified = gmtModified; } public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } public String getArtifactProperty() { return this.artifactProperty; } public void setArtifactProperty(String artifactProperty) { this.artifactProperty = artifactProperty; } public String getSupportRegionIds() { return this.supportRegionIds; } public void setSupportRegionIds(String supportRegionIds) { this.supportRegionIds = supportRegionIds; } @Override public UpdateArtifactResponse getInstance(UnmarshallerContext context) { return UpdateArtifactResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
8f9d87f7acca417a183f0a308f055bcb64a39549
63e36d35f51bea83017ec712179302a62608333e
/framework/android/content/IIntentSender.java
569198f3d47ddc942d8eb868c2b4672f76b2faad
[]
no_license
hiepgaf/oneplus_blobs_decompiled
672aa002fa670bdcba8fdf34113bc4b8e85f8294
e1ab1f2dd111f905ff1eee18b6a072606c01c518
refs/heads/master
2021-06-26T11:24:21.954070
2017-08-26T12:45:56
2017-08-26T12:45:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,619
java
package android.content; import android.os.Binder; import android.os.Bundle; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.Parcelable.Creator; import android.os.RemoteException; public abstract interface IIntentSender extends IInterface { public abstract void send(int paramInt, Intent paramIntent, String paramString1, IIntentReceiver paramIIntentReceiver, String paramString2, Bundle paramBundle) throws RemoteException; public static abstract class Stub extends Binder implements IIntentSender { private static final String DESCRIPTOR = "android.content.IIntentSender"; static final int TRANSACTION_send = 1; public Stub() { attachInterface(this, "android.content.IIntentSender"); } public static IIntentSender asInterface(IBinder paramIBinder) { if (paramIBinder == null) { return null; } IInterface localIInterface = paramIBinder.queryLocalInterface("android.content.IIntentSender"); if ((localIInterface != null) && ((localIInterface instanceof IIntentSender))) { return (IIntentSender)localIInterface; } return new Proxy(paramIBinder); } public IBinder asBinder() { return this; } public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) throws RemoteException { switch (paramInt1) { default: return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2); case 1598968902: paramParcel2.writeString("android.content.IIntentSender"); return true; } paramParcel1.enforceInterface("android.content.IIntentSender"); paramInt1 = paramParcel1.readInt(); String str1; IIntentReceiver localIIntentReceiver; String str2; if (paramParcel1.readInt() != 0) { paramParcel2 = (Intent)Intent.CREATOR.createFromParcel(paramParcel1); str1 = paramParcel1.readString(); localIIntentReceiver = IIntentReceiver.Stub.asInterface(paramParcel1.readStrongBinder()); str2 = paramParcel1.readString(); if (paramParcel1.readInt() == 0) { break label138; } } label138: for (paramParcel1 = (Bundle)Bundle.CREATOR.createFromParcel(paramParcel1);; paramParcel1 = null) { send(paramInt1, paramParcel2, str1, localIIntentReceiver, str2, paramParcel1); return true; paramParcel2 = null; break; } } private static class Proxy implements IIntentSender { private IBinder mRemote; Proxy(IBinder paramIBinder) { this.mRemote = paramIBinder; } public IBinder asBinder() { return this.mRemote; } public String getInterfaceDescriptor() { return "android.content.IIntentSender"; } public void send(int paramInt, Intent paramIntent, String paramString1, IIntentReceiver paramIIntentReceiver, String paramString2, Bundle paramBundle) throws RemoteException { Object localObject = null; Parcel localParcel = Parcel.obtain(); for (;;) { try { localParcel.writeInterfaceToken("android.content.IIntentSender"); localParcel.writeInt(paramInt); if (paramIntent != null) { localParcel.writeInt(1); paramIntent.writeToParcel(localParcel, 0); localParcel.writeString(paramString1); paramIntent = (Intent)localObject; if (paramIIntentReceiver != null) { paramIntent = paramIIntentReceiver.asBinder(); } localParcel.writeStrongBinder(paramIntent); localParcel.writeString(paramString2); if (paramBundle != null) { localParcel.writeInt(1); paramBundle.writeToParcel(localParcel, 0); this.mRemote.transact(1, localParcel, null, 1); } } else { localParcel.writeInt(0); continue; } localParcel.writeInt(0); } finally { localParcel.recycle(); } } } } } } /* Location: /Users/joshua/Desktop/system_framework/classes-dex2jar.jar!/android/content/IIntentSender.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "joshuous@gmail.com" ]
joshuous@gmail.com
9cec1e76fb593aef926e4c16f25209f4574840f9
3bc191c57ffe65af0962f2c7a6700291cd3fab2e
/on_cms_common/src/main/java/cn/onlov/cms/common/core/dao/impl/CmsRoleDaoImpl.java
dd2aa78681bb1957d2dccac9180f36b5937d5545
[]
no_license
mwf415/on_parent_common
0b02cfd574763c1332960b1d77edfcf9087ed012
9233a50837d78aa1d9e4357af808c2f354d8e1b5
refs/heads/master
2020-05-18T06:30:53.320665
2019-05-12T09:07:01
2019-05-12T09:07:01
184,231,937
0
0
null
null
null
null
UTF-8
Java
false
false
1,168
java
package cn.onlov.cms.common.core.dao.impl; import java.util.List; import cn.onlov.cms.common.common.hibernate4.Finder; import cn.onlov.cms.common.common.hibernate4.HibernateBaseDao; import cn.onlov.cms.common.core.entity.CmsRole; import cn.onlov.cms.common.core.dao.CmsRoleDao; import org.springframework.stereotype.Repository; @Repository public class CmsRoleDaoImpl extends HibernateBaseDao<CmsRole, Integer> implements CmsRoleDao { @SuppressWarnings("unchecked") public List<CmsRole> getList(Integer topLevel) { String hql = "from CmsRole bean "; Finder f=Finder.create(hql); if(topLevel!=null){ f.append(" where bean.level<=:topLevel").setParam("topLevel", topLevel); } f.append(" order by bean.priority asc"); return find(f); } public CmsRole findById(Integer id) { CmsRole entity = get(id); return entity; } public CmsRole save(CmsRole bean) { getSession().save(bean); return bean; } public CmsRole deleteById(Integer id) { CmsRole entity = super.get(id); if (entity != null) { getSession().delete(entity); } return entity; } @Override protected Class<CmsRole> getEntityClass() { return CmsRole.class; } }
[ "mwf415@126.com" ]
mwf415@126.com
492016d0688bd7988c41b5dfc855b60a3b9796c3
7b877eecdb91354dc6a352dad68fe3930f7baf78
/multilight/lightview/src/main/java/org/lightview/presentation/applications/pool/PoolPresenter.java
018780d159fcab1daa7543e5b54fe78faee08c40
[ "Apache-2.0" ]
permissive
AppSecAI-TEST/lightfish
5988e4277602251af41f3b906513b8130bb57e94
8d2ea225abde84e4bf31d5693e7204ef2764e9fa
refs/heads/master
2021-05-31T03:07:06.493994
2016-04-10T17:56:05
2016-04-10T17:56:05
100,414,487
0
0
null
2017-08-15T19:59:50
2017-08-15T19:59:50
null
UTF-8
Java
false
false
4,483
java
/* Copyright 2012 Adam Bien, adam-bien.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 org.lightview.presentation.applications.pool; import java.net.URL; import java.util.ResourceBundle; import java.util.function.Function; import javafx.animation.FadeTransition; import javafx.animation.FadeTransitionBuilder; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.chart.CategoryAxis; import javafx.scene.chart.LineChart; import javafx.scene.chart.NumberAxis; import javafx.scene.chart.XYChart; import javafx.util.Duration; import javax.inject.Inject; import org.lightview.business.pool.boundary.EJBPoolMonitoring; import org.lightview.business.pool.entity.PoolStatistics; import org.lightview.model.Snapshot; import org.lightview.presentation.dashboard.DashboardModel; /** * User: blog.adam-bien.com Date: 22.11.11 Time: 19:37 */ public class PoolPresenter implements Initializable { private static final int MAX_SIZE = 8; private static final double FADE_VALUE = 0.3; @FXML private LineChart<String, Number> lineChart; private XYChart.Series<String, Number> series; private boolean activated; @Inject DashboardModel model; @Inject EJBPoolMonitoring poolMonitoring; @FXML private NumberAxis yAxis; @FXML private CategoryAxis xAxis; @FXML Function<PoolStatistics,Integer> extractor; private String applicationName; private String ejbName; @Override public void initialize(URL url, ResourceBundle rb) { this.series = new XYChart.Series<String, Number>(); yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, null, null)); yAxis.setForceZeroInRange(true); lineChart.setLegendVisible(false); lineChart.getData().add(series); deactivate(); } public void monitor(Function<PoolStatistics,Integer> extractor,String title, String label, String applicationName, String ejbName) { this.setTitle(title); this.setLabel(label); this.applicationName = applicationName; this.ejbName = ejbName; this.extractor = extractor; this.registerListeners(); } public void setTitle(String title) { this.lineChart.setTitle(title); } public void setLabel(String label) { this.yAxis.setLabel(label); } private void registerListeners() { this.model.currentSnapshotProperty().addListener(new ChangeListener<Snapshot>() { @Override public void changed(ObservableValue<? extends Snapshot> ov, Snapshot t, Snapshot newSnapshot) { fetchValues(newSnapshot.getId()); } }); } void deactivate() { FadeTransition fadeAway = FadeTransitionBuilder.create().fromValue(1.0).toValue(FADE_VALUE).duration(Duration.seconds(1)).node(this.lineChart).build(); fadeAway.play(); activated = false; } void activate() { FadeTransition fadeAway = FadeTransitionBuilder.create().fromValue(FADE_VALUE).toValue(1.0).duration(Duration.seconds(1)).node(this.lineChart).build(); fadeAway.play(); activated = true; } void onNewEntry(long snapshotId, int value) { String id = String.valueOf(snapshotId); System.out.println("Received: " + snapshotId + " " + value); if (value != 0) { this.series.getData().add(new XYChart.Data<String, Number>(id, value)); if (this.series.getData().size() > MAX_SIZE) { this.series.getData().remove(0); } if (!activated) { activate(); } } } void fetchValues(long id) { PoolStatistics poolStats = poolMonitoring.getPoolStats(this.applicationName, this.ejbName); if(poolStats.isValid()) this.onNewEntry(id, extractor.apply(poolStats)); } }
[ "abien@adam-bien.com" ]
abien@adam-bien.com
3edbba75daddbe7ba271b3938b2eaec25a05f47d
7d5572657dd0080b168c48c1ea27b034f08cc7dc
/src/main/java/org/algo/array/ComplexArray.java
dffa26ce1149f827be0f68ad6d8a5464d570a23a
[ "MIT" ]
permissive
JBAhire/hybo
10c0ffebe6d53eaa6bb593a21146d75075a27934
824055c4aacd20def8454ad5d289d0e129cd6a89
refs/heads/master
2020-03-28T16:15:35.626669
2017-10-30T19:19:37
2017-10-30T19:19:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,719
java
/* * Copyright 1997-2017 Optimatika (www.optimatika.se) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package org.algo.array; import java.util.Arrays; import java.util.Comparator; import org.algo.access.Access1D; import org.algo.function.ComplexFunction; import org.algo.function.FunctionSet; import org.algo.function.FunctionUtils; import org.algo.function.aggregator.AggregatorSet; import org.algo.function.aggregator.ComplexAggregator; import org.algo.machine.MemoryEstimator; import org.algo.scalar.ComplexNumber; import org.algo.scalar.Scalar; /** * A one- and/or arbitrary-dimensional array of {@linkplain org.algo.scalar.ComplexNumber}. * * @author apete */ public class ComplexArray extends ScalarArray<ComplexNumber> { public static final DenseArray.Factory<ComplexNumber> FACTORY = new DenseArray.Factory<ComplexNumber>() { @Override public AggregatorSet<ComplexNumber> aggregator() { return ComplexAggregator.getSet(); } @Override public FunctionSet<ComplexNumber> function() { return ComplexFunction.getSet(); } @Override public Scalar.Factory<ComplexNumber> scalar() { return ComplexNumber.FACTORY; } @Override long getElementSize() { return ELEMENT_SIZE; } @Override PlainArray<ComplexNumber> make(final long size) { return ComplexArray.make((int) size); } }; static final long ELEMENT_SIZE = MemoryEstimator.estimateObject(ComplexNumber.class); public static final ComplexArray make(final int size) { return new ComplexArray(size); } public static final ComplexArray wrap(final ComplexNumber[] data) { return new ComplexArray(data); } protected ComplexArray(final ComplexNumber[] data) { super(data); } protected ComplexArray(final int size) { super(new ComplexNumber[size]); this.fill(0, size, 1, ComplexNumber.ZERO); } @Override public boolean equals(final Object anObj) { if (anObj instanceof ComplexArray) { return Arrays.equals(data, ((ComplexArray) anObj).data); } else { return super.equals(anObj); } } public final void fillMatching(final Access1D<?> values) { final int tmpLimit = (int) FunctionUtils.min(this.count(), values.count()); for (int i = 0; i < tmpLimit; i++) { data[i] = ComplexNumber.valueOf(values.get(i)); } } @Override public int hashCode() { return Arrays.hashCode(data); } @Override public final void sortAscending() { Arrays.parallelSort(data); } @Override public void sortDescending() { Arrays.parallelSort(data, Comparator.reverseOrder()); } @Override protected final void add(final int index, final double addend) { this.fillOne(index, this.get(index).add(this.valueOf(addend))); } @Override protected final void add(final int index, final Number addend) { this.fillOne(index, this.get(index).add(this.valueOf(addend))); } @Override protected boolean isAbsolute(final int index) { return ComplexNumber.isAbsolute(data[index]); } @Override protected boolean isSmall(final int index, final double comparedTo) { return ComplexNumber.isSmall(comparedTo, data[index]); } @Override ComplexNumber valueOf(final double value) { return ComplexNumber.valueOf(value); } @Override ComplexNumber valueOf(final Number number) { return ComplexNumber.valueOf(number); } }
[ "amangoyal007@gmail.com" ]
amangoyal007@gmail.com
d52f0771614f65749328679a4b084a8f3e3b22a8
540cb0a2dc9464957ab4f8139c04d894be910372
/sdk/src/test/java/com/google/cloud/dataflow/sdk/runners/worker/ConcatReaderFactoryTest.java
85d8bf203b3d43f5032f1dc45d52442e1cd4f4bc
[ "Apache-2.0" ]
permissive
spotify/DataflowJavaSDK
8e1fa04b091bbcc45df2c057ecd223d041088fa4
2b200759edc25a6ec43ca277dac33fb62fddf475
refs/heads/master
2023-06-15T11:04:45.318231
2015-11-10T20:03:21
2015-11-10T20:59:25
45,999,683
3
3
Apache-2.0
2023-03-18T19:48:43
2015-11-11T18:00:01
Java
UTF-8
Java
false
false
4,820
java
/******************************************************************************* * Copyright (C) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. ******************************************************************************/ package com.google.cloud.dataflow.sdk.runners.worker; import static com.google.cloud.dataflow.sdk.runners.worker.ReaderTestUtils.readRemainingFromReader; import static com.google.cloud.dataflow.sdk.util.CoderUtils.makeCloudEncoding; import static com.google.cloud.dataflow.sdk.util.Structs.addList; import static com.google.cloud.dataflow.sdk.util.Structs.addLong; import static com.google.cloud.dataflow.sdk.util.Structs.addStringList; import static org.hamcrest.Matchers.containsInAnyOrder; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertThat; import com.google.api.services.dataflow.model.Source; import com.google.cloud.dataflow.sdk.util.CloudObject; import com.google.cloud.dataflow.sdk.util.PropertyNames; import com.google.cloud.dataflow.sdk.util.common.worker.Reader; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Test for {@code ConcatReaderFactory}. */ @RunWith(JUnit4.class) public class ConcatReaderFactoryTest { Source createSourcesWithInMemorySources(List<List<String>> allData) { List<Map<String, Object>> sourcesList = new ArrayList<>(); Source source = new Source(); for (List<String> data : allData) { CloudObject inMemorySourceSpec = CloudObject.forClassName("InMemorySource"); Map<String, Object> inMemorySourceDictionary = new HashMap<>(); addStringList(inMemorySourceSpec, PropertyNames.ELEMENTS, data); addLong(inMemorySourceSpec, PropertyNames.START_INDEX, 0L); addLong(inMemorySourceSpec, PropertyNames.END_INDEX, data.size()); inMemorySourceDictionary.put(PropertyNames.SOURCE_SPEC, inMemorySourceSpec); CloudObject textSourceEncoding = makeCloudEncoding("StringUtf8Coder"); inMemorySourceDictionary.put(PropertyNames.ENCODING, textSourceEncoding); sourcesList.add(inMemorySourceDictionary); } CloudObject spec = CloudObject.forClassName("ConcatSource"); addList(spec, PropertyNames.CONCAT_SOURCE_SOURCES, sourcesList); source.setSpec(spec); return source; } private List<List<String>> createInMemorySourceData(int numSources, int dataPerSource) { List<List<String>> allData = new ArrayList<>(); for (int i = 0; i < numSources; i++) { List<String> data = new ArrayList<>(); for (int j = 0; j < dataPerSource; j++) { data.add("data j of source i"); } allData.add(data); } return allData; } @Test public void testCreateConcatReaderWithOneSubSource() throws Exception { List<List<String>> allData = createInMemorySourceData(1, 10); Source source = createSourcesWithInMemorySources(allData); @SuppressWarnings("unchecked") Reader<String> reader = (Reader<String>) ReaderFactory.Registry.defaultRegistry().create( source, null, null, null, null); assertNotNull(reader); List<String> expected = new ArrayList<>(); for (List<String> data : allData) { expected.addAll(data); } List<String> actual = new ArrayList<>(); readRemainingFromReader(reader, actual); assertEquals(actual.size(), 10); assertThat(actual, containsInAnyOrder(expected.toArray())); } @Test public void testCreateConcatReaderWithManySubSources() throws Exception { List<List<String>> allData = createInMemorySourceData(15, 10); Source source = createSourcesWithInMemorySources(allData); @SuppressWarnings("unchecked") Reader<String> reader = (Reader<String>) ReaderFactory.Registry.defaultRegistry().create( source, null, null, null, null); assertNotNull(reader); List<String> expected = new ArrayList<>(); for (List<String> data : allData) { expected.addAll(data); } List<String> actual = new ArrayList<>(); readRemainingFromReader(reader, actual); assertEquals(actual.size(), 150); assertThat(actual, containsInAnyOrder(expected.toArray())); } }
[ "davorbonaci@users.noreply.github.com" ]
davorbonaci@users.noreply.github.com
365b7735aa73e32a27b85b49463d63d4cd7a95ab
082e26b011e30dc62a62fae95f375e4f87d9e99c
/docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/loader/g/a/f.java
870d457a07ec666d0407cbe1e78f14a7529fc97b
[]
no_license
xsren/AndroidReverseNotes
9631a5aabc031006e795a112b7ac756a8edd4385
9202c276fe9f04a978e4e08b08e42645d97ca94b
refs/heads/master
2021-04-07T22:50:51.072197
2019-07-16T02:24:43
2019-07-16T02:24:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,016
java
package com.tencent.mm.loader.g.a; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; public final class f implements ThreadFactory { private static final AtomicInteger eRB = new AtomicInteger(1); private final ThreadGroup cme; private final AtomicInteger cmf = new AtomicInteger(1); private final String cmg; private final int eRC; public f(int i, String str) { this.eRC = i; SecurityManager securityManager = System.getSecurityManager(); this.cme = securityManager != null ? securityManager.getThreadGroup() : Thread.currentThread().getThreadGroup(); this.cmg = str + eRB.getAndIncrement() + "-thread-"; } public final Thread newThread(Runnable runnable) { Thread thread = new Thread(this.cme, runnable, this.cmg + this.cmf.getAndIncrement(), 0); if (thread.isDaemon()) { thread.setDaemon(false); } thread.setPriority(this.eRC); return thread; } }
[ "alwangsisi@163.com" ]
alwangsisi@163.com
92eb59c987f3e99f939d31d26490ff1934cbdc38
61fa891bd5d43b333b49f7fbd542722419eeecc2
/src/main/java/com/insightfullogic/honest_profiler/core/sources/VirtualMachine.java
d78ea91f07c02bbcc8f0a2df81261fc16d72343b
[ "MIT", "Apache-2.0" ]
permissive
FauxFaux/honest-profiler
b8b28e3a067e991073de89edbb041d4676f4a9f7
34cada47e4e09afb2ccb5becea32f73b54c24224
refs/heads/master
2022-12-20T14:13:47.003195
2014-08-22T12:38:41
2014-08-22T12:38:41
17,108,033
0
0
MIT
2022-12-14T13:06:24
2014-02-23T12:58:56
Java
UTF-8
Java
false
false
1,173
java
package com.insightfullogic.honest_profiler.core.sources; import java.io.File; import java.util.Objects; /** * Represents a Java Virtual Machine */ public class VirtualMachine { private final String id; private final String displayName; private final boolean agentLoaded; private final String userDir; public VirtualMachine(String id, String displayName, boolean agentLoaded, String userDir) { this.id = id; this.displayName = displayName; this.agentLoaded = agentLoaded; this.userDir = userDir; } public String getId() { return id; } public String getDisplayName() { return displayName; } public boolean isAgentLoaded() { return agentLoaded; } public File getLogFile() { return new File(userDir, "log.hpl"); } @Override public boolean equals(Object other) { if (this == other) return true; if (other == null || getClass() != other.getClass()) return false; return Objects.equals(id, ((VirtualMachine) other).id); } @Override public int hashCode() { return Objects.hashCode(id); } }
[ "richard.warburton@gmail.com" ]
richard.warburton@gmail.com
366e973c729792d7f4672e03893b6ee1073c2b5d
45ec4a8d3b6e175647207734d1aa8bf533968181
/java-squid/src/main/java/org/sonar/java/collections/PCollections.java
603b2ccf0ba5accf2dee82e47aa20c6da65823f1
[]
no_license
MarkZ3/sonar-java
00aa78e50ff79e7b5b11e7776c0f5bcd96285c11
c7558f46cdec47f097634a0f69c1d39c25e999ca
refs/heads/master
2021-01-18T18:05:29.135062
2015-12-15T04:16:07
2015-12-15T04:25:56
48,019,139
0
0
null
2015-12-15T04:14:01
2015-12-15T04:14:01
null
UTF-8
Java
false
false
1,080
java
/* * SonarQube Java * Copyright (C) 2012 SonarSource * sonarqube@googlegroups.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ package org.sonar.java.collections; public final class PCollections { private PCollections() { } public static <E> PSet<E> emptySet() { return AVLTree.create(); } public static <E, V> PMap<E, V> emptyMap() { return AVLTree.create(); } }
[ "nicolas.peru@sonarsource.com" ]
nicolas.peru@sonarsource.com
28bb2cb4ddf02dadcac4e60f0db9429fc7d48c6d
a234e2e8255e8f9ff752840d3c602a438361bbc3
/chapter4/src/ElectricGuitarTest.java
83e908d325228f45564a0ef71538df557fddc60e
[]
no_license
deepak-misal/HeadFirst_Assignment
2877bb18e9cb7e3f056378166999573da93f6333
155974f4768f7bc8b506d4224844b07435940e4c
refs/heads/master
2023-04-14T14:52:37.662304
2021-04-16T16:54:54
2021-04-16T16:54:54
358,664,302
0
0
null
null
null
null
UTF-8
Java
false
false
352
java
class ElectricGuitarTest{ String brand; int numOfPickups; boolean rockStarUsesIt=true; String getBrand() { return brand; } void setBrand(String aBrand) { brand=aBrand; } int getnumOfPickups() { return numOfPickups; } void setNumOfPickups (int num) { numOfPickups = num; } boolean getRockStaruseaIt() { return rockStarUsesIt; } }
[ "deepak.misal2350@gmail.com" ]
deepak.misal2350@gmail.com
f706007a146f1b579fc066923e79f50c093f8592
0fddaec8e389712107e99fb40a32903809416d7d
/plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/runtime/ProgressStreamReader.java
24f0fe40db91e79b157d15f7c099a75bb6546bae
[ "EPL-1.0", "Apache-2.0", "LGPL-2.0-or-later" ]
permissive
kai-morich/dbeaver
83dce3057f510fe110380300c7eb51e5d5b5de21
0694ed136ddf089a5a01a0ceebd6e67585a7b2ee
refs/heads/devel
2022-02-19T00:07:03.733415
2022-02-11T14:35:37
2022-02-11T14:35:37
255,131,238
4
0
Apache-2.0
2020-04-12T17:08:35
2020-04-12T17:08:34
null
UTF-8
Java
false
false
2,454
java
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2022 DBeaver Corp and others * Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jkiss.dbeaver.runtime; import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor; import java.io.IOException; import java.io.InputStream; public class ProgressStreamReader extends InputStream { static final int BUFFER_SIZE = 10000; private final DBRProgressMonitor monitor; private final InputStream original; private final long streamLength; private long totalRead; public ProgressStreamReader(DBRProgressMonitor monitor, String task, InputStream original, long streamLength) { this.monitor = monitor; this.original = original; this.streamLength = streamLength; this.totalRead = 0; monitor.beginTask(task, (int)streamLength); } @Override public int read() throws IOException { int res = original.read(); showProgress(res); return res; } @Override public int read(byte[] b) throws IOException { int res = original.read(b); showProgress(res); return res; } @Override public int read(byte[] b, int off, int len) throws IOException { int res = original.read(b, off, len); showProgress(res); return res; } @Override public long skip(long n) throws IOException { long res = original.skip(n); showProgress(res); return res; } @Override public int available() throws IOException { return original.available(); } @Override public void close() throws IOException { monitor.done(); original.close(); } private void showProgress(long length) { totalRead += length; monitor.worked((int)length); } }
[ "serge@jkiss.org" ]
serge@jkiss.org
0ca07398dc8178b3bfa0b20f045f5b7a6deb4faa
647eef4da03aaaac9872c8b210e4fc24485e49dc
/TestMemory/admobapk/src/main/java/aly.java
bd7e432cd00eaa5f8c31bf1627259ee9adf0d3ef
[]
no_license
AlbertSnow/git_workspace
f2d3c68a7b6e62f41c1edcd7744f110e2bf7f021
a0b2cd83cfa6576182f440a44d957a9b9a6bda2e
refs/heads/master
2021-01-22T17:57:16.169136
2016-12-05T15:59:46
2016-12-05T15:59:46
28,154,580
1
1
null
null
null
null
UTF-8
Java
false
false
558
java
import android.os.Bundle; import com.google.android.gms.common.ConnectionResult; abstract class aly extends amc { private int c; private Bundle d; protected aly(alx paramalx, int paramInt, Bundle paramBundle) { super(paramalx, Boolean.valueOf(true)); this.c = paramInt; this.d = paramBundle; } protected abstract void a(ConnectionResult paramConnectionResult); protected abstract boolean a(); } /* Location: C:\Program Files\APK反编译\classes_dex2jar.jar * Qualified Name: aly * JD-Core Version: 0.6.0 */
[ "zhaojialiang@conew.com" ]
zhaojialiang@conew.com
0793452ac36dfebd029a85f241752d718e0ff10a
9acf7a492b08e0c6a8589c2c4ecbb97629f951c4
/core/src/main/java/com/business/core/entity/user/UserSkipRope.java
d7c5f484b1d30a12342b6ab720cb997ab2baea23
[]
no_license
sengeiou/Fitmix
b1b8322f46b54015410310917911b177a076846d
cf987d9dbb142aae9087b79b5299f4b38533dd4a
refs/heads/master
2020-07-02T19:36:18.578482
2019-08-06T05:31:34
2019-08-06T05:31:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,685
java
package com.business.core.entity.user; /** * Created by edward on 2016/5/23. * 用户跳绳 */ public class UserSkipRope { /** * 用户编号 {@link com.business.core.entity.user.User#id} */ private Integer uid; /** * 运动开始时间 */ private Long startTime; /** * 运动结束时间 */ private Long endTime; /** * 跳绳详细(存的是本地文件,会上传文件服务器) */ private String skipDetail; /** * 卡路里 */ private Long calorie; /** * 心率带记录的用户心率 */ private Double heartRate; /** * 运动时间 (秒) */ private Long runTime; /** * 跳跃总个数 */ private Long skipNum; /** * mix BPM值 {@link com.business.core.entity.mix.Mix#bpm} (平均频率) */ private Integer bpm; /** * bpm 匹 * 度,(计算后的 匹配度,因为会计算 大于 100% 的用户, 如 : 130% = 130 % 100 bomMatch = 30% ) (跑步完后,计算的 匹配值) */ private Double bpmMatch; /** * 运动类型(0跑步、1骑行、2跳绳之类的) */ private Integer type; /** * 状态 0 无效 1 有效 * {@link com.business.core.constants.Constants#STATE_INVALID} * {@link com.business.core.constants.Constants#STATE_EFFECTIVE} */ private Integer state; /** * 运动更新时间 (暂时只有 用户删除历史运动记录时使用) */ private Long updateTime; /** * 添加时间,上传时间 */ private Long addTime; public Integer getUid() { return uid; } public void setUid(Integer uid) { this.uid = uid; } public Long getStartTime() { return startTime; } public void setStartTime(Long startTime) { this.startTime = startTime; } public Long getEndTime() { return endTime; } public void setEndTime(Long endTime) { this.endTime = endTime; } public Long getCalorie() { return calorie; } public void setCalorie(Long calorie) { this.calorie = calorie; } public Double getHeartRate() { return heartRate; } public void setHeartRate(Double heartRate) { this.heartRate = heartRate; } public Long getRunTime() { return runTime; } public void setRunTime(Long runTime) { this.runTime = runTime; } public Long getSkipNum() { return skipNum; } public void setSkipNum(Long skipNum) { this.skipNum = skipNum; } public Integer getBpm() { return bpm; } public void setBpm(Integer bpm) { this.bpm = bpm; } public Integer getState() { return state; } public void setState(Integer state) { this.state = state; } public Long getUpdateTime() { return updateTime; } public void setUpdateTime(Long updateTime) { this.updateTime = updateTime; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public Long getAddTime() { return addTime; } public void setAddTime(Long addTime) { this.addTime = addTime; } public String getSkipDetail() { return skipDetail; } public void setSkipDetail(String skipDetail) { this.skipDetail = skipDetail; } public Double getBpmMatch() { return bpmMatch; } public void setBpmMatch(Double bpmMatch) { this.bpmMatch = bpmMatch; } }
[ "junjie.lv@3nod.com.cn" ]
junjie.lv@3nod.com.cn
7e47b25884d3c9f028e19469f47c32453c067621
d666b5c098a3d92fc58e6068b9ae46ca205bad2d
/src/main/java/com/robertx22/age_of_exile/database/data/exile_effects/ExileEffect.java
e93284a0aec2e4c989e3bfd34fa0d173bf7c00da
[]
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
3,199
java
package com.robertx22.age_of_exile.database.data.exile_effects; import com.robertx22.age_of_exile.aoe_data.datapacks.bases.ISerializedRegistryEntry; import com.robertx22.age_of_exile.database.OptScaleExactStat; import com.robertx22.age_of_exile.database.data.IAutoGson; import com.robertx22.age_of_exile.database.data.spells.components.AttachedSpell; import com.robertx22.age_of_exile.database.data.spells.entities.EntitySavedSpellData; import com.robertx22.age_of_exile.database.registry.SlashRegistryType; import com.robertx22.age_of_exile.mmorpg.ModRegistry; import com.robertx22.age_of_exile.saveclasses.gearitem.gear_bases.TooltipInfo; import com.robertx22.age_of_exile.uncommon.interfaces.IAutoLocName; import com.robertx22.age_of_exile.uncommon.localization.Words; import com.robertx22.age_of_exile.vanilla_mc.potion_effects.types.ExileStatusEffect; import net.minecraft.text.LiteralText; import net.minecraft.text.Text; import net.minecraft.util.Formatting; import net.minecraft.util.registry.Registry; import java.util.ArrayList; import java.util.List; public class ExileEffect implements ISerializedRegistryEntry<ExileEffect>, IAutoGson<ExileEffect>, IAutoLocName { public static ExileEffect SERIALIZER = new ExileEffect(); public String id; public String one_of_a_kind_id = ""; public EffectType type = EffectType.neutral; public int max_stacks = 1; public transient String locName = ""; public List<String> tags = new ArrayList<>(); public List<VanillaStatData> mc_stats = new ArrayList<>(); public List<OptScaleExactStat> stats = new ArrayList<>(); public AttachedSpell spell; public ExileStatusEffect getStatusEffect() { return ModRegistry.POTIONS.getExileEffect(id); } @Override public SlashRegistryType getSlashRegistryType() { return SlashRegistryType.EXILE_EFFECT; } @Override public String GUID() { return id; } @Override public Class<ExileEffect> getClassForSerialization() { return ExileEffect.class; } @Override public AutoLocGroup locNameGroup() { return AutoLocGroup.StatusEffects; } @Override public String locNameLangFileGUID() { return "effect." + Registry.STATUS_EFFECT.getId(getStatusEffect()) .toString(); } @Override public String locNameForLangFile() { return this.locName; } public List<Text> GetTooltipString(TooltipInfo info, EntitySavedSpellData data) { List<Text> list = new ArrayList<>(); list.add(new LiteralText("Status Effect: ").append(this.locName()) .formatted(Formatting.YELLOW)); if (!stats.isEmpty()) { list.add(Words.Stats.locName() .append(": ") .formatted(Formatting.GREEN)); stats.forEach(x -> list.addAll(x.GetTooltipString(info, data.lvl))); } if (spell != null) { // list.add(new LiteralText("Effect:")); list.addAll(spell.getEffectTooltip(data)); } if (max_stacks > 1) { list.add(new LiteralText("Maximum Stacks: " + max_stacks)); } return list; } }
[ "treborx555@gmail.com" ]
treborx555@gmail.com
8b70f642cefcfd455ebf95bd70f69482e3082ab2
399f59832fed21e1eabc1a9181a3ffc4f991015f
/cargo/src/test/java/com/delmar/crm/CustomerServiceTest.java
2c54f57cf0af850905adcc13e6f222f87f966b36
[]
no_license
DelmarChina/delmar_platform
bb977778cceced17f118e2b54e24923811b2ca28
8799ab3c086d0e4fed6c2f24eda1beee87ffd76f
refs/heads/master
2021-01-22T05:10:48.713184
2016-08-16T14:36:57
2016-08-16T14:36:57
42,499,265
0
1
null
null
null
null
UTF-8
Java
false
false
1,055
java
package com.delmar.crm; import com.delmar.crm.model.Customer; import com.delmar.crm.service.CustomerService; 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 java.util.List; /** * Created with IntelliJ IDEA. * User: liua * Date: 15-9-15 * Time: 下午1:02 * To change this template use File | Settings | File Templates. */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:applicationContext.xml") public class CustomerServiceTest { @Autowired private CustomerService customerService; @Test public void testSearchCustomer() { List<Customer> customerList=customerService.selectByExample(null); for(Customer c:customerList) { System.out.println(c.getName()); } Assert.assertNotNull(customerList); } }
[ "ldlqdsdcn@gmail.com" ]
ldlqdsdcn@gmail.com
d6d5d3f246e82ddb702372e844b24e39fd14716d
84abf44f04e7e19cc07eb4b8c8fe14db1ccb9b22
/trunk/src/main/java/healthmanager/modelo/dao/Hisc_urgencia_odontologicoDao.java
3c09e976a7ac39741d25e23b64b17da705b0efd2
[]
no_license
BGCX261/zkmhealthmanager-svn-to-git
3183263172355b7ac0884b793c1ca3143a950411
bb626589f101034137a2afa62d8e8bfe32bf7d47
refs/heads/master
2021-01-22T02:57:49.394471
2015-08-25T15:32:48
2015-08-25T15:32:48
42,323,197
0
1
null
null
null
null
UTF-8
Java
false
false
819
java
/* * Hisc_urgencia_odontologicoDao.java * * Generado Automaticamente . * Tecnologos: Ferney Jimenez Lopez Luis Hernadez Perez Dario Perez Campillo */ package healthmanager.modelo.dao; import java.util.List; import java.util.Map; import healthmanager.modelo.bean.Hisc_urgencia_odontologico; public interface Hisc_urgencia_odontologicoDao { void crear(Hisc_urgencia_odontologico hisc_urgencia_odontologico); int actualizar(Hisc_urgencia_odontologico hisc_urgencia_odontologico); Hisc_urgencia_odontologico consultar(Hisc_urgencia_odontologico hisc_urgencia_odontologico); int eliminar(Hisc_urgencia_odontologico hisc_urgencia_odontologico); List<Hisc_urgencia_odontologico> listar(Map<String,Object> parameters); void setLimit(String limit); boolean existe(Map<String,Object> param); }
[ "you@example.com" ]
you@example.com
4888ff1e434bdb9d4b7a391ab20f6c534fff6560
b5389245f454bd8c78a8124c40fdd98fb6590a57
/big_variable_tree/androidAppModule67/src/main/java/androidAppModule67packageJava0/Foo0.java
2a3f3a97745ebc5698ecc98c52055f8fa4371daa
[]
no_license
jin/android-projects
3bbf2a70fcf9a220df3716b804a97b8c6bf1e6cb
a6d9f050388cb8af84e5eea093f4507038db588a
refs/heads/master
2021-10-09T11:01:51.677994
2018-12-26T23:10:24
2018-12-26T23:10:24
131,518,587
29
1
null
2018-12-26T23:10:25
2018-04-29T18:21:09
Java
UTF-8
Java
false
false
210
java
package androidAppModule67packageJava0; public class Foo0 { public void foo0() { } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2(); } }
[ "jingwen@google.com" ]
jingwen@google.com
59126a5c8baec4cbaf1a337601317de5f2c13387
f585bd4254b912d6e0cae13653312e063d3e4696
/app/src/main/java/com/sdxxtop/guardianapp/presenter/contract/EventListContract.java
1afe123c59b3b95be1dfc6b701a41e7028782e52
[]
no_license
ZhouSilverBullet/GuardianApp
4844a647f72cc7bf9467e6f063d0e24ee4795f47
ece98a058303beb25f88db11b46a08d40ff51f69
refs/heads/master
2020-04-29T06:57:52.841323
2020-03-19T07:28:40
2020-03-19T07:28:40
175,936,517
3
0
null
null
null
null
UTF-8
Java
false
false
444
java
package com.sdxxtop.guardianapp.presenter.contract; import com.sdxxtop.guardianapp.base.BasePresenter; import com.sdxxtop.guardianapp.base.BaseView; import com.sdxxtop.guardianapp.model.bean.AllarticleBean; public interface EventListContract { interface IView extends BaseView { void showData(AllarticleBean data); } interface IPresenter extends BasePresenter<IView> { void loadData(int count, int type); } }
[ "18614005205@163.com" ]
18614005205@163.com
a7167ba44c4b2acf18e0e523362bfd255c25644c
279bffecb84102ab7a91726607a5e4c1d18e961f
/my/my-web/src/main/java/com/qcloud/component/my/web/controller/DeliveryModeController.java
10c0e5dc0a43393cea4f8b3733b6bfcaa8940935
[]
no_license
ChiRains/forest
8b71de51c477f66a134d9b515b58039a8c94c2ee
cf0b41ff83e4cee281078afe338bba792de05052
refs/heads/master
2021-01-19T07:13:19.597344
2016-08-18T01:35:54
2016-08-18T01:35:54
65,869,894
0
2
null
null
null
null
UTF-8
Java
false
false
4,585
java
package com.qcloud.component.my.web.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import com.qcloud.component.my.DeliveryModeType; import com.qcloud.component.my.model.DeliveryMode; import com.qcloud.component.my.service.DeliveryModeService; import com.qcloud.component.my.web.form.DeliveryForm; import com.qcloud.component.my.web.handler.DeliveryModeHandler; import com.qcloud.component.my.web.vo.DeliveryModeVO; import com.qcloud.component.personalcenter.PersonalcenterClient; import com.qcloud.component.personalcenter.QUser; import com.qcloud.pirates.mvc.FrontAjaxView; import com.qcloud.pirates.util.AssertUtil; import com.qcloud.pirates.web.mvc.annotation.PiratesApp; import com.qcloud.pirates.web.page.PageParameterUtil; @Controller @RequestMapping(value = DeliveryModeController.DIR) public class DeliveryModeController { public static final String DIR = "/deliveryMode"; @Autowired private DeliveryModeService deliveryModeService; @Autowired private DeliveryModeHandler deliveryModeHandler; @PiratesApp @RequestMapping public FrontAjaxView add(HttpServletRequest request, DeliveryForm deliveryForm) { DeliveryModeType deliveryModeType = null; DeliveryModeType[] deliveryModeTypes = DeliveryModeType.values(); for (DeliveryModeType dt : deliveryModeTypes) { if (dt.getKey() == deliveryForm.getType()) { deliveryModeType = dt; break; } } AssertUtil.assertNotNull(deliveryModeType, "是否配送方式数据不正确." + deliveryForm.getType()); QUser user = PageParameterUtil.getParameterValues(request, PersonalcenterClient.USER_LOGIN_PARAMETER_KEY); DeliveryMode deliveryMode = deliveryModeService.getByUser(user.getId()); boolean result = false; if (deliveryMode == null) { deliveryMode = new DeliveryMode(); deliveryMode.setUserId(user.getId()); deliveryMode.setDesc(deliveryForm.getDesc()); deliveryMode.setStoreId(deliveryForm.getStoreId()); deliveryMode.setTime(deliveryForm.getTime()); deliveryMode.setType(deliveryForm.getType()); result = deliveryModeService.add(deliveryMode); } else { deliveryMode.setDesc(deliveryForm.getDesc()); deliveryMode.setStoreId(deliveryForm.getStoreId()); deliveryMode.setTime(deliveryForm.getTime()); deliveryMode.setType(deliveryForm.getType()); result = deliveryModeService.update(deliveryMode); } AssertUtil.assertTrue(result, "添加配送信息失败."); FrontAjaxView view = new FrontAjaxView(); view.setMessage("添加配送信息成功."); view.addObject("id", deliveryMode.getId()); return view; } @PiratesApp @RequestMapping public FrontAjaxView get(HttpServletRequest request) { QUser user = PageParameterUtil.getParameterValues(request, PersonalcenterClient.USER_LOGIN_PARAMETER_KEY); DeliveryMode deliveryMode = deliveryModeService.getByUser(user.getId()); if (deliveryMode == null) { deliveryMode = new DeliveryMode(); deliveryMode.setType(DeliveryModeType.DELIVERY.getKey()); } DeliveryModeVO deliveryModeVO = deliveryModeHandler.toVO(deliveryMode); FrontAjaxView view = new FrontAjaxView(); view.setMessage("获取配送信息成功."); view.addObject("delivery", deliveryModeVO); return view; } @PiratesApp @RequestMapping public FrontAjaxView getDefault(HttpServletRequest request) { QUser user = PageParameterUtil.getParameterValues(request, PersonalcenterClient.USER_LOGIN_PARAMETER_KEY); DeliveryMode deliveryMode = deliveryModeService.getByUser(user.getId()); if (deliveryMode == null) { FrontAjaxView view = new FrontAjaxView(); view.setMessage("获取配送信息成功."); return view; } DeliveryModeVO deliveryModeVO = deliveryModeHandler.toVO(deliveryMode); FrontAjaxView view = new FrontAjaxView(); view.setMessage("获取配送信息成功."); view.addObject("delivery", deliveryModeVO); return view; } }
[ "dengfei@ed19df75-bd51-b445-9863-9e54940520a8" ]
dengfei@ed19df75-bd51-b445-9863-9e54940520a8
8c174c885e556fafeb2d8ea4c09041976dc2247e
8315b5860f1700dc62f0713a3144ab6ba88239c0
/qenherkhopeshefUtils/src/main/java/org/qenherkhopeshef/json/model/JSONnull.java
a234d8054ca98588ca16d0406cd29abedb8c86c2
[]
no_license
rosmord/jsesh
7b63b2ac059d31d9eaefa61fd07158d52f33ccb7
f1b63328f4643f2511e0b1fa7aee9094441afcf1
refs/heads/master
2023-08-03T15:18:33.331806
2023-07-28T06:53:20
2023-07-28T06:53:20
111,090,962
46
17
null
2023-09-13T14:22:14
2017-11-17T10:30:15
Java
UTF-8
Java
false
false
303
java
package org.qenherkhopeshef.json.model; import java.io.IOException; import java.io.Writer; public class JSONnull extends JSONConstant { public void accept(JSONVisitor visitor) { visitor.visitConstant(null); } public void write(Writer writer) throws IOException { writer.write("null"); } }
[ "devnull@localhost" ]
devnull@localhost
5a79b35f22b2b897a1626c748c7e39787ca2eb8f
57d7801f31d911cde6570e3e513e43fb33f2baa3
/src/main/java/nl/strohalm/cyclos/controls/members/imports/ImportedMembersDetailsAction.java
c2b33a3d716632f7d8458d5521cbd270a6f41838
[]
no_license
kryzoo/cyclos
61f7f772db45b697fe010f11c5e6b2b2e34a8042
ead4176b832707d4568840e38d9795d7588943c8
refs/heads/master
2020-04-29T14:50:20.470400
2011-12-09T11:51:05
2011-12-09T11:51:05
54,712,705
0
1
null
2016-03-25T10:41:41
2016-03-25T10:41:41
null
UTF-8
Java
false
false
4,974
java
/* This file is part of Cyclos. Cyclos 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 2 of the License, or (at your option) any later version. Cyclos 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 Cyclos; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package nl.strohalm.cyclos.controls.members.imports; import java.util.List; import javax.servlet.http.HttpServletRequest; import nl.strohalm.cyclos.annotations.Inject; import nl.strohalm.cyclos.controls.ActionContext; import nl.strohalm.cyclos.controls.BaseQueryAction; import nl.strohalm.cyclos.entities.accounts.AccountType; import nl.strohalm.cyclos.entities.accounts.MemberAccountType; import nl.strohalm.cyclos.entities.members.imports.ImportedMember; import nl.strohalm.cyclos.entities.members.imports.ImportedMemberQuery; import nl.strohalm.cyclos.entities.members.imports.MemberImport; import nl.strohalm.cyclos.services.elements.MemberImportService; import nl.strohalm.cyclos.utils.RelationshipHelper; import nl.strohalm.cyclos.utils.binding.BeanBinder; import nl.strohalm.cyclos.utils.binding.DataBinder; import nl.strohalm.cyclos.utils.binding.DataBinderHelper; import nl.strohalm.cyclos.utils.binding.PropertyBinder; import nl.strohalm.cyclos.utils.query.QueryParameters; import nl.strohalm.cyclos.utils.validation.ValidationException; /** * Action used to show details for imported members * @author luis */ public class ImportedMembersDetailsAction extends BaseQueryAction { private MemberImportService memberImportService; private DataBinder<ImportedMemberQuery> dataBinder; public DataBinder<ImportedMemberQuery> getDataBinder() { if (dataBinder == null) { final BeanBinder<ImportedMemberQuery> binder = BeanBinder.instance(ImportedMemberQuery.class); binder.registerBinder("memberImport", PropertyBinder.instance(MemberImport.class, "memberImport")); binder.registerBinder("status", PropertyBinder.instance(ImportedMemberQuery.Status.class, "status")); binder.registerBinder("lineNumber", PropertyBinder.instance(Integer.class, "lineNumber")); binder.registerBinder("nameOrUsername", PropertyBinder.instance(String.class, "nameOrUsername")); binder.registerBinder("pageParameters", DataBinderHelper.pageBinder()); dataBinder = binder; } return dataBinder; } @Inject public void setMemberImportService(final MemberImportService memberImportService) { this.memberImportService = memberImportService; } @Override protected void executeQuery(final ActionContext context, final QueryParameters queryParameters) { final HttpServletRequest request = context.getRequest(); final ImportedMemberQuery query = (ImportedMemberQuery) queryParameters; final List<ImportedMember> members = memberImportService.searchImportedMembers(query); request.setAttribute("importedMembers", members); } @Override protected QueryParameters prepareForm(final ActionContext context) { final HttpServletRequest request = context.getRequest(); final ImportedMembersDetailsForm form = context.getForm(); final ImportedMemberQuery query = getDataBinder().readFromString(form.getQuery()); final MemberImport memberImport = getFetchService().fetch(query.getMemberImport(), RelationshipHelper.nested(MemberImport.Relationships.ACCOUNT_TYPE, AccountType.Relationships.CURRENCY)); if (memberImport == null || query.getStatus() == null) { throw new ValidationException(); } query.setMemberImport(memberImport); // Check whether account type will be used final MemberAccountType accountType = memberImport.getAccountType(); if (accountType != null) { request.setAttribute("unitsPattern", accountType.getCurrency().getPattern()); request.setAttribute("hasCreditLimit", true); // Check whether the initial balance will be used if (memberImport.getInitialCreditTransferType() != null || memberImport.getInitialDebitTransferType() != null) { request.setAttribute("hasBalance", true); } } request.setAttribute("lowercaseStatus", query.getStatus().name().toLowerCase()); return query; } @Override protected boolean willExecuteQuery(final ActionContext context, final QueryParameters queryParameters) throws Exception { return true; } }
[ "mpr@touk.pl" ]
mpr@touk.pl
73ae937d05db5085251b62e4c259b07faf1200b6
329307375d5308bed2311c178b5c245233ac6ff1
/src/com/tencent/mm/d/a/an.java
3eb5e11333f78d5ad837a000b3ee794890f01967
[]
no_license
ZoneMo/com.tencent.mm
6529ac4c31b14efa84c2877824fa3a1f72185c20
dc4f28aadc4afc27be8b099e08a7a06cee1960fe
refs/heads/master
2021-01-18T12:12:12.843406
2015-07-05T03:21:46
2015-07-05T03:21:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
536
java
package com.tencent.mm.d.a; import com.tencent.mm.sdk.c.d; public final class an extends d { public static boolean atN = false; public static boolean atO = false; public a avj = new a(); public an() { id = "EmotionStateChange"; hXT = atO; } public static final class a { public String avk; public String avl; public int progress = 0; public int status = 0; } } /* Location: * Qualified Name: com.tencent.mm.d.a.an * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
bdabf7672f39f222a333588c4e6ed4fa038db47a
155e92092b8c14873cd53c730448d8ed3294ab70
/API/src/main/java/kodlamaio/hrms/api/controller/VerificationCodesController.java
7aa6f629d0972b04410cd325f009c428fc7b1c19
[]
no_license
omerbarutcu/Spring-React-HRMS
c553b41f7eb871617e4a79ac2660f76a09012f44
1aff318a8f98573efff417f2c5ac10bfc712c8d1
refs/heads/master
2023-05-12T04:14:29.132793
2021-06-02T00:34:53
2021-06-02T00:34:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,745
java
package kodlamaio.hrms.api.controller; import kodlamaio.hrms.business.abstracts.VerificationCodeService; import kodlamaio.hrms.core.utilities.results.DataResult; import kodlamaio.hrms.core.utilities.results.ErrorResult; import kodlamaio.hrms.core.utilities.results.Result; import kodlamaio.hrms.model.concretes.VerificationCode; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.util.UUID; @RestController @RequestMapping("/api/v1/verification-code") public class VerificationCodesController { private final VerificationCodeService verificationCodeService; @Autowired public VerificationCodesController(VerificationCodeService verificationCodeService) { this.verificationCodeService = verificationCodeService; } @GetMapping("/confirm/{uuid}/{code}") public ResponseEntity<Result> confirm(@PathVariable("uuid") UUID uuid, @PathVariable("code") String verificationCode){ ResponseEntity<DataResult<VerificationCode>> result = verificationCodeService.findByUserUuid(uuid); DataResult<VerificationCode> body = result.getBody(); if(body != null){ if(!body.isSuccess()){ return ResponseEntity.badRequest().body(new ErrorResult(body.getMessage())); } else if(body.getData().isConfirmed()){ return ResponseEntity.badRequest().body(new ErrorResult("Your account already confirmed.")); } else{ return verificationCodeService.confirm(body.getData(), verificationCode); } } else return ResponseEntity.badRequest().body(new ErrorResult("Error! Body is null")); } }
[ "furkannsahin.7@gmail.com" ]
furkannsahin.7@gmail.com
bdc636be092f3420f87bece4913458b731f0ba3f
4089d276380f9098fb115f2a6b1d51455b02be37
/src/main/java/com/atlassian/jira/rest/client/v2/model/PageBeanWorkflowTransitionRules.java
21d23ec259bdae7edfc901778bdf004f771f8f44
[]
no_license
amondnet/jira-client-v2
fe07367adff5ecc947f2ecba51fa6405b6628819
5fa44a3b935f22a71b419ee5e4f6a4c5405ecc82
refs/heads/main
2023-04-02T13:20:02.303411
2021-04-16T12:48:20
2021-04-16T12:48:20
358,596,693
0
0
null
null
null
null
UTF-8
Java
false
false
6,689
java
/* * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.atlassian.jira.rest.client.v2.model; import java.util.Objects; import java.util.Arrays; import com.atlassian.jira.rest.client.v2.model.WorkflowTransitionRules; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.net.URI; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; /** * A page of items. */ @ApiModel(description = "A page of items.") @JsonPropertyOrder({ PageBeanWorkflowTransitionRules.JSON_PROPERTY_SELF, PageBeanWorkflowTransitionRules.JSON_PROPERTY_NEXT_PAGE, PageBeanWorkflowTransitionRules.JSON_PROPERTY_MAX_RESULTS, PageBeanWorkflowTransitionRules.JSON_PROPERTY_START_AT, PageBeanWorkflowTransitionRules.JSON_PROPERTY_TOTAL, PageBeanWorkflowTransitionRules.JSON_PROPERTY_IS_LAST, PageBeanWorkflowTransitionRules.JSON_PROPERTY_VALUES }) @JsonTypeName("PageBeanWorkflowTransitionRules") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-04-16T21:45:04.339922+09:00[Asia/Seoul]") public class PageBeanWorkflowTransitionRules { public static final String JSON_PROPERTY_SELF = "self"; private URI self; public static final String JSON_PROPERTY_NEXT_PAGE = "nextPage"; private URI nextPage; public static final String JSON_PROPERTY_MAX_RESULTS = "maxResults"; private Integer maxResults; public static final String JSON_PROPERTY_START_AT = "startAt"; private Long startAt; public static final String JSON_PROPERTY_TOTAL = "total"; private Long total; public static final String JSON_PROPERTY_IS_LAST = "isLast"; private Boolean isLast; public static final String JSON_PROPERTY_VALUES = "values"; private List<WorkflowTransitionRules> values = null; /** * The URL of the page. * @return self **/ @javax.annotation.Nullable @ApiModelProperty(value = "The URL of the page.") @JsonProperty(JSON_PROPERTY_SELF) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public URI getSelf() { return self; } /** * If there is another page of results, the URL of the next page. * @return nextPage **/ @javax.annotation.Nullable @ApiModelProperty(value = "If there is another page of results, the URL of the next page.") @JsonProperty(JSON_PROPERTY_NEXT_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public URI getNextPage() { return nextPage; } /** * The maximum number of items that could be returned. * @return maxResults **/ @javax.annotation.Nullable @ApiModelProperty(value = "The maximum number of items that could be returned.") @JsonProperty(JSON_PROPERTY_MAX_RESULTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getMaxResults() { return maxResults; } /** * The index of the first item returned. * @return startAt **/ @javax.annotation.Nullable @ApiModelProperty(value = "The index of the first item returned.") @JsonProperty(JSON_PROPERTY_START_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getStartAt() { return startAt; } /** * The number of items returned. * @return total **/ @javax.annotation.Nullable @ApiModelProperty(value = "The number of items returned.") @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Long getTotal() { return total; } /** * Whether this is the last page. * @return isLast **/ @javax.annotation.Nullable @ApiModelProperty(value = "Whether this is the last page.") @JsonProperty(JSON_PROPERTY_IS_LAST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Boolean getIsLast() { return isLast; } /** * The list of items. * @return values **/ @javax.annotation.Nullable @ApiModelProperty(value = "The list of items.") @JsonProperty(JSON_PROPERTY_VALUES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public List<WorkflowTransitionRules> getValues() { return values; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } PageBeanWorkflowTransitionRules pageBeanWorkflowTransitionRules = (PageBeanWorkflowTransitionRules) o; return Objects.equals(this.self, pageBeanWorkflowTransitionRules.self) && Objects.equals(this.nextPage, pageBeanWorkflowTransitionRules.nextPage) && Objects.equals(this.maxResults, pageBeanWorkflowTransitionRules.maxResults) && Objects.equals(this.startAt, pageBeanWorkflowTransitionRules.startAt) && Objects.equals(this.total, pageBeanWorkflowTransitionRules.total) && Objects.equals(this.isLast, pageBeanWorkflowTransitionRules.isLast) && Objects.equals(this.values, pageBeanWorkflowTransitionRules.values); } @Override public int hashCode() { return Objects.hash(self, nextPage, maxResults, startAt, total, isLast, values); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PageBeanWorkflowTransitionRules {\n"); sb.append(" self: ").append(toIndentedString(self)).append("\n"); sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n"); sb.append(" maxResults: ").append(toIndentedString(maxResults)).append("\n"); sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); sb.append(" isLast: ").append(toIndentedString(isLast)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "amond@amond.net" ]
amond@amond.net
cfcd9d8c7fa071bd70c73f8f0cd78d783b66e803
a006be286d4482aecf4021f62edd8dd9bb600040
/src/main/java/com/alipay/api/domain/AlipayDataItemVoucherTemplete.java
b8a8bb358a1b415d1f68522efc487051f17300ce
[]
no_license
zero-java/alipay-sdk
16e520fbd69974f7a7491919909b24be9278f1b1
aac34d987a424497d8e8b1fd67b19546a6742132
refs/heads/master
2021-07-19T12:34:20.765988
2017-12-13T07:43:24
2017-12-13T07:43:24
96,759,166
0
0
null
2017-07-25T02:02:45
2017-07-10T09:20:13
Java
UTF-8
Java
false
false
5,331
java
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 商品券模板(数据) * * @author auto create * @since 1.0, 2016-10-26 17:43:39 */ public class AlipayDataItemVoucherTemplete extends AlipayObject { private static final long serialVersionUID = 5871452818698931649L; /** * 延迟生效时间(手动领取条件下,可跟valid_period组合使用) */ @ApiField("delay_minute") private Long delayMinute; /** * 券使用规则描述,包括描述标题及描述内容列表 */ @ApiListField("desc_details") @ApiField("alipay_data_item_description") private List<AlipayDataItemDescription> descDetails; /** * 折扣率,填写0~1间的小数且不包括0和1,如八折则传入0.8 */ @ApiField("discount_rate") private String discountRate; /** * 外部单品列表 */ @ApiField("external_goods_list") private AlipayDataItemGoodsList externalGoodsList; /** * 使用时间规则,控制商品的生效时间 */ @ApiField("limit_period_info_list") private AlipayDataItemLimitPeriodInfo limitPeriodInfoList; /** * 商品原金额,只有单品代金券有,丽人行业需要填写此字段 */ @ApiField("original_amount") private String originalAmount; /** * 券原折扣 */ @ApiField("original_rate") private String originalRate; /** * 单品代金券中的减至金额 */ @ApiField("reduce_to_amount") private String reduceToAmount; /** * 折扣金额取整规则 AUTO_ROUNDING_YUAN:自动抹零到元 AUTO_ROUNDING_JIAO:自动抹零到角 ROUNDING_UP_YUAN:四舍五入到元 ROUNDING_UP_JIAO:四舍五入到角 */ @ApiField("rounding_rule") private String roundingRule; /** * 起步数量,用于指定可享受优惠的起步单品购买数量 */ @ApiField("threshold_amount") private String thresholdAmount; /** * 起步数量,用于指定可享受优惠的起步单品购买数量 */ @ApiField("threshold_quantity") private String thresholdQuantity; /** * 领券之后多长时间内可以核销,单位:分钟,传入数值需大于1440(一天) */ @ApiField("valid_period") private Long validPeriod; /** * 价值金额 CASH类型为代金券金额 DISCOUNT类型为优惠封顶金额 */ @ApiField("value_amount") private String valueAmount; /** * 券的描述信息,目前客户端将统一展示“折扣须知” */ @ApiField("voucher_desc") private String voucherDesc; /** * 券类型:单品代金券为CASH类型,全场折扣券为DISCOUNT类型 */ @ApiField("voucher_type") private String voucherType; public Long getDelayMinute() { return this.delayMinute; } public void setDelayMinute(Long delayMinute) { this.delayMinute = delayMinute; } public List<AlipayDataItemDescription> getDescDetails() { return this.descDetails; } public void setDescDetails(List<AlipayDataItemDescription> descDetails) { this.descDetails = descDetails; } public String getDiscountRate() { return this.discountRate; } public void setDiscountRate(String discountRate) { this.discountRate = discountRate; } public AlipayDataItemGoodsList getExternalGoodsList() { return this.externalGoodsList; } public void setExternalGoodsList(AlipayDataItemGoodsList externalGoodsList) { this.externalGoodsList = externalGoodsList; } public AlipayDataItemLimitPeriodInfo getLimitPeriodInfoList() { return this.limitPeriodInfoList; } public void setLimitPeriodInfoList(AlipayDataItemLimitPeriodInfo limitPeriodInfoList) { this.limitPeriodInfoList = limitPeriodInfoList; } public String getOriginalAmount() { return this.originalAmount; } public void setOriginalAmount(String originalAmount) { this.originalAmount = originalAmount; } public String getOriginalRate() { return this.originalRate; } public void setOriginalRate(String originalRate) { this.originalRate = originalRate; } public String getReduceToAmount() { return this.reduceToAmount; } public void setReduceToAmount(String reduceToAmount) { this.reduceToAmount = reduceToAmount; } public String getRoundingRule() { return this.roundingRule; } public void setRoundingRule(String roundingRule) { this.roundingRule = roundingRule; } public String getThresholdAmount() { return this.thresholdAmount; } public void setThresholdAmount(String thresholdAmount) { this.thresholdAmount = thresholdAmount; } public String getThresholdQuantity() { return this.thresholdQuantity; } public void setThresholdQuantity(String thresholdQuantity) { this.thresholdQuantity = thresholdQuantity; } public Long getValidPeriod() { return this.validPeriod; } public void setValidPeriod(Long validPeriod) { this.validPeriod = validPeriod; } public String getValueAmount() { return this.valueAmount; } public void setValueAmount(String valueAmount) { this.valueAmount = valueAmount; } public String getVoucherDesc() { return this.voucherDesc; } public void setVoucherDesc(String voucherDesc) { this.voucherDesc = voucherDesc; } public String getVoucherType() { return this.voucherType; } public void setVoucherType(String voucherType) { this.voucherType = voucherType; } }
[ "443683059a" ]
443683059a
69a7cd4bf88dfe7cd3b11a8a7674ab281c452c76
4b027a96e457f90fdd146c73a92a99a63b5f6cab
/level37/lesson04/big01/male/MaleFactory.java
0aec1465676c10866439423313c13ef0ec3fafd2
[]
no_license
Byshevsky/JavaRush
c44a3b25afca677bbe5b6c015aec7c2561ca4830
d8965bc8b5f060af558cc86924ae6488727cdbd4
refs/heads/master
2021-05-02T12:17:48.896494
2016-12-26T21:56:12
2016-12-26T21:56:12
52,143,706
1
0
null
null
null
null
UTF-8
Java
false
false
509
java
package com.javarush.test.level37.lesson04.big01.male; import com.javarush.test.level37.lesson04.big01.AbstractFactory; import com.javarush.test.level37.lesson04.big01.Human; /** * Created by IGOR on 31.01.2016. */ public class MaleFactory implements AbstractFactory { public Human getPerson(int age) { if (age <= KidBoy.MAX_AGE) return new KidBoy(); else if (age > KidBoy.MAX_AGE && age <= TeenBoy.MAX_AGE) return new TeenBoy(); else return new Man(); } }
[ "igberda2011@gmail.com" ]
igberda2011@gmail.com
0309853e1839bb362d8dcf067d340a08c4a93b28
a873a0a9cb2cbeccd40e1a903cf3542cc0758603
/src/truco/plugin/cardlist/couro/comum/FrascoDaMaldicao.java
01755c3dcede70ed6fe5eeac12bfeb78e78f0397
[]
no_license
FeldmannJR/CardWars
889690e7a79596846ba073ad4a6927669f2540b8
c0d9a0ab8f3d97e957be42276089899bb3af9669
refs/heads/master
2021-09-07T11:10:17.129193
2018-02-22T03:01:12
2018-02-22T03:01:12
110,623,615
0
1
null
null
null
null
UTF-8
Java
false
false
1,126
java
/* * Nao roba não moço eu fiz isso * Tem Direitos Autoriais Aqui Cuidado! * Espero que os troxas acreditem ops. */ package truco.plugin.cardlist.couro.comum; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.Potion; import org.bukkit.potion.PotionType; import truco.plugin.cards.Carta.Raridade; import truco.plugin.cards.Carta.Armadura; import truco.plugin.cards.Carta; /** * * @author Carlos André Feldmann Júnior */ public class FrascoDaMaldicao extends Carta { @Override public Raridade getRaridade() { return Raridade.COMUM; } @Override public String getNome() { return "Frasco Da Maldicao"; } @Override public String[] getDesc() { return new String[]{"+ 2 poçoes de dano instantaneo"}; } @Override public ItemStack[] getItems() { Potion s = new Potion(PotionType.INSTANT_DAMAGE); s.setSplash(true); return new ItemStack[]{s.toItemStack(2)}; } @Override public Armadura getArmadura() { return Armadura.LEATHER; } }
[ "feldmannjunior@gmail.com" ]
feldmannjunior@gmail.com
f2a4da6b3179d3541b5fb3d06106e29dab7b7610
e0512e5f562e3665397b4475c6ae2f86762da863
/framework/tenio-common/src/main/java/com/tenio/common/data/ZeroObject.java
e665987de62b4d82bc6587f3605eaf0971d9a2bb
[ "MIT" ]
permissive
yuruyigit/tenio
bfab3a6c6bc0559df07e4bb1ded7eb248e65973b
10de296d0ea8bd70dd5dcd7e518e12cb47e12519
refs/heads/master
2023-06-08T13:36:54.448213
2021-07-01T23:08:00
2021-07-01T23:08:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,394
java
/* The MIT License Copyright (c) 2016-2021 kong <congcoi123@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package com.tenio.common.data; import java.util.Collection; import java.util.Iterator; import java.util.Set; import java.util.Map.Entry; import com.tenio.common.data.elements.ZeroData; public interface ZeroObject extends ZeroElement { boolean isNull(String key); boolean containsKey(String key); boolean removeElement(String key); Set<String> getKeys(); Iterator<Entry<String, ZeroData>> iterator(); Boolean getBoolean(String key); Byte getByte(String key); Short getShort(String key); Integer getInteger(String key); Long getLong(String key); Float getFloat(String key); Double getDouble(String key); String getString(String key); ZeroArray getZeroArray(String key); ZeroObject getZeroObject(String key); ZeroData getZeroData(String key); ZeroObject putNull(String key); ZeroObject putBoolean(String key, boolean element); ZeroObject putByte(String key, byte element); ZeroObject putShort(String key, short element); ZeroObject putInteger(String key, int element); ZeroObject putLong(String key, long element); ZeroObject putFloat(String key, float element); ZeroObject putDouble(String key, double element); ZeroObject putString(String key, String element); ZeroObject putZeroArray(String key, ZeroArray element); ZeroObject putZeroObject(String key, ZeroObject element); ZeroObject putZeroData(String key, ZeroData data); Collection<Boolean> getBooleanArray(String key); byte[] getByteArray(String key); Collection<Short> getShortArray(String key); Collection<Integer> getIntegerArray(String key); Collection<Long> getLongArray(String key); Collection<Float> getFloatArray(String key); Collection<Double> getDoubleArray(String key); Collection<String> getStringArray(String key); ZeroObject putBooleanArray(String key, Collection<Boolean> element); ZeroObject putByteArray(String key, byte[] element); ZeroObject putShortArray(String key, Collection<Short> element); ZeroObject putIntegerArray(String key, Collection<Integer> element); ZeroObject putLongArray(String key, Collection<Long> element); ZeroObject putFloatArray(String key, Collection<Float> element); ZeroObject putDoubleArray(String key, Collection<Double> element); ZeroObject putStringArray(String key, Collection<String> element); }
[ "congcoi123@gmail.com" ]
congcoi123@gmail.com
02026f6c192688f4dd94ce6ff9af19fbdca96134
98779c054da77b139a91357894ff1e9fa63ea802
/be/java/basic/code18/Student.java
6862796db5c99a36b0e4d8aaeb6dab02f6aa36a6
[]
no_license
pengfen/learn17
0e384d700426bfedd732c01bcd0665fd897f0c97
744a82908c9921365a4f7c983d3f3d0651944224
refs/heads/master
2021-09-16T05:41:25.889434
2018-06-17T10:06:14
2018-06-17T10:06:14
112,165,893
2
2
null
null
null
null
UTF-8
Java
false
false
1,062
java
package com.test; public class Student { private String name; private int age; public Student() { super(); } public Student(String name, int age) { super(); this.name = name; this.age = age; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + age; result = prime * result + ((name == null) ? 0 : name.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Student other = (Student) obj; if (age != other.age) return false; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return false; return true; } }
[ "caopeng8787@163.com" ]
caopeng8787@163.com
e795bc4328d05faea0eedfb67f6d1bbb29894c46
1b50fe1118a908140b6ba844a876ed17ad026011
/core/src/main/java/org/narrative/network/customizations/narrative/service/api/model/input/RequestRedemptionInput.java
a3b6db4b29007c5785d850b02df7c934fe4ef90c
[ "MIT" ]
permissive
jimador/narrative
a6df67a502a913a78cde1f809e6eb5df700d7ee4
84829f0178a0b34d4efc5b7dfa82a8929b5b06b5
refs/heads/master
2022-04-08T13:50:30.489862
2020-03-07T15:12:30
2020-03-07T15:12:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,426
java
package org.narrative.network.customizations.narrative.service.api.model.input; import org.narrative.network.customizations.narrative.NrveValue; import lombok.Data; import lombok.experimental.FieldNameConstants; import org.springframework.validation.annotation.Validated; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; /** * Date: 2019-07-01 * Time: 15:59 * * @author jonmark */ @Data @Validated @FieldNameConstants public class RequestRedemptionInput extends UpdateProfileAccountConfirmationInputBase { private final NrveValue redemptionAmount; private final NrveUsdPriceInput nrveUsdPrice; public RequestRedemptionInput( @NotEmpty String currentPassword, Integer twoFactorAuthCode, @NotNull NrveValue redemptionAmount, @NotNull NrveUsdPriceInput nrveUsdPrice ) { super(currentPassword, twoFactorAuthCode); this.redemptionAmount = redemptionAmount; this.nrveUsdPrice = nrveUsdPrice; } /** * bl: Lombok will add the field name constants to this class, but i'm defining them explicitly * so that we have inheritance of Fields from superclasses (and subclasses can use it accordingly) * lombok feature request: https://github.com/rzwitserloot/lombok/issues/2090 */ public static class Fields extends UpdateProfileAccountConfirmationInputBase.Fields {} }
[ "brian@narrative.org" ]
brian@narrative.org
99e7b5c76b31a96fe75a664b44f376d971c22232
651e9568ecc56bd71d6401074eb43fe072b2e363
/JAVA/Configuracion/Ejemplo10/src/ejemplo10/Ejemplo10.java
82b69c926df768b5f57523625f2cef43e0760c22
[]
no_license
SENA-CLASS/595885G1_TRIM3-4
b067c07993178b9af32d8f641cc7ffd5ebf9a75a
03b1187f00125e7c1033b5df296ea5add9d20094
refs/heads/master
2022-12-21T22:54:01.050857
2015-03-03T15:36:37
2015-03-03T15:36:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
433
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 ejemplo10; /** * * @author Enrique Moreno */ public class Ejemplo10 { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here } }
[ "hemoreno33@misena.edu.co" ]
hemoreno33@misena.edu.co
be1e83687ee827dda5bcddcf5649a154ef6b51b6
ce52038047763d5932b3a373e947e151e6f3d168
/ASPMM-emftext/ASPMM.resource.ASPMM/src-gen/ASPMM/resource/ASPMM/grammar/ASPMMSyntaxElement.java
9ce2b4cfc3b368e6826184b929801e26db44157c
[]
no_license
rominaeramo/JTLframework
f6d506d117ab6c1f8c0dc83a72f8f00eb31c862b
5371071f63d8f951f532eed7225fb37656404cae
refs/heads/master
2021-01-21T13:25:24.999553
2016-05-12T15:32:27
2016-05-12T15:32:27
47,969,148
1
0
null
null
null
null
UTF-8
Java
false
false
1,446
java
/** * <copyright> * </copyright> * * */ package ASPMM.resource.ASPMM.grammar; /** * The abstract super class for all elements of a grammar. This class provides * methods to traverse the grammar rules. */ public abstract class ASPMMSyntaxElement { private ASPMMSyntaxElement[] children; private ASPMMSyntaxElement parent; private ASPMM.resource.ASPMM.grammar.ASPMMCardinality cardinality; public ASPMMSyntaxElement(ASPMM.resource.ASPMM.grammar.ASPMMCardinality cardinality, ASPMMSyntaxElement[] children) { this.cardinality = cardinality; this.children = children; if (this.children != null) { for (ASPMMSyntaxElement child : this.children) { child.setParent(this); } } } /** * Sets the parent of this syntax element. This method must be invoked at most * once. */ public void setParent(ASPMMSyntaxElement parent) { assert this.parent == null; this.parent = parent; } /** * Returns the parent of this syntax element. This parent is determined by the * containment hierarchy in the CS model. */ public ASPMMSyntaxElement getParent() { return parent; } public ASPMMSyntaxElement[] getChildren() { if (children == null) { return new ASPMMSyntaxElement[0]; } return children; } public org.eclipse.emf.ecore.EClass getMetaclass() { return parent.getMetaclass(); } public ASPMM.resource.ASPMM.grammar.ASPMMCardinality getCardinality() { return cardinality; } }
[ "r.eramo@gmail.com" ]
r.eramo@gmail.com
d9b60ea1791802d6571c8008846d31423164f86d
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/1/1_6e77a32d9fd2c862e7b46cc7674182b13ca6b781/MessagesRenderTestCase/1_6e77a32d9fd2c862e7b46cc7674182b13ca6b781_MessagesRenderTestCase_s.java
3cde3a6082825b65eb72ab4e648cc23e4b282b8b
[]
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
5,786
java
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package com.sun.faces.render; import com.gargoylesoftware.htmlunit.html.HtmlPage; import com.sun.faces.htmlunit.HtmlUnitFacesTestCase; import junit.framework.Test; import junit.framework.TestSuite; public class MessagesRenderTestCase extends HtmlUnitFacesTestCase { public MessagesRenderTestCase(String name) { super(name); } /** * Set up instance variables required by this test case. */ public void setUp() throws Exception { super.setUp(); } /** * Return the tests included in this test suite. */ public static Test suite() { return (new TestSuite(MessagesRenderTestCase.class)); } /** * Tear down instance variables required by this test case. */ public void tearDown() { super.tearDown(); } public void testMessagesToolTip() throws Exception { HtmlPage page = getPage("/faces/messages.xhtml"); String pageXml = page.asXml().replaceAll("\n",""); pageXml = pageXml.replaceAll("\t",""); String case1 = "<!-- Case 1: Expected output: Both summary and detail rendered. --> <ul> <li> This is the summary This is the detail </li> <li> This is the summary This is the detail </li> </ul>"; String case2 = "<!-- Case 2: Expected output: Both summary and detail rendered. Tooltip detail rendered. --> <ul> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary This is the detail </span> </li> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary This is the detail </span> </li> </ul>"; String case3 = "<!-- Case 3: Expected output: Both summary and detail rendered. Tooltip detail rendered. --> <ul> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary This is the detail </span> </li> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary This is the detail </span> </li> </ul>"; String case4 = "<!-- Case 4: Expected output: Summary rendered. Tooltip detail rendered. --> <ul> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary </span> </li> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary </span> </li> </ul>"; String case5 = "<!-- Case 5: Expected output: Summary rendered. Tooltip detail rendered. --> <ul> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary </span> </li> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary </span> </li> </ul>"; String case6 = "<!-- Case 6: Expected output: Summary rendered. Tooltip detail rendered. --> <ul> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary </span> </li> <li> <span title=" + '"' + "This is the detail" + '"' + "> This is the summary </span> </li> </ul>"; assertTrue(-1 != pageXml.indexOf(case1)); assertTrue(-1 != pageXml.indexOf(case2)); assertTrue(-1 != pageXml.indexOf(case3)); assertTrue(-1 != pageXml.indexOf(case4)); assertTrue(-1 != pageXml.indexOf(case5)); assertTrue(-1 != pageXml.indexOf(case6)); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
2ca0860588bdb35b28137df68dfc59bb059a41d6
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/branches/splunk/toolkit-express-impl/src/main/java/com/terracotta/toolkit/api/TerracottaToolkitFactoryService.java
0ee63c83969d7dbec09a73141cfab2f5a4738b85
[]
no_license
sirinath/Terracotta
fedfc2c4f0f06c990f94b8b6c3b9c93293334345
00a7662b9cf530dfdb43f2dd821fa559e998c892
refs/heads/master
2021-01-23T05:41:52.414211
2015-07-02T15:21:54
2015-07-02T15:21:54
38,613,711
1
0
null
null
null
null
UTF-8
Java
false
false
6,604
java
/* * All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. */ package com.terracotta.toolkit.api; import org.terracotta.toolkit.Toolkit; import org.terracotta.toolkit.ToolkitInstantiationException; import org.terracotta.toolkit.api.ToolkitFactoryService; import com.terracotta.toolkit.client.TerracottaClientConfig; import com.terracotta.toolkit.client.TerracottaClientConfigParams; import com.terracotta.toolkit.client.TerracottaToolkitCreator; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.Properties; import java.util.Set; public class TerracottaToolkitFactoryService implements ToolkitFactoryService { private final static String TERRACOTTA_TOOLKIT_TYPE = "terracotta"; private final static String NON_STOP_TERRACOTTA_TOOLKIT_TYPE = "nonstop-terracotta"; private static final String TUNNELLED_MBEAN_DOMAINS_KEY = "tunnelledMBeanDomains"; private static final String TC_CONFIG_SNIPPET_KEY = "tcConfigSnippet"; private static final String REJOIN_KEY = "rejoin"; private static final Properties EMPTY_PROPERTIES = new Properties(); @Override public boolean canHandleToolkitType(String type, String subName) { return TERRACOTTA_TOOLKIT_TYPE.equals(type) || NON_STOP_TERRACOTTA_TOOLKIT_TYPE.equals(type); } @Override public Toolkit createToolkit(String type, String subName, Properties properties) throws ToolkitInstantiationException { properties = properties == null ? EMPTY_PROPERTIES : properties; if (!canHandleToolkitType(type, subName)) { // throw new ToolkitInstantiationException("Cannot handle toolkit of type: " + type + ", subName: " + subName); } try { return createToolkit(createTerracottaClientConfig(type, subName, properties)); } catch (Throwable t) { if (t instanceof ToolkitInstantiationException) { throw (ToolkitInstantiationException) t; } else { throw new ToolkitInstantiationException(t); } } } /** * Overridden by enterprise to create enterprise toolkit */ protected Toolkit createToolkit(TerracottaClientConfig config) { return new TerracottaToolkitCreator(config, false).createToolkit(); } private TerracottaClientConfig createTerracottaClientConfig(String type, String subName, Properties properties) throws ToolkitInstantiationException { String tcConfigSnippet = properties.getProperty(TC_CONFIG_SNIPPET_KEY, ""); final String terracottaUrlOrConfig; final boolean isUrl; if (tcConfigSnippet == null || tcConfigSnippet.trim().equals("")) { // if no tcConfigSnippet, assume url terracottaUrlOrConfig = getTerracottaUrlFromSubName(subName); isUrl = true; } else { terracottaUrlOrConfig = tcConfigSnippet; isUrl = false; } Set<String> tunnelledMBeanDomains = getTunnelledMBeanDomains(properties); return new TerracottaClientConfigParams().tcConfigSnippetOrUrl(terracottaUrlOrConfig).isUrl(isUrl) .tunnelledMBeanDomains(tunnelledMBeanDomains).rejoin(isRejoinEnabled(properties)) .nonStopEnabled(isNonStopEnabled(type)).newTerracottaClientConfig(); } private boolean isNonStopEnabled(String type) { return type.equals(NON_STOP_TERRACOTTA_TOOLKIT_TYPE); } private boolean isRejoinEnabled(Properties properties) { if (properties == null || properties.size() == 0) { return false; } String rejoin = properties.getProperty(REJOIN_KEY); return "true".equals(rejoin); } private String getTerracottaUrlFromSubName(String subName) throws ToolkitInstantiationException { StringBuilder tcUrl = new StringBuilder(); // toolkitUrl is of form: 'toolkit:terracotta://server:tsa-port' if (subName == null || !subName.startsWith("//")) { // throw new ToolkitInstantiationException( "'subName' in toolkitUrl for toolkit type 'terracotta' should start with '//', " + "and should be of form: 'toolkit:terracotta://server:tsa-port' - " + subName); } String terracottaUrl = subName.substring(2); // terracottaUrl can only be form of server:port, or a csv of same if (terracottaUrl == null || terracottaUrl.equals("")) { // throw new ToolkitInstantiationException( "toolkitUrl should be of form: 'toolkit:terracotta://server:tsa-port', server:port not specified after 'toolkit:terracotta://' in toolkitUrl - " + subName); } // ignore last comma, if any terracottaUrl = terracottaUrl.trim(); String[] serverPortTokens = terracottaUrl.split(","); for (String serverPortToken : serverPortTokens) { if (serverPortToken.equals("")) { continue; } String[] tokens = serverPortToken.split(":"); if (tokens.length != 2) { // throw new ToolkitInstantiationException( "toolkitUrl should be of form: 'toolkit:terracotta://server:tsa-port', invalid server:port specified - '" + serverPortToken + "'"); } if (!isValidInteger(tokens[1])) { // throw new ToolkitInstantiationException( "toolkitUrl should be of form: 'toolkit:terracotta://server:tsa-port', invalid server:port specified in token - '" + serverPortToken + "', 'port' is not a valid integer - " + tokens[1]); } tcUrl.append(tokens[0] + ":"); tcUrl.append(tokens[1] + ","); } tcUrl.deleteCharAt(tcUrl.lastIndexOf(",")); return tcUrl.toString(); } private boolean isValidInteger(String value) { try { Integer.parseInt(value); } catch (Exception e) { return false; } return true; } private static Set<String> getTunnelledMBeanDomains(Properties properties) { if (properties == null || properties.size() == 0) { return Collections.EMPTY_SET; } String domainsCSV = properties.getProperty(TUNNELLED_MBEAN_DOMAINS_KEY); if (domainsCSV == null || domainsCSV.equals("")) { return Collections.EMPTY_SET; } return Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(domainsCSV.split(",")))); } }
[ "amaheshw@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
amaheshw@7fc7bbf3-cf45-46d4-be06-341739edd864
3f8e7db2d0d02b696203392606e9f535b718da0b
ed542c0a304553491ba07d0be047beef863c70b4
/REPOSITORY/dmt-mobile/dmt-component/src/main/java/id/co/zisal/dmt_component/ui/handler/login/ILoginHandler.java
b949d8fcc6a30190c000c09de6d37e7e6f387eca
[]
no_license
wissensalt/drive-me-there
4b445ba80b0584f885421cd76959409a4d2635ea
dc5e91e048e257ac61da162bc6a2603f76ac3193
refs/heads/master
2021-07-25T07:03:47.868062
2017-11-03T03:53:20
2017-11-03T03:53:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
753
java
package id.co.zisal.dmt_component.ui.handler.login; import android.content.Context; import android.widget.EditText; /** * Created on 9/30/2015 : 5:42 PM. * * @author <a href="mailto:fauzi.knightmaster.achmad@gmail.com">Achmad Fauzi</a> * * Handling login screen * @param <SUCCESS> */ public interface ILoginHandler<SUCCESS> extends ILogin{ /** * Getting context from Login Activity * @return Context */ Context getContext(); /** * Getting EditText for user name * @return EditText */ EditText getTxtUserName(); /** * Getting EditText for password * @return EditText */ EditText getTxtPassword(); Class<SUCCESS> getSuccessClass(); }
[ "fauzi.knightmaster.achmad@gmail.com" ]
fauzi.knightmaster.achmad@gmail.com
4ec451f7dd0a7c69770917de74a2febafaa9bbc2
62efa3f5038377c804d60445d154eb1a9ac1f315
/customview/src/main/java/com/hansheng/customview/CustomView.java
f8183f728a92bb838bf964c41ad6e5158a1c5c40
[ "Apache-2.0" ]
permissive
MrWu94/AndroidNoteX
5a3122704e3968c6e47c9ac7f3c68da3a3dd32ff
b8d837582d23356a81aaa53e95adfcb4b2a6f715
refs/heads/master
2021-07-16T01:53:56.612465
2017-10-23T13:12:18
2017-10-23T13:12:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,218
java
package com.hansheng.customview; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.View; import android.view.ViewGroup; /** * Created by hansheng on 2016/7/4. * 每个View都包含一个ViewGroup.LayoutParams类或者其派生类,LayoutParams中包含了View和它的父View之间的关系,而View大小正是View和它的父View共同决定的。 */ public class CustomView extends ViewGroup{ private static final String TAG="CustomView"; public CustomView(Context context) { super(context); } public CustomView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { int childCount=getChildCount(); int height=0; for(int i=0;i<childCount;i++){ View child=getChildAt(i); if(child.getVisibility()==GONE){ continue; } child.layout(l,height,l+child.getMeasuredWidth(),t+height+child.getMeasuredHeight()); height+=child.getMeasuredHeight(); Log.d(TAG, "onLayout: i:" + i + ",width:" + child.getMeasuredWidth() + ",height:" + child.getMeasuredHeight()); } } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int height = 0;//group的计算高度 int width = 0;//宽度 int heightSize=MeasureSpec.getSize(heightMeasureSpec); int heightMode=MeasureSpec.getMode(heightMeasureSpec); int widthSize=MeasureSpec.getSize(widthMeasureSpec); int widthMode=MeasureSpec.getMode(heightMeasureSpec); int childcount=getChildCount(); for(int i=0;i<childcount;i++){ View child=getChildAt(i); //gone 的就无视掉 if(child.getVisibility()==GONE){ continue; } // Log.d(TAG, "onMeasure: i=:" + i + ",width1=:" + child.getMeasuredWidth() + ",height1=:" + child.getMeasuredHeight()); //根据LayoutParams,给子View生成MeasureSpec规则 LayoutParams lp=child.getLayoutParams(); int widthSpec=0; int heightSpec=0; if(lp.width==LayoutParams.WRAP_CONTENT){ widthSpec=MeasureSpec.makeMeasureSpec(widthSize,MeasureSpec.AT_MOST); }else if(lp.width==LayoutParams.MATCH_PARENT){ widthSpec=MeasureSpec.makeMeasureSpec(widthSize,MeasureSpec.EXACTLY); }else { widthSpec=MeasureSpec.makeMeasureSpec(lp.width,MeasureSpec.EXACTLY); } if(lp.height==LayoutParams.WRAP_CONTENT){ heightSpec=MeasureSpec.makeMeasureSpec(heightSize,MeasureSpec.AT_MOST); }else if(lp.height==LayoutParams.MATCH_PARENT){ heightSpec=MeasureSpec.makeMeasureSpec(heightSize,MeasureSpec.EXACTLY); }else { heightSpec=MeasureSpec.makeMeasureSpec(lp.height,MeasureSpec.EXACTLY); } child.measure(widthSpec,heightSpec); //把所有的子View的高度加起来,就是高度 height+=child.getMeasuredHeight(); // 拿子View中的最大宽度当自己的宽度,保证所有子View能够显示全 width+=Math.max(width,child.getMeasuredWidth()); Log.d(TAG, "onMeasure: i:" + i + ",width:" + child.getMeasuredWidth() + ",height:" + child.getMeasuredHeight()); } // 再根据父view给自己的spec,处理自己的宽高 // 这里没有显式处理Unspecified,其实已经计算了宽高,当做UNSPECIFIED的值了 if(widthMode==MeasureSpec.EXACTLY){ width=widthSize; } else if (widthMode==MeasureSpec.AT_MOST){ width=Math.min(width,widthSize); } if(heightMode==MeasureSpec.EXACTLY){ height=heightSize; }else if(heightSize==MeasureSpec.AT_MOST){ height=Math.min(height,heightSize); } setMeasuredDimension(width,height); Log.d(TAG, "onMeasure: height" + getMeasuredHeight() + ";width:" + getMeasuredWidth()); } }
[ "shenghanming@gmai.com" ]
shenghanming@gmai.com
7b125bcf4a8418a5953f973554a5a6a47dcd35f2
4e89d371a5f8cca3c5c7e426af1bcb7f1fc4dda3
/java/explain_java/chapter04/04_printf_function/PrintfTester.java
537d67c1bb2b7d28f4ca3c87ef4f1eaec23c7c00
[]
no_license
bodii/test-code
f2a99450dd3230db2633a554fddc5b8ee04afd0b
4103c80d6efde949a4d707283d692db9ffac4546
refs/heads/master
2023-04-27T16:37:36.685521
2023-03-02T08:38:43
2023-03-02T08:38:43
63,114,995
4
1
null
2023-04-17T08:28:35
2016-07-12T01:29:24
Go
UTF-8
Java
false
false
823
java
// System.out.printf的测试程序 class PrintfTester { public static void main(String[] args) { System.out.printf("%d\n", 12345); System.out.printf("%3d\n", 12345); System.out.printf("%7d\n", 12345); System.out.println(); System.out.printf("%5d\n", 123); System.out.printf("%05d\n", 123); System.out.println(); System.out.printf("%d\n", 13579); System.out.printf("%o\n", 13579); System.out.printf("%x\n", 13579); System.out.printf("%X\n", 13579); System.out.println(); System.out.printf("%f\n", 123.45); System.out.printf("%15f\n", 123.45); System.out.printf("%9.2f\n", 123.45); System.out.println(); System.out.printf("XYZ\n"); System.out.printf("%s\n", "ABCDE"); System.out.printf("%3s\n", "ABCDE"); System.out.printf("%10s\n", "ABCDE"); System.out.println(); } }
[ "1401097251@qq.com" ]
1401097251@qq.com
770fe8ce8372f050c897268b2634cc5c7b2bdcd9
5288da77b533560541d486358aa6c20fed259df0
/BugDiss/app/src/main/java/com/huawei/bugdiss/Crime.java
0c72ef8ba4c8be1061324228ca52dd2d171d3ee0
[]
no_license
Kevin-SJW/BugDiss
fd9fda84fb0c948e6a3e9b824cfe8af42bd2f9ab
05585dc8cd1154b5ed451ca36eaaf4a6490e1991
refs/heads/master
2022-12-02T13:57:55.313493
2020-08-16T14:06:36
2020-08-16T14:06:36
287,954,737
0
0
null
null
null
null
UTF-8
Java
false
false
1,389
java
package com.huawei.bugdiss; import java.util.Date; import java.util.UUID; /** * Created by shi on 2020/8/16. */ public class Crime { private UUID mId; private String mTitle; private Date mDate; private boolean mSolved; private String mSuspect; private boolean mRequirePolice; public Crime() { this(UUID.randomUUID()); } public Crime(UUID id) { mId = id; mDate = new Date(); } public String getPhotoFilename() { return "IMG_" + getId().toString() + ".jpg"; } public UUID getId() { return mId; } public void setId(UUID id) { mId = id; } public String getTitle() { return mTitle; } public void setTitle(String title) { mTitle = title; } public Date getDate() { return mDate; } public void setDate(Date date) { mDate = date; } public boolean isSolved() { return mSolved; } public void setSolved(boolean solved) { mSolved = solved; } public String getSuspect() { return mSuspect; } public void setSuspect(String suspect) { mSuspect = suspect; } public boolean isRequirePolice() { return mRequirePolice; } public void setRequirePolice(boolean mRequiresPolice) { mRequirePolice = mRequiresPolice; } }
[ "shijianweicisco@163.com" ]
shijianweicisco@163.com
e06387bdcef2b515f83bc4af8b4f2e434fa21816
6a57764caa0c2652ee2334c3e9ce74536db248d7
/GeneticBase/src/genetic/component/expression/function/ExpressionFunctionFactory.java
bf508610fcf919e42504691f263061c01e3f5885
[]
no_license
calvinashmore/painter
2da46d3b7f55b4bae849d645cafee74fea2ae50d
bb25d9cb02ecb347e13e96247e11fcbb14290116
refs/heads/master
2021-03-12T23:59:20.720280
2011-09-22T17:28:56
2011-09-22T17:28:56
26,514,507
1
0
null
null
null
null
UTF-8
Java
false
false
854
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package genetic.component.expression.function; import genetic.component.context.ContextModel; import genetic.BuildException; import genetic.Factory; import genetic.component.accessor.Accessor; /** * * @author Calvin Ashmore */ public interface ExpressionFunctionFactory extends Factory<ExpressionFunction> { public ExpressionFunction selectByOutput(Class outputClass, ContextModel cm, boolean seekTerminal) throws BuildException; public ConstantExpressionFunction buildConstant(Class type, ContextModel cm) throws BuildException; public VariableExpressionFunction buildVariable(Class type, ContextModel cm) throws BuildException; public AccessorFunction buildAccessor(Accessor accessor, ContextModel cm) throws BuildException; }
[ "ashmore@a3f7fd50-973e-0410-8b28-ed0ccb69969c" ]
ashmore@a3f7fd50-973e-0410-8b28-ed0ccb69969c
01e0840f6d0226d38b873a076cec80399a63cf35
fff6caba41fadf45868b335200dc241c80d59ba5
/rabbitmq/native/src/main/java/cn/enjoyedu/rejectmsg/RejectProducer.java
35d929574153e1f548064d9e481720799dee388c
[]
no_license
marvinmao/amqp-project
b9c64114eb2613f36a2fef21724f826b3e1bc991
594fec9e6abc23e2f918360b0ed8d620b456ee6e
refs/heads/master
2022-12-24T20:06:10.540458
2019-08-28T14:43:43
2019-08-28T14:43:43
204,950,620
0
0
null
2022-12-16T08:48:18
2019-08-28T14:24:37
Java
UTF-8
Java
false
false
1,571
java
package cn.enjoyedu.rejectmsg; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import java.io.IOException; import java.util.concurrent.TimeoutException; /** *@author Marvin * *类说明:存放到延迟队列的元素,对业务数据进行了包装 */ public class RejectProducer { public final static String EXCHANGE_NAME = "direct_logs"; public static void main(String[] args) throws IOException, TimeoutException { /** * 创建连接连接到RabbitMQ */ ConnectionFactory factory = new ConnectionFactory(); // 设置MabbitMQ所在主机ip或者主机名 factory.setHost("127.0.0.1"); // 创建一个连接 Connection connection = factory.newConnection(); // 创建一个信道 Channel channel = connection.createChannel(); // 指定转发 channel.exchangeDeclare(EXCHANGE_NAME, "direct"); //所有日志严重性级别 for(int i=0;i<10;i++){ //每一次发送一条不同严重性的日志 // 发送的消息 String message = "Hello World_"+(i+1); //参数1:exchange name //参数2:routing key channel.basicPublish(EXCHANGE_NAME, "error", null, message.getBytes()); System.out.println(" [x] Sent 'error':'" + message + "'"); } // 关闭频道和连接 channel.close(); connection.close(); } }
[ "1512355855@qq.com" ]
1512355855@qq.com
cda4d48ad7e42065b496cdd049d77a59008add20
98bcb36b307ce97f2e3a61c720bd0898c00d71f8
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201505/BillingSchedule.java
43149d253aa81f64de0159b97877e84106c26654
[ "Apache-2.0" ]
permissive
goliva/googleads-java-lib
7050c16adbdfe1bf966414c1c412124b4f1352cc
ed88ac7508c382453682d18f46e53e9673286039
refs/heads/master
2021-01-22T00:52:23.999379
2015-07-17T22:20:42
2015-07-17T22:20:42
36,671,823
0
1
null
2015-07-17T22:20:42
2015-06-01T15:58:41
Java
UTF-8
Java
false
false
1,998
java
package com.google.api.ads.dfp.jaxws.v201505; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for BillingSchedule. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="BillingSchedule"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="PREPAID"/> * &lt;enumeration value="END_OF_THE_CAMPAIGN"/> * &lt;enumeration value="STRAIGHTLINE"/> * &lt;enumeration value="PRORATED"/> * &lt;enumeration value="UNKNOWN"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "BillingSchedule") @XmlEnum public enum BillingSchedule { /** * * Charged based on the contracted value after the first month of the campaign. * * */ PREPAID, /** * * Charged based on the contracted value after the last month of the campaign. * * */ END_OF_THE_CAMPAIGN, /** * * Use a billing source of contracted with a billing schedule of straightline to bill your * advertiser the same amount each month, regardless of the number of days in each month. * * */ STRAIGHTLINE, /** * * Use a billing source of contracted with a billing schedule of prorated to bill your * advertiser proportionally based on the amount of days in each month. * * */ PRORATED, /** * * The value returned if the actual value is not exposed by the requested API version. * * */ UNKNOWN; public String value() { return name(); } public static BillingSchedule fromValue(String v) { return valueOf(v); } }
[ "api.cseeley@gmail.com" ]
api.cseeley@gmail.com
66a7c57926f088e2760aaa9a45abd49704f1f35d
4312a71c36d8a233de2741f51a2a9d28443cd95b
/RawExperiments/Math/math97/1/AstorMain-math_97/src/variant-341/org/apache/commons/math/analysis/BrentSolver.java
57529d6b307c7f66c63f949c18246381bbc07457
[]
no_license
SajjadZaidi/AutoRepair
5c7aa7a689747c143cafd267db64f1e365de4d98
e21eb9384197bae4d9b23af93df73b6e46bb749a
refs/heads/master
2021-05-07T00:07:06.345617
2017-12-02T18:48:14
2017-12-02T18:48:14
112,858,432
0
0
null
null
null
null
UTF-8
Java
false
false
5,173
java
package org.apache.commons.math.analysis; public class BrentSolver extends org.apache.commons.math.analysis.UnivariateRealSolverImpl { private static final long serialVersionUID = -2136672307739067002L; public BrentSolver(org.apache.commons.math.analysis.UnivariateRealFunction f) { super(f, 100, 1.0E-6); } public double solve(double min, double max, double initial) throws org.apache.commons.math.FunctionEvaluationException, org.apache.commons.math.MaxIterationsExceededException { if (((initial - min) * (max - initial)) < 0) { throw new java.lang.IllegalArgumentException(((((((("Initial guess is not in search" + (" interval." + " Initial: ")) + initial) + " Endpoints: [") + min) + ",") + max) + "]")); } double yInitial = f.value(initial); if ((java.lang.Math.abs(yInitial)) <= (functionValueAccuracy)) { setResult(initial, 0); return result; } double yMin = f.value(min); if ((java.lang.Math.abs(yMin)) <= (functionValueAccuracy)) { setResult(yMin, 0); return result; } if ((yInitial * yMin) < 0) { return solve(min, yMin, initial, yInitial, min, yMin); } double yMax = f.value(max); if ((java.lang.Math.abs(yMax)) <= (functionValueAccuracy)) { setResult(yMax, 0); return result; } if ((yInitial * yMax) < 0) { return solve(initial, yInitial, max, yMax, initial, yInitial); } return solve(min, yMin, max, yMax, initial, yInitial); } public double solve(double min, double max) throws org.apache.commons.math.FunctionEvaluationException, org.apache.commons.math.MaxIterationsExceededException { clearResult(); verifyInterval(min, max); double ret = java.lang.Double.NaN; double yMin = f.value(min); double yMax = f.value(max); double sign = yMin * yMax; if (sign >= 0) { throw new java.lang.IllegalArgumentException((((((((((("Function values at endpoints do not have different signs." + " Endpoints: [") + min) + ",") + max) + "]") + " Values: [") + yMin) + ",") + yMax) + "]")); } else { ret = solve(min, yMin, max, yMax, min, yMin); } return ret; } private double solve(double x0, double y0, double x1, double y1, double x2, double y2) throws org.apache.commons.math.FunctionEvaluationException, org.apache.commons.math.MaxIterationsExceededException { double delta = x1 - x0; double oldDelta = delta; int i = 0; while (i < (maximalIterationCount)) { if (f == null) { throw new java.lang.IllegalArgumentException("Function can not be null."); } if ((java.lang.Math.abs(y1)) <= (functionValueAccuracy)) { setResult(x1, i); return result; } double dx = x2 - x1; double tolerance = java.lang.Math.max(((relativeAccuracy) * (java.lang.Math.abs(x1))), absoluteAccuracy); if ((java.lang.Math.abs(dx)) <= tolerance) { setResult(x1, i); return result; } if (((java.lang.Math.abs(oldDelta)) < tolerance) || ((java.lang.Math.abs(y0)) <= (java.lang.Math.abs(y1)))) { delta = 0.5 * dx; oldDelta = delta; } else { double r3 = y1 / y0; double p; double p1; if (x0 == x2) { p = dx * r3; p1 = 1.0 - r3; } else { double r1 = y0 / y2; double r2 = y1 / y2; p = r3 * (((dx * r1) * (r1 - r2)) - ((x1 - x0) * (r2 - 1.0))); p1 = ((r1 - 1.0) * (r2 - 1.0)) * (r3 - 1.0); } if (p > 0.0) { p1 = -p1; } else { p = -p; } if (((2.0 * p) >= (((1.5 * dx) * p1) - (java.lang.Math.abs((tolerance * p1))))) || (p >= (java.lang.Math.abs(((0.5 * oldDelta) * p1))))) { delta = 0.5 * dx; oldDelta = delta; } else { oldDelta = delta; delta = p / p1; } } x0 = x1; y0 = y1; if ((java.lang.Math.abs(delta)) > tolerance) { x1 = x1 + delta; } else { if (dx > 0.0) { x1 = x1 + (0.5 * tolerance); } else { if (dx <= 0.0) { x1 = x1 - (0.5 * tolerance); } } } y1 = f.value(x1); if ((y1 > 0) == (y2 > 0)) { x2 = x0; y2 = y0; delta = x1 - x0; oldDelta = delta; } i++; } throw new org.apache.commons.math.MaxIterationsExceededException(maximalIterationCount); } }
[ "sajjad.syed@ucalgary.ca" ]
sajjad.syed@ucalgary.ca
284ecbe4a0c0aeb03cb716649bedec3638b73349
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/glide/2016/4/ByteBufferGifDecoder.java
51f73252d83f2795a2765fcd5937d73b4826dc4f
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
6,073
java
package com.bumptech.glide.load.resource.gif; import android.content.Context; import android.graphics.Bitmap; import android.util.Log; import com.bumptech.glide.Glide; import com.bumptech.glide.gifdecoder.GifDecoder; import com.bumptech.glide.gifdecoder.GifHeader; import com.bumptech.glide.gifdecoder.GifHeaderParser; import com.bumptech.glide.load.Option; import com.bumptech.glide.load.Options; import com.bumptech.glide.load.ResourceDecoder; import com.bumptech.glide.load.Transformation; import com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import com.bumptech.glide.load.engine.bitmap_recycle.LruArrayPool; import com.bumptech.glide.load.resource.UnitTransformation; import com.bumptech.glide.load.resource.bitmap.ImageHeaderParser; import com.bumptech.glide.load.resource.bitmap.ImageHeaderParser.ImageType; import com.bumptech.glide.util.LogTime; import com.bumptech.glide.util.Util; import java.io.IOException; import java.nio.ByteBuffer; import java.util.Queue; /** * An {@link com.bumptech.glide.load.ResourceDecoder} that decodes {@link * com.bumptech.glide.load.resource.gif.GifDrawable} from {@link java.io.InputStream} data. */ public class ByteBufferGifDecoder implements ResourceDecoder<ByteBuffer, GifDrawable> { private static final String TAG = "BufferGifDecoder"; private static final GifDecoderFactory GIF_DECODER_FACTORY = new GifDecoderFactory(); /** * If set to {@code true}, disables this decoder * ({@link #handles(ByteBuffer, Options)} will return {@code false}). Defaults to * {@code false}. */ public static final Option<Boolean> DISABLE_ANIMATION = Option.memory( "com.bumptech.glide.load.resource.gif.ByteBufferGifDecoder.DisableAnimation", false); private static final GifHeaderParserPool PARSER_POOL = new GifHeaderParserPool(); private final Context context; private final GifHeaderParserPool parserPool; private final BitmapPool bitmapPool; private final GifDecoderFactory gifDecoderFactory; private final GifBitmapProvider provider; public ByteBufferGifDecoder(Context context) { this(context, Glide.get(context).getBitmapPool(), Glide.get(context).getArrayPool()); } public ByteBufferGifDecoder( Context context, BitmapPool bitmapPool, ArrayPool arrayPool) { this(context, bitmapPool, arrayPool, PARSER_POOL, GIF_DECODER_FACTORY); } // Visible for testing. ByteBufferGifDecoder( Context context, BitmapPool bitmapPool, ArrayPool arrayPool, GifHeaderParserPool parserPool, GifDecoderFactory gifDecoderFactory) { this.context = context; this.bitmapPool = bitmapPool; this.gifDecoderFactory = gifDecoderFactory; this.provider = new GifBitmapProvider(bitmapPool, arrayPool); this.parserPool = parserPool; } @Override public boolean handles(ByteBuffer source, Options options) throws IOException { ArrayPool byteArrayPool = new LruArrayPool(); return !options.get(DISABLE_ANIMATION) && new ImageHeaderParser(source, byteArrayPool).getType() == ImageType.GIF; } @Override public GifDrawableResource decode(ByteBuffer source, int width, int height, Options options) { final GifHeaderParser parser = parserPool.obtain(source); try { return decode(source, width, height, parser); } finally { parserPool.release(parser); } } private GifDrawableResource decode(ByteBuffer byteBuffer, int width, int height, GifHeaderParser parser) { long startTime = LogTime.getLogTime(); final GifHeader header = parser.parseHeader(); if (header.getNumFrames() <= 0 || header.getStatus() != GifDecoder.STATUS_OK) { // If we couldn't decode the GIF, we will end up with a frame count of 0. return null; } int sampleSize = getSampleSize(header, width, height); GifDecoder gifDecoder = gifDecoderFactory.build(provider, header, byteBuffer, sampleSize); gifDecoder.advance(); Bitmap firstFrame = gifDecoder.getNextFrame(); if (firstFrame == null) { return null; } Transformation<Bitmap> unitTransformation = UnitTransformation.get(); GifDrawable gifDrawable = new GifDrawable(context, gifDecoder, bitmapPool, unitTransformation, width, height, firstFrame); if (Log.isLoggable(TAG, Log.VERBOSE)) { Log.v(TAG, "Decoded gif from stream in " + LogTime.getElapsedMillis(startTime)); } return new GifDrawableResource(gifDrawable); } private static int getSampleSize(GifHeader gifHeader, int targetWidth, int targetHeight) { int exactSampleSize = Math.min(gifHeader.getHeight() / targetHeight, gifHeader.getWidth() / targetWidth); int powerOfTwoSampleSize = exactSampleSize == 0 ? 0 : Integer.highestOneBit(exactSampleSize); // Although functionally equivalent to 0 for BitmapFactory, 1 is a safer default for our code // than 0. int sampleSize = Math.max(1, powerOfTwoSampleSize); if (Log.isLoggable(TAG, Log.VERBOSE)) { Log.v(TAG, "Downsampling gif" + ", sampleSize: " + sampleSize + ", target dimens: [" + targetWidth + "x" + targetHeight + "]" + ", actual dimens: [" + gifHeader.getWidth() + "x" + gifHeader.getHeight() + "]"); } return sampleSize; } // Visible for testing. static class GifDecoderFactory { public GifDecoder build(GifDecoder.BitmapProvider provider, GifHeader header, ByteBuffer data, int sampleSize) { return new GifDecoder(provider, header, data, sampleSize); } } // Visible for testing. static class GifHeaderParserPool { private final Queue<GifHeaderParser> pool = Util.createQueue(0); public synchronized GifHeaderParser obtain(ByteBuffer buffer) { GifHeaderParser result = pool.poll(); if (result == null) { result = new GifHeaderParser(); } return result.setData(buffer); } public synchronized void release(GifHeaderParser parser) { parser.clear(); pool.offer(parser); } } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
ec3383b99e6951bd88c6f2de70d8c603d036f73b
af79916025156e3d0cf4986b126fbe7f059753e2
/web/dx/jiaowu/src/main/java/com/jiaowu/biz/teachingMaterial/TeachingMaterialBiz.java
f7a19da5a1419b30a6fe5ea4b35de150b1183544
[]
no_license
Letmebeawinner/yywt
5380680fadb7fc0d4c86fb92234f7c69cb216010
254fa0f54c09300d4bdcdf8617d97d75003536bd
refs/heads/master
2022-12-26T06:17:11.755486
2020-02-14T10:04:29
2020-02-14T10:04:29
240,468,510
0
0
null
2022-12-16T11:36:21
2020-02-14T09:08:31
Roff
UTF-8
Java
false
false
348
java
package com.jiaowu.biz.teachingMaterial; import org.springframework.stereotype.Service; import com.a_268.base.core.BaseBiz; import com.jiaowu.dao.teachingMaterial.TeachingMaterialDao; import com.jiaowu.entity.teachingMaterial.TeachingMaterial; @Service public class TeachingMaterialBiz extends BaseBiz<TeachingMaterial, TeachingMaterialDao>{ }
[ "448397385@qq.com" ]
448397385@qq.com
ed845df1ec5ac882864f9a4559382d01d4d3421e
26931c2b0e57c72eb6a3f7cd36f1737f66dab889
/ph-masterdata/src/main/java/com/helger/masterdata/person/PersonNameMicroTypeConverter.java
f20e0069c757b81831ee96f390c9dc95baa0971d
[ "Apache-2.0" ]
permissive
thaingo/ph-masterdata
baf1699bd5ab300fc44a4e1e60ac8461fac6f01f
52d7c3c2ff51bee4951421b075c6a5193b68a684
refs/heads/master
2020-06-25T11:44:14.729892
2019-07-17T21:35:36
2019-07-17T21:35:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,531
java
/** * Copyright (C) 2014-2019 Philip Helger (www.helger.com) * philip[at]helger[dot]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.helger.masterdata.person; import java.util.Locale; import javax.annotation.Nonnull; import javax.annotation.Nullable; import com.helger.commons.string.StringHelper; import com.helger.commons.system.SystemHelper; import com.helger.xml.microdom.IMicroElement; import com.helger.xml.microdom.IMicroQName; import com.helger.xml.microdom.MicroElement; import com.helger.xml.microdom.MicroQName; import com.helger.xml.microdom.convert.IMicroTypeConverter; public final class PersonNameMicroTypeConverter implements IMicroTypeConverter <PersonName> { protected static final IMicroQName ATTR_SALUTATION = new MicroQName ("salutation"); protected static final IMicroQName ATTR_PREFIXTITLE = new MicroQName ("prefixtitle"); protected static final IMicroQName ATTR_FIRSTNAME = new MicroQName ("firstname"); protected static final IMicroQName ATTR_MIDDLENAME = new MicroQName ("middlename"); protected static final IMicroQName ATTR_LASTNAME = new MicroQName ("lastname"); protected static final IMicroQName ATTR_SUFFIXTITLE = new MicroQName ("suffixtitle"); @Nonnull public IMicroElement convertToMicroElement (@Nonnull final PersonName aValue, @Nullable final String sNamespaceURI, @Nonnull final String sTagName) { final IMicroElement eName = new MicroElement (sNamespaceURI, sTagName); if (aValue.getSalutation () != null) eName.setAttribute (ATTR_SALUTATION, aValue.getSalutationID ()); if (StringHelper.hasText (aValue.getPrefixTitle ())) eName.setAttribute (ATTR_PREFIXTITLE, aValue.getPrefixTitle ()); if (StringHelper.hasText (aValue.getFirstName ())) eName.setAttribute (ATTR_FIRSTNAME, aValue.getFirstName ()); if (StringHelper.hasText (aValue.getMiddleName ())) eName.setAttribute (ATTR_MIDDLENAME, aValue.getMiddleName ()); if (StringHelper.hasText (aValue.getLastName ())) eName.setAttribute (ATTR_LASTNAME, aValue.getLastName ()); if (StringHelper.hasText (aValue.getSuffixTitle ())) eName.setAttribute (ATTR_SUFFIXTITLE, aValue.getSuffixTitle ()); return eName; } @Nonnull public PersonName convertToNative (@Nonnull final IMicroElement eAddress) { final Locale aLocale = SystemHelper.getSystemLocale (); final PersonName aName = new PersonName (); aName.setSalutation (ESalutation.getFromIDOrNull (eAddress.getAttributeValue (ATTR_SALUTATION))); aName.setPrefixTitle (eAddress.getAttributeValue (ATTR_PREFIXTITLE)); aName.setFirstName (eAddress.getAttributeValue (ATTR_FIRSTNAME), aLocale); aName.setMiddleName (eAddress.getAttributeValue (ATTR_MIDDLENAME), aLocale); aName.setLastName (eAddress.getAttributeValue (ATTR_LASTNAME), aLocale); aName.setSuffixTitle (eAddress.getAttributeValue (ATTR_SUFFIXTITLE)); return aName; } }
[ "philip@helger.com" ]
philip@helger.com
a14e3c8be8bda835003529855a4e5cb448cd6a16
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/102/org/apache/commons/math/ode/ContinuousOutputModel_getInitialTime_194.java
79700dda900c202ad92e8acc88bf52e08cdb9d8b
[]
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
1,970
java
org apach common math od store inform provid od integr integr process build continu model solut act step handler integr point view call iter integr process store copi step inform sort collect integr process user link set interpol time setinterpolatedtim set interpol time setinterpolatedtim link interpol state getinterpolatedst interpol state getinterpolatedst retriev inform time import wait integr attempt call link set interpol time setinterpolatedtim set interpol time setinterpolatedtim intern variabl set step handl main loop user applic remain independ integr process mimic behaviour analyt model numer model abil model time navig data problem model separ integr phase contigu interv continu output model continuousoutputmodel step handler integr phase perform order direct extrapol trajectori satellit model set differenti equat begin maneuv complex model includ thruster model accur attitud control maneuv revert model end maneuv continu output model handl step integr phase user bother maneuv begin end data transpar manner import featur code serializ code mean result integr serial reus store persist medium filesystem databas applic result integr store refer integr problem awar amount data store continu output model continuousoutputmodel instanc import state vector larg integr interv step small result small toler set link adapt stepsiz integr adaptivestepsizeintegr adapt step size integr step handler stephandl step interpol stepinterpol version continu output model continuousoutputmodel java 39z luc continu output model continuousoutputmodel initi integr time initi integr time initi time getinitialtim initi time initialtim
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
d8413a32dbe099cf2684e8e2950c3c672cb65903
311a774036afcd458ce936506aaa4a5b39155701
/rabbitmq-util/src/test/java/com/fizzed/rabbitmq/util/RabbitPullQueueTest.java
4377110967986d3903a46185ba948a7440de8dc3
[ "Apache-2.0" ]
permissive
fizzed/rabbitmq-plus
38467f4307809a174e4fcd6f6cf25fdc7c5818f1
76b09fda645dfa739a74ccf3b2ad07416e1992b9
refs/heads/master
2023-02-27T20:17:42.648079
2021-02-03T04:07:06
2021-02-03T04:07:06
325,394,218
1
0
null
null
null
null
UTF-8
Java
false
false
4,434
java
package com.fizzed.rabbitmq.util; import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.UUID; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; import org.junit.Before; import org.junit.Test; public class RabbitPullQueueTest extends RabbitBaseTest { static private final String QUEUE_NAME1 = "RabbitPullQueueTestQueue1"; static protected Channel publishChannel; @Before public void before() throws Exception { if (publishChannel == null) { publishChannel = connection.createChannel(); } createQueueIfNotExists(QUEUE_NAME1); publishChannel.queuePurge(QUEUE_NAME1); } private void publish(String queueName, String message) throws IOException { final AMQP.BasicProperties properties = new AMQP.BasicProperties.Builder() .messageId(UUID.randomUUID().toString()) .deliveryMode(2) .build(); log.info("Will publish message id={}, body={}", properties.getMessageId(), message); publishChannel.basicPublish("", queueName, properties, message.getBytes(StandardCharsets.UTF_8)); } @Test public void pop() throws Exception { try (RabbitPullQueue queue = new RabbitPullQueue(connection, QUEUE_NAME1)) { this.publish(QUEUE_NAME1, "Hello 1"); final RabbitMessage message1 = queue.pop(2, TimeUnit.SECONDS); assertThat(message1, is(not(nullValue()))); assertThat(new String(message1.getBody()), is("Hello 1")); } } @Test public void popArriveAfterWaiting() throws Exception { try (RabbitPullQueue queue = new RabbitPullQueue(connection, QUEUE_NAME1)) { // schedule a publish in 1 second final Thread thread = new Thread(() -> { try { Thread.sleep(750L); this.publish(QUEUE_NAME1, "Hello 2"); } catch (Exception e) { e.printStackTrace(); } }); thread.start(); final RabbitMessage message1 = queue.pop(2, TimeUnit.SECONDS); assertThat(message1, is(not(nullValue()))); assertThat(new String(message1.getBody()), is("Hello 2")); } } @Test public void popTimeout() throws Exception { try (RabbitPullQueue queue = new RabbitPullQueue(connection, QUEUE_NAME1)) { try { queue.pop(1, TimeUnit.SECONDS); fail(); } catch (TimeoutException e) { // expected } } } @Test public void popNoWaitingDoesNotLoseMessages() throws Exception { try (RabbitPullQueue queue1 = new RabbitPullQueue(connection, QUEUE_NAME1)) { queue1.setPendingTimeout(1, TimeUnit.SECONDS); this.publish(QUEUE_NAME1, "Hello 1"); final RabbitMessage message1 = queue1.pop(1, TimeUnit.SECONDS); assertThat(new String(message1.getBody()), is("Hello 1")); this.publish(QUEUE_NAME1, "Hello 2"); this.publish(QUEUE_NAME1, "Hello 3"); this.publish(QUEUE_NAME1, "Hello 4"); this.publish(QUEUE_NAME1, "Hello 5"); // make sure we "cancel" the pending messages, nack it so its requeued log.debug("Waiting 2 secs to ensure re-queue of messages"); Thread.sleep(2000L); final RabbitMessage message2 = queue1.pop(1, TimeUnit.SECONDS); assertThat(new String(message2.getBody()), is("Hello 2")); final RabbitMessage message3 = queue1.pop(1, TimeUnit.SECONDS); assertThat(new String(message3.getBody()), is("Hello 3")); final RabbitMessage message4 = queue1.pop(1, TimeUnit.SECONDS); assertThat(new String(message4.getBody()), is("Hello 4")); final RabbitMessage message5 = queue1.pop(1, TimeUnit.SECONDS); assertThat(new String(message5.getBody()), is("Hello 5")); } } }
[ "joe@lauer.bz" ]
joe@lauer.bz
adc6835af1fdb54176e85d757c36033a94fad265
d1a6d1e511df6db8d8dd0912526e3875c7e1797d
/genny_JavaWithoutLambdasApi21/applicationModule/src/test/java/applicationModulepackageJava2/Foo954Test.java
a81cd8d8668d0f8c25c939cc202b226859ae2a95
[]
no_license
NikitaKozlov/generated-project-for-desugaring
0bc1443ab3ddc84cd289331c726761585766aea7
81506b3711004185070ca4bb9a93482b70011d36
refs/heads/master
2020-03-20T00:35:06.996525
2018-06-12T09:30:37
2018-06-12T09:30:37
137,049,317
0
0
null
null
null
null
UTF-8
Java
false
false
481
java
package applicationModulepackageJava2; import org.junit.Test; public class Foo954Test { @Test public void testFoo0() { new Foo954().foo0(); } @Test public void testFoo1() { new Foo954().foo1(); } @Test public void testFoo2() { new Foo954().foo2(); } @Test public void testFoo3() { new Foo954().foo3(); } @Test public void testFoo4() { new Foo954().foo4(); } @Test public void testFoo5() { new Foo954().foo5(); } }
[ "nikita.e.kozlov@gmail.com" ]
nikita.e.kozlov@gmail.com
a17bc0fd38cc1080194b0382e960c1c2bfd12cfd
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/neo4j--neo4j/0dee00b16d4210b0e4e66673d51b443472a026b8/before/LogPosition.java
6c04e0321462f94b7b7456f4de0b7b735ed6d4de
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,528
java
/** * Copyright (c) 2002-2014 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.kernel.impl.transaction.xaframework; public class LogPosition { private final long logVerion; private final long byteOffset; public LogPosition( long logVersion, long byteOffset ) { this.logVerion = logVersion; this.byteOffset = byteOffset; } public boolean earlierThan( LogPosition other ) { if ( logVerion < other.logVerion ) { return true; } if ( logVerion > other.logVerion ) { return false; } return byteOffset < other.byteOffset; } public long getLogVersion() { return logVerion; } public long getByteOffset() { return byteOffset; } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
b39c7e19ad8bf98d9604b6459f2b9595d8ab523a
1415496f94592ba4412407b71dc18722598163dd
/doc/jitsi-bundles-dex/sources/org/jitsi/gov/nist/core/MultiMap.java
ceb81b157e8044f565e69c4cc199f79fdc0dc1e7
[ "Apache-2.0" ]
permissive
lhzheng880828/VOIPCall
ad534535869c47b5fc17405b154bdc651b52651b
a7ba25debd4bd2086bae2a48306d28c614ce0d4a
refs/heads/master
2021-07-04T17:25:21.953174
2020-09-29T07:29:42
2020-09-29T07:29:42
183,576,020
0
0
null
null
null
null
UTF-8
Java
false
false
143
java
package org.jitsi.gov.nist.core; import java.util.Map; public interface MultiMap extends Map { Object remove(Object obj, Object obj2); }
[ "lhzheng@grandstream.cn" ]
lhzheng@grandstream.cn