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
522d53613c96ff2dc6327ac0b7a59f99d67c01b2
356de93600e968abebd7efdfded0775c93a84230
/src/main/java/com/lijie/shopping/modules/service/UmsMemberRuleSettingService.java
aa1b1c646b7e6f9f72c5f58dbb0fded7da60a383
[]
no_license
tianandli/shopping
511027f3bcbfc16a077beb2a4395edb3c250d1de
d441c4e802278078f9d3ce8cc8ca6d1d5931813f
refs/heads/master
2023-08-27T21:20:50.212623
2021-11-05T09:21:26
2021-11-05T09:21:26
370,205,574
0
0
null
null
null
null
UTF-8
Java
false
false
362
java
package com.lijie.shopping.modules.service; import com.lijie.shopping.modules.model.UmsMemberRuleSetting; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 会员积分成长规则表 服务类 * </p> * * @author lijie * @since 2021-05-13 */ public interface UmsMemberRuleSettingService extends IService<UmsMemberRuleSetting> { }
[ "949620260@qq.com" ]
949620260@qq.com
4c0582f18e1692767c794e2092675116ea4ddc2c
aa90cb116edbf586cb769797c49f4c46a0a0caed
/src/main/java/org/squiddev/plethora/api/module/AbstractModuleHandler.java
8c5902255ee3057a7b5ec7a93bbf8afd10872a2d
[ "MIT" ]
permissive
SquidDev-CC/plethora
c1cda54f9fc9ca163def4c4e78ddb69392e9f545
3c9b41561a3dcc45d08a9167f6e471638cf2e170
refs/heads/minecraft-1.12
2021-08-29T09:44:58.781157
2021-08-06T18:24:26
2021-08-06T18:24:26
61,070,151
64
56
MIT
2021-08-22T13:27:36
2016-06-13T21:14:19
Java
UTF-8
Java
false
false
588
java
package org.squiddev.plethora.api.module; import org.squiddev.plethora.api.method.IContextBuilder; import javax.annotation.Nonnull; /** * Some default implementations for {@link IModuleHandler} methods. * * It is recommended that all implementations extend this class: it allows additional methods * to be added to the module handler without introducing abstract method errors occurring. */ public abstract class AbstractModuleHandler implements IModuleHandler { @Override public void getAdditionalContext(@Nonnull IModuleAccess access, @Nonnull IContextBuilder builder) { } }
[ "bonzoweb@hotmail.co.uk" ]
bonzoweb@hotmail.co.uk
62f14ad51f9f3f626323cb128e0000ee412ea6ba
676e021e420959a22f8eb326068576f93efe1f41
/src/main/java/com/diogorolins/battleShip/config/security/SecurityConfig.java
1159432c58f902c69be9e18155154be12e5a083b
[]
no_license
diogorolins/battleship-backend-old
d72c748d2566068463a63ddb3d3158b2daa13b44
f35ae039dfbd36e0efcaea3afaf5ff9583192161
refs/heads/master
2023-04-15T23:20:59.203086
2020-08-07T14:06:39
2020-08-07T14:06:39
278,490,519
0
0
null
2021-04-26T20:28:02
2020-07-09T23:13:33
Java
UTF-8
Java
false
false
3,488
java
package com.diogorolins.battleShip.config.security; import java.util.Arrays; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.http.HttpMethod; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.WebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.security.config.http.SessionCreationPolicy; import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.CorsConfigurationSource; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; @EnableWebSecurity @Configuration @EnableGlobalMethodSecurity(prePostEnabled = true) public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Autowired private Environment env; @Autowired private AuthConfig authConfig; @Autowired private TokenService tokenService; private static final String[] PUBLIC_MATCHERS_POST = { "/players", "/auth" }; private static final String[] PUBLIC_MATCHERS_GET = { "/ships" }; private static final String[] PUBLIC_MATCHERS = { "/h2-console/**" }; @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(authConfig).passwordEncoder(bCryptPasswordEncoder()); } @Override protected void configure(HttpSecurity http) throws Exception { if(Arrays.asList(env.getActiveProfiles()).contains("dev")) { http.headers().frameOptions().disable(); } http.cors().and().csrf().disable(); http.authorizeRequests() .antMatchers(HttpMethod.POST,PUBLIC_MATCHERS_POST).permitAll() .antMatchers(HttpMethod.POST,PUBLIC_MATCHERS_GET).permitAll() .antMatchers(PUBLIC_MATCHERS).permitAll() .anyRequest().authenticated(); http.addFilter(new JWTAuthenticationFilter(authenticationManager(), tokenService)); http.addFilter(new JWTAuthorizationFilter(authenticationManager(), tokenService, authConfig)); http.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); } @Override public void configure(WebSecurity web) throws Exception { } @Override @Bean protected AuthenticationManager authenticationManager() throws Exception { return super.authenticationManager(); } @Bean public BCryptPasswordEncoder bCryptPasswordEncoder() { return new BCryptPasswordEncoder(); } @Bean public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration config = new CorsConfiguration().applyPermitDefaultValues(); config.setAllowedMethods(Arrays.asList("POST", "GET", "PUT", "DELETE", "OPTIONS", "PATCH")); final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); source.registerCorsConfiguration("/**", config); return source; } }
[ "=" ]
=
45edeae0512d5fe6e58d35df3a2aae727387c4a3
3cc849f555953147e8051f623b8552ac17854399
/src/com/rds/bacera/mapper/RdsBaceraCTDnaMapper.java
2472762a4d6656881917d7815c7cdfcec24d957a
[]
no_license
clownlin22/judicial-web
c8444b17f16ec9a567d43786efce6ff8ce0c967b
6350aa62353187dc1ee5dac5b1f6322e5c2982c8
refs/heads/master
2020-05-07T22:23:21.426381
2019-04-12T06:07:00
2019-04-12T06:07:00
180,913,232
0
0
null
null
null
null
UTF-8
Java
false
false
276
java
package com.rds.bacera.mapper; import java.util.Map; import org.springframework.stereotype.Component; @Component("RdsBaceraCTDnaMapper") public interface RdsBaceraCTDnaMapper extends RdsBaceraBaseMapper { @SuppressWarnings("rawtypes") public int queryNumExit(Map map); }
[ "17512580364@163.com" ]
17512580364@163.com
74391eb8d4dbd024f3423c5486c3dbbee9c72208
2fda0a2f1f5f5d4e7d72ff15a73a4d3e1e93abeb
/proFL-plugin-2.0.3/org/pitest/reloc/antlr/common/preprocessor/Tool.java
d287d588ed84e60ed0185a11e2a8becce7f2a70f
[ "MIT" ]
permissive
ycj123/Research-Project
d1a939d99d62dc4b02d9a8b7ecbf66210cceb345
08296e0075ba0c13204944b1bc1a96a7b8d2f023
refs/heads/main
2023-05-29T11:02:41.099975
2021-06-08T13:33:26
2021-06-08T13:33:26
374,899,147
0
0
null
null
null
null
UTF-8
Java
false
false
4,984
java
// // Decompiled by Procyon v0.5.36 // package org.pitest.reloc.antlr.common.preprocessor; import java.io.File; import java.util.Enumeration; import java.io.IOException; import java.io.FileNotFoundException; import org.pitest.reloc.antlr.common.collections.impl.Vector; public class Tool { protected Hierarchy theHierarchy; protected String grammarFileName; protected String[] args; protected int nargs; protected Vector grammars; protected org.pitest.reloc.antlr.common.Tool antlrTool; public Tool(final org.pitest.reloc.antlr.common.Tool antlrTool, final String[] array) { this.antlrTool = antlrTool; this.processArguments(array); } public static void main(final String[] array) { final Tool tool = new Tool(new org.pitest.reloc.antlr.common.Tool(), array); tool.preprocess(); final String[] preprocessedArgList = tool.preprocessedArgList(); for (int i = 0; i < preprocessedArgList.length; ++i) { System.out.print(" " + preprocessedArgList[i]); } System.out.println(); } public boolean preprocess() { if (this.grammarFileName == null) { this.antlrTool.toolError("no grammar file specified"); return false; } if (this.grammars != null) { this.theHierarchy = new Hierarchy(this.antlrTool); final Enumeration elements = this.grammars.elements(); while (elements.hasMoreElements()) { final String str = elements.nextElement(); try { this.theHierarchy.readGrammarFile(str); continue; } catch (FileNotFoundException ex) { this.antlrTool.toolError("file " + str + " not found"); return false; } break; } } if (!this.theHierarchy.verifyThatHierarchyIsComplete()) { return false; } this.theHierarchy.expandGrammarsInFile(this.grammarFileName); final GrammarFile file = this.theHierarchy.getFile(this.grammarFileName); final String nameForExpandedGrammarFile = file.nameForExpandedGrammarFile(this.grammarFileName); if (nameForExpandedGrammarFile.equals(this.grammarFileName)) { this.args[this.nargs++] = this.grammarFileName; } else { try { file.generateExpandedFile(); this.args[this.nargs++] = this.antlrTool.getOutputDirectory() + System.getProperty("file.separator") + nameForExpandedGrammarFile; } catch (IOException ex2) { this.antlrTool.toolError("cannot write expanded grammar file " + nameForExpandedGrammarFile); return false; } } return true; } public String[] preprocessedArgList() { final String[] args = new String[this.nargs]; System.arraycopy(this.args, 0, args, 0, this.nargs); return this.args = args; } private void processArguments(final String[] array) { this.nargs = 0; this.args = new String[array.length]; for (int i = 0; i < array.length; ++i) { if (array[i].length() == 0) { this.antlrTool.warning("Zero length argument ignoring..."); } else if (array[i].equals("-glib")) { if (File.separator.equals("\\") && array[i].indexOf(47) != -1) { this.antlrTool.warning("-glib cannot deal with '/' on a PC: use '\\'; ignoring..."); } else { final org.pitest.reloc.antlr.common.Tool antlrTool = this.antlrTool; this.grammars = org.pitest.reloc.antlr.common.Tool.parseSeparatedList(array[i + 1], ';'); ++i; } } else if (array[i].equals("-o")) { this.args[this.nargs++] = array[i]; if (i + 1 >= array.length) { this.antlrTool.error("missing output directory with -o option; ignoring"); } else { ++i; this.args[this.nargs++] = array[i]; this.antlrTool.setOutputDirectory(array[i]); } } else if (array[i].charAt(0) == '-') { this.args[this.nargs++] = array[i]; } else { this.grammarFileName = array[i]; if (this.grammars == null) { this.grammars = new Vector(10); } this.grammars.appendElement(this.grammarFileName); if (i + 1 < array.length) { this.antlrTool.warning("grammar file must be last; ignoring other arguments..."); break; } } } } }
[ "chijiang.yang@student.unimelb.edu.au" ]
chijiang.yang@student.unimelb.edu.au
bb018bf114d8acc60a0a750575566dd605fe03f8
db75c2977498151e949971627c5b6b111e7f6f69
/GuideProject/step/v28_04/src/main/java/com/eomcs/lms/handler/LessonDeleteCommand.java
81cac28fa26d2affc459554e46e50cbea8575274
[]
no_license
yh0921k/GuideProject
5bd7eb1882d07281ccafafb30bdfe5775bcd80ab
b8bba0025acc6086926e810b31ee2dc14efd207c
refs/heads/master
2020-11-26T03:12:27.536475
2020-04-20T09:06:27
2020-04-21T00:51:53
228,948,427
0
1
null
null
null
null
UTF-8
Java
false
false
855
java
package com.eomcs.lms.handler; import java.util.List; import com.eomcs.lms.domain.Lesson; import com.eomcs.util.Prompt; public class LessonDeleteCommand implements Command { List<Lesson> lessonList; Prompt prompt; public LessonDeleteCommand(Prompt prompt, List<Lesson> list) { this.prompt = prompt; this.lessonList = list; } @Override public void execute() { int index = indexOfLesson(prompt.inputInt("번호? ")); if (index == -1) { System.out.println("해당 번호의 수업이 없습니다."); return; } this.lessonList.remove(index); System.out.println("수업을 삭제했습니다."); } private int indexOfLesson(int no) { for (int i = 0; i < this.lessonList.size(); i++) { if (this.lessonList.get(i).getNo() == no) { return i; } } return -1; } }
[ "yh0921k@gmail.com" ]
yh0921k@gmail.com
58c2a0c19b689b03345177390c0096958b67e028
ca021ff2fb3d5abdaf7f65fbaab776e869ccd7a5
/src/fundationStructure/NextGreaterElement2.java
2c19bc4f077160d8b26fd8c6885ba5fe2a18a4be
[]
no_license
teddywang1992/leetcode
56ab4c072c9f0f2db31a0721294b1619a12856cd
7d676f2e67a1a2ba073a5c11fc5f17e8c6b77e69
refs/heads/master
2021-01-22T18:07:23.152614
2018-11-24T22:46:09
2018-11-24T22:46:09
100,737,117
0
0
null
null
null
null
UTF-8
Java
false
false
839
java
package fundationStructure; //take care of the corner case that two digit are same //so we need to store each time. so we can't use hashmap to do that. import java.util.Arrays; import java.util.Stack; public class NextGreaterElement2 { public int[] nextGreaterElements(int[] nums) { if (nums == null || nums.length == 0) { return new int[]{}; } int[] result = new int[nums.length]; Stack<Integer> stack = new Stack<>(); int n = nums.length; Arrays.fill(result, -1); for (int i = 1; i < 2 * n; i++) { if (i < n + 1) { stack.push(i - 1); } while(!stack.isEmpty() && nums[(i % n)] > nums[stack.peek()]) { result[stack.pop()] = nums[i % n]; } } return result; } }
[ "443909723@qq.com" ]
443909723@qq.com
bb1a3f30cfea7c6c8307beb8af77f93e52b2c9a7
400fa6f7950fcbc93f230559d649a7bfc50975fe
/src/com/jagex/SocketProvider.java
42f55b12118c12f608833126f10bc25d6198bd76
[]
no_license
Rune-Status/Major--Renamed-839
bd242a9b230c104a4021ec679e527fe752c27c4f
0e9039aa22f7ecd0ebcf2473a4acb5e91f6c8f76
refs/heads/master
2021-07-15T08:58:15.963040
2017-10-22T20:14:35
2017-10-22T20:14:35
107,897,914
1
0
null
null
null
null
UTF-8
Java
false
false
2,670
java
package com.jagex; import java.io.IOException; import java.net.Socket; public abstract class SocketProvider { public static String toUrlSafe(CharSequence sequence) { int length = sequence.length(); StringBuilder builder = new StringBuilder(length); for (int index = 0; index < length; index++) { char character = sequence.charAt(index); if (character >= 'a' && character <= 'z' || character >= 'A' && character <= 'Z' || character >= '0' && character <= '9' || character == '.' || character == '-' || character == '*' || character == '_') { builder.append(character); } else if (character == ' ') { builder.append('+'); } else { int b = Class483.charToByte(character); builder.append('%'); int packed = b >> 4 & 0xf; if (packed >= 10) { builder.append((char) (packed + 55)); } else { builder.append((char) (packed + 48)); } packed = b & 0xf; if (packed >= 10) { builder.append((char) (55 + packed)); } else { builder.append((char) (packed + 48)); } } } return builder.toString(); } public static void method13763() { if (Class31.loginStep * -1087837371 == 108) { Class31.loginStep = -781018025; } } static void method13762(int plane, int localX, int localZ, int group, int i_7_, int type, Class540 class540) { Class480_Sub12 class480_sub12 = null; for (Class480_Sub12 class480_sub12_10_ = (Class480_Sub12) Class480_Sub12.aClass644_10067.head(); null != class480_sub12_10_; class480_sub12_10_ = (Class480_Sub12) Class480_Sub12.aClass644_10067 .next()) { if (plane == class480_sub12_10_.plane * -618261599 && localX == 1155137153 * class480_sub12_10_.localX && localZ == 51547319 * class480_sub12_10_.localZ && group == -677397461 * class480_sub12_10_.group) { class480_sub12 = class480_sub12_10_; break; } } if (class480_sub12 == null) { class480_sub12 = new Class480_Sub12(); class480_sub12.plane = plane * 1586008161; class480_sub12.group = -1555094909 * group; class480_sub12.localX = localX * -1064812159; class480_sub12.localZ = localZ * 1342836999; Class480_Sub12.aClass644_10067.pushBack(class480_sub12); } class480_sub12.id = i_7_ * 340568737; class480_sub12.type = -1339454739 * type; class480_sub12.aClass540_10066 = class540; class480_sub12.aBool10069 = true; class480_sub12.aBool10063 = false; } int port; String host; SocketProvider() { } public abstract Socket provide() throws IOException; Socket direct() throws IOException { return new Socket(host, 147585685 * port); } }
[ "iano2k4@hotmail.com" ]
iano2k4@hotmail.com
e048ef3204d6b21c921d71c07d112a2f879ab0df
982f6c3a3c006d2b03f4f53c695461455bee64e9
/src/main/java/com/alipay/api/domain/LiabilityQuoteInfo.java
fbbd6e51520477917b5f8c25f849a2709bebae79
[ "Apache-2.0" ]
permissive
zhaomain/Alipay-Sdk
80ffc0505fe81cc7dd8869d2bf9a894b823db150
552f68a2e7c10f9ffb33cd8e0036b0643c7c2bb3
refs/heads/master
2022-11-15T03:31:47.418847
2020-07-09T12:18:59
2020-07-09T12:18:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,048
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 责任报价信息 * * @author auto create * @since 1.0, 2020-06-28 19:21:16 */ public class LiabilityQuoteInfo extends AlipayObject { private static final long serialVersionUID = 5861218518931987841L; /** * 保司返回的起保时间,格式yyyy-MM-dd HH:mm:ss */ @ApiField("effect_end_time") private String effectEndTime; /** * 保司返回的起保时间,格式yyyy-MM-dd HH:mm:ss */ @ApiField("effect_start_time") private String effectStartTime; /** * 不计免赔保费,单位分 */ @ApiField("iop_premium") private String iopPremium; /** * 责任编码 */ @ApiField("liability_no") private String liabilityNo; /** * 责任保费,单位分 */ @ApiField("liability_premium") private String liabilityPremium; /** * 责任保额,单位分 */ @ApiField("sum_insured") private String sumInsured; public String getEffectEndTime() { return this.effectEndTime; } public void setEffectEndTime(String effectEndTime) { this.effectEndTime = effectEndTime; } public String getEffectStartTime() { return this.effectStartTime; } public void setEffectStartTime(String effectStartTime) { this.effectStartTime = effectStartTime; } public String getIopPremium() { return this.iopPremium; } public void setIopPremium(String iopPremium) { this.iopPremium = iopPremium; } public String getLiabilityNo() { return this.liabilityNo; } public void setLiabilityNo(String liabilityNo) { this.liabilityNo = liabilityNo; } public String getLiabilityPremium() { return this.liabilityPremium; } public void setLiabilityPremium(String liabilityPremium) { this.liabilityPremium = liabilityPremium; } public String getSumInsured() { return this.sumInsured; } public void setSumInsured(String sumInsured) { this.sumInsured = sumInsured; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
4b252a68c58f7fcf821ae9c52ad0aea1c8740d1b
57138c9e3873081f5a75f907589d36e39ad2dd62
/application/sshapp/src/main/java/org/ssh/app/example/entity/Disc_1.java
d63c8b8bd2e5539a51baed43643e2b9c6b516b23
[ "Apache-2.0" ]
permissive
parth2691/sshapp
f329b5bdacac37c72fa226772aa4efdd74bdaf81
20a573490663f00eb0981c9f758e2281fe13f105
refs/heads/master
2021-01-22T01:18:27.824518
2012-06-02T12:05:26
2012-06-02T12:05:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,504
java
package org.ssh.app.example.entity; import java.io.Serializable; import javax.persistence.DiscriminatorColumn; import javax.persistence.DiscriminatorType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; import javax.persistence.TableGenerator; @Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name = "DISC_TYPE", discriminatorType = DiscriminatorType.STRING) public class Disc_1 implements Serializable { private static final long serialVersionUID = 4096693525922121897L; private Long id; private String name; private Integer price; @Id @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator") @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "Disc_1", initialValue = 1, allocationSize = 1) public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getPrice() { return price; } public void setPrice(Integer price) { this.price = price; } }
[ "young.jiandong@gmail.com" ]
young.jiandong@gmail.com
84882145fa00fe0ab4bf01cd614f74b90e84ff34
5cc01dec9ec1c6dde262d56d42c40dd8acfe2010
/PTSCMC/src/java/com/venus/mc/contract/order/SearchMaterialAction.java
a9286a76b1b2376fdc7537ddbdb1481c836409be
[]
no_license
phuongtu1983/mc
6defa0c94a02e2ff5ce9886ee87a219396d54ac0
0966390950a911e9fdb75484701bdede381a3042
refs/heads/master
2020-03-11T11:50:15.387384
2018-04-18T00:42:25
2018-04-18T00:42:25
129,980,464
0
0
null
null
null
null
UTF-8
Java
false
false
1,445
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.venus.mc.contract.order; import com.venus.core.util.StringUtil; import com.venus.core.util.LogUtil; import com.venus.mc.bean.SearchFormBean; import com.venus.mc.core.SpineAction; import com.venus.mc.dao.MaterialDAO; import com.venus.mc.util.Constants; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; /** * * @author Mai vinh loc */ public class SearchMaterialAction extends SpineAction { @Override public boolean doAction(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { SearchFormBean formBean = (SearchFormBean) form; int fieldid = formBean.getSearchid(); String strFieldvalue = formBean.getSearchvalue(); ArrayList materialList = null; try { MaterialDAO materialDAO = new MaterialDAO(); materialList = materialDAO.searchMaterial(fieldid, StringUtil.encodeHTML(strFieldvalue)); } catch (Exception ex) { LogUtil.error("FAILED:Material:search-" + ex.getMessage()); ex.printStackTrace(); } request.setAttribute(Constants.MATERIAL_LIST, materialList); return true; } }
[ "phuongtu1983@gmail.com" ]
phuongtu1983@gmail.com
e83be7b7243cbbc536b0a3f3c0a0575280422482
5786b8c28f069ae9b9b7f850edf4d4c1b5cf976c
/languages/CSharp/source_gen/CSharp/behavior/Class_member_declarations_BehaviorDescriptor.java
af404bfc54173402fc6d98a2152ece35187f7dd3
[ "Apache-2.0" ]
permissive
vaclav/MPS_CSharp
681ea277dae2e7503cd0f2d21cb3bb7084f6dffc
deea11bfe3711dd241d9ca3f007b810d574bae76
refs/heads/master
2021-01-13T14:36:41.949662
2019-12-03T15:26:21
2019-12-03T15:26:21
72,849,927
19
5
null
null
null
null
UTF-8
Java
false
false
378
java
package CSharp.behavior; /*Generated by MPS */ /** * Will be removed after 3.4 * Need to support compilation of the legacy behavior descriptors before the language is rebuilt * This class is not involved in the actual method invocation */ @Deprecated public class Class_member_declarations_BehaviorDescriptor { public String getConceptFqName() { return null; } }
[ "vaclav.pech@gmail.com" ]
vaclav.pech@gmail.com
4f842370f08f26ed39108f24141c14770212ba44
6ed1954d5b350454512fb671f48bad05092c19e4
/game/herphone/src/main/java/com/globalgame/auto/json/EveryDayVideo_Json.java
4d98d1e4dc22f10a7a663f51bc041bb86792fbdf
[]
no_license
yuzelong620/Buzhayan
5eb9eb81b7a2f500905c9a1ce7b78f2ad809e1af
04de6ebfd90ff0763e694a2fb3d8b95486fc81b0
refs/heads/master
2022-12-01T04:01:04.197792
2019-12-20T09:30:29
2019-12-20T09:30:29
229,233,912
1
1
null
2022-11-24T06:27:26
2019-12-20T09:31:54
Java
UTF-8
Java
false
false
1,084
java
package com.globalgame.auto.json; import java.util.List; import com.mind.core.util.StringIntTuple; import com.mind.core.util.IntDoubleTuple; import com.mind.core.util.IntTuple; import com.mind.core.util.ThreeTuple; import com.mind.core.util.StringFloatTuple; /** *自动生成类 */ public class EveryDayVideo_Json{ /** 编号::*/ private Integer id; /** 第几天::*/ private Integer day; /** 视频地址::*/ private String videoUrl; /** 图片::*/ private String pictrue; /** 编号::*/ public Integer getId(){ return this.id; } /** 第几天::*/ public Integer getDay(){ return this.day; } /** 视频地址::*/ public String getVideoUrl(){ return this.videoUrl; } /** 图片::*/ public String getPictrue(){ return this.pictrue; } /**编号::*/ public void setId(Integer id){ this.id = id; } /**第几天::*/ public void setDay(Integer day){ this.day = day; } /**视频地址::*/ public void setVideoUrl(String videoUrl){ this.videoUrl = videoUrl; } /**图片::*/ public void setPictrue(String pictrue){ this.pictrue = pictrue; } }
[ "382981935@qq.com" ]
382981935@qq.com
0603c6c42d80e494e3ecc905af174921e920451d
3822efd9117b0c107f59add27bd843439898d481
/src/main/java/com/gmail/mosoft521/jcpcmf/ch10/p160LinkedBlockingDeque/test/pop_2.java
53ae00c785dfe47838bc5e8d7c3fde202c6fff75
[]
no_license
mosoft521/JCPCMF
27e06778982703ec272db8e4188a2ff38ee74682
5d3493a08049c0771961eb6619f3bf556658d567
refs/heads/master
2020-06-15T14:17:57.028105
2017-08-23T01:03:33
2017-08-23T01:03:33
75,286,460
1
0
null
null
null
null
UTF-8
Java
false
false
1,039
java
package com.gmail.mosoft521.jcpcmf.ch10.p160LinkedBlockingDeque.test; import java.util.concurrent.LinkedBlockingDeque; public class pop_2 { public static void main(String[] args) { LinkedBlockingDeque deque = new LinkedBlockingDeque(3); System.out.println(deque.pop()); } } /* Exception in thread "main" java.util.NoSuchElementException at java.util.concurrent.LinkedBlockingDeque.removeFirst(LinkedBlockingDeque.java:453) at java.util.concurrent.LinkedBlockingDeque.pop(LinkedBlockingDeque.java:777) at com.gmail.mosoft521.jcpcmf.ch10.p160LinkedBlockingDeque.test.pop_2.main(pop_2.java:9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Process finished with exit code 1 */
[ "mosoft521@gmail.com" ]
mosoft521@gmail.com
7b92f7ffaf54a87e0f7ed68bcc2e668ba9c04884
dd76d0b680549acb07278b2ecd387cb05ec84d64
/divestory-Fernflower/com/google/android/gms/internal/drive/zzbf.java
dbef5c4988df4406e5e02a12d846db461b19af01
[]
no_license
ryangardner/excursion-decompiling
43c99a799ce75a417e636da85bddd5d1d9a9109c
4b6d11d6f118cdab31328c877c268f3d56b95c58
refs/heads/master
2023-07-02T13:32:30.872241
2021-08-09T19:33:37
2021-08-09T19:33:37
299,657,052
0
0
null
null
null
null
UTF-8
Java
false
false
840
java
package com.google.android.gms.internal.drive; import android.content.IntentSender; import android.os.RemoteException; import com.google.android.gms.common.api.Api; import com.google.android.gms.common.api.internal.TaskApiCall; import com.google.android.gms.drive.OpenFileActivityOptions; import com.google.android.gms.tasks.TaskCompletionSource; final class zzbf extends TaskApiCall<zzaw, IntentSender> { // $FF: synthetic field private final OpenFileActivityOptions zzeq; zzbf(zzbb var1, OpenFileActivityOptions var2) { this.zzeq = var2; } // $FF: synthetic method protected final void doExecute(Api.AnyClient var1, TaskCompletionSource var2) throws RemoteException { var2.setResult(((zzeo)((zzaw)var1).getService()).zza(new zzgm(this.zzeq.zzba, this.zzeq.zzbb, this.zzeq.zzbd, this.zzeq.zzbe))); } }
[ "ryan.gardner@coxautoinc.com" ]
ryan.gardner@coxautoinc.com
ddf27789ab3e3f80f053a83f06df908010ec793c
918595e3b4f1db7c9588684924988a3f319e4607
/bit-java01/src/main/java/step11/ex3/Test03.java
1254e5255bea4d6fb1ec7ca1628d6da7ab1c21f0
[]
no_license
eomjinyoung/bigdata3
d849c4a8634a48ae3d30ce5f5ff1ad839195aff9
ef90e729ec42177b8384af06f6b947cc6e117307
refs/heads/master
2021-07-12T22:11:20.989729
2018-01-18T00:45:08
2018-01-18T00:45:08
95,863,374
0
4
null
null
null
null
UTF-8
Java
false
false
785
java
package step11.ex3; public class Test03 { public static void main(String[] args) { // 1) Calculator3 설계도에 따라 메모리를 준비한다. Calculator3 calc = new Calculator3(); // 2) Calculator3 설계도에 정의된 연산자를 사용하여 // Calculator3 설계도에 따라 만든 메모리를 다룬다. calc.plus(10); // 수퍼 클래스 Calculator.plus() calc.plus(20); // 수퍼 클래스 Calculator.plus() calc.minus(7); // 수퍼 클래스 Calculator.minus() calc.multiple(2); // 수퍼 클래스 Calculator2.multiple() calc.divide(3); // 수퍼 클래스 Calculator2.divide() calc.mod(12); // 자신의 메서드 Calculator3.mod() System.out.println(calc.result); } }
[ "jinyoung.eom@gmail.com" ]
jinyoung.eom@gmail.com
fb35656d0e082eda21e9f1f0a423a6826500220e
c49d17bc0ea18308455dfa19e0f9560d87d0954f
/thor-communication/src/main/java/com/mob/thor/communication/core/delegation/rmi/RmiCommunicationConnection.java
1bce1319953fb050483597a55f18b118645a4203
[ "Apache-2.0" ]
permissive
MOBX/Thor
4b6ed58ba167bde1a8e4148de4a05268314e86d4
68b650d7ee05efe67dc1fca8dd0194a47d683f72
refs/heads/master
2020-12-31T02:49:31.603273
2016-01-30T12:49:39
2016-01-30T12:49:39
48,224,631
2
0
null
null
null
null
UTF-8
Java
false
false
1,187
java
/* * Copyright 2015-2020 uuzu.com All right reserved. */ package com.mob.thor.communication.core.delegation.rmi; import com.mob.thor.communication.core.CommunicationEndpoint; import com.mob.thor.communication.core.delegation.connection.CommunicationConnection; import com.mob.thor.communication.core.exception.CommunicationException; import com.mob.thor.communication.core.model.CommunicationParam; import com.mob.thor.communication.core.model.Event; /** * 对应rmi的connection实现 * * @author zxc Dec 24, 2015 4:41:14 PM */ public class RmiCommunicationConnection implements CommunicationConnection { private CommunicationEndpoint endpoint; private CommunicationParam params; public RmiCommunicationConnection(CommunicationParam params, CommunicationEndpoint endpoint) { this.params = params; this.endpoint = endpoint; } public void close() throws CommunicationException { // do nothing } public Object call(Event event) { // 调用rmi传递数据到目标server上 return endpoint.acceptEvent(event); } @Override public CommunicationParam getParams() { return params; } }
[ "zhangxiongcai337@gmail.com" ]
zhangxiongcai337@gmail.com
c2e8f31e69b29f67e2bfd46c2411f978f61b7df2
573b9c497f644aeefd5c05def17315f497bd9536
/src/main/java/com/alipay/api/response/AlipayOfflineProviderEquipmentAuthRemoveResponse.java
48fd1e612838099fe361c093ecc4f233e3151490
[ "Apache-2.0" ]
permissive
zzzyw-work/alipay-sdk-java-all
44d72874f95cd70ca42083b927a31a277694b672
294cc314cd40f5446a0f7f10acbb5e9740c9cce4
refs/heads/master
2022-04-15T21:17:33.204840
2020-04-14T12:17:20
2020-04-14T12:17:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
933
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.offline.provider.equipment.auth.remove response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class AlipayOfflineProviderEquipmentAuthRemoveResponse extends AlipayResponse { private static final long serialVersionUID = 4253334365277128614L; /** * 被解绑的机具编号 */ @ApiField("device_id") private String deviceId; /** * 机具厂商PID */ @ApiField("merchant_pid") private String merchantPid; public void setDeviceId(String deviceId) { this.deviceId = deviceId; } public String getDeviceId( ) { return this.deviceId; } public void setMerchantPid(String merchantPid) { this.merchantPid = merchantPid; } public String getMerchantPid( ) { return this.merchantPid; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
89f486b8184e5556bdcc8d6ec33ef41a95b8575f
b4347feddc232095e8b043f4eaed2c04c6d35eff
/app/src/main/java/com/likeit/as51scholarship/model/Messageabean.java
8ef0202fd2d4c460de1f1144639953d2a2876f14
[]
no_license
13512780735/51
f7b17c06f852965d76ec2789cd610f3faef32420
c3bc87993a933f040e5cb5b1fad0a7d795eba3c9
refs/heads/master
2021-09-12T19:28:49.386555
2017-12-14T12:26:31
2017-12-14T12:26:31
112,406,078
0
1
null
null
null
null
UTF-8
Java
false
false
1,214
java
package com.likeit.as51scholarship.model; /** * Created by Administrator on 2017/9/29. */ public class Messageabean { /** * id : 1 * title : test公告 * content : test公告test公告test公告test公告test公告test公告test公告test公告test公告test公告 * link : http://www.wbteam.cn * create_time : 2017-09-29 16:13:41 */ private String id; private String title; private String content; private String link; private String create_time; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getLink() { return link; } public void setLink(String link) { this.link = link; } public String getCreate_time() { return create_time; } public void setCreate_time(String create_time) { this.create_time = create_time; } }
[ "931317632@qq.com" ]
931317632@qq.com
db052c1b8aa9e64f989bda1492ae41146553f5d1
15b260ccada93e20bb696ae19b14ec62e78ed023
/v2/src/main/java/com/alipay/api/response/AlipayDigitalmgmtAppAppreportQueryResponse.java
ac4f17d1913a16c384bd73a37fddff6112779a5f
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-java-all
df461d00ead2be06d834c37ab1befa110736b5ab
8cd1750da98ce62dbc931ed437f6101684fbb66a
refs/heads/master
2023-08-27T03:59:06.566567
2023-08-22T14:54:57
2023-08-22T14:54:57
132,569,986
470
207
Apache-2.0
2022-12-25T07:37:40
2018-05-08T07:19:22
Java
UTF-8
Java
false
false
888
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.domain.ApmobileAppDetectResultDTO; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.digitalmgmt.app.appreport.query response. * * @author auto create * @since 1.0, 2023-08-11 17:51:40 */ public class AlipayDigitalmgmtAppAppreportQueryResponse extends AlipayResponse { private static final long serialVersionUID = 3311649585663478897L; /** * 检测结果 */ @ApiField("apmobile_app_detect_result_dto") private ApmobileAppDetectResultDTO apmobileAppDetectResultDto; public void setApmobileAppDetectResultDto(ApmobileAppDetectResultDTO apmobileAppDetectResultDto) { this.apmobileAppDetectResultDto = apmobileAppDetectResultDto; } public ApmobileAppDetectResultDTO getApmobileAppDetectResultDto( ) { return this.apmobileAppDetectResultDto; } }
[ "auto-publish" ]
auto-publish
bae1e69c7d449c920aaa9d32befe4dbb96eacf18
1661886bc7ec4e827acdd0ed7e4287758a4ccc54
/srv_unip_pub/src/main/java/com/sa/unip/app/ywsp/ctrlhandler/OA_BGYPSQGridViewSearchFormHandler.java
f0cc5f1353091fb7435fa70f4084c8f456c8f0d8
[ "MIT" ]
permissive
zhanght86/iBizSys_unip
baafb4a96920e8321ac6a1b68735bef376b50946
a22b15ebb069c6a7432e3401bdd500a3ca37250e
refs/heads/master
2020-04-25T21:20:23.830300
2018-01-26T06:08:28
2018-01-26T06:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,257
java
/** * iBizSys 5.0 机器人生产代码(不要直接修改当前代码) * http://www.ibizsys.net */ package com.sa.unip.app.ywsp.ctrlhandler; import java.util.ArrayList; import java.util.List; import net.ibizsys.paas.util.StringHelper; import net.ibizsys.paas.web.WebContext; import net.ibizsys.paas.demodel.DEModelGlobal; import net.ibizsys.paas.demodel.IDataEntityModel; import net.ibizsys.paas.service.IService; import net.ibizsys.paas.service.ServiceGlobal; import com.sa.unip.app.srv.ywsp.ctrlmodel.OA_BGYPSQDefaultSearchFormModel; import com.sa.unip.srv.ywsp.demodel.OA_BGYPSQDEModel; import com.sa.unip.srv.ywsp.service.OA_BGYPSQService; import com.sa.unip.srv.ywsp.dao.OA_BGYPSQDAO; import com.sa.unip.srv.ywsp.entity.OA_BGYPSQ; import net.ibizsys.paas.ctrlmodel.ISearchFormModel; import net.ibizsys.paas.data.DataObject; import net.ibizsys.paas.data.IDataObject; import net.ibizsys.paas.web.AjaxActionResult; import net.ibizsys.paas.web.SDAjaxActionResult; import net.ibizsys.paas.sysmodel.ISystemRuntime; import net.ibizsys.paas.ctrlhandler.IFormItemHandler; import net.ibizsys.paas.ctrlhandler.IFormItemUpdateHandler; public class OA_BGYPSQGridViewSearchFormHandler extends net.ibizsys.paas.ctrlhandler.SearchFormHandlerBase { protected OA_BGYPSQDefaultSearchFormModel searchformModel = null; public OA_BGYPSQGridViewSearchFormHandler() { super(); } @Override protected void onInit() throws Exception { searchformModel = (OA_BGYPSQDefaultSearchFormModel)this.getViewController().getCtrlModel("searchform"); super.onInit(); } @Override protected ISearchFormModel getSearchFormModel() { return this.getRealSearchFormModel(); } protected OA_BGYPSQDefaultSearchFormModel getRealSearchFormModel() { return this.searchformModel ; } protected OA_BGYPSQService getRealService() { return (OA_BGYPSQService)this.getViewController().getService(); } /** * 准备部件成员处理对象 * @throws Exception */ @Override protected void prepareCtrlItemHandlers()throws Exception { super.prepareCtrlItemHandlers(); ISystemRuntime iSystemRuntime = (ISystemRuntime)this.getSystemModel(); } }
[ "dev@ibizsys.net" ]
dev@ibizsys.net
6d7f17cf1974184849f08c76da9f710010ebc732
2da87d8ef7afa718de7efa72e16848799c73029f
/ikep4-support/src/main/java/com/lgcns/ikep4/support/user/group/dao/GroupDao.java
25f96d42d90d35cd927235d5d0d95552fd29ce2d
[]
no_license
haifeiforwork/ehr-moo
d3ee29e2cae688f343164384958f3560255e52b2
921ff597b316a9a0111ed4db1d5b63b88838d331
refs/heads/master
2020-05-03T02:34:00.078388
2018-04-05T00:54:04
2018-04-05T00:54:04
178,373,434
0
1
null
2019-03-29T09:21:01
2019-03-29T09:21:01
null
UTF-8
Java
false
false
9,075
java
/* * Copyright (C) 2011 LG CNS Inc. * All rights reserved. * * 모든 권한은 LG CNS(http://www.lgcns.com)에 있으며, * LG CNS의 허락없이 소스 및 이진형식으로 재배포, 사용하는 행위를 금지합니다. */ package com.lgcns.ikep4.support.user.group.dao; import java.util.List; import java.util.Map; import com.lgcns.ikep4.framework.core.dao.GenericDao; import com.lgcns.ikep4.support.user.group.model.Group; import com.lgcns.ikep4.support.user.member.model.User; import com.lgcns.ikep4.support.user.member.model.UserSearchCondition; import com.lgcns.ikep4.util.model.GroupDetail; /** * 그룹 관리 DAO 정의 * * @author 양새로훈(yang.sae@gmail.com) * @version $Id: GroupDao.java 18238 2012-04-24 05:36:54Z yu_hs $ */ public interface GroupDao extends GenericDao<Group, String> { /** * 트리를 그리기 위해 조직도에서 그룹 목록 그룹타입별로 조회 * * @param group 조회조건이 있는 그룹 객체 * @return */ public List<Group> selectOrgGroupByGroupTypeId(Group group); /** * 그룹에 속해 있는 사용자 목록을 조회 * * @param id 조회할 그룹의 ID * @return */ @SuppressWarnings("rawtypes") public List selectUserInGroup(String groupId); /** * 사용자를 그룹에 매핑 * * @param user 그룹에 추가할 사용자 객체 */ public void addUserToGroup(User user); /** * 그룹 수정 후에 USER_GROUP 테이블 업데이트 * * @param user 업데이트할 사용자 객체 */ public void updateUserGroup(User user); /** * USER_GROUP 테이블에서 해당 그룹-사용자 매핑 정보 삭제 * * @param groupId 매핑정보를 삭제할 그룹 ID */ public void removeGroupFromUserGroup(String groupId); /** * ROLE_GROUP 테이블에서 해당 역할-사용자 매핑 정보 삭제 * * @param groupId 매핑정보를 삭제할 그룹 ID */ public void deleteGroupFromRole(String groupId); /** * GROUP_SYS_PERMISSION 테이블에서 관련 매핑 정보 삭제 * * @param groupId 매핑정보를 삭제할 그룹 ID */ public void deleteGroupFromSysPermission(String groupId); /** * GROUP_CON_PERMISSION 테이블에서 관련 매핑 정보 삭제 * * @param groupId 매핑정보를 삭제할 그룹 ID */ public void deleteGroupFromConPermission(String groupId); /** * USER_GROUP 테이블에서 사용자 정보를 상위그룹으로 이동(그룹 삭제시) * * @param user 이동할 사용자 정보 */ public void moveUserToParentGroup(User user); /** * 그룹 삭제시에 자식 그룹들을 이동하는 데에 필요함(현재는 자식이 있는 그룹은 삭제 못함) * * @param groupId 부모 그룹 ID * @return */ public List<Group> selectChild(String groupId); /** * 그룹 삭제 후에 하위 그룹 업데이트 * * @param groupId 부모 그룹 ID */ public void removeChild(String groupId); /** * 그룹 타입별로 그룹목록을 가져옴 * * @param group 부모 그룹 ID * @return */ public List<Group> selectGroupByGroupType(Group group); /** * 해당 그룹의 자식그룹 카운트를 업데이트함 * * @param parentGroupId 부모 그룹 ID * @param plusMinusFlag 카운트를 증가/감소 시키기 위한 플래그 */ public void updateChildGroupCount(String parentGroupId, String plusMinusFlag); /** * 정렬순서 최대값 가져오기 * * @return */ public String getMaxSortOrder(); /** * 그룹 이동 후에 그룹 정보를 업데이트함(ParentGroup, childCount 등) * * @param group 업데이트할 그룹 객체 */ public void updateMove(Group group); /** * 그룹 이동 후에 sortOrder 업데이트 * * @param group 업데이트할 그룹 객체 */ public void updateSortOrder(String prevSortOrder); /** * 그룹을 한단계 위로 이동(같은 레벨) * * @param map 이동 조건 * @return */ public Group goUp(Map<String, String> map); /** * 그룹을 한단계 아래로 이동(같은 레벨) * * @param map 이동 조건 * @return */ public Group goDown(Map<String, String> map); /** * 해당 사용자가 속한 최상위 그룹 조회 * * @param map 검색 조건 * @return */ public Group selectUserRootGroup(Map<String, Object> map); /** * 해당 사용자가 속한 그룹 조회 (최상위 그룹 제외) * * @param map 검색 조건 * @return */ public List<Group> selectUserGroupWithHierarchy(Map<String, Object> map); /** * 해당 사용자가 속한 그룹 조회 (그룹ID, 그룹명만 가져옴) * * @param map * @return */ public List<Group> selectUserGroup(Map<String, Object> map); /** * 그룹 목록을 그룹타입별로 가져옴 * * @param groupTypeId * @return */ public List<Group> selectAll(String groupTypeId); /** * 그룹 생성시에 그룹에 매핑되는 사용자의 Teamname을 업데이트 * * @param user */ public void updateTeamName(User user); /** * 해당 그룹의 부모 그룹을 가져옴 * * @param id * @return */ public String selectParentGroupId(String groupId); /* ===== 새로 추가하시는 경우 아래에 삽입하시기 바랍니다. ===== */ /** * 조직도에서 그룹 목록 가져오기 : 지정된 그룹에 대한 하위 그룹 * * @param group * @return */ public List<Group> selectOrgGroup(Group group); public List<Group> selectOrgGroupSp(Group group); /** * Collaboration에서 그룹 목록 가져오기 : 지정된 그룹에 대한 하위 그룹 * * @param groupId * @return */ public List<Group> selectCollaborationGroup(String groupId); /** * Sns에서 그룹 목록 가져오기 : 지정된 그룹에 대한 하위 그룹 * * @param groupId * @return */ public List<Group> selectSnsGroup(String groupId); /** * 조직도 부터 SNS 까지 모든 통합 그룹 검색 : 그룹명 검색 * * @param keyword * @return */ public List<Group> selectGroupSearch(Map<String, Object> map); /** * 모든 그룹 정보를 불러옴 * * @param searchCondition 검색 조건 * @return */ public List<Group> selectAll(UserSearchCondition searchCondition); /** * 모든 그룹 정보 갯수 * * @param searchCondition 검색 조건 * @return */ Integer countBySearchCondition(UserSearchCondition searchCondition); /** * FullPath 업데이트 * * @param group FullPath를 업데이트할 그룹 객체 */ public void updateFullPath(Group group); /** * 해당 사용자가 속한 겸직 그룹 조회 (최상위 그룹 제외) * * @param map * @return */ public List<Group> selectUserGroupOther(Map<String, Object> map); /** * 그룹 생성/수정시 Leader를 선택하는 경우 해당 User의 Leader flag 업데이트 * * @param user */ public void updateLeaderInfo(User user); /** * 그룹명 변경시 User 정보의 teamName을 업데이트하기 위한 정보 * * @param groupInfo 이전 그룹명과 변경된 그룹명을 가지고 있는 Map */ public void updateUserTeamName(Map<String, String> groupInfo); /** * 그룹명 변경시 User 정보의 대표그룹의 이름으로 teamName을 업데이트하기 위한 정보 * * @param groupInfo 그룹아이디와 변경된 그룹명을 가지고 있는 Map */ public void updateUserRepresentTeamName(Map<String, String> groupInfo); /** * 그룹 정보 변경시 User 정보에서 대표그룹 정보가 웹에서 받아오는 UserList에 포함되어있지 않기 때문에 본 Dao를 통해 * 기존의 대표그룹 정보를 가져와 새로 받아온 UserList에 넣어준다. * * @param userInfo */ public User selectUserInfoInGroup(Map<String, String> userInfo); /** * 사용자 그룹의 전체 경로 조회 * * @param userId * @return groupFullPath */ public String selectGroupFullPath(Map<String, Object> userInfo); /** * 그룹의 전체 경로 조회 * * @param userId * @return groupFullPath */ public String selectGroupFullPathByGroup(Map<String, Object> groupInfo); /** * 설문대상 그룹 목록 * @param surveyId * @return List<Group> */ public List<Group> getTargetGroup(String surveyId); /** * 그룹 루트 갯수 구하기 * @param map * @return rootGroupCount */ public int getRootGroupCount(Map<String, String> map); /** * 해당 그룹의 leader id 조회 * @param groupId * @return userId */ public String getLeaderForGroup(String groupId); /** * 해당 그룹의 리더 삭제 * @param group */ public void updateEmptyGroupLeader(Group group); /** * Sap 에서 수신한 조직정보를 저장한다. * @param groupDetail */ public void updateSapGroup(GroupDetail groupDetail); /** * Sap에서 수신된 그룹 정보가 담긴 tmp 테이블에서 실 테이블로 전송한다 * @return 수행된 결과값 */ public String updateEpTableFromTmpGroupTable(); public void deleteTmpGroup(String tmp); }
[ "haneul9@gmail.com" ]
haneul9@gmail.com
927814c641fe97ffd224bcd90903b99b609c0188
bc27749db347e1d73b37f03b54ff4f946f054be5
/qywx-spring-boot-model/src/main/java/com/github/shuaidd/dto/tool/Callee.java
46d6d2b51a1683b7542cb78ca7f9bf6b8339004b
[ "Apache-2.0" ]
permissive
shuaidd/qywx
163f50b72b8b260ec7ece0601274a1c6c6d4c918
816b49ad39311c58031154cf96b22d25b227e0e3
refs/heads/master
2023-08-08T14:56:13.989652
2022-12-28T01:33:56
2022-12-28T01:33:56
180,478,416
90
32
Apache-2.0
2023-06-14T22:26:52
2019-04-10T01:37:07
Java
UTF-8
Java
false
false
467
java
package com.github.shuaidd.dto.tool; /** * 描述 * * @author ddshuai * date 2019-04-11 13:38 **/ public class Callee { private String phone; private Long duration; public String getPhone() { return phone; } public void setPhone(String phone) { this.phone = phone; } public Long getDuration() { return duration; } public void setDuration(Long duration) { this.duration = duration; } }
[ "ddshuai@shinyway.com.cn" ]
ddshuai@shinyway.com.cn
e330b8157e7c9bed2ca01dbf3c588dad9dd33edd
da916cb0517ccb7e9e581086a32dbaffdeb67082
/src/com/agiletec/apsadmin/portal/ShowletsViewerAction.java
231e53887fae5539f0ef71341e716e819a6953cb
[]
no_license
zendasi/PortalExample
4cfb24415bb191f1926d7023bdc614fdc6df8607
40a195c9fe1aadc2e1a9e3325b022421414754c7
refs/heads/master
2022-11-30T09:23:41.105250
2012-03-25T16:50:00
2012-03-25T16:50:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,926
java
/* * * Copyright 2005 AgileTec s.r.l. (http://www.agiletec.it) All rights reserved. * * This file is part of jAPS software. * jAPS is a free software; * you can redistribute it and/or modify it * under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; version 2. * * See the file License for the specific language governing permissions * and limitations under the License * * * * Copyright 2005 AgileTec s.r.l. (http://www.agiletec.it) All rights reserved. * */ package com.agiletec.apsadmin.portal; import java.util.List; import com.agiletec.aps.system.ApsSystemUtils; import com.agiletec.aps.system.services.page.IPage; import com.agiletec.aps.system.services.showlettype.ShowletType; /** * @author E.Santoboni */ public class ShowletsViewerAction extends AbstractPortalAction implements IShowletsViewerAction { @Override public String viewShowlets() { return SUCCESS; } public List<IPage> getShowletUtilizers(String showletTypeCode) { List<IPage> utilizers = null; try { utilizers = this.getPageManager().getShowletUtilizers(showletTypeCode); } catch (Throwable t) { ApsSystemUtils.logThrowable(t, this, "getShowletUtilizers"); throw new RuntimeException("Error on extracting showletUtilizers : showlet type code " + showletTypeCode, t); } return utilizers; } @Override public String viewShowletUtilizers() { return SUCCESS; } public List<IPage> getShowletUtilizers() { return this.getShowletUtilizers(this.getShowletTypeCode()); } public ShowletType getShowletType(String typeCode) { return this.getShowletTypeManager().getShowletType(typeCode); } public String getShowletTypeCode() { return _showletTypeCode; } public void setShowletTypeCode(String showletTypeCode) { this._showletTypeCode = showletTypeCode; } /** * @uml.property name="_showletTypeCode" */ private String _showletTypeCode; }
[ "joel2.718@gmail.com" ]
joel2.718@gmail.com
149738378e086de582b0b446c3b4b0a1ee9e5b2b
4a637d7ae79bc677d668c893c389c89f3a4a9685
/application/src/test/java/com/hanfak/airport/usecase/LandPlaneUseCaseTest.java
aeabadf7061a8d85acd1dae9ea85f6ecb9400aa2
[]
no_license
hanfak/airportv2-mvn-enterprise
1e7cd0c41a5916dce096959fbf5ae034276ca0ac
216e14156ac73a53244f8065429747420ffff4af
refs/heads/master
2022-12-05T10:23:54.975715
2019-10-27T17:23:59
2019-10-27T17:23:59
171,629,334
0
0
null
2022-11-16T12:40:12
2019-02-20T08:12:01
Java
UTF-8
Java
false
false
6,009
java
package com.hanfak.airport.usecase; import com.hanfak.airport.domain.plane.Plane; import com.hanfak.airport.domain.planelandstatus.FailedPlaneLandStatus; import com.hanfak.airport.domain.planelandstatus.PlaneLandStatus; import com.hanfak.airport.domain.planelandstatus.SuccessfulPlaneLandStatus; import org.assertj.core.api.WithAssertions; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import org.slf4j.Logger; import static com.hanfak.airport.domain.AirportStatus.IN_AIRPORT; import static com.hanfak.airport.domain.AirportStatus.NOT_IN_AIRPORT; import static com.hanfak.airport.domain.plane.Plane.plane; import static com.hanfak.airport.domain.plane.PlaneId.planeId; import static com.hanfak.airport.domain.plane.PlaneStatus.FLYING; import static com.hanfak.airport.domain.plane.PlaneStatus.LANDED; import static com.hanfak.airport.domain.planelandstatus.FailedPlaneLandStatus.failedPlaneLandStatus; import static com.hanfak.airport.domain.planelandstatus.LandFailureReason.PLANE_COULD_NOT_LAND; import static com.hanfak.airport.domain.planelandstatus.LandFailureReason.PLANE_IS_LANDED; import static com.hanfak.airport.domain.planelandstatus.LandFailureReason.WEATHER_IS_STORMY; import static com.hanfak.airport.domain.planelandstatus.LandFailureReason.WEATHER_NOT_AVAILABLE; import static com.hanfak.airport.domain.planelandstatus.SuccessfulPlaneLandStatus.successfulPlaneLandStatus; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.never; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; public class LandPlaneUseCaseTest implements WithAssertions { @Test public void airportInstructsPlaneToLand() { PlaneLandStatus actionUnderTest = airport.instructPlaneToLand(flyingPlane); verify(planeInventoryService).addPlane(landedPlane); verify(logger).info(eq("Plane, 'A0001', has successfully landed at the airport")); assertThat(actionUnderTest.successfulPlaneLandStatus).isEqualTo(expectedSuccessfulPlaneLandStatus); } @Test public void cannotInstructPlaneToLandWhenPlaneIsNotFlying() { PlaneLandStatus actionUnderTest = airport.instructPlaneToLand(landedPlane); verify(planeInventoryService, never()).addPlane(landedPlane); verify(logger).info("Plane, 'A0001', could not land at the airport as it's status is 'LANDED'"); assertThat(actionUnderTest.failedPlaneLandStatus).isEqualTo(expectedFailedPlaneLandStatusForLandedPlane); } @Test public void cannotLandWhenWeatherIsStormy() { when(weatherService.isStormy()).thenReturn(true); PlaneLandStatus actionUnderTest = airport.instructPlaneToLand(flyingPlane); verify(logger).info("Plane, 'A0001', could not land at the airport as it is stormy"); assertThat(actionUnderTest.failedPlaneLandStatus).isEqualTo(expectedFailedPlaneLandStatusForStormyWeather); } @Test public void cannotLandWhenAccessToWeatherIsNotWorking() { IllegalStateException cause = new IllegalStateException("Blah"); Mockito.doThrow(cause).when(weatherService).isStormy(); PlaneLandStatus actionUnderTest = airport.instructPlaneToLand(flyingPlane); verify(logger).error("Something went wrong retrieving the weather at the airport", cause); assertThat(actionUnderTest.failedPlaneLandStatus).isEqualTo(expectedFailedPlaneLandStatusForWeatherError); } @Test public void cannotLandWhenIssueWithSystem() { IllegalStateException cause = new IllegalStateException("Blah"); Mockito.doThrow(cause).when(planeInventoryService).addPlane(landedPlane); PlaneLandStatus actionUnderTest = airport.instructPlaneToLand(flyingPlane); verify(logger).error("Something went wrong storing the Plane, 'A0001', at the airport", cause); assertThat(actionUnderTest.failedPlaneLandStatus).isEqualTo(expectedFailedPlaneLandStatusForSystemError); } @Test public void cannotLandWhenSystemErrorForCheckingPlaneInAirport() { IllegalStateException cause = new IllegalStateException("Blah"); Mockito.doThrow(cause).when(planeInventoryService).planeIsPresentInAirport(landedPlane); PlaneLandStatus actionUnderTest = airport.instructPlaneToLand(flyingPlane); verify(logger).error("Something went wrong storing the Plane, 'A0001', at the airport", cause); assertThat(actionUnderTest.failedPlaneLandStatus).isEqualTo(expectedFailedPlaneLandStatusForSystemError); } @Before public void setUp() { // Not needed, as the method returns a primitive in WeatherService, which mockito automatically returns a default // But for readability, better to show the priming when(weatherService.isStormy()).thenReturn(false); } private final SuccessfulPlaneLandStatus expectedSuccessfulPlaneLandStatus = successfulPlaneLandStatus(planeId("A0001"), LANDED, IN_AIRPORT); private final FailedPlaneLandStatus expectedFailedPlaneLandStatusForLandedPlane = failedPlaneLandStatus(planeId("A0001"), LANDED, NOT_IN_AIRPORT, PLANE_IS_LANDED); private final FailedPlaneLandStatus expectedFailedPlaneLandStatusForSystemError = failedPlaneLandStatus(planeId("A0001"), FLYING, NOT_IN_AIRPORT, PLANE_COULD_NOT_LAND); private final FailedPlaneLandStatus expectedFailedPlaneLandStatusForWeatherError = failedPlaneLandStatus(planeId("A0001"), FLYING, NOT_IN_AIRPORT, WEATHER_NOT_AVAILABLE); private final FailedPlaneLandStatus expectedFailedPlaneLandStatusForStormyWeather = failedPlaneLandStatus(planeId("A0001"), FLYING, NOT_IN_AIRPORT, WEATHER_IS_STORMY); private final PlaneInventoryService planeInventoryService = mock(PlaneInventoryService.class); private final Logger logger = mock(Logger.class); private final WeatherService weatherService = mock(WeatherService.class); private final LandPlaneUseCase airport = new LandPlaneUseCase(planeInventoryService, logger, weatherService); private final Plane flyingPlane = plane(planeId("A0001"), FLYING); private final Plane landedPlane = plane(planeId("A0001"), LANDED); }
[ "fakira.work@gmail.com" ]
fakira.work@gmail.com
09a2334db1039116ced4e999de901be4aabec836
1aef4669e891333de303db570c7a690c122eb7dd
/src/main/java/com/alipay/api/response/KoubeiTradeOrderEnterpriseSettleResponse.java
858073c88a654ce6f29d389f0b0d624265cbb06b
[ "Apache-2.0" ]
permissive
fossabot/alipay-sdk-java-all
b5d9698b846fa23665929d23a8c98baf9eb3a3c2
3972bc64e041eeef98e95d6fcd62cd7e6bf56964
refs/heads/master
2020-09-20T22:08:01.292795
2019-11-28T08:12:26
2019-11-28T08:12:26
224,602,331
0
0
Apache-2.0
2019-11-28T08:12:26
2019-11-28T08:12:25
null
UTF-8
Java
false
false
1,250
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.trade.order.enterprise.settle response. * * @author auto create * @since 1.0, 2019-03-29 18:50:02 */ public class KoubeiTradeOrderEnterpriseSettleResponse extends AlipayResponse { private static final long serialVersionUID = 5748128488453659294L; /** * 描述本次返回中的业务属性,该字段用于描述本次返回中的业务属性,现有:BIZ_ALREADY_SUCCESS(幂等业务码) */ @ApiField("biz_code") private String bizCode; /** * 口碑订单号 */ @ApiField("order_no") private String orderNo; /** * 传入的商户订单号 */ @ApiField("out_order_no") private String outOrderNo; public void setBizCode(String bizCode) { this.bizCode = bizCode; } public String getBizCode( ) { return this.bizCode; } public void setOrderNo(String orderNo) { this.orderNo = orderNo; } public String getOrderNo( ) { return this.orderNo; } public void setOutOrderNo(String outOrderNo) { this.outOrderNo = outOrderNo; } public String getOutOrderNo( ) { return this.outOrderNo; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
e7e42e24e7f8fd52301f7a72b0f52e4110b35476
ba7ea425a956d6ed74d7d52549c6c660071e312d
/stub-idp/src/main/java/uk/gov/ida/stub/idp/resources/singleidp/SingleIdpPreRegistrationResource.java
e8a19775c3bdeb6caf84af38729dce8ecaf9054e
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
willp-bl/verify-stub-idp
a7860f1854f414ee0ba0c5d2620bf0cd77f8a11a
bfbf554b4d73c45e434cc9c1c2117d0388145069
refs/heads/monorepo
2023-07-06T01:46:02.867893
2019-02-19T16:15:04
2019-02-19T16:15:04
128,985,826
0
1
MIT
2019-09-25T20:43:39
2018-04-10T19:37:08
Java
UTF-8
Java
false
false
3,026
java
package uk.gov.ida.stub.idp.resources.singleidp; import uk.gov.ida.common.SessionId; import uk.gov.ida.stub.idp.Urls; import uk.gov.ida.stub.idp.cookies.CookieFactory; import uk.gov.ida.stub.idp.repositories.Idp; import uk.gov.ida.stub.idp.repositories.IdpSession; import uk.gov.ida.stub.idp.repositories.IdpSessionRepository; import uk.gov.ida.stub.idp.repositories.IdpStubsRepository; import uk.gov.ida.stub.idp.views.CancelPreRegistrationPageView; import uk.gov.ida.stub.idp.views.ErrorMessageType; import uk.gov.ida.stub.idp.views.RegistrationPageView; import javax.inject.Inject; import javax.validation.constraints.NotNull; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import java.util.Optional; import java.util.UUID; import static uk.gov.ida.stub.idp.views.ErrorMessageType.NO_ERROR; @Path(Urls.SINGLE_IDP_PRE_REGISTER_RESOURCE) @Produces(MediaType.TEXT_HTML) public class SingleIdpPreRegistrationResource { private final IdpStubsRepository idpStubsRepository; private final CookieFactory cookieFactory; private final IdpSessionRepository idpSessionRepository; @Inject public SingleIdpPreRegistrationResource( IdpStubsRepository idpStubsRepository, CookieFactory cookieFactory, IdpSessionRepository idpSessionRepository) { this.idpStubsRepository = idpStubsRepository; this.cookieFactory = cookieFactory; this.idpSessionRepository = idpSessionRepository; } @GET @Path(Urls.SINGLE_IDP_PRE_REGISTER_CANCEL_PATH) @Produces(MediaType.TEXT_HTML) public Response getPreRegisterCancel( @PathParam(Urls.IDP_ID_PARAM) @NotNull String idpName, @QueryParam(Urls.ERROR_MESSAGE_PARAM) Optional<ErrorMessageType> errorMessage) { Idp idp = idpStubsRepository.getIdpWithFriendlyId(idpName); return Response.ok(new CancelPreRegistrationPageView(idp.getDisplayName(), idp.getFriendlyId(), errorMessage.orElse(NO_ERROR).getMessage(), idp.getAssetId())).build(); } @GET public Response getPreRegister( @PathParam(Urls.IDP_ID_PARAM) @NotNull String idpName, @QueryParam(Urls.ERROR_MESSAGE_PARAM) Optional<ErrorMessageType> errorMessage) { Idp idp = idpStubsRepository.getIdpWithFriendlyId(idpName); IdpSession session = new IdpSession( new SessionId(UUID.randomUUID().toString())); final SessionId sessionId = idpSessionRepository.createSession(session); idpSessionRepository.updateSession(session.getSessionId(), session.setNewCsrfToken()); return Response.ok(new RegistrationPageView(idp.getDisplayName(), idp.getFriendlyId(), errorMessage.orElse(NO_ERROR).getMessage(), idp.getAssetId(), Urls.SINGLE_IDP_PRE_REGISTER_PATH, session.getCsrfToken())) .cookie(cookieFactory.createSessionIdCookie(sessionId)) .build(); } }
[ "william.palmer@digital.cabinet-office.gov.uk" ]
william.palmer@digital.cabinet-office.gov.uk
6708795d65a36e6cc97708f20ba1166101cf23f5
18606c6b3f164a935e571932b3356260b493e543
/benchmarks/xalan/src/org/apache/xpath/operations/Plus.java
490e88c7b35d07f2fbae21a77eaf82fdf47dbdec
[ "Apache-2.0", "BSD-2-Clause", "Apache-1.1" ]
permissive
jackyhaoli/abc
d9a3bd2d4140dd92b9f9d0814eeafa16ea7163c4
42071b0dcb91db28d7b7fdcffd062f567a5a1e6c
refs/heads/master
2020-04-03T09:34:47.612136
2019-01-11T07:16:04
2019-01-11T07:16:04
155,169,244
0
0
null
null
null
null
UTF-8
Java
false
false
3,987
java
/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xalan" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 1999, Lotus * Development Corporation., http://www.lotus.com. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package org.apache.xpath.operations; import org.apache.xpath.objects.XObject; import org.apache.xpath.objects.XNumber; import org.apache.xpath.XPathContext; /** * The '+' operation expression executer. */ public class Plus extends Operation { /** * Apply the operation to two operands, and return the result. * * * @param left non-null reference to the evaluated left operand. * @param right non-null reference to the evaluated right operand. * * @return non-null reference to the XObject that represents the result of the operation. * * @throws javax.xml.transform.TransformerException */ public XObject operate(XObject left, XObject right) throws javax.xml.transform.TransformerException { return new XNumber(left.num() + right.num()); } /** * Evaluate this operation directly to a double. * * @param xctxt The runtime execution context. * * @return The result of the operation as a double. * * @throws javax.xml.transform.TransformerException */ public double num(XPathContext xctxt) throws javax.xml.transform.TransformerException { return (m_right.num(xctxt) + m_left.num(xctxt)); } }
[ "xiemaisi@40514614-586c-40e6-bf05-bf7e477dc3e6" ]
xiemaisi@40514614-586c-40e6-bf05-bf7e477dc3e6
d60a3acc25061be64343e4e1bd296fc4b4076787
e5488dea88f1036ac9fbb61816bae69d70a9d763
/core/cdi-injection-point/src/main/java/org/agoncal/fascicle/quarkus/core/cdi/injectionpoint/IsbnGenerator.java
be0455ccf051edc4167c08bff2068d8d5a7f6e34
[ "MIT" ]
permissive
fg78nc/agoncal-fascicle-quarkus
1572eb5aeaddda11708c3ea3d2f4fd1474295323
5a62b42d4e246a279eb188f6f1c09c02e0e85b8b
refs/heads/master
2023-01-12T18:28:19.834971
2020-11-09T13:46:37
2020-11-09T13:46:37
null
0
0
null
null
null
null
UTF-8
Java
false
false
439
java
package org.agoncal.fascicle.quarkus.core.cdi.injectionpoint; import javax.enterprise.context.ApplicationScoped; import java.util.Random; /** * @author Antonio Goncalves * http://www.antoniogoncalves.org * -- */ // tag::adocSnippet[] @ApplicationScoped public class IsbnGenerator implements NumberGenerator { public String generateNumber() { return "13-84356-" + Math.abs(new Random().nextInt()); } } // end::adocSnippet[]
[ "antonio.goncalves@gmail.com" ]
antonio.goncalves@gmail.com
ba24fec0a1487b8a815cebaff526135b51e98dcd
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-14152-5-20-PESA_II-WeightedSum:TestLen:CallDiversity/com/xpn/xwiki/store/hibernate/query/HqlQueryExecutor_ESTest_scaffolding.java
745afea904d5190b4f044c8635fe2f4366837a44
[]
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
3,784
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Thu Apr 02 13:28:31 UTC 2020 */ package com.xpn.xwiki.store.hibernate.query; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import static org.evosuite.shaded.org.mockito.Mockito.*; @EvoSuiteClassExclude public class HqlQueryExecutor_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {} } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(HqlQueryExecutor_ESTest_scaffolding.class.getClassLoader() , "com.xpn.xwiki.XWikiException", "org.xwiki.security.authorization.Right", "org.xwiki.component.phase.Initializable", "org.xwiki.query.QueryException", "org.xwiki.query.QueryFilter", "org.xwiki.query.Query", "org.xwiki.query.internal.CountDocumentFilter", "org.xwiki.component.annotation.Component", "org.xwiki.model.reference.EntityReference", "org.hibernate.Session", "com.xpn.xwiki.store.XWikiStoreInterface", "org.xwiki.security.authorization.RightDescription", "org.xwiki.component.phase.InitializationException", "org.xwiki.security.authorization.ContextualAuthorizationManager", "com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor", "org.xwiki.query.internal.AbstractQueryFilter", "org.xwiki.component.annotation.Role", "org.xwiki.query.internal.DefaultQuery", "org.hibernate.Query", "org.xwiki.query.SecureQuery", "com.xpn.xwiki.store.XWikiHibernateBaseStore$HibernateCallback", "org.xwiki.context.Execution", "org.xwiki.query.QueryExecutor", "com.xpn.xwiki.store.XWikiHibernateStore", "org.xwiki.security.authorization.AuthorizationException", "com.xpn.xwiki.store.hibernate.HibernateSessionFactory", "org.xwiki.security.authorization.AccessDeniedException", "com.xpn.xwiki.XWikiContext", "com.xpn.xwiki.store.XWikiHibernateBaseStore", "org.xwiki.job.event.status.JobProgressManager" ); } private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException { mock(Class.forName("org.xwiki.security.authorization.ContextualAuthorizationManager", false, HqlQueryExecutor_ESTest_scaffolding.class.getClassLoader())); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
a324be50e7273a4e1ef894bf15055b2b2c73af7f
a85d2dccd5eab048b22b2d66a0c9b8a3fba4d6c2
/rebellion_h5_realm/java/l2r/gameserver/listener/actor/OnReviveListener.java
513abc4e747bc70ec0186f84cb0bb7e577187ea9
[]
no_license
netvirus/reb_h5_storm
96d29bf16c9068f4d65311f3d93c8794737d4f4e
861f7845e1851eb3c22d2a48135ee88f3dd36f5c
refs/heads/master
2023-04-11T18:23:59.957180
2021-04-18T02:53:10
2021-04-18T02:53:10
252,070,605
0
0
null
2021-04-18T02:53:11
2020-04-01T04:19:39
HTML
UTF-8
Java
false
false
261
java
package l2r.gameserver.listener.actor; import l2r.gameserver.listener.CharListener; import l2r.gameserver.model.Creature; /** * @author VISTALL */ public interface OnReviveListener extends CharListener { public void onRevive(Creature actor); }
[ "l2agedev@gmail.com" ]
l2agedev@gmail.com
4b8da17c762badf40151d9ccfa82c4eb1dd99d2b
ec385ccc5b07248b9ae2c3841d49c6fe063889d6
/src/main/java/com/freedy/principles/openClose/AbstractSkin.java
06abca8fb3a86c27e0c28825806e905db8d34d45
[]
no_license
Freedy001/design-pattern
40b7c6d783396edb1c07b023d5a40d250ad97bc9
a45c55ee1705857565e5039cb0e4387684335167
refs/heads/master
2023-05-31T15:08:09.122711
2021-07-13T02:48:20
2021-07-13T02:48:20
378,608,168
1
0
null
null
null
null
UTF-8
Java
false
false
167
java
package com.freedy.principles.openClose; /** * @author Freedy * @date 2021/6/6 22:43 */ public abstract class AbstractSkin { public abstract void display(); }
[ "985948228@qq.com" ]
985948228@qq.com
3437e604ca5b7eb77d54a5449642eb7473dd6e7d
6e5c37409a53c882bf41ba5bbbf49975d6c1c9aa
/src/org/hl7/v3/XDocumentProcedureMood.java
a6e1fbaa2d9e0945f8754791d20e299cfe359520
[]
no_license
hosflow/fwtopsysdatasus
46fdf8f12ce1fd5628a04a2145757798b622ee9f
2d9a835fcc7fd902bc7fb0b19527075c1260e043
refs/heads/master
2021-09-03T14:39:52.008357
2018-01-09T20:34:19
2018-01-09T20:34:19
116,867,672
0
0
null
null
null
null
IBM852
Java
false
false
1,054
java
package org.hl7.v3; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java de x_DocumentProcedureMood. * * <p>O seguinte fragmento do esquema especifica o conte˙do esperado contido dentro desta classe. * <p> * <pre> * &lt;simpleType name="x_DocumentProcedureMood"> * &lt;restriction base="{urn:hl7-org:v3}cs"> * &lt;enumeration value="APT"/> * &lt;enumeration value="ARQ"/> * &lt;enumeration value="DEF"/> * &lt;enumeration value="EVN"/> * &lt;enumeration value="INT"/> * &lt;enumeration value="PRMS"/> * &lt;enumeration value="PRP"/> * &lt;enumeration value="RQO"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "x_DocumentProcedureMood") @XmlEnum public enum XDocumentProcedureMood { APT, ARQ, DEF, EVN, INT, PRMS, PRP, RQO; public String value() { return name(); } public static XDocumentProcedureMood fromValue(String v) { return valueOf(v); } }
[ "andre.topazio@gmail.com" ]
andre.topazio@gmail.com
d3894627b2b0c75525b0f8d78230b9314e74d350
e3780c806fdb6798abf4ad5c3a7cb49e3d05f67a
/src/main/java/com/hankcs/hanlp/dependency/nnparser/util/std.java
5133fe32fa638f6d727e45b2804845be73ddb703
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
AnyListen/HanLP
7e3cf2774f0980d24ecab0568ad59774232a56d6
58e5f6cda0b894cad156b06ac75bd397c9e26de3
refs/heads/master
2021-01-22T04:23:14.514117
2018-12-11T01:27:36
2018-12-11T01:27:36
125,140,795
1
1
Apache-2.0
2018-04-16T16:49:47
2018-03-14T02:04:04
Java
UTF-8
Java
false
false
1,178
java
/* * <summary></summary> * <author>He Han</author> * <email>me@hankcs.com</email> * <create-date>2015/10/31 21:26</create-date> * * <copyright file="std.java" company="��ũ��"> * Copyright (c) 2008-2015, ��ũ��. All Right Reserved, http://www.hankcs.com/ * This source is subject to Hankcs. Please contact Hankcs to get more information. * </copyright> */ package com.hankcs.hanlp.dependency.nnparser.util; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; /** * @author hankcs */ public class std { public static <E> void fill(List<E> list, E value) { if (list == null) return; ListIterator<E> listIterator = list.listIterator(); while (listIterator.hasNext()) listIterator.set(value); } public static <E> List<E> create(int size, E value) { List<E> list = new ArrayList<E>(size); for (int i = 0; i < size; i++) { list.add(value); } return list; } public static <E> E pop_back(List<E> list) { E back = list.get(list.size() - 1); list.remove(list.size() - 1); return back; } }
[ "jfservice@126.com" ]
jfservice@126.com
645cf2af0256922655674c2ad91cd7f9d02fc94d
93a82eebc89db6e905bb52505870be1cc689566d
/materialdesign/app/src/main/java/top/zcwfeng/materialdesign/drawer/ui/home/HomeFragment.java
618af8f0f193109aea75d07327947e6c1868a916
[]
no_license
zcwfeng/zcw_android_demo
78cdc86633f01babfe99972b9fde52a633f65af9
f990038fd3643478dbf4f65c03a70cd2f076f3a0
refs/heads/master
2022-07-27T05:32:09.421349
2022-03-14T02:56:41
2022-03-14T02:56:41
202,998,648
15
8
null
null
null
null
UTF-8
Java
false
false
1,205
java
package top.zcwfeng.materialdesign.drawer.ui.home; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProviders; import top.zcwfeng.materialdesign.R; public class HomeFragment extends Fragment { private HomeViewModel homeViewModel; public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { homeViewModel = ViewModelProviders.of(this).get(HomeViewModel.class); View root = inflater.inflate(R.layout.fragment_home, container, false); final TextView textView = root.findViewById(R.id.text_home); homeViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() { @Override public void onChanged(@Nullable String s) { textView.setText(s); } }); return root; } }
[ "zcwfeng@126.com" ]
zcwfeng@126.com
654741e3516a4716c50ccbb384c13219eb4c62ba
9b75d8540ff2e55f9ff66918cc5676ae19c3bbe3
/bazaar8.apk-decompiled/sources/b/B/f/d.java
d4737a285197cce0038ea9146968d5fb962c76e8
[]
no_license
BaseMax/PopularAndroidSource
a395ccac5c0a7334d90c2594db8273aca39550ed
bcae15340907797a91d39f89b9d7266e0292a184
refs/heads/master
2020-08-05T08:19:34.146858
2019-10-06T20:06:31
2019-10-06T20:06:31
212,433,298
2
0
null
null
null
null
UTF-8
Java
false
false
3,059
java
package b.b.f; import android.content.Context; import android.content.ContextWrapper; import android.content.res.AssetManager; import android.content.res.Configuration; import android.content.res.Resources; import android.os.Build; import android.view.LayoutInflater; import b.b.i; /* compiled from: ContextThemeWrapper */ public class d extends ContextWrapper { /* renamed from: a reason: collision with root package name */ public int f1948a; /* renamed from: b reason: collision with root package name */ public Resources.Theme f1949b; /* renamed from: c reason: collision with root package name */ public LayoutInflater f1950c; /* renamed from: d reason: collision with root package name */ public Configuration f1951d; /* renamed from: e reason: collision with root package name */ public Resources f1952e; public d() { super(null); } public final Resources a() { if (this.f1952e == null) { Configuration configuration = this.f1951d; if (configuration == null) { this.f1952e = super.getResources(); } else if (Build.VERSION.SDK_INT >= 17) { this.f1952e = createConfigurationContext(configuration).getResources(); } } return this.f1952e; } public void attachBaseContext(Context context) { super.attachBaseContext(context); } public int b() { return this.f1948a; } public final void c() { boolean z = this.f1949b == null; if (z) { this.f1949b = getResources().newTheme(); Resources.Theme theme = getBaseContext().getTheme(); if (theme != null) { this.f1949b.setTo(theme); } } a(this.f1949b, this.f1948a, z); } public AssetManager getAssets() { return getResources().getAssets(); } public Resources getResources() { return a(); } public Object getSystemService(String str) { if (!"layout_inflater".equals(str)) { return getBaseContext().getSystemService(str); } if (this.f1950c == null) { this.f1950c = LayoutInflater.from(getBaseContext()).cloneInContext(this); } return this.f1950c; } public Resources.Theme getTheme() { Resources.Theme theme = this.f1949b; if (theme != null) { return theme; } if (this.f1948a == 0) { this.f1948a = i.Theme_AppCompat_Light; } c(); return this.f1949b; } public void setTheme(int i2) { if (this.f1948a != i2) { this.f1948a = i2; c(); } } public d(Context context, int i2) { super(context); this.f1948a = i2; } public d(Context context, Resources.Theme theme) { super(context); this.f1949b = theme; } public void a(Resources.Theme theme, int i2, boolean z) { theme.applyStyle(i2, true); } }
[ "MaxBaseCode@gmail.com" ]
MaxBaseCode@gmail.com
4fcbe4ff4b59caa4bb19cb2731a94782624e091a
f60471980e66e5b37be95b0db07b19c4de16fee5
/dBrowser/src/org/reldb/relang/filtersorter/SearchAdvanced.java
44ff4d0eac386f02ab2c49671947a76513c3fbb5
[ "Apache-2.0" ]
permissive
kevinmiles/Relang
0cd8ce3a2cf43c3e24ece6d674eaa3842c0970bb
26e8a6b34b9ca4122902b9cfbc34f1fea31e51f8
refs/heads/master
2022-03-12T22:45:10.857261
2019-11-05T21:46:26
2019-11-05T21:46:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,342
java
package org.reldb.relang.filtersorter; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.ToolBar; import org.eclipse.swt.widgets.ToolItem; public class SearchAdvanced extends Composite implements Searcher { private static final String emptyFilterPrompt = "Click here to set filter criteria."; private FilterSorter filterSorter; private SearchAdvancedPanel filterer; private Label filterSpec; private PopupComposite popup; public SearchAdvanced(FilterSorter filterSorter, Composite contentPanel) { super(contentPanel, SWT.NONE); this.filterSorter = filterSorter; GridLayout layout = new GridLayout(2, false); layout.horizontalSpacing = 0; layout.verticalSpacing = 0; layout.marginWidth = 0; layout.marginHeight = 0; setLayout(layout); filterSpec = new Label(this, SWT.NONE); filterSpec.setText(emptyFilterPrompt); filterSpec.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1)); filterSpec.addListener(SWT.MouseUp, e -> popup()); ToolBar toolBar = new ToolBar(this, SWT.NONE); ToolItem clear = new ToolItem(toolBar, SWT.PUSH); clear.addListener(SWT.Selection, e -> { filterSpec.setText(emptyFilterPrompt); filterSorter.refresh(); }); clear.setText("Clear"); toolBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); this.addListener(SWT.Show, e -> { if (filterSpec.getText().equals(emptyFilterPrompt)) popup(); }); constructPopup(); } private void constructPopup() { popup = new PopupComposite(getShell()); popup.setLayout(new GridLayout(1, false)); filterer = new SearchAdvancedPanel(filterSorter.getAttributeNames(), popup); filterer.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1)); Composite buttonPanel = new Composite(popup, SWT.NONE); buttonPanel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1)); buttonPanel.setLayout(new GridLayout(3, false)); Button okButton = new Button(buttonPanel, SWT.PUSH); okButton.setText("Ok"); okButton.addListener(SWT.Selection, e -> ok()); Button cancelButton = new Button(buttonPanel, SWT.PUSH); cancelButton.setText("Cancel"); cancelButton.addListener(SWT.Selection, e -> { filterer.cancel(); popup.hide(); }); Button clearButton = new Button(buttonPanel, SWT.PUSH); clearButton.setText("Clear"); clearButton.addListener(SWT.Selection, e -> { filterer.clear(); filterSpec.setText(emptyFilterPrompt); filterSorter.refresh(); }); popup.pack(); } public void ok() { filterer.ok(); String spec = filterer.getWhereClause().trim(); if (spec.length() == 0) filterSpec.setText(emptyFilterPrompt); else filterSpec.setText(spec); popup.hide(); filterSorter.refresh(); } private void popup() { if (!popup.isDisplayed()) popup.show(toDisplay(0, 0)); } public void clicked() { if (getVisible() == false && !filterSpec.getText().equals(emptyFilterPrompt)) return; popup(); } public String getQuery() { String spec = filterSpec.getText(); return !spec.equals(emptyFilterPrompt) ? " WHERE " + spec : ""; } }
[ "dave@armchair.mb.ca" ]
dave@armchair.mb.ca
4390a1920d06650ebc6c509676816760dcb35cb7
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/27/27_97d10d0d2582a6b7f1c32448ed254c6bf8f9d8b2/Folder/27_97d10d0d2582a6b7f1c32448ed254c6bf8f9d8b2_Folder_s.java
524f76f0745ab0be55b91b861192d256bb912234
[]
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
3,508
java
package com.fsck.k9.mail; public abstract class Folder { public enum OpenMode { READ_WRITE, READ_ONLY, } public enum FolderType { HOLDS_FOLDERS, HOLDS_MESSAGES, } /** * Forces an open of the MailProvider. If the provider is already open this * function returns without doing anything. * * @param mode READ_ONLY or READ_WRITE */ public abstract void open(OpenMode mode) throws MessagingException; /** * Forces a close of the MailProvider. Any further access will attempt to * reopen the MailProvider. * * @param expunge If true all deleted messages will be expunged. */ public abstract void close(boolean expunge) throws MessagingException; /** * @return True if further commands are not expected to have to open the * connection. */ public abstract boolean isOpen(); /** * Get the mode the folder was opened with. This may be different than the mode the open * was requested with. * @return */ public abstract OpenMode getMode() throws MessagingException; public abstract boolean create(FolderType type) throws MessagingException; /** * Create a new folder with a specified display limit. Not abstract to allow * remote folders to not override or worry about this call if they don't care to. */ public boolean create(FolderType type, int displayLimit) throws MessagingException { return create(type); } public abstract boolean exists() throws MessagingException; /** * @return A count of the messages in the selected folder. */ public abstract int getMessageCount() throws MessagingException; public abstract int getUnreadMessageCount() throws MessagingException; public abstract Message getMessage(String uid) throws MessagingException; public abstract Message[] getMessages(int start, int end, MessageRetrievalListener listener) throws MessagingException; /** * Fetches the given list of messages. The specified listener is notified as * each fetch completes. Messages are downloaded as (as) lightweight (as * possible) objects to be filled in with later requests. In most cases this * means that only the UID is downloaded. * * @param uids * @param listener */ public abstract Message[] getMessages(MessageRetrievalListener listener) throws MessagingException; public abstract Message[] getMessages(String[] uids, MessageRetrievalListener listener) throws MessagingException; public abstract void appendMessages(Message[] messages) throws MessagingException; public abstract void copyMessages(Message[] msgs, Folder folder) throws MessagingException; public abstract void setFlags(Message[] messages, Flag[] flags, boolean value) throws MessagingException; public abstract Message[] expunge() throws MessagingException; public abstract void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) throws MessagingException; public abstract void delete(boolean recurse) throws MessagingException; public abstract String getName(); public abstract Flag[] getPermanentFlags() throws MessagingException; @Override public String toString() { return getName(); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
f5f0152c7791589540db87bdedc27b93a446b416
ed03478dc06eb8fea7c98c03392786cd04034b82
/src/com/era/community/assignment/dao/generated/AssignmentsFinderBase.java
9e86e5c2ed8c2a3df207a957577f16448a3b6045
[]
no_license
sumit-kul/cera
264351934be8f274be9ed95460ca01fa9fc23eed
34343e2f5349bab8f5f78b9edf18f2e0319f62d5
refs/heads/master
2020-12-25T05:17:19.207603
2016-09-04T00:02:31
2016-09-04T00:02:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
271
java
package com.era.community.assignment.dao.generated; import com.era.community.assignment.dao.Assignments; public interface AssignmentsFinderBase { public Assignments getAssignmentsForId(int id) throws Exception; public Assignments newAssignments() throws Exception; }
[ "sumitkul2005@gmail.com" ]
sumitkul2005@gmail.com
1ab0fca7c6148cd2bbdb4239fcb0ee8a7cc47a37
65e98c214f8512264f5f33ba0f2dec3c0a6b06e5
/transfuse/src/main/java/org/androidtransfuse/adapter/element/ASTTypeBuilderVisitor.java
bacdac1486e4206031037f24430f5221bae09b71
[ "Apache-2.0" ]
permissive
histone/transfuse
46535168651de5fe60745b3557bba3a3b47fca20
d7b642db063cf8d9d64d06a1ea402a7aecbbe994
refs/heads/master
2021-01-15T20:49:04.801629
2013-02-02T03:11:38
2013-02-02T03:11:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,602
java
/** * Copyright 2013 John Ericksen * * 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.androidtransfuse.adapter.element; import com.google.common.base.Function; import org.androidtransfuse.adapter.*; import org.androidtransfuse.analysis.TransfuseAnalysisException; import org.androidtransfuse.processor.TransactionRuntimeException; import javax.inject.Inject; import javax.inject.Provider; import javax.lang.model.element.TypeElement; import javax.lang.model.type.*; import javax.lang.model.util.SimpleTypeVisitor6; /** * Builder of an ASTType from a TypeMirror input * * @author John Ericksen */ public class ASTTypeBuilderVisitor extends SimpleTypeVisitor6<ASTType, Void> implements Function<TypeMirror, ASTType> { private final Provider<ASTElementFactory> astElementFactoryProvider; @Inject public ASTTypeBuilderVisitor(Provider<ASTElementFactory> astElementFactoryProvider) { this.astElementFactoryProvider = astElementFactoryProvider; } @Override public ASTType visitPrimitive(PrimitiveType primitiveType, Void v) { return ASTPrimitiveType.valueOf(primitiveType.getKind().name()); } @Override public ASTType visitNull(NullType nullType, Void v) { throw new TransfuseAnalysisException("Encountered NullType, unable to recover"); } @Override public ASTType visitArray(ArrayType arrayType, Void v) { return new ASTArrayType(arrayType.getComponentType().accept(this, null)); } @Override public ASTType visitDeclared(DeclaredType declaredType, Void v) { return astElementFactoryProvider.get().buildASTElementType(declaredType); } @Override public ASTType visitError(ErrorType errorType, Void v) { throw new TransactionRuntimeException("Encountered ErrorType " + errorType.asElement().getSimpleName() + ", unable to recover"); } @Override public ASTType visitTypeVariable(TypeVariable typeVariable, Void v) { return new ASTEmptyType(typeVariable.toString()); } @Override public ASTType visitWildcard(WildcardType wildcardType, Void v) { throw new TransfuseAnalysisException("Encountered Wildcard Type, unable to represent in graph"); } @Override public ASTType visitExecutable(ExecutableType executableType, Void v) { if (executableType instanceof TypeElement) { return astElementFactoryProvider.get().getType((TypeElement) executableType); } else { throw new TransfuseAnalysisException("Encountered non-TypeElement"); } } @Override public ASTType visitNoType(NoType noType, Void v) { if (noType.getKind().equals(TypeKind.VOID)) { return ASTVoidType.VOID; } return new ASTEmptyType("<NOTYPE>"); } @Override public ASTType visitUnknown(TypeMirror typeMirror, Void v) { throw new TransfuseAnalysisException("Encountered unknown TypeMirror, unable to recover"); } @Override public ASTType apply(TypeMirror input) { return input.accept(this, null); } }
[ "johncarl81@gmail.com" ]
johncarl81@gmail.com
2fd195da921783926fb037b6ade50fa7e2608756
c81963cab526c4dc24bee21840f2388caf7ff4cf
/com/google/common/collect/SortedLists.java
1e3b9397204df8dce327236e22e75e5d0f0e030b
[]
no_license
ryank231231/jp.co.penet.gekidanprince
ba2f38e732828a4454402aa7ef93a501f8b7541e
d76db01eeadf228d31006e4e71700739edbf214f
refs/heads/main
2023-02-19T01:38:54.459230
2021-01-16T10:04:22
2021-01-16T10:04:22
329,815,191
0
0
null
null
null
null
UTF-8
Java
false
false
5,987
java
package com.google.common.collect; import com.google.common.annotations.Beta; import com.google.common.annotations.GwtCompatible; import com.google.common.base.Function; import com.google.common.base.Preconditions; import java.util.Comparator; import java.util.List; import javax.annotation.Nullable; @Beta @GwtCompatible final class SortedLists { public static <E, K extends Comparable> int binarySearch(List<E> paramList, Function<? super E, K> paramFunction, @Nullable K paramK, KeyPresentBehavior paramKeyPresentBehavior, KeyAbsentBehavior paramKeyAbsentBehavior) { return binarySearch(paramList, paramFunction, paramK, Ordering.natural(), paramKeyPresentBehavior, paramKeyAbsentBehavior); } public static <E, K> int binarySearch(List<E> paramList, Function<? super E, K> paramFunction, @Nullable K paramK, Comparator<? super K> paramComparator, KeyPresentBehavior paramKeyPresentBehavior, KeyAbsentBehavior paramKeyAbsentBehavior) { return binarySearch(Lists.transform(paramList, paramFunction), paramK, paramComparator, paramKeyPresentBehavior, paramKeyAbsentBehavior); } public static <E extends Comparable> int binarySearch(List<? extends E> paramList, E paramE, KeyPresentBehavior paramKeyPresentBehavior, KeyAbsentBehavior paramKeyAbsentBehavior) { Preconditions.checkNotNull(paramE); return binarySearch(paramList, paramE, Ordering.natural(), paramKeyPresentBehavior, paramKeyAbsentBehavior); } public static <E> int binarySearch(List<? extends E> paramList, @Nullable E paramE, Comparator<? super E> paramComparator, KeyPresentBehavior paramKeyPresentBehavior, KeyAbsentBehavior paramKeyAbsentBehavior) { Preconditions.checkNotNull(paramComparator); Preconditions.checkNotNull(paramList); Preconditions.checkNotNull(paramKeyPresentBehavior); Preconditions.checkNotNull(paramKeyAbsentBehavior); List<? extends E> list = paramList; if (!(paramList instanceof java.util.RandomAccess)) list = Lists.newArrayList(paramList); int i = 0; int j = list.size() - 1; while (i <= j) { int k = i + j >>> 1; int m = paramComparator.compare(paramE, list.get(k)); if (m < 0) { j = k - 1; continue; } if (m > 0) { i = k + 1; continue; } return i + paramKeyPresentBehavior.<E>resultIndex(paramComparator, paramE, list.subList(i, j + 1), k - i); } return paramKeyAbsentBehavior.resultIndex(i); } public enum KeyAbsentBehavior { INVERTED_INSERTION_INDEX, NEXT_HIGHER, NEXT_LOWER { int resultIndex(int param2Int) { return param2Int - 1; } }; static { INVERTED_INSERTION_INDEX = new null("INVERTED_INSERTION_INDEX", 2); $VALUES = new KeyAbsentBehavior[] { NEXT_LOWER, NEXT_HIGHER, INVERTED_INSERTION_INDEX }; } abstract int resultIndex(int param1Int); } enum null { int resultIndex(int param1Int) { return param1Int - 1; } } enum null { public int resultIndex(int param1Int) { return param1Int; } } enum null { public int resultIndex(int param1Int) { return param1Int ^ 0xFFFFFFFF; } } public enum KeyPresentBehavior { ANY_PRESENT { <E> int resultIndex(Comparator<? super E> param2Comparator, E param2E, List<? extends E> param2List, int param2Int) { return param2Int; } }, FIRST_AFTER, FIRST_PRESENT, LAST_BEFORE, LAST_PRESENT { <E> int resultIndex(Comparator<? super E> param2Comparator, E param2E, List<? extends E> param2List, int param2Int) { int i = param2List.size() - 1; while (param2Int < i) { int j = param2Int + i + 1 >>> 1; if (param2Comparator.compare(param2List.get(j), param2E) > 0) { i = j - 1; continue; } param2Int = j; } return param2Int; } }; static { FIRST_AFTER = new null("FIRST_AFTER", 3); LAST_BEFORE = new null("LAST_BEFORE", 4); $VALUES = new KeyPresentBehavior[] { ANY_PRESENT, LAST_PRESENT, FIRST_PRESENT, FIRST_AFTER, LAST_BEFORE }; } abstract <E> int resultIndex(Comparator<? super E> param1Comparator, E param1E, List<? extends E> param1List, int param1Int); } enum null { <E> int resultIndex(Comparator<? super E> param1Comparator, E param1E, List<? extends E> param1List, int param1Int) { return param1Int; } } enum null { <E> int resultIndex(Comparator<? super E> param1Comparator, E param1E, List<? extends E> param1List, int param1Int) { int i = param1List.size() - 1; while (param1Int < i) { int j = param1Int + i + 1 >>> 1; if (param1Comparator.compare(param1List.get(j), param1E) > 0) { i = j - 1; continue; } param1Int = j; } return param1Int; } } enum null { <E> int resultIndex(Comparator<? super E> param1Comparator, E param1E, List<? extends E> param1List, int param1Int) { int i = 0; while (i < param1Int) { int j = i + param1Int >>> 1; if (param1Comparator.compare(param1List.get(j), param1E) < 0) { i = j + 1; continue; } param1Int = j; } return i; } } enum null { public <E> int resultIndex(Comparator<? super E> param1Comparator, E param1E, List<? extends E> param1List, int param1Int) { return LAST_PRESENT.<E>resultIndex(param1Comparator, param1E, param1List, param1Int) + 1; } } enum null { public <E> int resultIndex(Comparator<? super E> param1Comparator, E param1E, List<? extends E> param1List, int param1Int) { return FIRST_PRESENT.<E>resultIndex(param1Comparator, param1E, param1List, param1Int) - 1; } } } /* Location: Y:\classes-dex2jar.jar!\com\google\common\collect\SortedLists.class * Java compiler version: 6 (50.0) * JD-Core Version: 1.1.3 */
[ "ryank231231@gmail.com" ]
ryank231231@gmail.com
2d102e6c0b3bd51a1fd8cbba137f1714e297b187
3d4349c88a96505992277c56311e73243130c290
/Preparation/processed-dataset/data-class_3_344/24.java
4c69891eab17c320b1f8fb15fac21884eac6023e
[]
no_license
D-a-r-e-k/Code-Smells-Detection
5270233badf3fb8c2d6034ac4d780e9ce7a8276e
079a02e5037d909114613aedceba1d5dea81c65d
refs/heads/master
2020-05-20T00:03:08.191102
2019-05-15T11:51:51
2019-05-15T11:51:51
185,272,690
7
4
null
null
null
null
UTF-8
Java
false
false
613
java
/** * To support EXSLT extensions, convert names with dash to allowable Java names: * e.g., convert abc-xyz to abcXyz. * Note: dashes only appear in middle of an EXSLT function or element name. */ protected static String replaceDash(String name) { char dash = '-'; StringBuffer buff = new StringBuffer(""); for (int i = 0; i < name.length(); i++) { if (i > 0 && name.charAt(i - 1) == dash) buff.append(Character.toUpperCase(name.charAt(i))); else if (name.charAt(i) != dash) buff.append(name.charAt(i)); } return buff.toString(); }
[ "dariusb@unifysquare.com" ]
dariusb@unifysquare.com
e91859504a48865717cff5d4ae8d6ed04e742bb7
b93b6d3ae39398cb9044b6c76dd5e580344e4848
/src/main/java/com/dessy/penjualan/dao/HdrSuratJalanDaoImpl.java
f299d06fa628f3b35c14ce55ae7c9a9f9e90e251
[]
no_license
saifiahmada/penjualan
d5c0fe582ae1a8a21b751622af264cac8757385f
7d7fefba281a0fb0c37c35059810f922d7be8437
refs/heads/master
2021-01-01T19:51:42.788881
2015-01-17T02:43:02
2015-01-17T02:43:02
29,377,314
0
1
null
null
null
null
UTF-8
Java
false
false
2,212
java
package com.dessy.penjualan.dao; import java.util.Date; import java.util.HashSet; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.dessy.penjualan.bean.DtlPicklist; import com.dessy.penjualan.bean.DtlSuratJalan; import com.dessy.penjualan.bean.DtlSuratJalanPK; import com.dessy.penjualan.bean.HdrPicklist; import com.dessy.penjualan.bean.HdrSuratJalan; import com.dessy.penjualan.bean.MstDealer; import com.dessy.penjualan.common.GenericHibernateDao; import com.dessy.penjualan.util.DateConv; import com.dessy.penjualan.util.StringUtil; import com.dessy.penjualan.viewmodel.SuratJalanVM; @Repository public class HdrSuratJalanDaoImpl extends GenericHibernateDao<HdrSuratJalan, String> implements HdrSuratJalanDao { @Autowired private HdrPicklistDao hdrPicklistDao; @Autowired private MstRunnumDao mstRunnumDao; @Autowired private MstDealerDao mstDealerDao; public String generateSuratJalan(String noPicklist,String kdDlr) { HdrPicklist pick = hdrPicklistDao.get(noPicklist); MstDealer dealer = mstDealerDao.get(kdDlr); String idDoc = "SJ"; String reseter = DateConv.format(new Date(), "yyyyMM"); int no = mstRunnumDao.getRunningNumber(idDoc, reseter); String noSj = StringUtil.getFormattedRunno(idDoc, Integer.valueOf(no)); HdrSuratJalan sj = new HdrSuratJalan(noSj); sj.setAlamatPenerima(dealer.getAlamat()); sj.setKdDlr(kdDlr); sj.setNamaPenerima(dealer.getNamaDealer()); sj.setNoPicklist(noPicklist); sj.setStatus("A"); sj.setTglSj(new Date()); Set<DtlSuratJalan> dtlSjs = new HashSet<DtlSuratJalan>(); for (DtlPicklist dtlPick : pick.getDtlpicklists()) { String noMesin = dtlPick.getDtlPicklistPK().getNoMesin(); String kdItem = dtlPick.getKdItem(); String noRangka = dtlPick.getNoRangka(); DtlSuratJalan dtlSj = new DtlSuratJalan(new DtlSuratJalanPK(noMesin, noSj)); dtlSj.setKdItem(kdItem); dtlSj.setNoRangka(noRangka); dtlSj.setHdrSuratJalan(sj); dtlSjs.add(dtlSj); } sj.setDtlSuratJalans(dtlSjs); pick.setStatus("B"); hdrPicklistDao.update(pick); super.saveOrUpdate(sj); return noSj; } }
[ "saifiahmada@gmail.com" ]
saifiahmada@gmail.com
7f57f3e58ef7cbe54b80351d74f6005e3654b10b
082e26b011e30dc62a62fae95f375e4f87d9e99c
/docs/weixin_7.0.4_source/反编译源码/反混淆后/src/main/java/com/tencent/p177mm/p230g/p231a/C37726hi.java
655c4507b93207192f2f0bc6c7badac29a051281
[]
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
641
java
package com.tencent.p177mm.p230g.p231a; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.p177mm.sdk.p600b.C4883b; /* renamed from: com.tencent.mm.g.a.hi */ public final class C37726hi extends C4883b { public C26154a cCe; /* renamed from: com.tencent.mm.g.a.hi$a */ public static final class C26154a { public boolean cCf = false; } public C37726hi() { this((byte) 0); } private C37726hi(byte b) { AppMethodBeat.m2504i(114425); this.cCe = new C26154a(); this.xxG = false; this.callback = null; AppMethodBeat.m2505o(114425); } }
[ "alwangsisi@163.com" ]
alwangsisi@163.com
ec9e63a17a28b7c0d174a43775c7cedfe0c61ad7
eb118856796700c92d4ff0ea9f56a37caddb3db4
/showcase/bookstore/src/main/java/org/ocpsoft/rewrite/showcase/bookstore/web/list/YearBean.java
ed91532f9301658b2566d92efa92531d4a5b9a44
[ "Apache-2.0" ]
permissive
ocpsoft/rewrite
b657892cdee10b748435cf50772c4a5f89b4832b
081871aa06d3dd366100b025bc62bfbabadf7457
refs/heads/main
2023-09-05T20:03:04.413656
2023-03-21T15:08:26
2023-03-21T15:10:16
1,946,637
130
86
Apache-2.0
2023-07-25T13:52:28
2011-06-24T08:51:19
Java
UTF-8
Java
false
false
1,362
java
/* * Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a> * * 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.ocpsoft.rewrite.showcase.bookstore.web.list; import java.util.List; import javax.ejb.EJB; import javax.enterprise.context.RequestScoped; import javax.inject.Named; import org.ocpsoft.rewrite.showcase.bookstore.dao.BookDao; import org.ocpsoft.rewrite.showcase.bookstore.model.Book; @Named @RequestScoped public class YearBean { private Integer year; @EJB private BookDao bookDao; private List<Book> books; public void preRenderView() { books = bookDao.findByYear(year); } public List<Book> getBooks() { return books; } public Integer getYear() { return year; } public void setYear(Integer year) { this.year = year; } }
[ "christian@kaltepoth.de" ]
christian@kaltepoth.de
67648078be965740c1ee7bb73285b6aa3b8d6de5
d31d744f62c09cb298022f42bcaf9de03ad9791c
/java/tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/Cumsum.java
6895cbed39f1eeb430580cfbc89edc94929d1708
[]
no_license
yuhuofei/TensorFlow-1
b2085cb5c061aefe97e2e8f324b01d7d8e3f04a0
36eb6994d36674604973a06159e73187087f51c6
refs/heads/master
2023-02-22T13:57:28.886086
2021-01-26T14:18:18
2021-01-26T14:18:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,797
java
/* Copyright 2018 The TensorFlow Authors. 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. =======================================================================*/ // This class has been generated, DO NOT EDIT! package org.tensorflow.op.math; import org.tensorflow.Operand; import org.tensorflow.Operation; import org.tensorflow.OperationBuilder; import org.tensorflow.Output; import org.tensorflow.op.RawOp; import org.tensorflow.op.Scope; import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.op.annotation.Operator; import org.tensorflow.types.family.TNumber; import org.tensorflow.types.family.TType; /** * Compute the cumulative sum of the tensor `x` along `axis`. * <p> * By default, this op performs an inclusive cumsum, which means that the first * element of the input is identical to the first element of the output: * <pre>{@code * tf.cumsum([a, b, c]) # => [a, a + b, a + b + c] * }</pre> * By setting the `exclusive` kwarg to `True`, an exclusive cumsum is * performed instead: * <pre>{@code * tf.cumsum([a, b, c], exclusive=True) # => [0, a, a + b] * }</pre> * By setting the `reverse` kwarg to `True`, the cumsum is performed in the * opposite direction: * <pre>{@code * tf.cumsum([a, b, c], reverse=True) # => [a + b + c, b + c, c] * }</pre> * This is more efficient than using separate `tf.reverse` ops. * <p> * The `reverse` and `exclusive` kwargs can also be combined: * <pre>{@code * tf.cumsum([a, b, c], exclusive=True, reverse=True) # => [b + c, c, 0] * }</pre> * * * @param <T> data type for {@code out()} output */ @Operator(group = "math") public final class Cumsum<T extends TType> extends RawOp implements Operand<T> { /** * Optional attributes for {@link org.tensorflow.op.math.Cumsum} */ public static class Options { /** * @param exclusive If `True`, perform exclusive cumsum. */ public Options exclusive(Boolean exclusive) { this.exclusive = exclusive; return this; } /** * @param reverse A `bool` (default: False). */ public Options reverse(Boolean reverse) { this.reverse = reverse; return this; } private Boolean exclusive; private Boolean reverse; private Options() { } } /** * Factory method to create a class wrapping a new Cumsum operation. * * @param scope current scope * @param x A `Tensor`. Must be one of the following types: `float32`, `float64`, * `int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`, * `complex128`, `qint8`, `quint8`, `qint32`, `half`. * @param axis A `Tensor` of type `int32` (default: 0). Must be in the range * `[-rank(x), rank(x))`. * @param options carries optional attributes values * @return a new instance of Cumsum */ @Endpoint(describeByClass = true) public static <T extends TType, U extends TNumber> Cumsum<T> create(Scope scope, Operand<T> x, Operand<U> axis, Options... options) { OperationBuilder opBuilder = scope.env().opBuilder("Cumsum", scope.makeOpName("Cumsum")); opBuilder.addInput(x.asOutput()); opBuilder.addInput(axis.asOutput()); opBuilder = scope.applyControlDependencies(opBuilder); if (options != null) { for (Options opts : options) { if (opts.exclusive != null) { opBuilder.setAttr("exclusive", opts.exclusive); } if (opts.reverse != null) { opBuilder.setAttr("reverse", opts.reverse); } } } return new Cumsum<T>(opBuilder.build()); } /** * @param exclusive If `True`, perform exclusive cumsum. */ public static Options exclusive(Boolean exclusive) { return new Options().exclusive(exclusive); } /** * @param reverse A `bool` (default: False). */ public static Options reverse(Boolean reverse) { return new Options().reverse(reverse); } /** */ public Output<T> out() { return out; } @Override public Output<T> asOutput() { return out; } /** The name of this op, as known by TensorFlow core engine */ public static final String OP_NAME = "Cumsum"; private Output<T> out; private Cumsum(Operation operation) { super(operation); int outputIdx = 0; out = operation.output(outputIdx++); } }
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
83572139ca1dcce9ba976f85b532fb82ac68f84e
1af5de52e596f736c70a8d2b505fcbf406e0d1e4
/adapter/src/main/java/com/adaptris/core/services/metadata/xpath/ConfiguredXpathQueryImpl.java
843b2755568c247069824151c10b1d2c03ba3256
[ "Apache-2.0" ]
permissive
williambl/interlok
462970f97b626b6f05d69ae30a43e42d6770dd24
3371e63ede75a53878244d8e44ecc00f36545e74
refs/heads/master
2020-03-28T06:17:23.056266
2018-08-13T13:36:02
2018-08-13T13:36:02
147,825,107
0
0
Apache-2.0
2018-09-07T13:10:38
2018-09-07T13:10:38
null
UTF-8
Java
false
false
1,640
java
/* * Copyright 2015 Adaptris Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.adaptris.core.services.metadata.xpath; import static org.apache.commons.lang.StringUtils.isEmpty; import org.hibernate.validator.constraints.NotBlank; import com.adaptris.core.AdaptrisMessage; import com.adaptris.core.CoreException; import com.adaptris.core.util.Args; /** * Abstract base class for {@linkplain XpathQuery} implementations that are statically configured. * * @author lchan * */ public abstract class ConfiguredXpathQueryImpl extends XpathQueryImpl { @NotBlank private String xpathQuery; public ConfiguredXpathQueryImpl() { } public String getXpathQuery() { return xpathQuery; } /** * Set the xpath. * * @param expr */ public void setXpathQuery(String expr) { xpathQuery = Args.notBlank(expr, "xpath-query"); } @Override public String createXpathQuery(AdaptrisMessage msg) { return xpathQuery; } public void verify() throws CoreException { if (isEmpty(getXpathQuery())) { throw new CoreException("Configured Xpath is null."); } } }
[ "lewin.chan@adaptris.com" ]
lewin.chan@adaptris.com
282b9ecc20977f5232e8de5642adfb7c3b7f4cc7
2e45e2f0d8a2125c87894a94fbd6f2047bb92e9a
/src/main/java/com/hxqh/eam/dao/VEntGovTopOneDaoImpl.java
ce12bca3e57318f211c068c4fdc028552ab9aa5f
[]
no_license
zhangddandan/hxqh-app
555d1e603e547cd1bf236c5617e3121d9ffaf9da
1ec9e9188de13c32698a7a6ce7e51a5ea7dfb02b
refs/heads/master
2020-12-02T22:13:02.972575
2017-07-03T02:25:16
2017-07-03T02:25:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
334
java
package com.hxqh.eam.dao; import com.hxqh.eam.common.basedao.DaoSupport; import com.hxqh.eam.model.view.VEntGovTopOne; import org.springframework.stereotype.Repository; /** * * @author lh * */ @Repository("vEntGovTopOneDao") public class VEntGovTopOneDaoImpl extends DaoSupport<VEntGovTopOne> implements VEntGovTopOneDao { }
[ "hkhai@outlook.com" ]
hkhai@outlook.com
08fa1189da7f4a01a34dd0b9b8e8033953cc9471
85720de1b78e09c53d0b113e08d91e30b2ce0f0f
/omall/src/com/paySystem/ic/bean/base/DeliveryOrders.java
487f8e2b3e95306200354f592ba47fcdeb625dde
[]
no_license
supermanxkq/projects
4f2696708f15d82d6b8aa8e6d6025163e52d0f76
19925f26935f66bd196abe4831d40a47b92b4e6d
refs/heads/master
2020-06-18T23:48:07.576254
2016-11-28T08:44:15
2016-11-28T08:44:15
74,933,844
0
1
null
null
null
null
UTF-8
Java
false
false
3,658
java
package com.paySystem.ic.bean.base; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; /** * @ClassName:DeliveryOrders.java * @Description:发货信息实体 * @date: 2014-10-10下午03:03:53 * @author: Jacky * @version: V1.0 */ @Entity @Table(name = "O_DeliveryOrders") public class DeliveryOrders implements Serializable { private static final long serialVersionUID = 3970336097852824875L; /** * 自增id */ private long doId; /** * 发货状态 * 0:未发货; 1:发货中; 2:已发货 */ private Integer status; /** * 商户merId */ private String merId; /** * 买家 */ private String memId; /** * 收货人姓名 */ private String memName; /** * 收货人电话 */ private String memTele; /** * 收货地址 */ private String address; /** * 发货地址 */ private String merAddress; /** * 订单号 */ private String orderId; /** * 商品名称 */ private String goodsName; /** * 商品价格 */ private BigDecimal price; /** * 商品数量 */ private Integer qty; /** * 下单时间 */ private Date createTime; /** 备注**/ private String remarks; @Column(length=150,nullable=true) public String getRemarks() { return remarks; } public void setRemarks(String remarks) { this.remarks = remarks; } @Id @GeneratedValue(strategy = GenerationType.IDENTITY ) public long getDoId() { return doId; } public void setDoId(long doId) { this.doId = doId; } @Column(length=1,nullable=false) public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } @Column(length=15,nullable=false) public String getMerId() { return merId; } public void setMerId(String merId) { this.merId = merId; } @Column(length=10,nullable=false) public String getMemId() { return memId; } public void setMemId(String memId) { this.memId = memId; } @Column(length=15,nullable=false) public String getMemName() { return memName; } public void setMemName(String memName) { this.memName = memName; } @Column(length=11,nullable=false) public String getMemTele() { return memTele; } public void setMemTele(String memTele) { this.memTele = memTele; } @Column(length=255,nullable=false) public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } @Column(length=255,nullable=false) public String getMerAddress() { return merAddress; } public void setMerAddress(String merAddress) { this.merAddress = merAddress; } @Column(length=16,nullable=false) public String getOrderId() { return orderId; } public void setOrderId(String orderId) { this.orderId = orderId; } @Column(length=60,nullable=false) public String getGoodsName() { return goodsName; } public void setGoodsName(String goodsName) { this.goodsName = goodsName; } @Column(nullable=false,scale=4,precision=13) public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } @Column(length=5,nullable=false) public Integer getQty() { return qty; } public void setQty(Integer qty) { this.qty = qty; } @Column(nullable=false) public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } }
[ "994028591@qq.com" ]
994028591@qq.com
e0511c99e527a96187ef95b2196646a3b0fd9747
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/spring/generated/src/main/java/org/openapitools/model/ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo.java
afa1d30a137d187c9120d02fd0bea20f549d53d5
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Java
false
false
4,526
java
package org.openapitools.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.model.ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenProperties; import javax.validation.Valid; import javax.validation.constraints.*; /** * ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2019-08-05T01:13:37.880Z[GMT]") public class ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo { @JsonProperty("pid") private String pid = null; @JsonProperty("title") private String title = null; @JsonProperty("description") private String description = null; @JsonProperty("properties") private ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenProperties properties = null; public ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo pid(String pid) { this.pid = pid; return this; } /** * Get pid * @return pid **/ @ApiModelProperty(value = "") public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } public ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo title(String title) { this.title = title; return this; } /** * Get title * @return title **/ @ApiModelProperty(value = "") public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo description(String description) { this.description = description; return this; } /** * Get description * @return description **/ @ApiModelProperty(value = "") public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo properties(ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenProperties properties) { this.properties = properties; return this; } /** * Get properties * @return properties **/ @ApiModelProperty(value = "") @Valid public ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenProperties getProperties() { return properties; } public void setProperties(ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenProperties properties) { this.properties = properties; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo comAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo = (ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo) o; return Objects.equals(this.pid, comAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo.pid) && Objects.equals(this.title, comAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo.title) && Objects.equals(this.description, comAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo.description) && Objects.equals(this.properties, comAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo.properties); } @Override public int hashCode() { return Objects.hash(pid, title, description, properties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ComAdobeCqSocialContentFragmentsServicesImplCommunitiesFragmenInfo {\n"); sb.append(" pid: ").append(toIndentedString(pid)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }
[ "cliffano@gmail.com" ]
cliffano@gmail.com
41a888a3bca02f2e0ee7c6cb2f16f591cb8ff842
c46f99dbb1ea967302d4ba6f974928c43e0b7eb1
/src/pptx4j/java/org/pptx4j/pml/CTTLSetBehavior.java
7e12298af9a782b0280d32cdd3e14918b91b57f0
[ "Apache-2.0" ]
permissive
manivannans/docx4j
688320ebde87c6f6d7cd43f32d475eb635d5e9c1
777c78a844b98e15c3d472fedd3b3e01e6017327
refs/heads/master
2020-12-25T00:50:18.304299
2012-05-29T03:59:59
2012-05-29T03:59:59
4,479,085
3
0
null
null
null
null
UTF-8
Java
false
false
2,825
java
/* * Copyright 2010, Plutext Pty Ltd. * * This file is part of docx4j. docx4j is 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.pptx4j.pml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CT_TLSetBehavior complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="CT_TLSetBehavior"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="cBhvr" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_TLCommonBehaviorData"/> * &lt;element name="to" type="{http://schemas.openxmlformats.org/presentationml/2006/main}CT_TLAnimVariant" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_TLSetBehavior", propOrder = { "cBhvr", "to" }) public class CTTLSetBehavior { @XmlElement(required = true) protected CTTLCommonBehaviorData cBhvr; protected CTTLAnimVariant to; /** * Gets the value of the cBhvr property. * * @return * possible object is * {@link CTTLCommonBehaviorData } * */ public CTTLCommonBehaviorData getCBhvr() { return cBhvr; } /** * Sets the value of the cBhvr property. * * @param value * allowed object is * {@link CTTLCommonBehaviorData } * */ public void setCBhvr(CTTLCommonBehaviorData value) { this.cBhvr = value; } /** * Gets the value of the to property. * * @return * possible object is * {@link CTTLAnimVariant } * */ public CTTLAnimVariant getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link CTTLAnimVariant } * */ public void setTo(CTTLAnimVariant value) { this.to = value; } }
[ "jason@plutext.org" ]
jason@plutext.org
a60cecec09ff323c3b59080ededc8768ca8b04cd
ead5a617b23c541865a6b57cf8cffcc1137352f2
/decompiled/sources/com/google/api/client/extensions/android/http/packageinfo.java
de9ae72769f7cd3c4a78e9ea883879411dec45ce
[]
no_license
erred/uva-ssn
73a6392a096b38c092482113e322fdbf9c3c4c0e
4fb8ea447766a735289b96e2510f5a8d93345a8c
refs/heads/master
2022-02-26T20:52:50.515540
2019-10-14T12:30:33
2019-10-14T12:30:33
210,376,140
1
0
null
null
null
null
UTF-8
Java
false
false
235
java
package com.google.api.client.extensions.android.http; import com.google.api.client.util.Beta; @Beta /* renamed from: com.google.api.client.extensions.android.http.package-info reason: invalid class name */ interface packageinfo { }
[ "seankhliao@gmail.com" ]
seankhliao@gmail.com
c5e07efb5354d953d21bce8428a14c698f7c168d
7af846ccf54082cd1832c282ccd3c98eae7ad69a
/ftmap/src/main/java/taxi/nicecode/com/ftmap/generated/package_28/Foo102.java
ac9fbd7cc6835723ec2012d6fbb747cb00d86dc3
[]
no_license
Kadanza/TestModules
821f216be53897d7255b8997b426b359ef53971f
342b7b8930e9491251de972e45b16f85dcf91bd4
refs/heads/master
2020-03-25T08:13:09.316581
2018-08-08T10:47:25
2018-08-08T10:47:25
143,602,647
0
0
null
null
null
null
UTF-8
Java
false
false
270
java
package taxi.nicecode.com.ftmap.generated.package_28; public class Foo102 { public void foo0(){ new Foo101().foo5(); } public void foo1(){ foo0(); } public void foo2(){ foo1(); } public void foo3(){ foo2(); } public void foo4(){ foo3(); } public void foo5(){ foo4(); } }
[ "1" ]
1
9fb115a1a8e596580507dfcf2303df6bfac8c380
2f26ed6f6dac814ebd04548b2cd274246e8c9326
/WEB-INF/src/com/yhaguy/domain/UsuarioPropiedades.java
568a5e21b98635071e40973ab643a3f760b4f435
[]
no_license
sraul/yhaguy-baterias
ecbac89f922fc88c5268102025affc0a6d07ffb5
7aacfdd3fbca50f9d71c940ba083337a2c80e899
refs/heads/master
2023-08-19T05:21:03.565167
2023-08-18T15:33:08
2023-08-18T15:33:08
144,028,474
0
0
null
null
null
null
UTF-8
Java
false
false
1,101
java
package com.yhaguy.domain; import com.coreweb.domain.Domain; import com.coreweb.domain.Tipo; import com.coreweb.domain.Usuario; @SuppressWarnings("serial") public class UsuarioPropiedades extends Domain { private Usuario usuario = new Usuario(); private Deposito depositoParaFacturar = new Deposito(); private Tipo modoVenta = new Tipo(); private Tipo modoDesarrollador = new Tipo(); @Override public int compareTo(Object o) { return -1; } public Usuario getUsuario() { return usuario; } public void setUsuario(Usuario usuario) { this.usuario = usuario; } public Deposito getDepositoParaFacturar() { return depositoParaFacturar; } public void setDepositoParaFacturar(Deposito depositoParaFacturar) { this.depositoParaFacturar = depositoParaFacturar; } public Tipo getModoVenta() { return modoVenta; } public void setModoVenta(Tipo modoVenta) { this.modoVenta = modoVenta; } public Tipo getModoDesarrollador() { return modoDesarrollador; } public void setModoDesarrollador(Tipo modoDesarrollador) { this.modoDesarrollador = modoDesarrollador; } }
[ "sraul@users.noreply.github.com" ]
sraul@users.noreply.github.com
52b0b1dff56d2db4e287b9cf885cfd18cb9a1b41
5765c87fd41493dff2fde2a68f9dccc04c1ad2bd
/Variant Programs/1-4/33/production/GrowerTerminate.java
53e24403c65ca348be452ee7bf48581b91d28494
[ "MIT" ]
permissive
hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism
42e4c2061c3f8da0dfce760e168bb9715063645f
a42ced1d5a92963207e3565860cac0946312e1b3
refs/heads/master
2020-08-09T08:10:08.888384
2019-11-25T01:14:23
2019-11-25T01:14:23
214,041,532
0
0
null
null
null
null
UTF-8
Java
false
false
844
java
package production; import manufacturedBelongings.MinableOppose; import warehouses.*; public class GrowerTerminate extends Presenter { public RinglikeAssociatedLeaning<MinableOppose> basket = null; public GrowerTerminate(double spiteful, double drift, Repository ago) { parallelize(spiteful, drift, null, ago); this.central = EmitterTerritory.overpopulated; this.basket = new RinglikeAssociatedLeaning<MinableOppose>(); } protected synchronized void eligibleSoonBody() throws DepositoryEliminateDeparture { try { this.presentPreclude = this.firstStowage.afterParagraph(); } catch (DepositoryEliminateDeparture samad) { throw samad; } } protected synchronized void propelOngoingAimCoughMemory() { this.basket.injectedSurvive(this.presentPreclude); this.presentPreclude = null; } }
[ "hayden.cheers@me.com" ]
hayden.cheers@me.com
85db836cf637431436cf7a250d7c4b42ff58f964
a69843c67fd8a5b227837bd253fde3f672739e87
/api-executor-v1/src/main/java/com/linkedpipes/etl/executor/api/v1/service/DefaultExceptionFactory.java
f9c9195618830059667456c950e831cde252fb1e
[ "MIT" ]
permissive
eghuro/etl
28713014be4db6bb010bd8c6a4e9a8249857ed2f
5d74f9156397a4b48ad0eb3d833721dc67ba74a2
refs/heads/master
2020-04-02T02:41:15.816327
2018-09-20T11:44:31
2018-09-20T11:44:31
153,922,127
0
0
NOASSERTION
2018-10-20T15:53:20
2018-10-20T15:53:20
null
UTF-8
Java
false
false
363
java
package com.linkedpipes.etl.executor.api.v1.service; import com.linkedpipes.etl.executor.api.v1.LpException; /** * Default implementation of exception factory. */ class DefaultExceptionFactory implements ExceptionFactory { @Override public LpException failure(String message, Object... args) { return new LpException(message, args); } }
[ "skodapetr@gmail.com" ]
skodapetr@gmail.com
10e3a1943ff1f6ca90d2ea5efdbef4a8601e1777
23d0987433973217344b570039f53f70b48261de
/src/main/java/dev/map/anticheat/events/CompassCPS.java
d8fd09d23698a305ec273bfde24b9c273a41532f
[]
no_license
gabrielvicenteYT/MapAntiCheat
47c78a6bb417651af218f53d8d5a1161f14d9886
c1635f62128008c2ff2a121d3404c5602997ca8b
refs/heads/master
2023-04-05T02:40:09.783063
2021-03-30T20:42:06
2021-03-30T20:42:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,157
java
package dev.map.anticheat.events; import com.sun.tools.javac.util.Convert; import dev.map.anticheat.autoclicker.CPSDetection; import dev.map.anticheat.main.Main; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerInteractEntityEvent; import java.util.HashMap; import java.util.UUID; public class CompassCPS implements Listener { private int taskID; private int clicks = 0; private int playerclicks; private HashMap<UUID, Boolean> playerIDisRunningMap = new HashMap<UUID, Boolean>(); @EventHandler public void onClick(PlayerInteractEntityEvent event) { Entity target = event.getRightClicked(); String targetname = target.getName(); Player player = event.getPlayer(); if (target instanceof Player) { if (player.getItemInHand().getType().equals(Material.COMPASS)) { if (!playerIDisRunningMap.containsKey(player.getUniqueId())) { playerIDisRunningMap.put(player.getUniqueId(), false); } else { if (playerIDisRunningMap.get(player.getUniqueId()) == true) { player.sendMessage(ChatColor.RED + "Thread is already running."); } else { taskID = Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.getPlugin(Main.class), new Runnable() { int index = 11; double averageclicks = 0; public void run() { if (index == 11) { playerIDisRunningMap.put(player.getUniqueId(), false); CPSDetection.clicks.put(target.getUniqueId(), 0); index--; playerIDisRunningMap.put(player.getUniqueId(), true); } else if (index > 0 && index < 11) { clicks = CPSDetection.clicks.get(target.getUniqueId()); player.sendMessage(ChatColor.GRAY + "Clicks: " + ChatColor.DARK_AQUA + clicks); averageclicks = averageclicks + clicks; CPSDetection.clicks.put(target.getUniqueId(), 0); index--; } if (index == 0) { player.sendMessage(target.getName() + ChatColor.GRAY + ": Had an average of " + ChatColor.DARK_AQUA + averageclicks / 10 + " CPS"); Bukkit.getScheduler().cancelTask(taskID); playerIDisRunningMap.put(player.getUniqueId(), false); } } }, 0, 20); } } } } } }
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
f8b0a7d56b2c079392a526a2fd28837ba3fda7e4
bb60768a6eb5435a4b315f4af861b25addfd3b44
/dingtalk/java/src/main/java/com/aliyun/dingtalkdrive_1_0/models/AddFileRequest.java
d6910f8d6d67960296976cc3929250d6d9db5391
[ "Apache-2.0" ]
permissive
yndu13/dingtalk-sdk
f023e758d78efe3e20afa1456f916238890e65dd
700fb7bb49c4d3167f84afc5fcb5e7aa5a09735f
refs/heads/master
2023-06-30T04:49:11.263304
2021-08-12T09:54:35
2021-08-12T09:54:35
395,271,690
0
0
null
null
null
null
UTF-8
Java
false
false
2,007
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dingtalkdrive_1_0.models; import com.aliyun.tea.*; public class AddFileRequest extends TeaModel { // 父目录id @NameInMap("parentId") public String parentId; // 文件类型 @NameInMap("fileType") public String fileType; // 文件名 @NameInMap("fileName") public String fileName; // mediaId @NameInMap("mediaId") public String mediaId; // 文件名冲突策略 @NameInMap("addConflictPolicy") public String addConflictPolicy; // 用户id @NameInMap("unionId") public String unionId; public static AddFileRequest build(java.util.Map<String, ?> map) throws Exception { AddFileRequest self = new AddFileRequest(); return TeaModel.build(map, self); } public AddFileRequest setParentId(String parentId) { this.parentId = parentId; return this; } public String getParentId() { return this.parentId; } public AddFileRequest setFileType(String fileType) { this.fileType = fileType; return this; } public String getFileType() { return this.fileType; } public AddFileRequest setFileName(String fileName) { this.fileName = fileName; return this; } public String getFileName() { return this.fileName; } public AddFileRequest setMediaId(String mediaId) { this.mediaId = mediaId; return this; } public String getMediaId() { return this.mediaId; } public AddFileRequest setAddConflictPolicy(String addConflictPolicy) { this.addConflictPolicy = addConflictPolicy; return this; } public String getAddConflictPolicy() { return this.addConflictPolicy; } public AddFileRequest setUnionId(String unionId) { this.unionId = unionId; return this; } public String getUnionId() { return this.unionId; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
2a724d8f4c312dd8d44d1bf3f5deec8ef94b9895
c2fb6846d5b932928854cfd194d95c79c723f04c
/java_backup/my java/series/SUM.java
117c208d6f93d9aafaa0b53cede720ec7e83e68e
[ "MIT" ]
permissive
Jimut123/code-backup
ef90ccec9fb6483bb6dae0aa6a1f1cc2b8802d59
8d4c16b9e960d352a7775786ea60290b29b30143
refs/heads/master
2022-12-07T04:10:59.604922
2021-04-28T10:22:19
2021-04-28T10:22:19
156,666,404
9
5
MIT
2022-12-02T20:27:22
2018-11-08T07:22:48
Jupyter Notebook
UTF-8
Java
false
false
372
java
import java.io.*; public class SUM { public static void main(int n)throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader (System.in)); int s,p,i,j;p=1;s=0; for(i=1;i<=n;i++) {p=1; for(j=1;j<=i+1;j++) { p=p*j; } s=s+p; } System.out.println("THE SERIES:"+s); } }
[ "jimutbahanpal@yahoo.com" ]
jimutbahanpal@yahoo.com
487795eeb5bcb0c7b1e51c0102b2bbdc6298454d
76e0e6e5991f82290bf3cf0d66e2eb0f650e8e00
/03EnumerationsAndAnnotations/src/_002WarningLevels/Main.java
7ff6930923736b4b4824341e4d29ea3a040c3c7f
[ "MIT" ]
permissive
lapd87/SoftUniJavaOOPAdvanced
47ba0efba41b4b2619d4b363996e23fe070290cc
e06cf284fffc7259210a94f327d078d228edf76f
refs/heads/master
2020-03-27T21:40:22.120084
2018-09-03T07:26:02
2018-09-03T07:26:02
147,166,690
0
0
null
null
null
null
UTF-8
Java
false
false
1,003
java
package _002WarningLevels; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * Created by IntelliJ IDEA. * User: LAPD * Date: 18.7.2018 г. * Time: 09:48 ч. */ public class Main { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(System.in)); String loggerImportanceLevel = bufferedReader.readLine(); Logger logger = new Logger(loggerImportanceLevel); String input; while (true) { if ("END".equals(input = bufferedReader.readLine())) { break; } String[] messageArgs = input.split(": "); Message message = new Message(messageArgs[0], messageArgs[1]); logger.addMessage(message); } for (Message message : logger.getMessages()) { System.out.println(message); } } }
[ "mario87lapd@gmail.com" ]
mario87lapd@gmail.com
fe57a4df57ff13c6ad0d6c9141c05f579f601b35
04eb88e2eb3fd7004930170919eff41a0a9e0d6b
/src/main/java/com/anbang/qipai/xiuxianchang/msg/service/DianpaoGameRoomMsgService.java
9f924ef4a5909bfe92808f2737c35ced8bd6e4bd
[]
no_license
flyarong/qipai_xiuxianchang
65240715b01c51a1b82278fca83544c3a4b60e12
93d8ac49b3d7116fd607f45635edece27b57547d
refs/heads/master
2023-03-15T16:23:59.061112
2019-05-15T07:32:24
2019-05-15T07:32:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,184
java
package com.anbang.qipai.xiuxianchang.msg.service; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cloud.stream.annotation.EnableBinding; import org.springframework.messaging.support.MessageBuilder; import com.anbang.qipai.xiuxianchang.msg.channel.source.DianpaoGameRoomSource; import com.anbang.qipai.xiuxianchang.msg.msjobs.CommonMO; @EnableBinding(DianpaoGameRoomSource.class) public class DianpaoGameRoomMsgService { @Autowired private DianpaoGameRoomSource dianpaoGameRoomSource; public void removeGameRoom(List<String> gameIds) { CommonMO mo = new CommonMO(); mo.setMsg("gameIds"); mo.setData(gameIds); dianpaoGameRoomSource.dianpaoGameRoom().send(MessageBuilder.withPayload(mo).build()); } public void createGameRoom(String gameId, String game) { CommonMO mo = new CommonMO(); mo.setMsg("create gameroom"); Map data = new HashMap<>(); mo.setData(data); data.put("gameId", gameId); data.put("game", game); dianpaoGameRoomSource.dianpaoGameRoom().send(MessageBuilder.withPayload(mo).build()); } }
[ "林少聪 @PC-20180515PRDG" ]
林少聪 @PC-20180515PRDG
1d017077aff09606f7da425c066eb4beb03f987a
a00326c0e2fc8944112589cd2ad638b278f058b9
/src/main/java/000/123/872/CWE113_HTTP_Response_Splitting__database_setHeaderServlet_54c.java
e35b6ea8f5f16ef9cf7bb02dc93359133e6a2a0c
[]
no_license
Lanhbao/Static-Testing-for-Juliet-Test-Suite
6fd3f62713be7a084260eafa9ab221b1b9833be6
b095b11c7cb6d4a5bb2b76181e35d6ee00e96e68
refs/heads/master
2020-08-24T13:34:04.004149
2019-10-25T09:26:00
2019-10-25T09:26:00
216,822,684
0
1
null
2019-11-08T09:51:54
2019-10-22T13:37:13
Java
UTF-8
Java
false
false
1,586
java
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE113_HTTP_Response_Splitting__database_setHeaderServlet_54c.java Label Definition File: CWE113_HTTP_Response_Splitting.label.xml Template File: sources-sinks-54c.tmpl.java */ /* * @description * CWE: 113 HTTP Response Splitting * BadSource: database Read data from a database * GoodSource: A hardcoded string * Sinks: setHeaderServlet * GoodSink: URLEncode input * BadSink : querystring to setHeader() * Flow Variant: 54 Data flow: data passed as an argument from one method through three others to a fifth; all five functions are in different classes in the same package * * */ import javax.servlet.http.*; public class CWE113_HTTP_Response_Splitting__database_setHeaderServlet_54c { public void badSink(String data , HttpServletRequest request, HttpServletResponse response) throws Throwable { (new CWE113_HTTP_Response_Splitting__database_setHeaderServlet_54d()).badSink(data , request, response); } /* goodG2B() - use goodsource and badsink */ public void goodG2BSink(String data , HttpServletRequest request, HttpServletResponse response) throws Throwable { (new CWE113_HTTP_Response_Splitting__database_setHeaderServlet_54d()).goodG2BSink(data , request, response); } /* goodB2G() - use badsource and goodsink */ public void goodB2GSink(String data , HttpServletRequest request, HttpServletResponse response) throws Throwable { (new CWE113_HTTP_Response_Splitting__database_setHeaderServlet_54d()).goodB2GSink(data , request, response); } }
[ "anhtluet12@gmail.com" ]
anhtluet12@gmail.com
de9b73bc41afc532d60786819ecd25082cd4e5e4
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/32/32_26b9a527cdfd8a37dc7f453eb5399431f069bc87/DCBlockListener/32_26b9a527cdfd8a37dc7f453eb5399431f069bc87_DCBlockListener_t.java
25adb5d02fb8e35042659d9e23f3ebce63cdfe1c
[]
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
7,920
java
package com.smartaleq.bukkit.dwarfcraft.events; import java.util.HashMap; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockDamageEvent; import org.bukkit.event.block.BlockListener; import org.bukkit.event.block.BlockPhysicsEvent; import org.bukkit.inventory.ItemStack; import com.smartaleq.bukkit.dwarfcraft.DCPlayer; import com.smartaleq.bukkit.dwarfcraft.DwarfCraft; import com.smartaleq.bukkit.dwarfcraft.Effect; import com.smartaleq.bukkit.dwarfcraft.EffectType; import com.smartaleq.bukkit.dwarfcraft.Skill; import com.smartaleq.bukkit.dwarfcraft.Util; /** * This watches for broken blocks and reacts * */ public class DCBlockListener extends BlockListener { private final DwarfCraft plugin; public DCBlockListener(final DwarfCraft plugin) { this.plugin = plugin; } /** * Called when a block is destroyed by a player. * * @param event * Relevant event details */ @Override public void onBlockBreak(BlockBreakEvent event) { if (event.isCancelled()) return; Player player = event.getPlayer(); DCPlayer dCPlayer = plugin.getDataManager().find(player); HashMap<Integer, Skill> skills = dCPlayer.getSkills(); ItemStack tool = player.getItemInHand(); int toolId = -1; short durability = 0; if (tool != null) { toolId = tool.getTypeId(); durability = tool.getDurability(); } Location loc = event.getBlock().getLocation(); int materialId = event.getBlock().getTypeId(); byte meta = event.getBlock().getData(); boolean blockDropChange = false; for (Skill s : skills.values()) { for (Effect effect : s.getEffects()) { if (effect.getEffectType() == EffectType.BLOCKDROP && effect.checkInitiator(materialId, meta)) { // Crops special line: if (effect.getInitiatorId() == 59){ if (meta != 7) continue; } if (DwarfCraft.debugMessagesThreshold < 4) System.out.println("DC4: Effect: " + effect.getId() + " tool: " + toolId + " and toolRequired: " + effect.getToolRequired()); if (effect.checkTool(toolId)) { ItemStack item = effect.getOutput(dCPlayer, meta); if (DwarfCraft.debugMessagesThreshold < 6) System.out.println("Debug: dropped " + item.toString()); if (item.getAmount() > 0) loc.getWorld().dropItemNaturally(loc, item); blockDropChange = true; } } if (effect.getEffectType() == EffectType.TOOLDURABILITY && durability != -1) { if (effect.checkTool(toolId)) { double effectAmount = effect.getEffectAmount(dCPlayer); if (DwarfCraft.debugMessagesThreshold < 3) System.out.println("DC2: affected durability of a tool - old:" + durability); tool.setDurability((short)(durability + Util.randomAmount(effectAmount))); // if you use the tool on a non-dropping block it // doesn't take special durability damage if (DwarfCraft.debugMessagesThreshold < 3) System.out.println("DC3: affected durability of a tool - new:" + tool.getDurability()); if (tool.getDurability() >= tool.getType().getMaxDurability()){ if (tool.getTypeId() == 267 && tool.getDurability() < 250) continue; player.setItemInHand(null); } } } if (tool != null){ if (effect.getEffectType() == EffectType.SWORDDURABILITY && effect.checkTool(toolId)) { if (DwarfCraft.debugMessagesThreshold < 2) System.out.println("DC2: affected durability of a sword - old:" + durability + " effect called: " + effect.getId()); tool.setDurability((short)(durability + (Util.randomAmount(effect.getEffectAmount(dCPlayer) * 2)))); if (DwarfCraft.debugMessagesThreshold < 3) System.out.println("DC3: affected durability of a sword - new:" + tool.getDurability()); if (tool.getDurability() >= tool.getType().getMaxDurability()){ if (tool.getTypeId() == 267 && tool.getDurability() < 250) continue; player.setItemInHand(null); } } } } } if (blockDropChange) { event.getBlock().setTypeId(0); event.setCancelled(true); } } /** * onBlockDamage used to accelerate how quickly blocks are destroyed. * setDamage() not implemented yet */ @Override public void onBlockDamage(BlockDamageEvent event) { if (event.isCancelled()) return; Player player = event.getPlayer(); DCPlayer dCPlayer = plugin.getDataManager().find(player); HashMap<Integer, Skill> skills = dCPlayer.getSkills(); // Effect Specific information ItemStack tool = player.getItemInHand(); int toolId = -1; if (tool != null) toolId = tool.getTypeId(); int materialId = event.getBlock().getTypeId(); byte data = event.getBlock().getData(); //if (event.getDamageLevel() != BlockDamageLevel.STARTED) // return; for (Skill s : skills.values()) { for (Effect e : s.getEffects()) { if (e.getEffectType() == EffectType.DIGTIME && e.checkInitiator(materialId, data)) { if (DwarfCraft.debugMessagesThreshold < 2) System.out.println("DC2: started instamine check"); if (e.checkTool(toolId)) { if (Util.randomAmount(e.getEffectAmount(dCPlayer)) == 0) return; if (DwarfCraft.debugMessagesThreshold < 3) System.out.println("DC3: Insta-mine occured. Block: " + materialId); event.setInstaBreak(true); } } } } } @Override public void onBlockPhysics(BlockPhysicsEvent event){ if (event.getBlock().getType() == Material.CACTUS && plugin.getConfigManager().disableCacti){ World world = event.getBlock().getWorld(); Location loc = event.getBlock().getLocation(); //this is a re-implementation of BlockCactus's doPhysics event, minus the spawning of a droped item. if (!(checkCacti(world, loc))){ event.getBlock().setTypeId(0, true); event.setCancelled(true); Material base = world.getBlockAt(loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ()).getType(); if ((base != Material.CACTUS) && (base != Material.SAND)) world.dropItemNaturally(loc, new ItemStack(Material.CACTUS, 1)); } } } private boolean checkCacti(World world, Location loc){ int x = loc.getBlockX(); int y = loc.getBlockY(); int z = loc.getBlockZ(); if (isBuildable(world.getBlockAt(x - 1, y, z ).getType())) return false; if (isBuildable(world.getBlockAt(x + 1, y, z ).getType())) return false; if (isBuildable(world.getBlockAt(x, y, z - 1).getType())) return false; if (isBuildable(world.getBlockAt(x, y, z + 1).getType())) return false; Material base = world.getBlockAt(x, y - 1, z).getType(); return (base == Material.CACTUS) || (base == Material.SAND); } //Bukkit really needs to implement access to Material.isBuildable() private boolean isBuildable(Material block){ switch(block){ case AIR: case WATER: case STATIONARY_WATER: case LAVA: case STATIONARY_LAVA: case YELLOW_FLOWER: case RED_ROSE: case BROWN_MUSHROOM: case RED_MUSHROOM: case SAPLING: case SUGAR_CANE: case FIRE: case STONE_BUTTON: case DIODE_BLOCK_OFF: case DIODE_BLOCK_ON: case LADDER: case LEVER: case RAILS: case REDSTONE_WIRE: case TORCH: case REDSTONE_TORCH_ON: case REDSTONE_TORCH_OFF: case SNOW: case POWERED_RAIL: case DETECTOR_RAIL: return false; default: return true; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
38d41e3cf417dc12097ade1ceb0169b6a63b3b42
21f2918feebee4afa31534f4714ef497911c8c79
/java-basic/app/src/main/java/com/eomcs/oop/ex12/Exam0210.java
8600048c7920e8fd76f2ae52ded06398ea593977
[]
no_license
eomjinyoung/bitcamp-20210607
276aab07d6ab067e998328d7946f592816e28baa
2f07da3993e3b6582d9f50a60079ce93ed3c261f
refs/heads/main
2023-06-14T23:47:21.139807
2021-06-25T09:48:48
2021-06-25T09:48:48
374,601,444
1
1
null
null
null
null
UTF-8
Java
false
false
480
java
// Lambda 문법 - functional interface의 자격 package com.eomcs.oop.ex12; public class Exam0210 { // 추상 메서드가 한 개짜리 인터페이스여야 한다. interface Player { void play(); } public static void main(String[] args) { // 추상 메서드를 한 개만 갖고 있는 인터페이스에 대해 // 람다 문법으로 익명 클래스를 만들 수 있다. Player p = () -> System.out.println("Player..."); p.play(); } }
[ "jinyoung.eom@gmail.com" ]
jinyoung.eom@gmail.com
5b5fbdc17d88b6f45444c620c5436df279ceae77
17e8438486cb3e3073966ca2c14956d3ba9209ea
/dso/tags/2.6.4/code/base/simulator/tests.base/com/tc/objectserver/control/NullServerControl.java
34e93ad81875050a670e35e05c1a0639f6113207
[]
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
982
java
/* * All content copyright (c) 2003-2008 Terracotta, Inc., except as may otherwise be noted in a separate copyright * notice. All rights reserved. */ package com.tc.objectserver.control; public class NullServerControl implements ServerControl { private boolean isRunning; public synchronized void attemptShutdown() throws Exception { isRunning = false; } public synchronized void shutdown() throws Exception { isRunning = false; } public synchronized void crash() throws Exception { isRunning = false; } public synchronized void start() throws Exception { this.isRunning = true; } public synchronized boolean isRunning() { return isRunning; } public void clean() { return; } public void mergeSTDOUT() { return; } public void mergeSTDERR() { return; } public void waitUntilShutdown() { return; } public int getDsoPort() { return 0; } public int getAdminPort() { return 0; } }
[ "foshea@7fc7bbf3-cf45-46d4-be06-341739edd864" ]
foshea@7fc7bbf3-cf45-46d4-be06-341739edd864
44f0a398f9d05287344728ddb9421ff416fa9b9d
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13372-12-2-FEMO-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/xar/internal/handler/XarExtensionHandler_ESTest_scaffolding.java
0e64226891a97e39897a5829d92383217b37b154
[]
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
464
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Apr 04 04:47:39 UTC 2020 */ package org.xwiki.extension.xar.internal.handler; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class XarExtensionHandler_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
1b8602095c418619ac1c309881890ee2e36e465b
6826e00925044a43e6175c7e5e0fe755e02b2e69
/Email_crypt/app/src/main/java/com/indeema/email/mail/store/imap/ImapMemoryLiteral.java
373a625c7d0f09fb2402f6a921a4ddb54d6639c5
[]
no_license
nazarcybulskij/DefaultEmail-OpenKeyChain
6e7fa5125221c218e3b08c2c918554da68dd265d
415ee83155a73725ba7bb768554e7813a8c6114c
refs/heads/master
2016-09-11T02:53:17.425139
2015-03-08T20:54:20
2015-03-08T20:54:20
31,715,869
0
0
null
null
null
null
UTF-8
Java
false
false
2,096
java
/* * Copyright (C) 2010 The Android Open Source Project * * 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.indeema.email.mail.store.imap; import com.indeema.email.FixedLengthInputStream; import com.indeema.emailcommon.Logging; import com.indeema.emailcommon.utility.Utility; import com.indeema.mail.utils.LogUtils; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; /** * Subclass of {@link ImapString} used for literals backed by an in-memory byte array. */ public class ImapMemoryLiteral extends ImapString { private byte[] mData; /* package */ ImapMemoryLiteral(FixedLengthInputStream in) throws IOException { // We could use ByteArrayOutputStream and IOUtils.copy, but it'd perform an unnecessary // copy.... mData = new byte[in.getLength()]; int pos = 0; while (pos < mData.length) { int read = in.read(mData, pos, mData.length - pos); if (read < 0) { break; } pos += read; } if (pos != mData.length) { LogUtils.w(Logging.LOG_TAG, ""); } } @Override public void destroy() { mData = null; super.destroy(); } @Override public String getString() { return Utility.fromAscii(mData); } @Override public InputStream getAsStream() { return new ByteArrayInputStream(mData); } @Override public String toString() { return String.format("{%d byte literal(memory)}", mData.length); } }
[ "nazar.cybulskij@optigra-soft.com" ]
nazar.cybulskij@optigra-soft.com
35d593cd39dc1ac8a725076c85cc09704d1b1b93
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a150/A150605Test.java
4d045ce3eff0281bb2ab2cb74627de6d542aa7dd
[]
no_license
flywind2/joeis
c5753169cf562939b04dd246f8a2958e97f74558
e5efd6971a0062ac99f4fae21a7c78c9f9e74fea
refs/heads/master
2020-09-13T18:34:35.080552
2019-11-19T05:40:55
2019-11-19T05:40:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
256
java
package irvine.oeis.a150; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A150605Test extends AbstractSequenceTest { @Override protected int maxTerms() { return 10; } }
[ "sairvin@gmail.com" ]
sairvin@gmail.com
4aae6ecdedec3881bfac3a8e29e483770d715e97
33cae071de05a68ce026bbbdeaa34780f965fd42
/src/数组与矩阵/搜索二维矩阵_II_240.java
eec92b83ab886890fc729e97e44f427f3bc522fe
[]
no_license
xiaok1024/AlgorithmWithDesign
85c04ab08f43409b5314fdc21220f0446aa3f2be
80f5fce4d4864a7451534d13cbc9bc83e4b042ef
refs/heads/master
2020-05-01T09:47:53.202394
2019-03-24T12:02:05
2019-03-24T12:02:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,317
java
package 数组与矩阵; public class 搜索二维矩阵_II_240 { /* * 编写一个高效的算法来搜索 m x n 矩阵 matrix 中的一个目标值 target。该矩阵具有以下特性: 每行的元素从左到右升序排列。 每列的元素从上到下升序排列。 * [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19], [3, 6, 9, 16, 22], [10, 13, 14, 17, 24], [18, 21, 23, 26, 30] ] 给定 target = 5,返回 true。 给定 target = 20,返回 false。 */ //思路:从右上角开始(行上最大,列上最小), 比较target 和 matrix[i][j]的值. 如果小于target(该行最大的数都小于target), 则该行不可能有此数, 所以i++; //如果大于target(该行右边的数大于target), 则该列不可能有此数, 所以j--(向左搜索). 遇到边界则表明该矩阵不含target. public boolean searchMatrix(int[][] matrix, int target) { //row为0 column 为0 if(matrix.length==0 || matrix[0].length ==0) return false; //从右上角开始 int i = 0; int j = matrix[0].length-1; //遍历,条件为不到达边界 while(i<=matrix.length-1 && j>=0) { //获取当前位置的值 int x = matrix[i][j]; if(x==target) return true; if(x < target) i++; if(x > target) j--; } return false; } }
[ "xiaokang136106@163.com" ]
xiaokang136106@163.com
b73f7424c23579e98db0c643cca6acd8f52c9194
421f0a75a6b62c5af62f89595be61f406328113b
/generated_tests/no_seeding/85_shop-umd.cs.shop.JSListOperators-1.0-1/umd/cs/shop/JSListOperators_ESTest_scaffolding.java
20a73b8d5b0ade33f91685117676c626d310d29b
[]
no_license
tigerqiu712/evosuite-model-seeding-empirical-evaluation
c78c4b775e5c074aaa5e6ca56bc394ec03c2c7c6
11a920b8213d9855082d3946233731c843baf7bc
refs/heads/master
2020-12-23T21:04:12.152289
2019-10-30T08:02:29
2019-10-30T08:02:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
533
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Oct 28 13:47:30 GMT 2019 */ package umd.cs.shop; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; @EvoSuiteClassExclude public class JSListOperators_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pderakhshanfar@bsr01.win.tue.nl" ]
pderakhshanfar@bsr01.win.tue.nl
9f1c7e59edd11f098a7c9cbccca72889c75635a5
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/shardingjdbc--sharding-jdbc/27610564e89c4fefdcd5f2308b3766f7bb290940/before/IteratorStreamResultSetMergerTest.java
11545da6be66b4b163f8141ed8240a8977ee9ccc
[]
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
4,299
java
/* * Copyright 1999-2015 dangdang.com. * <p> * 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. * </p> */ package com.dangdang.ddframe.rdb.sharding.merger.iterator; import com.dangdang.ddframe.rdb.sharding.merger.MergeEngine; import com.dangdang.ddframe.rdb.sharding.merger.ResultSetMerger; import com.dangdang.ddframe.rdb.sharding.parsing.parser.statement.select.SelectStatement; import com.google.common.collect.Lists; import org.junit.Before; import org.junit.Test; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.List; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public final class IteratorStreamResultSetMergerTest { private MergeEngine mergeEngine; private List<ResultSet> resultSets; private SelectStatement selectStatement; @Before public void setUp() throws SQLException { ResultSet resultSet = mock(ResultSet.class); ResultSetMetaData resultSetMetaData = mock(ResultSetMetaData.class); when(resultSet.getMetaData()).thenReturn(resultSetMetaData); resultSets = Lists.newArrayList(resultSet, mock(ResultSet.class), mock(ResultSet.class)); selectStatement = new SelectStatement(); } @Test public void assertNextForResultSetsAllEmpty() throws SQLException { mergeEngine = new MergeEngine(resultSets, selectStatement); ResultSetMerger actual = mergeEngine.merge(); assertFalse(actual.next()); } @Test public void assertNextForResultSetsAllNotEmpty() throws SQLException { for (ResultSet each : resultSets) { when(each.next()).thenReturn(true, false); } mergeEngine = new MergeEngine(resultSets, selectStatement); ResultSetMerger actual = mergeEngine.merge(); assertTrue(actual.next()); assertTrue(actual.next()); assertTrue(actual.next()); assertFalse(actual.next()); } @Test public void assertNextForFirstResultSetsNotEmptyOnly() throws SQLException { when(resultSets.get(0).next()).thenReturn(true, false); mergeEngine = new MergeEngine(resultSets, selectStatement); ResultSetMerger actual = mergeEngine.merge(); assertTrue(actual.next()); assertFalse(actual.next()); } @Test public void assertNextForMiddleResultSetsNotEmpty() throws SQLException { when(resultSets.get(1).next()).thenReturn(true, false); mergeEngine = new MergeEngine(resultSets, selectStatement); ResultSetMerger actual = mergeEngine.merge(); assertTrue(actual.next()); assertFalse(actual.next()); } @Test public void assertNextForLastResultSetsNotEmptyOnly() throws SQLException { when(resultSets.get(2).next()).thenReturn(true, false); mergeEngine = new MergeEngine(resultSets, selectStatement); ResultSetMerger actual = mergeEngine.merge(); assertTrue(actual.next()); assertFalse(actual.next()); } @Test public void assertNextForMix() throws SQLException { resultSets.add(mock(ResultSet.class)); resultSets.add(mock(ResultSet.class)); resultSets.add(mock(ResultSet.class)); when(resultSets.get(1).next()).thenReturn(true, false); when(resultSets.get(3).next()).thenReturn(true, false); when(resultSets.get(5).next()).thenReturn(true, false); mergeEngine = new MergeEngine(resultSets, selectStatement); ResultSetMerger actual = mergeEngine.merge(); assertTrue(actual.next()); assertTrue(actual.next()); assertTrue(actual.next()); assertFalse(actual.next()); } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
25ed3c26f73fe41cafb112063dc213f72b02c59b
d9223a2b7d53ef7405c5161b68cb8fc312302dd8
/java/com/chartboost/sdk/impl/al.java
b46effbd1d00796c085bfe9bec0ebfc4857f3965
[]
no_license
cpjreynolds/swar
24e3ad2ec35cec55afe8c620c2d90c08654f061c
39911c3580b37e5f3425e0e13d5e4341412d3b0e
refs/heads/master
2021-01-10T12:41:58.223328
2015-12-01T23:51:14
2015-12-01T23:51:14
47,224,636
0
1
null
null
null
null
UTF-8
Java
false
false
2,234
java
package com.chartboost.sdk.impl; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Path; import android.graphics.Path.Direction; import android.graphics.RectF; public class al extends bo { private Paint a; private Paint b; private Path c; private RectF d; private RectF e; private int f = 0; private float g; private float h; public al(Context context) { super(context); a(context); } private void a(Context context) { float f = context.getResources().getDisplayMetrics().density; this.g = 4.5f * f; this.a = new Paint(); this.a.setColor(-1); this.a.setStyle(Style.STROKE); this.a.setStrokeWidth(f * 1.0f); this.a.setAntiAlias(true); this.b = new Paint(); this.b.setColor(-855638017); this.b.setStyle(Style.FILL); this.b.setAntiAlias(true); this.c = new Path(); this.e = new RectF(); this.d = new RectF(); } protected void a(Canvas canvas) { float f = getContext().getResources().getDisplayMetrics().density; this.d.set(0.0f, 0.0f, (float) getWidth(), (float) getHeight()); int min = Math.min(1, Math.round(f * 0.5f)); this.d.inset((float) min, (float) min); this.c.reset(); this.c.addRoundRect(this.d, this.g, this.g, Direction.CW); canvas.save(); canvas.clipPath(this.c); canvas.drawColor(this.f); this.e.set(this.d); this.e.right = ((this.e.right - this.e.left) * this.h) + this.e.left; canvas.drawRect(this.e, this.b); canvas.restore(); canvas.drawRoundRect(this.d, this.g, this.g, this.a); } public void a(int i) { this.f = i; invalidate(); } public void b(int i) { this.a.setColor(i); invalidate(); } public void c(int i) { this.b.setColor(i); invalidate(); } public void a(float f) { this.h = f; if (getVisibility() != 8) { invalidate(); } } public void b(float f) { this.g = f; } }
[ "cpjreynolds@gmail.com" ]
cpjreynolds@gmail.com
dadfed3b32fbbf8cd0483a51aecc6ea1bb866943
4ae8f83d2a7eeb246de5d532429427a5eee39277
/Java-EE-Ex/cdi/simplegreeting/src/main/java/javaeetutorial/simplegreeting/UserBean.java
23d30eaf604a045d82f8ad4e18238fe162b5015f
[]
no_license
kenparker/EJB3Demos
caaec229ccbd23afcde27ec67809deb5f34e677b
e7d632d92b8e026b644f5779895b9bca94f1b406
refs/heads/master
2021-01-24T18:24:47.790798
2017-08-02T12:45:58
2017-08-02T12:45:58
84,422,408
0
0
null
null
null
null
UTF-8
Java
false
false
2,711
java
/** * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * You may not modify, use, reproduce, or distribute this software except in * compliance with the terms of the License at: * http://java.net/projects/javaeetutorial/pages/BerkeleyLicense */ package javaeetutorial.simplegreeting; import java.io.Serializable; import java.util.Date; import javax.enterprise.context.SessionScoped; import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.validator.ValidatorException; import javax.inject.Named; @Named @SessionScoped public class UserBean implements Serializable { protected String firstName = "Duke"; protected String lastName = "Java"; protected Date dob; protected String sex = "Unknown"; protected String email; protected String serviceLevel = "medium"; public UserBean() {} public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getServiceLevel() { return serviceLevel; } public void setServiceLevel(String serviceLevel) { this.serviceLevel = serviceLevel; } public void validateEmail(FacesContext context, UIComponent toValidate, Object value) throws ValidatorException { String emailStr = (String) value; if (-1 == emailStr.indexOf("@")) { FacesMessage message = new FacesMessage("Invalid email address"); throw new ValidatorException(message); } } public String addConfirmedUser() { // This method would call a database or other service and add the // confirmed user information. // For now, we just place an informative message in request scope FacesMessage doneMessage = new FacesMessage("Successfully added new user"); FacesContext.getCurrentInstance().addMessage(null, doneMessage); return "done"; } }
[ "magangde@yahoo.de" ]
magangde@yahoo.de
492a587b1e8ed4bfce69a85cc0bd64192bbabba9
751074944bd92b5e355b3dfe8f945fa208114e7a
/souvenir/src/main/java/com/mtsmda/souvenir/model/SouvenirAudit.java
36fc0679bcbc6208a4c9bafeadadfd98dc2a0a27
[]
no_license
akbars95/springExperiments_03052015
f4ae64653cf87dbded361afbf9ee21af07def19c
7f89a215fda4ecf271fe2b28c1ba5288852feabe
refs/heads/master
2020-06-05T01:17:46.198821
2016-02-26T15:59:55
2016-02-26T16:00:02
34,976,279
0
0
null
null
null
null
UTF-8
Java
false
false
1,747
java
package com.mtsmda.souvenir.model; import java.io.Serializable; import java.util.Date; import com.mtsmda.souvenir.annotation.ModelClassInfo; /** * Created by c-DMITMINZ on 29.01.2016. */ @ModelClassInfo(tableName = "SOUVENIRS_AUDIT") public class SouvenirAudit implements Serializable { /** * */ private static final long serialVersionUID = 1L; private Souvenir souvenir; private Date createdDatetime; private Date lastUpdateDatetime; public SouvenirAudit() { } public Souvenir getSouvenir() { return souvenir; } public void setSouvenir(Souvenir souvenir) { this.souvenir = souvenir; } public Date getCreatedDatetime() { return createdDatetime; } public void setCreatedDatetime(Date createdDatetime) { this.createdDatetime = createdDatetime; } public Date getLastUpdateDatetime() { return lastUpdateDatetime; } public void setLastUpdateDatetime(Date lastUpdateDatetime) { this.lastUpdateDatetime = lastUpdateDatetime; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SouvenirAudit that = (SouvenirAudit) o; if (!souvenir.equals(that.souvenir)) return false; if (!createdDatetime.equals(that.createdDatetime)) return false; return lastUpdateDatetime.equals(that.lastUpdateDatetime); } @Override public int hashCode() { int result = souvenir.hashCode(); result = 31 * result + createdDatetime.hashCode(); result = 31 * result + lastUpdateDatetime.hashCode(); return result; } @Override public String toString() { return "SouvenirsAudit{" + "souvenir=" + souvenir + ", createdDatetime=" + createdDatetime + ", lastUpdateDatetime=" + lastUpdateDatetime + '}'; } }
[ "mynzat.dmitrii@gmail.com" ]
mynzat.dmitrii@gmail.com
ae8cc0b34baddaafe6e1f3b004a3176d4485e841
e43041f6fd1fb11501f210e5e5c2640c85419250
/trunk/ZionGroup/src/cabrobo/RobotColors.java
ebf10c47a4bac26dc80ace4df00973e9bf58a365
[]
no_license
BGCX262/zyon-group-pe-svn-to-git
24f80cb759bf930795767a58bf34756518f2bd61
6645a5ff141dfc7b879e840fdff376b5f8d7fcde
refs/heads/master
2021-01-20T10:42:41.896572
2015-08-23T06:54:06
2015-08-23T06:54:06
41,243,914
0
0
null
null
null
null
UTF-8
Java
false
false
1,001
java
/******************************************************************************* * Copyright (c) 2001, 2010 Mathew A. Nelson and Robocode contributors * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://robocode.sourceforge.net/license/epl-v10.html * * Contributors: * Mathew A. Nelson * - Initial implementation * Flemming N. Larsen * - Maintainance *******************************************************************************/ package cabrobo; import java.awt.*; /** * RobotColors - A serializable class to send Colors to teammates */ public class RobotColors implements java.io.Serializable { private static final long serialVersionUID = 1L; public Color bodyColor; public Color gunColor; public Color radarColor; public Color scanColor; public Color bulletColor; }
[ "you@example.com" ]
you@example.com
6bbf1ccd138849cc5f59c5db8a70d72d32078119
baf7aec70102f2a53bf4d48f3e40b5f55d41c09b
/src/main/java/com/skywell/banking/api/ws/user/ChangePass.java
bf1b46e10b1dbc75fdc65e598aed295393c03e49
[]
no_license
ivartanian/banking
6d32afc564b53f387236a417d9b01b468d48c0e7
1603df83236984d066ff7a9a55a25d551d7ffad0
refs/heads/master
2021-01-10T10:28:16.902422
2016-02-18T15:58:06
2016-02-18T15:58:06
51,403,568
0
0
null
null
null
null
UTF-8
Java
false
false
3,490
java
package com.skywell.banking.api.ws.user; import com.skywell.banking.api.ws.ReqBase; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for changePass complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="changePass"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="reqBase" type="{http://cb.ukrpay.net/common/ws}reqBase"/> * &lt;element name="login" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="hashCurrentPassword" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;element name="hashNewPassword" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "changePass", propOrder = { "reqBase", "login", "hashCurrentPassword", "hashNewPassword" }) public class ChangePass { @XmlElement(required = true) protected ReqBase reqBase; @XmlElement(required = true) protected String login; @XmlElement(required = true) protected String hashCurrentPassword; @XmlElement(required = true) protected String hashNewPassword; /** * Gets the value of the reqBase property. * * @return * possible object is * {@link ReqBase } * */ public ReqBase getReqBase() { return reqBase; } /** * Sets the value of the reqBase property. * * @param value * allowed object is * {@link ReqBase } * */ public void setReqBase(ReqBase value) { this.reqBase = value; } /** * Gets the value of the login property. * * @return * possible object is * {@link String } * */ public String getLogin() { return login; } /** * Sets the value of the login property. * * @param value * allowed object is * {@link String } * */ public void setLogin(String value) { this.login = value; } /** * Gets the value of the hashCurrentPassword property. * * @return * possible object is * {@link String } * */ public String getHashCurrentPassword() { return hashCurrentPassword; } /** * Sets the value of the hashCurrentPassword property. * * @param value * allowed object is * {@link String } * */ public void setHashCurrentPassword(String value) { this.hashCurrentPassword = value; } /** * Gets the value of the hashNewPassword property. * * @return * possible object is * {@link String } * */ public String getHashNewPassword() { return hashNewPassword; } /** * Sets the value of the hashNewPassword property. * * @param value * allowed object is * {@link String } * */ public void setHashNewPassword(String value) { this.hashNewPassword = value; } }
[ "igor.vartanian@gmail.com" ]
igor.vartanian@gmail.com
45a0514c52c294daa05fed96a45f390aa1e7d02f
e682fa3667adce9277ecdedb40d4d01a785b3912
/internal/fischer/mangf/A106181.java
28a831efe0f9d97028e4c03a5dc0e2b848324ffb
[ "Apache-2.0" ]
permissive
gfis/joeis-lite
859158cb8fc3608febf39ba71ab5e72360b32cb4
7185a0b62d54735dc3d43d8fb5be677734f99101
refs/heads/master
2023-08-31T00:23:51.216295
2023-08-29T21:11:31
2023-08-29T21:11:31
179,938,034
4
1
Apache-2.0
2022-06-25T22:47:19
2019-04-07T08:35:01
Roff
UTF-8
Java
false
false
386
java
package irvine.oeis.a106; import irvine.math.z.Z; import irvine.oeis.recur.HolonomicRecurrence; /** * A106181 Expansion of c(-x^2)(1+2x-sqrt(1+4x^2))/2, c(x) the g.f. of A000108. * @author Georg Fischer */ public class A106181 extends HolonomicRecurrence { /** Construct the sequence. */ public A106181() { super(0, "[[0],[-12,4],[-4,4],[0,1],[2,1]]", "0,1,-1", 0); } }
[ "dr.Georg.Fischer@gmail.com" ]
dr.Georg.Fischer@gmail.com
fc80f49b41a61d621cf379c4a32dfab50c8f0777
82f8969288302f6d52c002373dfd172c99bdae47
/demo/gradle-demo/src/main/java/com/ciaoshen/sia/demo/gradle_demo/todo/model/ToDoItem.java
d9a96e53e338c84a5324bf6e0c15d84a3e46f2ca
[ "MIT" ]
permissive
helloShen/spring-in-action
c75521f7a013ce691dc5aaa76b83030739bbbc57
b6f60fea7c2fc7640440597fede183dbbd61d65d
refs/heads/master
2023-04-22T04:05:09.109174
2021-05-09T05:03:08
2021-05-09T05:03:08
362,617,109
0
0
null
null
null
null
UTF-8
Java
false
false
779
java
package com.ciaoshen.sia.demo.gradle_demo.todo.model; public class ToDoItem implements Comparable<ToDoItem> { private Long id; private String name; private boolean completed; /* InMemoryToDoRepository will set id before inserting items */ public ToDoItem(String name) { this.name = name; this.completed = false; } public void setId(Long id) { this.id = id; } public Long getId() { return id; } public String getName() { return name; } public boolean getCompleted() { return completed; } public int compareTo(ToDoItem item) { return (int) (this.id - item.id); } public String toString() { return "Item[" + id + "]:\t" + name + "\n"; } }
[ "symantec__@hotmail.com" ]
symantec__@hotmail.com
7e84870685321c9e077c111e887a30de15b9458e
7d1b25e3b875cf22e3bc283820d5df207452e4dd
/AlpineUtility/src/com/alpine/utility/db/MultiDBGreenplumUtility.java
6001dadd1997aed9863c4e123e933ca7e2025beb
[]
no_license
thyferny/indwa-work
6e0aea9cbd7d8a11cc5f7333b4a1c3efeabb1ad0
53a3c7d9d831906837761465433e6bfd0278c94e
refs/heads/master
2020-05-20T01:26:56.593701
2015-12-28T05:40:29
2015-12-28T05:40:29
42,904,565
0
0
null
null
null
null
UTF-8
Java
false
false
365
java
/** * ClassName MultiDBGreenplumUtility.java * * Version information: 1.00 * * Data: 2011-11-26 * * COPYRIGHT (C) 2011 Alpine Solutions. All Rights Reserved. **/ package com.alpine.utility.db; public class MultiDBGreenplumUtility extends AbstractMultiDBUtilityGPPG { /** * */ private static final long serialVersionUID = -7993985724639684779L; }
[ "thyferny@163.com" ]
thyferny@163.com
63a72e5e73a1fa28a027a05cdb86fb5260f61d3c
e9baa988168e102c409c75ab70269f7af2b51be6
/mbm/src/main/java/org/multibit/mbm/resources/PublicItemResource.java
f6f16c84e1ade28005ebb4d25d0c3e4ef2bbc847
[ "MIT" ]
permissive
kenrestivo/MultiBitMerchant
b1c56d53796ac6031bf4877f1c3ecdd29dcb38f6
9a81e237face023f59dec927a2d7a960f72abfcb
refs/heads/master
2021-01-16T19:11:51.361683
2012-10-12T17:17:01
2012-10-12T17:17:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,251
java
package org.multibit.mbm.resources; import com.google.common.base.Optional; import com.yammer.dropwizard.jersey.caching.CacheControl; import com.yammer.metrics.annotation.Timed; import org.multibit.mbm.api.hal.HalMediaType; import org.multibit.mbm.api.response.hal.item.CustomerItemCollectionBridge; import org.multibit.mbm.db.dao.ItemDao; import org.multibit.mbm.db.dto.Item; import org.multibit.mbm.db.dto.User; import org.springframework.stereotype.Component; import javax.annotation.Resource; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import java.util.List; import java.util.concurrent.TimeUnit; /** * <p>Resource to provide the following to application:</p> * <ul> * <li>Provision of REST endpoints to manage Item retrieval operations * by the public</li> * </ul> * <p>This is the main interaction point for the public to get detail on Items for sale.</p> * * @since 0.0.1 */ @Component @Path("/item") @Produces({HalMediaType.APPLICATION_HAL_JSON, HalMediaType.APPLICATION_HAL_XML, MediaType.APPLICATION_JSON}) public class PublicItemResource extends BaseResource { @Resource(name = "hibernateItemDao") ItemDao itemDao; /** * Provide a paged response of all items in the system * * @param rawPageSize The unvalidated page size * @param rawPageNumber The unvalidated page number * * @return A response containing a paged list of all items */ @GET @Timed @Path("/promotion") @CacheControl(maxAge = 6, maxAgeUnit = TimeUnit.HOURS) public Response retrieveAllByPage( @QueryParam("pageSize") Optional<String> rawPageSize, @QueryParam("pageNumber") Optional<String> rawPageNumber) { // Validation int pageSize = Integer.valueOf(rawPageSize.get()); int pageNumber = Integer.valueOf(rawPageNumber.get()); List<Item> items = itemDao.getAllByPage(pageSize, pageNumber); // Provide a representation to the client CustomerItemCollectionBridge bridge = new CustomerItemCollectionBridge(uriInfo, Optional.<User>absent()); return ok(bridge, items); } public void setItemDao(ItemDao itemDao) { this.itemDao = itemDao; } }
[ "g.rowe@froot.co.uk" ]
g.rowe@froot.co.uk
3050f1901a547b2c1ea9ac5430ae6a69827b130b
70ab62b9dfbd4cff64e4e8c3bd80b045bfb20772
/MyApplication/androidserver/src/main/java/net/tt/androidserver/activity/BoundActivity.java
ae2886a376a7d3e85440a6ee948854251fdef50e
[]
no_license
jspfei/android-_new_technology
072cb4f9a93100f67673a86178889d8bdb95b7c2
235a06a10c803ae9c7544d9a71c19cf757d6d022
refs/heads/master
2020-05-30T12:53:09.221035
2017-05-25T06:49:51
2017-05-25T06:49:51
82,629,765
0
0
null
null
null
null
UTF-8
Java
false
false
3,377
java
package net.tt.androidserver.activity; import android.app.Activity; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.util.Log; import android.view.View; import android.widget.Button; import net.tt.androidserver.R; import net.tt.androidserver.server.MyBindService; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class BoundActivity extends Activity { private static final String TAG = "BoundActivity"; private ServiceConnection sc = new MyServiceConnection(); private MyBindService.MyBinder myBinder; private MyBindService myBindService; private boolean mBound; private class MyServiceConnection implements ServiceConnection{ @Override public void onServiceConnected(ComponentName name, IBinder service) { Log.i(TAG, "onServiceConnected: "); myBinder = (MyBindService.MyBinder) service; myBindService = myBinder.getService(); mBound = true; } @Override public void onServiceDisconnected(ComponentName name) { mBound = false; Log.i(TAG, "onServiceDisconnected: "); } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_bound); findViewById(R.id.bindService).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(BoundActivity.this,MyBindService.class); bindService(intent,sc, Context.BIND_AUTO_CREATE); } }); findViewById(R.id.unBindService).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { excuteUnbindService(); } }); String cmd = "adb shell"; String cmd1 = "am start -n com.android.browser/com.android.browser.BrowserActivity"; try { execCommand(cmd); execCommand(cmd1); } catch (IOException e) { } } public void execCommand(String command) throws IOException { Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec(command); try { if (proc.waitFor() != 0) { System.err.println("exit value = " + proc.exitValue()); } BufferedReader in = new BufferedReader(new InputStreamReader( proc.getInputStream())); StringBuffer stringBuffer = new StringBuffer(); String line = null; while ((line = in.readLine()) != null) { stringBuffer.append(line+"-"); } System.out.println(stringBuffer.toString()); } catch (InterruptedException e) { System.err.println(e); } } private void excuteUnbindService() { if (mBound) { unbindService(sc); mBound = false; } } @Override protected void onDestroy() { super.onDestroy(); Log.w(TAG, "in onDestroy"); excuteUnbindService(); } }
[ "jiangfeifan8@163.com" ]
jiangfeifan8@163.com
7131b6534435e8909efa04342a724a3d87ff5daa
7cf7d9729dae85781d9ceee4494c241e50cd3a5b
/WLPoker/src/com/wlzndjk/poker/picupload/UploadService.java
7cb33ce3384343967f54421e3a4e8529152a1b09
[]
no_license
heshicaihao/DIY_Poker
e80e58d57943a117ca65fe8a02826e942a312195
70a100b2a0ef37b4dcf09d2a23f3335f6dad0df8
refs/heads/master
2021-04-29T08:53:48.774419
2018-01-09T01:59:45
2018-01-09T01:59:45
77,670,538
0
0
null
null
null
null
UTF-8
Java
false
false
2,272
java
package com.wlzndjk.poker.picupload; import com.wlzndjk.poker.utils.LogUtils; import android.app.Service; import android.content.Intent; import android.os.IBinder; public class UploadService extends Service { public static String TAG = "UploadService"; public Thread mThread ; public UploadManagerThread mUploadManagerThread; public static int cout = 0; private static UploadService instance; @Override public void onCreate() { LogUtils.logd(TAG, "onCreate"); instance = this; UploadTaskManager.getInstance(); mUploadManagerThread = new UploadManagerThread(); super.onCreate(); LogUtils.logd(TAG, "onCreate++++"); } @Override public IBinder onBind(Intent intent) { LogUtils.logd(TAG, "onBind"); return null; } /** * Android 2.0时 使用的开启Service */ @Override public void onStart(Intent intent, int startId) { LogUtils.logd(TAG, "onStart"); } /** * Android 2.0以后 使用的开启Service */ @Override public int onStartCommand(Intent intent, int flags, int startId) { LogUtils.logd(TAG, "onStartCommand"); String msg = intent.getExtras().getString("flag"); String url = intent.getExtras().getString("url"); LogUtils.logd(TAG, "msg:"+msg); LogUtils.logd(TAG, "url:"+url); if (mThread == null) { mThread = new Thread(mUploadManagerThread); } if (mThread==null) { LogUtils.logd(TAG, "mThread:+mThread==null"); } if (mUploadManagerThread==null) { LogUtils.logd(TAG, "mUploadManagerThread:+mUploadManagerThread==null"); } if (msg.equals("start")) { startUpload(); } else if (msg.equals("stop")) { // mUploadManagerThread.setStop(true); stopSelf(); } // return super.onStartCommand(intent, flags, startId); return START_STICKY_COMPATIBILITY; } @Override public void onDestroy() { try { mThread.join(); } catch (InterruptedException e) { e.printStackTrace(); } // mUploadManagerThread.setStop(true); mThread = null; super.onDestroy(); } public static UploadService getInstance() { return instance; } private void startUpload() { mThread = new Thread(mUploadManagerThread); mThread.start(); LogUtils.logd(TAG, "mThread.start()"); } }
[ "heshicaihao@163.com" ]
heshicaihao@163.com
c202d62acc580037beff5797f7e7b3755c4e5327
f3dae74bf4b00e3c8ee9bd7aca41d454c5ee760c
/Android/app/src/test/java/ro/pub/cs/systems/eim/practicaltest01var01/ExampleUnitTest.java
f9177134739e9c9ebd23911cb83360bbbd4e9b99
[ "Apache-2.0" ]
permissive
rykymaru/PracticalTest01Var01
ee7cbaa8febdcd480f8e18e8da901f1573366b0c
2791a86b205d0ff3dc1c9991324986e1781f3cd8
refs/heads/master
2020-03-08T04:36:16.374258
2018-04-03T16:32:04
2018-04-03T16:32:04
127,926,868
0
0
null
null
null
null
UTF-8
Java
false
false
420
java
package ro.pub.cs.systems.eim.practicaltest01var01; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "student@cti.pub.ro" ]
student@cti.pub.ro
06a6508023eff6c43ce2c9071c778a248139a3e0
92a5d0e9f91a85bdeace182e2af425b46178e39a
/oh-my-scheduler-worker/src/main/java/com/github/kfcfans/oms/worker/persistence/ConnectionFactory.java
ec89fa4eab88a9398ec018ccd63db38d69d66770
[ "Apache-2.0" ]
permissive
ColaFans/OhMyScheduler
fd0f1efe9f9f2f1386ef34728fe53ea609e1ec6d
53cbe060b65df78730b2f576c27b6f143de78ffb
refs/heads/master
2022-10-13T14:22:03.678873
2020-06-09T03:00:23
2020-06-09T03:00:23
270,890,471
2
1
Apache-2.0
2020-06-09T03:06:58
2020-06-09T03:06:58
null
UTF-8
Java
false
false
1,657
java
package com.github.kfcfans.oms.worker.persistence; import com.github.kfcfans.oms.worker.OhMyWorker; import com.github.kfcfans.oms.worker.common.constants.StoreStrategy; import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; import javax.sql.DataSource; import java.sql.Connection; import java.sql.SQLException; /** * 数据库连接管理 * * @author tjq * @since 2020/3/17 */ public class ConnectionFactory { private static volatile DataSource dataSource; private static final String DISK_JDBC_URL = "jdbc:h2:file:~/oms/h2/oms_worker_db"; private static final String MEMORY_JDBC_URL = "jdbc:h2:mem:~/oms/h2/oms_worker_db"; public static Connection getConnection() throws SQLException { return getDataSource().getConnection(); } private static DataSource getDataSource() { if (dataSource != null) { return dataSource; } synchronized (ConnectionFactory.class) { if (dataSource == null) { StoreStrategy strategy = OhMyWorker.getConfig().getStoreStrategy(); HikariConfig config = new HikariConfig(); config.setDriverClassName("org.h2.Driver"); config.setJdbcUrl(strategy == StoreStrategy.DISK ? DISK_JDBC_URL : MEMORY_JDBC_URL); config.setAutoCommit(true); // 池中最小空闲连接数量 config.setMinimumIdle(2); // 池中最大连接数量 config.setMaximumPoolSize(32); dataSource = new HikariDataSource(config); } } return dataSource; } }
[ "tengjiqi@gmail.com" ]
tengjiqi@gmail.com
6237ba7d4f78d6c055f31e9628840b491eb92e75
f7b737b80a2e7407732f9ced0b6d8c21f8bcb9ef
/raw.githubusercontent.com/fixteam/fixflow/master/modules/fixflow-core/src/main/java/com/founder/fix/fixflow/core/impl/runtime/IdentityLinkQueryImpl.java
f09b8ad9d4818eea9290b04f2711854fd24c4341
[]
no_license
uetestina/ml1
7f6f9e932efb87231cd2d29f217ca8b09dc25f6f
ccb13a4ac6030b91915ff5a6c1a82f46ca824d4a
refs/heads/main
2023-08-14T00:09:00.148704
2021-10-01T16:02:21
2021-10-01T16:02:21
412,149,108
0
0
null
null
null
null
UTF-8
Java
false
false
3,966
java
/** * Copyright 1996-2013 Founder International Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * @author kenshin */ package com.founder.fix.fixflow.core.impl.runtime; import java.util.List; import com.founder.fix.fixflow.core.impl.AbstractQuery; import com.founder.fix.fixflow.core.impl.Page; import com.founder.fix.fixflow.core.impl.interceptor.CommandContext; import com.founder.fix.fixflow.core.impl.interceptor.CommandExecutor; import com.founder.fix.fixflow.core.runtime.IdentityLinkQuery; import com.founder.fix.fixflow.core.runtime.QueryLocation; import com.founder.fix.fixflow.core.task.IdentityLink; import com.founder.fix.fixflow.core.task.IdentityLinkType; import com.founder.fix.fixflow.core.task.IncludeExclusion; public class IdentityLinkQueryImpl extends AbstractQuery<IdentityLinkQuery, IdentityLink> implements IdentityLinkQuery{ protected String id; protected IdentityLinkType type; protected String userId; protected String groupId; protected String groupType; protected QueryLocation queryLocation = null; protected IncludeExclusion includeExclusion; protected String taskId; public IdentityLinkQueryImpl() { } public IdentityLinkQueryImpl(CommandContext commandContext) { super(commandContext); } public IdentityLinkQueryImpl(CommandExecutor commandExecutor) { super(commandExecutor); } public IdentityLinkQuery id(String id) { this.id=id; return this; } public IdentityLinkQuery taskId(String taskId) { this.taskId=taskId; return this; } public IdentityLinkQuery userId(String userId) { this.userId=userId; return this; } public IdentityLinkQuery groupId(String groupId) { this.groupId=groupId; return this; } public IdentityLinkQuery groupType(String groupType) { this.groupType=groupType; return this; } //containAndExclude public IdentityLinkQuery includeExclusion(IncludeExclusion includeExclusion) { this.includeExclusion=includeExclusion; return this; } public IdentityLinkQuery type(IdentityLinkType type) { this.type=type; return this; } public IdentityLinkQuery his() { if(this.queryLocation != null){ this.queryLocation = QueryLocation.RUN_HIS; }else{ this.queryLocation = QueryLocation.HIS; } return this; } public IdentityLinkQuery run() { if(this.queryLocation != null){ this.queryLocation = QueryLocation.RUN_HIS; }else{ this.queryLocation = QueryLocation.RUN; } return this; } public long executeCount(CommandContext commandContext) { checkQueryOk(); // ensureVariablesInitialized(); return commandContext.getIdentityLinkManager().findIdentityLinkCountByQueryCriteria(this); } @SuppressWarnings({ "unchecked", "rawtypes" }) public List<IdentityLink> executeList(CommandContext commandContext, Page page) { checkQueryOk(); // ensureVariablesInitialized(); return (List)commandContext.getIdentityLinkManager().findIdentityLinkByQueryCriteria(this, page); } public String getId() { return id; } public IdentityLinkType getType() { return type; } public String getUserId() { return userId; } public String getGroupId() { return groupId; } public String getGroupType() { return groupType; } public IncludeExclusion getIncludeExclusion() { return includeExclusion; } public String getTaskId() { return taskId; } public QueryLocation getQueryLocation() { return queryLocation; } }
[ "80405879+maurielloelollo@users.noreply.github.com" ]
80405879+maurielloelollo@users.noreply.github.com
403d82f5d9a5a06b95c32944bfde02d8a7b37650
e448bef423c920fc165281288ae3d431b1cb186c
/ttk-fx-application-layer/ttk-fx-application/src/main/java/org/ihtsdo/ttk/fx/app/IsaacApp.java
310ef630be62b88437644516deb9e2a0ac994905
[]
no_license
jefron-ap/TTK
98ee994a1557be2768bd11f2d4225f20310a9566
9b6858752dec575b88e128b3bbf3e6e7753574b6
refs/heads/master
2021-01-02T09:02:03.705356
2013-11-25T22:06:05
2013-11-25T22:06:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,093
java
/* * Copyright 2013 VA Office of Informatics and Analytics. * * 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.ihtsdo.ttk.fx.app; //~--- non-JDK imports -------------------------------------------------------- import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.stage.Stage; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.config.IniSecurityManagerFactory; import org.apache.shiro.mgt.SecurityManager; import org.apache.shiro.session.Session; import org.apache.shiro.subject.Subject; import org.apache.shiro.util.Factory; import org.ihtsdo.otf.tcc.lookup.Looker; import org.ihtsdo.otf.tcc.lookup.TtkEnvironment; import org.ihtsdo.ttk.services.aa.SessionAttributeKeys; //~--- JDK imports ------------------------------------------------------------ import java.io.IOException; import org.ihtsdo.otf.tcc.api.metadata.binding.Snomed; import org.ihtsdo.otf.tcc.api.metadata.binding.TermAux; import org.ihtsdo.ttk.services.aa.SessionAttributes; import org.ihtsdo.ttk.services.action.ActionService; /** * * @author kec */ public class IsaacApp extends Application { /** * Method description * * * @param primaryStage * * @throws IOException */ private void setupStage(Stage primaryStage) throws IOException { Pane isaacPane = (Pane) FXMLLoader.load(getClass().getResource("/fxml/Isaac.fxml")); // ScenicView.show(isaacPane); primaryStage.setScene(new Scene(isaacPane)); } /** * Method description * * * @param args */ public static void main(String[] args) { Factory<SecurityManager> factory = new IniSecurityManagerFactory("classpath:shiro.ini"); SecurityUtils.setSecurityManager(factory.getInstance()); Subject currentUser = SecurityUtils.getSubject(); Session session = currentUser.getSession(); if (!currentUser.isAuthenticated()) { // collect user principals and credentials in a gui specific manner // such as username/password html form, X509 certificate, OpenID, etc. // We'll use the username/password example here since it is the most common. UsernamePasswordToken token = new UsernamePasswordToken("root", "secret"); // this is all you have to do to support 'remember me' (no config - built in!): token.setRememberMe(true); currentUser.login(token); } if (currentUser.isAuthenticated()) { // TODO somehow associate the user UUID with the subject SessionAttributes.get().put(SessionAttributeKeys.USER_UUID_ARRAY, TermAux.USER.getUuids()); SessionAttributes.get().put(SessionAttributeKeys.EDIT_MODULE_UUID_ARRAY, Snomed.CORE_MODULE.getUuids()); } else { System.out.println("User is not authenticated"); System.exit(0); } launch(args); } @Override public void init() throws Exception { ActionService.start(); Looker.lookup(TtkEnvironment.class).setUseFxWorkers(true); } /** * Method description * * * @param primaryStage * * @throws Exception */ @Override public void start(Stage primaryStage) throws Exception { setupStage(primaryStage); primaryStage.show(); } /** * Method description * * * @throws Exception */ @Override public void stop() throws Exception { System.exit(0); } }
[ "jefron@apelon.com" ]
jefron@apelon.com
868c9af715984daa15437abd5bd4437f454af640
374ad03287670140e4a716aa211cdaf60f50c944
/ztr-common/ztravel-reuse/src/main/java/com/ztravel/reuse/order/converter/Convert2OrderPayBean.java
2dd6e5bead64312e4b4a65df4a03f6ce0454e401
[]
no_license
xxxJppp/firstproj
ca541f8cbe004a557faff577698c0424f1bbd1aa
00dcfbe731644eda62bd2d34d55144a3fb627181
refs/heads/master
2020-07-12T17:00:00.549410
2017-04-17T08:29:58
2017-04-17T08:29:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,540
java
package com.ztravel.reuse.order.converter; import java.util.Enumeration; import javax.servlet.http.HttpServletRequest; import com.ztravel.common.enums.PaymentType; import com.ztravel.common.enums.ProductType; import com.ztravel.common.payment.OrderPayBean; import com.ztravel.common.util.SSOUtil; import com.ztravel.common.util.WebEnv; import com.ztravel.reuse.order.entity.OrderPayFormBean; import com.ztravel.reuse.order.entity.OrderPayVo; public class Convert2OrderPayBean { public static OrderPayBean convert2OrderPayBean(OrderPayFormBean s, HttpServletRequest request) throws Exception{ OrderPayBean t = new OrderPayBean(); String orderId = ""; if(s.getOrderNo() != null){ orderId = s.getOrderNo(); } t.setOrderId(orderId); t.setFgNotifyUrl(s.getFgNotifyUrl()); String memberId = ""; if(SSOUtil.getMemberId() != null){ memberId = SSOUtil.getMemberId(); } t.setMemberId(memberId); PaymentType paymentType = PaymentType.Alipay; if(s.getPaymentType() != null){ paymentType = s.getPaymentType(); } t.setPaymentType(paymentType); t.setComment(s.getComment()); boolean isMobile = isMoblile(request); t.setMobile(isMobile); String fgNotifyUrl = getFgNotifyUrl(); t.setFgNotifyUrl(fgNotifyUrl); t.setPayAmount(s.getPayAmount()); String couponItemId = ""; if(s.getCouponItemId() != null ){ couponItemId = s.getCouponItemId(); } t.setCouponItemId(couponItemId); t.setUseCoupon(s.getUseCoupon()); t.setOrderAmount(s.getOrderAmount()); t.setUseRewardPoint(s.getUseRewardPoint()); t.setProductType(s.getProductType()); return t; } private static boolean isMoblile(HttpServletRequest request) { @SuppressWarnings("rawtypes") Enumeration headerNames = request.getHeaderNames(); //先获取头信息 while(headerNames.hasMoreElements()) { //如果有头的话 String headerName = (String)headerNames.nextElement();//获取首个头元素 if (headerName.equals("x-up-calling-line-id")) {//如果头信息是x-up-calling-line-id那基本上可以确定是手机了 String temvit=request.getHeader(headerName);//再进一步确认 if (temvit.substring(0,3).trim().equals("861") || temvit.substring(0,2).trim().equals("13")) { return true; } } } return false; } private static String getFgNotifyUrl() { String fgNotifyUrl = WebEnv.get("server.path.memberServer", "") //服务器地址 + "/orderPay/payResult" ; //请求页面或其他地址 return fgNotifyUrl; } public static OrderPayBean buildOrderPayBeanByOrderPayVo(OrderPayVo orderPayVo) throws Exception{ OrderPayBean orderPayBean = new OrderPayBean(); String memberId = ""; orderPayBean.setOrderId(orderPayVo.getOrderCode()); if(SSOUtil.getMemberId() !=null){ memberId = SSOUtil.getMemberId(); } orderPayBean.setMemberId(memberId); orderPayBean.setUseCoupon(orderPayVo.getDiscountCoupon() == null ? 0l : orderPayVo.getDiscountCoupon()); orderPayBean.setPayAmount(orderPayVo.getPayAmount() ==null ? 0l : orderPayVo.getPayAmount()); String couponItemId = ""; if(orderPayVo.getCouponItemId() != null){ couponItemId = orderPayVo.getCouponItemId(); } orderPayBean.setCouponItemId(couponItemId); orderPayBean.setUseRewardPoint(orderPayVo.getUseRewardPoint() ==null ? 0l :orderPayVo.getUseRewardPoint()); orderPayBean.setOrderAmount(orderPayVo.getTotalPrice() == null ? 0l : orderPayVo.getTotalPrice()); orderPayBean.setProductType(ProductType.valueOf(orderPayVo.getProductType())); return orderPayBean; } }
[ "yining.ni@travelzen.com" ]
yining.ni@travelzen.com
18fc386fd04d13434046389eadee9ada036fb116
3cb6cca32eab27cf507bd3937a903676b3cea6c5
/third_party/java/htmlparser/src/nu/validator/saxtree/ParentNode.java
2539c54c026b1d174a44fe6fe84eed1325015cf9
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
rahulchaurasiazx55/caja
1982461b68924915c09564370459d7784ff92c10
719b0d03c68461bc6bde8e7ad370e36471209846
refs/heads/master
2022-12-23T02:34:31.261651
2020-09-30T18:31:49
2020-09-30T18:31:49
300,015,001
1
0
Apache-2.0
2020-09-30T18:25:42
2020-09-30T18:25:41
null
UTF-8
Java
false
false
6,251
java
/* * Copyright (c) 2007 Henri Sivonen * Copyright (c) 2008 Mozilla Foundation * * 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 nu.validator.saxtree; import org.xml.sax.Locator; /** * Common superclass for parent nodes. * @version $Id: ParentNode.java 499 2009-02-24 11:51:51Z hsivonen $ * @author hsivonen */ public abstract class ParentNode extends Node { /** * The end locator. */ protected Locator endLocator; /** * The first child. */ private Node firstChild = null; /** * The last child (for efficiency). */ private Node lastChild = null; /** * The constuctor. * @param locator the locator */ ParentNode(Locator locator) { super(locator); } /** * Sets the endLocator. * * @param endLocator the endLocator to set */ public void setEndLocator(Locator endLocator) { this.endLocator = new LocatorImpl(endLocator); } /** * Copies the endLocator from another node. * * @param another the another node */ public void copyEndLocator(ParentNode another) { this.endLocator = another.endLocator; } /** * Returns the firstChild. * * @return the firstChild */ public final Node getFirstChild() { return firstChild; } /** * Returns the lastChild. * * @return the lastChild */ public final Node getLastChild() { return lastChild; } /** * Insert a new child before a pre-existing child and return the newly inserted child. * @param child the new child * @param sibling the existing child before which to insert (must be a child of this node) or <code>null</code> to append * @return <code>child</code> */ public Node insertBefore(Node child, Node sibling) { assert sibling == null || this == sibling.getParentNode(); if (sibling == null) { return appendChild(child); } child.detach(); child.setParentNode(this); if (firstChild == sibling) { child.setNextSibling(sibling); firstChild = child; } else { Node prev = firstChild; Node next = firstChild.getNextSibling(); while (next != sibling) { prev = next; next = next.getNextSibling(); } prev.setNextSibling(child); child.setNextSibling(next); } return child; } public Node insertBetween(Node child, Node prev, Node next) { assert prev == null || this == prev.getParentNode(); assert next == null || this == next.getParentNode(); assert prev != null || next == firstChild; assert next != null || prev == lastChild; assert prev == null || next == null || prev.getNextSibling() == next; if (next == null) { return appendChild(child); } child.detach(); child.setParentNode(this); child.setNextSibling(next); if (prev == null) { firstChild = child; } else { prev.setNextSibling(child); } return child; } /** * Append a child to this node and return the child. * * @param child the child to append. * @return <code>child</code> */ public Node appendChild(Node child) { child.detach(); child.setParentNode(this); if (firstChild == null) { firstChild = child; } else { lastChild.setNextSibling(child); } lastChild = child; return child; } /** * Append the children of another node to this node removing them from the other node . * @param parent the other node whose children to append to this one */ public void appendChildren(Node parent) { Node child = parent.getFirstChild(); if (child == null) { return; } ParentNode another = (ParentNode) parent; if (firstChild == null) { firstChild = child; } else { lastChild.setNextSibling(child); } lastChild = another.lastChild; do { child.setParentNode(this); } while ((child = child.getNextSibling()) != null); another.firstChild = null; another.lastChild = null; } /** * Remove a child from this node. * @param node the child to remove */ void removeChild(Node node) { assert this == node.getParentNode(); if (firstChild == node) { firstChild = node.getNextSibling(); if (lastChild == node) { lastChild = null; } } else { Node prev = firstChild; Node next = firstChild.getNextSibling(); while (next != node) { prev = next; next = next.getNextSibling(); } prev.setNextSibling(node.getNextSibling()); if (lastChild == node) { lastChild = prev; } } } }
[ "mikesamuel@gmail.com" ]
mikesamuel@gmail.com
15dd5155255f4f4a61b73069c368309bfe0e8398
eb3707aca229ee832a4302dc3bc7486b33876d16
/pay/JavaSource/org/jfantasy/pay/rest/form/RefundForm.java
bf5de33b3d733fb50a92ecf7ffaf9328ce271115
[ "MIT" ]
permissive
limaofeng/jfantasy
2f3a3f7e529c454bb3a982809f0cfeaef8ffafc4
847f789175bfe3f251c497b9926db0db04c7cf4f
refs/heads/master
2021-01-19T04:50:14.451725
2017-07-08T03:44:56
2017-07-08T03:44:56
44,217,781
12
12
null
2016-01-06T08:36:45
2015-10-14T02:00:07
Java
UTF-8
Java
false
false
683
java
package org.jfantasy.pay.rest.form; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; @ApiModel("退款表单") public class RefundForm { @ApiModelProperty(value = "退款金额", required = true) private BigDecimal amount; @ApiModelProperty(value = "备注", required = false) private String remark; public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } }
[ "limaofeng@msn.com" ]
limaofeng@msn.com
c9e2607bd49b9f06e351444e01bb30d400355117
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-12667-4-24-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/doc/XWikiAttachment_ESTest.java
88debe5ee9403b69e23bd5f6767b297034afa650
[]
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
1,175
java
/* * This file was automatically generated by EvoSuite * Sun Apr 05 15:12:38 UTC 2020 */ package com.xpn.xwiki.doc; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import com.xpn.xwiki.doc.XWikiAttachment; import com.xpn.xwiki.doc.XWikiDocument; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.evosuite.runtime.ViolatedAssumptionAnswer; import org.junit.runner.RunWith; import org.xwiki.model.reference.DocumentReference; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class XWikiAttachment_ESTest extends XWikiAttachment_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { XWikiDocument xWikiDocument0 = mock(XWikiDocument.class, new ViolatedAssumptionAnswer()); doReturn((DocumentReference) null).when(xWikiDocument0).getDocumentReference(); XWikiAttachment xWikiAttachment0 = new XWikiAttachment(xWikiDocument0, (String) null); // Undeclared exception! xWikiAttachment0.getReference(); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
440a4129d427d2f49df7a20369c5810d411c5b4b
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/history_state/end/reason_teacher/country/result/problem_job/research_job_issue/fact.java
cf055f2c2d7e6cbac9cadbc4f9d1a278b69fe625
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Java
false
false
4,026
java
using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; // Install Newtonsoft.Json with NuGet using Newtonsoft.Json; namespace TranslationService.Controllers { public class Translate { public async Task<TranslationModels.TranslationResult[]> HandleTranslations(string textToTranslate) { // This is our main function. // Output languages are defined in the route. // For a complete list of options, see API reference. // https://docs.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate string host = "https://api.cognitive.microsofttranslator.com"; // Set the languages to translate to in the route string route = "/translate?api-version=3.0&to=de&to=it&to=ca&to=da&to=de&to=is"; string subscriptionKey = "d68849e490538549bad2835821238e85"; return await TranslateTextRequest(subscriptionKey, host, route, textToTranslate); } public async Task<TranslationModels.TranslationResult[]> HandleTranslationsWithListOfIdentifiers( List<TranslationModels.LanguageIdentifierToTranslateTo> languageList, string textToTranslate) { // https://docs.microsoft.com/azure/cognitive-services/translator/reference/v3-0-translate string host = "https://api.cognitive.microsofttranslator.com"; string route = SetRouteStringWithListOfLanguages(languageList); string subscriptionKey = ___subscriptionKeyFromAzureTranslationGoesInHere___; return await TranslateTextRequest(subscriptionKey, host, route, textToTranslate); } public string SetRouteStringWithListOfLanguages(List<TranslationModels.LanguageIdentifierToTranslateTo> languageList) { var returnString = "/translate?api-version=3.0"; for (var i = 0; i < languageList.Count; i++) { returnString = returnString + "&to=" + languageList[i].Identifier; } return returnString; } // This function requires C# 7.1 or later for async/await. // Async call to the Translator Text API static public async Task<TranslationModels.TranslationResult[]> TranslateTextRequest(string subscriptionKey, string host, string route, string inputText) { /* * The code for your call to the translation service will be added to this * function in the next few sections. */ object[] body = new object[] { new { Text = inputText } }; var requestBody = JsonConvert.SerializeObject(body); using (var client = new HttpClient()) using (var request = new HttpRequestMessage()) { // In the next few sections you'll add code to construct the request. // Build the request. // Set the method to Post. request.Method = HttpMethod.Post; // Construct the URI and add headers. request.RequestUri = new Uri(host + route); request.Content = new StringContent(requestBody, Encoding.UTF8, "application/json"); request.Headers.Add("77a3cc9c5d8783ccbc00c6d2e110e3e8", subscriptionKey); // Send the request and get response. HttpResponseMessage response = await client.SendAsync(request).ConfigureAwait(false); // Read response as a string. string result = await response.Content.ReadAsStringAsync(); // Deserialize the response using the classes created earlier. TranslationModels.TranslationResult[] deserializedOutput = JsonConvert.DeserializeObject<TranslationModels.TranslationResult[]>(result); return deserializedOutput; } } } }
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
56ba7173f666d99e7de313da8b94e07174483209
61a0772cdd94160470f536ff9bce8e111f1e8e1d
/greenback-kit-core/src/main/java/com/greenback/kit/model/Contact.java
2ce614510cca6c83827f89f6e1d3c15ef9abb5ed
[ "Apache-2.0" ]
permissive
PR0CUR8T0R/greenback-java
e0fa4bc216e02cd1d0ffc1705c1b532ee930830b
b4945c76abc8218ffaffc7e0a7f6ab6dbc99b4a3
refs/heads/master
2023-04-02T06:54:44.945463
2021-04-07T23:36:56
2021-04-07T23:36:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
864
java
package com.greenback.kit.model; public class Contact { private String id; private String domain; private String name; private String email; private String logoUrl; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDomain() { return domain; } public void setDomain(String domain) { this.domain = domain; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public String getLogoUrl() { return logoUrl; } public void setLogoUrl(String logoUrl) { this.logoUrl = logoUrl; } }
[ "joe@lauer.bz" ]
joe@lauer.bz
97dc998ca3baf4389afeec739dadde7e73b5e63a
26da0aea2ab0a2266bbee962d94a96d98a770e5f
/nam/nam-view/src/main/java/nam/model/domain/DomainInfoManager.java
27c3ff3825f0836c971da7436a2b8daaf3bf6abb
[ "Apache-2.0" ]
permissive
tfisher1226/ARIES
1de2bc076cf83488703cf18f7e3f6e3c5ef1b40b
814e3a4b4b48396bcd6d082e78f6519679ccaa01
refs/heads/master
2021-01-10T02:28:07.807313
2015-12-10T20:30:00
2015-12-10T20:30:00
44,076,313
2
0
null
null
null
null
UTF-8
Java
false
false
6,014
java
package nam.model.domain; import java.io.Serializable; import java.util.List; import javax.enterprise.context.SessionScoped; import javax.enterprise.event.Observes; import javax.inject.Inject; import javax.inject.Named; import org.aries.runtime.BeanContext; import org.aries.ui.Display; import org.aries.ui.event.Add; import org.aries.ui.event.Remove; import org.aries.util.Validator; import nam.model.Domain; import nam.model.Project; import nam.model.util.DomainUtil; import nam.model.util.ProjectUtil; import nam.ui.design.AbstractNamRecordManager; import nam.ui.design.SelectionContext; import nam.ui.design.WorkspaceEventManager; @SessionScoped @Named("domainInfoManager") public class DomainInfoManager extends AbstractNamRecordManager<Domain> implements Serializable { @Inject private DomainWizard domainWizard; @Inject private DomainDataManager domainDataManager; @Inject private DomainPageManager domainPageManager; @Inject private DomainEventManager domainEventManager; @Inject private WorkspaceEventManager workspaceEventManager; @Inject private DomainHelper domainHelper; @Inject private SelectionContext selectionContext; public DomainInfoManager() { setInstanceName("domain"); } public Domain getDomain() { return getRecord(); } public Domain getSelectedDomain() { return selectionContext.getSelection("domain"); } @Override public Class<Domain> getRecordClass() { return Domain.class; } @Override public boolean isEmpty(Domain domain) { return domainHelper.isEmpty(domain); } @Override public String toString(Domain domain) { return domainHelper.toString(domain); } @Override public void initialize() { Domain domain = selectionContext.getSelection("domain"); if (domain != null) initialize(domain); } protected void initialize(Domain domain) { domainWizard.initialize(domain); setContext("domain", domain); } @Override public String newRecord() { return newDomain(); } public String newDomain() { try { Domain domain = create(); selectionContext.resetOrigin(); selectionContext.setSelection("domain", domain); String url = domainPageManager.initializeDomainCreationPage(domain); domainPageManager.pushContext(domainWizard); initialize(domain); return url; } catch (Exception e) { handleException(e); return null; } } @Override public Domain create() { Domain domain = DomainUtil.create(); return domain; } @Override public Domain clone(Domain domain) { domain = DomainUtil.clone(domain); return domain; } @Override public String viewRecord() { return viewDomain(); } public String viewDomain() { Domain domain = selectionContext.getSelection("domain"); String url = viewDomain(domain); return url; } public String viewDomain(Domain domain) { try { String url = domainPageManager.initializeDomainSummaryView(domain); domainPageManager.pushContext(domainWizard); initialize(domain); return url; } catch (Exception e) { handleException(e); return null; } } @Override public String editRecord() { return editDomain(); } public String editDomain() { Domain domain = selectionContext.getSelection("domain"); String url = editDomain(domain); return url; } public String editDomain(Domain domain) { try { //domain = clone(domain); selectionContext.resetOrigin(); selectionContext.setSelection("domain", domain); String url = domainPageManager.initializeDomainUpdatePage(domain); domainPageManager.pushContext(domainWizard); initialize(domain); return url; } catch (Exception e) { handleException(e); return null; } } public void saveDomain() { Domain domain = getDomain(); if (validateDomain(domain)) { if (isImmediate()) persistDomain(domain); outject("domain", domain); } } public void persistDomain(Domain domain) { saveDomain(domain); } public void saveDomain(Domain domain) { try { saveDomainToSystem(domain); domainEventManager.fireAddedEvent(domain); } catch (Exception e) { handleException(e); } } protected void saveDomainToSystem(Domain domain) { domainDataManager.saveDomain(domain); } public void handleSaveDomain(@Observes @Add Domain domain) { saveDomain(domain); } public void addDomain(Domain domain) { try { //TODO } catch (Exception e) { handleException(e); } } public void enrichDomain(Domain domain) { //nothing for now } @Override public boolean validate(Domain domain) { return validateDomain(domain); } public boolean validateDomain(Domain domain) { Validator validator = getValidator(); boolean isValid = DomainUtil.validate(domain); Display display = getFromSession("display"); display.setModule("domainInfo"); display.addErrors(validator.getMessages()); //FacesContext.getCurrentInstance().isValidationFailed() setValidated(isValid); return isValid; } public void promptRemoveDomain() { display = getFromSession("display"); display.setModule("domainInfo"); Domain domain = selectionContext.getSelection("domain"); if (domain == null) { display.error("Domain record must be selected."); } } public String handleRemoveDomain(@Observes @Remove Domain domain) { display = getFromSession("display"); display.setModule("domainInfo"); try { display.info("Removing Domain "+DomainUtil.getLabel(domain)+" from the system."); removeDomainFromSystem(domain); selectionContext.clearSelection("domain"); domainEventManager.fireClearSelectionEvent(); domainEventManager.fireRemovedEvent(domain); workspaceEventManager.fireRefreshEvent(); return null; } catch (Exception e) { handleException(e); return null; } } protected void removeDomainFromSystem(Domain domain) { if (domainDataManager.removeDomain(domain)) setRecord(null); } public void cancelDomain() { BeanContext.removeFromSession("domain"); domainPageManager.removeContext(domainWizard); } }
[ "tfisher@kattare.com" ]
tfisher@kattare.com
1b48ef23d7045a32decd830ba0099a53bda37cb3
4bfb15b513883e5e80a3e859c5cf807932bfb8e4
/sdk/src/com/sharethis/loopy/sdk/ShareDialogFragment.java
14118273de7244972568a466573216ac272343c0
[ "Apache-2.0" ]
permissive
socialize/loopy-sdk-android
3fa8cfaf811f26afaf84da831c7ef4af8bcfc956
a1decd803adf94770e581b315010eee8e32ed9a1
refs/heads/master
2021-01-17T05:24:28.998558
2016-03-06T14:17:11
2016-03-06T14:17:11
13,255,671
4
2
null
2014-03-24T16:31:28
2013-10-01T21:04:34
Java
UTF-8
Java
false
false
167
java
package com.sharethis.loopy.sdk; import android.app.DialogFragment; /** * @author Jason Polites */ public class ShareDialogFragment extends DialogFragment { }
[ "jason.polites@gmail.com" ]
jason.polites@gmail.com
2aff014b56d6d7420285e79a55fbfa22edb09443
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/content/public/android/java/src/org/chromium/content/browser/PepperPluginManager.java
231cb725f5b0af16cde9d13848c8e556ed87e566
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Java
false
false
5,218
java
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.content.browser; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; import android.content.pm.ResolveInfo; import android.content.pm.ServiceInfo; import android.os.Bundle; import org.chromium.base.Log; import java.util.List; /** * {@link PepperPluginManager} collects meta data about plugins from preloaded android apps * that reply to PEPPERPLUGIN intent query. */ public class PepperPluginManager { private static final String TAG = "cr.PepperPluginManager"; /** * Service Action: A plugin wishes to be loaded in the ContentView must * provide {@link android.content.IntentFilter IntentFilter} that accepts * this action in its AndroidManifest.xml. */ public static final String PEPPER_PLUGIN_ACTION = "org.chromium.intent.PEPPERPLUGIN"; public static final String PEPPER_PLUGIN_ROOT = "/system/lib/pepperplugin/"; // A plugin will specify the following fields in its AndroidManifest.xml. private static final String FILENAME = "filename"; private static final String MIMETYPE = "mimetype"; private static final String NAME = "name"; private static final String DESCRIPTION = "description"; private static final String VERSION = "version"; private static String getPluginDescription(Bundle metaData) { // Find the name of the plugin's shared library. String filename = metaData.getString(FILENAME); if (filename == null || filename.isEmpty()) { return null; } // Find the mimetype of the plugin. Flash is handled in getFlashPath. String mimetype = metaData.getString(MIMETYPE); if (mimetype == null || mimetype.isEmpty()) { return null; } // Assemble the plugin info, according to the format described in // pepper_plugin_list.cc. // (eg. path<#name><#description><#version>;mimetype) StringBuilder plugin = new StringBuilder(PEPPER_PLUGIN_ROOT); plugin.append(filename); // Find the (optional) name/description/version of the plugin. String name = metaData.getString(NAME); String description = metaData.getString(DESCRIPTION); String version = metaData.getString(VERSION); if (name != null && !name.isEmpty()) { plugin.append("#"); plugin.append(name); if (description != null && !description.isEmpty()) { plugin.append("#"); plugin.append(description); if (version != null && !version.isEmpty()) { plugin.append("#"); plugin.append(version); } } } plugin.append(';'); plugin.append(mimetype); return plugin.toString(); } /** * Collects information about installed plugins and returns a plugin description * string, which will be appended to for command line to load plugins. * * @param context Android context * @return Description string for plugins */ // TODO(crbug.com/635567): Fix this properly. @SuppressLint("WrongConstant") public static String getPlugins(final Context context) { StringBuilder ret = new StringBuilder(); PackageManager pm = context.getPackageManager(); List<ResolveInfo> plugins = pm.queryIntentServices( new Intent(PEPPER_PLUGIN_ACTION), PackageManager.GET_SERVICES | PackageManager.GET_META_DATA); for (ResolveInfo info : plugins) { // Retrieve the plugin's service information. ServiceInfo serviceInfo = info.serviceInfo; if (serviceInfo == null || serviceInfo.metaData == null || serviceInfo.packageName == null) { Log.e(TAG, "Can't get service information from %s", info); continue; } // Retrieve the plugin's package information. PackageInfo pkgInfo; try { pkgInfo = pm.getPackageInfo(serviceInfo.packageName, 0); } catch (NameNotFoundException e) { Log.e(TAG, "Can't find plugin: %s", serviceInfo.packageName); continue; } if (pkgInfo == null || (pkgInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0) { continue; } Log.i(TAG, "The given plugin package is preloaded: %s", serviceInfo.packageName); String plugin = getPluginDescription(serviceInfo.metaData); if (plugin == null) { continue; } if (ret.length() > 0) { ret.append(','); } ret.append(plugin); } return ret.toString(); } }
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
c66a16fac0ca518d609a2a781f3ec08b97e85525
51b299957d2347d7f353481eff1458edfd6f9931
/app/src/main/java/com/lida/cloud/bean/OrderEvaluateBean.java
ae1d8c1573c7c013f457866c727a38720a61554b
[]
no_license
StormFeng/YunZhongLi
adee3a54f6bd7527c83a6c8a52d2d606c4f40f4f
eea5ad46a676cfa5d89659a9c11abac275b5fa19
refs/heads/master
2021-07-04T00:59:35.272986
2017-09-26T02:13:10
2017-09-26T02:13:10
104,295,721
1
2
null
null
null
null
UTF-8
Java
false
false
2,642
java
package com.lida.cloud.bean; import com.google.gson.JsonSyntaxException; import com.midian.base.app.AppException; import com.midian.base.bean.NetResult; import java.util.ArrayList; import java.util.List; /** * 评价商品信息 * Created by WeiQingFeng on 2017/8/23. */ public class OrderEvaluateBean extends NetResult { private List<DataBean> data; public static OrderEvaluateBean parse(String json) throws AppException { OrderEvaluateBean res = new OrderEvaluateBean(); try { res = gson.fromJson(json, OrderEvaluateBean.class); } catch (JsonSyntaxException e) { e.printStackTrace(); throw AppException.json(e); } return res; } public List<DataBean> getData() { return data; } public void setData(List<DataBean> data) { this.data = data; } public static class DataBean { /** * order_id : 106 * goods_id : 392 * spec_id : 0 * spec_name : 无规格 * goods_name : 华为 */ private int order_id; private int goods_id; private int spec_id; private String spec_name; private String goods_name; private String con; private List<String> pics; public String getCon() { return con; } public void setCon(String con) { this.con = con; } public List<String> getPics() { if(pics==null){ pics = new ArrayList<>(); pics.add(""); return pics; } return pics; } public void setPics(List<String> pics) { this.pics = pics; } public int getOrder_id() { return order_id; } public void setOrder_id(int order_id) { this.order_id = order_id; } public int getGoods_id() { return goods_id; } public void setGoods_id(int goods_id) { this.goods_id = goods_id; } public int getSpec_id() { return spec_id; } public void setSpec_id(int spec_id) { this.spec_id = spec_id; } public String getSpec_name() { return spec_name; } public void setSpec_name(String spec_name) { this.spec_name = spec_name; } public String getGoods_name() { return goods_name; } public void setGoods_name(String goods_name) { this.goods_name = goods_name; } } }
[ "1170017470@qq.com" ]
1170017470@qq.com
835784cac4101416a3fc53dd38bae5a987f08513
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-40b-2-9-FEMO-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/analysis/solvers/BaseAbstractUnivariateRealSolver_ESTest.java
7fc1f15202add83ccf38d3d5030b42ca1af5d340
[]
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
1,305
java
/* * This file was automatically generated by EvoSuite * Mon Jan 20 14:12:09 UTC 2020 */ package org.apache.commons.math.analysis.solvers; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import org.apache.commons.math.analysis.solvers.BracketingNthOrderBrentSolver; import org.apache.commons.math.exception.TooManyEvaluationsException; 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 BaseAbstractUnivariateRealSolver_ESTest extends BaseAbstractUnivariateRealSolver_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { BracketingNthOrderBrentSolver bracketingNthOrderBrentSolver0 = new BracketingNthOrderBrentSolver(); try { bracketingNthOrderBrentSolver0.computeObjectiveValue((-1.0)); fail("Expecting exception: TooManyEvaluationsException"); } catch(TooManyEvaluationsException e) { // // illegal state: maximal count (0) exceeded: evaluations // verifyException("org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver", e); } } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
3b3ef6b6fc05e2f8301221cffb4298d8a6dee6bf
adc305b1b614253e693021ea0dd09f236f553205
/src/main/java/net/hycrafthd/corelib/core/ModMetadataFetcherCoreLib.java
a4f5738c41c971652738c24c5c6533d4c8005401
[ "Apache-2.0" ]
permissive
MrTroble/ModLibary
f89b886c96ed2971888c079ad916973e5d1bc2e3
c9758bd3853a69ab6a6182b92099d2a22bdb74d5
refs/heads/master
2021-01-18T19:11:27.132473
2016-06-26T09:32:50
2016-06-26T09:32:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
522
java
package net.hycrafthd.corelib.core; import net.hycrafthd.corelib.CoreLib; import net.hycrafthd.corelib.util.BaseModMetadataFetcher; import net.minecraftforge.fml.common.ModMetadata; public class ModMetadataFetcherCoreLib extends BaseModMetadataFetcher { public ModMetadataFetcherCoreLib() { super("/corelib.info", CoreLib.MODID); } @Override public ModMetadata getModmeta() { ModMetadata modmeta = super.getModmeta(); modmeta.name = CoreLib.NAME; modmeta.version = CoreLib.VERSION; return modmeta; } }
[ "hycrafthd@live.de" ]
hycrafthd@live.de
36bc2d383fe54d858555c9a6999c712a1c5820ac
c2306b644a0aaf38c85a651142bb6276674cb937
/net.certware.intent/src-gen/net/certware/intent/intentSpecification/impl/ModelTypeImpl.java
c475c71b1b2fb8cb6e39eeae9f2b7ecad3156adf
[ "Apache-2.0" ]
permissive
iensen/CertWare
61ba4caae6ef4bf2106aa84b53b03ae1d5f0b969
b397d85512d8f1d5cc696bd44d0ff1c6de59b85d
refs/heads/master
2021-01-15T12:15:41.627232
2016-03-14T23:26:26
2016-03-14T23:26:26
53,889,401
0
0
null
2016-03-14T20:25:23
2016-03-14T20:25:22
null
UTF-8
Java
false
false
3,964
java
/** */ package net.certware.intent.intentSpecification.impl; import net.certware.intent.intentSpecification.IntentSpecificationPackage; import net.certware.intent.intentSpecification.ModelType; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Model Type</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link net.certware.intent.intentSpecification.impl.ModelTypeImpl#getTypeName <em>Type Name</em>}</li> * </ul> * </p> * * @generated */ public class ModelTypeImpl extends MinimalEObjectImpl.Container implements ModelType { /** * The default value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTypeName() * @generated * @ordered */ protected static final String TYPE_NAME_EDEFAULT = null; /** * The cached value of the '{@link #getTypeName() <em>Type Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getTypeName() * @generated * @ordered */ protected String typeName = TYPE_NAME_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ModelTypeImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return IntentSpecificationPackage.Literals.MODEL_TYPE; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getTypeName() { return typeName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setTypeName(String newTypeName) { String oldTypeName = typeName; typeName = newTypeName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, IntentSpecificationPackage.MODEL_TYPE__TYPE_NAME, oldTypeName, typeName)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case IntentSpecificationPackage.MODEL_TYPE__TYPE_NAME: return getTypeName(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case IntentSpecificationPackage.MODEL_TYPE__TYPE_NAME: setTypeName((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case IntentSpecificationPackage.MODEL_TYPE__TYPE_NAME: setTypeName(TYPE_NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case IntentSpecificationPackage.MODEL_TYPE__TYPE_NAME: return TYPE_NAME_EDEFAULT == null ? typeName != null : !TYPE_NAME_EDEFAULT.equals(typeName); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (typeName: "); result.append(typeName); result.append(')'); return result.toString(); } } //ModelTypeImpl
[ "mrb@certware.net" ]
mrb@certware.net
640485232089118b963103c9eea58365b2fc0ded
ed12509324a7ab2c275646b54903fb1b0e9c4e33
/src/br/com/sp/gov/matriz/Ex04Mat.java
f672c20eba8d716a5b9e77108a184b28faeabef1
[ "Apache-2.0" ]
permissive
EdersonSouza02/WorkspaceEtec
0da2c932402f7d2ad171bfd61c98b99a3ecea943
5bcce77c5cb40270a29bd9e51d8055d7fec5bdcc
refs/heads/master
2020-03-21T19:38:19.890881
2018-06-28T03:25:29
2018-06-28T03:25:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
938
java
package br.com.sp.gov.matriz; import javax.swing.JOptionPane; public class Ex04Mat { public static void metodo() { String mat[][] = new String[10][3]; for (int linha = 0; linha < 10; linha++) { mat[linha][0] = JOptionPane.showInputDialog("Informe o " + (linha + 1) + (0 + 1) + "nome: "); mat[linha][1] = JOptionPane.showInputDialog("Informe o " + (linha + 1) + (1 + 1) + "telefone:"); mat[linha][2] = JOptionPane.showInputDialog("Informe o " + (linha + 1) + + (2 + 1) + "Endereco:"); } String PesquisaNome = JOptionPane.showInputDialog("Informe o nome para pesquisa"); for (int linha = 0; linha < 10; linha++) { if (mat[linha][0].equals(PesquisaNome)) { JOptionPane.showMessageDialog(null, "Nome: " + mat[linha][0] + "Endereco: " + mat[linha][1] + "Telefone: " + mat[linha][2]); } } } }
[ "you@example.com" ]
you@example.com