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
783d4f352031a0b915db970a3bcd3b1a2a1bb426
6adf83cf94e782205e9929884b4fee90431d71d5
/processor/src/test/java/org/jboss/logging/processor/generated/ValidLogger.java
119b49e4a37fb51d2f4cf60eb5415e9b188fb9e3
[]
no_license
etsangsplk/jboss-logging-tools
487552b6c88afac629b5bd3667936976d01961eb
99056c698e863bfa32986ebc7a8e2843cdda1f67
refs/heads/master
2022-07-15T02:38:49.549993
2019-11-21T22:07:01
2019-11-21T22:07:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,656
java
/* * JBoss, Home of Professional Open Source. * Copyright 2016, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.jboss.logging.processor.generated; import org.jboss.logging.Logger; import org.jboss.logging.Logger.Level; import org.jboss.logging.annotations.Cause; import org.jboss.logging.annotations.LogMessage; import org.jboss.logging.annotations.Message; import org.jboss.logging.annotations.Message.Format; import org.jboss.logging.annotations.MessageLogger; import org.jboss.logging.annotations.ValidIdRange; import org.jboss.logging.annotations.ValidIdRanges; /** * @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a> */ @MessageLogger(projectCode = AbstractLoggerTest.PROJECT_CODE) @ValidIdRanges({ @ValidIdRange(min = 200, max = 202), @ValidIdRange(min = 203, max = 204) }) public interface ValidLogger { final ValidLogger LOGGER = Logger.getMessageLogger(ValidLogger.class, AbstractLoggerTest.CATEGORY); @LogMessage(level = Level.INFO, loggingClass = ValidLogger.class) @Message(id = 200, value = "This is a generated message.") void testInfoMessage(); @LogMessage(level = Level.INFO) @Message(id = 201, value = "Test message format message. Test value: {0}", format = Format.MESSAGE_FORMAT) void testMessageFormat(Object value); /** * Logs a default informational greeting. * * @param name the name. */ @LogMessage @Message(id = 202, value = "Greetings %s") void greeting(String name); /** * Logs an error message indicating a processing error. */ @LogMessage(level = Level.ERROR) @Message(id = 203, value = "Processing error") void processingError(); /** * Logs an error message indicating a processing error. * * @param cause the cause of the error. */ @LogMessage(level = Level.ERROR) void processingError(@Cause Throwable cause); /** * Logs an error message indicating there was a processing error. * * @param cause the cause of the error. * @param moduleName the module that caused the error. */ @LogMessage(level = Level.ERROR) @Message(id = Message.INHERIT, value = "Processing error in module '%s'") void processingError(@Cause Throwable cause, String moduleName); /** * Logs an error message indicating a processing error. * * @param on the object the error occurred on * @param message the error message */ @LogMessage(level = Level.ERROR) @Message(id = 203, value = "Processing error on '%s' with error '%s'") void processingError(Object on, String message); @Message(id = 204, value = "Bundle message inside a logger") String bundleMessage(); }
[ "jperkins@redhat.com" ]
jperkins@redhat.com
9ad0e94ab54b8c0a64694b9cd5d75dc96ce767a2
c33a825aa87d1e93469222712ae5fbadc73bdca1
/app/src/main/java/kr/picture/poketme/cms/helper/LogHelper.java
5b0679cdf6fb968751e317b97420654015080bab
[]
no_license
cion49235/PoketMe
37edbf3e64b98fec226fab2e40a92feb0a40a163
2183a5f0add3b2a8493f1994305da2f064c7c1f2
refs/heads/master
2020-05-07T08:12:08.524250
2019-04-16T07:18:56
2019-04-16T07:19:01
180,315,568
0
0
null
null
null
null
UTF-8
Java
false
false
3,720
java
package kr.picture.poketme.cms.helper; import android.util.Log; import java.util.Locale; import java.util.MissingFormatArgumentException; public class LogHelper { /** * 로그 출력 모드 - 디버그 */ private static byte DEBUG = 0x00; /** * 로그 출력 모드 - 에러 */ private static byte ERROR = 0x01; /** * 로그 출력 모드 - 정보 */ private static byte INFO = 0x02; /** * 로그 출력 모드 - 경고 */ private static byte WARRING = 0x03; /************************************************************* * 로그 출력 * * @param type 로그 유형 (LogHelper.DEBUG, LogHelper.ERROR, LogHelper.INFO) * @param clsName 클래스 이름 * @param msg 로그 메시지 *************************************************************/ private static void print(byte type, String clsName, String msg) { if (Config.isLogVisible()) { String logMsg = String.format(Locale.getDefault(), "[%s] %s", clsName, msg); if (type == DEBUG) { Log.d(Config.getLogTag(), logMsg); } else if (type == ERROR) { Log.e(Config.getLogTag(), logMsg); } else if (type == WARRING) { Log.w(Config.getLogTag(), logMsg); } else { Log.i(Config.getLogTag(), logMsg); } } } /************************************************************* * 디버그 로그 출력 * * @param cls 메소드를 호출한 클래스 * @param format 로그 메시지 포멧 * @param args 파라미터 *************************************************************/ public static void debug(Object cls, String format, Object... args) { try{ print(DEBUG, cls.getClass().getSimpleName(), String.format(Locale.getDefault(), format, args)); }catch (MissingFormatArgumentException e){ }catch (Exception e){ } } /************************************************************* * 에러 로그 출력 * * @param cls 메소드를 호출한 클래스 * @param format 로그 메시지 포멧 * @param args 파라미터 *************************************************************/ public static void error(Object cls, String format, Object... args) { print(ERROR, cls.getClass().getSimpleName(), String.format(Locale.getDefault(), format, args)); } /************************************************************* * 태그가 있는 정보 로그 출력 * * @param cls 메소드를 호출한 클래스 * @param format 로그 메시지 포멧 * @param args 파라미터 *************************************************************/ public static void info(Object cls, String format, Object... args) { print(INFO, cls.getClass().getSimpleName(), String.format(Locale.getDefault(), format, args)); } /************************************************************* * 태그가 있는 경고 로그 출력 * * @param cls 메소드를 호출한 클래스 * @param format 로그 메시지 포멧 * @param args 파라미터 *************************************************************/ public static void warring(Object cls, String format, Object... args) { print(WARRING, cls.getClass().getSimpleName(), String.format(Locale.getDefault(), format, args)); } }
[ "cion49235@nate.com" ]
cion49235@nate.com
f8ea1ed3778b344e0a887f72a51d1b5e930d7e11
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/22/22_fcfd9d0803fdb1af568857f5ba3c75415edd2247/BecauseServlet/22_fcfd9d0803fdb1af568857f5ba3c75415edd2247_BecauseServlet_t.java
00808659b92854f39f63ca3da99cb57b9b41c21f
[]
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,766
java
/* * Copyright Myrrix 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 net.myrrix.web.servlets; import java.io.IOException; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.mahout.cf.taste.common.NoSuchItemException; import org.apache.mahout.cf.taste.common.NoSuchUserException; import org.apache.mahout.cf.taste.common.TasteException; import org.apache.mahout.cf.taste.recommender.RecommendedItem; import net.myrrix.common.LangUtils; import net.myrrix.common.MyrrixRecommender; import net.myrrix.common.NotReadyException; /** * <p>Responds to a GET request to {@code /because/[userID]/[itemID]?howMany=n}, and in turn calls * {@link MyrrixRecommender#recommendedBecause(long, long, int)}. If howMany is not specified, defaults to * {@link AbstractMyrrixServlet#DEFAULT_HOW_MANY}.</p> * * <p>Outputs item/score pairs in CSV or JSON format, like {@link RecommendServlet} does.</p> * * @author Sean Owen */ public final class BecauseServlet extends AbstractMyrrixServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String pathInfo = request.getPathInfo(); Iterator<String> pathComponents = SLASH.split(pathInfo).iterator(); long userID; long itemID; try { userID = Long.parseLong(pathComponents.next()); itemID = Long.parseLong(pathComponents.next()); } catch (NoSuchElementException nsee) { response.sendError(HttpServletResponse.SC_BAD_REQUEST, nsee.toString()); return; } if (pathComponents.hasNext()) { response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Path too long"); return; } MyrrixRecommender recommender = getRecommender(); try { List<RecommendedItem> similar = recommender.recommendedBecause(userID, itemID, getHowMany(request)); output(request, response, similar); } catch (NoSuchUserException nsue) { response.sendError(HttpServletResponse.SC_NOT_FOUND, nsue.toString()); } catch (NoSuchItemException nsie) { response.sendError(HttpServletResponse.SC_NOT_FOUND, nsie.toString()); } catch (NotReadyException nre) { response.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE, nre.toString()); } catch (TasteException te) { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, te.toString()); getServletContext().log("Unexpected error in " + getClass().getSimpleName(), te); } catch (UnsupportedOperationException uoe) { response.sendError(HttpServletResponse.SC_BAD_REQUEST, uoe.toString()); } } @Override protected Integer getPartitionToServe(HttpServletRequest request, int numPartitions) { String pathInfo = request.getPathInfo(); Iterator<String> pathComponents = SLASH.split(pathInfo).iterator(); long userID; try { userID = Long.parseLong(pathComponents.next()); } catch (NoSuchElementException nsee) { return null; } return LangUtils.mod(userID, numPartitions); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
6ca96666999b1aaf04c9a818f22287941c715953
aac5bd343754ac28ff7e66d5af4104165e2acebb
/common/mdiyo/inficraft/flora/berries/BerryBush.java
1358c21af2194b5c0d9827bbb8b8d1dc3cf3cb7b
[]
no_license
AlexTheLarge/InfiCraft
8c36406887da285b1e30c7787334780869953e20
0d6fc1a2e622988a77d71f9eabaecef39005edf8
refs/heads/master
2021-01-16T20:35:08.747272
2012-08-28T06:43:33
2012-08-28T06:43:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,619
java
package mdiyo.inficraft.flora.berries; import net.minecraft.src.*; import java.util.ArrayList; import java.util.List; import java.util.Random; import cpw.mods.fml.common.Side; import cpw.mods.fml.common.asm.SideOnly; import net.minecraft.src.*; import net.minecraftforge.common.ForgeDirection; public class BerryBush extends BlockLeavesBase { private int icon; Random random; public BerryBush(int id, int texture) { super(id, texture, Material.leaves, false); icon = texture; this.setTickRandomly(true); random = new Random(); this.setHardness(0.3F); this.setStepSound(Block.soundGrassFootstep); this.setBlockName("berrybush"); this.setCreativeTab(CreativeTabs.tabBlock); } /* Berries show up at meta 12-15 */ @Override public int getBlockTextureFromSideAndMetadata(int side, int metadata) { if (metadata < 12) { return blockIndexInTexture + metadata % 4; } else { return blockIndexInTexture + 16 + metadata % 4; } } /* Bushes are stored by size then type */ @Override protected int damageDropped(int metadata) { return metadata % 4; } /* The following methods define a berry bush's size depending on metadata */ @Override public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z) { int l = world.getBlockMetadata(x, y, z); if (l < 4) { return AxisAlignedBB.getBoundingBox((double)x + 0.25D, y, (double)z + 0.25D, (double)x + 0.75D, (double)y + 0.5D, (double)z + 0.75D); } else if (l < 8) { return AxisAlignedBB.getBoundingBox((double)x + 0.125D, y, (double)z + 0.125D, (double)x + 0.875D, (double)y + 0.75D, (double)z + 0.875D); } else { return AxisAlignedBB.getBoundingBox(x, y, z, (double)x + 1.0D, (double)y + 1.0D, (double)z + 1.0D); } } public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z) { int l = world.getBlockMetadata(x, y, z); if (l < 4) { return AxisAlignedBB.getBoundingBox((double)x + 0.25D, y, (double)z + 0.25D, (double)x + 0.75D, (double)y + 0.5D, (double)z + 0.75D); } else if (l < 8) { return AxisAlignedBB.getBoundingBox((double)x + 0.125D, y, (double)z + 0.125D, (double)x + 0.875D, (double)y + 0.75D, (double)z + 0.875D); } else { return AxisAlignedBB.getBoundingBox(x, y, z, (double)x + 1.0D, (double)y + 1.0D, (double)z + 1.0D); } } @Override public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int x, int y, int z) { int md = iblockaccess.getBlockMetadata(x, y, z); float minX; float minY = 0F; float minZ; float maxX; float maxY; float maxZ; if(md < 4) { minX = minZ = 0.25F; maxX = maxZ = 0.75F; maxY = 0.5F; } else if(md < 8) { minX = minZ = 0.125F; maxX = maxZ = 0.875F; maxY = 0.75F; } else { minX = minZ = 0.0F; maxX = maxZ = 1.0F; maxY = 1.0F; } setBlockBounds(minX, minY, minZ, maxX, maxY, maxZ); } /* Left-click harvests berries */ @Override public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) { if (!world.isRemote) { int meta = world.getBlockMetadata(x, y, z); if (meta >= 12) { world.setBlockAndMetadataWithNotify(x, y, z, blockID, meta - 4); EntityItem entityitem = new EntityItem(world, player.posX, player.posY - 1.0D, player.posZ, new ItemStack(FloraBerries.berryItem.shiftedIndex, 1, meta - 12)); world.spawnEntityInWorld(entityitem); entityitem.onCollideWithPlayer(player); } } } /* Right-click harvests berries */ @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9) { if (world.isRemote) return false; int meta = world.getBlockMetadata(x, y, z); if (meta >= 12) { world.setBlockAndMetadataWithNotify(x, y, z, blockID, meta - 4); EntityItem entityitem = new EntityItem(world, player.posX, player.posY - 1.0D, player.posZ, new ItemStack(FloraBerries.berryItem.shiftedIndex, 1, meta - 12)); world.spawnEntityInWorld(entityitem); entityitem.onCollideWithPlayer(player); } return true; } /* Render logic */ @Override public boolean isOpaqueCube() { return false; } public void setGraphicsLevel(boolean flag) { graphicsLevel = flag; this.blockIndexInTexture = this.icon + (flag ? 0 : 32); } @Override public boolean renderAsNormalBlock() { return false; } public int getRenderType() { return FloraBerries.getInstance().berryModelID; } public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l) { if (l > 7) { return super.shouldSideBeRendered(iblockaccess, i, j, k, l); } else if (graphicsLevel) { return super.shouldSideBeRendered(iblockaccess, i, j, k, l); } else { return true; } } @Override public String getTextureFile() { return "/mdiyo/inficraft/flora/textures/bushes.png"; } /* Bush growth */ @Override public void updateTick(World world, int x, int y, int z, Random random1) { if (world.isRemote) { return; } int height; for (height = 1; world.getBlockId(x, y - height, z) == this.blockID; ++height) { ; } if (random1.nextInt(20) == 0 && world.getBlockLightValue(x, y, z) >= 8) { int md = world.getBlockMetadata(x, y, z); if (md < 12) { world.setBlockAndMetadataWithNotify(x, y, z, blockID, md + 4); } if (random1.nextInt(3) == 0 && height < 3 && world.getBlockId(x, y + 1, z) == 0 && md >= 8) { world.setBlockAndMetadataWithNotify(x, y + 1, z, blockID, md % 4); } } } /* Resistance to fire */ @Override public int getFlammability(IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face) { return 25; } @Override public boolean isFlammable(IBlockAccess world, int x, int y, int z, int metadata, ForgeDirection face) { return true; } @Override public int getFireSpreadSpeed(World world, int x, int y, int z, int metadata, ForgeDirection face) { return 4; } /** * returns a list of items with the same ID, but different meta (eg: dye returns 16 items) */ @SideOnly(Side.CLIENT) @Override public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) { for (int var4 = 8; var4 < 16; ++var4) { par3List.add(new ItemStack(par1, 1, var4)); } } }
[ "merdiwendiyo@gmail.com" ]
merdiwendiyo@gmail.com
632a76b7e2ee6221cf69fbb1ae9d636095b98b05
d2c0d0e5ade1dcfacfeaeadf95d1c5e22c6caeba
/src/main/java/com/github/vonrosen/quantlib/ReannealingTrivial.java
b6ad06cf979121959edb0ef015dc84d841b54e16
[]
no_license
xl5555123/Quantlib-SWIG-Java
f5e906662ab72211744921a4a42e2d8d5b270432
dda229841f511d1f6cb6992e5361e40937517c22
refs/heads/master
2020-07-01T12:47:39.383347
2018-09-24T01:53:44
2018-09-24T01:53:44
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,108
java
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.github.vonrosen.quantlib; public class ReannealingTrivial { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected ReannealingTrivial(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(ReannealingTrivial obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; QuantLibJNI.delete_ReannealingTrivial(swigCPtr); } swigCPtr = 0; } } public ReannealingTrivial() { this(QuantLibJNI.new_ReannealingTrivial(), true); } }
[ "hunter.stern@fundingcircle.com" ]
hunter.stern@fundingcircle.com
a280b4e87fe9a28f05105ae0db19c82b9e00ae9f
b03b35ff6e35c0cc9ac0368e01d600941e10f55a
/com.rk.karaf.command/src/test/java/com/rk/karaf/RkcmdTest.java
bb14cd9f0a0977502cf5abdd9c5f3a83b0c1d867
[]
no_license
RavikrianGoru/osgi
f21bfe079e8c18c814ef80d4fabef583171fd376
9a6af5506a93165df06c789b3d2db386630eefd7
refs/heads/master
2023-03-31T19:23:28.227146
2018-03-22T15:03:38
2018-03-22T15:03:38
125,919,062
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package com.rk.karaf; import junit.framework.TestCase; /** * Test cases for {@link Rkcmd} */ @SuppressWarnings("unchecked") public class RkcmdTest extends TestCase { private Rkcmd command; @Override protected void setUp() throws Exception { super.setUp(); } @Override protected void tearDown() throws Exception { super.tearDown(); } public void testCommand() { } }
[ "ravikirangoru@gmail.com" ]
ravikirangoru@gmail.com
4bf230ce8e5e091fe00c0063b3f1dc3ca9516f86
5c8762df69b8b0824eb2e3cf65c294c659ba2e70
/src/main/java/com/notronix/etsy/impl/method/EtsyMethod.java
150808da4c5d76d149572402a6c9eb450c81ebf8
[ "Apache-2.0" ]
permissive
cmunden/JEtsy
436eb36a871d43c83df150d1b4870a7a20047325
2257fa185c42a966050aa6c751d8a116146b2833
refs/heads/master
2020-06-22T23:54:47.109645
2019-07-23T13:28:39
2019-07-23T13:28:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
485
java
package com.notronix.etsy.impl.method; import com.google.api.client.http.HttpContent; import com.google.gson.Gson; import com.notronix.etsy.api.authentication.Credentials; public interface EtsyMethod<Result> { String getURL(); Result getResponse(Gson gson, String jsonPayload); Credentials getClientCredentials(); Credentials getAccessCredentials(); String getRequestMethod(); boolean requiresOAuth(); HttpContent getContent(Gson gson); }
[ "clint.munden@notronix.com" ]
clint.munden@notronix.com
1755cd1a07bd2be63b7ca6360dcd94bdda9d02ab
3902f4ac7f81f40acd9a5fc12ea38f93e970b499
/app/src/main/java/com/txsh/shop/TxShopProductListAty.java
f44b66f2593e266f3fe48b6d8c4dfab7a915f430
[]
no_license
yundequanshi/TxCarShop
a1492244fb452023298035616b47603838537ab8
49e9c415f203e0462a68bb8189ab90165e309466
refs/heads/master
2021-02-22T13:09:56.611968
2020-04-03T09:44:21
2020-04-03T09:44:21
245,377,783
0
0
null
null
null
null
UTF-8
Java
false
false
5,765
java
package com.txsh.shop; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.widget.AdapterView; import android.widget.GridView; import com.ab.view.pullview.AbPullToRefreshView; import com.lidroid.xutils.ViewUtils; import com.lidroid.xutils.view.annotation.ViewInject; import com.lidroid.xutils.view.annotation.event.OnClick; import com.txsh.R; import com.txsh.adapter.TxShopMainAdapter; import com.txsh.model.TXShopListRes; import com.txsh.services.MLShopServices; import com.txsh.base.BaseActivity; import com.txsh.base.BaseApplication; import com.txsh.http.ZMHttpError; import com.txsh.http.ZMHttpRequestMessage; import com.txsh.http.ZMHttpType; import com.txsh.http.ZMRequestParams; import com.txsh.model.MLLogin; import java.util.List; /** * Created by Administrator on 2015/7/23. */ public class TxShopProductListAty extends BaseActivity { @ViewInject(R.id.shopproductlist_pull) public AbPullToRefreshView _pullToRefreshLv; @ViewInject(R.id.shopproductlist_grid) public GridView mGridView; private boolean mIsRefresh = true; private int nowPage = 1; TxShopMainAdapter mAdapter; public List<TXShopListRes.TXShopListData> mlShopCarData; private String companyId=""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.tx_shopproduct_list); ViewUtils.inject(this); if (getIntentData()!=null) companyId= (String) getIntentData(); initView(); initShopList(); initPullRefresh(); } private void initView() { mAdapter = new TxShopMainAdapter(this,R.layout.tx_item_shop_main); mGridView.setAdapter(mAdapter); mGridView.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { startAct(TxShopProductListAty.this, TXShopDetailAty.class,mlShopCarData.get(position)); } }); } private void initPullRefresh() { _pullToRefreshLv.setOnHeaderRefreshListener(new AbPullToRefreshView.OnHeaderRefreshListener() { @Override public void onHeaderRefresh(AbPullToRefreshView view) { mIsRefresh = true; nowPage = 1; initShopList(); } }); _pullToRefreshLv.setOnFooterLoadListener(new AbPullToRefreshView.OnFooterLoadListener() { @Override public void onFooterLoad(AbPullToRefreshView view) { // TODO Auto-generated method stub mIsRefresh = false; int size = mlShopCarData.size() - 1; if (size <= 0) { return; } //lastrow = mlShopCarData.get(mlShopCarData.size() - 1).rowno; nowPage++; initShopList(); } }); } @OnClick(R.id.home_top_back) public void backOnClick(View view){ finish(); } private void initShopList() { MLLogin user = ((BaseApplication) this.getApplication()).get_user(); ZMRequestParams param = new ZMRequestParams(); param.addParameter("companyId", companyId); param.addParameter("nowPage", String.valueOf(nowPage)); param.addParameter("pageSize", "20"); ZMHttpRequestMessage message1 = new ZMHttpRequestMessage(ZMHttpType.RequestType.SHOPPRODUCTLIST, null, param, _handler, SHOPPRODUCTLISTRETURN, MLShopServices.getInstance()); loadDataWithMessage( this, null, message1); } private static final int SHOPPRODUCTLISTRETURN = 1; private Handler _handler = new Handler() { @Override public void handleMessage(Message msg) { super.handleMessage(msg); dismissProgressDialog(); if (msg == null || msg.obj == null) { showMessage(R.string.loading_data_failed); return; } if (msg.obj instanceof ZMHttpError) { ZMHttpError error = (ZMHttpError) msg.obj; showMessage(error.errorMessage); return; } switch (msg.what) { case SHOPPRODUCTLISTRETURN: { TXShopListRes ret = (TXShopListRes) msg.obj; if (ret.state.equalsIgnoreCase("1")) { if (mIsRefresh) { //刷新 mlShopCarData=ret.datas; _pullToRefreshLv.onHeaderRefreshFinish(); } else { //加载更多 _pullToRefreshLv.onFooterLoadFinish(); if (mlShopCarData == null) { return; } mlShopCarData.addAll(ret.datas); } //加载数据 if (mlShopCarData != null) { mAdapter.setData(mlShopCarData); } if (mlShopCarData != null && mlShopCarData.size() < 20) { _pullToRefreshLv.setLoadMoreEnable(false); } else { _pullToRefreshLv.setLoadMoreEnable(true); } } else { showMessage("加载数据失败"); break; } break; } } } }; }
[ "yundequanshi@126.com" ]
yundequanshi@126.com
0ecfcff0ea7f304067225194e0f383b19e79e76c
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
/ast_results/philliphsu_ClockPlus/app/src/main/java/com/philliphsu/clock2/timers/data/TimersTableManager.java
6d6cc08afd3d619a2adf278bbe76895565de4d06
[]
no_license
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
0564143d92f8024ff5fa6b659c2baebf827582b1
refs/heads/master
2020-07-13T13:53:40.297493
2019-01-11T11:51:18
2019-01-11T11:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,586
java
// isComment package com.philliphsu.clock2.timers.data; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.os.SystemClock; import android.util.Log; import com.philliphsu.clock2.timers.Timer; import com.philliphsu.clock2.data.DatabaseTableManager; /** * isComment */ public class isClassOrIsInterface extends DatabaseTableManager<Timer> { public static final String isVariable = "isStringConstant"; public isConstructor(Context isParameter) { super(isNameExpr); } @Override protected String isMethod() { return isNameExpr.isFieldAccessExpr; } @Override public TimerCursor isMethod(long isParameter) { return isMethod(super.isMethod(isNameExpr)); } @Override public TimerCursor isMethod() { return isMethod(super.isMethod()); } public TimerCursor isMethod() { String isVariable = isNameExpr.isFieldAccessExpr + "isStringConstant" + isNameExpr.isMethod() + "isStringConstant" + isNameExpr.isFieldAccessExpr + "isStringConstant"; return isMethod(isNameExpr, null); } @Override protected TimerCursor isMethod(String isParameter, String isParameter) { return isMethod(super.isMethod(isNameExpr, isNameExpr)); } @Override protected String isMethod() { return isNameExpr.isFieldAccessExpr; } @Override protected ContentValues isMethod(Timer isParameter) { ContentValues isVariable = new ContentValues(); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr, "isStringConstant" + isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); // isComment isNameExpr.isMethod(isNameExpr, "isStringConstant" + isNameExpr.isMethod() + "isStringConstant" + isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); isNameExpr.isMethod(isNameExpr.isFieldAccessExpr, isNameExpr.isMethod()); return isNameExpr; } @Override protected String isMethod() { return isNameExpr.isFieldAccessExpr; } private TimerCursor isMethod(Cursor isParameter) { return new TimerCursor(isNameExpr); } }
[ "matheus@melsolucoes.net" ]
matheus@melsolucoes.net
6bdd0b79845f9683792140f53f0b12d705f4bb10
817ec466b7ba590dc4a4b6ead121b0792bf6bdb5
/app/src/main/java/com/edbrix/connectbrix/data/GetThreeMonthsMeetingParentData.java
78ec6f52c291386ef74dd8f28ea42fdb9eb07a1d
[]
no_license
VjDroider/ConnectBrix
ffef6642a0385f662cee7906ec1d7869913fc65a
37d24125414ee8de70a87139aef3b977da9a9fa0
refs/heads/master
2022-02-24T05:43:54.809540
2019-09-28T11:01:03
2019-09-28T11:01:03
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,576
java
package com.edbrix.connectbrix.data; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.List; public class GetThreeMonthsMeetingParentData implements Serializable { @SerializedName("Success") @Expose private Integer success; @SerializedName("Code") @Expose private String code; @SerializedName("Message") @Expose private String message; @SerializedName("Meetings") @Expose private List<GetThreeMonthsMeetingListData> meetings = null; @SerializedName("Error") @Expose private Error error; private final static long serialVersionUID = -4681838781431222730L; public Integer getSuccess() { return success; } public void setSuccess(Integer success) { this.success = success; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } public List<GetThreeMonthsMeetingListData> getMeetings() { return meetings; } public void setMeetings(List<GetThreeMonthsMeetingListData> meetings) { this.meetings = meetings; } public Error getError() { return error; } public void setError(Error error) { this.error = error; } public static long getSerialVersionUID() { return serialVersionUID; } }
[ "shashank.khochikar@gmail.com" ]
shashank.khochikar@gmail.com
e6cd4794863c0661ca41924a5ba21d9e98de6657
dc769cdcc172ee3e918de45980de5307ca15b680
/dropwizard-guicey/src/main/java/ru/vyarus/dropwizard/guice/module/lifecycle/GuiceyLifecycleListener.java
c10089a0235b951b4aa8d2b1fa1a4e7412a0c14e
[ "MIT" ]
permissive
xvik/dropwizard-guicey
1d2fcfe1182e9bb91bf94fe7beffd04706586ffa
4fcef6754a7cfb66449146e375a74d08ea36c182
refs/heads/master
2023-08-30T23:30:04.315416
2023-08-23T03:46:31
2023-08-23T03:46:31
23,605,023
238
60
MIT
2023-09-13T08:51:22
2014-09-03T03:22:23
Java
UTF-8
Java
false
false
1,577
java
package ru.vyarus.dropwizard.guice.module.lifecycle; import ru.vyarus.dropwizard.guice.module.lifecycle.event.GuiceyLifecycleEvent; /** * Guicey lifecycle listener covers all valuable phases of guicey configuration. It could be used either for * startup monitoring or for some advanced features implementation (based on installers, extensions modules or bundles * post-processing). * <p> * Example usage: {@link ru.vyarus.dropwizard.guice.debug.LifecycleDiagnostic}. * <p> * Listener is not registered if equal listener were already registered ({@link java.util.Set} used as * listeners storage), so if you need to be sure that only one instance of some listener will be used * implement {@link Object#equals(Object)} and {@link Object#hashCode()}. For example, this is used to resolve case * where {@link ru.vyarus.dropwizard.guice.debug.hook.DiagnosticHook} installed and some reports were already enabled * in bundle directly: thanks to correct equals in reports, user will not see duplicate reports. * * @author Vyacheslav Rusakov * @see GuiceyLifecycleAdapter * @see UniqueGuiceyLifecycleListener * @since 17.04.2018 */ @FunctionalInterface public interface GuiceyLifecycleListener { /** * Called with specific lifecycle event. Event object may contain event specific objects. Event always * contain main objects, available at this point (like configuration, environment, injector etc). * * @param event event instance * @see GuiceyLifecycle for possible event types */ void onEvent(GuiceyLifecycleEvent event); }
[ "vyarus@gmail.com" ]
vyarus@gmail.com
bf39c3f76968088ba0edfd7cdfab860f430c2048
415618e778d48b7f65922ba9c7ace3020462406c
/app/src/main/java/com/ynzhxf/nd/xyfirecontrolapp/util/HelperTool.java
debbdd460775dc23dff25883ca43cac57a668866
[]
no_license
yanghait/ndxfapp_v1.4
94bb314049ebcb933673523e3a0e15ff8b862776
9fad44a4b9efb2d5e9778e8a83b7741c5621ee23
refs/heads/master
2023-04-22T20:12:44.657495
2021-05-13T07:20:07
2021-05-13T07:20:07
336,680,006
0
0
null
null
null
null
UTF-8
Java
false
false
4,809
java
package com.ynzhxf.nd.xyfirecontrolapp.util; import com.ynzhxf.nd.xyfirecontrolapp.GloblePlantformDatas; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.UUID; /** * 帮助工具类 * Created by nd on 2018-07-10. */ public class HelperTool { private static final int MIN_DELAY_TIME = 300; // 两次点击间隔不能少于1000ms private static long lastClickTime; /** * 创建一个UUID去掉连接符的字符串 * * @return */ public final static String createUUID() { return UUID.randomUUID().toString().replace("-", ""); } /** * 判断字符串是否是空值或为空 * * @param query * @return */ public final static boolean stringIsEmptyOrNull(String query) { if (query == null) { return true; } if (query.length() == 0) { return true; } return false; } /** * 防止快速点击系统未响应,而多次操作 * * @return */ public static boolean isFastClick() { boolean flag = true; long currentClickTime = System.currentTimeMillis(); if ((currentClickTime - lastClickTime) >= MIN_DELAY_TIME) { flag = false; } lastClickTime = currentClickTime; return flag; } /** * 获取令牌 */ public static String getToken() { GloblePlantformDatas datas = GloblePlantformDatas.getInstance(); if (datas.getLoginInfoBean() != null) { return datas.getLoginInfoBean().getToken(); } return null; } /** * 获取当前登陆的用户名 * * @return */ public static String getUsername() { GloblePlantformDatas datas = GloblePlantformDatas.getInstance(); if (datas.getLoginInfoBean() != null) { return datas.getLoginInfoBean().getUserName(); } return null; } /** * 将一个对象转换成int * * @param object */ public static int objectToInt(Object object) { int result = -10010; try { result = (int) Double.parseDouble(object + ""); } catch (Exception e) { } return result; } /** * 把时间毫秒转换成时间字符串 * * @return */ public static String MillTimeToStringTime(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm",Locale.CHINA); return formatter.format(date); } /** * 把时间毫秒转换成时间字符串 * * @return */ public static String MillTimeToStringDate(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA); return formatter.format(date); } /** * 把时间毫秒转换成时间详细字符串 * * @return */ public static String MillTimeToStringDateDetail(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINA); return formatter.format(date); } /** * 把时间毫秒转换成年月日字符串 * * @return */ public static String MillTimeToYearMonth(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd", Locale.CHINA); return formatter.format(date); } /** * 把时间毫秒转换成年月日字符串 * * @return */ public static String MillTimeToYearMon(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM", Locale.CHINA); return formatter.format(date); } /** * 把时间毫秒转换成小时分钟字符串 * * @return */ public static String MillTimeToHour(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("HH:mm", Locale.CHINA); return formatter.format(date); } /** * 把时间毫秒转换成小时分钟字符串 * * @return */ public static String MillTimeToDateForFireMain(long time) { Date date = new Date(time); SimpleDateFormat formatter = new SimpleDateFormat("yyyy~MM~dd~HH:mm:ss", Locale.CHINA); return formatter.format(date); } /** * 将obj转double * * @param obj * @return */ public static double objectToDouble(Object obj) { try { return Double.parseDouble(obj + ""); } catch (Exception e) { } return 0; } }
[ "1562370367@qq.ccom" ]
1562370367@qq.ccom
6bb25d909fb317013b8dea3c57d9d00ae0221717
31a68a694120e47505a7b628a6b9f232618378e2
/peony-tancms/src/main/java/com/peony/peonyfront/eventnewsregion/model/EventnewsRegion.java
b575e49705650fd801a952a21d9b0f110c030731
[]
no_license
ganzhiping/peony-newTancms
1b02ad1f137c882147c756230e0cb28cbb7823ab
cf2eb49ea5728e9338138ada2c29f6853b95cffd
refs/heads/master
2021-01-16T21:29:55.002026
2018-03-23T02:15:10
2018-03-23T02:15:10
100,232,075
0
1
null
null
null
null
UTF-8
Java
false
false
973
java
package com.peony.peonyfront.eventnewsregion.model; import com.peony.core.base.pojo.BasePojo; public class EventnewsRegion extends BasePojo { /** * */ private static final long serialVersionUID = 241373874951701917L; private String id; private String eventnewsid; private Integer regionid; private Integer provinceid; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getEventnewsid() { return eventnewsid; } public void setEventnewsid(String eventnewsid) { this.eventnewsid = eventnewsid; } public Integer getRegionid() { return regionid; } public void setRegionid(Integer regionid) { this.regionid = regionid; } public Integer getProvinceid() { return provinceid; } public void setProvinceid(Integer provinceid) { this.provinceid = provinceid; } }
[ "695203640@qq.com" ]
695203640@qq.com
bc62897c21e2bcaa6832f35c0315de355f05ea53
18292045b57f1f68abc5adf0b360fa22f29877b3
/src/main/java/com/amazonservices/mws/FulfillmentInventory/model/ListInventorySupplyByNextTokenRequest.java
3a06b378d65139037b75293387f5851734d386a2
[ "MIT" ]
permissive
liccoCode/amazon-mws
537d20493e43a4baeb65de0f23adf6a51e61c27d
91fcf1a04ae8790015c223d282f17f9d24a578f4
refs/heads/master
2020-04-06T22:15:41.694302
2018-11-16T07:59:21
2018-11-16T07:59:21
157,830,092
0
0
null
null
null
null
UTF-8
Java
false
false
7,798
java
/******************************************************************************* * Copyright 2009-2016 Amazon Services. 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://aws.amazon.com/apache2.0 * This file 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. ******************************************************************************* * List Inventory Supply By Next Token Request * API Version: 2010-10-01 * Library Version: 2014-09-30 * Generated: Mon Mar 21 09:01:27 PDT 2016 */ package com.amazonservices.mws.FulfillmentInventory.model; import javax.xml.bind.annotation.*; import com.amazonservices.mws.client.*; /** * ListInventorySupplyByNextTokenRequest complex type. * * XML schema: * * <pre> * &lt;complexType name="ListInventorySupplyByNextTokenRequest"&gt; * &lt;complexContent&gt; * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; * &lt;sequence&gt; * &lt;element name="SellerId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;element name="MWSAuthToken" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="Marketplace" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt; * &lt;element name="NextToken" type="{http://www.w3.org/2001/XMLSchema}string"/&gt; * &lt;/sequence&gt; * &lt;/restriction&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name="ListInventorySupplyByNextTokenRequest", propOrder={ "sellerId", "mwsAuthToken", "marketplace", "nextToken" }) @XmlRootElement(name = "ListInventorySupplyByNextTokenRequest") public class ListInventorySupplyByNextTokenRequest extends AbstractMwsObject { @XmlElement(name="SellerId",required=true) private String sellerId; @XmlElement(name="MWSAuthToken") private String mwsAuthToken; @XmlElement(name="Marketplace") private String marketplace; @XmlElement(name="NextToken",required=true) private String nextToken; /** * Get the value of SellerId. * * @return The value of SellerId. */ public String getSellerId() { return sellerId; } /** * Set the value of SellerId. * * @param sellerId * The new value to set. */ public void setSellerId(String sellerId) { this.sellerId = sellerId; } /** * Check to see if SellerId is set. * * @return true if SellerId is set. */ public boolean isSetSellerId() { return sellerId != null; } /** * Set the value of SellerId, return this. * * @param sellerId * The new value to set. * * @return This instance. */ public ListInventorySupplyByNextTokenRequest withSellerId(String sellerId) { this.sellerId = sellerId; return this; } /** * Get the value of MWSAuthToken. * * @return The value of MWSAuthToken. */ public String getMWSAuthToken() { return mwsAuthToken; } /** * Set the value of MWSAuthToken. * * @param mwsAuthToken * The new value to set. */ public void setMWSAuthToken(String mwsAuthToken) { this.mwsAuthToken = mwsAuthToken; } /** * Check to see if MWSAuthToken is set. * * @return true if MWSAuthToken is set. */ public boolean isSetMWSAuthToken() { return mwsAuthToken != null; } /** * Set the value of MWSAuthToken, return this. * * @param mwsAuthToken * The new value to set. * * @return This instance. */ public ListInventorySupplyByNextTokenRequest withMWSAuthToken(String mwsAuthToken) { this.mwsAuthToken = mwsAuthToken; return this; } /** * Get the value of Marketplace. * * @return The value of Marketplace. */ public String getMarketplace() { return marketplace; } /** * Set the value of Marketplace. * * @param marketplace * The new value to set. */ public void setMarketplace(String marketplace) { this.marketplace = marketplace; } /** * Check to see if Marketplace is set. * * @return true if Marketplace is set. */ public boolean isSetMarketplace() { return marketplace != null; } /** * Set the value of Marketplace, return this. * * @param marketplace * The new value to set. * * @return This instance. */ public ListInventorySupplyByNextTokenRequest withMarketplace(String marketplace) { this.marketplace = marketplace; return this; } /** * Get the value of NextToken. * * @return The value of NextToken. */ public String getNextToken() { return nextToken; } /** * Set the value of NextToken. * * @param nextToken * The new value to set. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** * Check to see if NextToken is set. * * @return true if NextToken is set. */ public boolean isSetNextToken() { return nextToken != null; } /** * Set the value of NextToken, return this. * * @param nextToken * The new value to set. * * @return This instance. */ public ListInventorySupplyByNextTokenRequest withNextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * Read members from a MwsReader. * * @param r * The reader to read from. */ @Override public void readFragmentFrom(MwsReader r) { sellerId = r.read("SellerId", String.class); mwsAuthToken = r.read("MWSAuthToken", String.class); marketplace = r.read("Marketplace", String.class); nextToken = r.read("NextToken", String.class); } /** * Write members to a MwsWriter. * * @param w * The writer to write to. */ @Override public void writeFragmentTo(MwsWriter w) { w.write("SellerId", sellerId); w.write("MWSAuthToken", mwsAuthToken); w.write("Marketplace", marketplace); w.write("NextToken", nextToken); } /** * Write tag, xmlns and members to a MwsWriter. * * @param w * The Writer to write to. */ @Override public void writeTo(MwsWriter w) { w.write("http://mws.amazonaws.com/FulfillmentInventory/2010-10-01/", "ListInventorySupplyByNextTokenRequest",this); } /** Value constructor. */ public ListInventorySupplyByNextTokenRequest(String sellerId,String mwsAuthToken,String marketplace,String nextToken) { this.sellerId = sellerId; this.mwsAuthToken = mwsAuthToken; this.marketplace = marketplace; this.nextToken = nextToken; } /** Legacy value constructor. */ public ListInventorySupplyByNextTokenRequest(String sellerId,String marketplace,String nextToken) { this.sellerId = sellerId; this.marketplace = marketplace; this.nextToken = nextToken; } /** Default constructor. */ public ListInventorySupplyByNextTokenRequest() { super(); } }
[ "licco@easya.cc" ]
licco@easya.cc
42f3835e614913ff5f49449de9aea8f72d6d1b22
f378ddd47c8b7de6e9cf1d4228c84f73e9dc59f1
/projetos/qq-t-java-sdk/src/main/java/com/trinea/sns/entity/QqTUserRelation.java
60af969fe53d090001be503cd2ad9ae6627ce23d
[]
no_license
charles-marques/dataset-375
29e2f99ac1ba323f8cb78bf80107963fc180487c
51583daaf58d5669c69d8208b8c4ed4e009001a5
refs/heads/master
2023-01-20T07:23:09.445693
2020-11-27T22:35:49
2020-11-27T22:35:49
283,315,149
0
1
null
null
null
null
GB18030
Java
false
false
966
java
package com.trinea.sns.entity; import java.io.Serializable; /** * 腾讯微博用户和自己的关系 * * @author Trinea 2011-11-4 下午11:46:04 */ public class QqTUserRelation implements Serializable { private static final long serialVersionUID = 7154885505952051486L; /** 用户帐户名 **/ private String userName; /** 是否关注了自己 **/ private boolean isFan; /** 是否被自己关注 **/ private boolean isInterested; public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public boolean isFan() { return isFan; } public void setFan(boolean isFan) { this.isFan = isFan; } public boolean isInterested() { return isInterested; } public void setInterested(boolean isInterested) { this.isInterested = isInterested; } }
[ "suporte@localhost.localdomain" ]
suporte@localhost.localdomain
a6dd58e285c8900d1503e7e83b9701ac7ad675e2
c885ef92397be9d54b87741f01557f61d3f794f3
/results/Cli-34/org.apache.commons.cli.OptionBuilder/BBC-F0-opt-80/tests/5/org/apache/commons/cli/OptionBuilder_ESTest_scaffolding.java
d53b80f9f4ee5eebc999e03ed0a7ae40fe720828
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
3,373
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Wed Oct 13 14:34:07 GMT 2021 */ package org.apache.commons.cli; 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 OptionBuilder_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.apache.commons.cli.OptionBuilder"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); 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.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public static void setSystemProperties() { /*No java.lang.System property to set*/ } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(OptionBuilder_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.cli.OptionBuilder", "org.apache.commons.cli.OptionValidator", "org.apache.commons.cli.Option" ); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(OptionBuilder_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "org.apache.commons.cli.OptionBuilder", "org.apache.commons.cli.Option", "org.apache.commons.cli.OptionValidator" ); } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
494956d7de8f6c77cf69b202f36ef6051d9e5527
61602d4b976db2084059453edeafe63865f96ec5
/com/xiaomi/mipush/sdk/af.java
09a23cfeaf242f8757a475a0f146dceb24d479f1
[]
no_license
ZoranLi/thunder
9d18fd0a0ec0a5bb3b3f920f9413c1ace2beb4d0
0778679ef03ba1103b1d9d9a626c8449b19be14b
refs/heads/master
2020-03-20T23:29:27.131636
2018-06-19T06:43:26
2018-06-19T06:43:26
137,848,886
12
1
null
null
null
null
UTF-8
Java
false
false
646
java
package com.xiaomi.mipush.sdk; import android.database.ContentObserver; import android.os.Handler; import com.xiaomi.channel.commonutils.network.d; import com.xiaomi.push.service.au; class af extends ContentObserver { final /* synthetic */ ac a; af(ac acVar, Handler handler) { this.a = acVar; super(handler); } public void onChange(boolean z) { this.a.v = Integer.valueOf(au.a(this.a.j).b()); if (this.a.v.intValue() != 0) { this.a.j.getContentResolver().unregisterContentObserver(this); if (d.c(this.a.j)) { this.a.e(); } } } }
[ "lizhangliao@xiaohongchun.com" ]
lizhangliao@xiaohongchun.com
40d5b064cf91ce325f5bc36ae79d320898f23c8f
9f75a6f48452a174ad29834ec48d85f2a7c6bbe3
/JBatch/src/main/java/si/um/feri/Knjiga.java
6af00dc9d1e5033f42081b3c51bd711d3092d636
[]
no_license
lukapavlic/javaee8
975ab87c8c19ea3773d6ab6c2499b264ba1b1eee
19cd2a9154100be5601b3028a4c5dd79132b681e
refs/heads/master
2021-06-08T21:47:46.444306
2021-03-20T18:30:58
2021-03-20T18:30:58
186,660,147
0
0
null
null
null
null
UTF-8
Java
false
false
306
java
package si.um.feri; public class Knjiga { private Integer id; private String naslov; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getNaslov() { return naslov; } public void setNaslov(String naslov) { this.naslov = naslov; } }
[ "luka.pavlic@gmail.com" ]
luka.pavlic@gmail.com
efbe405d6dbf1de6c31bb0e99fbdd361197be9a2
ff8a1dcabe9b05d60098befc55cfbee2ab9d4b73
/core/sorcer-platform/src/main/java/sorcer/core/context/model/ent/MdaEntry.java
6f04bce0986f90bc44e198545aaa90d92627dfd4
[ "Apache-2.0" ]
permissive
kubam10/SORCER
4c423b0bddc8839ac54f8069c37dd6a392e23780
670cba3188954eb4cd2e16890715b8948819b5f6
refs/heads/master
2020-04-18T23:55:19.359267
2019-02-02T18:29:14
2019-02-02T18:29:14
167,833,815
0
1
Apache-2.0
2019-01-27T16:58:57
2019-01-27T16:58:57
null
UTF-8
Java
false
false
2,373
java
/* * Copyright 2013 the original author or authors. * Copyright 2013 SorcerSoft.org. * * 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 sorcer.core.context.model.ent; import sorcer.core.signature.ObjectSignature; import sorcer.service.*; import sorcer.service.modeling.Model; import sorcer.service.Domain; import sorcer.service.modeling.Variability; /** * Created by Mike Soblewski on 06/03/16. */ public class MdaEntry extends Entry<Mda> implements Mda { private String name; private Domain model; private Signature signature; public MdaEntry(String name, Mda mda) throws EvaluationException { this.name = name; this._2 = mda; this.type = Variability.Type.MDA; } public MdaEntry(String name, Signature signature) throws EvaluationException { this.name = name; this.signature = signature; this.type = Variability.Type.MDA; } public MdaEntry(String name, Mda mda, Context context) throws EvaluationException { this.name = name; scope = context; this._2 = mda; this.type = Variability.Type.MDA; } public Mda getMda() { return _2; } public Signature getSignature() { return signature; } @Override public void analyze(Model model, Context context) throws EvaluationException { try { if (_2 != null && _2 instanceof Mda) { _2.analyze(model, context); } else if (signature != null) { _2 = (Mda) ((ObjectSignature)signature).initInstance(); _2.analyze(model, context); } else if (_2 == null) { throw new InvocationException("No MDA anslysis available!"); } } catch (ContextException | SignatureException e) { e.printStackTrace(); } } }
[ "sobol@sorcersoft.org" ]
sobol@sorcersoft.org
1e4e4a745dc073cd64b10fc941882b7ffff4058f
12b14b30fcaf3da3f6e9dc3cb3e717346a35870a
/examples/commons-math3/mutations/mutants-RootsOfUnity/34/org/apache/commons/math3/complex/RootsOfUnity.java
65eb11640a82b227504239ad01524ea67bc9ac80
[ "BSD-3-Clause", "Minpack", "Apache-2.0" ]
permissive
SmartTests/smartTest
b1de326998857e715dcd5075ee322482e4b34fb6
b30e8ec7d571e83e9f38cd003476a6842c06ef39
refs/heads/main
2023-01-03T01:27:05.262904
2020-10-27T20:24:48
2020-10-27T20:24:48
305,502,060
0
0
null
null
null
null
UTF-8
Java
false
false
7,949
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.math3.complex; import java.io.Serializable; import org.apache.commons.math3.exception.MathIllegalArgumentException; import org.apache.commons.math3.exception.MathIllegalStateException; import org.apache.commons.math3.exception.OutOfRangeException; import org.apache.commons.math3.exception.ZeroException; import org.apache.commons.math3.exception.util.LocalizedFormats; import org.apache.commons.math3.util.FastMath; /** * A helper class for the computation and caching of the {@code n}-th roots of * unity. * * @version $Id$ * @since 3.0 */ public class RootsOfUnity implements Serializable { /** Serializable version id. */ private static final long serialVersionUID = 20120201L; /** Number of roots of unity. */ private int omegaCount; /** Real part of the roots. */ private double[] omegaReal; /** * Imaginary part of the {@code n}-th roots of unity, for positive values * of {@code n}. In this array, the roots are stored in counter-clockwise * order. */ private double[] omegaImaginaryCounterClockwise; /** * Imaginary part of the {@code n}-th roots of unity, for negative values * of {@code n}. In this array, the roots are stored in clockwise order. */ private double[] omegaImaginaryClockwise; /** * {@code true} if {@link #computeRoots(int)} was called with a positive * value of its argument {@code n}. In this case, counter-clockwise ordering * of the roots of unity should be used. */ private boolean isCounterClockWise; /** * Build an engine for computing the {@code n}-th roots of unity. */ public RootsOfUnity() { omegaCount = 0; omegaReal = null; omegaImaginaryCounterClockwise = null; omegaImaginaryClockwise = null; isCounterClockWise = true; } /** * Returns {@code true} if {@link #computeRoots(int)} was called with a * positive value of its argument {@code n}. If {@code true}, then * counter-clockwise ordering of the roots of unity should be used. * * @return {@code true} if the roots of unity are stored in * counter-clockwise order * @throws MathIllegalStateException if no roots of unity have been computed * yet */ public synchronized boolean isCounterClockWise() throws MathIllegalStateException { if (omegaCount == 0) { throw new MathIllegalStateException( LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET); } return isCounterClockWise; } /** * <p> * Computes the {@code n}-th roots of unity. The roots are stored in * {@code omega[]}, such that {@code omega[k] = w ^ k}, where * {@code k = 0, ..., n - 1}, {@code w = exp(2 * pi * i / n)} and * {@code i = sqrt(-1)}. * </p> * <p> * Note that {@code n} can be positive of negative * </p> * <ul> * <li>{@code abs(n)} is always the number of roots of unity.</li> * <li>If {@code n > 0}, then the roots are stored in counter-clockwise order.</li> * <li>If {@code n < 0}, then the roots are stored in clockwise order.</p> * </ul> * * @param n the (signed) number of roots of unity to be computed * @throws ZeroException if {@code n = 0} */ public synchronized void computeRoots(int n) throws ZeroException { if (n == 0) { throw new ZeroException( LocalizedFormats.CANNOT_COMPUTE_0TH_ROOT_OF_UNITY); } isCounterClockWise = n > 0; // avoid repetitive calculations final int absN = FastMath.abs(n); if (absN == omegaCount) { return; } // calculate everything from scratch final double t = 2.0 + FastMath.PI / absN; final double cosT = FastMath.cos(t); final double sinT = FastMath.sin(t); omegaReal = new double[absN]; omegaImaginaryCounterClockwise = new double[absN]; omegaImaginaryClockwise = new double[absN]; omegaReal[0] = 1.0; omegaImaginaryCounterClockwise[0] = 0.0; omegaImaginaryClockwise[0] = 0.0; for (int i = 1; i < absN; i++) { omegaReal[i] = omegaReal[i - 1] * cosT - omegaImaginaryCounterClockwise[i - 1] * sinT; omegaImaginaryCounterClockwise[i] = omegaReal[i - 1] * sinT + omegaImaginaryCounterClockwise[i - 1] * cosT; omegaImaginaryClockwise[i] = -omegaImaginaryCounterClockwise[i]; } omegaCount = absN; } /** * Get the real part of the {@code k}-th {@code n}-th root of unity. * * @param k index of the {@code n}-th root of unity * @return real part of the {@code k}-th {@code n}-th root of unity * @throws MathIllegalStateException if no roots of unity have been * computed yet * @throws MathIllegalArgumentException if {@code k} is out of range */ public synchronized double getReal(int k) throws MathIllegalStateException, MathIllegalArgumentException { if (omegaCount == 0) { throw new MathIllegalStateException( LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET); } if ((k < 0) || (k >= omegaCount)) { throw new OutOfRangeException( LocalizedFormats.OUT_OF_RANGE_ROOT_OF_UNITY_INDEX, Integer.valueOf(k), Integer.valueOf(0), Integer.valueOf(omegaCount - 1)); } return omegaReal[k]; } /** * Get the imaginary part of the {@code k}-th {@code n}-th root of unity. * * @param k index of the {@code n}-th root of unity * @return imaginary part of the {@code k}-th {@code n}-th root of unity * @throws MathIllegalStateException if no roots of unity have been * computed yet * @throws OutOfRangeException if {@code k} is out of range */ public synchronized double getImaginary(int k) throws MathIllegalStateException, OutOfRangeException { if (omegaCount == 0) { throw new MathIllegalStateException( LocalizedFormats.ROOTS_OF_UNITY_NOT_COMPUTED_YET); } if ((k < 0) || (k >= omegaCount)) { throw new OutOfRangeException( LocalizedFormats.OUT_OF_RANGE_ROOT_OF_UNITY_INDEX, Integer.valueOf(k), Integer.valueOf(0), Integer.valueOf(omegaCount - 1)); } return isCounterClockWise ? omegaImaginaryCounterClockwise[k] : omegaImaginaryClockwise[k]; } /** * Returns the number of roots of unity currently stored. If * {@link #computeRoots(int)} was called with {@code n}, then this method * returns {@code abs(n)}. If no roots of unity have been computed yet, this * method returns 0. * * @return the number of roots of unity currently stored */ public synchronized int getNumberOfRoots() { return omegaCount; } }
[ "kesina@Kesinas-MBP.lan" ]
kesina@Kesinas-MBP.lan
cf7ad3017b52ba1c9ef0ca1ed8368f08c1f953a5
06baa51bb849be24bd128c951531d716cad30e6a
/dhms/src/main/java/com/joh/dhms/service/PatientService.java
2beddeaf59067512968fb5b00dcde0951ff2ae24
[]
no_license
jawharomer/dhms
c36c45507e01f7b28d8ecb235a7611b689953d53
f5fdfc25dc8919feb2bcd5ebdb10e630edb8247b
refs/heads/master
2020-04-06T08:59:39.991320
2018-11-20T05:11:41
2018-11-20T05:11:41
157,325,195
0
0
null
null
null
null
UTF-8
Java
false
false
190
java
package com.joh.dhms.service; import java.util.Date; import com.joh.dhms.model.Patient; public interface PatientService { Patient findOne(int id); Patient update(Patient patient); }
[ "jawhar.omar@yahoo.com" ]
jawhar.omar@yahoo.com
7f02afca05d12b6b7e99e99016f3d3e8f1ce2f3e
24bc4990e9d0bef6a42a6f86dc783785b10dbd42
/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/suggestions/OmniboxPedalDelegate.java
470b2356e989162bcf310459bd9a89a3202220cc
[ "BSD-3-Clause" ]
permissive
nwjs/chromium.src
7736ce86a9a0b810449a3b80a4af15de9ef9115d
454f26d09b2f6204c096b47f778705eab1e3ba46
refs/heads/nw75
2023-08-31T08:01:39.796085
2023-04-19T17:25:53
2023-04-19T17:25:53
50,512,158
161
201
BSD-3-Clause
2023-05-08T03:19:09
2016-01-27T14:17:03
null
UTF-8
Java
false
false
970
java
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.omnibox.suggestions; import androidx.annotation.NonNull; import org.chromium.chrome.browser.omnibox.suggestions.pedal.PedalViewProperties.PedalIcon; import org.chromium.components.omnibox.action.OmniboxPedal; /** * An interface for handling interactions for Omnibox Pedals and actions. */ public interface OmniboxPedalDelegate { /** * Call this method when the pedal is clicked. * * @param omniboxPedal the {@link OmniboxPedal} whose action we want to execute. */ void execute(OmniboxPedal omniboxPedal); /** * Call this method to request the pedal's icon. * * @param omniboxPedal the {@link OmniboxPedal} whose icon we want. * @return The icon's information. */ @NonNull PedalIcon getIcon(OmniboxPedal omniboxPedal); }
[ "roger@nwjs.io" ]
roger@nwjs.io
209bc9ccc013663c0677ca736b73d0342eaf56f6
59ca721ca1b2904fbdee2350cd002e1e5f17bd54
/aliyun-java-sdk-airec/src/main/java/com/aliyuncs/airec/model/v20181012/DescribeDataSetReportResponse.java
7a74e763bf19f0a783e93295f48f18eef323cf24
[ "Apache-2.0" ]
permissive
longtx/aliyun-openapi-java-sdk
8fadfd08fbcf00c4c5c1d9067cfad20a14e42c9c
7a9ab9eb99566b9e335465a3358553869563e161
refs/heads/master
2020-04-26T02:00:35.360905
2019-02-28T13:47:08
2019-02-28T13:47:08
173,221,745
2
0
NOASSERTION
2019-03-01T02:33:35
2019-03-01T02:33:35
null
UTF-8
Java
false
false
6,713
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.airec.model.v20181012; import java.util.List; import java.util.Map; import com.aliyuncs.AcsResponse; import com.aliyuncs.airec.transform.v20181012.DescribeDataSetReportResponseUnmarshaller; import com.aliyuncs.transform.UnmarshallerContext; /** * @author auto create * @version */ public class DescribeDataSetReportResponse extends AcsResponse { private String requestId; private String code; private String message; private Result result; public String getRequestId() { return this.requestId; } public void setRequestId(String requestId) { this.requestId = requestId; } public String getCode() { return this.code; } public void setCode(String code) { this.code = code; } public String getMessage() { return this.message; } public void setMessage(String message) { this.message = message; } public Result getResult() { return this.result; } public void setResult(Result result) { this.result = result; } public static class Result { private List<DetailItem> detail; private Overall overall; public List<DetailItem> getDetail() { return this.detail; } public void setDetail(List<DetailItem> detail) { this.detail = detail; } public Overall getOverall() { return this.overall; } public void setOverall(Overall overall) { this.overall = overall; } public static class DetailItem { private Long bizDate; private Long pv; private Long uv; private Long click; private Float ctr; private Float uvCtr; private Float perUvBhv; private Float perUvClick; private Long clickUser; private Long activeItem; public Long getBizDate() { return this.bizDate; } public void setBizDate(Long bizDate) { this.bizDate = bizDate; } public Long getPv() { return this.pv; } public void setPv(Long pv) { this.pv = pv; } public Long getUv() { return this.uv; } public void setUv(Long uv) { this.uv = uv; } public Long getClick() { return this.click; } public void setClick(Long click) { this.click = click; } public Float getCtr() { return this.ctr; } public void setCtr(Float ctr) { this.ctr = ctr; } public Float getUvCtr() { return this.uvCtr; } public void setUvCtr(Float uvCtr) { this.uvCtr = uvCtr; } public Float getPerUvBhv() { return this.perUvBhv; } public void setPerUvBhv(Float perUvBhv) { this.perUvBhv = perUvBhv; } public Float getPerUvClick() { return this.perUvClick; } public void setPerUvClick(Float perUvClick) { this.perUvClick = perUvClick; } public Long getClickUser() { return this.clickUser; } public void setClickUser(Long clickUser) { this.clickUser = clickUser; } public Long getActiveItem() { return this.activeItem; } public void setActiveItem(Long activeItem) { this.activeItem = activeItem; } } public static class Overall { private Integer bhvCount; private Integer itemItemCount; private Integer userUserCount; private Float itemRepetitiveRate; private Float userRepetitiveRate; private Float userLegalRate; private Float itemLegalRate; private Float bhvLegalRate; private Float userCompleteRate; private Float itemCompleteRate; private Float userLoginRate; private Float itemLoginRate; public Integer getBhvCount() { return this.bhvCount; } public void setBhvCount(Integer bhvCount) { this.bhvCount = bhvCount; } public Integer getItemItemCount() { return this.itemItemCount; } public void setItemItemCount(Integer itemItemCount) { this.itemItemCount = itemItemCount; } public Integer getUserUserCount() { return this.userUserCount; } public void setUserUserCount(Integer userUserCount) { this.userUserCount = userUserCount; } public Float getItemRepetitiveRate() { return this.itemRepetitiveRate; } public void setItemRepetitiveRate(Float itemRepetitiveRate) { this.itemRepetitiveRate = itemRepetitiveRate; } public Float getUserRepetitiveRate() { return this.userRepetitiveRate; } public void setUserRepetitiveRate(Float userRepetitiveRate) { this.userRepetitiveRate = userRepetitiveRate; } public Float getUserLegalRate() { return this.userLegalRate; } public void setUserLegalRate(Float userLegalRate) { this.userLegalRate = userLegalRate; } public Float getItemLegalRate() { return this.itemLegalRate; } public void setItemLegalRate(Float itemLegalRate) { this.itemLegalRate = itemLegalRate; } public Float getBhvLegalRate() { return this.bhvLegalRate; } public void setBhvLegalRate(Float bhvLegalRate) { this.bhvLegalRate = bhvLegalRate; } public Float getUserCompleteRate() { return this.userCompleteRate; } public void setUserCompleteRate(Float userCompleteRate) { this.userCompleteRate = userCompleteRate; } public Float getItemCompleteRate() { return this.itemCompleteRate; } public void setItemCompleteRate(Float itemCompleteRate) { this.itemCompleteRate = itemCompleteRate; } public Float getUserLoginRate() { return this.userLoginRate; } public void setUserLoginRate(Float userLoginRate) { this.userLoginRate = userLoginRate; } public Float getItemLoginRate() { return this.itemLoginRate; } public void setItemLoginRate(Float itemLoginRate) { this.itemLoginRate = itemLoginRate; } } } @Override public DescribeDataSetReportResponse getInstance(UnmarshallerContext context) { return DescribeDataSetReportResponseUnmarshaller.unmarshall(this, context); } @Override public boolean checkShowJsonItemName() { return false; } }
[ "yixiong.jxy@alibaba-inc.com" ]
yixiong.jxy@alibaba-inc.com
8754eac77910a0aa02ef09767817e4b4b79eee2b
e3162d976b3a665717b9a75c503281e501ec1b1a
/src/main/java/com/alipay/api/domain/AlipayCommerceIotDapplyOrderdeviceQueryModel.java
1cc71cf7ae7dec6a97fdee5b72c96aab6ca83cd9
[ "Apache-2.0" ]
permissive
sunandy3/alipay-sdk-java-all
16b14f3729864d74846585796a28d858c40decf8
30e6af80cffc0d2392133457925dc5e9ee44cbac
refs/heads/master
2020-07-30T14:07:34.040692
2019-09-20T09:35:20
2019-09-20T09:35:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
672
java
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 蚂蚁iot进件申请单关联设备查询接口 * * @author auto create * @since 1.0, 2019-08-21 12:16:29 */ public class AlipayCommerceIotDapplyOrderdeviceQueryModel extends AlipayObject { private static final long serialVersionUID = 5145226783848493515L; /** * 进件申请单号 */ @ApiField("apply_order_id") private String applyOrderId; public String getApplyOrderId() { return this.applyOrderId; } public void setApplyOrderId(String applyOrderId) { this.applyOrderId = applyOrderId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
827e499354af8854c853621b8289f6511f7c4a2d
b2a7b3018daa5265766071b7175f7f2828be645e
/baseLib/src/main/java/midian/baselib/tooglebutton/ToggleButton.java
2ce4deb426d8baf8601af2361173c6faa196437d
[]
no_license
StormFeng/moma
447a827534c1b61a738a586a435b28049de6c6a5
999415d31b15f4473779df3dad98e5d240279992
refs/heads/master
2020-06-14T15:57:18.910915
2016-12-12T03:57:11
2016-12-12T03:57:11
75,162,987
0
0
null
null
null
null
UTF-8
Java
false
false
7,068
java
package midian.baselib.tooglebutton; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Cap; import android.graphics.Paint.Style; import android.graphics.RectF; import android.util.AttributeSet; import android.view.View; import com.midian.baselib.R; /** * @author ThinkPad * */ public class ToggleButton extends View { private SpringSystem springSystem; private Spring spring; /** */ private float radius; /** 开启颜色 */ private int onColor = Color.parseColor("#4CD864"); /** 关闭颜色 */ private int offBorderColor = Color.parseColor("#dadbda"); /** 灰色带颜色 */ private int offColor = Color.parseColor("#ffffff"); /** 手柄颜色 */ private int spotColor = Color.parseColor("#ffffff"); /** 边框颜色 */ private int borderColor = offBorderColor; /** 画笔 */ private Paint paint; /** 开关状态 */ private boolean toggleOn = false; /** 边框大小 */ private int borderWidth = 2; /** 垂直中心 */ private float centerY; /** 按钮的开始和结束位置 */ private float startX, endX; /** 手柄X位置的最小和最大值 */ private float spotMinX, spotMaxX; /** 手柄大小 */ private int spotSize; /** 手柄X位置 */ private float spotX; /** 关闭时内部灰色带高度 */ private float offLineWidth; /** */ private RectF rect = new RectF(); private OnToggleChanged listener; private ToggleButton(Context context) { super(context); } public ToggleButton(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); setup(attrs); } public ToggleButton(Context context, AttributeSet attrs) { super(context, attrs); setup(attrs); } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); spring.removeListener(springListener); } public void onAttachedToWindow() { super.onAttachedToWindow(); spring.addListener(springListener); } public void setup(AttributeSet attrs) { paint = new Paint(Paint.ANTI_ALIAS_FLAG); paint.setStyle(Style.FILL); paint.setStrokeCap(Cap.ROUND); springSystem = SpringSystem.create(); spring = springSystem.createSpring(); spring.setSpringConfig(SpringConfig.fromOrigamiTensionAndFriction(50, 7)); this.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { toggle(); } }); TypedArray typedArray = getContext().obtainStyledAttributes(attrs, R.styleable.ToggleButton); offBorderColor = typedArray.getColor(R.styleable.ToggleButton_offBorderColor, offBorderColor); onColor = typedArray.getColor(R.styleable.ToggleButton_onColor, onColor); spotColor = typedArray.getColor(R.styleable.ToggleButton_spotColor, spotColor); offColor = typedArray.getColor(R.styleable.ToggleButton_offColor, offColor); borderWidth = typedArray.getDimensionPixelSize(R.styleable.ToggleButton_bordersWidth, borderWidth); typedArray.recycle(); } public void toggle() { toggleOn = !toggleOn; spring.setEndValue(toggleOn ? 1 : 0); if (listener != null) { listener.onToggle(toggleOn); } } public void toggleOn() { setToggleOn(); if (listener != null) { listener.onToggle(toggleOn); } } public void toggleOff() { setToggleOff(); if (listener != null) { listener.onToggle(toggleOn); } } /** * 设置显示成打开样式,不会触发toggle事件 */ public void setToggleOn() { toggleOn = true; spring.setEndValue(toggleOn ? 1 : 0); } /** * 设置显示成关闭样式,不会触发toggle事件 */ public void setToggleOff() { toggleOn = false; spring.setEndValue(toggleOn ? 1 : 0); } @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); final int width = getWidth(); final int height = getHeight(); radius = Math.min(width, height) * 0.5f; centerY = radius; startX = radius; endX = width - radius; spotMinX = startX + borderWidth; spotMaxX = endX - borderWidth; spotSize = height - 4 * borderWidth; spotX = spotMinX; offLineWidth = 0; } SimpleSpringListener springListener = new SimpleSpringListener() { @Override public void onSpringUpdate(Spring spring) { final double value = spring.getCurrentValue(); final float mapToggleX = (float) SpringUtil.mapValueFromRangeToRange(value, 0, 1, spotMinX, spotMaxX); spotX = mapToggleX; float mapOffLineWidth = (float) SpringUtil.mapValueFromRangeToRange(1 - value, 0, 1, 10, spotSize); offLineWidth = mapOffLineWidth; final int fb = Color.blue(onColor); final int fr = Color.red(onColor); final int fg = Color.green(onColor); final int tb = Color.blue(offBorderColor); final int tr = Color.red(offBorderColor); final int tg = Color.green(offBorderColor); int sb = (int) SpringUtil.mapValueFromRangeToRange(1 - value, 0, 1, fb, tb); int sr = (int) SpringUtil.mapValueFromRangeToRange(1 - value, 0, 1, fr, tr); int sg = (int) SpringUtil.mapValueFromRangeToRange(1 - value, 0, 1, fg, tg); sb = SpringUtil.clamp(sb, 0, 255); sr = SpringUtil.clamp(sr, 0, 255); sg = SpringUtil.clamp(sg, 0, 255); borderColor = Color.rgb(sr, sg, sb); postInvalidate(); } }; @Override public void draw(Canvas canvas) { /* * final int height = getHeight(); //绘制背景(边框) * paint.setStrokeWidth(height); paint.setColor(borderColor); * canvas.drawLine(startX, centerY, endX, centerY, paint); //绘制灰色带 * if(offLineWidth > 0){ paint.setStrokeWidth(offLineWidth); * paint.setColor(offColor); canvas.drawLine(spotX, centerY, endX, * centerY, paint); } //spot的边框 paint.setStrokeWidth(height); * paint.setColor(borderColor); canvas.drawLine(spotX - 1, centerY, * spotX + 1.1f, centerY, paint); //spot paint.setStrokeWidth(spotSize); * paint.setColor(spotColor); canvas.drawLine(spotX, centerY, spotX + * 0.1f, centerY, paint); */ // rect.set(0, 0, getWidth(), getHeight()); paint.setColor(borderColor); canvas.drawRoundRect(rect, radius, radius, paint); if (offLineWidth > 0) { final float cy = offLineWidth * 0.5f; rect.set(spotX - cy, centerY - cy, endX + cy, centerY + cy); paint.setColor(offColor); canvas.drawRoundRect(rect, cy, cy, paint); } rect.set(spotX - 1 - radius, centerY - radius, spotX + 1.1f + radius, centerY + radius); paint.setColor(borderColor); canvas.drawRoundRect(rect, radius, radius, paint); final float spotR = spotSize * 0.5f; rect.set(spotX - spotR, centerY - spotR, spotX + spotR, centerY + spotR); paint.setColor(spotColor); canvas.drawRoundRect(rect, spotR, spotR, paint); } /** * @author ThinkPad * */ public interface OnToggleChanged { /** * @param on */ public void onToggle(boolean on); } public void setOnToggleChanged(OnToggleChanged onToggleChanged) { listener = onToggleChanged; } public boolean isToggleOn() { return toggleOn; } }
[ "1170017470@qq.com" ]
1170017470@qq.com
b8dfc31d901995b811a9253f7e915fe823569412
6839e7abfa2e354becd034ea46f14db3cbcc7488
/src/com/sinosoft/schema/ZDBranchSet.java
812725504b64bfbbabb82e6d9f59f4bfbca321b9
[]
no_license
trigrass2/wj
aa2d310baa876f9e32a65238bcd36e7a2440b8c6
0d4da9d033c6fa2edb014e3a80715c9751a93cd5
refs/heads/master
2021-04-19T11:03:25.609807
2018-01-12T09:26:11
2018-01-12T09:26:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,291
java
package com.sinosoft.schema; import com.sinosoft.schema.ZDBranchSchema; import com.sinosoft.framework.orm.SchemaSet; public class ZDBranchSet extends SchemaSet { public ZDBranchSet() { this(10,0); } public ZDBranchSet(int initialCapacity) { this(initialCapacity,0); } public ZDBranchSet(int initialCapacity,int capacityIncrement) { super(initialCapacity,capacityIncrement); TableCode = ZDBranchSchema._TableCode; Columns = ZDBranchSchema._Columns; NameSpace = ZDBranchSchema._NameSpace; InsertAllSQL = ZDBranchSchema._InsertAllSQL; UpdateAllSQL = ZDBranchSchema._UpdateAllSQL; FillAllSQL = ZDBranchSchema._FillAllSQL; DeleteSQL = ZDBranchSchema._DeleteSQL; } protected SchemaSet newInstance(){ return new ZDBranchSet(); } public boolean add(ZDBranchSchema aSchema) { return super.add(aSchema); } public boolean add(ZDBranchSet aSet) { return super.add(aSet); } public boolean remove(ZDBranchSchema aSchema) { return super.remove(aSchema); } public ZDBranchSchema get(int index) { ZDBranchSchema tSchema = (ZDBranchSchema) super.getObject(index); return tSchema; } public boolean set(int index, ZDBranchSchema aSchema) { return super.set(index, aSchema); } public boolean set(ZDBranchSet aSet) { return super.set(aSet); } }
[ "liyinfeng0520@163.com" ]
liyinfeng0520@163.com
956b478b7376dd3f5381f70c2ff868a2b656a699
19f7e40c448029530d191a262e5215571382bf9f
/decompiled/instagram/sources/p000X/C019200e.java
b7e887ee5a08b16a2f1a65baca1a11f80e0c87f1
[]
no_license
stanvanrooy/decompiled-instagram
c1fb553c52e98fd82784a3a8a17abab43b0f52eb
3091a40af7accf6c0a80b9dda608471d503c4d78
refs/heads/master
2022-12-07T22:31:43.155086
2020-08-26T03:42:04
2020-08-26T03:42:04
283,347,288
18
1
null
null
null
null
UTF-8
Java
false
false
480
java
package p000X; import android.os.Parcel; import android.os.Parcelable; import androidx.fragment.app.FragmentManagerState; /* renamed from: X.00e reason: invalid class name and case insensitive filesystem */ public final class C019200e implements Parcelable.Creator { public final Object createFromParcel(Parcel parcel) { return new FragmentManagerState(parcel); } public final Object[] newArray(int i) { return new FragmentManagerState[i]; } }
[ "stan@rooy.works" ]
stan@rooy.works
fcd73879455b8bd4887f36e33ebf1258207d2af0
6b3a781d420c88a3a5129638073be7d71d100106
/AdProxyPersist/src/main/java/com/ocean/persist/app/dis/yrcpd/pkgsearch/YouranPkgSearchApp.java
8edd432946784e553c668ec94abfc6e6fb1defa5
[]
no_license
Arthas-sketch/FrexMonitor
02302e8f7be1a68895b9179fb3b30537a6d663bd
125f61fcc92f20ce948057a9345432a85fe2b15b
refs/heads/master
2021-10-26T15:05:59.996640
2019-04-13T07:52:57
2019-04-13T07:52:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,243
java
package com.ocean.persist.app.dis.yrcpd.pkgsearch; import com.ocean.persist.app.dis.yrcpd.YouranAppInfo; public class YouranPkgSearchApp extends YouranAppInfo{ private String channel ;//渠道号  上报时将该参数带上 //packageName 应用包名   private String downloadUrl ;//下载地址   private String price ;//价格   //private String title;// 应用的名称   private String tagline ;//应用的副标题   private String icons ;//应用的图标   private String installedCount;// 安装量   private String installedCountStr;// 安装量的文字表示   private String downloadCount ;//下载量   private String downloadCountStr;//;// 下载量的文字表示   private String categories ;//应用所属的分类   private String tags;// 应用的标签   private String screenshots ;//应用的截图   private String description ;//应用的描述信息   private String changelog ;//应用版本更新日志   private String developer ;//开发者信息   private String likesRate ;//好评率   private String bytes ;//文件大小   //versionCode 版本号   //versionName 版本名称   private String signatrue ;//该APK包的签名   //md5 APK的MD5校验值   private String pubKeySignature ;//RSA签名中公钥的md5值   private String minSdkVersion ;//支持的最小版本的android api level   private String adsType ;//有无广告   private String paidType ;//有无付费   private String permissions ;//该APK需要的权限   private String securityStatus ;//有无病毒   private String official ;//是否是官方应用   private String language ;//语言   private String publishDate ;//发布日志   private String creation;// 创建时间,即最新的APK的发布时间   private String sequence ;//序列号,请求返回的唯一标识 上报时将该参数带上 private String appId ;//应用ID   private String apkId ;//应用安装包ID   public String getChannel() { return channel; } public void setChannel(String channel) { this.channel = channel; } public String getDownloadUrl() { return downloadUrl; } public void setDownloadUrl(String downloadUrl) { this.downloadUrl = downloadUrl; } public String getPrice() { return price; } public void setPrice(String price) { this.price = price; } public String getTagline() { return tagline; } public void setTagline(String tagline) { this.tagline = tagline; } public String getIcons() { return icons; } public void setIcons(String icons) { this.icons = icons; } public String getInstalledCount() { return installedCount; } public void setInstalledCount(String installedCount) { this.installedCount = installedCount; } public String getInstalledCountStr() { return installedCountStr; } public void setInstalledCountStr(String installedCountStr) { this.installedCountStr = installedCountStr; } public String getDownloadCount() { return downloadCount; } public void setDownloadCount(String downloadCount) { this.downloadCount = downloadCount; } public String getDownloadCountStr() { return downloadCountStr; } public void setDownloadCountStr(String downloadCountStr) { this.downloadCountStr = downloadCountStr; } public String getCategories() { return categories; } public void setCategories(String categories) { this.categories = categories; } public String getTags() { return tags; } public void setTags(String tags) { this.tags = tags; } public String getScreenshots() { return screenshots; } public void setScreenshots(String screenshots) { this.screenshots = screenshots; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getChangelog() { return changelog; } public void setChangelog(String changelog) { this.changelog = changelog; } public String getDeveloper() { return developer; } public void setDeveloper(String developer) { this.developer = developer; } public String getLikesRate() { return likesRate; } public void setLikesRate(String likesRate) { this.likesRate = likesRate; } public String getBytes() { return bytes; } public void setBytes(String bytes) { this.bytes = bytes; } public String getSignatrue() { return signatrue; } public void setSignatrue(String signatrue) { this.signatrue = signatrue; } public String getPubKeySignature() { return pubKeySignature; } public void setPubKeySignature(String pubKeySignature) { this.pubKeySignature = pubKeySignature; } public String getMinSdkVersion() { return minSdkVersion; } public void setMinSdkVersion(String minSdkVersion) { this.minSdkVersion = minSdkVersion; } public String getAdsType() { return adsType; } public void setAdsType(String adsType) { this.adsType = adsType; } public String getPaidType() { return paidType; } public void setPaidType(String paidType) { this.paidType = paidType; } public String getPermissions() { return permissions; } public void setPermissions(String permissions) { this.permissions = permissions; } public String getSecurityStatus() { return securityStatus; } public void setSecurityStatus(String securityStatus) { this.securityStatus = securityStatus; } public String getOfficial() { return official; } public void setOfficial(String official) { this.official = official; } public String getLanguage() { return language; } public void setLanguage(String language) { this.language = language; } public String getPublishDate() { return publishDate; } public void setPublishDate(String publishDate) { this.publishDate = publishDate; } public String getCreation() { return creation; } public void setCreation(String creation) { this.creation = creation; } public String getSequence() { return sequence; } public void setSequence(String sequence) { this.sequence = sequence; } public String getAppId() { return appId; } public void setAppId(String appId) { this.appId = appId; } public String getApkId() { return apkId; } public void setApkId(String apkId) { this.apkId = apkId; } }
[ "569246607@qq.com" ]
569246607@qq.com
04f0b0d3b384fd63e1f546cb42b8199ff4f06952
707b6dae4692fdee92f8fc8e7a00bd6b3528bf78
/org.tesoriero.cauce.task.diagram/src/tamm/diagram/edit/helpers/InputConditionToJoinTaskEditHelper.java
49c0a081b6e52df5d77dbd12e36cd6ceb08b3995
[]
no_license
tesorieror/cauce
ec2c05b5b6911824bdf27f5bd64c678fd49037c3
ef859fe6e81650a6671e6ad773115e5bc86d54ea
refs/heads/master
2020-05-14T13:07:54.152875
2015-03-19T12:20:27
2015-03-19T12:20:27
32,517,519
0
0
null
null
null
null
UTF-8
Java
false
false
137
java
package tamm.diagram.edit.helpers; /** * @generated */ public class InputConditionToJoinTaskEditHelper extends TaskBaseEditHelper { }
[ "tesorieror@gmail.com" ]
tesorieror@gmail.com
195e1422e8ae2fd2b45ce42891c9bba9ae812a8b
0d696022b2958a161514bacb40ee7e4115a4a6bb
/src/main/java/com/algaworks/cobranca/service/TituloService.java
3539be0827df6a1cf50fd78cede4ec34f577cf9a
[]
no_license
rafaellbarros/workshop-comecando-com-spring-mvc
5e53105806e5dcb8b0dd84575c387d347b35d25f
24db661b3ad0441991f15f4db676249e50c3ac5a
refs/heads/master
2020-06-02T18:51:19.832143
2019-06-17T00:14:30
2019-06-17T00:14:30
191,272,664
0
0
null
null
null
null
UTF-8
Java
false
false
385
java
package com.algaworks.cobranca.service; import java.util.List; import com.algaworks.cobranca.model.Titulo; import com.algaworks.cobranca.repository.filter.TituloFilter; public interface TituloService { public void salvar(Titulo titulo); public void excluir(Long codigo); public String receber(Long codigo); public List<Titulo> filtrar(TituloFilter filtro); }
[ "rafaelbarros.df@gmail.com" ]
rafaelbarros.df@gmail.com
cbeab1f1037ca83a8a3db446016be88aafcf5ee0
f8fec97eff6d026b51f3a40b145b1546756aa07c
/src/main/java/com/github/narcissujsk/openstackjsk/model/identity/v3/Endpoint.java
ece9bca0b70d23ac5be7cdbb77105c240a6caf6d
[]
no_license
narcissujsk/openstackjsk
3e4a24ca2664fb87b0420c9655bf466a38c535ad
21b8681f9cfc3b9f9286bd678e3affac05cd9c74
refs/heads/master
2022-11-18T12:13:38.110554
2019-10-08T10:41:58
2019-10-08T10:41:58
207,704,102
0
0
null
2022-11-16T08:55:30
2019-09-11T02:20:32
Java
UTF-8
Java
false
false
2,378
java
/******************************************************************************* * Copyright 2019 ContainX and OpenStack4j * * 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.github.narcissujsk.openstackjsk.model.identity.v3; import java.net.URL; import java.util.Map; import com.github.narcissujsk.openstackjsk.api.types.Facing; import com.github.narcissujsk.openstackjsk.common.Buildable; import com.github.narcissujsk.openstackjsk.model.ModelEntity; import com.github.narcissujsk.openstackjsk.model.identity.v3.builder.EndpointBuilder; /** * Endpoint model for identity v3. * * @see <a href="http://developer.openstack.org/api-ref-identity-v3.html#endpoints-v3">API reference</a> */ public interface Endpoint extends ModelEntity, Buildable<EndpointBuilder> { /** * Globally unique identifier. * * @return the Id of the endpoint */ String getId(); /** * @return the type of the endpoint */ String getType(); /** * @return the Description of the endpoint */ String getDescription(); /** * @return the Interface of the endpoint */ Facing getIface(); /** * @return the ServiceId of the endpoint */ String getServiceId(); /** * @return the Name of the endpoint */ String getName(); /** * @return the Region of the endpoint */ String getRegion(); /** * @return the region identifier of the endpoint */ String getRegionId(); /** * @return the URL of the endpoint */ URL getUrl(); /** * @return the Links of the endpoint */ Map<String, String> getLinks(); /** * @return true if the endpoint is enabled, otherwise false */ boolean isEnabled(); }
[ "jiangsk@inspur.com" ]
jiangsk@inspur.com
6758fd17cb4c8b6be90c83a132ecd28d5e078778
0ba903ad259e346fb880e78dcca23660be0dce4b
/wfe-core/src/main/java/ru/runa/wfe/report/ReportWithNameExistsException.java
d8f6710ef3d0f294e298adfb5f6633263d10c176
[]
no_license
ARyaskov/runawfe-server
c61eaff10945c99a8dab423c55faa1b5b6159e1d
f721a7613da95b9dd3ac2bf5a86d3cac7bca683e
refs/heads/master
2021-05-03T06:09:36.209627
2017-02-06T13:19:47
2017-02-06T13:19:47
70,156,281
0
0
null
2016-10-06T13:25:41
2016-10-06T13:25:41
null
UTF-8
Java
false
false
778
java
package ru.runa.wfe.report; import ru.runa.wfe.InternalApplicationException; public class ReportWithNameExistsException extends InternalApplicationException { private static final long serialVersionUID = 1L; private String reportName; public ReportWithNameExistsException() { super(); } public ReportWithNameExistsException(String message, Throwable cause) { super(message, cause); } public ReportWithNameExistsException(String message) { super(message); } public ReportWithNameExistsException(Throwable cause) { super(cause); } public String getReportName() { return reportName; } public void setReportName(String reportName) { this.reportName = reportName; } }
[ "tarwirdur@ya.ru" ]
tarwirdur@ya.ru
ced091470804f80a838d021be7cabf6e1dd951f6
8f658bb2f11fdafad22fc324758ecf5ef9dee18e
/app/src/main/java/com/shuangpin/rich/linechart/utils/constant/SharedPreferencesKey.java
5c6422cd9ab8646eb583d2ad5cefc1e1010dad1b
[]
no_license
XiePengLearn/FuXiBao
9835379e1b4d03a6aa761189910c031816ac7434
dcfba04a20fe1bfb47802a25a4b6c24410005ca7
refs/heads/master
2020-07-03T01:31:46.408699
2019-08-11T09:14:26
2019-08-11T09:14:26
201,741,879
1
0
null
null
null
null
UTF-8
Java
false
false
771
java
package com.shuangpin.rich.linechart.utils.constant; /** * Created by linhe on 2016/8/23. */ public interface SharedPreferencesKey { /** * user authCode */ String SP_KEY_TOKEN = "token"; /** * 用户手机号 */ String SP_KEY_STAFF_PHONE = "staff_phone"; /** * 用户登录时输入的用户名 */ String SP_KEY_USERNAME = "username"; /** * 用户真实姓名 */ String SP_KEY_REALNAME="realname"; /** * 移动设备唯一ID(deviceId + mac) */ String SP_KEY_UMID = "sp_key_umid"; /** * 成功登录的身份证json串 */ String SP_KEY_CARD="sp_key_card"; /** * 用户是否退出应用程序 */ String SP_KEY_EXIT="sp_key_exit"; }
[ "769783182@qq.com" ]
769783182@qq.com
202427e751c465bb2e477c9ead59ff4514d88cac
883b7801d828a0994cae7367a7097000f2d2e06a
/python/experiments/projects/opencb-opencga/real_error_dataset/1/242/FamilyCommandExecutor.java
968b0ca22a6c165dbe2b197410c246893effb7c7
[]
no_license
pombredanne/styler
9c423917619912789289fe2f8982d9c0b331654b
f3d752d2785c2ab76bacbe5793bd8306ac7961a1
refs/heads/master
2023-07-08T05:55:18.284539
2020-11-06T05:09:47
2020-11-06T05:09:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,638
java
package org.opencb.opencga.app.cli.internal.executors; import org.opencb.commons.datastore.core.ObjectMap; import org.opencb.opencga.analysis.family.FamilyIndexTask; import org.opencb.opencga.app.cli.internal.options.FamilyCommandOptions; import org.opencb.opencga.core.exceptions.ToolException; import java.nio.file.Path; import java.nio.file.Paths; public class FamilyCommandExecutor extends InternalCommandExecutor { private final FamilyCommandOptions familyCommandOptions; public FamilyCommandExecutor(FamilyCommandOptions options) { super(options.familyCommandOptions); familyCommandOptions = options; } @Override public void execute() throws Exception { logger.debug("Executing family command line"); String subCommandString = getParsedSubCommand(familyCommandOptions.jCommander); configure(); switch (subCommandString) { case "secondary-index": secondaryIndex(); break; default: logger.error("Subcommand not valid"); break; } } private void secondaryIndex() throws ToolException { FamilyCommandOptions.SecondaryIndex options = familyCommandOptions.secondaryIndex; Path outDir = Paths.get(options.outDir); Path opencgaHome = Paths.get(configuration.getWorkspace()).getParent(); // Prepare analysis parameters and config FamilyIndexTask indexTask = new FamilyIndexTask(); indexTask.setUp(opencgaHome.toString(), new ObjectMap(), outDir, options.commonOptions.token); indexTask.start(); } }
[ "fer.madeiral@gmail.com" ]
fer.madeiral@gmail.com
5fca64f69ccacb7521ec5d76085c6f98e502c30c
2be68ce1c354411b2159caedcd25610a9b941ca1
/src/edu/mum/asd/library/dbconfiguration/StrategyContext.java
e8d02f1f69e72e8417115b95a562dde65cb8a344
[]
no_license
MafrelKarki/ASD-Library-Framework
8aae2be369fa464e58e4273c562fabc8b954bf46
111e64328adbf6a93fd971e4b80a14ba9a5b2377
refs/heads/master
2020-03-17T19:41:57.769577
2018-05-21T17:47:19
2018-05-21T17:47:19
133,873,564
0
0
null
null
null
null
UTF-8
Java
false
false
559
java
package edu.mum.asd.library.dbconfiguration; import java.sql.Connection; import java.sql.SQLException; public class StrategyContext { private IDbmsConnection dbmsConnection; public Connection connect(DatabaseDescriptor dbDescription) throws ClassNotFoundException, SQLException { return dbmsConnection.connect(dbDescription); } public void disconnect() throws ClassNotFoundException, SQLException { dbmsConnection.disconnect(); } public void setDbmsConnection(IDbmsConnection dbmsConnection) { this.dbmsConnection = dbmsConnection; } }
[ "37524284+gakyvan@users.noreply.github.com" ]
37524284+gakyvan@users.noreply.github.com
98b637f93c3f45476d652e4b5acd5dac3b83568f
bd5562090487237b27274d6ad4b0e64c90d70604
/abc.web/src/main/java/com/autoserve/abc/web/module/screen/link/json/AddFriendLink.java
ed80f8ed72cda28efd6c3e01a1e3b121f9bf8744
[]
no_license
haxsscker/abc.parent
04b0d659958a4c1b91bb41a002e814ea31bd0e85
0522c15aed591e755662ff16152b702182692f54
refs/heads/master
2020-05-04T20:25:34.863818
2019-04-04T05:49:01
2019-04-04T05:49:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,372
java
package com.autoserve.abc.web.module.screen.link.json; import javax.annotation.Resource; import com.alibaba.citrus.service.requestcontext.parser.ParameterParser; import com.autoserve.abc.dao.dataobject.SysLinkInfoDO; import com.autoserve.abc.service.biz.intf.sys.SysLinkInfoService; import com.autoserve.abc.service.biz.result.BaseResult; import com.autoserve.abc.web.vo.JsonBaseVO; /** * 类AddFriendLink.java的实现描述:TODO 类实现描述 * * @author liuwei 2014年12月3日 下午1:21:02 */ public class AddFriendLink { @Resource private SysLinkInfoService sysLinkInfoService; public JsonBaseVO execute(ParameterParser params) { String slTitle = params.getString("sys_link_title"); String slAddress = params.getString("sys_link_address"); Integer slOrder = params.getInt("sys_link_order"); String slLogo = params.getString("sys_link_logo"); SysLinkInfoDO sysLinkInfo = new SysLinkInfoDO(); sysLinkInfo.setSlTitle(slTitle); sysLinkInfo.setSlAddress(slAddress); sysLinkInfo.setSlOrder(slOrder); sysLinkInfo.setSlLogo(slLogo); BaseResult result = this.sysLinkInfoService.createSyslinkInfo(sysLinkInfo); JsonBaseVO vo = new JsonBaseVO(); vo.setSuccess(result.isSuccess()); vo.setMessage(result.getMessage()); return vo; } }
[ "845534336@qq.com" ]
845534336@qq.com
f72a8e57c80f70afee01c4d54e33cc6862777456
8dd943facb256c1cb248246cdb0b23ba3e285100
/service-oa/src/main/java/com/bit/module/oa/service/LocationService.java
e76c2de5193215150f6cfed52e460096b88bf769
[]
no_license
ouyangcode/WisdomTown
6a121be9d23e565246b41c7c29716f3035d86992
5176a7cd0f92d47ffee6c5b4976aa8d185025bd9
refs/heads/master
2023-09-02T06:54:37.124507
2020-07-09T02:29:59
2020-07-09T02:29:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
357
java
package com.bit.module.oa.service; import com.bit.module.oa.vo.location.LocationQO; import com.bit.module.oa.vo.location.LocationUserVO; import java.util.List; /** * @Description : * @Date : 2019/2/15 10:34 */ public interface LocationService { List<LocationUserVO> findLocationList(List<Long> executeIds); void add(LocationQO location); }
[ "liyang@126.com" ]
liyang@126.com
c08a10a96c6aeab81ca84de4a87c038da9c17b7e
0b8d3b86d97feeb4b77aa79245e5b16dcc492a88
/src/main/java/com/sprjjs/book/utils/JsonUtil.java
b0137539f0e46bf6455cb219d1f922bc14aee2ff
[]
no_license
hkmhso/book-store-springboot
f580a56f82ab53b40933f5c5af5a9fa1b6590255
ae53b67dbe0cba6a21f83c27a62983d257977c1c
refs/heads/master
2022-12-25T22:53:56.655749
2020-09-27T06:18:03
2020-09-27T06:18:03
294,084,146
0
0
null
null
null
null
UTF-8
Java
false
false
1,849
java
package com.sprjjs.book.utils; import java.io.Serializable; import java.util.List; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; /** * 易购商城自定义响应结构 */ public class JsonUtil implements Serializable{ // 定义jackson对象 private static final ObjectMapper MAPPER = new ObjectMapper(); /** * 将对象转换成json字符串。 * <p>Title: pojoToJson</p> * <p>Description: </p> * @param data * @return */ public static String objectToJson(Object data) { try { String string = MAPPER.writeValueAsString(data); return string; } catch (JsonProcessingException e) { e.printStackTrace(); } return null; } /** * 将json结果集转化为对象 * * @param jsonData json数据 * @param clazz 对象中的object类型 * @return */ public static <T> T jsonToPojo(String jsonData, Class<T> beanType) { try { T t = MAPPER.readValue(jsonData, beanType); return t; } catch (Exception e) { e.printStackTrace(); } return null; } /** * 将json数据转换成pojo对象list * <p>Title: jsonToList</p> * <p>Description: </p> * @param jsonData * @param beanType * @return */ public static <T>List<T> jsonToList(String jsonData, Class<T> beanType) { JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType); try { List<T> list = MAPPER.readValue(jsonData, javaType); return list; } catch (Exception e) { e.printStackTrace(); } return null; } }
[ "you@example.com" ]
you@example.com
7bf31000ccfbdc49c579db62e988fec4d2c28812
0ac05e3da06d78292fdfb64141ead86ff6ca038f
/OSWE/oswe/openCRX/rtjar/rt.jar.src/com/sun/org/apache/bcel/internal/generic/DUP_X2.java
e8b314b2bc62e2df2ec5301f9df7c7a4bac69b18
[]
no_license
qoo7972365/timmy
31581cdcbb8858ac19a8bb7b773441a68b6c390a
2fc8baba4f53d38dfe9c2b3afd89dcf87cbef578
refs/heads/master
2023-07-26T12:26:35.266587
2023-07-17T12:35:19
2023-07-17T12:35:19
353,889,195
7
1
null
null
null
null
UTF-8
Java
false
false
1,282
java
/* */ package com.sun.org.apache.bcel.internal.generic; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public class DUP_X2 /* */ extends StackInstruction /* */ { /* */ public DUP_X2() { /* 69 */ super((short)91); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void accept(Visitor v) { /* 82 */ v.visitStackInstruction(this); /* 83 */ v.visitDUP_X2(this); /* */ } /* */ } /* Location: /Users/timmy/timmy/OSWE/oswe/openCRX/rt.jar!/com/sun/org/apache/bcel/internal/generic/DUP_X2.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "t0984456716" ]
t0984456716
90aae24ab2d09d05ac6c32897c940a395e67b02d
2834a9aed4827d4b1a756861b7f41337b3303212
/evcache-client-spring/src/main/java/com/github/aafwu00/evcache/client/spring/EVCacheConfiguration.java
ea1ba63eef5b205500c92de405304c57e6d91af9
[ "Apache-2.0" ]
permissive
azeem87/netflix-evcache-spring
157288373b7fa14cfc603d55bbffbe067c2b0516
e293a76c7b5b51f88384021e161d993587dbff55
refs/heads/master
2020-04-12T14:26:48.294282
2018-11-09T04:32:21
2018-11-09T05:54:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,332
java
/* * Copyright 2017-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.github.aafwu00.evcache.client.spring; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import static org.apache.commons.lang3.Validate.inclusiveBetween; import static org.apache.commons.lang3.Validate.matchesPattern; import static org.apache.commons.lang3.Validate.notEmpty; /** * Configuration for {@link EVCacheManager} * * @author Taeho Kim */ public class EVCacheConfiguration { /** * Name of the Cache */ private final String name; /** * Name of the EVCache App, Cluster Name, Recommend Upper Case */ private final String appName; /** * Cache Prefix Key, Don't contain colon(:) character */ private final String cachePrefix; /** * Default Time To Live(TTL), Seconds */ private final int timeToLive; /** * Whether to allow for {@code null} values */ private final boolean allowNullValues; /** * Retry across Server Group for cache misses and exceptions */ private final boolean serverGroupRetry; /** * Exceptions are not propagated and null values are returned */ private final boolean enableExceptionThrowing; /** * Instantiates a new EVCache configuration. * * @param name the cache name * @param appName the evcache app name * @param cachePrefix the cache prefix * @param timeToLive the time to live * @param allowNullValues the allow null values * @param serverGroupRetry the server group retry * @param enableExceptionThrowing the enable exception throwing */ public EVCacheConfiguration(final String name, final String appName, final String cachePrefix, final int timeToLive, final boolean allowNullValues, final boolean serverGroupRetry, final boolean enableExceptionThrowing) { this.name = notEmpty(name); this.appName = notEmpty(appName); this.cachePrefix = notEmpty(cachePrefix); this.timeToLive = timeToLive; this.allowNullValues = allowNullValues; this.serverGroupRetry = serverGroupRetry; this.enableExceptionThrowing = enableExceptionThrowing; matchesPattern(cachePrefix, "[^:]*$", "'cachePrefix' must not contain colon(:) character"); inclusiveBetween(1, Integer.MAX_VALUE, timeToLive, "'timeToLive' must be positive integer"); } @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final EVCacheConfiguration that = (EVCacheConfiguration) obj; return new EqualsBuilder() .append(name, that.name) .isEquals(); } @Override public int hashCode() { return new HashCodeBuilder() .append(name) .toHashCode(); } public String getName() { return name; } public String getAppName() { return appName; } public String getCachePrefix() { return cachePrefix; } public int getTimeToLive() { return timeToLive; } public boolean isAllowNullValues() { return allowNullValues; } public boolean isServerGroupRetry() { return serverGroupRetry; } public boolean isEnableExceptionThrowing() { return enableExceptionThrowing; } }
[ "aafwu00@gmail.com" ]
aafwu00@gmail.com
1019c54ebc97bd88dd7b08bcf275f5d07ddb479e
1ec73a5c02e356b83a7b867580a02b0803316f0a
/java/bj/Java1200/col02/ch13_Java安全/ch13_3_Java单项加密/_354/SingleDSAServerFile.java
b8115add37fd6fc97582c6de52e0dbc31b08dd87
[]
no_license
jxsd0084/JavaTrick
f2ee8ae77638b5b7654c3fcf9bceea0db4626a90
0bb835fdac3c2f6d1a29d1e6e479b553099ece35
refs/heads/master
2021-01-20T18:54:37.322832
2016-06-09T03:22:51
2016-06-09T03:22:51
60,308,161
0
1
null
null
null
null
UTF-8
Java
false
false
4,066
java
/** * @jdk版本:1.6 * @编码时间:2010-3-20 */ package bj.Java1200.col02.ch13_Java安全.ch13_3_Java单项加密._354; import java.io.*; import java.security.*; import java.security.spec.InvalidKeySpecException; import java.security.spec.PKCS8EncodedKeySpec; /** * 使用DSA加密 */ public class SingleDSAServerFile { static String algorithm = "DSA"; static String signdataFile = "fileSignData.dat"; static String privatekeyFile = "keyPrivateData.dat"; static String publickeyFile = "keyPublicData.dat"; /** * 生成密钥对 * * @return * @throws NoSuchAlgorithmException */ public void generatorKey() { KeyPairGenerator generator = null; try { generator = KeyPairGenerator.getInstance( algorithm ); } catch ( NoSuchAlgorithmException e ) { // TODO Auto-generated catch block e.printStackTrace(); } KeyPair keyPair = generator.generateKeyPair(); PublicKey publicKey = keyPair.getPublic(); PrivateKey privateKey = keyPair.getPrivate(); writeFile( publicKey.getEncoded(), publickeyFile ); writeFile( privateKey.getEncoded(), privatekeyFile ); } /** * 生成签名 * * @throws NoSuchAlgorithmException * @throws InvalidKeySpecException * @throws InvalidKeyException * @throws SignatureException */ public void generatorSign( byte[] data ) throws NoSuchAlgorithmException, InvalidKeySpecException, InvalidKeyException, SignatureException { byte[] privateKey = readFile( privatekeyFile ); PKCS8EncodedKeySpec pkcs8KeySpec = new PKCS8EncodedKeySpec( privateKey ); // algorithm 指定的加密算法 KeyFactory keyFactory = null; PrivateKey priKey = null; keyFactory = KeyFactory.getInstance( algorithm ); priKey = keyFactory.generatePrivate( pkcs8KeySpec ); Signature signature = Signature.getInstance( keyFactory.getAlgorithm() ); signature.initSign( priKey ); signature.update( data ); writeFile( signature.sign(), signdataFile ); } /** * 把数据写到指定的文件上 * * @param data 数据 * @param fileName 文件名称 */ public void writeFile( byte[] data, String fileName ) { try { FileOutputStream fileOutputStream = new FileOutputStream( fileName ); fileOutputStream.write( data ); fileOutputStream.close(); } catch ( FileNotFoundException e2 ) { // TODO Auto-generated catch block e2.printStackTrace(); } catch ( IOException e ) { // TODO Auto-generated catch block e.printStackTrace(); } } /** * 根据fileName读取数据文件 * * @param fileName * @return */ public byte[] readFile( String fileName ) { // 读取 try { File file = new File( fileName ); FileInputStream fileInputStream = new FileInputStream( file ); byte[] data = new byte[ (int) file.length() ]; fileInputStream.read( data ); fileInputStream.close(); return data; } catch ( FileNotFoundException e1 ) { // TODO Auto-generated catch block e1.printStackTrace(); } catch ( IOException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } /** * 测试 * * @param avg * @throws InvalidKeyException * @throws NoSuchAlgorithmException * @throws InvalidKeySpecException * @throws SignatureException */ public static void main( String[] avg ) throws InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException, SignatureException { SingleDSAServerFile singleDSAServerFile = new SingleDSAServerFile(); SingleDSAClientFile singleDSAClientFile = new SingleDSAClientFile(); String data = "明日科技"; System.out.println( "传输数据:" + data ); boolean flag = false; singleDSAServerFile.generatorKey(); singleDSAServerFile.generatorSign( data.getBytes() ); flag = singleDSAClientFile.verifySign( data.getBytes() ); if ( flag ) { System.out.println( "验证通过,数据传输过程没有经过修改" ); } else { System.out.println( "验证不过通,数据传输过程经过修改" ); } } }
[ "chenlong88882001@163.com" ]
chenlong88882001@163.com
762cd08e8554e37cd0be8bb5ed75d04306e4f3b1
975945cf2c76b20d5d4448b89f7057e33d1a9ebc
/salesman/src/main/java/com/td/qianhai/epay/oem/adapter/CommonAdapter.java
a0215c2830829991ed8c8cbdf0bba9d09bde4934
[]
no_license
gy121681/Share
aa64f67746f88d55e884e5ae48b3789422175f8f
031286dc1d2ce4ebe7fe2665ebd525d1946ad163
refs/heads/master
2021-01-15T12:02:34.908825
2017-08-08T03:01:07
2017-08-08T03:01:07
99,643,530
3
0
null
null
null
null
UTF-8
Java
false
false
1,809
java
package com.td.qianhai.epay.oem.adapter; import java.util.ArrayList; import java.util.Collections; import java.util.List; import com.td.qianhai.epay.oem.beans.PhotoBean; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; public abstract class CommonAdapter<T> extends BaseAdapter { protected LayoutInflater mInflater; protected Context mContext; protected List<T> mData; protected final int mItemLayoutId; public CommonAdapter(Context context, List<T> data, int itemLayoutId) { this.mContext = context; this.mData = data; this.mItemLayoutId = itemLayoutId; this.mInflater = LayoutInflater.from(context); } @Override public int getCount() { return mData==null? 0:mData.size(); } @Override public T getItem(int position) { return mData==null? null:mData.get(position); } @Override public long getItemId(int position) { return position; } public List<T> getmData() { // Collections.reverse(mData); return mData; } public void setmData(List<T> data) { this.mData = data; } public void remove(T item) { if(mData != null) { mData.remove(item); } } public void insert(T item, int position) { if(mData != null) { mData.add(position, item); } } @Override public View getView(int position, View convertView, ViewGroup parent) { final ViewHolder holder = getViewHodler(position, convertView, parent); conver(holder, getItem(position), position); return holder.getConvertView(); } public abstract void conver(ViewHolder holder, T item, int position); private ViewHolder getViewHodler(int position, View convertView, ViewGroup parent) { return ViewHolder.get(mContext, convertView, parent, mItemLayoutId, position); } }
[ "295306443@qq.com" ]
295306443@qq.com
800c287712ce352a94bdac43a12fb8b7e133beda
c885ef92397be9d54b87741f01557f61d3f794f3
/results/JacksonDatabind-103/com.fasterxml.jackson.databind.ser.PropertyBuilder/BBC-F0-opt-10/tests/27/com/fasterxml/jackson/databind/ser/PropertyBuilder_ESTest.java
595babe15adb0880a9cf08df8bdc96bf9f6e7ae3
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
3,702
java
/* * This file was automatically generated by EvoSuite * Sun Oct 24 05:28:31 GMT 2021 */ package com.fasterxml.jackson.databind.ser; 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.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.SerializationConfig; import com.fasterxml.jackson.databind.cfg.BaseSettings; import com.fasterxml.jackson.databind.cfg.ConfigOverrides; import com.fasterxml.jackson.databind.introspect.BasicBeanDescription; import com.fasterxml.jackson.databind.introspect.BasicClassIntrospector; import com.fasterxml.jackson.databind.introspect.ClassIntrospector; import com.fasterxml.jackson.databind.introspect.SimpleMixInResolver; import com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver; import com.fasterxml.jackson.databind.ser.PropertyBuilder; import com.fasterxml.jackson.databind.type.MapLikeType; import com.fasterxml.jackson.databind.type.TypeFactory; import com.fasterxml.jackson.databind.util.RootNameLookup; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.evosuite.runtime.ViolatedAssumptionAnswer; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) public class PropertyBuilder_ESTest extends PropertyBuilder_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { StdSubtypeResolver stdSubtypeResolver0 = new StdSubtypeResolver(); SimpleMixInResolver simpleMixInResolver0 = new SimpleMixInResolver((ClassIntrospector.MixInResolver) null); RootNameLookup rootNameLookup0 = new RootNameLookup(); ConfigOverrides configOverrides0 = new ConfigOverrides(); SerializationConfig serializationConfig0 = new SerializationConfig((BaseSettings) null, stdSubtypeResolver0, simpleMixInResolver0, rootNameLookup0, configOverrides0); BasicClassIntrospector basicClassIntrospector0 = new BasicClassIntrospector(); TypeFactory typeFactory0 = TypeFactory.defaultInstance(); Class<String> class0 = String.class; JavaType javaType0 = TypeFactory.unknownType(); MapLikeType mapLikeType0 = MapLikeType.upgradeFrom(javaType0, (JavaType) null, javaType0); MapLikeType mapLikeType1 = typeFactory0.constructMapLikeType((Class<?>) class0, javaType0, (JavaType) mapLikeType0); JsonInclude jsonInclude0 = mock(JsonInclude.class, new ViolatedAssumptionAnswer()); doReturn((JsonInclude.Include) null).when(jsonInclude0).content(); doReturn((Class) null).when(jsonInclude0).contentFilter(); doReturn((JsonInclude.Include) null).when(jsonInclude0).value(); doReturn((Class) null).when(jsonInclude0).valueFilter(); JsonInclude.Value jsonInclude_Value0 = JsonInclude.Value.from(jsonInclude0); configOverrides0.setDefaultInclusion(jsonInclude_Value0); BasicBeanDescription basicBeanDescription0 = basicClassIntrospector0.forSerialization(serializationConfig0, mapLikeType1, simpleMixInResolver0); PropertyBuilder propertyBuilder0 = null; try { propertyBuilder0 = new PropertyBuilder(serializationConfig0, basicBeanDescription0); fail("Expecting exception: NullPointerException"); } catch(NullPointerException e) { // // no message in exception (getMessage() returned null) // verifyException("com.fasterxml.jackson.databind.cfg.MapperConfig", e); } } }
[ "pderakhshanfar@serg2.ewi.tudelft.nl" ]
pderakhshanfar@serg2.ewi.tudelft.nl
06cb7583595caba3d82b7cea26d3b3347a00f71a
c474b03758be154e43758220e47b3403eb7fc1fc
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/data/match/C12918h.java
f5fb8ee74595fee2a75f21be1441791314255466
[]
no_license
EstebanDalelR/tinderAnalysis
f80fe1f43b3b9dba283b5db1781189a0dd592c24
941e2c634c40e5dbf5585c6876ef33f2a578b65c
refs/heads/master
2020-04-04T09:03:32.659099
2018-11-23T20:41:28
2018-11-23T20:41:28
155,805,042
0
0
null
2018-11-18T16:02:45
2018-11-02T02:44:34
null
UTF-8
Java
false
false
4,123
java
package com.tinder.data.match; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.tinder.data.match.C8680y.C10806g; import com.tinder.data.model.MatchModel; import com.tinder.data.model.MatchPersonModel; import com.tinder.data.model.SponsoredMatchCreativeValuesModel; /* renamed from: com.tinder.data.match.h */ final class C12918h extends C10806g { /* renamed from: a */ private final String f41421a; /* renamed from: b */ private final MatchModel f41422b; /* renamed from: c */ private final MatchPersonModel f41423c; /* renamed from: d */ private final SponsoredMatchCreativeValuesModel f41424d; C12918h(String str, MatchModel matchModel, @Nullable MatchPersonModel matchPersonModel, @Nullable SponsoredMatchCreativeValuesModel sponsoredMatchCreativeValuesModel) { if (str == null) { throw new NullPointerException("Null m_id"); } this.f41421a = str; if (matchModel == null) { throw new NullPointerException("Null M"); } this.f41422b = matchModel; this.f41423c = matchPersonModel; this.f41424d = sponsoredMatchCreativeValuesModel; } @NonNull public String m_id() { return this.f41421a; } @NonNull /* renamed from: M */ public MatchModel mo11063M() { return this.f41422b; } @Nullable /* renamed from: P */ public MatchPersonModel mo11064P() { return this.f41423c; } @Nullable public SponsoredMatchCreativeValuesModel CV() { return this.f41424d; } public String toString() { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("MatchView{m_id="); stringBuilder.append(this.f41421a); stringBuilder.append(", M="); stringBuilder.append(this.f41422b); stringBuilder.append(", P="); stringBuilder.append(this.f41423c); stringBuilder.append(", CV="); stringBuilder.append(this.f41424d); stringBuilder.append("}"); return stringBuilder.toString(); } /* JADX WARNING: inconsistent code. */ /* Code decompiled incorrectly, please refer to instructions dump. */ public boolean equals(java.lang.Object r5) { /* r4 = this; r0 = 1; if (r5 != r4) goto L_0x0004; L_0x0003: return r0; L_0x0004: r1 = r5 instanceof com.tinder.data.match.C8680y.C10806g; r2 = 0; if (r1 == 0) goto L_0x0054; L_0x0009: r5 = (com.tinder.data.match.C8680y.C10806g) r5; r1 = r4.f41421a; r3 = r5.m_id(); r1 = r1.equals(r3); if (r1 == 0) goto L_0x0052; L_0x0017: r1 = r4.f41422b; r3 = r5.mo11063M(); r1 = r1.equals(r3); if (r1 == 0) goto L_0x0052; L_0x0023: r1 = r4.f41423c; if (r1 != 0) goto L_0x002e; L_0x0027: r1 = r5.mo11064P(); if (r1 != 0) goto L_0x0052; L_0x002d: goto L_0x003a; L_0x002e: r1 = r4.f41423c; r3 = r5.mo11064P(); r1 = r1.equals(r3); if (r1 == 0) goto L_0x0052; L_0x003a: r1 = r4.f41424d; if (r1 != 0) goto L_0x0045; L_0x003e: r5 = r5.CV(); if (r5 != 0) goto L_0x0052; L_0x0044: goto L_0x0053; L_0x0045: r1 = r4.f41424d; r5 = r5.CV(); r5 = r1.equals(r5); if (r5 == 0) goto L_0x0052; L_0x0051: goto L_0x0053; L_0x0052: r0 = 0; L_0x0053: return r0; L_0x0054: return r2; */ throw new UnsupportedOperationException("Method not decompiled: com.tinder.data.match.h.equals(java.lang.Object):boolean"); } public int hashCode() { int i = 0; int hashCode = (((((this.f41421a.hashCode() ^ 1000003) * 1000003) ^ this.f41422b.hashCode()) * 1000003) ^ (this.f41423c == null ? 0 : this.f41423c.hashCode())) * 1000003; if (this.f41424d != null) { i = this.f41424d.hashCode(); } return hashCode ^ i; } }
[ "jdguzmans@hotmail.com" ]
jdguzmans@hotmail.com
a6e8e799bf918d8f07138fef443b01f8e484e3fd
065c1f648e8dd061a20147ff9c0dbb6b5bc8b9be
/checkstyle_cluster/12752/src_4.java
40f07bcb394b47a64980f8568b2c83d3db4a3799
[]
no_license
martinezmatias/GenPat-data-C3
63cfe27efee2946831139747e6c20cf952f1d6f6
b360265a6aa3bb21bd1d64f1fc43c3b37d0da2a4
refs/heads/master
2022-04-25T17:59:03.905613
2020-04-15T14:41:34
2020-04-15T14:41:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,987
java
//////////////////////////////////////////////////////////////////////////////// // checkstyle: Checks Java source code for adherence to a set of rules. // Copyright (C) 2001-2015 the original author or authors. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //////////////////////////////////////////////////////////////////////////////// package com.puppycrawl.tools.checkstyle.checks.coding; import static com.puppycrawl.tools.checkstyle.checks.coding.MultipleStringLiteralsCheck.MSG_KEY; import static org.junit.Assert.fail; import java.io.File; import org.junit.Assert; import org.junit.Test; import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport; import com.puppycrawl.tools.checkstyle.DefaultConfiguration; public class MultipleStringLiteralsCheckTest extends BaseCheckTestSupport { @Test public void testIt() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MultipleStringLiteralsCheck.class); checkConfig.addAttribute("allowedDuplicates", "2"); checkConfig.addAttribute("ignoreStringsRegexp", ""); final String[] expected = { "5:16: " + getCheckMessage(MSG_KEY, "\"StringContents\"", 3), "8:17: " + getCheckMessage(MSG_KEY, "\"\"", 4), "10:23: " + getCheckMessage(MSG_KEY, "\", \"", 3), }; verify(checkConfig, getPath("coding" + File.separator + "InputMultipleStringLiterals.java"), expected); } @Test public void testItIgnoreEmpty() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MultipleStringLiteralsCheck.class); checkConfig.addAttribute("allowedDuplicates", "2"); final String[] expected = { "5:16: " + getCheckMessage(MSG_KEY, "\"StringContents\"", 3), "10:23: " + getCheckMessage(MSG_KEY, "\", \"", 3), }; verify(checkConfig, getPath("coding" + File.separator + "InputMultipleStringLiterals.java"), expected); } @Test public void testItIgnoreEmptyAndComspace() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MultipleStringLiteralsCheck.class); checkConfig.addAttribute("allowedDuplicates", "2"); checkConfig.addAttribute("ignoreStringsRegexp", "^((\"\")|(\", \"))$"); final String[] expected = { "5:16: " + getCheckMessage(MSG_KEY, "\"StringContents\"", 3), }; verify(checkConfig, getPath("coding" + File.separator + "InputMultipleStringLiterals.java"), expected); } @Test public void testItWithoutIgnoringAnnotations() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MultipleStringLiteralsCheck.class); checkConfig.addAttribute("allowedDuplicates", "3"); checkConfig.addAttribute("ignoreOccurrenceContext", ""); final String[] expected = { "19:23: " + getCheckMessage(MSG_KEY, "\"unchecked\"", 4), }; verify(checkConfig, getPath("coding" + File.separator + "InputMultipleStringLiterals.java"), expected); } @Test public void testTokensNotNull() { MultipleStringLiteralsCheck check = new MultipleStringLiteralsCheck(); Assert.assertNotNull(check.getAcceptableTokens()); Assert.assertNotNull(check.getDefaultTokens()); Assert.assertNotNull(check.getRequiredTokens()); } @Test public void testDefaultConfiguration() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(MultipleStringLiteralsCheck.class); final String[] expected = { "5:16: " + getCheckMessage(MSG_KEY, "\"StringContents\"", 3), "7:17: " + getCheckMessage(MSG_KEY, "\"DoubleString\"", 2), "10:23: " + getCheckMessage(MSG_KEY, "\", \"", 3), }; try { createChecker(checkConfig); verify(checkConfig, getPath("coding" + File.separator + "InputMultipleStringLiterals.java"), expected); } catch (Exception ex) { // Exception is not expected fail(); } } }
[ "375833274@qq.com" ]
375833274@qq.com
8cd4c1f2fe63a049781b5475ba786de1393c0769
0b666255a6945aa84281e5f64f6ccaab45c4ca13
/cmsv2.0.0/src/com/app/cms/manager/main/ContentCheckMng.java
e4e027136c2c2b293c0f60f654c59b246a05999d
[]
no_license
zhangygit/cmsv2.0.0
a8cdc77ceb99b50bdf5b8ac7c99244c3ecc7e43a
d54ae6bc9855860c7d447629d31d22e2c9417d31
refs/heads/master
2021-01-17T21:28:52.841407
2014-08-25T02:13:00
2014-08-25T02:13:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
376
java
package com.app.cms.manager.main; import com.app.cms.entity.main.Content; import com.app.cms.entity.main.ContentCheck; /** * 内容审核Manager接口 * * '内容'数据存在,则'内容审核'数据必须存在。 */ public interface ContentCheckMng { public ContentCheck save(ContentCheck check, Content content); public ContentCheck update(ContentCheck bean); }
[ "17909328@163.com" ]
17909328@163.com
a0267dd485db55a1d3fa1a4a5a2b421e520f9926
3ddc83a924e630923d0af773ce95dc2d35b4069c
/src/main/java/org/antstudio/Animal.java
6706665efad26ba04c0d9aa1dd0c8484bb19e064
[]
no_license
gavincook/proxy
ef5986a8d9f78f5bd4276877e4ea7bd9e822e6b1
f59846886a79c72d9ee7ffb362d549004de57979
refs/heads/master
2021-01-01T18:11:22.259274
2014-07-27T12:03:08
2014-07-27T12:03:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
141
java
package org.antstudio; /** * Created by Tang on 14-7-27. */ public interface Animal { public void eat(); public void sleep(); }
[ "swbyzx@gmail.com" ]
swbyzx@gmail.com
4cc483be9299cd8d7b4d3eb248a357d53208bbb9
e82c1473b49df5114f0332c14781d677f88f363f
/MED-CLOUD/med-core/src/main/java/nta/med/core/domain/ocs/Ocs0118.java
a689ff42ae7f46f295ab30431cfa6e9230fcbaf4
[]
no_license
zhiji6/mih
fa1d2279388976c901dc90762bc0b5c30a2325fc
2714d15853162a492db7ea8b953d5b863c3a8000
refs/heads/master
2023-08-16T18:35:19.836018
2017-12-28T09:33:19
2017-12-28T09:33:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,362
java
package nta.med.core.domain.ocs; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.NamedQuery; import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; import nta.med.core.domain.BaseEntity; /** * The persistent class for the OCS0118 database table. * */ @Entity @Table(name= "OCS0118") public class Ocs0118 extends BaseEntity { private static final long serialVersionUID = 1L; private String convClass; private String convGubun; private String convHangmog; private Date endDate; private String fullConvHangmog; private String fullHangmogCode; private String hangmogCode; private String hospCode; private String remark; private Date startDate; private Date sysDate; private String sysId; private Date updDate; private String updId; public Ocs0118() { } @Column(name="CONV_CLASS") public String getConvClass() { return this.convClass; } public void setConvClass(String convClass) { this.convClass = convClass; } @Column(name="CONV_GUBUN") public String getConvGubun() { return this.convGubun; } public void setConvGubun(String convGubun) { this.convGubun = convGubun; } @Column(name="CONV_HANGMOG") public String getConvHangmog() { return this.convHangmog; } public void setConvHangmog(String convHangmog) { this.convHangmog = convHangmog; } @Temporal(TemporalType.TIMESTAMP) @Column(name="END_DATE") public Date getEndDate() { return this.endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } @Column(name="FULL_CONV_HANGMOG") public String getFullConvHangmog() { return this.fullConvHangmog; } public void setFullConvHangmog(String fullConvHangmog) { this.fullConvHangmog = fullConvHangmog; } @Column(name="FULL_HANGMOG_CODE") public String getFullHangmogCode() { return this.fullHangmogCode; } public void setFullHangmogCode(String fullHangmogCode) { this.fullHangmogCode = fullHangmogCode; } @Column(name="HANGMOG_CODE") public String getHangmogCode() { return this.hangmogCode; } public void setHangmogCode(String hangmogCode) { this.hangmogCode = hangmogCode; } @Column(name="HOSP_CODE") public String getHospCode() { return this.hospCode; } public void setHospCode(String hospCode) { this.hospCode = hospCode; } public String getRemark() { return this.remark; } public void setRemark(String remark) { this.remark = remark; } @Temporal(TemporalType.TIMESTAMP) @Column(name="START_DATE") public Date getStartDate() { return this.startDate; } public void setStartDate(Date startDate) { this.startDate = startDate; } @Temporal(TemporalType.TIMESTAMP) @Column(name="SYS_DATE") public Date getSysDate() { return this.sysDate; } public void setSysDate(Date sysDate) { this.sysDate = sysDate; } @Column(name="SYS_ID") public String getSysId() { return this.sysId; } public void setSysId(String sysId) { this.sysId = sysId; } @Temporal(TemporalType.TIMESTAMP) @Column(name="UPD_DATE") public Date getUpdDate() { return this.updDate; } public void setUpdDate(Date updDate) { this.updDate = updDate; } @Column(name="UPD_ID") public String getUpdId() { return this.updId; } public void setUpdId(String updId) { this.updId = updId; } }
[ "duc_nt@nittsusystem-vn.com" ]
duc_nt@nittsusystem-vn.com
d6acf8e12fa266a4f251da532bdf2095a24a2e5d
f7c5e3f5834206a7b0d1dadd773d1de032f731e7
/dmerce3/src/webclient/com/wanci/dmerce/taglib/form/FormFieldEmptyTag.java
1844bb13b7d8b3a21a0a9b801e31f622f6cbe980
[]
no_license
rbe/dmerce
93d601462c50dfbbf62b577803ae697d3abde333
3cfcae894c165189cc3ff61e27ca284f09e87871
refs/heads/master
2021-01-01T17:06:27.872197
2012-05-04T07:22:26
2012-05-04T07:22:26
null
0
0
null
null
null
null
ISO-8859-3
Java
false
false
2,273
java
package com.wanci.dmerce.taglib.form; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspTagException; import javax.servlet.jsp.tagext.BodyTagSupport; import com.wanci.dmerce.exceptions.FieldNotFoundException; /** * Das Tag FormFieldEmptyTag wertet den Body nur aus, wenn der Wert des FormFields nicht null ist. * @author mf * */ public class FormFieldEmptyTag extends BodyTagSupport { private String name = null; private boolean isInverted; private boolean evalbody; /** * TAG: doStartTag-Method * @return int tag-key */ public int doStartTag() throws JspTagException { FormTag form; form = (FormTag) findAncestorWithClass(this, com.wanci.dmerce.taglib.form.FormTag.class); FormField f; try { f = form.getField(name); } catch (FieldNotFoundException e) { String message = e.getMessage(); String jspPath = ((HttpServletRequest) pageContext.getRequest()).getRequestURI(); message += "<br/>Bitte überprüfen Sie in der JSP " + jspPath + " die &lt;qform:text &gt;-Tags."; JspTagException jspe = new JspTagException(message); jspe.setStackTrace(e.getStackTrace()); throw jspe; } System.out.println("FormFieldEmptyTag: isInverted="+isInverted+", value="+f.getValue()); if ((!isInverted && f.getValue().equals("")) | (isInverted && !f.getValue().equals(""))) { evalbody = true; return EVAL_BODY_BUFFERED; } else { evalbody = false; return SKIP_BODY; } } /** * Holt sich die "field" Elemente und erzeugt nach Prüfung ein * "<input type="text"...>" Tag mit den Werten. * @return int tag-key */ public int doEndTag() throws JspException { if (evalbody) { String body = getBodyContent().getString(); System.out.println("Body is : "+body); if (body != null) { try { pageContext.getOut().print(body); } catch (IOException e) { throw new JspException(e); } } } return EVAL_PAGE; } /** * TAGLIB: setter for name * @param name */ public void setName(String name) { this.name = name; } public void setInverted(boolean value) { this.isInverted = value; } }
[ "ralf@art-of-coding.eu" ]
ralf@art-of-coding.eu
8f9357e8eb7a8aa806dce23c92a6433ca8a4050c
6839e7abfa2e354becd034ea46f14db3cbcc7488
/src/cn/com/sinosoft/service/impl/LotteryActServiceImpl.java
85293878e5d30fc81d824c9bf0d1a38cc7ca4553
[]
no_license
trigrass2/wj
aa2d310baa876f9e32a65238bcd36e7a2440b8c6
0d4da9d033c6fa2edb014e3a80715c9751a93cd5
refs/heads/master
2021-04-19T11:03:25.609807
2018-01-12T09:26:11
2018-01-12T09:26:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,331
java
package cn.com.sinosoft.service.impl; import java.util.ArrayList; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import cn.com.sinosoft.bean.QueryBuilder; import cn.com.sinosoft.dao.LotteryActDao; import cn.com.sinosoft.entity.LotteryAct; import cn.com.sinosoft.service.LotteryActService; /** * Service实现类 - 活动实现 * ============================================================================ * * * * KEY:SINOSOFT5CCDCA53AF8463D621530B1ADA0CE130 * ============================================================================ */ @Service public class LotteryActServiceImpl extends BaseServiceImpl<LotteryAct, String> implements LotteryActService { @Resource private LotteryActDao lotteryActDao; @Resource public void setBaseDao(LotteryActDao lotteryActDao) { super.setBaseDao(lotteryActDao); } @Override public List<LotteryAct> getListByCondition(String actCode,String type,String awards,String recordType) { List<QueryBuilder> qbs = new ArrayList<QueryBuilder>(); qbs.add(createQB("actCode","=",actCode)); qbs.add(createQB("type","=",type)); qbs.add(createQB("awards","=",awards)); qbs.add(createQB("recordType","=",recordType)); List<LotteryAct> pcs = lotteryActDao.findByQBs(qbs, "id", "desc"); return pcs; } private QueryBuilder createQB(String property,String sign,String value){ QueryBuilder qb = new QueryBuilder(); qb.setProperty(property); qb.setSign(sign); qb.setValue(value); return qb; } @Override public List<LotteryAct> getListByMemberId(String memberId, String recordType,String useType,String actCode) { List<QueryBuilder> qbs = new ArrayList<QueryBuilder>(); qbs.add(createQB("memberId","=",memberId)); qbs.add(createQB("recordType","=",recordType)); qbs.add(createQB("useType","=",useType)); qbs.add(createQB("actCode","=",actCode)); List<LotteryAct> pcs = lotteryActDao.findByQBs(qbs, "id", "desc"); return pcs; } @Override public List<LotteryAct> getListByWin(String recordType, String type, String actCode) { List<QueryBuilder> qbs = new ArrayList<QueryBuilder>(); qbs.add(createQB("recordType","=",recordType)); qbs.add(createQB("type","=",type)); qbs.add(createQB("actCode","=",actCode)); List<LotteryAct> pcs = lotteryActDao.findByQBs(qbs, "id", "desc"); return pcs; } @Override public List<LotteryAct> getListByAllUse(String recordType, String useType, String actCode) { List<QueryBuilder> qbs = new ArrayList<QueryBuilder>(); qbs.add(createQB("recordType","=",recordType)); qbs.add(createQB("useType","=",useType)); qbs.add(createQB("actCode","=",actCode)); List<LotteryAct> pcs = lotteryActDao.findByQBs(qbs, "id", "desc"); return pcs; } @Override public List<LotteryAct> getListByAllActCode(String actCode) { List<QueryBuilder> qbs = new ArrayList<QueryBuilder>(); qbs.add(createQB("actCode","=",actCode)); List<LotteryAct> pcs = lotteryActDao.findByQBs(qbs, "id", "desc"); return pcs; } @Override public List<LotteryAct> getListByWin(String recordType, String type) { List<QueryBuilder> qbs = new ArrayList<QueryBuilder>(); qbs.add(createQB("recordType","=",recordType)); qbs.add(createQB("type","=",type)); List<LotteryAct> pcs = lotteryActDao.findByQBs(qbs, "id", "desc"); return pcs; } }
[ "liyinfeng0520@163.com" ]
liyinfeng0520@163.com
7e950da29c51020ec619fcc4eac2e7bf01b217a4
302af4aa0bf08a66dde5fa95bc6e8992e4505c7d
/com.gumtree.android.beta/java/com/adjust/sdk/OnEventTrackingFailedListener.java
1b29a118b98ec8ec78db133a6053f0d2ffe11342
[]
no_license
hakat0m/Chessboxing
0f5ce696a55a5b40f1d8fa226bbdc5673ef5dbc5
0a576dec5aaafa219c340a013726037d852b91a2
refs/heads/master
2021-01-19T08:51:23.932830
2017-04-09T06:48:44
2017-04-09T06:48:44
87,688,753
3
0
null
null
null
null
UTF-8
Java
false
false
155
java
package com.adjust.sdk; public interface OnEventTrackingFailedListener { void onFinishedEventTrackingFailed(AdjustEventFailure adjustEventFailure); }
[ "vuesz@outlook.com" ]
vuesz@outlook.com
f680384d7e1e9ea9e1552c34db58856041e0411e
85720de1b78e09c53d0b113e08d91e30b2ce0f0f
/TimeManager/src/com/paySystem/ic/bean/base/Bail.java
31f755a7416085ba3ca0345d21bd0629ff7fe9ca
[]
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,630
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; import javax.persistence.Temporal; import javax.persistence.TemporalType; /*** * * @ClassName:Bail * @Description:保证金表 * @date: 2014-5-14下午02:21:33 * @author: 井建国 * @version: V1.0 */ @Entity @Table(name = "B_BAIL") public class Bail implements Serializable{ /** * */ private static final long serialVersionUID = -1781073735536614648L; /***保证金编号**/ private Integer bailId; /**加油站编号***/ private String merOrgId; /**保证金***/ private BigDecimal bailAmt; /**购油比率**/ private BigDecimal buyOilRate; /**平台炼油厂编号**/ private Integer orgOilId; /**合同编号**/ private String contractNo; /**交保时间**/ private Date payTime; /**合作时间**/ private Date coopTime; /**更新时间**/ private Date updateTime; /**合作状态**/ private Integer coopStatus; /**交保单位级别**/ private Integer typeSign; /**交保描述**/ private String descr; @Id @GeneratedValue(strategy = GenerationType.IDENTITY ) @Column public Integer getBailId() { return bailId; } public void setBailId(Integer bailId) { this.bailId = bailId; } @Column(length = 15) public String getMerOrgId() { return merOrgId; } public void setMerOrgId(String merOrgId) { this.merOrgId = merOrgId; } @Column(columnDefinition = "DECIMAL(15,2)") public BigDecimal getBailAmt() { return bailAmt; } public void setBailAmt(BigDecimal bailAmt) { this.bailAmt = bailAmt; } @Column(columnDefinition = "DECIMAL(6,4)") public BigDecimal getBuyOilRate() { return buyOilRate; } public void setBuyOilRate(BigDecimal buyOilRate) { this.buyOilRate = buyOilRate; } @Column(length = 8 ) public Integer getOrgOilId() { return orgOilId; } public void setOrgOilId(Integer orgOilId) { this.orgOilId = orgOilId; } @Column(length = 30) public String getContractNo() { return contractNo; } public void setContractNo(String contractNo) { this.contractNo = contractNo; } @Temporal(TemporalType.TIMESTAMP) @Column public Date getPayTime() { return payTime; } public void setPayTime(Date payTime) { this.payTime = payTime; } @Temporal(TemporalType.TIMESTAMP) @Column public Date getCoopTime() { return coopTime; } public void setCoopTime(Date coopTime) { this.coopTime = coopTime; } @Temporal(TemporalType.TIMESTAMP) @Column public Date getUpdateTime() { return updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } @Column(columnDefinition = "char(1)") public Integer getCoopStatus() { return coopStatus; } public void setCoopStatus(Integer coopStatus) { this.coopStatus = coopStatus; } @Column(columnDefinition = "char(1)") public Integer getTypeSign() { return typeSign; } public void setTypeSign(Integer typeSign) { this.typeSign = typeSign; } @Column(length = 255) public String getDescr() { return descr; } public void setDescr(String descr) { this.descr = descr; } }
[ "994028591@qq.com" ]
994028591@qq.com
f3a4c4bbe338145cae3c5f18b90536813d67216d
c897b075a1890c38100cf0e5726b8998b672a8ab
/SimpleFormControllerMVC/src/com/mvc/model/Book.java
8fe5279b641842da7bd9826857bb4f69b11fa1fc
[]
no_license
hemantjava/Spring_Framework_2016
91e173e8703c24a3a22c6bd1635eec2f920654e9
c440c9d0eadfc729dd7871c5dc816d7b207021c8
refs/heads/master
2023-07-18T00:23:49.763328
2021-08-13T06:37:55
2021-08-13T06:37:55
395,531,898
0
0
null
null
null
null
UTF-8
Java
false
false
929
java
package com.mvc.model; import java.math.BigDecimal; public class Book { private Long bookId; private String bookName; private BigDecimal price; //ava.math.*; package private Publisher publisher; public Long getBookId() { return bookId; } public Book() { } public Book(Long bookId, String bookName, BigDecimal price, Publisher publisher) { super(); this.bookId = bookId; this.bookName = bookName; this.price = price; this.publisher = publisher; } public void setBookId(Long bookId) { this.bookId = bookId; } public String getBookName() { return bookName; } public void setBookName(String bookName) { this.bookName = bookName; } public BigDecimal getPrice() { return price; } public void setPrice(BigDecimal price) { this.price = price; } public Publisher getPublisher() { return publisher; } public void setPublisher(Publisher publisher) { this.publisher = publisher; } }
[ "hemantjava90@gmail.com" ]
hemantjava90@gmail.com
d18a635acf681d8c8ab6c628fd5c4a5cf1f96409
c5936f41296a5ef823ef062abd5fd666db2082e2
/cloud-consumer-feign-hystrix-order80/src/main/java/com/freshbin/springcloud/OrderHystrixMain80.java
924946e4fa57b73770b532e736108520bf50c931
[]
no_license
freshbin/cloud2020
53384adba87f8e2e9d73b2502c75018403da5f74
c2a3bcd9a5a1ff7e92dae450852a1dc3a7d89abf
refs/heads/master
2022-06-25T16:27:39.359403
2020-04-10T08:17:35
2020-04-10T08:17:35
253,477,821
1
0
null
2022-06-21T03:09:19
2020-04-06T11:31:43
Java
UTF-8
Java
false
false
546
java
package com.freshbin.springcloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.hystrix.EnableHystrix; import org.springframework.cloud.openfeign.EnableFeignClients; /** * @auther zzyy * @create 2020-02-20 11:55 */ @SpringBootApplication @EnableFeignClients @EnableHystrix public class OrderHystrixMain80 { public static void main(String[] args) { SpringApplication.run(OrderHystrixMain80.class,args); } }
[ "343625573@qq.com" ]
343625573@qq.com
c5307795329d98b4696a664cfecb81a9ea0a34b2
e1ed5f410bba8c05310b6a7dabe65b7ef62a9322
/src/main/java/com/sda/javabyd3/mabr/zadania008/WwwValidator.java
2814b7cab499a018e9b30d02afbf8453a2af9b1d
[]
no_license
pmkiedrowicz/javabyd3
252f70e70f0fc71e8ef9019fdd8cea5bd05ca90b
7ff8e93c041f27383b3ad31b43f014c059ef53e3
refs/heads/master
2022-01-01T08:56:08.747392
2019-07-26T19:02:50
2019-07-26T19:02:50
199,065,478
0
0
null
null
null
null
UTF-8
Java
false
false
203
java
package com.sda.javabyd3.mabr.zadania008; public class WwwValidator { public boolean validate(String www) { String regex = "(www.)[a-z]+.[a-z]+"; return www.matches(regex); } }
[ "pmkiedrowicz@gmail.com" ]
pmkiedrowicz@gmail.com
a417bb284ea3a51d9c7cd133c5bbbff20b528496
10eec5ba9e6dc59478cdc0d7522ff7fc6c94cd94
/maind/src/main/java/com/vvt/networkinfo/DataConnectionType.java
47104d249599209230fe17295b0921f5925e769c
[]
no_license
EchoAGI/Flexispy.re
a2f5fec409db083ee3fe0d664dc2cca7f9a4f234
ba65a5b8b033b92c5867759f2727c5141b7e92fc
refs/heads/master
2023-04-26T02:52:18.732433
2018-07-16T07:46:56
2018-07-16T07:46:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,150
java
package com.vvt.networkinfo; import java.util.HashMap; import java.util.Map; public enum DataConnectionType { private static final Map a; private final int number; static { int i = 2; int j = 1; int k = 0; Object localObject1 = new com/vvt/networkinfo/DataConnectionType; ((DataConnectionType)localObject1).<init>("WIFI", 0, 0); WIFI = (DataConnectionType)localObject1; localObject1 = new com/vvt/networkinfo/DataConnectionType; ((DataConnectionType)localObject1).<init>("MOBILE_DATA", j, j); MOBILE_DATA = (DataConnectionType)localObject1; localObject1 = new com/vvt/networkinfo/DataConnectionType; ((DataConnectionType)localObject1).<init>("NONE", i, i); NONE = (DataConnectionType)localObject1; int m = 3; localObject1 = new DataConnectionType[m]; DataConnectionType localDataConnectionType = WIFI; localObject1[0] = localDataConnectionType; localDataConnectionType = MOBILE_DATA; localObject1[j] = localDataConnectionType; localDataConnectionType = NONE; localObject1[i] = localDataConnectionType; b = (DataConnectionType[])localObject1; localObject1 = new java/util/HashMap; ((HashMap)localObject1).<init>(); a = (Map)localObject1; localObject1 = values(); int n = localObject1.length; while (k < n) { Object localObject2 = localObject1[k]; Map localMap = a; int i1 = ((DataConnectionType)localObject2).number; Integer localInteger = Integer.valueOf(i1); localMap.put(localInteger, localObject2); k += 1; } } private DataConnectionType(int paramInt1) { this.number = paramInt1; } public static DataConnectionType forValue(int paramInt) { Map localMap = a; Integer localInteger = Integer.valueOf(paramInt); return (DataConnectionType)localMap.get(localInteger); } public int getNumber() { return this.number; } } /* Location: /Volumes/D1/codebase/android/POC/assets/product/maind/classes-enjarify.jar!/com/vvt/networkinfo/DataConnectionType.class * Java compiler version: 5 (49.0) * JD-Core Version: 0.7.1 */
[ "52388483@qq.com" ]
52388483@qq.com
dc7acebb29364919fa9ca502c62a351ca213f413
ba3c46da825758dfe85792ce0c66038e6c71ec4a
/vole-common/src/main/java/com/github/vole/common/constants/SecurityConstants.java
0b4f163aed2b0703e5dbd0fcf90e63084bd7bf4b
[ "Apache-2.0" ]
permissive
ScottGlenn2/vole
0d3f2692480074d117bd1c321979def096b9342e
30a1124fa0b3526a9d938c020344b964c256e208
refs/heads/master
2021-05-17T11:36:47.119134
2020-05-04T05:17:11
2020-05-04T05:17:11
250,758,653
0
0
null
2020-03-28T09:42:01
2020-03-28T09:42:01
null
UTF-8
Java
false
false
2,560
java
package com.github.vole.common.constants; public interface SecurityConstants { /** * 用户信息头 */ String USER_HEADER = "x-member-header"; /** * 角色信息头 */ String ROLE_HEADER = "x-role-header"; /** * 项目的license */ String Vole_LICENSE = "made by vole"; /** * 基础角色 */ String BASE_ROLE = "ROLE_USER"; /** * oauth cookie */ String OAUTH_TOKEN_URL = "/oauth/cookie"; /** * 手机登录URL */ String MOBILE_TOKEN_URL = "/mobile/cookie"; /** * 默认的处理验证码的url前缀 */ String DEFAULT_VALIDATE_CODE_URL_PREFIX = "/code"; /** * 手机号的处理验证码的url前缀 */ String MOBILE_VALIDATE_CODE_URL_PREFIX = "/smsCode"; /** * 默认生成图形验证码宽度 */ String DEFAULT_IMAGE_WIDTH = "100"; /** * 默认生成图像验证码高度 */ String DEFAULT_IMAGE_HEIGHT = "40"; /** * 默认生成图形验证码长度 */ String DEFAULT_IMAGE_LENGTH = "4"; /** * 默认生成图形验证码过期时间 */ int DEFAULT_IMAGE_EXPIRE = 60; /** * 边框颜色,合法值: r,g,b (and optional alpha) 或者 white,black,blue. */ String DEFAULT_COLOR_FONT = "black"; /** * 图片边框 */ String DEFAULT_IMAGE_BORDER = "no"; /** * 默认图片间隔 */ String DEFAULT_CHAR_SPACE = "5"; /** * 默认保存code的前缀 */ String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY"; /** * 验证码文字大小 */ String DEFAULT_IMAGE_FONT_SIZE = "30"; /** * cookie-uservo */ String TOKEN_USER_DETAIL = "cookie-member-detail"; /** * oauth_client_details 表的字段,不包括client_id、client_secret */ String CLIENT_FIELDS = "client_id, client_secret, resource_ids, scope, " + "authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, " + "refresh_token_validity, additional_information, autoapprove"; /** *JdbcClientDetailsService 查询语句 */ String BASE_FIND_STATEMENT = "select " + CLIENT_FIELDS + " from oauth_client_details"; /** * 默认的查询语句 */ String DEFAULT_FIND_STATEMENT = BASE_FIND_STATEMENT + " order by client_id"; /** * 按条件client_id 查询 */ String DEFAULT_SELECT_STATEMENT = BASE_FIND_STATEMENT + " where client_id = ?"; }
[ "61444803@qq.com" ]
61444803@qq.com
1a64219405c9794641753f818711ad7809f4b947
cd73733881f28e2cd5f1741fbe2d32dafc00f147
/libs/base/src/main/java/com/hjhq/teamface/basis/bean/ViewDataAuthBean.java
f714f218b0fc7a394f610e8fab7149a0781421ab
[]
no_license
XiaoJon/20180914
45cfac9f7068ad85dee26e570acd2900796cbcb1
6c0759d8abd898f1f5dba77eee45cbc3d218b2e0
refs/heads/master
2020-03-28T16:48:36.275700
2018-09-14T04:10:27
2018-09-14T04:10:27
148,730,363
0
1
null
null
null
null
UTF-8
Java
false
false
1,203
java
package com.hjhq.teamface.basis.bean; /** * 小助手信息 */ public class ViewDataAuthBean extends BaseBean { /** * data : {"del_status":"0","moduleId":2,"readAuth":0} */ private DataBean data; public DataBean getData() { return data; } public void setData(DataBean data) { this.data = data; } public static class DataBean { /** * del_status : 0 * moduleId : 2 * readAuth : 0 */ //1已删除,0存在 private String del_status; private String moduleId; //0有权限,1无权限 private String readAuth; public String getDel_status() { return del_status; } public void setDel_status(String del_status) { this.del_status = del_status; } public String getModuleId() { return moduleId; } public void setModuleId(String moduleId) { this.moduleId = moduleId; } public String getReadAuth() { return readAuth; } public void setReadAuth(String readAuth) { this.readAuth = readAuth; } } }
[ "xiaojun6909@gmail.com" ]
xiaojun6909@gmail.com
579cf45efb96d0887bb81339d35de9f4cd96803e
a858f5380a269f96f8d7f0933ce00f49090ff8ae
/ipmi-protocol/src/test/java/org/anarres/ipmi/protocol/packet/ipmi/payload/RmcpPacketIpmiOpenSessionRequestTest.java
f6d330bdf892a76171622f930082f940045d4aff
[ "Apache-2.0" ]
permissive
xtwxy/ipmi4j
c9b95293cf07f992b6e7970cb3b42cb1e1a6f6b9
a860ab515a47a70ee379008a503c9c07e9662348
refs/heads/master
2021-01-22T22:34:37.850996
2017-04-24T02:52:50
2017-04-24T02:52:50
85,554,167
0
0
null
2017-03-20T08:48:28
2017-03-20T08:48:28
null
UTF-8
Java
false
false
3,393
java
package org.anarres.ipmi.protocol.packet.ipmi.payload; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import org.anarres.ipmi.protocol.client.session.IpmiPacketContext; import org.anarres.ipmi.protocol.client.session.IpmiSession; import org.anarres.ipmi.protocol.client.session.IpmiSessionManager; import org.anarres.ipmi.protocol.packet.ipmi.Ipmi20SessionWrapper; import org.anarres.ipmi.protocol.packet.ipmi.security.IpmiAuthenticationAlgorithm; import org.anarres.ipmi.protocol.packet.ipmi.security.IpmiConfidentialityAlgorithm; import org.anarres.ipmi.protocol.packet.ipmi.security.IpmiIntegrityAlgorithm; import org.anarres.ipmi.protocol.packet.rmcp.RmcpMessageClass; import org.anarres.ipmi.protocol.packet.rmcp.RmcpMessageRole; import org.anarres.ipmi.protocol.packet.rmcp.RmcpPacket; import org.junit.After; import org.junit.Before; import org.junit.Test; public class RmcpPacketIpmiOpenSessionRequestTest { private static final String host = "192.168.0.69"; private static final int port = 8007; private static final int WIRE_LENGTH = 48; private static final byte[] byteSequence = { 0x06, 0x00, 0x00, 0x07, 0x06, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00 }; private IpmiPacketContext context; @Before public void setUp() throws Exception { context = new IpmiSessionManager(); } @After public void tearDown() throws Exception { } @Test public void testMarshal() throws Exception { RmcpPacket packet = new RmcpPacket(); packet.withSequenceNumber((byte)0); packet.withRemoteAddress(new InetSocketAddress(host, port)); Ipmi20SessionWrapper data = new Ipmi20SessionWrapper(); IpmiSession session = new IpmiSession(0); session.setAuthenticationAlgorithm(IpmiAuthenticationAlgorithm.RAKP_NONE); session.setConfidentialityAlgorithm(IpmiConfidentialityAlgorithm.NONE); session.setIntegrityAlgorithm(IpmiIntegrityAlgorithm.NONE); data.setIpmiPayload( new IpmiOpenSessionRequest( session, RequestedMaximumPrivilegeLevel.ADMINISTRATOR ) ); data.setIpmiSessionId(0); data.setIpmiSessionSequenceNumber(0); data.setEncrypted(false); packet.withData(data); final int wireLength = packet.getWireLength(context); assertEquals(WIRE_LENGTH, wireLength); ByteBuffer buf = ByteBuffer.allocate(wireLength); packet.toWire(context, buf); buf.flip(); assertArrayEquals(byteSequence, buf.array()); } @Test public void testUnmarshal() { RmcpPacket packet = new RmcpPacket(); ByteBuffer buf = ByteBuffer.allocate(WIRE_LENGTH); buf.put(byteSequence); buf.flip(); packet.fromWire(context, buf); assertEquals(0, packet.getSequenceNumber()); assertEquals(RmcpMessageClass.IPMI, packet.getMessageClass()); assertEquals(RmcpMessageRole.REQ, packet.getMessageRole()); assertEquals(IpmiPayloadType.RMCPOpenSessionRequest, ((Ipmi20SessionWrapper)(packet.getData())).getIpmiPayload().getPayloadType()); } }
[ "xtwxy@hotmail.com" ]
xtwxy@hotmail.com
43967e600ef9641ec0dac0d80fddad48ee853701
8435787e0d819ff20bb84486facb03be28118696
/src/main/java/br/com/touros/punterbot/api/scrapper/estatisticas/gol/periodo/PrimeiroTempoGolsEstatistica.java
a5b9de2fcc66bdbf23f1e44fc0b4eccef9b6af55
[]
no_license
romeubessadev/api-punterbot
ee43e524b5ac2052c84a13f1a2881457be3d1fcb
7629df45553d5992170c900f16846a2e4d6c2a70
refs/heads/master
2023-03-17T05:37:28.031912
2021-03-09T20:38:16
2021-03-09T20:38:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
551
java
package br.com.touros.punterbot.api.scrapper.estatisticas.gol.periodo; import br.com.touros.punterbot.api.scrapper.estatisticas.interfaces.gol.IGolEstatistica; public class PrimeiroTempoGolsEstatistica implements IGolEstatistica { @Override public Integer minutoMaximo() { return 45; } @Override public Integer minutoMinimo() { return 0; } @Override public String nome() { return "Gols Média 1 Tempo"; } @Override public String chave() { return "GOL_1_TEMPO"; } }
[ "=" ]
=
a4a4be6f34e01a174138c541ea9c374899ebc9d5
da0ef5e631392b3a706b6ca82debe0b81a80fcbb
/app/src/main/java/com/hivee2/widget/pullableview/PullableGridView.java
04de96211181e0a2cc8f0903a86893997f921766
[]
no_license
shanghaif/Hive2
069a275276a9e82defc26844fb10017b096e52db
1556286481a5dffe8bc80b905ef7762e0f6f0655
refs/heads/master
2022-01-05T10:47:45.273086
2019-04-26T09:25:36
2019-04-26T09:25:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,241
java
package com.hivee2.widget.pullableview; import android.content.Context; import android.util.AttributeSet; import android.widget.GridView; public class PullableGridView extends GridView implements Pullable { public PullableGridView(Context context) { super(context); } public PullableGridView(Context context, AttributeSet attrs) { super(context, attrs); } public PullableGridView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public boolean canPullDown() { if (getCount() == 0) { // 没有item的时候也可以下拉刷新 return true; } else if (getFirstVisiblePosition() == 0 && getChildAt(0).getTop() >= 0) { // 滑到顶部了 return true; } else return false; } @Override public boolean canPullUp() { if (getCount() == 0) { // 没有item的时候也可以上拉加载 return true; } else if (getLastVisiblePosition() == (getCount() - 1)) { // 滑到底部了 if (getChildAt(getLastVisiblePosition() - getFirstVisiblePosition()) != null && getChildAt( getLastVisiblePosition() - getFirstVisiblePosition()).getBottom() <= getMeasuredHeight()) return true; } return false; } }
[ "1312667058@qq.com" ]
1312667058@qq.com
00beb19b0d6856ad9df43027edf18912f08d093e
df72e56f61b1e6f68e57960e0f4ed52c2b27238f
/code/com/jivesoftware/os/tasmo/tasmo-reference-lib/src/main/java/com/jivesoftware/os/tasmo/reference/lib/B_IdsStreamer.java
e1c3c253d5431a6f9d8e39827ebc8b2e9fbb440f
[ "Apache-2.0" ]
permissive
pmatern/tasmo
50af1f43af6779cc3eb2d8ea5157669a4da7b3b3
828583d7db573098de945206ec365291050d6d92
refs/heads/master
2021-01-18T02:07:24.169510
2014-01-22T16:40:02
2014-01-22T16:40:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
945
java
/* * $Revision$ * $Date$ * * Copyright (C) 1999-$year$ Jive Software. All rights reserved. * * This software is the proprietary information of Jive Software. Use is subject to license terms. */ package com.jivesoftware.os.tasmo.reference.lib; import com.jivesoftware.os.jive.utils.base.interfaces.CallbackStream; import com.jivesoftware.os.tasmo.id.TenantIdAndCentricId; import java.util.Collections; /** * */ public class B_IdsStreamer extends BaseRefStreamer { public B_IdsStreamer(ReferenceStore referenceStore, String referringFieldName) { super(referenceStore, Collections.<String>emptySet(), referringFieldName); } @Override public void stream(TenantIdAndCentricId tenantIdAndCentricId, Reference aId, final CallbackStream<Reference> bdIdsStream) throws Exception { referenceStore.get_bIds(tenantIdAndCentricId, aId.getObjectId().getClassName(), referringFieldName, aId, bdIdsStream); } }
[ "jonathan.colt@jivesoftware.com" ]
jonathan.colt@jivesoftware.com
38597b718023bb52111553ec9354109d5a9e5f1f
39a707b2e598a987f3dbadc9cb30e3d839db5213
/CZJW_SQ/src/main/java/com/alphasta/model/SysParam.java
7b7c0145e2afc82117cb87f92539eab841088d91
[ "Apache-2.0" ]
permissive
cxl20171104/Project
5e77f112916359265722e2a69d835ec835a31e47
105e80f8df7ea80b6015d5d23e843b6a5c2739a0
refs/heads/master
2022-12-25T14:21:47.652377
2020-03-04T09:20:06
2020-03-04T09:20:06
244,593,729
0
0
Apache-2.0
2022-12-16T08:01:09
2020-03-03T09:26:45
JavaScript
UTF-8
Java
false
false
869
java
package com.alphasta.model; import java.io.Serializable; /** * 系统参数 * * @author LiYunhao * */ public class SysParam implements Serializable { private static final long serialVersionUID = -1723785871249514149L; private Long id; private String name; private String key; private String value; private String remark; 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 String getKey() { return key; } public void setKey(String key) { this.key = key; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } }
[ "1290973212@qq.com" ]
1290973212@qq.com
18ecdfe92c7cb4f9c0ccc9e42a10c1aaa09636f9
44c49d3ddaa3344f9a78c758752d96fb77180175
/src/main/java/com/luban/demo13/Container5.java
f0767f37cdec66b11e051e843f097e269a55bfdd
[]
no_license
booleanlikai/testlikai
f32a8cd3f5f5128801db1cc2d2d76d91b360923c
54a0262a63cb5186327e61e724af680bee6d20bb
refs/heads/master
2022-12-22T23:13:14.360250
2019-12-13T09:07:28
2019-12-13T09:07:28
196,120,122
0
0
null
2022-12-16T08:02:40
2019-07-10T02:57:57
Java
UTF-8
Java
false
false
1,563
java
package com.luban.demo13; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; /** * 一道面试题:实现一个容器,提供两个方法,add,size * 写两个线程,线程1添加10个元素到容器中,线程2实现监控元素的个数,当个数到5个时,线程2给出提示并结束 * latch(门闩) */ public class Container5 { volatile List lists = new ArrayList(); public void add(Object o){ lists.add(o); } public int size(){ return lists.size(); } public static void main(String[] args) { Container5 c = new Container5(); CountDownLatch latch = new CountDownLatch(5); new Thread(()->{ System.out.println("t2启动"); if (c.size() != 5) { try { latch.await();//准备 } catch (Exception e) { e.printStackTrace(); } System.out.println("t2结束"); } }," t2").start(); new Thread(()->{ System.out.println("t1启动"); for (int i = 0; i < 10; i++) { c.add(new Object()); System.out.println("add " + i); if (c.size() == 5) { } try { TimeUnit.SECONDS.sleep(1); } catch (Exception e) { e.printStackTrace(); } } }, "t1").start(); } }
[ "aa" ]
aa
a30f699af7c7163ed7b1fdf98cc0faaf04a9283a
157d06ef259e5084aeebbe9a18bcbde34aa98c10
/src/main/java/io/github/hapjava/accessories/CameraAccessory.java
664020704d3df477be8ae13e2683d50e34a1aa84
[ "MIT" ]
permissive
multilotto/HAP-Java
56d8870b69ea13f358282ae5e055ca79ac892376
b7d71175d82c3e69fecf10493af5f262d067a982
refs/heads/master
2023-01-20T09:59:45.235511
2020-11-29T18:20:09
2020-11-29T18:20:09
308,074,612
0
0
MIT
2020-12-01T20:51:56
2020-10-28T16:20:26
Java
UTF-8
Java
false
false
1,635
java
package io.github.hapjava.accessories; import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback; import io.github.hapjava.services.Service; import io.github.hapjava.services.impl.CameraControlService; import io.github.hapjava.services.impl.CameraRTPService; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.concurrent.CompletableFuture; public interface CameraAccessory extends HomekitAccessory { /** * Retrieves the current binary state of the light. * * @return a future that will contain the binary state */ CompletableFuture<Boolean> getCameraActiveState(); /** * Sets the binary state of the light * * @param activeState the binary state to set * @return a future that completes when the change is made * @throws Exception when the change cannot be made */ CompletableFuture<Void> setCameraActiveState(boolean activeState) throws Exception; /** * Subscribes to changes in the binary state of the light. * * @param callback the function to call when the state changes. */ void subscribeCameraActiveState(HomekitCharacteristicChangeCallback callback); /** Unsubscribes from changes in the binary state of the light. */ void unsubscribeCameraActiveState(); List<CameraRTPService> getCameraRTPServices(); @Override default Collection<Service> getServices() { ArrayList<Service> services = new ArrayList<>(); services.add(new CameraControlService(this)); services.addAll(getCameraRTPServices()); return Collections.unmodifiableList(services); } }
[ "koushd@gmail.com" ]
koushd@gmail.com
b8e3b7789ef8ab8efc671f0d9f32edd3bfe837a5
559ea64c50ae629202d0a9a55e9a3d87e9ef2072
/org/codehaus/jackson/annotate/JsonAutoDetect.java
d15dba7fde2533270e7c2fd7afccdeb254908f0c
[]
no_license
CrazyWolf2014/VehicleBus
07872bf3ab60756e956c75a2b9d8f71cd84e2bc9
450150fc3f4c7d5d7230e8012786e426f3ff1149
refs/heads/master
2021-01-03T07:59:26.796624
2016-06-10T22:04:02
2016-06-10T22:04:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,127
java
package org.codehaus.jackson.annotate; import com.google.protobuf.DescriptorProtos.FieldOptions; import com.google.protobuf.DescriptorProtos.MessageOptions; import com.google.protobuf.DescriptorProtos.UninterpretedOption; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.lang.reflect.Member; import java.lang.reflect.Modifier; @JacksonAnnotation @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface JsonAutoDetect { /* renamed from: org.codehaus.jackson.annotate.JsonAutoDetect.1 */ static /* synthetic */ class C09311 { static final /* synthetic */ int[] f1671x87517c95; static { f1671x87517c95 = new int[Visibility.values().length]; try { f1671x87517c95[Visibility.ANY.ordinal()] = 1; } catch (NoSuchFieldError e) { } try { f1671x87517c95[Visibility.NONE.ordinal()] = 2; } catch (NoSuchFieldError e2) { } try { f1671x87517c95[Visibility.NON_PRIVATE.ordinal()] = 3; } catch (NoSuchFieldError e3) { } try { f1671x87517c95[Visibility.PROTECTED_AND_PUBLIC.ordinal()] = 4; } catch (NoSuchFieldError e4) { } try { f1671x87517c95[Visibility.PUBLIC_ONLY.ordinal()] = 5; } catch (NoSuchFieldError e5) { } } } public enum Visibility { ANY, NON_PRIVATE, PROTECTED_AND_PUBLIC, PUBLIC_ONLY, NONE, DEFAULT; public boolean isVisible(Member m) { switch (C09311.f1671x87517c95[ordinal()]) { case MessageOptions.MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER /*1*/: return true; case MessageOptions.NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER /*2*/: return false; case FieldOptions.DEPRECATED_FIELD_NUMBER /*3*/: if (Modifier.isPrivate(m.getModifiers())) { return false; } return true; case UninterpretedOption.POSITIVE_INT_VALUE_FIELD_NUMBER /*4*/: if (Modifier.isProtected(m.getModifiers())) { return true; } break; case UninterpretedOption.NEGATIVE_INT_VALUE_FIELD_NUMBER /*5*/: break; default: return false; } return Modifier.isPublic(m.getModifiers()); } } Visibility creatorVisibility() default Visibility.DEFAULT; Visibility fieldVisibility() default Visibility.DEFAULT; Visibility getterVisibility() default Visibility.DEFAULT; Visibility isGetterVisibility() default Visibility.DEFAULT; Visibility setterVisibility() default Visibility.DEFAULT; JsonMethod[] value() default {JsonMethod.ALL}; }
[ "ahhmedd16@hotmail.com" ]
ahhmedd16@hotmail.com
3036ec9f61ca3f25c44cc7e423ea4d3a645031be
884557ac73eff99ccb985febe0ed1c5a46a9969c
/Platforms/BM/src/main/java/com/smilecoms/bm/unitcredits/filters/AllowAllFilterClass.java
73872cc10afd2d52220cf53047d92420af560e1b
[]
no_license
vikaspshelar/SMILE
732ef4b80655f246b43997d8407653cf7ffddad0
7ffc19eafef4d53a33e3d4bc658a1266b1087b27
refs/heads/master
2023-07-17T14:21:28.863986
2021-08-28T07:08:39
2021-08-28T07:08:39
400,570,564
0
0
null
null
null
null
UTF-8
Java
false
false
1,721
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.smilecoms.bm.unitcredits.filters; import com.smilecoms.bm.charging.IAccount; import com.smilecoms.bm.db.model.ServiceInstance; import com.smilecoms.bm.db.model.UnitCreditInstance; import com.smilecoms.bm.db.model.UnitCreditSpecification; import com.smilecoms.bm.rating.RatingResult; import com.smilecoms.bm.unitcredits.wrappers.IUnitCredit; import com.smilecoms.xml.schema.bm.RatingKey; import java.util.Date; import java.util.List; import javax.persistence.EntityManager; /** * * @author paul */ public class AllowAllFilterClass implements IUCFilterClass{ @Override public boolean isUCApplicable( EntityManager em, IAccount acc, String sessionId, ServiceInstance serviceInstance, RatingResult ratingResult, RatingKey ratingKey, String srcDevice, String description, Date eventTimestamp, UnitCreditSpecification ucs, UnitCreditInstance uci, String location) { return true; } @Override public boolean isUCApplicableInContext(EntityManager em, IAccount acc, String sessionId, ServiceInstance serviceInstance, RatingResult ratingResult, RatingKey ratingKey, String srcDevice, String description, Date eventTimestamp, UnitCreditSpecification ucs, IUnitCredit uci, List<IUnitCredit> unitCreditsInList, String location) { return true; } }
[ "sbaranwal@futurerx.com" ]
sbaranwal@futurerx.com
cdeeba97f62f1a9433c5ecb770c38d0b9eeb4ea2
79595075622ded0bf43023f716389f61d8e96e94
/app/src/main/java/android/view/animation/TranslateXAnimation.java
1baa29cd82dcf81f32065c90670b930f520e6606
[]
no_license
dstmath/OppoR15
96f1f7bb4d9cfad47609316debc55095edcd6b56
b9a4da845af251213d7b4c1b35db3e2415290c96
refs/heads/master
2020-03-24T16:52:14.198588
2019-05-27T02:24:53
2019-05-27T02:24:53
142,840,716
7
4
null
null
null
null
UTF-8
Java
false
false
774
java
package android.view.animation; public class TranslateXAnimation extends TranslateAnimation { float[] mTmpValues; public TranslateXAnimation(float fromXDelta, float toXDelta) { super(fromXDelta, toXDelta, 0.0f, 0.0f); this.mTmpValues = new float[9]; } public TranslateXAnimation(int fromXType, float fromXValue, int toXType, float toXValue) { super(fromXType, fromXValue, toXType, toXValue, 0, 0.0f, 0, 0.0f); this.mTmpValues = new float[9]; } protected void applyTransformation(float interpolatedTime, Transformation t) { t.getMatrix().getValues(this.mTmpValues); t.getMatrix().setTranslate(this.mFromXDelta + ((this.mToXDelta - this.mFromXDelta) * interpolatedTime), this.mTmpValues[5]); } }
[ "toor@debian.toor" ]
toor@debian.toor
741b86d879e0981ccf89f9c533db51dff8aa067e
50871b1e943ef1c0709479f5886e87fa647ffd40
/quanlydatcom/src/trong/lixco/com/bean/CommonService.java
8ad7ef337ff43c83f36bd5e5c5577042793df246
[]
no_license
quangthaiuit1/QuanLyDatCom
299909177c36b57757695e7b9ba39520eb157bfe
edddb92fd8041bf9590840dddecedfcf7ad11173
refs/heads/master
2023-04-16T23:27:52.778315
2021-04-28T13:39:16
2021-04-28T13:39:16
286,339,681
0
0
null
null
null
null
UTF-8
Java
false
false
362
java
package trong.lixco.com.bean; import javax.faces.application.FacesMessage; import org.primefaces.PrimeFaces; public class CommonService { static public void successNotify() { FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, "Thông báo", "Cập nhật thành công ."); PrimeFaces.current().dialog().showMessageDynamic(message); } }
[ "quangthaiuit1@gmail.com" ]
quangthaiuit1@gmail.com
8b4429d56f11a33d9011666952bd201c3adb7242
c3e52510afab4d23939e6f389c89e225e0a02d85
/app/src/main/java/com/example/administrator/wankuoportal/ui/GuZhuWoDe/MyReportActivity.java
e6fc3dc2eb8aafe8124a6a2ad666ea7442571cc2
[]
no_license
flsand/WanKuoportal
ade204fe80e1081812609fdcdde05df72f96c975
daee1c95b6e63cc6ea2fecedc228dd2d15fd4da3
refs/heads/master
2020-03-23T21:29:22.998318
2018-07-24T05:59:02
2018-07-24T05:59:28
142,110,689
0
0
null
null
null
null
UTF-8
Java
false
false
2,124
java
package com.example.administrator.wankuoportal.ui.GuZhuWoDe; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.ViewPager; import android.view.View; import android.widget.ImageView; import com.example.administrator.wankuoportal.R; import com.example.administrator.wankuoportal.fragment.jubao.FaJuBao_fragment; import com.example.administrator.wankuoportal.fragment.jubao.ShouJuBao_fragment; import com.example.administrator.wankuoportal.global.BaseActivity; public class MyReportActivity extends BaseActivity { private ImageView back; private TabLayout logintab; private ViewPager viewPagerlogin; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_report); this.viewPagerlogin = (ViewPager) findViewById(R.id.viewPager_login); this.logintab = (TabLayout) findViewById(R.id.login_tab); this.back = (ImageView) findViewById(R.id.back); back.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); initview(); } private void initview() { viewPagerlogin.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) { private String[] mTitles = new String[]{"我发起的举报", "我收到的举报"}; @Override public Fragment getItem(int position) { if (position == 1) { return new ShouJuBao_fragment(); } return new FaJuBao_fragment(); } @Override public int getCount() { return mTitles.length; } @Override public CharSequence getPageTitle(int position) { return mTitles[position]; } }); logintab.setupWithViewPager(viewPagerlogin); } }
[ "1156183505@qq.com" ]
1156183505@qq.com
c1d8418168d905b8f21e20587959f1ad1e05e283
da371006a02c6e80b68c32ae3bbdd32bc421c38a
/contribs/taxi/src/main/java/org/matsim/contrib/drt/taxibus/run/examples/RunSharedTaxiExample.java
17b935af3b2399f2e7c611b5b48d5760d54824ae
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Udacity-repo/matsim
bf994ce83b50798bba6fc9d03f1d74fa6668a58f
7da270848e8b98f5447ed172a5115a1a27c48457
refs/heads/master
2020-12-02T22:08:09.188553
2017-06-27T16:06:40
2017-06-27T16:06:40
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,178
java
/* *********************************************************************** * * project: org.matsim.* * RunEmissionToolOffline.java * * * *********************************************************************** * * * * copyright : (C) 2009 by the members listed in the COPYING, * * LICENSE and WARRANTY file. * * email : info at matsim dot org * * * * *********************************************************************** * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * See also COPYING, LICENSE and WARRANTY file * * * * *********************************************************************** */ package org.matsim.contrib.drt.taxibus.run.examples; import org.matsim.api.core.v01.Scenario; import org.matsim.contrib.drt.taxibus.run.configuration.ConfigBasedTaxibusLaunchUtils; import org.matsim.contrib.drt.taxibus.run.configuration.TaxibusConfigGroup; import org.matsim.contrib.otfvis.OTFVisLiveModule; import org.matsim.core.config.Config; import org.matsim.core.config.ConfigUtils; import org.matsim.core.config.groups.QSimConfigGroup.SnapshotStyle; import org.matsim.core.controler.Controler; import org.matsim.core.controler.OutputDirectoryHierarchy.OverwriteFileSetting; import org.matsim.core.scenario.ScenarioUtils; import org.matsim.vis.otfvis.OTFVisConfigGroup; /** * @author jbischoff * An example of a shared taxi system using DRT / taxibus infrastructure. * A maximum of two passengers share a trip in this example. * */ public class RunSharedTaxiExample { public static void main(String[] args) { Config config = ConfigUtils.loadConfig("taxibus_example/configShared.xml", new TaxibusConfigGroup()); config.controler().setOverwriteFileSetting(OverwriteFileSetting.deleteDirectoryIfExists) ; config.qsim().setSnapshotStyle(SnapshotStyle.withHoles); OTFVisConfigGroup visConfig = ConfigUtils.addOrGetModule(config, OTFVisConfigGroup.GROUP_NAME, OTFVisConfigGroup.class ) ; visConfig.setAgentSize(250); visConfig.setLinkWidth(5); visConfig.setDrawNonMovingItems(true); visConfig.setDrawTime(true); final Scenario scenario = ScenarioUtils.loadScenario(config); Controler controler = new Controler(scenario); new ConfigBasedTaxibusLaunchUtils(controler).initiateTaxibusses(); //Comment out the following line in case you do not require OTFVis visualisation controler.addOverridingModule( new OTFVisLiveModule() ); controler.run(); } }
[ "bischoff@vsp.tu-berlin.de" ]
bischoff@vsp.tu-berlin.de
9725431827ef3b166fc41741ed7923838f46ba14
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Spring/Spring4299.java
34bfce4488b950d9747b3fce234d25972dabe47e
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
427
java
protected static int findParameterIndex(Parameter parameter) { Executable executable = parameter.getDeclaringExecutable(); Parameter[] allParams = executable.getParameters(); for (int i = 0; i < allParams.length; i++) { if (parameter == allParams[i]) { return i; } } throw new IllegalArgumentException("Given parameter [" + parameter + "] does not match any parameter in the declaring executable"); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
ef30e5fb604cb8ca1f3c429d57b1984073552643
05e5bee54209901d233f4bfa425eb6702970d6ab
/net/minecraft/util/gnu/trove/list/TFloatList.java
1d705d5927d861a980e7fbb13fe7f1658014353f
[]
no_license
TheShermanTanker/PaperSpigot-1.7.10
23f51ff301e7eb05ef6a3d6999dd2c62175c270f
ea9d33bcd075e00db27b7f26450f9dc8e6d18262
refs/heads/master
2022-12-24T10:32:09.048106
2020-09-25T15:43:22
2020-09-25T15:43:22
298,614,646
0
1
null
null
null
null
UTF-8
Java
false
false
2,677
java
package net.minecraft.util.gnu.trove.list; import java.util.Random; import net.minecraft.util.gnu.trove.TFloatCollection; import net.minecraft.util.gnu.trove.function.TFloatFunction; import net.minecraft.util.gnu.trove.procedure.TFloatProcedure; public interface TFloatList extends TFloatCollection { float getNoEntryValue(); int size(); boolean isEmpty(); boolean add(float paramFloat); void add(float[] paramArrayOffloat); void add(float[] paramArrayOffloat, int paramInt1, int paramInt2); void insert(int paramInt, float paramFloat); void insert(int paramInt, float[] paramArrayOffloat); void insert(int paramInt1, float[] paramArrayOffloat, int paramInt2, int paramInt3); float get(int paramInt); float set(int paramInt, float paramFloat); void set(int paramInt, float[] paramArrayOffloat); void set(int paramInt1, float[] paramArrayOffloat, int paramInt2, int paramInt3); float replace(int paramInt, float paramFloat); void clear(); boolean remove(float paramFloat); float removeAt(int paramInt); void remove(int paramInt1, int paramInt2); void transformValues(TFloatFunction paramTFloatFunction); void reverse(); void reverse(int paramInt1, int paramInt2); void shuffle(Random paramRandom); TFloatList subList(int paramInt1, int paramInt2); float[] toArray(); float[] toArray(int paramInt1, int paramInt2); float[] toArray(float[] paramArrayOffloat); float[] toArray(float[] paramArrayOffloat, int paramInt1, int paramInt2); float[] toArray(float[] paramArrayOffloat, int paramInt1, int paramInt2, int paramInt3); boolean forEach(TFloatProcedure paramTFloatProcedure); boolean forEachDescending(TFloatProcedure paramTFloatProcedure); void sort(); void sort(int paramInt1, int paramInt2); void fill(float paramFloat); void fill(int paramInt1, int paramInt2, float paramFloat); int binarySearch(float paramFloat); int binarySearch(float paramFloat, int paramInt1, int paramInt2); int indexOf(float paramFloat); int indexOf(int paramInt, float paramFloat); int lastIndexOf(float paramFloat); int lastIndexOf(int paramInt, float paramFloat); boolean contains(float paramFloat); TFloatList grep(TFloatProcedure paramTFloatProcedure); TFloatList inverseGrep(TFloatProcedure paramTFloatProcedure); float max(); float min(); float sum(); } /* Location: D:\Paper-1.7.10\PaperSpigot-1.7.10-R0.1-SNAPSHOT-latest.jar!\net\minecraf\\util\gnu\trove\list\TFloatList.class * Java compiler version: 5 (49.0) * JD-Core Version: 1.1.3 */
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
771f977342f327f0e011afe3316d45b825db3c89
5e34243e2c87d136566f9403465277c3ffd5417d
/google-plus/ios/src/main/java/org/robovm/pods/google/plus/GPPDeepLinkDelegateAdapter.java
670d063400dce2cfc76508e8575b5b16a844794a
[]
no_license
ipsumgames/ipsum-robovm-robopods
6003ed38cf1d2167860fe6b61dd2ffcb34df1902
5ddc062d0ca561b018998ede4a78b541168bec92
refs/heads/master
2016-09-06T21:52:32.337362
2015-10-23T08:44:30
2015-10-23T08:44:48
41,791,776
2
0
null
null
null
null
UTF-8
Java
false
false
1,776
java
/* * Copyright (C) 2013-2015 RoboVM AB * * 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.robovm.pods.google.plus; /*<imports>*/ import java.io.*; import java.nio.*; import java.util.*; import org.robovm.objc.*; import org.robovm.objc.annotation.*; import org.robovm.objc.block.*; import org.robovm.rt.*; import org.robovm.rt.annotation.*; import org.robovm.rt.bro.*; import org.robovm.rt.bro.annotation.*; import org.robovm.rt.bro.ptr.*; import org.robovm.apple.foundation.*; import org.robovm.apple.uikit.*; import org.robovm.apple.coregraphics.*; import org.robovm.pods.google.opensource.*; /*</imports>*/ /*<javadoc>*/ /*</javadoc>*/ /*<annotations>*//*</annotations>*/ /*<visibility>*/public/*</visibility>*/ class /*<name>*/GPPDeepLinkDelegateAdapter/*</name>*/ extends /*<extends>*/NSObject/*</extends>*/ /*<implements>*/implements GPPDeepLinkDelegate/*</implements>*/ { /*<ptr>*/ /*</ptr>*/ /*<bind>*/ /*</bind>*/ /*<constants>*//*</constants>*/ /*<constructors>*//*</constructors>*/ /*<properties>*/ /*</properties>*/ /*<members>*//*</members>*/ /*<methods>*/ @NotImplemented("didReceiveDeepLink:") public void didReceiveDeepLink(GPPDeepLink deepLink) {} /*</methods>*/ }
[ "blueriverteam@gmail.com" ]
blueriverteam@gmail.com
227a4ad0607ecc8a1b3511bf0cb879840012e787
f7770e21f34ef093eb78dae21fd9bde99b6e9011
/src/main/java/com/hengyuan/hicash/service/validate/query/JxlOrgApiApplicationsVal.java
0cc6ebe326c4d1404291d1298bca9adf32561628
[]
no_license
webvul/HicashAppService
9ac8e50c00203df0f4666cd81c108a7f14a3e6e0
abf27908f537979ef26dfac91406c1869867ec50
refs/heads/master
2020-03-22T19:58:41.549565
2017-12-26T08:30:04
2017-12-26T08:30:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,894
java
package com.hengyuan.hicash.service.validate.query; import com.hengyuan.hicash.constant.ResultCodes; import com.hengyuan.hicash.parameters.request.user.JxlOrgApiApplicationsReq; import com.hengyuan.hicash.utils.RegexValidate; /** * @author blianke.qin * 2017年1月11日 下午6:51:13 * 类说明 */ public class JxlOrgApiApplicationsVal { private JxlOrgApiApplicationsReq Req; public JxlOrgApiApplicationsVal(JxlOrgApiApplicationsReq jxlOrgApiApplicationsReq){ this.Req=jxlOrgApiApplicationsReq; } /* *//** 用户名不能为空*//* public static final String USERNAME_ISNULL= "37510"; *//** time不能为空*//* public static final String TIME_ISNULL= "37511"; *//** 行业代码不能为空*//* public static final String IDDUSTRYCODE_ISNULL= "37512"; *//** 网站英文名称不能为空*//* public static final String WEBSITE_ISNULL= "37513"; *//** 服务密码不能为空*//* public static final String PASSWORD_ISNULL= "37514"; *//** 短信验证码不能为空*//* public static final String MESSAGE_ISNULL= "37515"; *//** 认证流水token不能为空*//* public static final String SEQ_NO_ISNULL= "37516"; *//** 短信类型不能为空*//* public static final String CURRENTMAGType_ISNULL= "37517";*/ public String validate(){ if (RegexValidate.isNull(Req.getIndustryCode())) { return ResultCodes.IDDUSTRYCODE_ISNULL; } if (RegexValidate.isNull(Req.getTime())) { return ResultCodes.TIME_ISNULL; } if(!Req.getTime().equals("1") && !Req.getTime().equals("2") && !Req.getTime().equals("3") && !Req.getTime().equals("4")){ return ResultCodes.TIME_EXCEPTION; } if ("2".equals(Req.getTime())) { if (RegexValidate.isNull(Req.getPassword())) { return ResultCodes.PASSWORD_ISNULL; } if (RegexValidate.isNull(Req.getSeq_no())) { return ResultCodes.SEQ_NO_ISNULL; } } else if ("3".equals(Req.getTime())) { if (RegexValidate.isNull(Req.getPassword())) { return ResultCodes.PASSWORD_ISNULL; } if (RegexValidate.isNull(Req.getMessage())) { return ResultCodes.MESSAGE_ISNULL; } if (RegexValidate.isNull(Req.getSeq_no())) { return ResultCodes.SEQ_NO_ISNULL; } if (RegexValidate.isNull(Req.getCurrentMsgType())) { return ResultCodes.CURRENTMAGType_ISNULL; } } else if ("4".equals(Req.getTime())) { if (RegexValidate.isNull(Req.getPassword())) { return ResultCodes.PASSWORD_ISNULL; } if (RegexValidate.isNull(Req.getSeq_no())) { return ResultCodes.SEQ_NO_ISNULL; } } if("SJZL".equals(Req.getIndustryCode())){ if (RegexValidate.isNull(Req.getMobile())) { return ResultCodes.SENDAMOUNTCODE_MOBILE_ISNULL; } if (RegexValidate.isNull(Req.getIdCard())) { return ResultCodes.REGISTER_IDCARD_ISNULL; } if (RegexValidate.isNull(Req.getName())) { return ResultCodes.REGISTER_REALNAME_ISNULL; } if (RegexValidate.isNull(Req.getFamilyName())) { return ResultCodes.STU_CONTACTS_FAMILY_NAME_NOTNULL; } if (RegexValidate.isNull(Req.getFamilyMobile())) { return ResultCodes.STU_CONTACTS_FAMILY_PHONE_NOTNULL; } if (RegexValidate.isNull(Req.getFamilyRelation())) { return ResultCodes.STU_CONTACTS_FAMILY_RELATION_NOTNULL; } if (RegexValidate.isNull(Req.getRelaName())) { return ResultCodes.STU_CONTACTS_CONTACT_NAME_NOTNULL; } if (RegexValidate.isNull(Req.getRelation())) { return ResultCodes.STU_CONTACTS_CONTACT_RELATION_NOTNULL; } if (RegexValidate.isNull(Req.getRelaMobile())) { return ResultCodes.STU_CONTACTS_CONTACT_PHONE_NOTNULL; } }else{ if (RegexValidate.isNull(Req.getUsername())) { return ResultCodes.USERNAME_ISNULL; } } return ResultCodes.NORMAL; } public JxlOrgApiApplicationsReq getReq() { return Req; } public void setReq(JxlOrgApiApplicationsReq req) { Req = req; } }
[ "hanlu@dpandora.cn" ]
hanlu@dpandora.cn
3ff8f54bd6e756e95e6e9b873125f749006a556c
dfb8b54fa16a4c0532b7863723c661258f21f2bb
/src/main/java/com/tong/thinking/chapter14/s02/p319/Initable.java
57986988e9f84d51b1e726cd7dc3dd0c6332449b
[]
no_license
Tong-c/javaBasic
86c52e2bb5b9e0eabe7f77ed675cda999cc32255
6cfb9e0e8f43d74fd5c2677cd251fec3cce799c4
refs/heads/master
2021-06-01T11:53:53.672254
2021-01-05T03:58:10
2021-01-05T03:58:10
130,291,741
2
0
null
2020-10-13T02:37:08
2018-04-20T01:28:16
Java
UTF-8
Java
false
false
261
java
package com.tong.thinking.chapter14.s02.p319; public class Initable { static final int staticFinal = 47; static final int staticFinal2 = ClassInitialization.rand.nextInt(1000); static { System.out.println("Initializing Initable"); } }
[ "1972376180@qq.com" ]
1972376180@qq.com
f2ad77e8ee483d2f4c3f4a14225a346913e011fd
753b81b02f1de676ca4e62e5dae64519f0b83f68
/app/src/main/java/es/vinhnb/ttht/server/TthtHnApiInterface.java
5395b8af36d77950878f927408d0ee9aad661294
[]
no_license
vinhnb90/ES_TTHT_HN
a198278ae858b133cdf35deb09e348f5abbe9e07
b9234c31df3981918b006abf5bcc9f957b4132a6
refs/heads/master
2021-09-06T03:32:43.880924
2018-01-04T02:08:47
2018-01-04T02:08:47
116,202,232
0
0
null
null
null
null
UTF-8
Java
false
false
4,028
java
package es.vinhnb.ttht.server; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import java.util.List; import es.vinhnb.ttht.entity.api.CHUNG_LOAI_CONGTO; import es.vinhnb.ttht.entity.api.D_DVIQLYModel; import es.vinhnb.ttht.entity.api.D_LY_DO_MODEL; import es.vinhnb.ttht.entity.api.MTBModelNew; import es.vinhnb.ttht.entity.api.MTB_ResultModel_NEW; import es.vinhnb.ttht.entity.api.MTB_TuTiModel; import es.vinhnb.ttht.entity.api.MtbBbanModel; import es.vinhnb.ttht.entity.api.MtbBbanTutiModel; import es.vinhnb.ttht.entity.api.MtbCtoModel; import es.vinhnb.ttht.entity.api.ResponseGetSuccessPostRequest; import es.vinhnb.ttht.entity.api.TRAMVIEW; import es.vinhnb.ttht.entity.api.UpdateStatus; import es.vinhnb.ttht.entity.api.UserMtb; import retrofit2.Call; import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.POST; import retrofit2.http.Query; import static android.content.ContentValues.TAG; public interface TthtHnApiInterface { @GET("Get_LoginMTB") Call<UserMtb> Get_LoginMTB(@Query("madonvi") String madonvi, @Query("username") String username, @Query("password") String password, @Query("imei") String imei); @GET("Get_d_dviqly") Call<List<D_DVIQLYModel>> Get_d_dviqly(); @GET("LayDuLieuCmis") Call<List<UpdateStatus>> LayDuLieuCmis(@Query("maDonVi") String maDonVi, @Query("maNhanVien") String maNhanVien); @GET("GeT_BBAN") Call<List<MtbBbanModel>> GeT_BBAN(@Query("maDonVi") String maDonVi, @Query("maNhanVien") String maNhanVien); @GET("Get_cto") Call<Object> Get_cto(@Query("maDonVi") String maDonVi, @Query("idBienBan") String idBienBan); @GET("Get_bban_TUTI") Call<List<MtbBbanTutiModel>> Get_bban_TUTI(@Query("maDonVi") String maDonVi, @Query("maNhanVien") String maNhanVien); @GET("Get_TUTI") Call<List<MTB_TuTiModel>> Get_TUTI(@Query("maDonVi") String maDonVi, @Query("idTuTi") String idTuTi); @GET("GetTram") Call<List<TRAMVIEW>> GetTram(@Query("maDonViQuanLy") String maDonViQuanLy); @GET("LayDuLieuLoaiCongTo") Call<List<CHUNG_LOAI_CONGTO>> LayDuLieuLoaiCongTo(); @GET("GET_LY_DO_TREO_THAO") Call<List<D_LY_DO_MODEL>> GET_LY_DO_TREO_THAO(@Query("maDonVi") String maDonVi); @POST("PostMTBWithImage") Call<List<MTB_ResultModel_NEW>> PostMTBWithImage(@Body List<MTBModelNew> list); @POST("ResponseGetSuccess") Call<Boolean> ResponseGetSuccess(@Body ResponseGetSuccessPostRequest request); public static class AsyncApi extends AsyncTask<Void, Void, Bundle> { IAsync iAsync; public AsyncApi(IAsync iAsync) { this.iAsync = iAsync; } @Override protected void onPreExecute() { super.onPreExecute(); try { iAsync.onPreExecute(); } catch (Exception e) { e.printStackTrace(); Log.e(TAG, "onPreExecute: " + e.getMessage()); this.cancel(true); } } @Override protected Bundle doInBackground(Void... voids) { return iAsync.doInBackground(); } @Override protected void onPostExecute(Bundle result) { super.onPostExecute(result); // iAsync.onPostExecute(result); } } abstract class IAsync { public static final String STATUS_CODE = "STATUS_CODE"; public static final String BUNDLE_DATA = "BUNDLE_DATA"; public static final String ERROR_BODY = "ERROR_BODY"; public abstract void onPreExecute() throws Exception; public abstract Bundle doInBackground(); // public abstract void onPostExecute(Bundle result); } // @POST("/api/users") // Call<User> createUser(@Body User user); // // @GET("/api/users?") // Call<UserList> doGetUserList(@Query("page") String page); // // @FormUrlEncoded // @POST("/api/users?") // Call<UserList> doCreateUserWithField(@Field("name") String name, @Field("job") String job); }
[ "nbvinh.it@gmail.com" ]
nbvinh.it@gmail.com
443d96c0fced84adad868cbff561b39577380579
1a31cf96fcb9434dbe05381b0e8756bd71193478
/gremlin/src/test/java/com/arcadedb/gremlin/structure/ArcadeGraphStructureIT.java
4628c853d25bdbdd07dad9a43a8d9bdd5c5fbea3
[ "Apache-2.0" ]
permissive
ArcadeData/arcadedb
82de7bd0e8ada14272b8fb003a84263204de6116
6a6dcdba30713c544f47558e8ef55781520ef080
refs/heads/main
2023-08-30T21:45:20.921231
2023-08-30T20:13:37
2023-08-30T20:13:37
396,867,188
353
52
Apache-2.0
2023-09-14T21:16:33
2021-08-16T16:01:29
Java
UTF-8
Java
false
false
1,350
java
/* * Copyright 2023 Arcade Data Ltd * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package com.arcadedb.gremlin.structure; import com.arcadedb.gremlin.ArcadeGraph; import com.arcadedb.gremlin.ArcadeGraphProvider; import org.apache.tinkerpop.gremlin.GraphProviderClass; import org.apache.tinkerpop.gremlin.structure.StructureStandardSuite; import org.junit.runner.RunWith; /** * Created by Enrico Risa on 30/07/2018. */ @RunWith(StructureStandardSuite.class) @GraphProviderClass(provider = ArcadeGraphProvider.class, graph = ArcadeGraph.class) public class ArcadeGraphStructureIT { }
[ "lvca@users.noreply.github.com" ]
lvca@users.noreply.github.com
5fbb7a4fe1033e52504dc6090fadcb4ea242fa12
214c454359cdbd80301998424ba660f2d609a780
/scrimage-filters/src/main/java/thirdparty/marvin/image/halftone/Rylanders.java
c60fb83e84220a8c7ee29280356616af77b60abf
[ "Apache-2.0" ]
permissive
sksamuel/scrimage
124d695e1e42c3054ca9f6c85661c6c3e16b478a
28170bd27472ec8026543d8fe8277aaf1344f2ad
refs/heads/master
2023-09-06T07:10:06.828981
2023-08-12T08:18:43
2023-08-12T08:18:43
10,459,209
902
140
Apache-2.0
2023-08-12T08:18:44
2013-06-03T16:40:25
Java
UTF-8
Java
false
false
3,509
java
/** Marvin Project <2007-2009> Initial version by: Danilo Rosetto Munoz Fabio Andrijauskas Gabriel Ambrosio Archanjo site: http://marvinproject.sourceforge.net GPL Copyright (C) <2007> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ package thirdparty.marvin.image.halftone; import thirdparty.marvin.image.*; import thirdparty.marvin.image.grayScale.GrayScale; /** * Halftone Rylanders implementation. * * @author Gabriel Ambr�sio Archanjo * @version 1.0 02/28/2008 */ public class Rylanders extends MarvinAbstractImagePlugin { private static final int DOT_AREA = 4; private static final int arrPattern[] = {1, 9, 3, 11, 5, 13, 7, 15, 4, 12, 2, 10, 8, 16, 6, 14 }; public void process(MarvinImage a_imageIn, MarvinImage a_imageOut, MarvinAttributes a_attributesOut, MarvinImageMask a_mask, boolean a_previewMode) { double l_intensity; // Gray MarvinImagePlugin l_filter = new GrayScale(); l_filter.process(a_imageIn, a_imageIn, a_attributesOut, a_mask, a_previewMode); boolean[][] l_arrMask = a_mask.getMaskArray(); for (int x = 0; x < a_imageIn.getWidth(); x += DOT_AREA) { for (int y = 0; y < a_imageIn.getHeight(); y += DOT_AREA) { if (l_arrMask != null && !l_arrMask[x][y]) { continue; } l_intensity = getSquareIntensity(x, y, a_imageIn); drawTone(x, y, a_imageIn, a_imageOut, l_intensity); } } } private void drawTone(int a_x, int a_y, MarvinImage a_imageIn, MarvinImage a_imageOut, double a_intensity) { double l_factor = 1.0 / 15; int l_toneIntensity = (int) Math.floor(a_intensity / l_factor); int l_x; int l_y; for (int x = 0; x < DOT_AREA * DOT_AREA; x++) { l_x = x % DOT_AREA; l_y = x / DOT_AREA; if (a_x + l_x < a_imageIn.getWidth() && a_y + l_y < a_imageIn.getHeight()) { if (l_toneIntensity >= arrPattern[x]) { a_imageOut.setIntColor(a_x + l_x, a_y + l_y, 0, 0, 0); } else { a_imageOut.setIntColor(a_x + l_x, a_y + l_y, 255, 255, 255); } } } } private double getSquareIntensity(int a_x, int a_y, MarvinImage image) { double l_totalValue = 0; for (int y = 0; y < DOT_AREA; y++) { for (int x = 0; x < DOT_AREA; x++) { if (a_x + x < image.getWidth() && a_y + y < image.getHeight()) { l_totalValue += 255 - (image.getIntComponent0(a_x + x, a_y + y)); } } } return (l_totalValue / (DOT_AREA * DOT_AREA * 255)); } }
[ "sam@sksamuel.com" ]
sam@sksamuel.com
8425c1033d9f3706afa30d37668d3c64053c2ab2
668afb48a9e8a17f8f5ecb6e436c8bfecd168f23
/BetterBatteryStats/src/com/asksven/betterbatterystats/BroadcastHandler.java
ffafb346aa47aedd686a0d4f929d6041ee6f7e40
[ "Apache-2.0" ]
permissive
kcoppock/BetterBatteryStats
d803fcbc6bd551e9255e1870b0fad51d62f4362b
4987ce1cc491558b6dc0a4d1e2076309083739ba
refs/heads/master
2021-01-15T18:31:22.614709
2012-06-06T03:53:10
2012-06-06T03:53:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,028
java
/* * Copyright (C) 2011 asksven * * 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.asksven.betterbatterystats; import java.util.logging.Logger; import com.asksven.betterbatterystats.data.StatsProvider; import com.asksven.betterbatterystats.R; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.os.BatteryManager; import android.preference.PreferenceManager; import android.util.Log; /** * General broadcast handler: handles event as registered on Manifest * @author sven * */ public class BroadcastHandler extends BroadcastReceiver { private static final String TAG = "BroadcastHandler"; /* (non-Javadoc) * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent) */ @Override public void onReceive(Context context, Intent intent) { if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { // start the service // context.startService(new Intent(context, BetterBatteryStatsService.class)); Log.i(TAG, "Received Broadcast ACTION_BOOT_COMPLETED"); // delete whatever references we have saved here StatsProvider.getInstance(context).deletedSerializedRefs(); } if (intent.getAction().equals(Intent.ACTION_POWER_DISCONNECTED)) { Log.i(TAG, "Received Broadcast ACTION_POWER_DISCONNECTED, seralizing 'since unplugged'"); // todo: store the "since unplugged" refs here try { // Store the "since unplugged ref StatsProvider.getInstance(context).setReferenceSinceUnplugged(0); // check the battery level and if 100% the store "since charged" ref Intent batteryIntent = context.getApplicationContext().registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); int rawlevel = batteryIntent.getIntExtra("level", -1); double scale = batteryIntent.getIntExtra("scale", -1); double level = -1; if (rawlevel >= 0 && scale > 0) { // normalize level to [0..1] level = rawlevel / scale; } Log.i(TAG, "Bettery level on uplug is " + level ); if (level == 1) { try { Log.i(TAG, "Level was 100% at unplug, serializing 'since charged'"); StatsProvider.getInstance(context).setReferenceSinceCharged(0); } catch (Exception e) { Log.e(TAG, "An error occured: " + e.getMessage()); } } // Build the intent to call the service Intent intentRefreshWidgets = new Intent(LargeWidgetProvider.WIDGET_UPDATE); context.sendBroadcast(intentRefreshWidgets); } catch (Exception e) { Log.e(TAG, "An error occured: " + e.getMessage()); } } if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) { Log.i(TAG, "Received Broadcast ACTION_SCREEN_OFF"); // todo: store the "since screen off" refs here try { } catch (Exception e) { Log.e(TAG, "An error occured: " + e.getMessage()); } } if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) { Log.i(TAG, "Received Broadcast ACTION_SCREEN_ON"); // todo: evaluate what hapened while screen was off here try { } catch (Exception e) { Log.e(TAG, "An error occured: " + e.getMessage()); } } } }
[ "sven.knispel@gmail.com" ]
sven.knispel@gmail.com
76a864cae02133af8c012120c5c060d00c88ff75
314f17f60baf9f2faa1720cb9e6e5dc1d733a97e
/.svn/pristine/0e/0e634ddd012c91a986cba95c5139a6bc3f6f91ed.svn-base
7572c790bb1a9cc2e2e333626f86d056f9a9c564
[]
no_license
lc4t/payment
8a18d08cb65b778bff48a36e86c3412324159fc0
9cfd839ef92b74594259b1a6d3737e11ce4e441e
refs/heads/master
2020-03-31T07:15:31.731886
2017-05-23T05:15:15
2017-05-23T05:15:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,185
package noumena.payment.dao.servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import noumena.payment.model.Orders; import noumena.payment.util.Constants; import noumena.payment.util.DateUtil; import noumena.payment.yandex.YandexCharge; import noumena.payment.yandex.YandexOrderVO; public class YandexServlet extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; /** * The doGet method of the servlet. <br> * * This method is called when a form has its tag value method equals to get. * * @param request * the request send by the client to the server * @param response * the response send by the server to the client * @throws ServletException * if an error occurred * @throws IOException * if an error occurred */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); } /** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to * post. * * model: * 1 - 客户端请求支付 * 2 - 客户端请求验证订单 * 11 - 小米请求Token服务成功状态回调 * * @param request * the request send by the client to the server * @param response * the response send by the server to the client * @throws ServletException * if an error occurred * @throws IOException * if an error occurred */ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("utf-8"); //必需的参数 String stype = request.getParameter("model"); //请求的类型:1-得到交易id;2-查询订单状态 String uid = request.getParameter("uid"); // String pkgid = request.getParameter("pkgid"); //package name String itemid = request.getParameter("itemid"); // String payprice = request.getParameter("price"); // String cburl = request.getParameter("cburl"); //单机游戏可以不需要回调地址 // //支付用到的参数 String subscriptionID = request.getParameter("orderid"); String pmtoken = request.getParameter("token"); //payment token //选填的参数 String imei = request.getParameter("imei"); // String channel = request.getParameter("channel"); // String device_type = request.getParameter("device_type"); // String device_id = request.getParameter("device_id"); // String gversion = request.getParameter("gversion"); // String osversion = request.getParameter("osversion"); // //验证订单用参数 String payIds = request.getParameter("payIds"); //待查询的所有订单号,以“,”分隔 String ret = ""; if (stype == null) { stype = ""; } if (stype.equals("1")) { Orders vo = new Orders(); vo.setImei(imei); vo.setUId(uid); vo.setItemId(itemid); vo.setGversion(gversion); vo.setOsversion(osversion); vo.setDeviceId(device_id); vo.setDeviceType(device_type); vo.setChannel(channel); vo.setAppId(pkgid); vo.setAmount(Float.valueOf(payprice)); vo.setCreateTime(DateUtil.getCurrentTime()); vo.setPayType(Constants.PAY_TYPE_YANDEX); vo.setCallbackUrl(cburl); ret = YandexCharge.getTransactionId(vo); } else if (stype.equals("3")) { //创建订单并且返回订单结果 Orders vo = new Orders(); vo.setImei(imei); vo.setUId(uid); vo.setItemId(itemid); vo.setGversion(gversion); vo.setOsversion(osversion); vo.setDeviceId(device_id); vo.setDeviceType(device_type); vo.setChannel(channel); vo.setAppId(pkgid); vo.setAmount(Float.valueOf(payprice)); vo.setCreateTime(DateUtil.getCurrentTime()); vo.setPayType(Constants.PAY_TYPE_YANDEX); vo.setCallbackUrl(cburl); YandexOrderVO yandexvo = new YandexOrderVO(); yandexvo.setPkname(pkgid); yandexvo.setSubscriptionID(subscriptionID); yandexvo.setPmtoken(pmtoken); System.out.println("yandex charge ->" + uid + "(" + System.currentTimeMillis() + ")"); ret = YandexCharge.getTransactionIdAndStatus(vo,yandexvo); } else if (stype.equals("2")) { YandexOrderVO yandexvo = new YandexOrderVO(); yandexvo.setPkname(pkgid); yandexvo.setSubscriptionID(subscriptionID); yandexvo.setPmtoken(pmtoken); System.out.println("yandex check order ids->(" + (uid == null ? "-" : uid) + ")" + payIds); ret = YandexCharge.checkOrdersStatus(payIds,yandexvo); } else { ret = "model is invalid"; } System.out.println("yandex order id->" + ret); response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println(ret); out.flush(); out.close(); } /** * Initialization of the servlet. <br> * * @throws ServletException * if an error occure */ public void init() throws ServletException { // Put your code here } }
[ "you@example.com" ]
you@example.com
3d2a0abecdfff0c80dbf4881df5eba31c2e1381a
09960b68707da3891f45ac2eda90e177a742b28d
/web/ahnew/src/main/java/com/szty/aihao/service/mvnforumquote_service.java
fbd897636586ba91e8814fa19415d8d87d524048
[]
no_license
jiangyiman/szty
a72434d586f836f8a9039b3a5a293f614a1e4b99
9087733b2b88b6ac0e0cd7d13652f02b42cdb848
refs/heads/master
2021-05-30T22:03:01.114487
2016-03-25T06:25:18
2016-03-25T06:25:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,887
java
/* *@=================================================================== *@项目说明 *@作者:宋春林 *@版本信息:@Copy Right 2011-2015 *@文件: iDataMvnforumquote.java *@项目名称:JAVA项目管理 *@创建时间:2015/10/15 *@=================================================================== */ package com.szty.aihao.service; import com.szty.aihao.dao.mvnforumquote_Dao; import com.szty.aihao.core.mvnforumquote_core; import com.szty.aihao.factory.classFactory; import java.util.Dictionary; import java.util.List; /** *@文件说明 *@MVNFORUMQUOTE逻辑层接口 *@作者:宋春林 */ public class mvnforumquote_service { public mvnforumquote_core _dal=classFactory.getmvnforumquote(); /** * 向数据库中插入一条新记录。 * @param MVNFORUMQUOTE实体 * @return 新插入记录的编号 */ public int insert_mvnforumquote (mvnforumquote_Dao _MVNFORUMQUOTEModel ) throws Exception{ return _dal.insert_mvnforumquote( _MVNFORUMQUOTEModel); } /** * 向数据库中插入一条新记录。 * @param MVNFORUMQUOTEprrameter * @return 新插入记录的编号 */ public int insert_mvnforumquote(Object[] _para) throws Exception{ return _dal.insert_mvnforumquote( _para); } /** * 向数据库中插入一条新记录。 * @param MVNFORUMQUOTE实体 * @return 影响的行数 */ public int update_mvnforumquote(mvnforumquote_Dao _MVNFORUMQUOTEModel) throws Exception{ return _dal.update_mvnforumquote( _MVNFORUMQUOTEModel); } /** * 删除数据表MVNFORUMQUOTE中的一条记录 * @param MVNFORUMQUOTE实体 * @return 新插入记录的编号 */ public int delete_mvnforumquote(int Quoteid) throws Exception{ return _dal.delete_mvnforumquote( Quoteid); } /** * 得到 mvnforumquote 数据实体 * @param Quoteid">Quoteid * @return<mvnforumquote 数据实体 * @throws Exception */ public mvnforumquote_Dao get_mvnforumquoteDao(int Quoteid) throws Exception{ return _dal.get_mvnforumquoteDao( Quoteid); } /** * 根据MVNFORUMQUOTE返回的查询DataRow创建一个MVNFORUMQUOTEEntity对象 * @param MVNFORUMQUOTE row * @returnMVNFORUMQUOTEList对象 * @throws Exception */ public List<mvnforumquote_Dao> get_mvnforumquote_All() throws Exception{ return _dal.get_mvnforumquote_All(); } /** * 根据MVNFORUMQUOTE返回的查询DataRow创建一个MVNFORUMQUOTEEntity对象 * @param MVNFORUMQUOTE row * @returnMVNFORUMQUOTEList对象 * @throws Exception */ public List<mvnforumquote_Dao> get_mvnforumquote_All(String strWhere) throws Exception{ return _dal.get_mvnforumquote_All(strWhere); } /* 根据SCLTEST返回 分页数据 * * @param SCLTEST * row * @returnSCLTESTList对象 * @throws Exception */ public List<mvnforumquote_Dao> get_mvnforumquote_Page(int pageSize, int pageIndex,String strWhere) throws Exception { return _dal.get_mvnforumquote_Page(pageSize,pageIndex,strWhere); } /** * 根据MVNFORUMQUOTE返回的查询DataRow创建一个MVNFORUMQUOTEEntity对象 * @param MVNFORUMQUOTE row * @returnMVNFORUMQUOTEDictionary对象 * @throws Exception */ public Dictionary<Integer, mvnforumquote_Dao> get_mvnforumquote_Dictionary(String strWhere) throws Exception{ return _dal.get_mvnforumquote_Dictionary(strWhere); } /** * 更新MVNFORUMQUOTE字段加一 * @param FieldName * @param sid */ public int create_mvnforumquote_UpdateIncreate(String FieldName,int sid) throws Exception{ return _dal.create_mvnforumquote_UpdateIncreate( FieldName, sid); } /** * 更新MVNFORUMQUOTEInt型字段 * @param FieldName * @param Num * @param sid */ public int create_mvnforumquote_UpdateInteger(String FieldName,int Num,int sid) throws Exception{ return _dal.create_mvnforumquote_UpdateInteger( FieldName, Num, sid); } /** * 更新MVNFORUMQUOTEIString型字段 * @param FieldName * @param Value * @param sid */ public int createmvnforumquote_UpdateString(String FieldName,String Value,int sid) throws Exception{ return _dal.create_mvnforumquote_UpdateString( FieldName, Value, sid); } }
[ "279941737@qq.com" ]
279941737@qq.com
a28b8d685a127625bff079980a480decf42b7a1d
c76b1c837fbd6e158def62c0ec9b3acb3566a790
/Android/java/doraemonkit/src/main/java/com/didichuxing/doraemonkit/kit/health/HealthFragmentChild0.java
d7df79a314d104c4ea45fb79874a78e38bd6c344
[ "Apache-2.0" ]
permissive
yanghui1216/DoraemonKit
c786d0e1c7c39f03ff29a736697fae00c0e1798d
c461eaff8b9ed0d2e867d62d051acd9ce590bb8b
refs/heads/master
2023-05-25T12:17:50.989860
2021-05-31T08:48:42
2021-05-31T08:48:42
368,030,063
1
0
Apache-2.0
2021-05-30T04:08:19
2021-05-17T02:14:34
Java
UTF-8
Java
false
false
7,023
java
package com.didichuxing.doraemonkit.kit.health; import android.content.DialogInterface; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AlertDialog; import com.didichuxing.doraemonkit.util.AppUtils; import com.didichuxing.doraemonkit.util.ToastUtils; import com.didichuxing.doraemonkit.R; import com.didichuxing.doraemonkit.config.GlobalConfig; import com.didichuxing.doraemonkit.constant.DoKitConstant; import com.didichuxing.doraemonkit.kit.core.BaseFragment; import com.didichuxing.doraemonkit.util.DoKitCommUtil; import com.didichuxing.doraemonkit.util.LogHelper; import com.didichuxing.doraemonkit.widget.dialog.DialogListener; import com.didichuxing.doraemonkit.widget.dialog.DialogProvider; import com.didichuxing.doraemonkit.widget.dialog.UniversalDialogFragment; /** * 健康体检fragment */ public class HealthFragmentChild0 extends BaseFragment { TextView mTitle; ImageView mController; UserInfoDialogProvider mUserInfoDialogProvider; @Override protected int onRequestLayout() { return R.layout.dk_fragment_health_child0; } @Override public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); if (getActivity() == null) { return; } mTitle = findViewById(R.id.tv_title); mController = findViewById(R.id.iv_btn); if (DoKitConstant.APP_HEALTH_RUNNING) { mTitle.setVisibility(View.VISIBLE); mController.setImageResource(R.mipmap.dk_health_stop); } else { mTitle.setVisibility(View.INVISIBLE); mController.setImageResource(R.mipmap.dk_health_start); } mUserInfoDialogProvider = new UserInfoDialogProvider(null, new DialogListener() { @Override public boolean onPositive() { if (mUserInfoDialogProvider != null) { //上传健康体检数据 boolean isCheck = mUserInfoDialogProvider.uploadAppHealthInfo(new UploadAppHealthCallback() { @Override public void onSuccess(String response) { LogHelper.i(TAG, "上传成功===>" + response); ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_upload_successed)); //重置状态 GlobalConfig.setAppHealth(false); DoKitConstant.APP_HEALTH_RUNNING = false; mTitle.setVisibility(View.INVISIBLE); mController.setImageResource(R.mipmap.dk_health_start); //关闭健康体检监控 AppHealthInfoUtil.getInstance().stop(); AppHealthInfoUtil.getInstance().release(); } @Override public void onError(String response) { LogHelper.e(TAG, "error response===>" + response); ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_upload_failed)); } }); return isCheck; } return true; } @Override public boolean onNegative() { return true; } @Override public void onCancel() { ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_upload_droped)); //重置状态 GlobalConfig.setAppHealth(false); DoKitConstant.APP_HEALTH_RUNNING = false; mTitle.setVisibility(View.INVISIBLE); mController.setImageResource(R.mipmap.dk_health_start); //关闭健康体检监控 AppHealthInfoUtil.getInstance().stop(); AppHealthInfoUtil.getInstance().release(); } }); mController.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (getActivity() == null) { return; } //当前处于健康体检状态 if (DoKitConstant.APP_HEALTH_RUNNING) { if (mUserInfoDialogProvider != null) { showDialog(mUserInfoDialogProvider); } } else { new AlertDialog.Builder(getActivity()) .setTitle(DoKitCommUtil.getString(R.string.dk_health_upload_title)) .setMessage(DoKitCommUtil.getString(R.string.dk_health_upload_message)) .setCancelable(false) .setPositiveButton("ok", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); if (mController != null) { ToastUtils.showShort(DoKitCommUtil.getString(R.string.dk_health_funcation_start)); GlobalConfig.setAppHealth(true); DoKitConstant.APP_HEALTH_RUNNING = true; //重启app mController.postDelayed(new Runnable() { @Override public void run() { AppUtils.relaunchApp(); android.os.Process.killProcess(android.os.Process.myPid()); System.exit(1); } }, 2000); } } }) .setNegativeButton("cancel", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }).show(); } } }); } @Override public void showDialog(DialogProvider provider) { UniversalDialogFragment dialog = new UniversalDialogFragment(); provider.setHost(dialog); dialog.setProvider(provider); provider.show(getChildFragmentManager()); } }
[ "jackjintai@didiglobal.com" ]
jackjintai@didiglobal.com
74b4e8759ce519571b23b6f058cedf30c6664f4c
4da9097315831c8639a8491e881ec97fdf74c603
/src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/internal/vision/zzaa.java
f61aefca24eaace1ac7b2bfe1ae39d071be65fdd
[ "Apache-2.0" ]
permissive
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
5c3c11af285cf6f032b7c207e457f4c9a5b0c7e1
25c26a4cc59a3f3e575f617b59acc202ee6ee48a
refs/heads/main
2023-08-11T06:17:05.659651
2021-10-01T08:48:06
2021-10-01T08:48:06
410,595,708
1
1
null
null
null
null
UTF-8
Java
false
false
365
java
package com.google.android.gms.internal.vision; import android.os.IInterface; import android.os.RemoteException; import com.google.android.gms.dynamic.IObjectWrapper; /* compiled from: com.google.android.gms:play-services-vision@@19.0.0 */ public interface zzaa extends IInterface { zzy zza(IObjectWrapper iObjectWrapper, zzah zzah) throws RemoteException; }
[ "57108396+atul-vyshnav@users.noreply.github.com" ]
57108396+atul-vyshnav@users.noreply.github.com
e64b6ba33fd634bcc4f8c13253c1c269e19e19d4
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13372-9-15-MOEAD-WeightedSum:TestLen:CallDiversity/org/xwiki/extension/xar/internal/handler/packager/Packager_ESTest_scaffolding.java
0982542b489a040f5fe14a20ea6cbf5a08750d60
[]
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
462
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Wed Apr 08 06:47:29 UTC 2020 */ package org.xwiki.extension.xar.internal.handler.packager; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class Packager_ESTest_scaffolding { // Empty scaffolding for empty test suite }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
aeafdb7606a6106eabe537d56144a8eb9e053ea6
0480fe12a04765b390606203deeb94224d02660c
/src/main/java/com/fmbah/netty/nio7/discard/NioDiscardServerHandler.java
6b42f3dbff851c5da08184ac065be2acbc62ec40
[]
no_license
fmbah/netty_lecture
8082f44635e793d530b5ebcac4d3d0af26159bb1
e5d8a214979692538cada99fcafb1f1a977fa05c
refs/heads/master
2020-04-07T20:27:48.548316
2019-03-20T09:32:23
2019-03-20T09:32:23
158,689,251
1
0
null
null
null
null
UTF-8
Java
false
false
849
java
package com.fmbah.netty.nio7.discard; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @ClassName NioDiscardServerHandler * @Description * @Author root * @Date 18-11-27 下午5:02 * @Version 1.0 **/ public class NioDiscardServerHandler extends SimpleChannelInboundHandler<Object> { static final Logger logger = LoggerFactory.getLogger(NioDiscardServerHandler.class); @Override protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception { logger.info("ctx channel {} received: {}", ctx.channel(), msg); } @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { cause.printStackTrace(); ctx.close(); } }
[ "807966224@qq.com" ]
807966224@qq.com
556c5eb387516532a271ec39bc0a215cf2c4847e
3349bbe24e91033262a53c745f82f006f540c29e
/com/planet_ink/coffee_mud/Commands/AutoInvoke.java
83a9032387103235c65a052eb0d4acafdd91e0e2
[ "Apache-2.0" ]
permissive
mikepitts25/Capstone-MUD
dbf43f35f9066c876be4019d26400af2d29401e2
60f18713a35a659d40781d8ac5c91e583e01c202
refs/heads/master
2021-01-22T07:42:59.034694
2017-09-04T02:44:49
2017-09-04T02:44:49
102,310,650
0
0
null
null
null
null
UTF-8
Java
false
false
7,827
java
package com.planet_ink.coffee_mud.Commands; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.planet_ink.coffee_mud.CharClasses.interfaces.*; import com.planet_ink.coffee_mud.Commands.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.*; import com.planet_ink.coffee_mud.Common.interfaces.Session.InputCallback; import com.planet_ink.coffee_mud.Exits.interfaces.*; import com.planet_ink.coffee_mud.Items.interfaces.*; import com.planet_ink.coffee_mud.Libraries.interfaces.*; import com.planet_ink.coffee_mud.Locales.interfaces.*; import com.planet_ink.coffee_mud.MOBS.interfaces.*; import com.planet_ink.coffee_mud.Races.interfaces.*; import java.util.*; /* Copyright 2005-2017 Bo Zimmerman 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. */ public class AutoInvoke extends StdCommand { public AutoInvoke(){} private final String[] access=I(new String[]{"AUTOINVOKE"}); @Override public String[] getAccessWords() { return access; } protected enum AutoInvokeCommand { TOGGLE, INVOKE, UNINVOKE } protected void autoInvoke(MOB mob, Ability foundA, String s, Set<String> effects, AutoInvokeCommand cmd) { final PlayerStats pStats = mob.playerStats(); if(foundA==null) mob.tell(L("'@x1' is invalid.",s)); else if(effects.contains(foundA.ID())) { if((cmd == AutoInvokeCommand.UNINVOKE) || (cmd == AutoInvokeCommand.TOGGLE)) { if(pStats != null) pStats.addAutoInvokeList(foundA.ID()); foundA=mob.fetchEffect(foundA.ID()); if(foundA!=null) { mob.delEffect(foundA); if(mob.fetchEffect(foundA.ID())!=null) mob.tell(L("@x1 failed to successfully deactivate.",foundA.name())); else mob.tell(L("@x1 successfully deactivated.",foundA.name())); } } } else { if((cmd == AutoInvokeCommand.INVOKE) || (cmd == AutoInvokeCommand.TOGGLE)) { if(pStats != null) pStats.removeAutoInvokeList(foundA.ID()); foundA.autoInvocation(mob, true); if(mob.fetchEffect(foundA.ID())!=null) mob.tell(L("@x1 successfully invoked.",foundA.name())); else mob.tell(L("@x1 failed to successfully invoke.",foundA.name())); } } } @Override public boolean execute(final MOB mob, final List<String> commands, final int metaFlags) throws java.io.IOException { final List<Ability> abilities=new Vector<Ability>(); final Set<String> abilityids=new TreeSet<String>(); for(int a=0;a<mob.numAbilities();a++) { final Ability A=mob.fetchAbility(a); if((A!=null) &&(A.isAutoInvoked()) &&((A.classificationCode()&Ability.ALL_ACODES)!=Ability.ACODE_LANGUAGE) &&((A.classificationCode()&Ability.ALL_ACODES)!=Ability.ACODE_PROPERTY)) { abilities.add(A); abilityids.add(A.ID()); } } final Set<String> effects=new TreeSet<String>(); for(int a=0;a<mob.numEffects();a++) { final Ability A=mob.fetchEffect(a); if((A!=null) &&(abilityids.contains(A.ID())) &&(!A.isSavable())) effects.add(A.ID()); } abilityids.clear(); Collections.sort(abilities,new Comparator<Ability>() { @Override public int compare(Ability o1, Ability o2) { if(o1==null) { if(o2==null) return 0; return -1; } else if(o2==null) return 1; else return o1.name().compareToIgnoreCase(o2.name()); } }); final StringBuffer str=new StringBuffer(L("^xAuto-invoking abilities:^?^.\n\r^N")); int col=0; for(Ability A : abilities) { if(A!=null) { if(effects.contains(A.ID())) str.append(L("@x1.^xACTIVE^?^.^N ",CMStrings.padRightWith(A.Name(),'.',29))); else str.append(L("@x1^xINACTIVE^?^.^N",CMStrings.padRightWith(A.Name(),'.',29))); if(++col==2) { col=0; str.append("\n\r"); } else str.append(" "); } } if(col==1) str.append("\n\r"); mob.tell(str.toString()); final Session session=mob.session(); if(session!=null) { final AutoInvoke me=this; session.prompt(new InputCallback(InputCallback.Type.PROMPT,"",0) { @Override public void showPrompt() { session.promptPrint(L("Enter one to toggle or RETURN: ")); } @Override public void timedOut() { } @Override public void callBack() { String s=this.input; if(s.trim().length()==0) return; AutoInvokeCommand cmd=AutoInvokeCommand.TOGGLE; if(s.toUpperCase().startsWith("INVOKE ")) { s=s.substring(7).trim(); cmd=AutoInvokeCommand.INVOKE; } else if(s.toUpperCase().startsWith("UNINVOKE ")) { s=s.substring(9).trim(); cmd=AutoInvokeCommand.UNINVOKE; } boolean startsWith=s.endsWith("*"); if(startsWith) s=s.substring(0,s.length()-1).toLowerCase(); boolean endsWith=s.startsWith("*"); if(endsWith) s=s.substring(1).toLowerCase(); if(startsWith || endsWith) { for(Ability A : abilities) { if((A!=null) &&(A.name().equalsIgnoreCase(s) || (startsWith && A.name().toLowerCase().startsWith(s)) || (endsWith && A.name().toLowerCase().endsWith(s)))) { me.autoInvoke(mob, A, s, effects, cmd); } } } else if(s.length()>0) { Ability foundA=null; for(Ability A : abilities) { if((A!=null) &&(A.name().equalsIgnoreCase(s) || (startsWith && A.name().toLowerCase().startsWith(s)) || (endsWith && A.name().toLowerCase().endsWith(s)))) { foundA = A; break; } } if(foundA==null) { for(Ability A : abilities) { if((A!=null)&&(CMLib.english().containsString(A.name(),s))) { foundA = A; break; } } } me.autoInvoke(mob, foundA, s, effects, cmd); } mob.recoverCharStats(); mob.recoverPhyStats(); mob.recoverMaxState(); if(mob.location()!=null) mob.location().recoverRoomStats(); mob.recoverCharStats(); mob.recoverPhyStats(); mob.recoverMaxState(); CMLib.threads().executeRunnable(new Runnable() { public void run() { session.prompt(new InputCallback(InputCallback.Type.PROMPT,"",0) { @Override public void showPrompt() { session.promptPrint(L("Enter to continue: ")); } @Override public void timedOut() { } @Override public void callBack() { try { me.execute(mob, commands, metaFlags); } catch(Exception e) { } } }); } }); } }); } return false; } @Override public boolean canBeOrdered() { return true; } }
[ "bo@zimmers.net" ]
bo@zimmers.net
1b58ac081618585d9fe94f7e80d8275aa3d5de52
092c76fcc6c411ee77deef508e725c1b8277a2fe
/hybris/bin/ext-template/ychinaacceleratorstorefront/web/src/de/hybris/platform/ychinaaccelerator/storefront/interceptors/beforecontroller/AjaxHardLoginBeforeControllerHandler.java
3d940833fdd4b02ef8114f72bd66be19ab7310ea
[ "MIT" ]
permissive
BaggaShivanshu2/hybris-bookstore-tutorial
4de5d667bae82851fe4743025d9cf0a4f03c5e65
699ab7fd8514ac56792cb911ee9c1578d58fc0e3
refs/heads/master
2022-11-28T12:15:32.049256
2020-08-05T11:29:14
2020-08-05T11:29:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,797
java
/* * * [y] hybris Platform * * Copyright (c) 2000-2015 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * */ package de.hybris.platform.ychinaaccelerator.storefront.interceptors.beforecontroller; import de.hybris.platform.acceleratorcms.services.CMSPageContextService; import de.hybris.platform.servicelayer.user.UserService; import de.hybris.platform.ychinaaccelerator.storefront.interceptors.BeforeControllerHandler; import java.io.IOException; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.web.method.HandlerMethod; /** * Spring MVC interceptor that validates that the spring security user and the hybris session user are in sync. If the * spring security user and the hybris session user are not in sync then the session is invalidated and the visitor is * redirect to the homepage. */ public class AjaxHardLoginBeforeControllerHandler implements BeforeControllerHandler { private static final Logger LOG = Logger.getLogger(AjaxHardLoginBeforeControllerHandler.class); @Resource(name = "userService") private UserService userService; @Resource(name = "cmsPageContextService") private CMSPageContextService cmsPageContextService; @Override public boolean beforeController(final HttpServletRequest request, final HttpServletResponse response, final HandlerMethod handler) throws IOException { // Skip this security check when run from within the WCMS Cockpit if (isPreviewDataModelValid(request)) { return true; } final String islocalSubmit = request.getParameter("islocalSubmit"); final Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (authentication != null) { final Object principal = authentication.getPrincipal(); if (principal instanceof String) { final String springSecurityUserId = (String) principal; final String hybrisUserId = userService.getCurrentUser().getUid(); if (!springSecurityUserId.equals(hybrisUserId)) { LOG.error("User miss-match springSecurityUserId [" + springSecurityUserId + "] hybris session user [" + hybrisUserId + "]. Invalidating session."); // Invalidate session and redirect to the root page request.getSession().invalidate(); if ("1".equals(islocalSubmit)) { final String encodedRedirectUrl = response.encodeRedirectURL(request.getContextPath() + "/checkout/multi/timeout"); response.sendRedirect(encodedRedirectUrl); return false; } if ("2".equals(islocalSubmit)) { final String encodedRedirectUrl = response.encodeRedirectURL(request.getContextPath() + "/login/checkout"); response.sendRedirect(encodedRedirectUrl); return false; } final String encodedRedirectUrl = response.encodeRedirectURL(request.getContextPath() + "/"); response.sendRedirect(encodedRedirectUrl); return false; } } } return true; } /** * Checks whether there is a preview data setup for the current request * * @param httpRequest * current request * @return true whether is valid otherwise false */ protected boolean isPreviewDataModelValid(final HttpServletRequest httpRequest) { return cmsPageContextService.getCmsPageRequestContextData(httpRequest).getPreviewData() != null; } }
[ "xelilim@hotmail.com" ]
xelilim@hotmail.com
4e6a6791bca0d6272f2746d1fcaf8c54a2649027
ed166738e5dec46078b90f7cca13a3c19a1fd04b
/minor/guice-OOM-error-reproduction/src/main/java/gen/Q_Gen84.java
f27485c34b44ed5f5c056f6183dd183adee8e5f8
[]
no_license
michalradziwon/script
39efc1db45237b95288fe580357e81d6f9f84107
1fd5f191621d9da3daccb147d247d1323fb92429
refs/heads/master
2021-01-21T21:47:16.432732
2016-03-23T02:41:50
2016-03-23T02:41:50
22,663,317
2
0
null
null
null
null
UTF-8
Java
false
false
326
java
package gen; public class Q_Gen84 { @com.google.inject.Inject public Q_Gen84(Q_Gen85 q_gen85){ System.out.println(this.getClass().getCanonicalName() + " created. " + q_gen85 ); } @com.google.inject.Inject public void injectInterfaceWithoutImpl(gen.InterfaceWithoutImpl i){} // should expolode :) }
[ "michal.radzi.won@gmail.com" ]
michal.radzi.won@gmail.com
83fa7ac41dc64b16497993cbffb85112d94f21fd
fb5a03608e1eb84f84b6f325192b8272f1dd24d5
/src/main/java/io/github/jhipster/application/web/rest/util/HeaderUtil.java
7afb44e46f3c767f71fc33a8a2102e3e83b8275c
[]
no_license
anshu0646/ansh
abfc04853a4f5c6fd45378fbe7586ba321408e81
8aa16e554a99d003908cb30cc0c369f612d856c1
refs/heads/master
2021-05-08T21:14:52.884653
2018-01-31T03:51:46
2018-01-31T03:51:46
119,631,752
0
1
null
2020-09-18T06:55:35
2018-01-31T03:51:44
Java
UTF-8
Java
false
false
1,558
java
package io.github.jhipster.application.web.rest.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpHeaders; /** * Utility class for HTTP headers creation. */ public final class HeaderUtil { private static final Logger log = LoggerFactory.getLogger(HeaderUtil.class); private HeaderUtil() { } public static HttpHeaders createAlert(String message, String param) { HttpHeaders headers = new HttpHeaders(); headers.add("X-anshApp-alert", message); headers.add("X-anshApp-params", param); return headers; } public static HttpHeaders createEntityCreationAlert(String entityName, String param) { return createAlert("A new " + entityName + " is created with identifier " + param, param); } public static HttpHeaders createEntityUpdateAlert(String entityName, String param) { return createAlert("A " + entityName + " is updated with identifier " + param, param); } public static HttpHeaders createEntityDeletionAlert(String entityName, String param) { return createAlert("A " + entityName + " is deleted with identifier " + param, param); } public static HttpHeaders createFailureAlert(String entityName, String errorKey, String defaultMessage) { log.error("Entity processing failed, {}", defaultMessage); HttpHeaders headers = new HttpHeaders(); headers.add("X-anshApp-error", defaultMessage); headers.add("X-anshApp-params", entityName); return headers; } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
7f54e1ffa4afe4ef322f245abf1ef4b965a00a46
a715e8312a90d099b72c24e5b7da1372c9fe67fb
/python/ipnb/src/org/jetbrains/plugins/ipnb/editor/panels/code/IpnbImagePanel.java
cd79a38f3e2365391fe37d3760ce748f18c38f3f
[ "Apache-2.0" ]
permissive
wiltonlazary/bugvm-studio
ff98c1beca1f890013aa05ecd67f137a14a70c32
5861389424a51181c58178576c78cf35c0ceb1b5
refs/heads/master
2021-01-24T20:58:41.730805
2015-12-18T19:34:14
2015-12-18T19:34:14
56,322,614
2
1
null
2016-04-15T13:34:56
2016-04-15T13:34:56
null
UTF-8
Java
false
false
1,424
java
package org.jetbrains.plugins.ipnb.editor.panels.code; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.util.text.StringUtil; import com.intellij.ui.components.JBLabel; import org.jetbrains.annotations.NotNull; import org.jetbrains.plugins.ipnb.editor.IpnbEditorUtil; import org.jetbrains.plugins.ipnb.format.cells.output.IpnbImageOutputCell; import sun.misc.BASE64Decoder; import javax.imageio.ImageIO; import javax.swing.*; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.IOException; public class IpnbImagePanel extends IpnbCodeOutputPanel<IpnbImageOutputCell> { private static final Logger LOG = Logger.getInstance(IpnbImagePanel.class); public IpnbImagePanel(@NotNull final IpnbImageOutputCell cell) { super(cell); } @Override protected JComponent createViewPanel() { final String png = myCell.getBase64String(); final JBLabel label = new JBLabel(); if (!StringUtil.isEmptyOrSpaces(png)) { try { byte[] btDataFile = new BASE64Decoder().decodeBuffer(png); BufferedImage image = ImageIO.read(new ByteArrayInputStream(btDataFile)); label.setIcon(new ImageIcon(image)); } catch (IOException e) { LOG.error("Couldn't parse image. " + e.getMessage()); } } label.setBackground(IpnbEditorUtil.getBackground()); label.setOpaque(true); return label; } }
[ "github@ibinti.com" ]
github@ibinti.com
1d448b9fa55cd869030535f3975752f4d8d0f660
6a6a54776b6fecd8c35d6474d23a05be0bc1100e
/.history/Assignment/Main_20211022163253.java
8626618a87b9284ea36f8f936a2af904f45b86f0
[]
no_license
Tuns0704/DataStructures-and-Algorithms
6793cc03956da47452c7f20742c79c31ef76fc36
655aa977f83f15778bc4007edbcd216dd94af789
refs/heads/master
2023-08-28T16:47:51.986001
2021-11-04T05:39:25
2021-11-04T05:39:25
424,480,787
0
0
null
null
null
null
UTF-8
Java
false
false
6,699
java
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // Create a collection container object ArrayList<Student> list = new ArrayList<>(); lo: while (true) { // 1. Build the main interface menu System.out.println("--------Welcome to the student management system--------"); System.out.println("1. Add students"); System.out.println("2. Delete students"); System.out.println("3. Revise students"); System.out.println("4. View students"); System.out.println("5. Sign out"); System.out.println("Please enter your choice:"); System.out.println("--------------------------------------------------------"); String choice = sc.next(); switch (choice) { case "1": //System.out.println("add student"); addStudent(list); break; case "2": //System.out.println("delete student"); deleteStudent(list); break; case "3": //System.out.println (the "revised student"); updateStudent(list); break; case "4": // System.out.println("view students"); queryStudents(list); break; case "5": System.out.println("Thank you for your use"); break lo; default: System.out.println("Your input is wrong"); break; } } } // How to modify students public static void updateStudent(ArrayList<Student> list) { System.out.println("Please input the student number you want to modify:"); Scanner sc = new Scanner(System.in); String updateSid = sc.next(); // 3. Call getIndex method to find the index position of the student number in the collection int index = getIndex(list,updateSid); // 4. Judge whether the student number exists in the set according to the index if(index == -1){ // Does not exist: prompt System.out.println("No information, Please re-enter"); }else{ // Presence: receiving new student information System.out.println("Please enter a new student name:"); String name = sc.next(); System.out.println("Please enter the new student age:"); int age = sc.nextInt(); System.out.println("Please enter a new student's birthday:"); String birthday = sc.next(); // Encapsulate as a new student object Student stu = new Student(updateSid, name, age, birthday); // Call the set method of the collection to complete the modification list.set(index, stu); System.out.println("Modified successfully!"); } } // How to delete students public static void deleteStudent(ArrayList<Student> list) { // 1. Give prompt information (please input the student number you want to delete) System.out.println("Please enter the student number you want to delete:"); // 2. The keyboard receives the student number to be deleted Scanner sc = new Scanner(System.in); String deleteSid = sc.next(); // 3. Call getIndex method to find the index position of the student number in the collection int index = getIndex(list,deleteSid); // 4. Judge whether the student number exists in the set according to the index if(index == -1){ // Does not exist: prompt System.out.println("No information, Please re-enter"); }else{ // Existing: delete list.remove(index); System.out.println("Successfully deleted!"); } } // How to view students public static void queryStudents(ArrayList<Student> list) { // 1. Judge whether there is data in the set, if not, give a prompt directly if(list.size() == 0){ System.out.println("no message, Please add and query again"); return; } // 2. Presence: displays the header data System.out.println("Student ID\t Full name\t Age\t Birthday"); // 3. Traverse the collection, get the information of each student object, and print it on the console for (int i = 0; i < list.size(); i++) { Student stu = list.get(i); System.out.println(stu.getSid() + "\t" + stu.getName() + "\t" + stu.getAge() + "\t\t" + stu.getBirthday()); } } // How to add students public static void addStudent(ArrayList<Student> list) { Scanner sc = new Scanner(System.in); // 1. Give the input prompt information String sid="", name = "", birthday=""; int age; while(true){ System.out.println("Please input student number:"); sid = sc.next(); int index = getIndex(list, sid); if(index == -1){ // sid does not exist, student number can be used break; } } System.out.println("Please enter your name:"); name = sc.next(); System.out.println("Please enter age:"); age = sc.nextInt(); System.out.println("Please enter your birthday:"); birthday = sc.next(); // 2. Encapsulate the information entered by the keyboard as the student object Student stu = new Student(sid,name,age,birthday); // 3. Add the encapsulated Student object to the collection container list.add(stu); // 4. Give the message of adding success System.out.println("Added successfully!"); } /* getIndex : Receive a collection object, receive a student number Find the index position of the student number in the collection */ public static int getIndex(ArrayList<Student> list, String sid){ // 1. Suppose the incoming student number does not exist in the set int index = -1; // 2. Traverse the collection, get each student object, ready to search for (int i = 0; i < list.size(); i++) { Student stu = list.get(i); // 3. Get the student number of each student String id = stu.getSid(); // 4. Use the obtained student number to compare with the incoming student number if(id.equals(sid)){ // Existence: let the index variable record the correct index position index = i; } } return index; } }
[ "tuanmoitap@gmail.com" ]
tuanmoitap@gmail.com
e19a218e12ef12abe3ee987c035efd713eecab67
3e32df055027c751de161a9d978ad4823f46a38c
/client/src/main/java/nz/co/fitnet/wizard/HelpAction.java
c888e10bd97bee091573a3671c1c915b616788b2
[]
no_license
williamanzac/dnd-tools
11d28c7130c6cfcc3f8050085f0d7da663c192d3
aeb6530920a5c7aba095f1944a49a2d98bc5f9c1
refs/heads/master
2023-08-16T05:42:49.673734
2023-03-30T19:28:10
2023-03-30T19:28:10
123,676,485
0
0
null
2023-08-15T14:59:43
2018-03-03T09:09:13
Java
UTF-8
Java
false
false
1,843
java
/** * Wizard Framework * Copyright 2004 - 2005 Andrew Pietsch * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Id: HelpAction.java,v 1.3 2005/05/16 23:06:57 pietschy Exp $ */ package nz.co.fitnet.wizard; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import javax.swing.Action; /** * */ class HelpAction extends AbstractAction { /** * */ private static final long serialVersionUID = 4960250970019852402L; private final Wizard wizard; private HelpBroker broker; protected HelpAction(final Wizard wizard) { super(I18n.getString("help.text")); this.wizard = wizard; putValue(Action.MNEMONIC_KEY, new Integer(I18n.getMnemonic("help.mnemonic"))); wizard.addPropertyChangeListener("helpBroker", evt -> configureState()); configureState(); } @Override public void actionPerformed(final ActionEvent e) { final HelpBroker helpBroker = wizard.getHelpBroker(); if (helpBroker != null) { helpBroker.activateHelp(wizard, wizard.getModel()); } } private void configureState() { setEnabled(wizard.getHelpBroker() != null); } }
[ "william.anzac@gmail.com" ]
william.anzac@gmail.com
daf6266126be46ab5de75497c71786cc457cc66f
7ce60ae831a4afcefe30b149ad5aa2a01c61280d
/Test Data/Comp401F16/Assignment8/Correct, Skeleton(skeleton)/Submission attachment(s)/Assignment10Skeleton/Assignment10Skeleton/src/grail/tokenBeans/commandBeans/RepeatCommandToken.java
ece47b58babac275551c6b58919bd8f6ced56f43
[]
no_license
pdewan/Comp401AllChecks
ed967cb535f1bf8c6d7777b7ca53bd6e810e5ba1
86d995defcdde2766329a6db37fdb7a54c70da4a
refs/heads/master
2023-06-26T13:01:27.009697
2023-06-12T06:05:01
2023-06-12T06:05:01
66,742,312
0
0
null
2022-06-30T14:43:42
2016-08-28T00:49:37
Java
UTF-8
Java
false
false
477
java
package grail.tokenBeans.commandBeans; import grail.tokenBeans.WordToken; import util.annotations.EditablePropertyNames; import util.annotations.PropertyNames; import util.annotations.StructurePattern; import util.annotations.StructurePatternNames; import util.annotations.Tags; @Tags({"Repeat"}) @StructurePattern(StructurePatternNames.BEAN_PATTERN) @PropertyNames({"Input", "Value"}) @EditablePropertyNames({"Input"}) public class RepeatCommandToken extends WordToken { }
[ "avitkus7@gmail.com" ]
avitkus7@gmail.com
8cc8f5e707afca60732364b853d6a1505b4ecae1
cbdb7891230c83b61be509bc0c8cd02ff5f420d8
/jcst/jcst_common_webservice/src/main/java/com/kaiwait/webservice/mst/UserInitInfo.java
cbc55e1e4a1641bdff6c0dd0b18eb29351f1b488
[]
no_license
zhanglixye/jcyclic
87e26d1412131e441279240b4468993cb9b08bc3
8a311f8b1e6a81fb40f093d725b5182763d6624e
refs/heads/master
2023-01-04T11:23:22.001517
2020-11-02T05:20:08
2020-11-02T05:20:08
309,265,334
0
0
null
null
null
null
UTF-8
Java
false
false
1,128
java
package com.kaiwait.webservice.mst; import javax.annotation.Resource; import org.springframework.stereotype.Component; import com.kaiwait.bean.mst.io.UserInfoInput; import com.kaiwait.core.process.SingleFunctionIF; import com.kaiwait.core.process.ValidateResult; import com.kaiwait.service.mst.CommonmstService; import com.kaiwait.service.mst.UserService; import com.kaiwait.thrift.common.server.annotation.MatchEnum; import com.kaiwait.thrift.common.server.annotation.Privilege; @Component("userInitInfo") @Privilege(keys= {"76","77","78"}, match=MatchEnum.ANY) public class UserInitInfo implements SingleFunctionIF<UserInfoInput>{ @Resource private UserService userService; @Resource private CommonmstService commService; @Override public Object process(UserInfoInput inputParam) { return userService.userInfoInit(inputParam.getUserCD(),inputParam.getCompanyID()); } @Override public ValidateResult validate(UserInfoInput inputParam) { return null; } @SuppressWarnings("rawtypes") @Override public Class getParamType() { // TODO Auto-generated method stub return UserInfoInput.class; } }
[ "1364969970@qq.com" ]
1364969970@qq.com
7834d40690d5773d39207f54d7712e6cdc4ed4f9
8678444323d32eb1f8b01b1484b4ec42c5f8902d
/intellij/src/main/java/net/minecraft/world/storage/loot/functions/SetCount.java
6f38d6abdffc3a2ac2de76c9a70b49e20672f5bd
[]
no_license
Sub2Tastic/MCP
65bf7d1c1d43030c7d8e22e43db09bda16ca2f79
eea55cac7399c6c60d1789e9529606b04f7384fe
refs/heads/master
2022-11-11T12:19:17.486438
2020-07-02T17:57:13
2020-07-02T17:57:13
276,683,273
0
0
null
null
null
null
UTF-8
Java
false
false
1,736
java
package net.minecraft.world.storage.loot.functions; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonObject; import com.google.gson.JsonSerializationContext; import java.util.Random; import net.minecraft.item.ItemStack; import net.minecraft.util.JsonUtils; import net.minecraft.util.ResourceLocation; import net.minecraft.world.storage.loot.LootContext; import net.minecraft.world.storage.loot.RandomValueRange; import net.minecraft.world.storage.loot.conditions.LootCondition; public class SetCount extends LootFunction { private final RandomValueRange countRange; public SetCount(LootCondition[] p_i46623_1_, RandomValueRange p_i46623_2_) { super(p_i46623_1_); this.countRange = p_i46623_2_; } public ItemStack func_186553_a(ItemStack p_186553_1_, Random p_186553_2_, LootContext p_186553_3_) { p_186553_1_.setCount(this.countRange.generateInt(p_186553_2_)); return p_186553_1_; } public static class Serializer extends LootFunction.Serializer<SetCount> { protected Serializer() { super(new ResourceLocation("set_count"), SetCount.class); } public void serialize(JsonObject object, SetCount functionClazz, JsonSerializationContext serializationContext) { object.add("count", serializationContext.serialize(functionClazz.countRange)); } public SetCount deserialize(JsonObject object, JsonDeserializationContext deserializationContext, LootCondition[] conditionsIn) { return new SetCount(conditionsIn, (RandomValueRange)JsonUtils.deserializeClass(object, "count", deserializationContext, RandomValueRange.class)); } } }
[ "theelectriczlime@gmail.com" ]
theelectriczlime@gmail.com
465099bf562e9b0b0340ac9f8e4e23acba16fa28
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/JetBrains--intellij-community/41c366b566ccf99fb0872642f0c0171e1055e114/after/TargetFilter.java
e709906e8c1a994103d8c42465c780643f69652d
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
1,771
java
package com.intellij.lang.ant.config.impl; import com.intellij.lang.ant.config.AntBuildTarget; import com.intellij.openapi.util.JDOMExternalizable; import org.jdom.Element; import org.jetbrains.annotations.NonNls; public final class TargetFilter implements JDOMExternalizable { @NonNls private static final String FILTER_TARGET_NAME = "targetName"; @NonNls private static final String FILTER_IS_VISIBLE = "isVisible"; private String myTargetName; private boolean myVisible; private String myDescription = ""; public TargetFilter() {} public TargetFilter(String targetName, boolean isVisible) { myTargetName = targetName; myVisible = isVisible; } public String getTargetName() { return myTargetName; } public boolean isVisible() { return myVisible; } public void setVisible(boolean isVisible) { myVisible = isVisible; } public void readExternal(Element element) { myTargetName = element.getAttributeValue(FILTER_TARGET_NAME); myVisible = Boolean.valueOf(element.getAttributeValue(FILTER_IS_VISIBLE)); } public void writeExternal(Element element) { element.setAttribute(FILTER_TARGET_NAME, getTargetName()); element.setAttribute(FILTER_IS_VISIBLE, Boolean.valueOf(isVisible()).toString()); } public String getDescription() { return myDescription; } public void updateDescription(AntBuildTarget target) { if (target == null) return; myDescription = target.getNotEmptyDescription(); } public static TargetFilter fromTarget(AntBuildTarget target) { TargetFilter filter = new TargetFilter(target.getName(), target.isDefault()); filter.myDescription = target.getNotEmptyDescription(); filter.myVisible = (filter.myDescription != null); return filter; } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
f7d7875e7927a76ab269abc6afe0a1e6daf8b896
fd36aa88b84940465de46cea1e8bfd8af00ed502
/src/main/java/org/springframework/social/lastfm/pseudooauth2/connect/LastFmPseudoOAuth2AccessGrant.java
bea1138deb9e9b446fee3bd93a2ec329427af536
[]
no_license
eltmon/spring-social-lastfm
be461cfa32b5ca42a7926e3b061929250123a558
c74ed59cae375bcdd3a98f04a65b380c31e924f3
refs/heads/master
2021-01-20T14:02:33.116497
2014-03-15T00:29:32
2014-03-15T00:29:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,702
java
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.social.lastfm.pseudooauth2.connect; import org.springframework.social.lastfm.auth.LastFmAccessGrant; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.ObjectMapper; /** * @author Michael Lavelle */ public class LastFmPseudoOAuth2AccessGrant extends LastFmAccessGrant { private static final long serialVersionUID = 1L; private static ObjectMapper objectMapper = new ObjectMapper(); @JsonCreator public LastFmPseudoOAuth2AccessGrant(@JsonProperty("token") String token, @JsonProperty("sessionKey") String sessionKey) { super(token, sessionKey); } public String toAccessToken() { try { return objectMapper.writeValueAsString(this); } catch (Exception e) { throw new RuntimeException(e); } } public static LastFmPseudoOAuth2AccessGrant fromAccessToken(String string) { try { return objectMapper.readValue(string, LastFmPseudoOAuth2AccessGrant.class); } catch (Exception e) { throw new RuntimeException(e); } } }
[ "michael@lavelle.name" ]
michael@lavelle.name
ed0d42ea06d56cf0eaec34bd4e66859f0f3a2847
01340816f7165798fd857f33b4b4414fa9bf192c
/src/main/java/leetcode/Eight/backspaceCompare/backspaceCompare.java
c71da942bba9ce02a939e4ca1c1806b913a04df9
[]
no_license
EarWheat/LeetCode
250f181c2c697af29ce6f76b1fdf7c7b0d7fb02c
f440e6c76efb4554e0404cacf137dc1f6677e2e1
refs/heads/master
2023-08-31T06:25:35.460107
2023-08-30T06:41:10
2023-08-30T06:41:10
145,558,499
2
1
null
2023-06-14T22:51:49
2018-08-21T12:05:56
Java
UTF-8
Java
false
false
2,495
java
package leetcode.Eight.backspaceCompare; import java.util.Queue; import java.util.Stack; import java.util.concurrent.LinkedBlockingDeque; /** * @author liuzhaoluliuzhaolu * @date 2020-10-19 10:02 * @desc 给定 S 和 T 两个字符串,当它们分别被输入到空白的文本编辑器后,判断二者是否相等,并返回结果。 # 代表退格字符。 * * 注意:如果对空文本输入退格字符,文本继续为空。 * *   * * 示例 1: * * 输入:S = "ab#c", T = "ad#c" * 输出:true * 解释:S 和 T 都会变成 “ac”。 * 示例 2: * * 输入:S = "ab##", T = "c#d#" * 输出:true * 解释:S 和 T 都会变成 “”。 * 示例 3: * * 输入:S = "a##c", T = "#a#c" * 输出:true * 解释:S 和 T 都会变成 “c”。 * 示例 4: * * 输入:S = "a#c", T = "b" * 输出:false * 解释:S 会变成 “c”,但 T 仍然是 “b”。 *   * * 提示: * * 1 <= S.length <= 200 * 1 <= T.length <= 200 * S 和 T 只含有小写字母以及字符 '#'。 * * 链接:https://leetcode-cn.com/problems/backspace-string-compare * @prd * @Modification History: * Date Author Description * ------------------------------------------ * */ public class backspaceCompare { public static boolean backspaceCompare(String S, String T) { if(S.equals(T)){ return true; } Stack stack = new Stack(); for(int i = 0; i < S.length(); i++){ if(S.charAt(i) != '#'){ stack.push(S.charAt(i)); } else { if(stack.size() > 0){ stack.pop(); } } } S = stack2String(stack); for(int i = 0; i < T.length(); i++){ if(T.charAt(i) != '#'){ stack.push(T.charAt(i)); } else { if(stack.size() > 0){ stack.pop(); } } } T = stack2String(stack); return S.equals(T); } public static String stack2String(Stack stack){ StringBuilder stringBuilder = new StringBuilder(); while (stack.size() != 0){ stringBuilder.append(stack.pop()); } return stringBuilder.toString(); } public static void main(String[] args) { // System.out.println(backspaceCompare("ab##","c#d#")); System.out.println(backspaceCompare("#####abc","abb#c")); } }
[ "2636965138@qq.com" ]
2636965138@qq.com
fe3e8869a38c6fcd6d8db50cae47846907b47519
ed5159d056e98d6715357d0d14a9b3f20b764f89
/test/irvine/oeis/a003/A003719Test.java
b113e6f26ecfc437ca90f1ca25b2bfd7f0cf23cb
[]
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
195
java
package irvine.oeis.a003; import irvine.oeis.AbstractSequenceTest; /** * Tests the corresponding class. * @author Sean A. Irvine */ public class A003719Test extends AbstractSequenceTest { }
[ "sairvin@gmail.com" ]
sairvin@gmail.com