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
ccc030da7683a02a0d14e02379e0f035d5336c06
dc0dd442a99b12eeb46c2c619afbb78a240a8c9d
/benworks-comet-common/src/main/java/benworks/comet/common/event/GeneralEvent.java
e450df9f06723bd9db539c46dc7f2c017d7d74a5
[]
no_license
benworks/benworks-comet
343fb248a5e2acda0b054ee04168644a40394d78
4b0c3e64fa49c7b11497f9a71a332f892d5490b6
refs/heads/master
2016-08-04T10:02:14.844141
2013-04-25T19:03:13
2013-04-25T19:03:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
259
java
package benworks.comet.common.event; /** * 通用事件模型 * * @author benworks * */ public interface GeneralEvent { /** * 被listener处理过的次数 * * @return */ int getProcessCount(); void setProcessCount(int processCount); }
[ "aben328@gmail.com" ]
aben328@gmail.com
89e26f1b2275694c2c225960e485a2f739a399c5
757360b8d8a36a2c1eecc6e14a8f53fab1092fda
/android/widget/AdapterViewAnimator.java
0ff8073ede31fb7236712efa11daf4d6a0fbd4ec
[]
no_license
haigendong/AndroidDictionary
d51ef266f4684c40986286a70511a7648c1b4e33
be0c7a4508d8055d915404273339610bbf53e3fa
refs/heads/master
2022-04-13T14:36:53.280469
2020-03-26T20:21:41
2020-03-26T20:21:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,188
java
/* */ package android.widget; /* */ /* */ import android.animation.ObjectAnimator; /* */ import android.content.Context; /* */ import android.content.Intent; /* */ import android.os.Parcelable; /* */ import android.util.AttributeSet; /* */ import android.view.MotionEvent; /* */ import android.view.View; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public abstract class AdapterViewAnimator /* */ extends AdapterView<Adapter> /* */ implements Advanceable /* */ { /* */ public AdapterViewAnimator(Context context) { /* 39 */ super((Context)null); throw new RuntimeException("Stub!"); /* */ } public AdapterViewAnimator(Context context, AttributeSet attrs) { /* 41 */ super((Context)null); throw new RuntimeException("Stub!"); /* */ } public AdapterViewAnimator(Context context, AttributeSet attrs, int defStyleAttr) { /* 43 */ super((Context)null); throw new RuntimeException("Stub!"); /* */ } public AdapterViewAnimator(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { /* 45 */ super((Context)null); throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ public void setDisplayedChild(int whichChild) { /* 53 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ public int getDisplayedChild() { /* 59 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ public void showNext() { /* 65 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ public void showPrevious() { /* 71 */ throw new RuntimeException("Stub!"); /* */ } public boolean onTouchEvent(MotionEvent ev) { /* 73 */ throw new RuntimeException("Stub!"); /* */ } protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { /* 75 */ throw new RuntimeException("Stub!"); /* */ } protected void onLayout(boolean changed, int left, int top, int right, int bottom) { /* 77 */ throw new RuntimeException("Stub!"); /* */ } public Parcelable onSaveInstanceState() { /* 79 */ throw new RuntimeException("Stub!"); /* */ } public void onRestoreInstanceState(Parcelable state) { /* 81 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public View getCurrentView() { /* 91 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public ObjectAnimator getInAnimation() { /* 102 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void setInAnimation(ObjectAnimator inAnimation) { /* 113 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public ObjectAnimator getOutAnimation() { /* 124 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void setOutAnimation(ObjectAnimator outAnimation) { /* 135 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void setInAnimation(Context context, int resourceID) { /* 147 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void setOutAnimation(Context context, int resourceID) { /* 159 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void setAnimateFirstView(boolean animate) { /* 169 */ throw new RuntimeException("Stub!"); /* */ } public int getBaseline() { /* 171 */ throw new RuntimeException("Stub!"); /* */ } public Adapter getAdapter() { /* 173 */ throw new RuntimeException("Stub!"); /* */ } public void setAdapter(Adapter adapter) { /* 175 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void setRemoteViewsAdapter(Intent intent) { /* 185 */ throw new RuntimeException("Stub!"); /* */ } public void setSelection(int position) { /* 187 */ throw new RuntimeException("Stub!"); /* */ } public View getSelectedView() { /* 189 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ public void deferNotifyDataSetChanged() { /* 196 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ public boolean onRemoteAdapterConnected() { /* 202 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ public void onRemoteAdapterDisconnected() { /* 208 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ public void advance() { /* 215 */ throw new RuntimeException("Stub!"); /* */ } /* */ /* */ /* */ /* */ /* */ /* */ /* */ public void fyiWillBeAdvancedByHostKThx() { /* 224 */ throw new RuntimeException("Stub!"); /* */ } public CharSequence getAccessibilityClassName() { /* 226 */ throw new RuntimeException("Stub!"); /* */ } /* */ } /* Location: M:\learn_android\android.jar!\android\widget\AdapterViewAnimator.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "13377875645@163.com" ]
13377875645@163.com
bee5b128a45847398cfda19ac5d48a47fc067c53
2bf47b3f02edb1e1cf9c70c689c26e6bb7fdf461
/Resurser/medview/openehr/workbench/model/tree/DvOrdinalNodeInfo.java
c4c2d4a71517237826f39bd0cd6908dffb269bf6
[]
no_license
Dazing/MedImager
003819ed24a787ea33354d18ecabc23f16458b0a
7cecae2e3e7c56aae5446bf955cdb181eab24cf6
refs/heads/master
2021-01-11T11:58:28.119785
2017-06-01T12:47:29
2017-06-01T12:47:29
79,548,761
1
0
null
null
null
null
UTF-8
Java
false
false
1,871
java
// // DvOrdinalNodeInfo.java // WorkBench-GUI // // Created by Olof Torgersson on 2008-12-14. // // $Id: DvOrdinalNodeInfo.java,v 1.7 2008/12/30 20:48:22 oloft Exp $ // package medview.openehr.workbench.model.tree; import br.com.zilics.archetypes.models.rm.datatypes.quantity.DvOrdinal; import br.com.zilics.archetypes.models.rm.datatypes.text.*; import br.com.zilics.archetypes.models.am.archetype.Archetype; import medview.openehr.workbench.model.*; public class DvOrdinalNodeInfo extends ArchetypeNodeInfo { private DvOrdinal dvOrdinal; private Archetype archetype; private Boolean assumed; public DvOrdinalNodeInfo(DvOrdinal dvo) { dvOrdinal = dvo; archetype = null; assumed = false; } public DvOrdinalNodeInfo(DvOrdinal dvo, Archetype a) { dvOrdinal = dvo; archetype = a; assumed = false; } public DvOrdinalNodeInfo(DvOrdinal dvo, Archetype a, Boolean b) { dvOrdinal = dvo; archetype = a; assumed = b; } @Override public String getImageName() { return "ordinal.gif"; } @Override public String toString() { Integer value = dvOrdinal.getValue(); DvCodedText codedText = dvOrdinal.getSymbol(); String symbol = codedText.getDefiningCode().getCodeString(); String extra = " (Assumed)"; String code = symbol; if (archetype != null) { String text = ArchetypeUtilities.getTextValue(archetype, code, getLanguage()); if (text != null) { symbol = text; } } String display = value.toString() + " | " + symbol + (assumed ? extra : ""); if (getDisplayMode()==DisplayMode.TECHNICAL && code != null) { display = display + " -- " + code; } return display; } }
[ "carl@chbraw.com" ]
carl@chbraw.com
b98e3ec06838d635050f9e30780d258ccfccdb53
643ab004f98842a83cf1999ed30dd7df7a4ada60
/sparke-module-core/src/main/java/cn/sparke/core/common/utils/Utils.java
f7e1b7e0a089894498f0227cba6fb8a84f20a2d6
[]
no_license
JohnVeZh/spark-english-api-release-1.0.x
162130b1cedd90e09318077dc98a587fd03bccf3
f1659ffa072e6a79baa62b7636cbe1a17631ed26
refs/heads/master
2020-03-21T07:16:09.505836
2018-06-22T07:44:45
2018-06-22T07:44:45
138,270,184
0
0
null
null
null
null
UTF-8
Java
false
false
4,166
java
package cn.sparke.core.common.utils; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import javax.servlet.http.HttpServletRequest; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.Random; import java.util.UUID; /** * Created by zhangbowen on 2015/12/4. */ public class Utils { public static final int MINUTE = 60; public static final int HOUR = MINUTE * 60; public static String uuid() { return UUID.randomUUID().toString().replaceAll("-", ""); } public static int random(int min, int max) { Random random = new Random(); return random.nextInt(max) % (max - min + 1) + min; } /** * 根据手机号生成用户名 * * @param phone * @return */ public static String generateNameByPhone(String phone) { return phone.substring(0, 3) + "****" + phone.substring(7); } /** * 生成短信验证码 * * @return */ public static String generateSmsCode() { return String.valueOf((int) (Math.random() * 9000) + 1000); } /** * 获取ip地址,防止集群、代理 * * @param request * @return ip */ public static String getAddress(HttpServletRequest request) { try { return NetworkUtil.getIpAddress(request); } catch (IOException e) { e.printStackTrace(); } return ""; } public static boolean isMobile(HttpServletRequest request) { boolean isMobile = false; String[] mobileAgents = {"MIDP", "WAP", "UP.Browser", "Smartphone", "Obigo", "Mobile", "AU.Browser", "wxd.Mms", "WxdB.Browser", "CLDC", "UP.Link", "KM.Browser", "UCWEB", "SEMC-Browser", "Mini", "Symbian", "Palm", "Nokia", "Panasonic", "MOT-", "SonyEricsson", "NEC-", "Alcatel", "Ericsson", "BENQ", "BenQ", "Amoisonic", "Amoi-", "Capitel", "PHILIPS", "SAMSUNG", "Lenovo", "Mitsu", "Motorola", "SHARP", "WAPPER", "LG-", "LG/", "EG900", "CECT", "Compal", "kejian", "Bird", "BIRD", "G900/V1.0", "Arima", "CTL", "TDG", "Daxian", "DAXIAN", "DBTEL", "Eastcom", "EASTCOM", "PANTECH", "Dopod", "Haier", "HAIER", "KONKA", "KEJIAN", "LENOVO", "Soutec", "SOUTEC", "SAGEM", "SEC-", "SED-", "EMOL-", "INNO55", "ZTE", "iPhone", "Android", "Windows CE", "Wget", "Java", "curl", "Opera"}; if (request.getHeader("User-Agent") != null) { for (String mobileAgent : mobileAgents) { if (request.getHeader("User-Agent").toLowerCase().contains(mobileAgent.toLowerCase())) { isMobile = true; break; } } } return isMobile; } /** * 获得classpath下的文件流 * * @param path * @return */ public static InputStream getClassPathFileStream(String path) { Resource resource = new ClassPathResource(path); if (resource.isReadable()) { //每次都会打开一个新的流 try { return resource.getInputStream(); } catch (IOException e) { e.printStackTrace(); } } return null; } public static Class getSuperClassGenericType(final Class clazz, final int index) { //返回表示此 Class 所表示的实体(类、接口、基本类型或 void)的直接超类的 Type。 Type genType = clazz.getGenericSuperclass(); if (!(genType instanceof ParameterizedType)) { return Object.class; } //返回表示此类型实际类型参数的 Type 对象的数组。 Type[] params = ((ParameterizedType) genType).getActualTypeArguments(); if (index >= params.length || index < 0) { return Object.class; } if (!(params[index] instanceof Class)) { return Object.class; } return (Class) params[index]; } }
[ "530225288@qq.com" ]
530225288@qq.com
ec469bc00e7ff69adc183a40c7d88edf46e3710a
9575e44c074d86f27f6116700b2c533c692fa31a
/src/main/java/com/feed_the_beast/ftbquests/net/MessageDisplayRewardToast.java
82de74b95e49b7ab816802ff29b33fad8ab39617
[]
no_license
Neerwan/FTB-Quests
6b77bbe4544b54f35fd9c03d803d7b4ad5607d25
9591090ee8ee05a285835eddfc49e36824450100
refs/heads/master
2020-05-31T16:15:40.453356
2019-06-05T01:15:26
2019-06-05T01:15:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,550
java
package com.feed_the_beast.ftbquests.net; import com.feed_the_beast.ftblib.lib.icon.Icon; import com.feed_the_beast.ftblib.lib.io.DataIn; import com.feed_the_beast.ftblib.lib.io.DataOut; import com.feed_the_beast.ftblib.lib.net.MessageToClient; import com.feed_the_beast.ftblib.lib.net.NetworkWrapper; import com.feed_the_beast.ftbquests.gui.IRewardListenerGui; import com.feed_the_beast.ftbquests.gui.RewardKey; import com.feed_the_beast.ftbquests.gui.tree.ToastReward; import net.minecraft.client.Minecraft; import net.minecraft.util.text.ITextComponent; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; /** * @author LatvianModder */ public class MessageDisplayRewardToast extends MessageToClient { public static boolean ENABLED = true; private ITextComponent text; private Icon icon; public MessageDisplayRewardToast() { } public MessageDisplayRewardToast(ITextComponent t, Icon i) { text = t; icon = i; } @Override public NetworkWrapper getWrapper() { return FTBQuestsNetHandler.GENERAL; } @Override public void writeData(DataOut data) { data.writeTextComponent(text); data.writeIcon(icon); } @Override public void readData(DataIn data) { text = data.readTextComponent(); icon = data.readIcon(); } @Override @SideOnly(Side.CLIENT) public void onMessage() { if (!IRewardListenerGui.add(new RewardKey(text.getUnformattedText(), icon), 1)) { Minecraft.getMinecraft().getToastGui().add(new ToastReward(text.getFormattedText(), icon)); } } }
[ "latvianmodder@gmail.com" ]
latvianmodder@gmail.com
aa1ef8946c3701ae8e94f9c558566608d8c961d8
1aa461e803687f3b09534200deaafbbbd71f12bb
/ObjectOriented/src/com/jay/java/encapsulation011/Test02.java
bfba26429817aced0fa3482b609f5cf460871f15
[]
no_license
heathjay/StudyJava
01d457c310ae53c30bec80dea26a03902aab9afb
b8c44954dea6507e1dbd8fd35db1480981973a0f
refs/heads/master
2020-08-01T23:24:37.140043
2020-04-28T21:14:52
2020-04-28T21:14:52
211,156,488
0
0
null
null
null
null
UTF-8
Java
false
false
219
java
package com.jay.java.encapsulation011; /** * * @author jay * private only is vaild in one class * */ public class Test02 { public static void main(String[] args) { Test01 t1 = new Test01(); //t.print(); } }
[ "jpmzy@163.com" ]
jpmzy@163.com
965863848e91114056af85d34c5fc8c5cbc2a74b
7b2c3d187449b0ce0bc449b77ed2a78605cc195b
/snail/src/test/java/com/acgist/snail/net/hls/TsLinkerTest.java
19b9cdb8502f6be04e43f853e00d9cbfc99a2e5f
[ "Apache-2.0" ]
permissive
sangjiexun/snail
82ec47467c4b2affcc4c2a526614424446f780a9
8d1a1662927a9d406827eac0f120d8130adb24e2
refs/heads/master
2023-02-10T19:53:33.732240
2021-01-08T08:15:52
2021-01-08T08:15:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,338
java
package com.acgist.snail.net.hls; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.File; import java.nio.file.Paths; import java.util.List; import java.util.stream.Collectors; import javax.crypto.Cipher; import org.junit.jupiter.api.Test; import com.acgist.snail.context.exception.DownloadException; import com.acgist.snail.utils.FileUtils; import com.acgist.snail.utils.Performance; public class TsLinkerTest extends Performance { @Test public void testLink() throws DownloadException { if(SKIP) { this.log("跳过testLink测试"); return; } final String name = "测试"; final String filePath = "E:\\snail\\m3u8"; final File parent = new File(filePath); final var links = List.of(parent.listFiles()).stream() .map(file -> file.getAbsolutePath()) .filter(path -> !path.contains(name)) // 排除生成文件:防止重复读写 .collect(Collectors.toList()); Cipher cipher = null; // final var builder = M3u8Builder.newInstance(new File("E://snail/index.m3u8"), "https://www.acgist.com/a/b?v=1234"); // cipher = builder.build().getCipher(); final TsLinker linker = TsLinker.newInstance( name, filePath, cipher, links ); linker.link(); File file = Paths.get(filePath, "测试.ts").toFile(); assertTrue(file.exists()); FileUtils.delete(file); } }
[ "289547414@qq.com" ]
289547414@qq.com
9f7194baf05b25fc27a873848fbf3b61318c52fa
f34602b407107a11ce0f3e7438779a4aa0b1833e
/professor/dvl/roadnet-client/src/main/java/org/datacontract/schemas/_2004/_07/roadnet_apex_server_services_wcfshared_datacontracts/ValueMeasure.java
1d1c85e0378e3186210a086da921b80bd872cf23
[]
no_license
ggmoura/treinar_11836
a447887dc65c78d4bd87a70aab2ec9b72afd5d87
0a91f3539ccac703d9f59b3d6208bf31632ddf1c
refs/heads/master
2022-06-14T13:01:27.958568
2020-04-04T01:41:57
2020-04-04T01:41:57
237,103,996
0
2
null
2022-05-20T21:24:49
2020-01-29T23:36:21
Java
UTF-8
Java
false
false
1,651
java
package org.datacontract.schemas._2004._07.roadnet_apex_server_services_wcfshared_datacontracts; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java de ValueMeasure complex type. * * <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe. * * <pre> * &lt;complexType name="ValueMeasure"&gt; * &lt;complexContent&gt; * &lt;extension base="{http://schemas.datacontract.org/2004/07/Roadnet.Apex.Server.Services.WCFShared.DataContracts.DataWarehouse}IMeasure"&gt; * &lt;sequence&gt; * &lt;element name="Value" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/&gt; * &lt;/sequence&gt; * &lt;/extension&gt; * &lt;/complexContent&gt; * &lt;/complexType&gt; * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ValueMeasure", propOrder = { "value" }) public class ValueMeasure extends IMeasure { @XmlElement(name = "Value") protected Double value; /** * Obtém o valor da propriedade value. * * @return * possible object is * {@link Double } * */ public Double getValue() { return value; } /** * Define o valor da propriedade value. * * @param value * allowed object is * {@link Double } * */ public void setValue(Double value) { this.value = value; } }
[ "gleidson.gmoura@gmail.com" ]
gleidson.gmoura@gmail.com
a15fc5c1af58745c05c66a5807c862e8f438ab22
f66e2ad3fc0f8c88278c0997b156f5c6c8f77f28
/Android/HenCoderPractice/PracticeDraw2/app/src/main/java/com/hencoder/hencoderpracticedraw2/sample/Sample08XfermodeView.java
b79a254ec4a04522b3bd2cf2fb5c2c916ebf0991
[ "Apache-2.0" ]
permissive
flyfire/Programming-Notes-Code
3b51b45f8760309013c3c0cc748311d33951a044
4b1bdd74c1ba0c007c504834e4508ec39f01cd94
refs/heads/master
2020-05-07T18:00:49.757509
2019-04-10T11:15:13
2019-04-10T11:15:13
180,750,568
1
0
Apache-2.0
2019-04-11T08:40:38
2019-04-11T08:40:38
null
UTF-8
Java
false
false
2,187
java
package com.hencoder.hencoderpracticedraw2.sample; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PorterDuff; import android.graphics.PorterDuffXfermode; import android.graphics.Xfermode; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.View; import com.hencoder.hencoderpracticedraw2.R; public class Sample08XfermodeView extends View { Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); Bitmap bitmap1; Bitmap bitmap2; Xfermode xfermode1 = new PorterDuffXfermode(PorterDuff.Mode.SRC); Xfermode xfermode2 = new PorterDuffXfermode(PorterDuff.Mode.DST_IN); Xfermode xfermode3 = new PorterDuffXfermode(PorterDuff.Mode.DST_OUT); public Sample08XfermodeView(Context context) { super(context); } public Sample08XfermodeView(Context context, @Nullable AttributeSet attrs) { super(context, attrs); } public Sample08XfermodeView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } { bitmap1 = BitmapFactory.decodeResource(getResources(), R.drawable.batman); bitmap2 = BitmapFactory.decodeResource(getResources(), R.drawable.batman_logo); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); int saved = canvas.saveLayer(null, null, Canvas.ALL_SAVE_FLAG); canvas.drawBitmap(bitmap1, 0, 0, paint); paint.setXfermode(xfermode1); canvas.drawBitmap(bitmap2, 0, 0, paint); paint.setXfermode(null); canvas.drawBitmap(bitmap1, bitmap1.getWidth() + 100, 0, paint); paint.setXfermode(xfermode2); canvas.drawBitmap(bitmap2, bitmap1.getWidth() + 100, 0, paint); paint.setXfermode(null); canvas.drawBitmap(bitmap1, 0, bitmap1.getHeight() + 20, paint); paint.setXfermode(xfermode3); canvas.drawBitmap(bitmap2, 0, bitmap1.getHeight() + 20, paint); paint.setXfermode(null); canvas.restoreToCount(saved); } }
[ "ztiany3@gmail.com" ]
ztiany3@gmail.com
7b5cd11c6bf7a56a64afe864d4e0b6a3170f654b
9a52fe3bcdd090a396e59c68c63130f32c54a7a8
/sources/com/google/android/gms/ads/internal/overlay/zzw.java
2fd4e710e070aea02e668411c349ee31fde88ccc
[]
no_license
mzkh/LudoKing
19d7c76a298ee5bd1454736063bc392e103a8203
ee0d0e75ed9fa8894ed9877576d8e5589813b1ba
refs/heads/master
2022-04-25T06:08:41.916017
2020-04-14T17:00:45
2020-04-14T17:00:45
255,670,636
1
0
null
null
null
null
UTF-8
Java
false
false
156
java
package com.google.android.gms.ads.internal.overlay; /* compiled from: com.google.android.gms:play-services-ads-lite@@18.2.0 */ public final class zzw { }
[ "mdkhnmm@amazon.com" ]
mdkhnmm@amazon.com
cd83017d41fb098bb7850a66ac13ac3e38aac1d9
962a110929aa54ce01bace6c3e571387dfc8488d
/aplikasi-training/src/test/java/com/braimatics/training/dao/KelasDaoTests.java
b82c48531e55b0afbfb0963f5e34d2962a71e545
[ "MIT" ]
permissive
sebastianusreczys/training-brainmatics-2016-01
785d0a392cb95311a9a8b3c1970bd8de0f3ff5c5
c7811328f905dd04879ea5af8c9c47b7fb891918
refs/heads/master
2023-02-26T15:12:50.843025
2021-02-08T01:55:30
2021-02-08T01:55:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,158
java
package com.braimatics.training.dao; import com.braimatics.training.entity.Kelas; import com.braimatics.training.entity.Materi; import com.braimatics.training.entity.Peserta; import java.time.LocalDate; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.jdbc.Sql; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; @RunWith(SpringRunner.class) @SpringBootTest @Sql( scripts = {"/sampledata/clean.sql", "/sampledata/institusi.sql", "/sampledata/peserta.sql", "/sampledata/kelas.sql"} ) public class KelasDaoTests { @Autowired private KelasDao kd; @Test @Transactional public void testCariKelasById(){ Kelas k = kd.findOne("k001"); Assert.assertNotNull(k); Assert.assertEquals("Kelas 001", k.getNama()); Assert.assertTrue(2 == k.getDaftarMateri().size()); Assert.assertTrue(5 == k.getDaftarPeserta().size()); } @Test @Transactional public void testKelasBaru(){ Kelas k = new Kelas(); k.setKode("K-002"); k.setNama("Kelas 002"); k.setTanggalMulai(LocalDate.now()); k.setTanggalSelesai(LocalDate.now().plusDays(4)); kd.save(k); Assert.assertNotNull(k.getId()); // menambah materi Materi m1 = new Materi(); // idnya sudah tahu, langsung set aja gak perlu query dari db m1.setId("jfu001"); k.getDaftarMateri().add(m1); Materi m2 = new Materi(); m2.setId("jsi001"); k.getDaftarMateri().add(m2); // tambah peserta Peserta p = new Peserta(); p.setId("p001"); k.getDaftarPeserta().add(p); kd.save(k); Kelas kx = kd.findOne(k.getId()); Assert.assertTrue(2 == kx.getDaftarMateri().size()); Assert.assertTrue(1 == kx.getDaftarPeserta().size()); } }
[ "endy.muhardin@gmail.com" ]
endy.muhardin@gmail.com
d205a0f0955a34e3f0af94e1018be61c35a05dd3
7256182ef2f4a7c412a75cef6a147c5388ab6981
/WindPowerSystem_server/src/com/cn/hy/serviceImpl/serviceset/Mqtt_deviceServiceImpl.java
7e326ba7864a6e5d70240621e9ac05025d253e37
[]
no_license
guanlongfeng/2017112
477789ddf476a1e07376fdefafd3a902aeec886c
ebe076801f51547ed39f40316780e206fe75c151
refs/heads/master
2021-01-12T00:25:56.328029
2017-01-14T00:30:35
2017-01-14T00:35:36
78,724,738
0
1
null
null
null
null
UTF-8
Java
false
false
1,181
java
package com.cn.hy.serviceImpl.serviceset; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.cn.hy.dao.serviceset.Mqtt_deviceDao; import com.cn.hy.pojo.serviceset.Mqtt_device; import com.cn.hy.service.serviceset.Mqtt_deviceService; @Service("Mqtt_deviceServiceImpl") public class Mqtt_deviceServiceImpl implements Mqtt_deviceService { @Resource private Mqtt_deviceDao mqtt_deviceDao; /* * matt设备集合 */ @Override public List<Mqtt_device> selectMqtt_device() { return mqtt_deviceDao.selectMqtt_device(); } /* * 新增 */ @Override public void insertMqtt_device(Mqtt_device mqtt_device) { mqtt_deviceDao.insertMqtt_device(mqtt_device); } /* * 通过id查询matt设备集 */ @Override public Mqtt_device findById(int id) { return mqtt_deviceDao.findById(id); } /* * 修改 */ @Override public void editMqtt_device(Mqtt_device mqtt_device) { mqtt_deviceDao.editMqtt_device(mqtt_device); } /* * 删除 */ @Override public void deleteMqtt_device(int id) { mqtt_deviceDao.deleteMqtt_device(id); } }
[ "1137420083@qq.com" ]
1137420083@qq.com
2ae88e80ef32ab416ffe91bbc4f46bdd69c214e3
92f75f65766402204ecbeaac6cece2a75bbf7c0d
/src/main/java/com/demotivirus/Day_193/DateTimeFormattingExample.java
1c2d84bd383a238349bfdd0bd6bc5d8fa8d980eb
[]
no_license
demotivirus/365_Days_Challenge
338139efe4f677ebb78abac4e4c674639ad78ab8
cfc25eb921dd59f9581a39bf00fb0fc15809e4bb
refs/heads/master
2023-07-21T19:04:26.927157
2021-09-07T20:25:29
2021-09-07T20:25:29
336,847,354
1
0
null
2021-09-07T20:20:42
2021-02-07T17:32:36
Java
UTF-8
Java
false
false
1,234
java
package com.demotivirus.Day_193; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.time.format.FormatStyle; import java.util.Locale; public class DateTimeFormattingExample { public static void main(String[] args) { LocalDateTime localDateTime = LocalDateTime.of(2015, 12, 25, 17, 28, 30); System.out.println(localDateTime); System.out.println(localDateTime.format(DateTimeFormatter.ISO_DATE)); System.out.println(localDateTime.format(DateTimeFormatter.ISO_DATE_TIME)); System.out.println(localDateTime.format(DateTimeFormatter.ofPattern("yyyy/mm/dd"))); System.out.println(localDateTime.format(DateTimeFormatter.ofPattern("yy/mm/dd"))); System.out.println(localDateTime.format(DateTimeFormatter.ofPattern("yyyy.mm.dd hh:mm"))); System.out.println(localDateTime.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM).withLocale(Locale.JAPANESE))); System.out.println(localDateTime.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM).withLocale(Locale.UK))); System.out.println(localDateTime.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM).withLocale(Locale.US))); } }
[ "demotivirus@gmail.com" ]
demotivirus@gmail.com
43e89046d1137fec1579644382b49dfcf637b5e6
d3433d9c013b43493689b71fc9763badb3256701
/web/src/main/java/com/banvien/tpk/webapp/controller/whm/FixExpenseController.java
ba64e116715dacbcc717fa79d408cd047320c63f
[]
no_license
saintkarl/tpkwhm
c424d72ba116ef052ae9e26fa3a6399087ada23e
c113847122c93eb8e2437ecfece0e953c9786ba4
refs/heads/master
2022-06-01T14:51:11.967313
2022-04-01T12:50:10
2022-04-01T12:50:10
49,206,740
0
0
null
null
null
null
UTF-8
Java
false
false
5,592
java
package com.banvien.tpk.webapp.controller.whm; import com.banvien.tpk.core.Constants; import com.banvien.tpk.core.domain.FixExpense; import com.banvien.tpk.core.dto.FixExpenseBean; import com.banvien.tpk.core.exception.DuplicateException; import com.banvien.tpk.core.exception.ObjectNotFoundException; import com.banvien.tpk.core.service.FixExpenseService; import com.banvien.tpk.webapp.util.RequestUtil; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.support.ApplicationObjectSupport; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.InitBinder; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import java.util.List; @Controller public class FixExpenseController extends ApplicationObjectSupport { private transient final Log log = LogFactory.getLog(getClass()); @Autowired private FixExpenseService fixExpenseService; @InitBinder public void initBinder(WebDataBinder binder) { } @RequestMapping("/whm/fixexpense/edit.html") public ModelAndView edit(@ModelAttribute(Constants.FORM_MODEL_KEY) FixExpenseBean bean, BindingResult bindingResult) { ModelAndView mav = new ModelAndView("/whm/fixexpense/edit"); String crudaction = bean.getCrudaction(); FixExpense pojo = bean.getPojo(); if(StringUtils.isNotBlank(crudaction) && crudaction.equals("insert-update")) { try { if(!bindingResult.hasErrors()) { if(pojo.getFixExpenseID() != null && pojo.getFixExpenseID() > 0) { this.fixExpenseService.updateItem(bean); mav = new ModelAndView("redirect:/whm/fixexpense/list.html?isUpdate=true"); } else { this.fixExpenseService.addNew(bean); mav = new ModelAndView("redirect:/whm/fixexpense/list.html?isAdd=true"); } return mav; } }catch (ObjectNotFoundException oe) { logger.error(oe.getMessage(), oe); mav.addObject("alertType","error"); mav.addObject("messageResponse", this.getMessageSourceAccessor().getMessage("database.exception.keynotfound")); }catch (DuplicateException de) { logger.error(de.getMessage()); mav.addObject("alertType","error"); mav.addObject("messageResponse", this.getMessageSourceAccessor().getMessage("database.exception.duplicate")); }catch(Exception e) { logger.error(e.getMessage(), e); mav.addObject("alertType","error"); mav.addObject("messageResponse", this.getMessageSourceAccessor().getMessage("general.exception.msg")); } } if(!bindingResult.hasErrors()&& bean.getPojo().getFixExpenseID() != null && bean.getPojo().getFixExpenseID() > 0) { try { FixExpense itemObj = this.fixExpenseService.findById(pojo.getFixExpenseID()); bean.setPojo(itemObj); } catch (Exception e) { logger.error("Could not found news " + bean.getPojo().getFixExpenseID(), e); } } mav.addObject(Constants.FORM_MODEL_KEY, bean); return mav; } @RequestMapping(value={"/whm/fixexpense/list.html"}) public ModelAndView list(FixExpenseBean bean,HttpServletRequest request) { ModelAndView mav = new ModelAndView("/whm/fixexpense/list"); if(StringUtils.isNotBlank(bean.getCrudaction()) && bean.getCrudaction().equals(Constants.ACTION_DELETE)) { Integer totalDeleted = 0; try { totalDeleted = fixExpenseService.deleteItems(bean.getCheckList()); mav.addObject("totalDeleted", totalDeleted); }catch (Exception e) { log.error(e.getMessage(), e); mav.addObject("alertType","error"); mav.addObject(Constants.MESSAGE_RESPONSE_MODEL_KEY, this.getMessageSourceAccessor().getMessage("database.multipledelete.exception")); } } executeSearch(bean, request); mav.addObject(Constants.LIST_MODEL_KEY, bean); showAlert(mav,bean.getIsAdd(),bean.getIsUpdate(),bean.getIsError()); return mav; } private void executeSearch(FixExpenseBean bean, HttpServletRequest request) { RequestUtil.initSearchBean(request, bean); Object[] results = this.fixExpenseService.search(bean); bean.setListResult((List<FixExpense>)results[1]); bean.setTotalItems(Integer.valueOf(results[0].toString())); } private void showAlert(ModelAndView mav,Boolean isAdd, Boolean isUpdate, Boolean isError){ if(isAdd){ mav.addObject("alertType","success"); mav.addObject(Constants.MESSAGE_RESPONSE_MODEL_KEY, this.getMessageSourceAccessor().getMessage("database.add.successful")); }else if(isUpdate){ mav.addObject("alertType","success"); mav.addObject(Constants.MESSAGE_RESPONSE_MODEL_KEY, this.getMessageSourceAccessor().getMessage("database.update.successful")); }else if(isError){ mav.addObject("alertType","error"); mav.addObject(Constants.MESSAGE_RESPONSE_MODEL_KEY, this.getMessageSourceAccessor().getMessage("error.occur")); } } }
[ "khanh.chu@hoanghoacgroup.com" ]
khanh.chu@hoanghoacgroup.com
e915c5cbffbb19f533796eb9e9f6c82844250eff
0830718cc03004986dd9189ca8b91a8da419256a
/src/Jan_16/quiz02/Quiz02_4.java
d6cdbc623a95a8d56c7b484cc4d6b78ef27d16bc
[]
no_license
Brilliant-Kwon/JavaEx
3f46dba3ca81df38b2872da68c36de348c69f704
fdc76d9b15e76b2d719b3c7e2be2d5fa7a38d656
refs/heads/master
2020-04-17T02:27:32.978565
2019-03-14T00:41:24
2019-03-14T00:41:24
166,135,514
0
0
null
null
null
null
UTF-8
Java
false
false
391
java
package Jan_16.quiz02; public class Quiz02_4 { public static void main(String[] args) { char ch = 'A'; //ch를 소문자로 변환할 것 //'A' = 65 / 'a' = 97 //ch에는 대문자만 담긴다. int lower = 'a' - ch; char ch_upper = (char)(ch+lower); System.out.println("ch"+ch+"의 소문자는 "+ch_upper+"입니다."); } }
[ "k1212keun@skuniv.ac.kr" ]
k1212keun@skuniv.ac.kr
fd6780e870acc10ff02d69ce276ba092af24d0f0
14956dbed8ae4fba1d65b9829d9405fcf43ac698
/Cyber Security/Capture the Flag Competitions/2020/Cyberthon 2020/Finals/Operating Systems/(UNDONE) Meow/source_from_JADX/sources/androidx/core/app/BundleCompat.java
99cb22ed031850689762f6f5dce30735d0d4800d
[]
no_license
Hackin7/Programming-Crappy-Solutions
ae8bbddad92a48cf70976cec91bf66234c9b4d39
ffa3b3c26a6a06446cc49c8ac4f35b6d30b1ee0f
refs/heads/master
2023-03-21T01:21:00.764957
2022-12-28T14:22:33
2022-12-28T14:22:33
201,292,128
12
7
null
2023-03-05T16:05:34
2019-08-08T16:00:21
Roff
UTF-8
Java
false
false
3,261
java
package androidx.core.app; import android.os.Build.VERSION; import android.os.Bundle; import android.os.IBinder; import android.util.Log; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; public final class BundleCompat { static class BundleCompatBaseImpl { private static final String TAG = "BundleCompatBaseImpl"; private static Method sGetIBinderMethod; private static boolean sGetIBinderMethodFetched; private static Method sPutIBinderMethod; private static boolean sPutIBinderMethodFetched; private BundleCompatBaseImpl() { } public static IBinder getBinder(Bundle bundle, String str) { boolean z = sGetIBinderMethodFetched; String str2 = TAG; if (!z) { try { sGetIBinderMethod = Bundle.class.getMethod("getIBinder", new Class[]{String.class}); sGetIBinderMethod.setAccessible(true); } catch (NoSuchMethodException e) { Log.i(str2, "Failed to retrieve getIBinder method", e); } sGetIBinderMethodFetched = true; } Method method = sGetIBinderMethod; if (method != null) { try { return (IBinder) method.invoke(bundle, new Object[]{str}); } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e2) { Log.i(str2, "Failed to invoke getIBinder via reflection", e2); sGetIBinderMethod = null; } } return null; } public static void putBinder(Bundle bundle, String str, IBinder iBinder) { boolean z = sPutIBinderMethodFetched; String str2 = TAG; if (!z) { try { sPutIBinderMethod = Bundle.class.getMethod("putIBinder", new Class[]{String.class, IBinder.class}); sPutIBinderMethod.setAccessible(true); } catch (NoSuchMethodException e) { Log.i(str2, "Failed to retrieve putIBinder method", e); } sPutIBinderMethodFetched = true; } Method method = sPutIBinderMethod; if (method != null) { try { method.invoke(bundle, new Object[]{str, iBinder}); } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e2) { Log.i(str2, "Failed to invoke putIBinder via reflection", e2); sPutIBinderMethod = null; } } } } private BundleCompat() { } public static IBinder getBinder(Bundle bundle, String str) { if (VERSION.SDK_INT >= 18) { return bundle.getBinder(str); } return BundleCompatBaseImpl.getBinder(bundle, str); } public static void putBinder(Bundle bundle, String str, IBinder iBinder) { if (VERSION.SDK_INT >= 18) { bundle.putBinder(str, iBinder); } else { BundleCompatBaseImpl.putBinder(bundle, str, iBinder); } } }
[ "zunmun@gmail.com" ]
zunmun@gmail.com
6edfa1e7f1f668adc303d43eaa48273a8522e5d9
b66bdee811ed0eaea0b221fea851f59dd41e66ec
/src/com/grubhub/AppBaseLibrary/android/order/cart/GHSReviewOrderFragment$20.java
94cbb0f286fbdd218f20b690a5754e04be2829ef
[]
no_license
reverseengineeringer/com.grubhub.android
3006a82613df5f0183e28c5e599ae5119f99d8da
5f035a4c036c9793483d0f2350aec2997989f0bb
refs/heads/master
2021-01-10T05:08:31.437366
2016-03-19T20:41:23
2016-03-19T20:41:23
54,286,207
0
0
null
null
null
null
UTF-8
Java
false
false
756
java
package com.grubhub.AppBaseLibrary.android.order.cart; import com.grubhub.AppBaseLibrary.android.b.b; import com.grubhub.AppBaseLibrary.android.dataServices.interfaces.GHSICartPaymentDataModel.PaymentTypes; import com.grubhub.AppBaseLibrary.android.dataServices.net.d; class GHSReviewOrderFragment$20 implements d { GHSReviewOrderFragment$20(GHSReviewOrderFragment paramGHSReviewOrderFragment, String paramString, GHSICartPaymentDataModel.PaymentTypes paramPaymentTypes, Integer paramInteger) {} public void a(b paramb) { GHSReviewOrderFragment.a(d, a, b, c); } } /* Location: * Qualified Name: com.grubhub.AppBaseLibrary.android.order.cart.GHSReviewOrderFragment.20 * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
c2b0e8334a8f5fad70300eba1c86032802b6a98d
17e4e662e8ca9f7e4826df4832b717007e2e3854
/src/com/perl5/lang/perl/psi/impl/PerlHeredocTerminatorElementImpl.java
a82b81a7e2cc16b519200160cb1ffdc91e644e23
[ "Apache-2.0" ]
permissive
krasa/Perl5-IDEA
a1c003240244c6067fc81ced05979e6a2672b1ff
1f90780fa34272a0a93ba96dafabb3a5d775d4fa
refs/heads/master
2023-08-17T11:49:14.753550
2015-06-07T20:24:21
2015-06-07T20:24:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,908
java
/* * Copyright 2015 Alexandr Evstigneev * * 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.perl5.lang.perl.psi.impl; import com.intellij.psi.PsiElement; import com.intellij.psi.impl.source.tree.PsiCommentImpl; import com.intellij.psi.tree.IElementType; import com.intellij.util.IncorrectOperationException; import com.perl5.lang.perl.lexer.PerlElementTypes; import com.perl5.lang.perl.psi.utils.PerlElementFactory; import com.perl5.lang.perl.psi.properties.PerlNamedElement; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public class PerlHeredocTerminatorElementImpl extends PsiCommentImpl implements PerlNamedElement, PerlElementTypes { public PerlHeredocTerminatorElementImpl(IElementType type, CharSequence text){ super(type, text);} @Override public PsiElement setName(@NotNull String name) throws IncorrectOperationException { if( name.equals("")) throw new IncorrectOperationException("You can't set heredoc terminator to the empty one"); replace(PerlElementFactory.createHereDocTerminator(getProject(), name)); return this; } @Nullable @Override public PsiElement getNameIdentifier() { return getPsi(); } // todo we should move this to some superclass @Override public String getName() { PsiElement nameIdentifier = getNameIdentifier(); return nameIdentifier == null ? null: nameIdentifier.getText(); } }
[ "hurricup@gmail.com" ]
hurricup@gmail.com
dd0aecfcca5fad35e80e3dc56890617e6538bbd4
248b4227189a5fc82283dcf72adbe96b0cbf7d88
/maven-site-plugin/src/test/java/org/apache/maven/plugins/site/deploy/SimpleDavServerHandler.java
67b22c53bf8d9f97cad0799ea0a3f50177a19264
[ "Apache-2.0" ]
permissive
bobmcwhirter/maven-plugins
858d287a11928c19cc3bdf035de8068d92641f63
a03f27ae0b4d25808ef6dc25aa018d581c44fb79
refs/heads/master
2020-08-15T12:21:29.132192
2017-06-24T13:24:12
2017-06-24T13:24:12
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,027
java
package org.apache.maven.plugins.site.deploy; /* * 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. */ import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.servlet.Servlet; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.SystemUtils; import org.mortbay.jetty.Handler; import org.mortbay.jetty.Request; import org.mortbay.jetty.Server; import org.mortbay.jetty.handler.AbstractHandler; import org.mortbay.jetty.servlet.Context; import org.mortbay.jetty.servlet.ServletHolder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Olivier Lamy * @since 3.0-beta-2 * @version $Id: SimpleDavServerHandler.java 1729708 2016-02-10 19:51:02Z michaelo $ */ public class SimpleDavServerHandler { private Logger log = LoggerFactory.getLogger( getClass() ); private Server server; private File siteTargetPath; List<HttpRequest> httpRequests = new ArrayList<HttpRequest>(); public SimpleDavServerHandler(final File targetPath ) throws Exception { this.siteTargetPath = targetPath; Handler repoHandler = new AbstractHandler() { public void handle( String target, HttpServletRequest request, HttpServletResponse response, int dispatch ) throws IOException, ServletException { String targetPath = request.getPathInfo(); HttpRequest rq = new HttpRequest(); rq.method = request.getMethod(); rq.path = targetPath; @SuppressWarnings( "rawtypes" ) Enumeration headerNames = request.getHeaderNames(); while ( headerNames.hasMoreElements() ) { String name = (String) headerNames.nextElement(); rq.headers.put( name, request.getHeader( name ) ); } httpRequests.add( rq ); if ( request.getMethod().equalsIgnoreCase( "PUT" ) ) { File targetFile = new File( siteTargetPath, targetPath ); log.info( "writing file " + targetFile.getPath() ); FileUtils.writeByteArrayToFile( targetFile, IOUtils.toByteArray( request.getInputStream() ) ); } //PrintWriter writer = response.getWriter(); response.setStatus( HttpServletResponse.SC_OK ); ( (Request) request ).setHandled( true ); } }; server = new Server( 0 ); server.setHandler( repoHandler ); server.start(); } public SimpleDavServerHandler( Servlet servlet ) throws Exception { siteTargetPath = null; server = new Server( 0 ); Context context = new Context( server, "/", 0 ); context.addServlet( new ServletHolder( servlet ), "/" ); server.start(); } public int getPort() { return server.getConnectors()[0].getLocalPort(); } public void stop() throws Exception { server.stop(); } static class HttpRequest { Map<String, String> headers = new HashMap<String,String>(); String method; String path; HttpRequest() { // nop } @Override public String toString() { StringBuilder sb = new StringBuilder( method ).append( " path " ).append( path ) .append( SystemUtils.LINE_SEPARATOR ); for ( Entry<String, String> entry : headers.entrySet() ) { sb.append( entry.getKey() ).append( " : " ).append( entry.getValue() ) .append( SystemUtils.LINE_SEPARATOR ); } return sb.toString(); } } }
[ "paul@hammant.org" ]
paul@hammant.org
8869f74f4b9b039e814a6d73acdb2bd227085a2e
fa93c9be2923e697fb8a2066f8fb65c7718cdec7
/sources/kotlin/reflect/jvm/internal/impl/metadata/deserialization/TypeTable.java
b92f03edacf88a7054042b37d707a3c1ea1c2291
[]
no_license
Auch-Auch/avito_source
b6c9f4b0e5c977b36d5fbc88c52f23ff908b7f8b
76fdcc5b7e036c57ecc193e790b0582481768cdc
refs/heads/master
2023-05-06T01:32:43.014668
2021-05-25T10:19:22
2021-05-25T10:19:22
370,650,685
0
0
null
null
null
null
UTF-8
Java
false
false
2,027
java
package kotlin.reflect.jvm.internal.impl.metadata.deserialization; import java.util.ArrayList; import java.util.List; import kotlin.collections.CollectionsKt__CollectionsKt; import kotlin.jvm.internal.Intrinsics; import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf; import org.jetbrains.annotations.NotNull; import t6.n.e; public final class TypeTable { @NotNull public final List<ProtoBuf.Type> a; public TypeTable(@NotNull ProtoBuf.TypeTable typeTable) { Intrinsics.checkNotNullParameter(typeTable, "typeTable"); List<ProtoBuf.Type> typeList = typeTable.getTypeList(); if (typeTable.hasFirstNullable()) { int firstNullable = typeTable.getFirstNullable(); List<ProtoBuf.Type> typeList2 = typeTable.getTypeList(); Intrinsics.checkNotNullExpressionValue(typeList2, "typeTable.typeList"); ArrayList arrayList = new ArrayList(e.collectionSizeOrDefault(typeList2, 10)); int i = 0; for (T t : typeList2) { int i2 = i + 1; if (i < 0) { CollectionsKt__CollectionsKt.throwIndexOverflow(); } T t2 = t; if (i >= firstNullable) { t2 = t2.toBuilder().setNullable(true).build(); } arrayList.add(t2); i = i2; } typeList = arrayList; } Intrinsics.checkNotNullExpressionValue(typeList, "run {\n val originalTypes = typeTable.typeList\n if (typeTable.hasFirstNullable()) {\n val firstNullable = typeTable.firstNullable\n typeTable.typeList.mapIndexed { i, type ->\n if (i >= firstNullable) {\n type.toBuilder().setNullable(true).build()\n } else type\n }\n } else originalTypes\n }"); this.a = typeList; } @NotNull public final ProtoBuf.Type get(int i) { return this.a.get(i); } }
[ "auchhunter@gmail.com" ]
auchhunter@gmail.com
7d447c6173952b95cfcb9e9b636704f242af0197
73ddf37cb32504a6f504fe7bff8ef7842b15550a
/src/test/java/com/alibaba/druid/bvt/sql/oracle/CallTest.java
a67ff248591b6b874dfe8fb282a4811f9a74299b
[ "Apache-2.0" ]
permissive
onlyscorpion/scorpion-sql-parser
2c0ecd4758d5bc5e6f1a50e0fadcfcb012e3524f
a55f9597c7a3a8b9c610cacc5a957a41d3ea018a
refs/heads/master
2021-08-19T14:15:55.462593
2017-11-26T15:47:17
2017-11-26T15:47:17
112,094,653
1
0
null
null
null
null
UTF-8
Java
false
false
1,613
java
/* * Copyright 1999-2017 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.alibaba.druid.bvt.sql.oracle; import java.util.List; import junit.framework.TestCase; import com.alibaba.druid.sql.ast.SQLStatement; import com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser; import com.alibaba.druid.sql.dialect.oracle.visitor.OracleOutputVisitor; public class CallTest extends TestCase { public void test_select() throws Exception { String sql = "call dbms_session.set_identifier('nfs_special_syncview')"; OracleStatementParser parser = new OracleStatementParser(sql); List<SQLStatement> statementList = parser.parseStatementList(); output(statementList); } private void output(List<SQLStatement> stmtList) { StringBuilder out = new StringBuilder(); OracleOutputVisitor visitor = new OracleOutputVisitor(out); for (SQLStatement stmt : stmtList) { stmt.accept(visitor); visitor.println(); } System.out.println(out.toString()); } }
[ "zhengchenglei@jd.com" ]
zhengchenglei@jd.com
1985ebf2bfb15f438aa4db8436d813b234186695
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.assistant-base/sources/X/RunnableC0418Wv.java
4824477c2173ed2d1da2cdd9711ff51daae05cbb
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
467
java
package X; /* renamed from: X.Wv reason: case insensitive filesystem */ public final class RunnableC0418Wv implements Runnable { public static final String __redex_internal_original_name = "com.oculus.assistant.panel.AssistantPanelManager$showAttentionSystem$2"; public final /* synthetic */ String A00; public RunnableC0418Wv(String str) { this.A00 = str; } public final void run() { HandlerC0422Wz.A06.A0B(this.A00); } }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
c4c1bf07b7493563db8e446bb6497a51fa3532d5
7f617fad31c5efaf22fae454707123737c5cf313
/app/src/main/java/com/sessionretrofitvidloginviewmodel/viewmodel/LoginViewModel.java
d4c959f3a7ec7f4d9a263719d1e0e50ad4b69548
[]
no_license
softwrengr/MVVM-Architecture
97c7846753424b275ee9711119d32bc6ac58b14d
11e33c7caeda38c38e61ae01328151121a48c592
refs/heads/master
2020-05-07T18:36:54.023876
2019-07-08T09:30:07
2019-07-08T09:30:07
180,774,974
0
0
null
null
null
null
UTF-8
Java
false
false
2,646
java
package com.sessionretrofitvidloginviewmodel.viewmodel; import android.content.Context; import android.content.Intent; import android.databinding.ObservableField; import android.databinding.ObservableInt; import android.view.View; import android.widget.Toast; import com.sessionretrofitvidloginviewmodel.models.loginDataModels.LoginResponseModel; import com.sessionretrofitvidloginviewmodel.remote.APIService; import com.sessionretrofitvidloginviewmodel.remote.RetroClass; import com.sessionretrofitvidloginviewmodel.utilities.GeneralUtills; import com.sessionretrofitvidloginviewmodel.view.activities.ContainerActivity; import com.sessionretrofitvidloginviewmodel.view.fragments.HomeFragment; import org.json.JSONObject; import java.util.Observable; import retrofit2.Call; import retrofit2.Callback; import retrofit2.Response; public class LoginViewModel extends Observable { private Context context; public ObservableInt progressBar; public final ObservableField<String> username = new ObservableField<>(""); public final ObservableField<String> userpass = new ObservableField<>(""); public LoginViewModel(Context context) { this.context = context; progressBar = new ObservableInt(View.GONE); } public void sendLoginRequest(String name, String pass) { progressBar.set(View.VISIBLE); APIService apiService = RetroClass.getAPIService(); Call<LoginResponseModel> loginresponse = apiService.userLogin(name, pass); loginresponse.enqueue(new Callback<LoginResponseModel>() { @Override public void onResponse(Call<LoginResponseModel> call, Response<LoginResponseModel> response) { progressBar.set(View.GONE); if (response.body() == null) { try { JSONObject jObjError = new JSONObject(response.errorBody().string()); showToast("invalid"); } catch (Exception e) { showToast("error"); } } else if(response.body().getSuccess()) { context.startActivity(new Intent(context, ContainerActivity.class)); showToast("" + response.body().getMessage()); } } @Override public void onFailure(Call<LoginResponseModel> call, Throwable t) { progressBar.set(View.GONE); showToast("" + t.getMessage()); } }); } private void showToast(String msg) { Toast.makeText(context, msg, Toast.LENGTH_LONG).show(); } }
[ "softwrengr@gmail.com" ]
softwrengr@gmail.com
7d03c1edb76544ea44c777561de9c7478ab61326
cf10d1426dfea9082121f4dbd5fbc3a911a70607
/ps-cashloan-business-rule/src/main/java/com/adpanshi/cashloan/business/rule/mapper/BorrowTemplateMapper.java
9da3126694d531ed69e691585152d26642e80cb6
[]
no_license
wudongpo/ps-cashloan-business
8e1d9724fec9b25dd95998e7899486910438fde1
bbba3f3de808aaaab3e8e9d73cbf193d7ba548c9
refs/heads/master
2020-05-22T14:04:28.435113
2018-09-29T08:22:52
2018-09-29T08:22:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
805
java
package com.adpanshi.cashloan.business.rule.mapper; import com.adpanshi.cashloan.business.core.common.mapper.BaseMapper; import com.adpanshi.cashloan.business.core.common.mapper.RDBatisDao; import com.adpanshi.cashloan.business.rule.domain.BorrowTemplate; import com.adpanshi.cashloan.business.rule.model.ScaleShowModel; import java.util.List; import java.util.Map; /** * 借款模板信息表Dao * * @author yecy * @version 1.0.0 * @date 2017-11-30 15:14:56 */ @RDBatisDao public interface BorrowTemplateMapper extends BaseMapper<BorrowTemplate, Long> { List<ScaleShowModel> getScaleList(); /** * 数据查询,根据timelimit字段升序 * * @param paramMap * @return */ List<BorrowTemplate> findSelectiveOrderByTimeLimit(Map<String, Object> paramMap); }
[ "zhoushanwen8502@adpanshi.com" ]
zhoushanwen8502@adpanshi.com
f8f0da3055037dd51670cf0745e0d14e13032aec
47a50e8e42c7b4fb6610371f0eb12861e030a24e
/ad-show/src/main/java/com/htg/adshow/handler/CommonFieldFillHandler.java
1f3f17a636585dde48286e82edd3b27de95b1db8
[]
no_license
htg-suda/adshow_plat
af25ee3c9fb52b2616c62d5b5b16e8f4f07158e2
6c44372da074c0523df02549b8bcac33d2dd4d81
refs/heads/master
2020-06-19T10:02:52.724782
2019-07-17T01:27:06
2019-07-17T01:27:06
196,672,334
0
0
null
2020-06-15T21:54:56
2019-07-13T03:11:09
Java
UTF-8
Java
false
false
1,210
java
package com.htg.adshow.handler; import com.baomidou.mybatisplus.mapper.MetaObjectHandler; import lombok.extern.slf4j.Slf4j; import org.apache.ibatis.reflection.MetaObject; import org.springframework.stereotype.Component; import java.util.Date; @Slf4j @Component public class CommonFieldFillHandler extends MetaObjectHandler { @Override public void insertFill(MetaObject metaObject) { log.info("insert start fill"); // if (metaObject.getValue("updateTime") == null || StringUtils.isEmpty(metaObject.getValue("updateTime").toString())) { setFieldValByName("updateTime", new Date(), metaObject); // } // if (metaObject.getValue("createTime") == null || StringUtils.isEmpty(metaObject.getValue("createTime").toString())) { setFieldValByName("createTime", new Date(), metaObject); //} setFieldValByName("updateUser", 0, metaObject); setFieldValByName("createUser", 0, metaObject); } @Override public void updateFill(MetaObject metaObject) { log.info("update start fill"); setFieldValByName("updateTime", new Date(), metaObject); setFieldValByName("updateUser", 0, metaObject); } }
[ "htg@microarray.com.cn" ]
htg@microarray.com.cn
a243921876e6821f0dfc3c48e006d1e0a4124b84
ccfd187b6425c1a61cab869593ef90bd17fb3d00
/gms-common/java/gms/core/signal-detection/signal-detector-control-service/src/main/java/gms/core/signaldetection/signaldetectorcontrol/objects/SignalDetectorParameters.java
fc77f2f2117ba458d533ed4a2d06c884a34b42f2
[ "LicenseRef-scancode-free-unknown", "BSD-3-Clause" ]
permissive
SNL-GMS/GMS-PI7-OPEN
d5287b0358d5fc867dab36eda25f46df23e03d87
4c5f2a33a45566b12897bcdc129609c9e6b95442
refs/heads/master
2023-01-22T14:55:19.535320
2019-12-17T22:07:07
2019-12-17T22:07:07
227,190,642
5
1
BSD-3-Clause
2023-01-11T19:53:26
2019-12-10T18:37:35
Java
UTF-8
Java
false
false
2,031
java
package gms.core.signaldetection.signaldetectorcontrol.objects; import com.google.auto.value.AutoValue; import gms.shared.mechanisms.objectstoragedistribution.coi.common.RegistrationInfo; import java.util.List; import java.util.Optional; import java.util.UUID; import java.util.stream.Stream; /** * Signal Detector Control Plugin Configuration data object. This object is used to control which * signalDetectorPlugins are used for a specific processing channel requested by the * SignalDetectorControl object. */ @AutoValue public abstract class SignalDetectorParameters { /** * Factory method to create new SignalDetectorParameters objects. * * @param processingChannelId The processing channel id for this configuration (not null). * @param signalDetectorPlugins The list of plugin {@link RegistrationInfo} objects defined by */ public static SignalDetectorParameters create(UUID processingChannelId, List<RegistrationInfo> signalDetectorPlugins, RegistrationInfo onsetTimeUncertaintyPlugin, Optional<RegistrationInfo> onsetTimeRefinementPlugin) { return new AutoValue_SignalDetectorParameters(processingChannelId, signalDetectorPlugins, onsetTimeUncertaintyPlugin, onsetTimeRefinementPlugin); } public abstract UUID getProcessingChannelId(); /** * Return a stream of {@link RegistrationInfo} objects (Plugin identities) defined by this * configuration. * * @return A stream of {@link RegistrationInfo} objects. */ public Stream<RegistrationInfo> signalDetectorPlugins() { return getSignalDetectorPlugins().stream(); } /** * Return the list of {@link RegistrationInfo} objects (Plugin Identities) defined by this * configuration. * * @return A list of {@link RegistrationInfo} objects. */ public abstract List<RegistrationInfo> getSignalDetectorPlugins(); public abstract RegistrationInfo getOnsetTimeUncertaintyPlugin(); public abstract Optional<RegistrationInfo> getOnsetTimeRefinementPlugin(); }
[ "teeriks@sandia.gov" ]
teeriks@sandia.gov
78f6fa8a0bdde71bf8650295c72a12af230d5ac2
cdd8cf6479e519ff18c71ccba529c0875e49169a
/src/main/java/top/dianmu/ccompiler/learn/day68/TypeSystem.java
5487878c868e0647f30fc6ef128d433315f5b633
[]
no_license
hungry-game/CCompiler_for_learn
af3611bd636978d72df3e09399f144f1ac482c84
3f1d3c48dd229ce1eb265ae0d3c8f2051051418b
refs/heads/master
2022-05-26T18:33:01.230199
2020-05-02T12:57:33
2020-05-02T12:57:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,142
java
package top.dianmu.ccompiler.learn.day68; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; public class TypeSystem { private HashMap<String, ArrayList<Symbol>> symbolTable = new HashMap<String, ArrayList<Symbol>>(); private HashMap<String, StructDefine> structTable = new HashMap<String, StructDefine>(); public void addStructToTable(StructDefine struct) { if (structTable.containsKey(struct.getTag())) { System.err.println("Struct with name: " + struct.getTag() + " is already defined"); return; } structTable.put(struct.getTag(), struct); } public StructDefine getStructObjFromTable(String tag) { return structTable.get(tag); } public void addSymbolsToTable(Symbol headSymbol) { while (headSymbol != null) { ArrayList<Symbol> symList = symbolTable.get(headSymbol.name); if (symList == null) { symList = new ArrayList<Symbol>(); symList.add(headSymbol); symbolTable.put(headSymbol.name, symList); } else { handleDublicateSymbol(headSymbol, symList); } headSymbol = headSymbol.getNextSymbol(); } } private void handleDublicateSymbol(Symbol symbol, ArrayList<Symbol>symList) { boolean harmless = true; Iterator it = symList.iterator(); while (it.hasNext()) { Symbol sym = (Symbol)it.next(); if (sym.level == symbol.level) { //TODO, handle duplication here } } if (harmless == true) { symList.add(symbol); } } public TypeLink newType(String typeText) { Specifier sp = null; int type = Specifier.CHAR; boolean isLong = false, isSigned = true; switch (typeText.charAt(0)) { case 'c': if (typeText.charAt(1) == 'h') { type = Specifier.CHAR; } break; case 'd': case 'f': System.err.println("No floating point support"); System.exit(1); break; case 'i': type = Specifier.INT; break; case 'l': isLong = true; break; case 'u': isSigned = false; break; case 'v': if (typeText.charAt(2) == 'i') { type = Specifier.VOID; } break; case 's': //ignore short signed break; } sp = new Specifier(); sp.setType(type); sp.setLong(isLong); sp.setSign(isSigned); TypeLink link = new TypeLink(false, false, sp); return link; } public void specifierCpy(Specifier dst, Specifier org) { dst.setConstantVal(org.getConstantVal()); dst.setExternal(org.isExternal()); dst.setLong(org.getLong()); dst.setOutputClass(org.getOutputClass()); dst.setSign(org.isSign()); dst.setStatic(org.isStatic()); dst.setStorageClass(org.getStorageClass()); } public TypeLink newClass(String classText) { Specifier sp = new Specifier(); sp.setType(Specifier.NONE); setClassType(sp, classText.charAt(0)); TypeLink link = new TypeLink(false, false, sp); return link; } private void setClassType(Specifier sp, char c) { switch(c) { case 0: sp.setStorageClass(Specifier.FIXED); sp.setStatic(false); sp.setExternal(false); break; case 't': sp.setStorageClass(Specifier.TYPEDEF); break; case 'r': sp.setStorageClass(Specifier.REGISTER); break; case 's': sp.setStatic(true); break; case 'e': sp.setExternal(true); break; default: System.err.println("Internal error, Invalid Class type"); System.exit(1); break; } } public Symbol newSymbol(String name, int level) { return new Symbol(name, level); } public void addDeclarator(Symbol symbol, int declaratorType) { Declarator declarator = new Declarator(declaratorType); TypeLink link = new TypeLink(true, false, declarator); symbol.addDeclarator(link); } public void addSpecifierToDeclaration(TypeLink specifier, Symbol symbol) { while (symbol != null) { symbol.addSpecifier(specifier); symbol = symbol.getNextSymbol(); } } }
[ "2673077461@qq.com" ]
2673077461@qq.com
d4b875a7434d0da5d7345328c23d169ee8049b8d
1c5e8605c1a4821bc2a759da670add762d0a94a2
/src/dahua/fdc/contract/app/AbstractAccountsContractUIHandler.java
14680f8384f54cc4eefb182eb2c3608d00168d3e
[]
no_license
shxr/NJG
8195cfebfbda1e000c30081399c5fbafc61bb7be
1b60a4a7458da48991de4c2d04407c26ccf2f277
refs/heads/master
2020-12-24T06:51:18.392426
2016-04-25T03:09:27
2016-04-25T03:09:27
19,804,797
0
3
null
null
null
null
UTF-8
Java
false
false
1,941
java
/** * output package name */ package com.kingdee.eas.fdc.contract.app; import com.kingdee.bos.Context; import com.kingdee.eas.framework.batchHandler.RequestContext; import com.kingdee.eas.framework.batchHandler.ResponseContext; /** * output class name */ public abstract class AbstractAccountsContractUIHandler extends com.kingdee.eas.framework.app.TreeListUIHandler { public void handleActionDisplayAll(RequestContext request,ResponseContext response, Context context) throws Exception { _handleActionDisplayAll(request,response,context); } protected void _handleActionDisplayAll(RequestContext request,ResponseContext response, Context context) throws Exception { } public void handleActionDisplayConNoText(RequestContext request,ResponseContext response, Context context) throws Exception { _handleActionDisplayConNoText(request,response,context); } protected void _handleActionDisplayConNoText(RequestContext request,ResponseContext response, Context context) throws Exception { } public void handleActionDisplayContract(RequestContext request,ResponseContext response, Context context) throws Exception { _handleActionDisplayContract(request,response,context); } protected void _handleActionDisplayContract(RequestContext request,ResponseContext response, Context context) throws Exception { } public void handleActionAll(RequestContext request,ResponseContext response, Context context) throws Exception { _handleActionAll(request,response,context); } protected void _handleActionAll(RequestContext request,ResponseContext response, Context context) throws Exception { } public void handleActionSplit(RequestContext request,ResponseContext response, Context context) throws Exception { _handleActionSplit(request,response,context); } protected void _handleActionSplit(RequestContext request,ResponseContext response, Context context) throws Exception { } }
[ "shxr_code@126.com" ]
shxr_code@126.com
2c8d31ab6fa42a23b723cbec257224e07ba39bcb
477e15e585a36e736af6c23200b3497c34e961ea
/Day0629_Spring_MVC/src/dao/IStudentDao.java
3b7c899d306a588d7d888c8e2b17d9e8106e8adc
[]
no_license
ser6440/spring
430ee14bf5ad518cf4a2a42001ec96d5cdba546c
78686b774642257fb7fb8b13b4f26121ac826a71
refs/heads/master
2020-03-21T19:52:07.296607
2018-07-04T08:06:57
2018-07-04T08:06:57
138,974,406
0
0
null
null
null
null
UTF-8
Java
false
false
434
java
package dao; import java.util.List; import java.util.Map; public interface IStudentDao { //학생정보 public int insertStudent(Map<String, Object> params); public int updateStudent(Map<String, Object> params); public int deleteStudent(int snum); public Map<String, Object> selectOne(int snum); public List<Map<String, Object>> selectAll(); public List<Map<String, Object>> selectStudentsByGrade(int grade); }
[ "bit@DESKTOP-CAR2FCE" ]
bit@DESKTOP-CAR2FCE
b5643a8ecf715249e401c912a4ef76dd856bd7a9
c7e000e5c6549e095a8ffd032d33e0ca449c7ffd
/bin/ext-integration/sap/adtreco/sapadtreco/src/com/sap/wec/adtreco/be/intf/ADTInitiativesBE.java
8c668ba06e6637070671af6094980e380473cf12
[]
no_license
J3ys/million
e80ff953e228e4bc43a1108a1c117ddf11cc4644
a97974b68b4adaf820f9024aa5181de635c60b4f
refs/heads/master
2021-03-09T22:59:35.115273
2015-05-19T02:47:29
2015-05-19T02:47:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,131
java
/* * [y] hybris Platform * * Copyright (c) 2000-2014 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 com.sap.wec.adtreco.be.intf; import org.apache.olingo.odata2.api.ep.entry.ODataEntry; import org.apache.olingo.odata2.api.ep.feed.ODataFeed; import org.apache.olingo.odata2.api.exception.ODataException; import de.hybris.platform.sap.core.bol.backend.BackendBusinessObject; import java.net.URISyntaxException; /** * */ public interface ADTInitiativesBE extends BackendBusinessObject { public String getPath(); public String getUser(); public String getPassword(); public ODataEntry getInitiative(String select, String keyValue, String entitySetName); public ODataFeed getInitiatives(String select, String filter, String entitySetName, String expand) throws ODataException, URISyntaxException; public void loadDestinations(); }
[ "yanagisawa@gotandadenshi.jp" ]
yanagisawa@gotandadenshi.jp
748b2fe6ff352880ba955456976937e4a1eae878
f009dc33f9624aac592cb66c71a461270f932ffa
/src/main/java/com/alipay/api/response/AlipayEbppPdeductPayResponse.java
e3d712d01289446ac5017377cff5e7b3953630f8
[ "Apache-2.0" ]
permissive
1093445609/alipay-sdk-java-all
d685f635af9ac587bb8288def54d94e399412542
6bb77665389ba27f47d71cb7fa747109fe713f04
refs/heads/master
2021-04-02T16:49:18.593902
2020-03-06T03:04:53
2020-03-06T03:04:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,536
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.ebpp.pdeduct.pay response. * * @author auto create * @since 1.0, 2019-03-08 15:29:11 */ public class AlipayEbppPdeductPayResponse extends AlipayResponse { private static final long serialVersionUID = 8562473562654686941L; /** * 支付宝代扣协议ID */ @ApiField("agreement_id") private String agreementId; /** * 支付宝订单流水号 */ @ApiField("bill_no") private String billNo; /** * 扩展参数 */ @ApiField("extend_field") private String extendField; /** * 商户代扣业务流水 */ @ApiField("out_order_no") private String outOrderNo; /** * 针对于支付失败时,给的对应错误明细,如果判断外围的错误码是INVOKE_PAYACCEPTANCE_EXCEPTION需要近一步再结合着结果模型中的result_code, result_msg来判断 */ @ApiField("result_code") private String resultCode; /** * 针对于支付失败时,给的对应错误明细,如果判断外围的错误码是INVOKE_PAYACCEPTANCE_EXCEPTION需要近一步再结合着结果模型中的result_code, result_msg来判断 */ @ApiField("result_msg") private String resultMsg; /** * 订单支付状态。 0:未知 1:成功 2:失败 */ @ApiField("result_status") private String resultStatus; public void setAgreementId(String agreementId) { this.agreementId = agreementId; } public String getAgreementId( ) { return this.agreementId; } public void setBillNo(String billNo) { this.billNo = billNo; } public String getBillNo( ) { return this.billNo; } public void setExtendField(String extendField) { this.extendField = extendField; } public String getExtendField( ) { return this.extendField; } public void setOutOrderNo(String outOrderNo) { this.outOrderNo = outOrderNo; } public String getOutOrderNo( ) { return this.outOrderNo; } public void setResultCode(String resultCode) { this.resultCode = resultCode; } public String getResultCode( ) { return this.resultCode; } public void setResultMsg(String resultMsg) { this.resultMsg = resultMsg; } public String getResultMsg( ) { return this.resultMsg; } public void setResultStatus(String resultStatus) { this.resultStatus = resultStatus; } public String getResultStatus( ) { return this.resultStatus; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
fd062e0f6d78c6b6b871c824dc79b05ba348697f
f10dc8fb4181c4865cd4797de9d5a79f2c98af7a
/crmsrc/com/psit/struts/entity/StatOrd.java
df9434181e45dee5463edc109f470f3c389d6f2e
[]
no_license
DennisAZ/NewtouchOA
b9c41cc1f4caac53b453c56952af0f5156b6c4fa
881d72d80c83e1f2ad578c92e37a3241498499fc
refs/heads/master
2020-03-30T05:37:21.900004
2018-09-29T02:11:34
2018-09-29T02:11:34
150,809,685
0
3
null
null
null
null
UTF-8
Java
false
false
1,414
java
package com.psit.struts.entity; import java.util.Date; import com.psit.struts.util.format.GetDate; /** * 统计实体 <br> * create_date: Feb 24, 2011,1:58:53 PM<br> * @author rabbit */ public class StatOrd { private Long typId;//;类别ID private String typName;//类别名称 private Long count;//数量 private Double sum;//金额 // private String statType;//统计类型 public StatOrd() { } public StatOrd(String typName, Long count, Double sum) { this.typName = typName; this.count = count; this.sum = sum; } public StatOrd(Date date, Long count, Double sum) { this.typName = GetDate.parseStrMon(date); this.count = count; this.sum = sum; } public StatOrd(Date date, Double sum) { this.typName = GetDate.parseStrMon(date); this.sum = sum; } public Long getTypId() { return typId; } public void setTypId(Long typId) { this.typId = typId; } public String getTypName() { if(typName==null){ typName = "未选择"; } return typName; } public void setTypName(String typName) { this.typName = typName; } public Long getCount() { return count; } public void setCount(Long count) { this.count = count; } public Double getSum() { return sum; } public void setSum(Double sum) { this.sum = sum; } /*public String getStatType() { return statType; } public void setStatType(String statType) { this.statType = statType; }*/ }
[ "hao.duan@newtouch.cn" ]
hao.duan@newtouch.cn
a0965fe013a9a9f9c53af859fb6e3a4306ef2575
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/34/34_db34a7ada382f15bc9f0e3737404d8bcfba3fcc1/Pair/34_db34a7ada382f15bc9f0e3737404d8bcfba3fcc1_Pair_s.java
0df0eb8738725e922736d1eb014735401bfe76e6
[]
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,512
java
package ischemia; /** * Encapsulates a LISP pair and its evaluation * */ public class Pair extends SchemeObject { private SchemeObject car; private SchemeObject cdr; public Pair(SchemeObject car, SchemeObject cdr) { this.car = car; this.cdr = cdr; } //Casts the car and cdr of a pair to a pair (more elegant chaining of cars) private Pair pcar() {return (Pair)car;} private Pair pcdr() {return (Pair)cdr;} public SchemeObject car() {return car;} public SchemeObject cdr() {return cdr;} public void setCar(SchemeObject car) {this.car = car;} public void setCdr(SchemeObject cdr) {this.cdr = cdr;} /** * Evaluates all objects in a list */ private static SchemeObject evalAll(Environment env, SchemeObject obj) throws EvalException { if (obj instanceof EmptyList) return obj; return new Pair(((Pair)obj).car().evaluate(env), evalAll(env, ((Pair)obj).cdr())); } public EvaluationResult eval(Environment env) throws EvalException { //Unquote quoted lists when evaluating if (car.equals(Symbol.quoteSymbol)) { return EvaluationResult.makeFinished(pcdr().car); } //Mutate the value in the current environment if it exists if (car.equals(Symbol.setSymbol)) { env.setVariableValue(pcdr().car, pcdr().pcdr().car.evaluate(env)); return EvaluationResult.makeFinished(Symbol.okSymbol); } //Define a variable or a procedure in the current environment, overwriting it if it exists. if (car.equals(Symbol.defineSymbol)) { if (pcdr() instanceof Pair) { //It's a procedure! //The first element in the first argument is the name, //the rest are the parameters //the second argument is the procedure body env.defineVariable(pcdr().pcar().car, new CompoundProcedure(pcdr().pcar().cdr, pcdr().cdr)); return EvaluationResult.makeFinished(Symbol.okSymbol); } env.defineVariable(pcdr().car, pcdr().pcdr().car.evaluate(env)); return EvaluationResult.makeFinished(Symbol.okSymbol); } //Evaluate the If symbol if (car.equals(Symbol.ifSymbol)) { //Anything that's not explicitly false is true if (!pcdr().car.evaluate(env).equals(Boolean.FalseValue)) { return EvaluationResult.makeUnfinished(pcdr().pcdr().car, env); } else { //If there is no "false" parameter, return false if (pcdr().pcdr().cdr.equals(EmptyList.makeEmptyList())) { return EvaluationResult.makeFinished(Boolean.FalseValue); } //Otherwise, we will evaluate that expression return EvaluationResult.makeUnfinished(pcdr().pcdr().pcdr().car, env); } } //Evaluate the lambda symbol if (car.equals(Symbol.lambdaSymbol)) { return EvaluationResult.makeFinished( new CompoundProcedure(pcdr().car, pcdr().cdr)); } //Evaluate procedure application SchemeObject procedure = env.lookupValue(car); if (!(procedure instanceof Procedure)) { throw new EvalException("Unknown procedure!"); } return ((Procedure)procedure).evalProcedure(env, evalAll(env, cdr)); } public String printPair() { //Print the first element. String result = car.print(); //If it's a list, don't print dots. If it's a pair, do. if (cdr instanceof Pair) { return result + " " + pcdr().printPair(); } else if (cdr instanceof EmptyList) { return result; } else { return result + " . " + cdr.print(); } } public String print() { return "(" + printPair() + ")"; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
19c6d815ad1e282bebddfb679d9814cc0317d885
d2f810efbf145ea3e8b5925a7b5e90419477b586
/src/net/minecraft/network/play/server/S19PacketEntityStatus.java
eed41652de8e8997005fcf6a2ddeedb76ee89fd7
[]
no_license
nullexthecodegod/Stealth
7505536594fda0a577a3406b3ed89b75857dc2be
334edcd2fc0f2fbda88b8845adb9c1a2f17023dd
refs/heads/master
2021-05-14T18:15:11.746357
2018-01-11T04:32:51
2018-01-11T04:32:51
116,067,644
2
1
null
null
null
null
UTF-8
Java
false
false
1,667
java
package net.minecraft.network.play.server; import java.io.IOException; import net.minecraft.entity.Entity; import net.minecraft.network.INetHandler; import net.minecraft.network.Packet; import net.minecraft.network.PacketBuffer; import net.minecraft.network.play.INetHandlerPlayClient; import net.minecraft.world.World; public class S19PacketEntityStatus implements Packet { private int entityId; private byte logicOpcode; public S19PacketEntityStatus() {} public S19PacketEntityStatus(Entity entityIn, byte opCodeIn) { this.entityId = entityIn.getEntityId(); this.logicOpcode = opCodeIn; } /** * Reads the raw packet data from the data stream. */ public void readPacketData(PacketBuffer buf) throws IOException { this.entityId = buf.readInt(); this.logicOpcode = buf.readByte(); } /** * Writes the raw packet data to the data stream. */ public void writePacketData(PacketBuffer buf) throws IOException { buf.writeInt(this.entityId); buf.writeByte(this.logicOpcode); } public void processPacket(INetHandlerPlayClient handler) { handler.handleEntityStatus(this); } public Entity getEntity(World worldIn) { return worldIn.getEntityByID(this.entityId); } public byte getOpCode() { return this.logicOpcode; } /** * Passes this Packet on to the NetHandler for processing. */ public void processPacket(INetHandler handler) { this.processPacket((INetHandlerPlayClient)handler); } }
[ "NullEX@Offset#6604" ]
NullEX@Offset#6604
974ff2eb1740d019d53d9264ab4fc2860deb21ee
4cd934d823612a89c1340f0bfc1ae31a964a5204
/bedrock261/src/main/java/soupply/bedrock261/type/Recipe.java
6355420de59752127d75b64e35a2fa4dd13b894c
[ "MIT" ]
permissive
DaMatrix/java
307d9b426efd1086efc4466e7bd9528b103e68a3
e94bcca06efe16eaab8d1cfb4e349df9715da4cf
refs/heads/master
2020-03-21T05:21:32.137602
2018-06-18T14:50:44
2018-06-18T14:50:44
138,156,892
1
0
null
2018-06-21T10:40:33
2018-06-21T10:40:32
null
UTF-8
Java
false
false
898
java
package soupply.bedrock261.type; import java.util.*; import soupply.util.*; public class Recipe extends Type { // type public static final int SHAPELESS = (int)0; public static final int SHAPED = (int)1; public static final int FURNACE = (int)2; public static final int FURNACE_DATA = (int)3; public static final int MULTI = (int)4; public int type; public byte[] data; public Recipe() { } public Recipe(int type, byte[] data) { this.type = type; this.data = data; } @Override public void encodeBody(Buffer _buffer) { _buffer.writeVarint(type); _buffer.writeBytes(data); } @Override public void decodeBody(Buffer _buffer) throws BufferOverflowException { type = _buffer.readVarint(); data = _buffer.readBytes(_buffer._buffer.length-_buffer._index); } }
[ "selutils@mail.com" ]
selutils@mail.com
cdcfb028cb98496a96afb39b16eea8bded860777
b17d6bb5e3fa192b597bf671198842ad45de2f48
/src/main/java/pt/ricardojafe/jhipstertests/mono/config/ApplicationProperties.java
19b649d5c88588be0ebafb11543d56a5c575e02f
[]
no_license
kriptonis/jhipsterSampleApplication
2397545d7ba71e4873c2d386e4a7293d2a760b4f
77349a9b89ff89cdf59b68472000282127491b90
refs/heads/master
2021-01-01T16:22:14.074569
2017-07-20T09:12:01
2017-07-20T09:12:01
97,815,162
0
0
null
null
null
null
UTF-8
Java
false
false
355
java
package pt.ricardojafe.jhipstertests.mono.config; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Properties specific to JHipster. * <p> * Properties are configured in the application.yml file. */ @ConfigurationProperties(prefix = "application", ignoreUnknownFields = false) public class ApplicationProperties { }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
211201c3da626c25ec811c4ba35795b7448770e7
3a3d51f069841893eabf7f58f81ebf411107efba
/src/main/java/org/akomantoso/schema/v3/csd08/ForceMods.java
01c64feb4092157c293c654e91c237a31da35a26
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ymartin59/akomantoso-lib
7481f4cf3ead3d8b410f40f6b7b3106318692dfb
3215cb0d8596ea2c74595b59a0f81c6e91183fab
refs/heads/master
2022-03-27T20:27:39.719762
2017-06-29T17:21:41
2017-06-29T17:21:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,095
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.03.16 at 01:25:33 AM IST // package org.akomantoso.schema.v3.csd08; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ForceMods. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="ForceMods"> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"> * &lt;enumeration value="entryIntoForce"/> * &lt;enumeration value="endOfEnactment"/> * &lt;enumeration value="postponementOfEntryIntoForce"/> * &lt;enumeration value="prorogationOfForce"/> * &lt;enumeration value="reEnactment"/> * &lt;enumeration value="uncostitutionality"/> * &lt;/restriction> * &lt;/simpleType> * </pre> * */ @XmlType(name = "ForceMods") @XmlEnum public enum ForceMods { @XmlEnumValue("entryIntoForce") ENTRY_INTO_FORCE("entryIntoForce"), @XmlEnumValue("endOfEnactment") END_OF_ENACTMENT("endOfEnactment"), @XmlEnumValue("postponementOfEntryIntoForce") POSTPONEMENT_OF_ENTRY_INTO_FORCE("postponementOfEntryIntoForce"), @XmlEnumValue("prorogationOfForce") PROROGATION_OF_FORCE("prorogationOfForce"), @XmlEnumValue("reEnactment") RE_ENACTMENT("reEnactment"), @XmlEnumValue("uncostitutionality") UNCOSTITUTIONALITY("uncostitutionality"); private final String value; ForceMods(String v) { value = v; } public String value() { return value; } public static ForceMods fromValue(String v) { for (ForceMods c: ForceMods.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }
[ "ashok@hariharan.org.in" ]
ashok@hariharan.org.in
ed750251d472536232c5f37cd12f8d3c930151f6
55d48cf4d1b9f70fe4ad431cd2fa356b8bb8cfd5
/1_trainee/003_collections/5_control_questions/src/main/java/ru/nik66/DepartmentsSort.java
e8f2ad9e7d0390713c3091dcdc5344c16e7f7d16
[ "Apache-2.0" ]
permissive
Nikbstar/nkotkin-job4j
57834a7069bed60213f2f955e5ed5529b4936f08
21886bbe99b4f50c2d6fefeccac2781753c3f452
refs/heads/master
2018-12-21T06:30:43.254684
2018-12-09T13:18:44
2018-12-09T13:18:44
112,478,822
3
0
Apache-2.0
2018-03-30T14:52:14
2017-11-29T13:29:19
Java
UTF-8
Java
false
false
1,842
java
package ru.nik66; import java.util.Set; import java.util.HashSet; import java.util.Arrays; import java.util.Comparator; /** * Deportaments sort. * Отсортировать департаменты [#34352] */ public class DepartmentsSort { private final String[] values; public DepartmentsSort(String[] values) { Set<String> tmp = new HashSet<>(Arrays.asList(values)); for (String value : values) { StringBuilder sb = new StringBuilder(); String[] separate = value.split("\\\\"); sb.append(separate[0]); tmp.add(sb.toString()); for (int i = 1; i < separate.length - 1; i++) { sb.append('\\').append(separate[i]); tmp.add(sb.toString()); } } this.values = tmp.toArray(new String[tmp.size()]); } /** * Sort deportaments. * @return sorted deportaments. */ public String[] sort() { Arrays.sort(this.values); return this.values; } /** * Reverse sort deportaments. * @return reverse sorted deportaments. */ public String[] reverse() { Arrays.sort(this.values, new Comparator<String>() { @Override public int compare(String o1, String o2) { int minLen = Math.min(o1.length(), o2.length()); int result = o1.length() - o2.length(); for (int index = 0; index < minLen; index++) { char o1Char = o1.charAt(index); char o2Char = o2.charAt(index); if (o2Char - o1Char != 0) { result = o2Char - o1Char; break; } } return result; } }); return this.values; } }
[ "nikbstar@gmail.com" ]
nikbstar@gmail.com
3565be959abb9f30320fcea46aa847a9bbc6fe78
146086a1d08e226047b91c8b11675b0ed8b9f029
/snap-studio-agent/src/main/java/org/snapscript/studio/agent/event/ScopeEventMarshaller.java
56bd3da1bdbeb81a9265ec75ef4b18ee5c3cc97d
[]
no_license
snapscript/snap-develop
750c82b8b82f7cb5369bec0f7354d007d15bfee0
12ea04b6af12b95426171dc668fcd2fc4f21d4d2
refs/heads/master
2020-05-21T14:59:23.856444
2019-02-09T15:17:50
2019-02-09T15:17:50
65,230,424
2
1
null
null
null
null
UTF-8
Java
false
false
3,795
java
package org.snapscript.studio.agent.event; import static org.snapscript.studio.agent.event.ProcessEventType.SCOPE; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.Map; import org.snapscript.studio.agent.debug.ScopeVariableTree; import org.snapscript.studio.agent.debug.ThreadStatus; public class ScopeEventMarshaller implements ProcessEventMarshaller<ScopeEvent> { private final MapMarshaller marshaller; public ScopeEventMarshaller() { this.marshaller = new MapMarshaller(); } @Override public ScopeEvent fromMessage(MessageEnvelope message) throws IOException { byte[] array = message.getData(); int length = message.getLength(); int offset = message.getOffset(); ByteArrayInputStream buffer = new ByteArrayInputStream(array, offset, length); DataInputStream input = new DataInputStream(buffer); String process = input.readUTF(); String thread = input.readUTF(); String stack = input.readUTF(); String instruction = input.readUTF(); String status = input.readUTF(); String resource = input.readUTF(); String source = null; if(input.readBoolean()) { source = input.readUTF(); } int line = input.readInt(); int depth = input.readInt(); int sequence = input.readInt(); int change = input.readInt(); Map<String, Map<String, String>> local = marshaller.readMap(input); Map<String, Map<String, String>> evaluation = marshaller.readMap(input); ScopeVariableTree tree = new ScopeVariableTree.Builder(change) .withLocal(local) .withEvaluation(evaluation) .build(); return new ScopeEvent.Builder(process) .withVariables(tree) .withThread(thread) .withStack(stack) .withInstruction(instruction) .withStatus(ThreadStatus.valueOf(status)) .withResource(resource) .withSource(source) .withLine(line) .withDepth(depth) .withKey(sequence) .build(); } @Override public MessageEnvelope toMessage(ScopeEvent event) throws IOException { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); DataOutputStream output = new DataOutputStream(buffer); ScopeVariableTree tree = event.getVariables(); Map<String, Map<String, String>> local = tree.getLocal(); Map<String, Map<String, String>> evaluation = tree.getEvaluation(); String process = event.getProcess(); String thread = event.getThread(); String stack = event.getStack(); String instruction = event.getInstruction(); ThreadStatus status = event.getStatus(); String resource = event.getResource(); String source = event.getSource(); int change = tree.getChange(); int sequence = event.getKey(); int line = event.getLine(); int depth = event.getDepth(); output.writeUTF(process); output.writeUTF(thread); output.writeUTF(stack); output.writeUTF(instruction); output.writeUTF(status.name()); output.writeUTF(resource); if(source != null) { output.writeBoolean(true); output.writeUTF(source); } else { output.writeBoolean(false); } output.writeInt(line); output.writeInt(depth); output.writeInt(sequence); output.writeInt(change); marshaller.writeMap(output, local); marshaller.writeMap(output, evaluation); output.flush(); byte[] array = buffer.toByteArray(); return new MessageEnvelope(SCOPE.code, array, 0, array.length); } }
[ "gallagher_niall@yahoo.com" ]
gallagher_niall@yahoo.com
0c4a77d98830aaf1555a2778699d3534e77ee812
746572ba552f7d52e8b5a0e752a1d6eb899842b9
/JDK8Source/src/main/java/com/sun/org/apache/bcel/internal/generic/DUP2.java
b5021dc5b7fcf7f5cf531ff65e079514df11c4fb
[]
no_license
lobinary/Lobinary
fde035d3ce6780a20a5a808b5d4357604ed70054
8de466228bf893b72c7771e153607674b6024709
refs/heads/master
2022-02-27T05:02:04.208763
2022-01-20T07:01:28
2022-01-20T07:01:28
26,812,634
7
5
null
null
null
null
UTF-8
Java
false
false
5,850
java
/***** Lobxxx Translate Finished ******/ /* * Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.org.apache.bcel.internal.generic; /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache BCEL" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * "Apache BCEL", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * <p> *  Apache软件许可证,版本1.1 * *  版权所有(c)2001 Apache软件基金会。版权所有。 * *  如果满足以下条件,则允许重新分发和使用源代码和二进制形式(带或不带修改): * *  1.源代码的再分发必须保留上述版权声明,此条件列表和以下免责声明。 * *  2.二进制形式的再分发必须在分发所提供的文档和/或其他材料中复制上述版权声明,此条件列表和以下免责声明。 * *  3.包含在重新分发中的最终用户文档(如果有)必须包括以下声明:"本产品包括由Apache Software Foundation(http://www.apache.org/)开发的软件。 * 或者,如果此类第三方确认通常出现,则此确认可能出现在软件本身中。 * *  4.未经事先书面许可,不得使用名称"Apache"和"Apache Software Foundation"和"Apache BCEL"来认可或推广从本软件衍生的产品。 * 如需书面许可,请联系apache@apache.org。 * */ /** * DUP2 - Duplicate two top operand stack words * <PRE>Stack: ..., word2, word1 -&gt; ..., word2, word1, word2, word1</PRE> * * <p> * 未经Apache软件基金会事先书面许可,从本软件衍生的产品可能不会被称为"Apache","Apache BCEL",也不可能出现在他们的名字中。 * *  本软件按"原样"提供,任何明示或默示的保证,包括但不限于适销性和特定用途适用性的默示保证。 * 在任何情况下,APACHE软件基金会或其捐赠者均不对任何直接,间接,偶发,特殊,惩罚性或后果性损害(包括但不限于替代商品或服务的采购,使用,数据丢失或利润或业务中断),无论是由于任何责任推理原因,无论是 * 在合同,严格责任或侵权(包括疏忽或其他方式)中,以任何方式使用本软件,即使已被告知此类软件的可能性损伤。 *  本软件按"原样"提供,任何明示或默示的保证,包括但不限于适销性和特定用途适用性的默示保证。 * ================================================== ==================。 * * * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ public class DUP2 extends StackInstruction implements PushInstruction { public DUP2() { super(com.sun.org.apache.bcel.internal.Constants.DUP2); } /** * Call corresponding visitor method(s). The order is: * Call visitor methods of implemented interfaces first, then * call methods according to the class hierarchy in descending order, * i.e., the most specific visitXXX() call comes last. * * <p> *  该软件包括许多个人代表Apache软件基金会所做的自愿捐款。有关Apache Software Foundation的更多信息,请参阅<http://www.apache.org/>。 * * * @param v Visitor object */ public void accept(Visitor v) { v.visitStackProducer(this); v.visitPushInstruction(this); v.visitStackInstruction(this); v.visitDUP2(this); } }
[ "919515134@qq.com" ]
919515134@qq.com
af667eb9653da2b4f5bebea674d1f18d540e5add
7417218176fbbae9787adce40a3f1ebdf48ed66e
/src/com/boredream/leetcode/Q122.java
1336bea7d5bb9d424f190e96bd0bcea05de9a4c3
[]
no_license
boredream/JavaCodeProject
398b3a28e4e223a5da184ca8daa6944e138288bc
6857452ab6442dfc00acd223c0a3ab355e2abb71
refs/heads/master
2023-08-31T20:54:15.788553
2023-08-31T03:27:04
2023-08-31T03:27:04
53,392,141
0
0
null
null
null
null
UTF-8
Java
false
false
1,985
java
package com.boredream.leetcode; /** * 给你一个整数数组 prices ,其中 prices[i] 表示某支股票第 i 天的价格。 * <p> * 在每一天,你可以决定是否购买和/或出售股票。你在任何时候 最多 只能持有 一股 股票。你也可以先购买,然后在 同一天 出售。 * <p> * 返回 你能获得的 最大 利润 。 * <p> * 链接:https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii */ public class Q122 { public static void main(String[] args) { int[] nums = {5, 2, 3, 2, 6, 6, 2, 9, 1, 0, 7, 4, 5, 0}; System.out.println(maxProfit2(nums)); } private static int maxProfit(int[] prices) { // 思路:多次买卖,每个波动都 最低点买入,最高点卖出即可;尽量空间On int totalProfit = 0; int buy = prices[0]; for (int i = 1; i < prices.length; i++) { // 下降,且价格低于买入,则替换买入价 if (prices[i] < buy) { buy = prices[i]; } else if (prices[i] >= prices[i - 1]) { // 上升,下一个开始下降或者最后一个了(波顶),才卖出 if (i == prices.length - 1 || prices[i] > prices[i + 1]) { totalProfit += (prices[i] - buy); buy = prices[i]; } } } return totalProfit; } private static int maxProfit2(int[] prices) { // 优化:遇到下降才判断是波峰,然后卖出,而不是判断当前的和下一个对比 int totalProfit = 0; int buy = prices[0]; for (int i = 1; i < prices.length; i++) { if (prices[i] < prices[i - 1] || i == prices.length - 1) { if (prices[i - 1] > buy) { totalProfit += (prices[i - 1] - buy); } buy = prices[i]; } } return totalProfit; } }
[ "48262906@qq.com" ]
48262906@qq.com
02d43ff09d3d7a765f9c34f5936a9fc9dab939b1
faa536c825f6f94d8f0719e8b5bffbdf964a98f9
/jem-crawler/src/main/java/jem/crawler/Crawler.java
1949bb9167c6465585d10808e2a17c61da4711f1
[ "Apache-2.0" ]
permissive
phylame/jemiv
7c9601327275cfe7b51a44a565b42199b48cc173
093bcddea58664a6671529eb436834421528426b
refs/heads/master
2021-01-02T22:59:16.915179
2017-09-08T08:47:35
2017-09-08T08:47:35
99,431,093
0
0
null
null
null
null
UTF-8
Java
false
false
1,720
java
/* * Copyright 2017 Peng Wan <phylame@163.com> * * This file is part of Jem. * * 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 jem.crawler; import jem.Book; import jem.util.JemException; import jem.util.TypedConfig; import java.io.IOException; public interface Crawler { /** * Fetches a book from specified URL. * * @param url the URL to be fetched * @param config config for fetching book * @return the fetched book * @throws JemException if an error occurs when fetching * @throws IOException if an I/O error occurs */ Book getBook(String url, TypedConfig config) throws JemException, IOException; /** * Fetches text of chapter from specified URL. * <p> * This method will be invoked by {@code CrawlerText} when getting text. * </p> * * @param url the URL to be fetched * @param config config for fetching text * @return the text string of chapter * @throws JemException if an error occurs when fetching * @throws IOException if an I/O error occurs * @see jem.crawler.CrawlerText */ String getText(String url, TypedConfig config) throws JemException, IOException; }
[ "phylame@163.com" ]
phylame@163.com
96d1047da4554ac8961303ac79124bff82755ebc
c474b03758be154e43758220e47b3403eb7fc1fc
/apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/rx/Completable$23.java
433769dae38435ad5f1894c9b546757ff130127e
[]
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
1,021
java
package rx; import rx.functions.Func0; import rx.p500e.C19407e; class Completable$23 implements Completable$OnSubscribe { /* renamed from: a */ final /* synthetic */ Func0 f62175a; Completable$23(Func0 func0) { this.f62175a = func0; } public /* synthetic */ void call(Object obj) { m71551a((CompletableSubscriber) obj); } /* renamed from: a */ public void m71551a(CompletableSubscriber completableSubscriber) { try { Completable completable = (Completable) this.f62175a.call(); if (completable == null) { completableSubscriber.onSubscribe(C19407e.m69855b()); completableSubscriber.onError(new NullPointerException("The completable returned is null")); return; } completable.a(completableSubscriber); } catch (Throwable th) { completableSubscriber.onSubscribe(C19407e.m69855b()); completableSubscriber.onError(th); } } }
[ "jdguzmans@hotmail.com" ]
jdguzmans@hotmail.com
81d34542502807b4935efe5fe78633690a1ab94f
09957bf1223d2876b4251bdebfc66b3f55915523
/src/main/java/org/vs/HelloWorldInitializer.java
44289bc5e086b8ba66fc4cd87ce337e08db26ee7
[]
no_license
vishalsinha21/spring-maven-fitness-integration
da2e86a995dbfb5f62a26a6247fea0eedccaa8e7
f134912f885e68052a1825c2e02482bd4882aa1d
refs/heads/master
2020-12-30T13:46:38.081520
2017-05-14T15:52:35
2017-05-14T15:52:35
91,254,280
1
0
null
null
null
null
UTF-8
Java
false
false
544
java
package org.vs; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; public class HelloWorldInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getRootConfigClasses() { return new Class[]{HelloWorldConfiguration.class}; } @Override protected Class<?>[] getServletConfigClasses() { return null; } @Override protected String[] getServletMappings() { return new String[]{"/"}; } }
[ "vishal.sinha21@gmail.com" ]
vishal.sinha21@gmail.com
f5f8ee50817099bb12f966ea1d3b89bc56529f70
c040aeeac7c86eedeaaa40e5744a40b70f0d1408
/src/com/sykj/shenfu/po/Materialbom.java
cc909fae67ff7f69b56151a4bbf8e963a5bb64ee
[]
no_license
lucher007/shenfu
b6cc96f039e80f318586e2cc3b7db80e68528cb4
5cdfb03455515be3e175902682f9a039c3320332
refs/heads/master
2020-04-14T11:32:45.179553
2019-01-02T09:02:12
2019-01-02T09:19:36
163,816,793
0
1
null
null
null
null
UTF-8
Java
false
false
3,379
java
package com.sykj.shenfu.po; import java.io.Serializable; import java.util.List; import java.util.Map; /** * 用户实体类 */ public class Materialbom extends BaseField implements Serializable { private static final long serialVersionUID = 1L; private Integer id; //数据库ID private Integer pid; //父级BOM private String materialcode; //材料编码 private String materialname; //材料名称 private String bomcode; //规则编号(有规则的编号,方便管理拓扑结构,举例:001,002,001-001等。 private String componentcode; //元器件编号 private String componentname; //元器件名称 private String componentmodel; //规格 private Integer amount; //所需数量 private String remark; //备注 /******************数据库辅助字段*************************/ private Materialbom materialbom; private List<Materialbom> bomlist; private Materialbom parentbom; //父级Bom private Material material; private Map<String, String> materialmap; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getPid() { return pid; } public void setPid(Integer pid) { this.pid = pid; } public String getMaterialcode() { return materialcode; } public void setMaterialcode(String materialcode) { this.materialcode = materialcode; } public String getMaterialname() { return materialname; } public void setMaterialname(String materialname) { this.materialname = materialname; } public String getBomcode() { return bomcode; } public void setBomcode(String bomcode) { this.bomcode = bomcode; } public String getComponentcode() { return componentcode; } public void setComponentcode(String componentcode) { this.componentcode = componentcode; } public String getComponentname() { return componentname; } public void setComponentname(String componentname) { this.componentname = componentname; } public String getComponentmodel() { return componentmodel; } public void setComponentmodel(String componentmodel) { this.componentmodel = componentmodel; } public Integer getAmount() { return amount; } public void setAmount(Integer amount) { this.amount = amount; } public String getRemark() { return remark; } public void setRemark(String remark) { this.remark = remark; } public Materialbom getMaterialbom() { return materialbom; } public void setMaterialbom(Materialbom materialbom) { this.materialbom = materialbom; } public List<Materialbom> getBomlist() { return bomlist; } public void setBomlist(List<Materialbom> bomlist) { this.bomlist = bomlist; } public Materialbom getParentbom() { return parentbom; } public void setParentbom(Materialbom parentbom) { this.parentbom = parentbom; } public Material getMaterial() { return material; } public void setMaterial(Material material) { this.material = material; } public Map<String, String> getMaterialmap() { return materialmap; } public void setMaterialmap(Map<String, String> materialmap) { this.materialmap = materialmap; } public static long getSerialversionuid() { return serialVersionUID; } }
[ "lucher007@192.168.1.9" ]
lucher007@192.168.1.9
b26b87aa11b6aab15a8aa433d1e209d7c1b77c95
bccb412254b3e6f35a5c4dd227f440ecbbb60db9
/hl7/model/V2_6/table/Table0342.java
28b30733845dee717b820d77aa8f9f73305b4557
[]
no_license
nlp-lap/Version_Compatible_HL7_Parser
8bdb307aa75a5317265f730c5b2ac92ae430962b
9977e1fcd1400916efc4aa161588beae81900cfd
refs/heads/master
2021-03-03T15:05:36.071491
2020-03-09T07:54:42
2020-03-09T07:54:42
245,967,680
0
0
null
null
null
null
UTF-8
Java
false
false
343
java
package hl7.model.V2_6.table; import hl7.bean.table.Table; public class Table0342 extends Table{ private static final String VERSION = "2.6"; public static Table getInstance(){ if(table==null) new Table0342(); return table; } private Table0342(){ setTableName("Military Recipient"); setOID("2.16.840.1.113883.12.342"); } }
[ "terminator800@hanmail.net" ]
terminator800@hanmail.net
eed971fca69f5a32313c16258cd5ea3af5cfa046
fc0879f1a64a9b12f191b46f3ee08f32114519af
/gameserver/src/ru/catssoftware/gameserver/handler/skillhandlers/ExtractableCombo.java
3160e16683f039e4efce2628bcc865755b820072
[]
no_license
Snikers0309/lucera2
b26f59953edec905aefeb2c4273f3dec17e88a9d
53d623903322e177cc7eb34a7e292878cbc74841
refs/heads/master
2023-03-23T00:25:53.002593
2013-01-30T01:11:33
2013-01-30T01:11:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,225
java
package ru.catssoftware.gameserver.handler.skillhandlers; import ru.catssoftware.gameserver.datatables.ItemTable; import ru.catssoftware.gameserver.datatables.xml.ExtractableItemsData; import ru.catssoftware.gameserver.handler.ISkillHandler; import ru.catssoftware.gameserver.items.model.L2ExtractableItem; import ru.catssoftware.gameserver.items.model.L2ExtractableProductItem; import ru.catssoftware.gameserver.model.L2Character; import ru.catssoftware.gameserver.model.L2Skill; import ru.catssoftware.gameserver.model.actor.instance.L2PcInstance; import ru.catssoftware.gameserver.network.SystemMessageId; import ru.catssoftware.gameserver.network.serverpackets.SystemMessage; import ru.catssoftware.gameserver.templates.skills.L2SkillType; import ru.catssoftware.tools.random.Rnd; public class ExtractableCombo implements ISkillHandler { private static final L2SkillType[] SKILL_IDS = { L2SkillType.EXTRACTABLE_COMBO }; public void useSkill(L2Character activeChar, L2Skill skill, L2Character... targets) { if (!(activeChar.isPlayer())) return; L2PcInstance player = (L2PcInstance)activeChar; int itemID = skill.getReferenceItemId(); if (itemID == 0) return; L2ExtractableItem exitem = ExtractableItemsData.getInstance().getExtractableItem(itemID); if (exitem == null) return; int rndNum = Rnd.get(100), chanceFrom = 0; int[] createItemId = new int[120]; int[] createAmount = new int[120]; int ch=0; // calculate extraction for (L2ExtractableProductItem expi : exitem.getProductItemsArray()) { int chance = expi.getChance(); if (rndNum >= chanceFrom && rndNum <= chance + chanceFrom) { for (int i = 0; i < expi.getId().length; i++) { createItemId[ch+i] = expi.getId()[i]; createAmount[ch+i] = expi.getAmmount()[i]; ch++; } } } if (createItemId[0] <= 0 || createItemId.length == 0 ) { player.sendPacket(SystemMessageId.NOTHING_INSIDE_THAT); return; } else { for (int i = 0; i < createItemId.length; i++) { if (createItemId[i] > 0) { if (ItemTable.getInstance().createDummyItem(createItemId[i]) == null) { _log.warn("createItemID " + createItemId[i] + " doesn't have template!"); player.sendPacket(SystemMessageId.NOTHING_INSIDE_THAT); return; } if (ItemTable.getInstance().createDummyItem(createItemId[i]).isStackable()) player.addItem("Extract", createItemId[i], createAmount[i], targets[0], false); else { for (int j = 0; j < createAmount[i]; j++) player.addItem("Extract", createItemId[i], 1, targets[0], false); } SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S); SystemMessage sm2 = new SystemMessage(SystemMessageId.EARNED_S1_ADENA); if (createItemId[i] == 57) { sm2.addNumber(createAmount[i]); player.sendPacket(sm2); } else { sm.addItemName(createItemId[i]); if (createAmount[i] > 1) sm.addNumber(createAmount[i]); player.sendPacket(sm); } } } } } public L2SkillType[] getSkillIds() { return SKILL_IDS; } }
[ "topp3000@mail.ru" ]
topp3000@mail.ru
632a7c035f8028c718057ada4846d70d15c77c47
c39e3203190a9f2923beddd52aa7a75ac0bcc9f4
/src/test/java/com/cybertek/SelfPractice/Homework1.java
957ce74846a173d88ceb2b734e679fe3340b4d6a
[]
no_license
ShaazShaaz/SeleniumProject
e9d00d84de5487538adadbd3f331c15eb3784dc6
6d0a9126d9042df5456cf40e4adf037832d7c5c6
refs/heads/master
2023-07-05T18:59:56.797245
2021-09-03T15:01:14
2021-09-03T15:01:14
402,445,685
0
0
null
null
null
null
UTF-8
Java
false
false
2,277
java
package com.cybertek.SelfPractice; import io.github.bonigarcia.wdm.WebDriverManager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.List; public class Homework1 { /* navigate to https://google.com 2. search for `selenium` 3. click google search button 4. identify the div that hold the search result count on next page `About 95,900,000 results (0.58 seconds)` 5. get the text of that element 6. Optionally , if you want some java practice , go ahead and extract the number of result and save it into long variable OPTIONALLy 7. get all the link that contain text `selenium` into a List<WebElement> 8. get the count 9. get the first one text 10. get the last one text 11. iterate over the list and print the text of each link 12. watch the short to learn more about `findElement(By.tagName("tag here"))` 13. watch the short to learn more about `element.getAttribute("attribute goes here")` */ public static void main(String[] args) { WebDriverManager.chromedriver().setup(); WebDriver driver=new ChromeDriver(); driver.get("https://google.com"); WebElement search= driver.findElement(By.name("q")); search.sendKeys("Selenium"); driver.findElement(By.name("btnK")).submit(); WebElement resultCount= driver.findElement(By.id("result-stats")); System.out.println("resultCount.getText() = " + resultCount.getText()); String str=resultCount.getText(); String str2=str.substring(str.indexOf("1"),str.indexOf(" r")); System.out.println(str2); // int searchNum=Integer.parseInt(str2); // System.out.println(searchNum); List<WebElement> selenium=driver.findElements(By.partialLinkText("Selenium")); System.out.println("selenium = " + selenium); System.out.println("selenium.get(0).getText() = " + selenium.get(0).getText()); System.out.println("selenium.get(selenium.size()-1).getText() = " + selenium.get(selenium.size() - 1).getText()); for (WebElement each:selenium) { System.out.println("each.getText() = " + each.getText()); } // driver.quit(); } }
[ "shaziasenol@gmail.com" ]
shaziasenol@gmail.com
16b9627cb38a3a5d0301b9e050411ed8a0d43c38
96047384a0270e920451402b05433e20d7f7c12a
/plugins/wildfly/src/main/java/org/fakereplace/integration/wildfly/hibernate5/WildflyEntityManagerFactoryProxy.java
c602ffaea767b3992dddf9faeb9f1bb40bd68403
[ "Apache-2.0" ]
permissive
sparkoo/fakereplace
bce30e6f93987dcf4a78f67b633b05ba1bc008fb
615a7af91e9fd870ce29fb19355e194423052579
refs/heads/master
2021-01-22T02:53:17.946242
2016-09-30T20:58:58
2016-09-30T20:58:58
81,078,678
0
0
null
2017-02-06T11:06:18
2017-02-06T11:06:18
null
UTF-8
Java
false
false
3,357
java
/* * Copyright 2016, Stuart Douglas, and individual contributors as indicated * by the @authors tag. * * 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.fakereplace.integration.wildfly.hibernate5; import org.jipijapa.plugin.spi.PersistenceUnitService; import javax.persistence.Cache; import javax.persistence.EntityGraph; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.PersistenceUnitUtil; import javax.persistence.Query; import javax.persistence.SynchronizationType; import javax.persistence.criteria.CriteriaBuilder; import javax.persistence.metamodel.Metamodel; import java.util.Map; /** * @author Stuart Douglas */ public class WildflyEntityManagerFactoryProxy implements EntityManagerFactory { private final PersistenceUnitService persistenceUnitService; public WildflyEntityManagerFactoryProxy(PersistenceUnitService persistenceUnitService) { this.persistenceUnitService = persistenceUnitService; } @Override public EntityManager createEntityManager() { return unwrap().createEntityManager(); } private EntityManagerFactory unwrap() { return ((HackPersistenceUnitService)persistenceUnitService).emf(); } @Override public EntityManager createEntityManager(Map map) { return unwrap().createEntityManager(map); } @Override public EntityManager createEntityManager(SynchronizationType synchronizationType) { return unwrap().createEntityManager(synchronizationType); } @Override public EntityManager createEntityManager(SynchronizationType synchronizationType, Map map) { return unwrap().createEntityManager(synchronizationType, map); } @Override public CriteriaBuilder getCriteriaBuilder() { return unwrap().getCriteriaBuilder(); } @Override public Metamodel getMetamodel() { return unwrap().getMetamodel(); } @Override public boolean isOpen() { return unwrap().isOpen(); } @Override public void close() { unwrap().close(); } @Override public Map<String, Object> getProperties() { return unwrap().getProperties(); } @Override public Cache getCache() { return unwrap().getCache(); } @Override public PersistenceUnitUtil getPersistenceUnitUtil() { return unwrap().getPersistenceUnitUtil(); } @Override public void addNamedQuery(String name, Query query) { unwrap().addNamedQuery(name, query); } @Override public <T> T unwrap(Class<T> cls) { return unwrap().unwrap(cls); } @Override public <T> void addNamedEntityGraph(String graphName, EntityGraph<T> entityGraph) { unwrap().addNamedEntityGraph(graphName, entityGraph); } }
[ "stuart.w.douglas@gmail.com" ]
stuart.w.douglas@gmail.com
e402fca9c7802b5e1fe8f338ed787a77db50ceb1
507fe5eebbc9da8733a9e5c12e32c04501e5a82b
/baksmali/src/main/java/com/virjar/baksmalisrc/dexlib2/writer/pool/AnnotationPool.java
7caedc18b0ea6bf6c7d4c1620421d49e231ac1f0
[]
no_license
axhlzy/DVMUnpacker
4ce1fe8b3b75b72ef9f2df90f30e64f5ff5a045e
38d9ada65d1cc850ce96dfdebc6d99facb7a51eb
refs/heads/master
2022-12-14T19:41:43.217094
2020-09-16T08:45:33
2020-09-16T08:45:33
295,996,703
0
1
null
2020-09-16T10:13:49
2020-09-16T10:13:47
null
UTF-8
Java
false
false
3,358
java
/* * Copyright 2013, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package com.virjar.baksmalisrc.dexlib2.writer.pool; import com.virjar.baksmalisrc.dexlib2.iface.Annotation; import com.virjar.baksmalisrc.dexlib2.iface.AnnotationElement; import com.virjar.baksmalisrc.dexlib2.iface.value.EncodedValue; import com.virjar.baksmalisrc.dexlib2.writer.AnnotationSection; import javax.annotation.Nonnull; import java.util.Collection; public class AnnotationPool extends BaseOffsetPool<Annotation> implements AnnotationSection<CharSequence, CharSequence, Annotation, AnnotationElement, EncodedValue> { public AnnotationPool(@Nonnull DexPool dexPool) { super(dexPool); } public void intern(@Nonnull Annotation annotation) { Integer prev = internedItems.put(annotation, 0); if (prev == null) { dexPool.typeSection.intern(annotation.getType()); for (AnnotationElement element: annotation.getElements()) { dexPool.stringSection.intern(element.getName()); dexPool.internEncodedValue(element.getValue()); } } } @Override public int getVisibility(@Nonnull Annotation annotation) { return annotation.getVisibility(); } @Nonnull @Override public CharSequence getType(@Nonnull Annotation annotation) { return annotation.getType(); } @Nonnull @Override public Collection<? extends AnnotationElement> getElements(@Nonnull Annotation annotation) { return annotation.getElements(); } @Nonnull @Override public CharSequence getElementName(@Nonnull AnnotationElement annotationElement) { return annotationElement.getName(); } @Nonnull @Override public EncodedValue getElementValue(@Nonnull AnnotationElement annotationElement) { return annotationElement.getValue(); } }
[ "virjar@virjar.com" ]
virjar@virjar.com
307e77169d96330fb4f51cd4e39b4afe0b640f1d
e368d9adb1fe3b2d6e20c31835ff4abeea77e4ee
/workspace_8/LTM/src/onTap2/CloneCopyFile2.java
5110fabce8d37af296f3e81e8c48720aef0c2be4
[]
no_license
thanghoang07/java
29edf868f79318672707be626d9105935fd83478
41d62d5e9f206f0459b9c3d42a8581fc5395b223
refs/heads/master
2020-05-07T13:45:13.479039
2019-04-10T09:59:34
2019-04-10T09:59:34
180,541,189
2
0
null
null
null
null
UTF-8
Java
false
false
756
java
package onTap2; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; public class CloneCopyFile2 { public void copyDataFile(String source, String dest) throws IOException { byte[] data = new byte[10240]; int i; File file = new File(source); if (file.exists()) { BufferedInputStream in = new BufferedInputStream(new FileInputStream(source)); BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(dest)); while ((i = in.read(data)) != -1) { out.write(data, 0, i); } System.out.println("done"); in.close(); out.close(); } else { System.out.println("loi"); } } }
[ "thanghoang07@outlook.com" ]
thanghoang07@outlook.com
a8043f54330f650333c7627776aafab73692658f
4627d514d6664526f58fbe3cac830a54679749cd
/projects/mockito/test/org/mockito/internal/stubbing/defaultanswers/HasPrimitiveMethods.java
30c453a9ac253ccfb0180fc93e8944b1d5c4b592
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
STAMP-project/Cling-application
c624175a4aa24bb9b29b53f9b84c42a0f18631bd
0ff4d7652b434cbfd9be8d8bb38cfc8d8eaa51b5
refs/heads/master
2022-07-27T09:30:16.423362
2022-07-19T12:01:46
2022-07-19T12:01:46
254,310,667
2
2
null
2021-07-12T12:29:50
2020-04-09T08:11:35
null
UTF-8
Java
false
false
356
java
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.stubbing.defaultanswers; interface HasPrimitiveMethods { boolean booleanMethod(); char charMethod(); int intMethod(); long longMethod(); float floatMethod(); double doubleMethod(); }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
61923fc7797498dbebfae22681e096e876985f9e
7b733d7be68f0fa4df79359b57e814f5253fc72d
/system/src/main/java/com/percussion/server/webservices/IPSSearchHandler.java
1daef99c470a0b4b0f16b0bb4a9162aa2488bc74
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0", "OFL-1.1", "LGPL-2.0-or-later" ]
permissive
percussion/percussioncms
318ac0ef62dce12eb96acf65fc658775d15d95ad
c8527de53c626097d589dc28dba4a4b5d6e4dd2b
refs/heads/development
2023-08-31T14:34:09.593627
2023-08-31T14:04:23
2023-08-31T14:04:23
331,373,975
18
6
Apache-2.0
2023-09-14T21:29:25
2021-01-20T17:03:38
Java
UTF-8
Java
false
false
3,666
java
/* * Copyright 1999-2023 Percussion Software, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * limitations under the License. */ package com.percussion.server.webservices; import com.percussion.cms.objectstore.server.PSServerItem; import com.percussion.error.PSException; import com.percussion.search.PSWSSearchResponse; import com.percussion.search.objectstore.PSWSSearchRequest; import com.percussion.server.PSRequest; import org.w3c.dom.Document; import java.util.Iterator; import java.util.List; import java.util.StringTokenizer; public interface IPSSearchHandler extends IPSPortActionHandler { PSWSSearchResponse search(PSRequest request, PSWSSearchRequest searchRequest) throws PSException; List<Integer> searchAndGetContentIds(PSRequest request, PSWSSearchRequest searchReq) throws PSException; List<Integer> searchAndGetContentIdsForSearchByStatus(PSRequest request, PSWSSearchRequest searchReq) throws PSException; void search(PSRequest request, PSWSSearchRequest searchReq, Document parent) throws PSException; @SuppressWarnings("unchecked") void executeKeyFieldSearch(PSRequest request, PSServerItem updateItem) throws PSException; /** * Iterator for a delimited list of values formated for an external search * with an "in" operator. */ public static class PSExternalInValuesIterator implements Iterator<String> { /** * Construct the iterator * * @param val The delimited list, assumed not <code>null</code>, may be * empty. */ PSExternalInValuesIterator(String val) { mi_toker = new StringTokenizer(val, " "); getNext(); } public boolean hasNext() { return mi_next != null; } public String next() { String next = mi_next; getNext(); return next; } @Override public void remove() { throw new UnsupportedOperationException("remove not supported"); } /** * Checks ahead to determine the next possible value */ private void getNext() { String next = null; while (mi_toker.hasMoreTokens()) { String token = mi_toker.nextToken(); if (token == null || token.equals("")) continue; if (token.trim().equalsIgnoreCase("or")) continue; next = token; break; } mi_next = next; } /** * Used to walk the string supplied during construction to return values. * never <code>null</code> or modified after construction. */ private final StringTokenizer mi_toker; /** * The next value to return, modified by calls to {@link #getNext()}, * <code>null</code> if there are no values left to return. */ private String mi_next; } }
[ "nate.chadwick@gmail.com" ]
nate.chadwick@gmail.com
7a67533af60a1249bea70c8839f91ebbdc0b8b12
0689f3b456ddce965659abcd4d2de68903de59a1
/src/main/java/com/example/jooq/demo_jooq/introduction/db/pg_catalog/routines/RecordImageGe.java
f893499b0050348a3f90b3438e0ed56a42b4d682
[]
no_license
vic0692/demo_spring_jooq
c92d2d188bbbb4aa851adab5cc301d1051c2f209
a5c1fd1cb915f313f40e6f4404fdc894fffc8e70
refs/heads/master
2022-09-18T09:38:30.362573
2020-01-23T17:09:40
2020-01-23T17:09:40
220,638,715
0
0
null
2022-09-08T01:04:47
2019-11-09T12:25:46
Java
UTF-8
Java
false
true
2,406
java
/* * This file is generated by jOOQ. */ package com.example.jooq.demo_jooq.introduction.db.pg_catalog.routines; import com.example.jooq.demo_jooq.introduction.db.pg_catalog.PgCatalog; import javax.annotation.Generated; import org.jooq.Field; import org.jooq.Parameter; import org.jooq.Record; import org.jooq.impl.AbstractRoutine; import org.jooq.impl.Internal; /** * This class is generated by jOOQ. */ @Generated( value = { "http://www.jooq.org", "jOOQ version:3.12.3" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class RecordImageGe extends AbstractRoutine<Boolean> { private static final long serialVersionUID = -577477910; /** * The parameter <code>pg_catalog.record_image_ge.RETURN_VALUE</code>. */ public static final Parameter<Boolean> RETURN_VALUE = Internal.createParameter("RETURN_VALUE", org.jooq.impl.SQLDataType.BOOLEAN, false, false); /** * The parameter <code>pg_catalog.record_image_ge._1</code>. */ public static final Parameter<Record> _1 = Internal.createParameter("_1", org.jooq.impl.SQLDataType.RECORD, false, true); /** * The parameter <code>pg_catalog.record_image_ge._2</code>. */ public static final Parameter<Record> _2 = Internal.createParameter("_2", org.jooq.impl.SQLDataType.RECORD, false, true); /** * Create a new routine call instance */ public RecordImageGe() { super("record_image_ge", PgCatalog.PG_CATALOG, org.jooq.impl.SQLDataType.BOOLEAN); setReturnParameter(RETURN_VALUE); addInParameter(_1); addInParameter(_2); } /** * Set the <code>_1</code> parameter IN value to the routine */ public void set__1(Record value) { setValue(_1, value); } /** * Set the <code>_1</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void set__1(Field<Record> field) { setField(_1, field); } /** * Set the <code>_2</code> parameter IN value to the routine */ public void set__2(Record value) { setValue(_2, value); } /** * Set the <code>_2</code> parameter to the function to be used with a {@link org.jooq.Select} statement */ public void set__2(Field<Record> field) { setField(_2, field); } }
[ "vic0692@gmail.com" ]
vic0692@gmail.com
99d7c7f5c177448f369cbae163ddde1574877f76
eec3da80c2eba0bd6b8670afa5ed070c1902b5ec
/meta/src/test/java/com/alibaba/otter/canal/meta/FileMixedMetaManagerTest.java
4c330c861694db99cc80b962f2f96729d570a8b1
[ "Apache-2.0" ]
permissive
zhmz1326/canal
d5289fe4dff9e84cbb219a47a97b8a16bb5ac7eb
4f1fce247108611c959f28e53796cbbb8bffe164
refs/heads/master
2023-08-30T22:52:32.747692
2018-07-16T09:14:21
2018-07-16T09:14:21
109,801,832
2
0
Apache-2.0
2018-05-25T01:31:27
2017-11-07T07:34:15
Java
UTF-8
Java
false
false
2,764
java
package com.alibaba.otter.canal.meta; import java.io.File; import java.io.IOException; import java.util.List; import java.util.Map; import org.apache.commons.io.FileUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.alibaba.otter.canal.protocol.ClientIdentity; import com.alibaba.otter.canal.protocol.position.Position; import com.alibaba.otter.canal.protocol.position.PositionRange; public class FileMixedMetaManagerTest extends AbstractMetaManagerTest { private static final String tmp = System.getProperty("java.io.tmpdir", "/tmp"); private static final File dataDir = new File(tmp, "canal"); @Before public void setUp() { try { FileUtils.deleteDirectory(dataDir); } catch (IOException e) { Assert.fail(e.getMessage()); } } @Test public void testSubscribeAll() { FileMixedMetaManager metaManager = new FileMixedMetaManager(); metaManager.setDataDirByFile(dataDir); metaManager.setPeriod(100); metaManager.start(); doSubscribeTest(metaManager); sleep(2000L); // 重新构建一次,能获得上一次zk上的记录 FileMixedMetaManager metaManager2 = new FileMixedMetaManager(); metaManager2.setDataDirByFile(dataDir); metaManager2.setPeriod(100); metaManager2.start(); List<ClientIdentity> clients = metaManager2.listAllSubscribeInfo(destination); Assert.assertEquals(2, clients.size()); metaManager.stop(); } @Test public void testBatchAll() { FileMixedMetaManager metaManager = new FileMixedMetaManager(); metaManager.setDataDirByFile(dataDir); metaManager.setPeriod(100); metaManager.start(); doBatchTest(metaManager); metaManager.clearAllBatchs(clientIdentity); Map<Long, PositionRange> ranges = metaManager.listAllBatchs(clientIdentity); Assert.assertEquals(0, ranges.size()); metaManager.stop(); } @Test public void testCursorAll() { FileMixedMetaManager metaManager = new FileMixedMetaManager(); metaManager.setDataDirByFile(dataDir); metaManager.setPeriod(100); metaManager.start(); Position lastPosition = doCursorTest(metaManager); sleep(1000L); // 重新构建一次,能获得上一次zk上的记录 FileMixedMetaManager metaManager2 = new FileMixedMetaManager(); metaManager2.setDataDirByFile(dataDir); metaManager2.setPeriod(100); metaManager2.start(); Position position = metaManager2.getCursor(clientIdentity); Assert.assertEquals(position, lastPosition); metaManager.stop(); } }
[ "jianghang.loujh@alibaba-inc.com" ]
jianghang.loujh@alibaba-inc.com
6b73d63be8cdb8dbe7301a58535d6d62e28f06d4
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-58b-1-27-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/org/apache/commons/math/analysis/function/Gaussian$Parametric_ESTest_scaffolding.java
a6cb58c6911d1908be9aa809f574febb5c0065f5
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
3,113
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Mon Apr 06 07:26:25 UTC 2020 */ package org.apache.commons.math.analysis.function; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class Gaussian$Parametric_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.math.analysis.function.Gaussian$Parametric"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(Gaussian$Parametric_ESTest_scaffolding.class.getClassLoader() , "org.apache.commons.math.exception.util.Localizable", "org.apache.commons.math.exception.NumberIsTooSmallException", "org.apache.commons.math.analysis.function.Gaussian$Parametric", "org.apache.commons.math.exception.MathRuntimeException", "org.apache.commons.math.exception.MathIllegalArgumentException", "org.apache.commons.math.exception.NullArgumentException", "org.apache.commons.math.analysis.ParametricUnivariateRealFunction", "org.apache.commons.math.util.FastMath", "org.apache.commons.math.exception.DimensionMismatchException", "org.apache.commons.math.exception.NotStrictlyPositiveException", "org.apache.commons.math.exception.util.LocalizedFormats", "org.apache.commons.math.exception.util.MessageFactory", "org.apache.commons.math.exception.MathIllegalNumberException", "org.apache.commons.math.exception.MathThrowable", "org.apache.commons.math.analysis.DifferentiableUnivariateRealFunction", "org.apache.commons.math.analysis.UnivariateRealFunction", "org.apache.commons.math.analysis.function.Gaussian", "org.apache.commons.math.exception.util.ArgUtils" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
3b67afd1afd28e5c2f2952a6ea0461d283024bc8
290b43981df41a740145de5c5fb7841f9633ac3a
/src/main/java/com/gdn/qa/hackathon/buytogether/config/Constants.java
51f0848e32fc6a421c96ead282c336f6e61ad272
[]
no_license
argotri/BuyTogether
2567516eea7ab612a563f36189c009347fa4726a
53c6f8827e53c9a60c7a89ff9934d50c64a92131
refs/heads/master
2020-04-26T07:49:11.254832
2019-03-02T14:21:54
2019-03-02T14:21:54
173,404,939
0
0
null
2019-03-02T06:02:43
2019-03-02T04:54:45
Java
UTF-8
Java
false
false
437
java
package com.gdn.qa.hackathon.buytogether.config; /** * Application constants. */ public final class Constants { // Regex for acceptable logins public static final String LOGIN_REGEX = "^[_.@A-Za-z0-9-]*$"; public static final String SYSTEM_ACCOUNT = "system"; public static final String ANONYMOUS_USER = "anonymoususer"; public static final String DEFAULT_LANGUAGE = "en"; private Constants() { } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
ca9997f5dc2f6849173c1cb5e76679c58f49276a
7a96414d5b49603238e95a6b1e77809a77143082
/software/ear/src/test/java/gov/nih/nci/firebird/selenium2/pages/base/OneButtonDialog.java
40729ae71d4243631d76d2ea081c008e615559a6
[]
no_license
NCIP/nci-ocr
822788379a2bf0a95ee00e1667e365766cc8c794
e36adffb92fdb9833bb8835f87eab4b46594019e
refs/heads/master
2016-09-05T12:40:31.309373
2013-08-28T14:32:45
2013-08-28T14:32:45
12,298,569
2
1
null
null
null
null
UTF-8
Java
false
false
7,427
java
/** * The software subject to this notice and license includes both human readable * source code form and machine readable, binary, object code form. The NCI OCR * Software was developed in conjunction with the National Cancer Institute * (NCI) by NCI employees and 5AM Solutions, Inc. (5AM). To the extent * government employees are authors, any rights in such works shall be subject * to Title 17 of the United States Code, section 105. * * This NCI OCR Software License (the License) is between NCI and You. You (or * Your) shall mean a person or an entity, and all other entities that control, * are controlled by, or are under common control with the entity. Control for * purposes of this definition means (i) the direct or indirect power to cause * the direction or management of such entity, whether by contract or otherwise, * or (ii) ownership of fifty percent (50%) or more of the outstanding shares, * or (iii) beneficial ownership of such entity. * * This License is granted provided that You agree to the conditions described * below. NCI grants You a non-exclusive, worldwide, perpetual, fully-paid-up, * no-charge, irrevocable, transferable and royalty-free right and license in * its rights in the NCI OCR Software to (i) use, install, access, operate, * execute, copy, modify, translate, market, publicly display, publicly perform, * and prepare derivative works of the NCI OCR Software; (ii) distribute and * have distributed to and by third parties the NCI OCR Software and any * modifications and derivative works thereof; and (iii) sublicense the * foregoing rights set out in (i) and (ii) to third parties, including the * right to license such rights to further third parties. For sake of clarity, * and not by way of limitation, NCI shall have no right of accounting or right * of payment from You or Your sub-licensees for the rights granted under this * License. This License is granted at no charge to You. * * Your redistributions of the source code for the Software must retain the * above copyright notice, this list of conditions and the disclaimer and * limitation of liability of Article 6, below. Your redistributions in object * code form must reproduce the above copyright notice, this list of conditions * and the disclaimer of Article 6 in the documentation and/or other materials * provided with the distribution, if any. * * Your end-user documentation included with the redistribution, if any, must * include the following acknowledgment: This product includes software * developed by 5AM and the National Cancer Institute. If You do not include * such end-user documentation, You shall include this acknowledgment in the * Software itself, wherever such third-party acknowledgments normally appear. * * You may not use the names "The National Cancer Institute", "NCI", or "5AM" * to endorse or promote products derived from this Software. This License does * not authorize You to use any trademarks, service marks, trade names, logos or * product names of either NCI or 5AM, except as required to comply with the * terms of this License. * * For sake of clarity, and not by way of limitation, You may incorporate this * Software into Your proprietary programs and into any third party proprietary * programs. However, if You incorporate the Software into third party * proprietary programs, You agree that You are solely responsible for obtaining * any permission from such third parties required to incorporate the Software * into such third party proprietary programs and for informing Your * sub-licensees, including without limitation Your end-users, of their * obligation to secure any required permissions from such third parties before * incorporating the Software into such third party proprietary software * programs. In the event that You fail to obtain such permissions, You agree * to indemnify NCI for any claims against NCI by such third parties, except to * the extent prohibited by law, resulting from Your failure to obtain such * permissions. * * For sake of clarity, and not by way of limitation, You may add Your own * copyright statement to Your modifications and to the derivative works, and * You may provide additional or different license terms and conditions in Your * sublicenses of modifications of the Software, or any derivative works of the * Software as a whole, provided Your use, reproduction, and distribution of the * Work otherwise complies with the conditions stated in this License. * * THIS SOFTWARE IS PROVIDED "AS IS," AND ANY EXPRESSED OR IMPLIED WARRANTIES, * (INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, * NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE) ARE DISCLAIMED. IN NO * EVENT SHALL THE NATIONAL CANCER INSTITUTE, 5AM SOLUTIONS, INC. OR THEIR * AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package gov.nih.nci.firebird.selenium2.pages.base; import static org.junit.Assert.*; import gov.nih.nci.firebird.commons.selenium2.support.AbstractLoadableComponent; import gov.nih.nci.firebird.commons.selenium2.support.IdentifiableComponentFactory; import gov.nih.nci.firebird.commons.selenium2.util.JQueryUtils; import gov.nih.nci.firebird.test.util.FirebirdPropertyUtils; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class OneButtonDialog extends AbstractDialog<OneButtonDialog> { private static final String CLOSE_BUTTON_ID = "closeBtn"; private static final By TITLE_HEADER_LOCATOR = By.cssSelector(CONTENT_DIALOG_CSS + " h2"); @FindBy(id = CLOSE_BUTTON_ID) private WebElement closeButton; public OneButtonDialog(WebDriver driver, AbstractLoadableComponent<?> parent) { super(driver, parent); } public void clickClose() { closeDialog(closeButton); } @Override protected void assertLoaded() { assertFalse(JQueryUtils.isLoadingIconDisplayed(getDriver())); assertPresent(By.id(CLOSE_BUTTON_ID)); } public static IdentifiableComponentFactory<OneButtonDialog> getFactory(final AbstractLoadableComponent<?> parent, final String expectedTitleKey) { return new IdentifiableComponentFactory<OneButtonDialog>() { @Override public boolean isDisplayed(WebDriver driver) { if (!super.isDisplayed(driver)) { return false; } else { String title = FirebirdPropertyUtils.getPropertyText(expectedTitleKey); return isPresent(driver, TITLE_HEADER_LOCATOR) && title.equals(driver.findElement(TITLE_HEADER_LOCATOR).getText()); } } @Override protected OneButtonDialog getInstance(WebDriver driver) { return new OneButtonDialog(driver, parent); } }; } }
[ "mkher@fusionspan.com" ]
mkher@fusionspan.com
477db47a1b8df4bf2019aac1237719291745bc6a
3b8722b6fb199812451ab71412f82e81c9900ef8
/Java.Basic.EnumExamples-0016/src/ua/voytovych/syntax/package01/Start.java
67373c9d9e261158c96755c1a3f2f87db6770af6
[]
no_license
noctuaIv/java-basic
8eb6ebe6e13f245968d1903005751931351a8d02
4c56252c12b68dcb93a8d26f72c0351c51d36eb4
refs/heads/master
2020-04-28T22:54:42.989742
2019-03-14T14:07:49
2019-03-14T14:07:49
175,634,440
1
0
null
null
null
null
UTF-8
Java
false
false
525
java
package ua.voytovych.syntax.package01; public class Start { public static void main(String[] args) { for (int i = 0; i < GameLevel.values().length; i++) { System.out.println(GameLevel.values()[i]); } Game game = new Game(); game.setGameLevel(GameLevel.BEGINNER); System.out.println("game.getDefaultLevel() = " + game.getDefaultLevel()); System.out.println("game.getGameLevel() = " + game.getGameLevel()); if (game.getGameLevel() == GameLevel.BEGINNER) { System.out.println("beginner"); } } }
[ "noctua.vt@gmail.com" ]
noctua.vt@gmail.com
5e07d670988bef5331d7c0964732f79732659884
e90a6626427539a61543ad40551d325a98cdf925
/src/main/java/com/twitter/sdk/android/tweetui/internal/MediaTimeUtils.java
55c8b74f9c4c4dade627ad1470fb1f3fdf5dfdc0
[]
no_license
turfaa/sambhar
d0d82e0244a7e3535fc4ca7a67de47e0b309fadf
18e498dca941acbc00468244c0143b48585cd7b9
refs/heads/master
2020-04-27T21:05:51.745102
2019-03-09T11:10:35
2019-03-09T11:10:35
174,684,008
1
0
null
null
null
null
UTF-8
Java
false
false
741
java
package com.twitter.sdk.android.tweetui.internal; import java.util.Locale; final class MediaTimeUtils { private static final String TIME_FORMAT_LONG = "%1$d:%2$02d:%3$02d"; private static final String TIME_FORMAT_SHORT = "%1$d:%2$02d"; private MediaTimeUtils() { } static String getPlaybackTime(long j) { int i = (int) (j / 1000); int i2 = i % 60; int i3 = (i / 60) % 60; if (i / 3600 > 0) { return String.format(Locale.getDefault(), TIME_FORMAT_LONG, new Object[]{Integer.valueOf(i), Integer.valueOf(i3), Integer.valueOf(i2)}); } return String.format(Locale.getDefault(), TIME_FORMAT_SHORT, new Object[]{Integer.valueOf(i3), Integer.valueOf(i2)}); } }
[ "turfa_auliarachman@rocketmail.com" ]
turfa_auliarachman@rocketmail.com
6d112a1fd7b63396e5f978f850a6999d3f8e3aee
694580af18c56fe9b56d7e37d94619e98d475d9f
/app/src/main/java/com/shuashua/buss/View/Activity/CreatOrderActivity.java
a04590b7a68ccb902310b2f5674aac79edf1381a
[]
no_license
ganyao114/shuashua
cc31e0a13b685e62ec1f26938858b5a9be30a070
20a874f8e668fcb169ce31c686e4ba6ae85ec693
refs/heads/master
2021-06-04T09:33:20.829766
2016-09-07T06:27:14
2016-09-07T06:27:14
64,978,885
0
0
null
null
null
null
UTF-8
Java
false
false
1,047
java
package com.shuashua.buss.View.Activity; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import com.shuashua.buss.R; public class CreatOrderActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_creat_order); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) .setAction("Action", null).show(); } }); } }
[ "939543405@qq.com" ]
939543405@qq.com
536da421734aee2d9886273a3d6b7109212da8f6
4a1773d1d68f69a383ce44fd3d1342d76ef3bb59
/swg-acs-core/message/src/main/java/com/swg/acs/message/soap/CwmpMessageParser.java
7b8ea96519bfa56ce301cdb8adf392da4321cf19
[]
no_license
swg-corp/swg-acs
ae74593b9996d3138c7a4cd5312cfe905550a3d4
9a2cdf5e87d718ca151ca6409f963309790277f7
refs/heads/master
2021-01-15T18:26:25.548637
2012-07-06T15:39:17
2012-07-06T15:39:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,407
java
/** * */ package com.swg.acs.message.soap; import java.util.Iterator; import java.util.NoSuchElementException; import javax.xml.namespace.QName; import javax.xml.soap.Detail; import javax.xml.soap.DetailEntry; import javax.xml.soap.SOAPElement; import javax.xml.soap.SOAPException; import javax.xml.soap.SOAPFault; import javax.xml.soap.SOAPMessage; import org.apache.log4j.Logger; import com.swg.acs.Message; import com.swg.acs.MessageBody; import com.swg.acs.MessageEnvelope; import com.swg.acs.MessageHeader; import com.swg.acs.message.Fault; /** * @author satriaprayoga * */ public abstract class CwmpMessageParser implements MessageParser{ private final Logger logger=Logger.getLogger(getClass()); private static MessageParser messageParser; public static MessageParser getMessageParserInstance(){ if(messageParser==null) messageParser=new CwmpSoapMessageParser(); return messageParser; } @Override public Message parse(SOAPMessage soapMessage) throws SOAPException { if(soapMessage.getSOAPBody().hasFault()){ return parseFault(soapMessage); } SoapUtil soapUtil=SoapUtil.getInstance(); Message message=null; String name=soapUtil.getRequestName(soapMessage); logger.info("parsing message: "+name); if(name==null){ throw new NoSuchElementException("name not found"); } try { message=(Message) Class.forName("com.swg.acs.message."+name).newInstance(); } catch (Exception e) { e.printStackTrace(); } parseMessageEnvelope(soapMessage, message); parseMessageHeader(soapMessage, message); parseMessageBody(soapMessage, message); message.configParse(); return message; } protected Fault parseFault(SOAPMessage soapMessage)throws SOAPException{ Fault fault=null; String faultCode; String faultString; Detail detail; SoapUtil soapUtil=SoapUtil.getInstance(); try{ SOAPFault soapFault=soapMessage.getSOAPBody().getFault(); detail=soapFault.getDetail(); if(detail==null) { faultCode=soapUtil.getRequestElementValue(soapFault, "faultcode"); faultString=soapUtil.getRequestElementValue(soapFault, "faultstring"); fault=new Fault(faultCode, faultString); }else{ Iterator<DetailEntry> iterator=detail.getDetailEntries(); if(iterator.hasNext()){ SOAPElement element=soapUtil.getRequestChildElement(detail, "Fault"); SOAPElement fc=soapUtil.getRequestChildElement(element, "FaultCode"); faultCode=fc.getValue(); SOAPElement fs=soapUtil.getRequestChildElement(element, "FaultString"); faultString=fs.getValue(); fault=new Fault(faultCode, faultString); Iterator paramFaults=element.getChildElements(new QName("SetParameterValuesFault")); while(paramFaults.hasNext()){ SOAPElement pfe=(SOAPElement)paramFaults.next(); fault.addParameterFault(soapUtil.getRequestElementValue(pfe, "ParameterName"), soapUtil.getRequestElementValue(pfe, "FaultCode"), soapUtil.getRequestElementValue(pfe, "FaultString")); } } } }catch(Exception e){ } return fault; } protected abstract MessageEnvelope parseMessageEnvelope(SOAPMessage soapMessage,Message message)throws SOAPException; protected abstract MessageHeader parseMessageHeader(SOAPMessage soapMessage,Message message)throws SOAPException; protected abstract MessageBody parseMessageBody(SOAPMessage soapMessage,Message message)throws SOAPException; }
[ "satria.prayoga@gmail.com" ]
satria.prayoga@gmail.com
57c644487c2f7bec791dfa5957402a1ae6721e17
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_7282f864e2ed57b2ef9ae927f32d3fe13c68e7e7/KryptoTest/2_7282f864e2ed57b2ef9ae927f32d3fe13c68e7e7_KryptoTest_s.java
53b310c254027c9a8598755dd2435fcf1b0c5be5
[]
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
2,166
java
package itsp; import static net.java.quickcheck.generator.CombinedGeneratorsIterables.someLists; import static net.java.quickcheck.generator.PrimitiveGenerators.integers; import static org.testng.Assert.assertEquals; import java.util.ArrayList; import java.util.Collections; import java.util.List; import net.java.quickcheck.generator.PrimitiveGenerators; import net.java.quickcheck.generator.iterable.Iterables; import org.testng.annotations.Test; public class KryptoTest { @Test public void CaesarTestVector() { String cleartext = "IJKLMN"; String expectedCyphertext = "LMNOPQ"; assertEquals(expectedCyphertext, Krypto.caesar(cleartext, 3, true)); assertEquals(cleartext, Krypto.caesar(expectedCyphertext, 3, false)); } @Test public void CaesarTest() { for (Integer key : Iterables.toIterable(PrimitiveGenerators.integers(0, 255))) { for (String cleartext : Iterables.toIterable(PrimitiveGenerators.strings())) { // encrypt String cyphertext = Krypto.caesar(cleartext, key, true); // decrypt String result = Krypto.caesar(cyphertext, key, false); assertEquals(cleartext, result); } } } @Test public void SkytaleTestVectors() { String cleartext = "TROOPSHEADINGWESTNEEDMORESUPPLIESSENDGENERALDUBOISMENTOAID"; assertEquals(Krypto.skytale(cleartext, 1, true), cleartext); cleartext = "HALLO"; assertEquals(Krypto.skytale(cleartext, 2, true), "HLOAL "); } @Test public void SkytaleTest() { for (Integer key : Iterables.toIterable(PrimitiveGenerators.integers(1, 100))) { for (String cleartext : Iterables.toIterable(PrimitiveGenerators.strings())) { // encrypt String cyphertext = Krypto.skytale(cleartext, key, true); // decrypt String result = Krypto.skytale(cyphertext, key, false); assertEquals(cleartext.trim(), result.trim()); } } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
d98311c81a4bd7e806614ac50e50ca701edf4f1a
d5515553d071bdca27d5d095776c0e58beeb4a9a
/src/net/sourceforge/plantuml/graph2/IdentityInflationTransform.java
850031d53a894e2affafe440f1a47d4c74782404
[]
no_license
ccamel/plantuml
29dfda0414a3dbecc43696b63d4dadb821719489
3100d49b54ee8e98537051e071915e2060fe0b8e
refs/heads/master
2022-07-07T12:03:37.351931
2016-12-14T21:01:03
2016-12-14T21:01:03
77,067,872
1
0
null
2022-05-30T09:56:21
2016-12-21T16:26:58
Java
UTF-8
Java
false
false
1,774
java
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2017, Arnaud Roques * * Project Info: http://plantuml.com * * This file is part of PlantUML. * * PlantUML is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * PlantUML 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 library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * * * Original Author: Arnaud Roques * * */ package net.sourceforge.plantuml.graph2; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class IdentityInflationTransform implements IInflationTransform { public void addInflationX(double xpos, double inflation) { } public void addInflationY(double ypos, double inflation) { } public double getTotalInflationX() { return 0; } public double getTotalInflationY() { return 0; } public Point2D inflatePoint2D(Point2D point) { return point; } public List<Line2D.Double> inflate(Collection<Line2D.Double> segments) { return new ArrayList<Line2D.Double>(segments); } }
[ "plantuml@gmail.com" ]
plantuml@gmail.com
c1128564a95c619056a615d0ba10087f30fad47a
6252c165657baa6aa605337ebc38dd44b3f694e2
/org.eclipse.epsilon.egl.sync/Scalability-Tests/boiler-To-Generate-1000-Files/boiler-To-Generate-1000-Files/syncregions-1000Files/TemperatureController582.java
fa2b7091f17b4e884d231a2a33d5b74063be5747
[]
no_license
soha500/EglSync
00fc49bcc73f7f7f7fb7641d0561ca2b9a8ea638
55101bc781349bb14fefc178bf3486e2b778aed6
refs/heads/master
2021-06-23T02:55:13.464889
2020-12-11T19:10:01
2020-12-11T19:10:01
139,832,721
0
1
null
2019-05-31T11:34:02
2018-07-05T10:20:00
Java
UTF-8
Java
false
false
368
java
package syncregions; public class TemperatureController582 { public int execute(int temperature582, int targetTemperature582) { //sync _bfpnFUbFEeqXnfGWlV2582, behaviour 1-if(temperatureDifference > 0 && boilerStatus == true) { return 1; } else if (temperatureDifference < 0 && boilerStatus == false) { return 2; } else return 0; //endSync } }
[ "sultanalmutairi@172.20.10.2" ]
sultanalmutairi@172.20.10.2
d7f64910137a78da3b2214536de3b79461e07066
60f7b508bed2dffa32cff6c3f50d6dd6b0f25507
/user-center/src/main/java/com/boyu/erp/platform/usercenter/service/warehouse/WarehStkService.java
170573c92e45a0f250497d28130ac196c1d9ef7c
[]
no_license
clfbai/heoll
8cca5d62eb8bce47d0882b07fb328baf508612b5
69845c4e78437bb0aea79a32d6a24c2fc299f388
refs/heads/master
2022-09-29T09:03:58.700436
2019-12-21T05:06:43
2019-12-21T05:06:43
165,189,003
0
0
null
2022-09-01T23:17:47
2019-01-11T06:08:00
Java
UTF-8
Java
false
false
1,592
java
package com.boyu.erp.platform.usercenter.service.warehouse; import com.boyu.erp.platform.usercenter.entity.warehouse.WarehStk; import com.boyu.erp.platform.usercenter.model.wareh.CountCostModel; import java.util.List; import java.util.Set; /** * 仓库库存服务 * * @author HHe * @date 2019/9/3 10:50 */ public interface WarehStkService { /** * 根据仓库id、商品Id查询仓库库存信息(待完善) * * @author HHe * @date 2019/9/3 12:19 */ WarehStk queryWarehStkByWarehIdProdId(Long warehId, Long prodId); /** * 根据仓库Id查询仓库所有库存详情 * * @author HHe * @date 2019/9/18 19:31 */ List<WarehStk> queryWarehStkListByWarehId(Long warehId); /** * 根据仓库Id和商品Id集合查询不为0的库存数量; * * @author HHe * @date 2019/9/19 11:54 */ List<WarehStk> queryWarehStkListByProdIdList(Long warehId, List<Long> prodIdList); /** * 查询仓库中的商品集合 * * @author HHe * @date 2019/10/21 11:26 */ List<WarehStk> queryWarehStkByProdsAndWareh(Set<Long> prodIds, Long warehId); /** * 功能描述: 增加库存数量 * * @param: * @return: * @auther: CLF * @date: 2019/11/12 19:50 */ int updateAddWarehStkList(List<WarehStk> warehStkList); /** * 添加库存信息如果存在则减去参数中的数量 * @author HHe * @date 2019/11/22 9:42 */ int insertUpdateWarehStkList(List<CountCostModel> countCostModels, Long warehId); }
[ "https://gitee.com/onecaolf/mytext.git" ]
https://gitee.com/onecaolf/mytext.git
cb81e32c527fc6984fa20605e5d75756d31c191b
24121da2d56f6f76a0a774494ad8941fd498bf52
/app/src/main/java/app/food/patient_app/util/Constant.java
fcdc75856ff32e56dae6dbee86b72c3e7f938014
[]
no_license
saubhagyamapps/IMOOD_TRACKES_APP
b3437c7a402c0d4becb73f7c40ea77fef58dd60f
fa944188f41e7526a3a8e1f1152dc31dfe831ace
refs/heads/master
2020-05-20T10:53:46.322979
2019-05-08T13:20:50
2019-05-08T13:20:50
185,533,924
0
0
null
null
null
null
UTF-8
Java
false
false
3,004
java
package app.food.patient_app.util; import android.app.ProgressDialog; import android.content.Context; import com.google.android.gms.common.Scopes; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.common.api.Scope; import com.google.android.gms.fitness.Fitness; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import app.food.patient_app.R; import app.food.patient_app.retrofit.ApiClient; import app.food.patient_app.retrofit.ApiInterface; import app.food.patient_app.sessionmanager.SessionManager; public class Constant { // public static final String BASE_URL = "http://192.168.1.200/patient_app_server/"; // public static final String BASE_URL = "http://www.charmhdwallpapers.com/patient_app/"; public static final String BASE_URL = "http://51.159.3.125/patient_app/"; public static ApiInterface apiService = ApiClient.getClient().create(ApiInterface.class); public static ProgressDialog progressBar; public static SessionManager session; public static String mUserId; public static String mUserName; public static String mUserMobile; public static String mUserFirebaseID; public static String mUserEmail; public static String mAddress; public static String mImages; public static String mGender; public static String mPassword; public static String mDeviceId; public static String mHomeLat; public static String mHomeLong; public static String mLockCounter; public static void progressDialog(Context applicationContext) { progressBar = new ProgressDialog(applicationContext); progressBar.setCancelable(false); progressBar.setTitle(applicationContext.getResources().getString(R.string.progress_dialog_title)); progressBar.setMessage(applicationContext.getResources().getString(R.string.progress_dialog_msg)); progressBar.show(); } public static String currentDate() { Date todayDate; String mCurrentDate; todayDate = Calendar.getInstance().getTime(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); mCurrentDate = df.format(todayDate); return mCurrentDate; } public static void setSession(Context applicationContext) { session = new SessionManager(applicationContext); HashMap<String, String> user = session.getUserDetails(); mUserId = user.get(session.KEY_ID); mUserName = user.get(session.KEY_NAME); mUserMobile = user.get(session.KEY_MOBILE); mUserFirebaseID = user.get(session.KEY_FIREBASEID); mUserEmail = user.get(session.KEY_EMAIL); /*mAddress = user.get(SessionManager.KEY_ADDRESS); mImages = user.get(SessionManager.KEY_IMAGES); mGender = user.get(SessionManager.KEY_GENDER);*/ mPassword = user.get(session.KEY_PASSWORD); mDeviceId = user.get(session.KEY_DEVICEID); } }
[ "keshuvodedara@gmail.com" ]
keshuvodedara@gmail.com
1677258bf57475657dc1d3ad159d19e4147a0d29
74d644b37385ca4beb2e52fd4314ee1562697d52
/src/main/java/me/wener/seq/SequenceException.java
f2d5ac6d241784f648fbd1f1c496067be6e2b7e5
[ "MIT" ]
permissive
yaloo/seq
01bd534ba2aebff8d9f1f576b70f1d8400748287
7bcaa7ea91c3fc332a7c80f3bb88c4045f88c9be
refs/heads/master
2021-01-18T00:20:30.710308
2015-06-02T11:48:57
2015-06-02T11:48:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
760
java
package me.wener.seq; /** * 序列异常 */ public class SequenceException extends RuntimeException { private final int code; public SequenceException(String message) { this(message, Exceptions.UNKNOWN); } public SequenceException(String message, int code) { super(message); this.code = code; } public SequenceException(String message, Throwable cause, int code) { super(message, cause); this.code = code; } public SequenceException(String message, Throwable cause) { super(message, cause); this.code = Exceptions.UNKNOWN; } public SequenceException(Throwable cause, int code) { super(cause); this.code = code; } }
[ "wenermail@gmail.com" ]
wenermail@gmail.com
af4d6cc3080eb5824446c64ca747976d368bcbc9
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_253/Testnull_25294.java
361709051f6d9c416f58d9411d8d1c1d97e62253
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_253; import static org.junit.Assert.*; public class Testnull_25294 { private final Productionnull_25294 production = new Productionnull_25294("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
e0707c7d7ce2f4655c6191b2cdd3aae7ee5526c7
f0568343ecd32379a6a2d598bda93fa419847584
/modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201302/ApiException_Exception.java
f4a2f714894ed9f75a8d1fa0ec3fbb85b6a308ed
[ "Apache-2.0" ]
permissive
frankzwang/googleads-java-lib
bd098b7b61622bd50352ccca815c4de15c45a545
0cf942d2558754589a12b4d9daa5902d7499e43f
refs/heads/master
2021-01-20T23:20:53.380875
2014-07-02T19:14:30
2014-07-02T19:14:30
21,526,492
1
0
null
null
null
null
UTF-8
Java
false
false
1,151
java
package com.google.api.ads.dfp.jaxws.v201302; import javax.xml.ws.WebFault; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.2.4-b01 * Generated source version: 2.1 * */ @WebFault(name = "ApiExceptionFault", targetNamespace = "https://www.google.com/apis/ads/publisher/v201302") public class ApiException_Exception extends Exception { /** * Java type that goes as soapenv:Fault detail element. * */ private ApiException faultInfo; /** * * @param message * @param faultInfo */ public ApiException_Exception(String message, ApiException faultInfo) { super(message); this.faultInfo = faultInfo; } /** * * @param message * @param faultInfo * @param cause */ public ApiException_Exception(String message, ApiException faultInfo, Throwable cause) { super(message, cause); this.faultInfo = faultInfo; } /** * * @return * returns fault bean: com.google.api.ads.dfp.jaxws.v201302.ApiException */ public ApiException getFaultInfo() { return faultInfo; } }
[ "jradcliff@google.com" ]
jradcliff@google.com
7d1f35e09621e916f4e9c31241db2eb03ceb375d
1230c122bcc683cefeefe8cb8bb5568c3a593fbb
/src/com/mingda/entity/HckVehiclePK.java
560d8018527f56e1981c1608034196682c2b3b62
[]
no_license
jilinshi/ext
68e3af60c1d15a5f2c7edf0f6a3f0380899c2186
cb099614ae2775ad61580510c9338ff412348b1f
refs/heads/master
2016-08-04T10:28:46.884809
2015-08-28T08:50:05
2015-08-28T08:50:05
40,576,031
0
0
null
null
null
null
UTF-8
Java
false
false
1,305
java
package com.mingda.entity; import java.io.Serializable; import javax.persistence.*; /** * The primary key class for the HCK_VEHICLE database table. * */ @Embeddable public class HckVehiclePK implements Serializable { //default serial version id, required for serializable classes. private static final long serialVersionUID = 1L; @Column(name="V_ID", unique=true, nullable=false, precision=12) private long vId; @Column(unique=true, nullable=false, length=32) private String hsubject; public HckVehiclePK() { } public long getVId() { return this.vId; } public void setVId(long vId) { this.vId = vId; } public String getHsubject() { return this.hsubject; } public void setHsubject(String hsubject) { this.hsubject = hsubject; } public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof HckVehiclePK)) { return false; } HckVehiclePK castOther = (HckVehiclePK)other; return (this.vId == castOther.vId) && this.hsubject.equals(castOther.hsubject); } public int hashCode() { final int prime = 31; int hash = 17; hash = hash * prime + ((int) (this.vId ^ (this.vId >>> 32))); hash = hash * prime + this.hsubject.hashCode(); return hash; } }
[ "geogle_jia@126.com" ]
geogle_jia@126.com
65cdfb205fbd3bc1c5e1b4219fd4bb0dc3bf0d36
0af8b92686a58eb0b64e319b22411432aca7a8f3
/single-large-project/src/test/java/org/gradle/test/performancenull_220/Testnull_21991.java
b7fab57c276ff73b92df3a1d82ab5b21816d776e
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
308
java
package org.gradle.test.performancenull_220; import static org.junit.Assert.*; public class Testnull_21991 { private final Productionnull_21991 production = new Productionnull_21991("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
e3f66802f73d4e37e9a84622bc4e83d2797469be
e489f9dc3746757045cd1bf251731862b2192b84
/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/gluster/UpdateGlusterGeoRepKeysVDSCommand.java
8a885379631a70f6c3a806068625f334213983d1
[ "Apache-2.0" ]
permissive
Zealsathish/ovirt-engine
7b0f4acd9390792e381b4e44e748adf3efac7a3d
e30f655b67710bd772568723910f326838b2eebb
refs/heads/master
2020-12-28T20:08:22.893677
2015-04-16T17:11:30
2015-04-20T18:31:39
34,293,886
1
0
null
2015-04-21T00:15:57
2015-04-21T00:15:57
null
UTF-8
Java
false
false
859
java
package org.ovirt.engine.core.vdsbroker.gluster; import org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters; import org.ovirt.engine.core.vdsbroker.vdsbroker.StatusForXmlRpc; public class UpdateGlusterGeoRepKeysVDSCommand<P extends UpdateGlusterGeoRepKeysVDSParameters> extends AbstractGlusterBrokerCommand<P> { public UpdateGlusterGeoRepKeysVDSCommand(P parameters) { super(parameters); } @Override protected StatusForXmlRpc getReturnStatus() { return status.mStatus; } @Override protected void executeVdsBrokerCommand() { UpdateGlusterGeoRepKeysVDSParameters parameters = getParameters(); status = getBroker().glusterGeoRepKeysUpdate(parameters.getGeoRepPubKeys(), parameters.getRemoteUserName()); proceedProxyReturnValue(); } }
[ "gerrit2@gerrit.ovirt.org" ]
gerrit2@gerrit.ovirt.org
4d86319c8233b9c9688beb8960f60ec3ada7faff
44a7ae21c3c3e9b959e9c1984f9d3e68ea3349a1
/jaulp-wicket-components/src/main/java/de/alpharogroup/wicket/components/link/DefaultTargets.java
9568c069084ee9a4de70a1c705f0ebcf69988e02
[ "Apache-2.0" ]
permissive
astrapi69/jaulp-wicket
abc45a21d6ec43e71653c92c8b15838c5bda05cd
099e8fb6a7306207f10d7484efb6dcc48da3e6d4
refs/heads/master
2023-08-28T08:57:04.366835
2017-12-12T14:39:13
2017-12-12T14:39:13
6,269,725
5
2
null
2017-06-06T15:31:06
2012-10-17T22:25:32
Java
UTF-8
Java
false
false
1,618
java
/** * Copyright (C) 2010 Asterios Raptis * * 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 de.alpharogroup.wicket.components.link; import lombok.Getter; /** * The Enum DefaultTargets holds the default targets for a link. There is still the possibility with * the frame name as value but is not provided in this enum. */ public enum DefaultTargets { /** The constant BLANK. It will open the linked document in a new window or tab. */ BLANK("_blank"), /** * The constant SELF. It will open the linked document in the same frame as it was clicked. This * is the default behavior. */ SELF("_self"), /** The constant PARENT. It will open the linked document in the parent frame. */ PARENT("_parent"), /** The constant TOP. It will open the linked document in the full body of the window. */ TOP("_top"); /** * Gets the target. * * @return the target */ @Getter private final String target; /** * Instantiates a new default targets. * * @param target * the target */ private DefaultTargets(final String target) { this.target = target; } }
[ "asterios.raptis@gmx.net" ]
asterios.raptis@gmx.net
dabbb54e7bab6a6eda1b877ac1b8e533312a2e55
b93e801bb9a11fd820201ad56894b896e0831ff1
/CleverWeb-Common/src/main/java/com/cleverweb/common/util/MD5.java
35b9c3c2255d21cfa543339610a66cf29468944f
[ "Apache-2.0" ]
permissive
showtofly/CleverWeb
c41569f7a238112196fa37a8cb7f317bc0a49a97
f7a9079f2e3206c255fe37ae6b750a3f453807c0
refs/heads/master
2023-04-13T13:34:35.442782
2017-02-06T14:29:10
2017-02-06T14:29:10
null
0
0
null
null
null
null
UTF-8
Java
false
false
833
java
package com.cleverweb.common.util; import java.security.MessageDigest; /** * 说明:MD5处理 * 创建人:FH Q313596790 * 修改时间:2014年9月20日 * @version */ public class MD5 { public static String md5(String str) { try { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(str.getBytes()); byte b[] = md.digest(); int i; StringBuffer buf = new StringBuffer(""); for (int offset = 0; offset < b.length; offset++) { i = b[offset]; if (i < 0) i += 256; if (i < 16) buf.append("0"); buf.append(Integer.toHexString(i)); } str = buf.toString(); } catch (Exception e) { e.printStackTrace(); } return str; } public static void main(String[] args) { System.out.println(md5("31119@qq.com"+"123456")); System.out.println(md5("mj1")); } }
[ "863475209@qq.com" ]
863475209@qq.com
e942064cb90ef429f031a209c8994381c166523b
2b2fcb1902206ad0f207305b9268838504c3749b
/WakfuClientSources/srcx/class_12304_pS.java
c63a452b5636c4de71158c88cff012bf9e1ca92a
[]
no_license
shelsonjava/Synx
4fbcee964631f747efc9296477dee5a22826791a
0cb26d5473ba1f36a3ea1d7163a5b9e6ebcb0b1d
refs/heads/master
2021-01-15T13:51:41.816571
2013-11-17T10:46:22
2013-11-17T10:46:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
933
java
import java.util.Stack; public class pS implements aTK { private uk W; private Stack X = new Stack(); public void a(cpa paramcpa, uk paramuk, dOc paramdOc) { this.W = paramuk; this.X.push(paramcpa); cpa localcpa = (cpa)this.X.peek(); dOc localdOc = paramdOc; Jg localJg = localdOc.getAppearance(); localJg.setElementMap(localcpa); paramdOc.bb(localJg); localJg.brn(); aen localaen = aen.checkOut(); localaen.setElementMap(localcpa); localaen.setScaled(true); localJg.bb(localaen); localaen.brn(); aAR localaAR = aAR.checkOut(); localaAR.setElementMap(localcpa); localaAR.setPosition(ajb.dhZ); localaAR.setX(116); localaAR.setY(159); localaAR.setWidth(300); localaAR.setHeight(38); localaAR.setTexture(this.W.aH("scroll_0.tga")); localaen.bb(localaAR); localaAR.brn(); localaAR.rV(); localaen.rV(); localJg.rV(); } }
[ "music_inme@hotmail.fr" ]
music_inme@hotmail.fr
ed978a782491a9ffece1aa2e215ee9cbaf5b3c67
eacd29029893495038743fbae739f831e3599992
/lemon-deanery/src/main/java/com/sunesoft/lemon/deanery/treatiseCG/application/dtos/TreatiseFileDto.java
91dc5242be987d8e8707a3517a5726a8cec6d287
[]
no_license
developTiger/sy-oa
75aa86b19bdb830cad82d04b1b56e0d9b4357c6f
a3709922e59b96a1bc9f15adde95d887daf72844
refs/heads/master
2021-01-19T01:48:36.637149
2017-04-26T10:08:48
2017-04-26T10:08:48
87,249,261
0
0
null
null
null
null
UTF-8
Java
false
false
491
java
package com.sunesoft.lemon.deanery.treatiseCG.application.dtos; /** * Created by pxj on 2016/9/26. */ public class TreatiseFileDto { public String getFileName() { return fileName; } public void setFileName(String fileName) { this.fileName = fileName; } public String getFileId() { return fileId; } public void setFileId(String fileId) { this.fileId = fileId; } private String fileName; private String fileId; }
[ "1366812446@qq.com" ]
1366812446@qq.com
ee6f7402a4f5a477d9835549be10d4a276ca45df
976f39a8e16e1da2f300a4b8368c29e4f734718c
/crala-environment/plugins/org.miso.cloud.robotic/src/cloudRobotics/impl/ConfigurationSystemImpl.java
cff736fe956ccb01114650191a46a5e194264004
[]
no_license
antoniogarmendia/gallery-graphical-dsls-emfStencil
05fbf62f633850fbbb6d1108dfe0b15e13150af3
827c46be04a804a39dfd24744388920741344f46
refs/heads/master
2023-02-25T09:15:06.670557
2023-02-06T16:49:08
2023-02-06T16:49:08
225,592,329
0
0
null
null
null
null
UTF-8
Java
false
false
6,939
java
/** */ package cloudRobotics.impl; import cloudRobotics.ConfigurationSystem; import cloudRobotics.ConnectionComponent; import cloudRobotics.VirtualMachine; import cloudRobotics.cloudRoboticsPackage; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Configuration System</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> * <li>{@link cloudRobotics.impl.ConfigurationSystemImpl#getMachines <em>Machines</em>}</li> * <li>{@link cloudRobotics.impl.ConfigurationSystemImpl#getConnections <em>Connections</em>}</li> * <li>{@link cloudRobotics.impl.ConfigurationSystemImpl#getName <em>Name</em>}</li> * </ul> * * @generated */ public class ConfigurationSystemImpl extends MinimalEObjectImpl.Container implements ConfigurationSystem { /** * The cached value of the '{@link #getMachines() <em>Machines</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getMachines() * @generated * @ordered */ protected EList<VirtualMachine> machines; /** * The cached value of the '{@link #getConnections() <em>Connections</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getConnections() * @generated * @ordered */ protected EList<ConnectionComponent> connections; /** * The default value of the '{@link #getName() <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getName() * @generated * @ordered */ protected static final String NAME_EDEFAULT = ""; /** * The cached value of the '{@link #getName() <em>Name</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getName() * @generated * @ordered */ protected String name = NAME_EDEFAULT; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected ConfigurationSystemImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return cloudRoboticsPackage.Literals.CONFIGURATION_SYSTEM; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<VirtualMachine> getMachines() { if (machines == null) { machines = new EObjectContainmentEList.Resolving<VirtualMachine>(VirtualMachine.class, this, cloudRoboticsPackage.CONFIGURATION_SYSTEM__MACHINES); } return machines; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<ConnectionComponent> getConnections() { if (connections == null) { connections = new EObjectContainmentEList.Resolving<ConnectionComponent>(ConnectionComponent.class, this, cloudRoboticsPackage.CONFIGURATION_SYSTEM__CONNECTIONS); } return connections; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getName() { return name; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, cloudRoboticsPackage.CONFIGURATION_SYSTEM__NAME, oldName, name)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case cloudRoboticsPackage.CONFIGURATION_SYSTEM__MACHINES: return ((InternalEList<?>)getMachines()).basicRemove(otherEnd, msgs); case cloudRoboticsPackage.CONFIGURATION_SYSTEM__CONNECTIONS: return ((InternalEList<?>)getConnections()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case cloudRoboticsPackage.CONFIGURATION_SYSTEM__MACHINES: return getMachines(); case cloudRoboticsPackage.CONFIGURATION_SYSTEM__CONNECTIONS: return getConnections(); case cloudRoboticsPackage.CONFIGURATION_SYSTEM__NAME: return getName(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case cloudRoboticsPackage.CONFIGURATION_SYSTEM__MACHINES: getMachines().clear(); getMachines().addAll((Collection<? extends VirtualMachine>)newValue); return; case cloudRoboticsPackage.CONFIGURATION_SYSTEM__CONNECTIONS: getConnections().clear(); getConnections().addAll((Collection<? extends ConnectionComponent>)newValue); return; case cloudRoboticsPackage.CONFIGURATION_SYSTEM__NAME: setName((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case cloudRoboticsPackage.CONFIGURATION_SYSTEM__MACHINES: getMachines().clear(); return; case cloudRoboticsPackage.CONFIGURATION_SYSTEM__CONNECTIONS: getConnections().clear(); return; case cloudRoboticsPackage.CONFIGURATION_SYSTEM__NAME: setName(NAME_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case cloudRoboticsPackage.CONFIGURATION_SYSTEM__MACHINES: return machines != null && !machines.isEmpty(); case cloudRoboticsPackage.CONFIGURATION_SYSTEM__CONNECTIONS: return connections != null && !connections.isEmpty(); case cloudRoboticsPackage.CONFIGURATION_SYSTEM__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); } return super.eIsSet(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (name: "); result.append(name); result.append(')'); return result.toString(); } } //ConfigurationSystemImpl
[ "antonio.agj@gmail.com" ]
antonio.agj@gmail.com
6bbe4ba30357b3275f5e52e19adb7718215b5404
e889d1054ca2cdc054efa708717a4a1fb9cae6c9
/2019.5/5.10 Java多线程编程核心技术第二章第二节:synchronized同步语句块/src/Day10/Test/Test9.java
d3614d06e0869f17d6d878b14bff0ef849ec7478
[]
no_license
Dangwuxie/JavaSE2019
d56ef46c0cf4407773f257e954f6d27c03767c4d
81f5c0c641bffd53537e93e4574411b91c67a789
refs/heads/master
2022-07-14T07:21:52.053672
2019-11-26T13:03:01
2019-11-26T13:03:28
164,305,445
1
0
null
2022-06-21T01:48:10
2019-01-06T12:34:52
Java
UTF-8
Java
false
false
1,320
java
package Day10.Test; //同步块解决同步方法容易造成死锁的问题; class Service9{ Object object1 = new Object(); public void methodA(){ synchronized (object1){ System.out.println("A begin"); boolean temp = true; while (temp){ System.out.println( "A" ); } System.out.println("A end"); } } Object object2 = new Object(); public void methodB(){ synchronized (object2){ System.out.println("B begin"); System.out.println("B end"); } } } class Thread9A implements Runnable{ private Service9 service9; public Thread9A(Service9 service9) { this.service9 = service9; } @Override public void run() { service9.methodA(); } } class Thread9B implements Runnable{ private Service9 service9; public Thread9B(Service9 service9) { this.service9 = service9; } @Override public void run() { service9.methodB(); } } public class Test9 { public static void main(String[] args) { Service9 service9 = new Service9(); Thread t1 = new Thread(new Thread9A(service9)); Thread t2 = new Thread(new Thread9B(service9)); t1.start(); t2.start(); } }
[ "974079012@qq.com" ]
974079012@qq.com
d5a25ee2f056c0dc03466520cc6f180c102d2259
7c87a85b35e47d4640283d12c40986e7b8a78e6f
/moneyfeed-user/moneyfeed-user-api/src/main/java/com/newhope/moneyfeed/user/api/dto/response/client/ClientUserThirdAccountDtoResult.java
d5b275090c06bc8ee47994ac7f487018e4eac746
[]
no_license
newbigTech/moneyfeed
191b0bd4c98b49fa6be759ed16817b96c6e853b3
2bd8bdd10ddfde3f324060f7b762ec3ed6e25667
refs/heads/master
2020-04-24T13:05:44.308618
2019-01-15T07:59:03
2019-01-15T07:59:03
171,975,920
0
3
null
2019-02-22T01:53:12
2019-02-22T01:53:12
null
UTF-8
Java
false
false
581
java
package com.newhope.moneyfeed.user.api.dto.response.client; import com.newhope.moneyfeed.api.dto.response.DtoResult; import com.newhope.moneyfeed.user.api.bean.client.UcClientUserThirdAccountModel; public class ClientUserThirdAccountDtoResult extends DtoResult { private static final long serialVersionUID = 5956970357471403674L; private UcClientUserThirdAccountModel account; public UcClientUserThirdAccountModel getAccount() { return account; } public void setAccount(UcClientUserThirdAccountModel account) { this.account = account; } }
[ "505235893@qq.com" ]
505235893@qq.com
7c849331c807af0312d7a0e8adec76022e635a7f
0b3d34428d14085ed5f881cf2286fd83aae5779c
/src/test/java/com/maven/project/demoproject/StringCalculatorTest.java
48c4ba256ba5efe3fbd58db76912d50ae6bb8a14
[]
no_license
debiprasadmishra50/StringCalculator
90cf89d6832896f90b92a3f5cd97b2c1beb9ec7b
850fc5b895328af66c15e624303066eabf664477
refs/heads/master
2023-04-25T03:37:31.327730
2021-05-01T21:33:26
2021-05-01T21:33:26
363,510,318
0
0
null
null
null
null
UTF-8
Java
false
false
1,671
java
package com.maven.project.demoproject; import static org.junit.Assert.*; import org.junit.Test; public class StringCalculatorTest { @Test public void checkForEmptyString() { assertEquals(0, StringCalculator.add("")); } @Test public void returnIntegerWhenInputIsOne() { assertEquals(1, StringCalculator.add("1")); } @Test public void returnSumOfNumbersSeparatedByComma() { assertEquals(3, StringCalculator.add("1,2")); } @Test public void checkForUnknownAmountOfNumbers() { assertEquals(10, StringCalculator.add("1,2,3,4")); } @Test public void handleNewLinesBetweenNumbers() { assertEquals(6, StringCalculator.add("1\n2,3")); } @Test public void supportCustomDelimeter() { assertEquals(3, StringCalculator.add("//;\\n1;2")); } @Test() public void checkForNegativeNumbers() { try { StringCalculator.add("1,2,-3"); } catch (RuntimeException e) { assertEquals("Negatives are Not Allowed : -3", e.getMessage()); } } @Test() public void checkForMultipleNegativeNumbers() { try{ StringCalculator.add("-1,-2,-3"); } catch (RuntimeException e) { assertEquals("Negatives are Not Allowed : -1 -2 -3", e.getMessage()); } } @Test public void ignoreNumberBiggerThanThousand() { assertEquals(2, StringCalculator.add("2+1000")); } @Test public void delimeterOfAnyLength() { assertEquals(6, StringCalculator.add("//[***]\\n1***2***3")); } @Test public void withMultipleDelimeters() { assertEquals(6, StringCalculator.add("//[*][%]\\n1*2%3")); } @Test public void multipleDelimeterWithLengthLongerThanOneChar() { assertEquals(6, StringCalculator.add("//[**][%%]\\n1**2%%3")); } }
[ "debiprasadmishra50@gmail.com" ]
debiprasadmishra50@gmail.com
5cdb436a204730504163735622750116e1c9f575
859490fc3e8e9189b05c9050be5870db1217f292
/plugin/src/main/java/org/osmorc/settings/LibraryBundlingEditor.java
8a43b71c73294d3bfb448444d7c8d71846421f46
[]
no_license
consulo/consulo-osgi
092bb8dfde6cb01388a074711b1da35be96f9a22
60740d2367edb32ab1494ccac4045696ae6a1f98
refs/heads/master
2022-01-27T05:09:27.237611
2021-12-24T16:12:35
2021-12-24T16:12:35
9,714,009
0
0
null
null
null
null
UTF-8
Java
false
false
1,466
java
package org.osmorc.settings; import com.intellij.openapi.options.Configurable; import com.intellij.openapi.options.ConfigurationException; import com.intellij.openapi.options.SearchableConfigurable; import consulo.ui.annotation.RequiredUIAccess; import org.jetbrains.annotations.Nls; import javax.annotation.Nonnull; import javax.swing.*; /** * @author <a href="janthomae@janthomae.de">Jan Thom&auml;</a> * @version $Id:$ */ public class LibraryBundlingEditor implements SearchableConfigurable, Configurable.NoScroll { private LibraryBundlingEditorComponent myComponent; @Nls public String getDisplayName() { return "Library Bundling"; } public String getHelpTopic() { return "reference.settings.project.osgi.library.bundling"; } @Nonnull public String getId() { return getHelpTopic(); } @RequiredUIAccess public JComponent createComponent() { myComponent = new LibraryBundlingEditorComponent(); return myComponent.getMainPanel(); } @RequiredUIAccess public boolean isModified() { return myComponent != null && myComponent.isModified(); } @RequiredUIAccess public void apply() throws ConfigurationException { myComponent.applyTo(ApplicationSettings.getInstance()); } @RequiredUIAccess public void reset() { myComponent.resetTo(ApplicationSettings.getInstance()); } @RequiredUIAccess public void disposeUIResources() { if(myComponent != null) { myComponent.dispose(); myComponent = null; } } }
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
68cb8ac345de5c40bcb8319007c129fa874ecf70
2d8805d53e0273cdc4ea24f36b364ead1f4db77b
/src/main/java/by/andervyd/introduction_oop/go_next/nested_and_inner_class/OuterClass.java
7775adeb616c71c0fd10e74d1baf2d5b75de094e
[]
no_license
andervyd/Examples_and_tasks
3032aba96abfeb204c5f085c00202c2964cc0582
3def4585f5534e8b1a8ed49eb6883a63ebda708c
refs/heads/master
2023-06-01T05:48:39.994607
2021-06-21T00:25:51
2021-06-21T00:25:51
374,628,853
0
0
null
null
null
null
UTF-8
Java
false
false
330
java
package by.andervyd.introduction_oop.go_next.nested_and_inner_class; public class OuterClass { int a = 20; class InnerClass { int b = 15; } private class PrivateInnerClass { int c = 10; } static class StaticInnerClass { int d = 5; } }
[ "andervyd@gmail.com" ]
andervyd@gmail.com
c279f5873efa4c841012d9b79b6085946ea807af
573b9c497f644aeefd5c05def17315f497bd9536
/src/main/java/com/alipay/api/response/AlipayDataDpcAlisisOlapprocessorResponse.java
524880d166c2e9555601357e5ec07fc037ef67a0
[ "Apache-2.0" ]
permissive
zzzyw-work/alipay-sdk-java-all
44d72874f95cd70ca42083b927a31a277694b672
294cc314cd40f5446a0f7f10acbb5e9740c9cce4
refs/heads/master
2022-04-15T21:17:33.204840
2020-04-14T12:17:20
2020-04-14T12:17:20
null
0
0
null
null
null
null
UTF-8
Java
false
false
635
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.data.dpc.alisis.olapprocessor response. * * @author auto create * @since 1.0, 2019-03-08 15:29:11 */ public class AlipayDataDpcAlisisOlapprocessorResponse extends AlipayResponse { private static final long serialVersionUID = 2192234879528224477L; /** * 业务处理后返回的数据 */ @ApiField("data") private String data; public void setData(String data) { this.data = data; } public String getData( ) { return this.data; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
b879beb2bf0eaa5a301550b3a31492bc662e5836
2dcc440fa85d07e225104f074bcf9f061fe7a7ae
/gameserver/src/main/java/org/mmocore/gameserver/network/lineage/components/ChatType.java
14cfe2599d4a31c8747f2323a0666128f6005174
[]
no_license
VitaliiBashta/L2Jts
a113bc719f2d97e06db3e0b028b2adb62f6e077a
ffb95b5f6e3da313c5298731abc4fcf4aea53fd5
refs/heads/master
2020-04-03T15:48:57.786720
2018-10-30T17:34:29
2018-10-30T17:35:04
155,378,710
0
3
null
null
null
null
UTF-8
Java
false
false
1,097
java
package org.mmocore.gameserver.network.lineage.components; /** * @author VISTALL * @date 12:48/29.12.2010 */ public enum ChatType { ALL, //0 SHOUT, //1 ! TELL, //2 " PARTY, //3 # CLAN, //4 @ GM, //5 PETITION_PLAYER, //6 used for petition PETITION_GM, //7 * used for petition TRADE, //8 + ALLIANCE, //9 $ ANNOUNCEMENT, //10 SYSTEM_MESSAGE, //11 L2FRIEND, MSNCHAT, PARTY_ROOM, //14 COMMANDCHANNEL_ALL, //15 `` COMMANDCHANNEL_COMMANDER, //16 ` HERO_VOICE, //17 % CRITICAL_ANNOUNCE, //18 SCREEN_ANNOUNCE, BATTLEFIELD, //20 ^ MPCC_ROOM, //21 добавлен в епилоге, подобия PARTY_ROOM ток для СС NPC_ALL, // 22 добавлен в ХФ, аналог ALL, но может игнорироватся клиентом NPC_SHOUT; // 23 добавлен в ХФ, аналог SHOUT, но может игнорироватся клиентом public static final ChatType[] VALUES = values(); }
[ "Vitalii.Bashta@accenture.com" ]
Vitalii.Bashta@accenture.com
e34bee6522b475e5be7089b5bbdcb811faa16e3a
ec578ca63120ed847d31d73cc3f4d56c34a84fd1
/app/src/main/java/org/jaudiotagger/audio/flac/FlacInfoReader.java
a2cd570c5c098a3cbe929c89b58eb149a42bb39d
[]
no_license
jinhuizxc/MusicDNA
95faaffd9704b59016c4f8c2f0417f64db233411
627851ecee25574b25573e1454136a945c14278b
refs/heads/master
2021-04-30T13:04:55.994024
2018-03-13T16:00:36
2018-03-13T16:00:36
121,288,145
3
0
null
null
null
null
UTF-8
Java
false
false
4,679
java
/* * Entagged Audio Tag library * Copyright (c) 2003-2005 Raphaël Slinckx <raphael@slinckx.net> * * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ package org.jaudiotagger.audio.flac; import org.jaudiotagger.audio.exceptions.CannotReadException; import org.jaudiotagger.audio.flac.metadatablock.BlockType; import org.jaudiotagger.audio.flac.metadatablock.MetadataBlockDataStreamInfo; import org.jaudiotagger.audio.flac.metadatablock.MetadataBlockHeader; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.util.logging.Logger; /** * Read info from Flac file */ public class FlacInfoReader { // Logger Object public static Logger logger = Logger.getLogger("org.jaudiotagger.audio.flac"); private static final int NO_OF_BITS_IN_BYTE = 8; private static final int KILOBYTES_TO_BYTES_MULTIPLIER = 1000; public FlacAudioHeader read(RandomAccessFile raf) throws CannotReadException, IOException { FlacStreamReader flacStream = new FlacStreamReader(raf); flacStream.findStream(); MetadataBlockDataStreamInfo mbdsi = null; boolean isLastBlock = false; //Search for StreamInfo Block, but even after we found it we still have to continue through all //the metadata blocks so that we can find the start of the audio frames which we need to calculate //the bitrate while (!isLastBlock) { MetadataBlockHeader mbh = MetadataBlockHeader.readHeader(raf); if (mbh.getBlockType() == BlockType.STREAMINFO) { mbdsi = new MetadataBlockDataStreamInfo(mbh, raf); if (!mbdsi.isValid()) { throw new CannotReadException("FLAC StreamInfo not valid"); } //TODO We have found streaminfo so do we need to continue checking, effects bitrate calc which is correct //break; } else { raf.seek(raf.getFilePointer() + mbh.getDataLength()); } isLastBlock = mbh.isLastBlock(); mbh = null; //Free memory } if (mbdsi == null) { throw new CannotReadException("Unable to find Flac StreamInfo"); } FlacAudioHeader info = new FlacAudioHeader(); info.setLength(mbdsi.getSongLength()); info.setPreciseLength(mbdsi.getPreciseLength()); info.setChannelNumber(mbdsi.getChannelNumber()); info.setSamplingRate(mbdsi.getSamplingRate()); info.setBitsPerSample(mbdsi.getBitsPerSample()); info.setEncodingType(mbdsi.getEncodingType()); info.setExtraEncodingInfos(""); info.setBitrate(computeBitrate(mbdsi.getPreciseLength(), raf.length() - raf.getFilePointer())); info.setLossless(true); info.setMd5(mbdsi.getMD5Signature()); return info; } private int computeBitrate(float length, long size) { return (int) ((size / KILOBYTES_TO_BYTES_MULTIPLIER) * NO_OF_BITS_IN_BYTE / length); } /** * Count the number of metadatablocks, useful for debugging * * @param f * @return * @throws CannotReadException * @throws IOException */ public int countMetaBlocks(File f) throws CannotReadException, IOException { RandomAccessFile raf = new RandomAccessFile(f, "r"); FlacStreamReader flacStream = new FlacStreamReader(raf); flacStream.findStream(); boolean isLastBlock = false; int count = 0; while (!isLastBlock) { MetadataBlockHeader mbh = MetadataBlockHeader.readHeader(raf); logger.config("Found block:" + mbh.getBlockType()); raf.seek(raf.getFilePointer() + mbh.getDataLength()); isLastBlock = mbh.isLastBlock(); mbh = null; //Free memory count++; } raf.close(); return count; } }
[ "1004260403@qq.com" ]
1004260403@qq.com
367a051ca9a619677ef8255c5ab6a02e21329ffd
39b5e9877848fedc74ad5e994df00df6e01e76ed
/app/src/test/java/com/example/dongja94/testlocalbroadcastmanager/ExampleUnitTest.java
f17cce592a643ae42a080ba44bef1e80c7d52e38
[]
no_license
dongja94/SampleLocalBroadcastManager
a2baa3fa619e2b4d3c756e3914c530d494c3af69
a40de4f74faf4803fd73f33960058d286d78b9d3
refs/heads/master
2021-01-10T13:02:33.699430
2015-11-05T01:54:28
2015-11-05T01:54:28
45,580,207
0
0
null
null
null
null
UTF-8
Java
false
false
339
java
package com.example.dongja94.testlocalbroadcastmanager; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
[ "dongja94@gmail.com" ]
dongja94@gmail.com
3ecf37bd08eb64afb3acbae99d19812814afb2e6
a53dad527b2968824223082332da8fd37c91b74d
/app/src/main/java/com/example/secondassignment2/MainActivity.java
a7abed929accf23ec27cae097c9b0da51abb9136
[]
no_license
Sereen-ghassan/SecondAssignment2
e7b7ff75d0dbda9ff8355d86b2bd687f19625489
68c9d07022c0226bd1f5f353c53e18ebd2102a0e
refs/heads/master
2023-01-11T11:20:59.783509
2020-11-08T16:59:53
2020-11-08T16:59:53
311,084,039
0
0
null
null
null
null
UTF-8
Java
false
false
5,307
java
package com.example.secondassignment2; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import androidx.preference.PreferenceManager; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.CheckBox; import android.widget.EditText; import android.widget.Spinner; import android.widget.TextView; import java.util.ArrayList; import java.util.List; public class MainActivity extends AppCompatActivity { private EditText Name; private EditText Height; private EditText Weigth; private Spinner Gender; private TextView bmiTxt; private CheckBox checkBox; private Button timerButton; private Button bmiButton; private static final String savedName = "Name"; private static final String savedHeight = "Height"; private static final String savedWeigth = "Weidth"; private static final String savedGender = "Gender"; private static final String CHECKED = "Checked"; private static final String BMI = "BMI"; private SharedPreferences prefs; private SharedPreferences.Editor editor; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); timerButton=findViewById(R.id.button_timer); timerButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { onClickTimer(); } }); bmiButton=findViewById(R.id.button_bmi); bmiButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { calculateBmi(); } }); setupViews(); setupSharedPrefs(); checkPrefs(); populateSpinner(); } private void populateSpinner() { List<String> spinnerArray = new ArrayList<String>(); spinnerArray.add("Female"); spinnerArray.add("Male"); ArrayAdapter<String> adapter = new ArrayAdapter<String>( this, android.R.layout.simple_spinner_item, spinnerArray); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); Gender.setAdapter(adapter); } private void setupSharedPrefs(){ prefs = PreferenceManager.getDefaultSharedPreferences(this); editor=prefs.edit(); } private void setupViews(){ Name = findViewById(R.id.name); Height = findViewById(R.id.height); Weigth = findViewById(R.id.weigth); Gender = findViewById(R.id.gender); bmiTxt = findViewById(R.id.bmi_txt); checkBox = findViewById(R.id.check); } private void checkPrefs(){ boolean Check = prefs.getBoolean(CHECKED , false); if(Check){ String name = prefs.getString(savedName,""); String height = prefs.getString(savedHeight,""); String weidth = prefs.getString(savedWeigth,""); // int gender = prefs.getInt(savedGender,0); String bmi = prefs.getString(BMI,""); Name.setText(name); Height.setText(height); Weigth.setText(weidth); // Gender.setSelection(gender); checkBox.setChecked(true); bmiTxt.setText(bmi); } } public void calculateBmi(){ String name = Name.getText().toString(); String height = Height.getText().toString(); String weigth = Weigth.getText().toString(); String gender = Gender.getSelectedItem().toString(); if (height != null && !"".equals(height) && weigth != null && !"".equals(weigth)){ float heightValue = Float.parseFloat(height) / 100; float weightValue = Float.parseFloat(weigth); float bmi = weightValue / (heightValue * heightValue); BMIRESULTS(bmi); } String Bmi = bmiTxt.getText().toString(); if (checkBox.isChecked()){ editor.putString(savedName,name); editor.putString(savedHeight, String.valueOf(height)); editor.putString(savedWeigth, String.valueOf(weigth)); editor.putString(savedGender,gender); editor.putString(BMI,Bmi); editor.putBoolean(CHECKED,true); editor.commit(); } } public void BMIRESULTS (float bmi){ String bmiLabel = ""; if ( Float.compare(bmi, 18.5f) <= 0) { bmiLabel = getString(R.string.underweight); } else if (Float.compare(bmi, 18.5f) > 0 && Float.compare(bmi, 25f) <= 0) { bmiLabel = getString(R.string.normal); } else if (Float.compare(bmi, 25f) > 0 && Float.compare(bmi, 30f) <= 0) { bmiLabel = getString(R.string.overweight); } else if (Float.compare(bmi, 30f) > 0 ) { bmiLabel = getString(R.string.obese_class_i); } bmiLabel = bmi + "\n" + bmiLabel; bmiTxt.setText(bmiLabel); } public void onClickTimer() { Intent intent = new Intent( this , Timer.class); startActivity(intent); } }
[ "you@example.com" ]
you@example.com
f8de3377d4708d7766fe2ec6bf2e95ec00c98b07
20e46b818cf93db7fa7d70d47f037b1d94c84348
/konig-content-system-common/src/main/java/io/konig/content/AssetBundleKey.java
e34db228badcd31881375f7be1e0279dce55ccfc
[]
no_license
gmcfall/konig
43690b69a1e96a8094ab3f5585614102dc85b2d8
f28e21ec978d413b576628face3e0f7698eed5f1
refs/heads/master
2020-12-30T16:41:22.674924
2017-05-11T18:31:34
2017-05-11T18:31:34
91,012,835
0
0
null
2017-05-11T18:47:17
2017-05-11T18:47:17
null
UTF-8
Java
false
false
1,301
java
package io.konig.content; public class AssetBundleKey { private String name; private String version; public AssetBundleKey(String name, String version) { this.name = name; this.version = version; } public String getName() { return name; } public String getVersion() { return version; } public String url(String baseURL) { StringBuilder builder = new StringBuilder(); builder.append(baseURL); if (!baseURL.endsWith("/")) { builder.append('/'); } builder.append(name); builder.append('/'); builder.append(version); builder.append('/'); return builder.toString(); } public String assetURL(String baseURL, AssetMetadata metadata) { StringBuilder builder = new StringBuilder(); builder.append(baseURL); if (!baseURL.endsWith("/")) { builder.append('/'); } String path = metadata.getPath(); builder.append(name); builder.append('/'); builder.append(version); if (!path.startsWith("/")) { builder.append('/'); } builder.append(metadata.getPath()); return builder.toString(); } public String trimBundlePath(String path) { int bundleNameEnd = path.indexOf('/', 1); int versionEnd = path.indexOf('/', bundleNameEnd+1); return path.substring(versionEnd+1); } }
[ "gregory.mcfall@gmail.com" ]
gregory.mcfall@gmail.com
3a6d15014c246b565caed95a70b19d656cbf4ab4
acbb56922b48774b9c4d03a335d8c971dd64b80d
/GOLauncher1.5_main/src/com/gau/utils/cache/compress/ZipUtils.java
4e859f171e580ee6ba352a9976c294eb6c1e5530
[]
no_license
Lakkichand/smartapp-src
91284c469308e9e40c45a7782d0bdb79c80bf9e2
1a174a9dd6a8a784d5faf204404e9a0abede4fa5
refs/heads/master
2021-01-10T16:51:09.042107
2015-03-28T15:15:06
2015-03-28T15:15:06
45,905,976
4
7
null
null
null
null
UTF-8
Java
false
false
3,014
java
package com.gau.utils.cache.compress; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.zip.Deflater; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; import java.util.zip.Inflater; /** * <br>类描述: * <br>功能详细描述: * * @author liguoliang * @date [2012-10-12] */ public class ZipUtils { public static byte[] gzip(byte[] bs) throws Exception { ByteArrayOutputStream bout = new ByteArrayOutputStream(1000); GZIPOutputStream gzout = null; try { gzout = new GZIPOutputStream(bout); gzout.write(bs); gzout.flush(); } catch (Exception e) { throw e; } finally { if (gzout != null) { try { gzout.close(); } catch (Exception ex) { } } } return bout.toByteArray(); } public static byte[] ungzip(byte[] bs) throws Exception { GZIPInputStream gzin = null; ByteArrayInputStream bin = null; try { bin = new ByteArrayInputStream(bs); gzin = new GZIPInputStream(bin); return toByteArray(gzin); } catch (Exception e) { throw e; } finally { if (bin != null) { bin.close(); } } } public static byte[] toByteArray(InputStream input) throws IOException { ByteArrayOutputStream output = new ByteArrayOutputStream(); copy(input, output); return output.toByteArray(); } public static int copy(InputStream input, OutputStream output) throws IOException { byte[] buffer = new byte[1024 * 4]; int count = 0; int n = 0; while (-1 != (n = input.read(buffer))) { output.write(buffer, 0, n); count += n; } return count; } public static byte[] zip(byte[] bs) throws Exception { ByteArrayOutputStream o = null; try { o = new ByteArrayOutputStream(); Deflater compresser = new Deflater(); compresser.setInput(bs); compresser.finish(); byte[] output = new byte[1024]; while (!compresser.finished()) { int got = compresser.deflate(output); o.write(output, 0, got); } o.flush(); return o.toByteArray(); } catch (Exception ex) { throw ex; } finally { if (o != null) { try { o.close(); } catch (IOException e) { throw e; } } } } public static byte[] unzip(byte[] bs) throws Exception { ByteArrayOutputStream o = null; try { o = new ByteArrayOutputStream(); Inflater decompresser = new Inflater(); decompresser.setInput(bs); byte[] result = new byte[1024]; while (!decompresser.finished()) { int resultLength = decompresser.inflate(result); o.write(result, 0, resultLength); } decompresser.end(); o.flush(); return o.toByteArray(); } catch (Exception ex) { throw ex; } finally { if (o != null) { try { o.close(); } catch (IOException e) { throw e; } } } } }
[ "yijiajia1988@gmail.com@702b21dd-f629-e120-7dff-525d4d49388d" ]
yijiajia1988@gmail.com@702b21dd-f629-e120-7dff-525d4d49388d
39912c5a1c57f34bbce8d4711ffc2ccf702f5664
96f8d42c474f8dd42ecc6811b6e555363f168d3e
/baike/sources/qsbk/app/core/utils/TaskExecutor.java
4516b96e26a937b4010289ff6271f6ee6f9a90fb
[]
no_license
aheadlcx/analyzeApk
050b261595cecc85790558a02d79739a789ae3a3
25cecc394dde4ed7d4971baf0e9504dcb7fabaca
refs/heads/master
2020-03-10T10:24:49.773318
2018-04-13T09:44:45
2018-04-13T09:44:45
129,332,351
6
2
null
null
null
null
UTF-8
Java
false
false
2,508
java
package qsbk.app.core.utils; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class TaskExecutor { private static TaskExecutor a = null; private ExecutorService b = Executors.newSingleThreadExecutor(); public interface Task { void fail(Throwable th); Object proccess() throws Exception; void success(Object obj); } public static class SimpleTask implements Task { public Object proccess() throws Exception { return null; } public void success(Object obj) { } public void fail(Throwable th) { } } private final class a implements Runnable { Task a = null; final /* synthetic */ TaskExecutor b; a(TaskExecutor taskExecutor, Task task) { this.b = taskExecutor; this.a = task; } Task a() { return this.a; } public void run() { try { this.a.success(this.a.proccess()); } catch (Throwable e) { this.a.fail(e); } } } public static synchronized TaskExecutor getInstance() { TaskExecutor taskExecutor; synchronized (TaskExecutor.class) { if (a == null) { a = new TaskExecutor(); } taskExecutor = a; } return taskExecutor; } private TaskExecutor() { } public boolean addTask(Task task) { if (task == null) { throw new NullPointerException("task must not be null"); } else if (this.b.isShutdown() || this.b.isTerminated()) { return false; } else { this.b.submit(new a(this, task)); return true; } } public synchronized List<Task> shutdownAll() { List<Task> list; List shutdownNow = this.b.shutdownNow(); list = null; if (!(shutdownNow == null || shutdownNow.isEmpty())) { int size = shutdownNow.size(); List<Task> arrayList = new ArrayList(); for (int i = 0; i < size; i++) { Runnable runnable = (Runnable) shutdownNow.get(i); if (runnable != null && (runnable instanceof a)) { arrayList.add(((a) runnable).a()); } } list = arrayList; } return list; } }
[ "aheadlcxzhang@gmail.com" ]
aheadlcxzhang@gmail.com
e13f2c4ac5b063cee76ef0f98186d3cde76602b8
40281630f520d9002fb862160fc3216fa1a6278d
/android/app/src/main/java/com/hgxgjrn/MainApplication.java
85b9f32ec56fa7f65d0d732f6ae3b61f5fa6bd52
[]
no_license
tianyalu/hgxgjrn
7e66e2a67043b1b4b9b6157d88dfc49d484b6b0b
897213be4526d39aeb566b89d7cb57499ac4733c
refs/heads/master
2023-01-09T00:12:18.434493
2019-05-30T03:58:06
2019-05-30T03:58:06
189,323,678
0
0
null
2023-01-03T15:38:54
2019-05-30T01:25:38
JavaScript
UTF-8
Java
false
false
955
java
package com.hgxgjrn; import android.app.Application; import com.facebook.react.ReactApplication; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.facebook.soloader.SoLoader; import java.util.Arrays; import java.util.List; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage() ); } }; @Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; } @Override public void onCreate() { super.onCreate(); SoLoader.init(this, /* native exopackage */ false); } }
[ "styzf@qq.com" ]
styzf@qq.com
a53f333b0b66282d18f3a619f5f2be2335f9b6d9
ab5cf55892f013bccb8c91cdc9c652eea071fe7b
/bravh/src/main/java/com/chad/library/adapter/base/loadmore/SimpleLoadMoreView.java
f23d197d5365f05d584b9586a24581c43048cef3
[]
no_license
zkbqhuang/HotVideo
427055922318bfc5c4475c56193a5c1e8b8df087
efb7cbbb17b72de73a4391a3b2279cc67588760b
refs/heads/master
2021-06-17T01:24:47.792655
2017-05-08T05:28:35
2017-05-08T05:28:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
601
java
package com.chad.library.adapter.base.loadmore; import com.chad.library.adapter.base.R; /** * Created by BlingBling on 2016/10/11. */ public final class SimpleLoadMoreView extends LoadMoreView { @Override public int getLayoutId() { return R.layout.quick_view_load_more; } @Override protected int getLoadingViewId() { return R.id.load_more_loading_view; } @Override protected int getLoadFailViewId() { return R.id.load_more_load_fail_view; } @Override protected int getLoadEndViewId() { return R.id.load_more_load_end_view; } }
[ "boobooMX@163.com" ]
boobooMX@163.com
8db10c84747864e3d9c9900efae147a153767f75
2cd44309ae3d46f4890b810200fbe184a406d533
/sslr/oracle-jdk-1.7.0.3/org/omg/PortableInterceptor/ObjectReferenceTemplate.java
d1bfd63abced1b6d8610686609084e64d7f5dd63
[]
no_license
wtweeker/ruling_java
b47ddfb082d45e52af967353ceb406a18a6e00a8
1d67d1557d98c88a7f92e6c25cdc3cf3f8fd9ef7
refs/heads/master
2020-03-31T15:39:07.416440
2015-07-09T12:13:24
2015-07-09T12:26:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
936
java
package org.omg.PortableInterceptor; /** * org/omg/PortableInterceptor/ObjectReferenceTemplate.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from ../../../../src/share/classes/org/omg/PortableInterceptor/Interceptors.idl * Friday, January 20, 2012 10:02:16 AM GMT-08:00 */ /** The object reference template. An instance of this must * exist for each object adapter created in an ORB. The server_id, * orb_id, and adapter_name attributes uniquely identify this template * within the scope of an IMR. Note that adapter_id is similarly unique * within the same scope, but it is opaque, and less useful in many * cases. */ public interface ObjectReferenceTemplate extends org.omg.PortableInterceptor.ObjectReferenceFactory { public abstract String server_id (); public abstract String orb_id (); public abstract String[] adapter_name (); } // interface ObjectReferenceTemplate
[ "nicolas.peru@sonarsource.com" ]
nicolas.peru@sonarsource.com
3594550677d42f9fba12a8da991741e80e05652d
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/11/11_a9a19d852856e401305246c02d3b340c572719c3/VssEditCommandTest/11_a9a19d852856e401305246c02d3b340c572719c3_VssEditCommandTest_t.java
0d7d17bbe750a9c230ea7c14bce3865ca41ca946
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
7,162
java
package org.apache.maven.scm.provider.vss.commands.edit; /* * 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. */ import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.ScmTestCase; import org.apache.maven.scm.manager.ScmManager; import org.apache.maven.scm.provider.vss.commands.VssCommandLineUtils; import org.apache.maven.scm.provider.vss.repository.VssScmProviderRepository; import org.apache.maven.scm.repository.ScmRepository; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.cli.Commandline; import java.io.File; import java.util.Arrays; import java.util.List; /** * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a> * @version $Id$ */ public class VssEditCommandTest extends ScmTestCase { private ScmManager scmManager; public void setUp() throws Exception { super.setUp(); scmManager = getScmManager(); } public void testCommandLine() throws Exception { ScmRepository repository = scmManager .makeScmRepository( "scm:vss|username|password@C:/Program File/Visual Source Safe|D:/myProject" ); ScmFileSet fileSet = new ScmFileSet( getTestFile( "target" ) ); VssEditCommand command = new VssEditCommand(); List commands = command.buildCmdLine( (VssScmProviderRepository) repository.getProviderRepository(), fileSet ); Commandline cl = (Commandline) commands.get( 0 ); String ssPath = VssCommandLineUtils.getSsDir().replace( '/', File.separatorChar ); assertCommandLine( ssPath + "ss Checkout $D:/myProject -R -Yusername,password -I-", fileSet.getBasedir(), cl ); } public void testCommandLineFileSet() throws Exception { File target = getTestFile( "target" ); ScmRepository repository = scmManager .makeScmRepository( "scm:vss|username|password@C:/Program File/Visual Source Safe|D:/myProject" ); ScmFileSet fileSet = new ScmFileSet( target, "**/VssEditCommandTest.class" ); VssEditCommand command = new VssEditCommand(); List commands = command.buildCmdLine( (VssScmProviderRepository) repository.getProviderRepository(), fileSet ); Commandline cl = (Commandline) commands.get( 0 ); String ssPath = VssCommandLineUtils.getSsDir().replace( '/', File.separatorChar ); assertCommandLine( ssPath + "ss Checkout $D:/myProject/test-classes/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.class -Yusername,password -I-", ((File) fileSet.getFileList().get( 0 )).getParentFile(), cl ); } public void testCommandLineRelativePath() throws Exception { ScmRepository repository = scmManager .makeScmRepository( "scm:vss|username|password@C:/Program File/Visual Source Safe|D:/myProject" ); File target = getTestFile( "target" ); ScmFileSet fileSet = new ScmFileSet( target, new File( target, "test-classes/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.class" ) ); VssEditCommand command = new VssEditCommand(); List commands = command.buildCmdLine( (VssScmProviderRepository) repository.getProviderRepository(), fileSet ); Commandline cl = (Commandline) commands.get( 0 ); String ssPath = VssCommandLineUtils.getSsDir().replace( '/', File.separatorChar ); assertCommandLine( ssPath + "ss Checkout $D:/myProject/test-classes/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.class -Yusername,password -I-", ((File) fileSet.getFileList().get( 0 )).getParentFile(), cl ); } public void testCommandLineMultipleFiles() throws Exception { ScmRepository repository = scmManager .makeScmRepository( "scm:vss|username|password@C:/Program File/Visual Source Safe|D:/myProject" ); File target = getTestFile( "target" ); ScmFileSet fileSet = new ScmFileSet( target, Arrays .asList( new File[] { new File( target, "test-classes/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.class" ), new File( target, "test-classes/META-INF/LICENSE" ) } ) ); VssEditCommand command = new VssEditCommand(); List commands = command.buildCmdLine( (VssScmProviderRepository) repository.getProviderRepository(), fileSet ); assertEquals( 2, commands.size() ); Commandline cl; String ssPath; cl = (Commandline) commands.get( 0 ); ssPath = VssCommandLineUtils.getSsDir().replace( '/', File.separatorChar ); // vss is windauze so don't care about the case assertEquals( StringUtils.lowerCase( normSep( target.getPath() + "/test-classes/org/apache/maven/scm/provider/vss/commands/edit" ) ), StringUtils.lowerCase( cl .getWorkingDirectory().getPath() ) ); assertCommandLine( ssPath + "ss Checkout $D:/myProject/test-classes/org/apache/maven/scm/provider/vss/commands/edit/VssEditCommandTest.class -Yusername,password -I-", ((File) fileSet.getFileList().get( 0 )).getParentFile(), cl ); cl = (Commandline) commands.get( 1 ); ssPath = VssCommandLineUtils.getSsDir().replace( '/', File.separatorChar ); // vss is windauze so don't care about the case assertEquals( StringUtils.lowerCase( normSep( target.getPath() + "/test-classes/META-INF" ) ), StringUtils .lowerCase( cl.getWorkingDirectory().getPath() ) ); assertCommandLine( ssPath + "ss Checkout $D:/myProject/test-classes/META-INF/LICENSE -Yusername,password -I-", ((File) fileSet.getFileList().get( 1 )).getParentFile() , cl ); } private String normSep( String str ) { return str.replace( '/', File.separatorChar ).replace( '\\', File.separatorChar ); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
86356488479c888d900cbc2fc6eb47df4552502f
fd8ceaf0149bce82501bcfffca48d626d46bc2e7
/src/main/java/com/mastercard/pts/integrated/issuing/utils/CustomUIStories.java
b6cf5f4e7733362f62f1a7c9cac207395f58d9bf
[]
no_license
scalpovich/TechLarning
4f8281a5a94af65733968a7f5dae88eaac3d311b
c9d13ed0dcd5c51a521d42e6c96e3150cb473e6f
refs/heads/feature/pavan/hotfix
2021-10-10T23:20:56.181769
2019-01-18T06:08:16
2019-01-18T06:08:16
358,985,640
0
1
null
2021-04-17T21:26:23
2021-04-17T21:26:22
null
UTF-8
Java
false
false
266
java
package com.mastercard.pts.integrated.issuing.utils; import org.jbehave.core.configuration.Configuration; public abstract class CustomUIStories extends CustomJBehaveStories { @Override public Configuration configuration() { return super.configuration(); } }
[ "ravi.hargunani@mastercard.com" ]
ravi.hargunani@mastercard.com
358925630417fb9fcc68e3bd111a518a1967ff95
a3172d8225410a2fe027254d29a32d7e196c74f7
/src/main/java/com/mateus/redbot/command/KickCommand.java
5a516a4c67aae9028db18a3d0f0c8ac751507dbd
[ "MIT" ]
permissive
MateusF03/RedBot
b75aa0ba0d131b1eb33a7d7d79257069bafa19b0
056875ae8fd22b7beb1391e76b2d1e475f8ac712
refs/heads/master
2022-03-27T05:45:57.215095
2020-01-27T19:40:38
2020-01-27T19:40:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,791
java
package com.mateus.redbot.command; import com.mateus.redbot.core.command.Command; import com.mateus.redbot.core.command.CommandCategory; import com.mateus.redbot.core.permissions.UserPermission; import net.dv8tion.jda.api.Permission; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent; import org.apache.commons.lang3.StringUtils; public class KickCommand { @Command(name = "kick", description = "Kicka um jogador", commandCategory = CommandCategory.GUILD, args = "(usuário para kickar)", commandPermission = UserPermission.GUILD) public static void kick(GuildMessageReceivedEvent event, String[] args) { Member member; if (StringUtils.isNumeric(args[0])) { member = event.getGuild().getMember(event.getJDA().getUserById(args[0])); } else if (!event.getMessage().getMentionedMembers().isEmpty()) { member = event.getMessage().getMentionedMembers().get(0); } else { event.getChannel().sendMessage("**Você não especificou que usuário é para kickar").queue(); return; } Guild guild = event.getGuild(); Member selfMember = guild.getSelfMember(); if (!selfMember.hasPermission(Permission.KICK_MEMBERS)) { event.getChannel().sendMessage("**Eu não tenho permissão para kickar usuários!**").queue(); } else if (!selfMember.canInteract(member)) { event.getChannel().sendMessage("**Eu não consigo interagir com esse usuário!**").queue(); } else { guild.kick(member).queue(success -> event.getChannel().sendMessage("**O Membro " + member.getUser().getAsTag() + " foi kickado!**").queue()); } } }
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
4497138af55060b7b0e7f0da6ae862e78109bd38
9c800742d3f2851efc68f571548d3b702ebf27ae
/Algorithm/src/main/java/me/choi/book/e_problem/impl/Main2.java
b97d13c89c64f9305e195c72d6b956c789a4144d
[]
no_license
mike6321/Algorithm
dac26406b8272e58b23d39bb797c99968ae9c57b
8cb7cb8db1042bee188331e2cdaaa488ffa8f2b1
refs/heads/master
2021-06-16T13:39:02.876816
2021-04-22T08:05:36
2021-04-22T08:05:36
288,655,863
1
0
null
null
null
null
UTF-8
Java
false
false
652
java
package me.choi.book.e_problem.impl; import java.util.Scanner; /** * Project : Algorithm * * @author : jwdeveloper * @comment : * Time : 9:59 오후 */ public class Main2 { private static int n; private static int m; private static int[][] map; public static void main(String[] args) { Scanner scanner = new Scanner(System.in); n = scanner.nextInt(); m = scanner.nextInt(); map = new int[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { System.out.print(map[i][j] + " "); } System.out.println(); } } }
[ "33277588+mike6321@users.noreply.github.com" ]
33277588+mike6321@users.noreply.github.com
5b53833c633026bce0ec954ff1e494f1e57f3e95
42337d23e155cc9f61982386aa4917ef37a9bca5
/src/main/java/com/game/event/handler/Trade2Handler.java
a2fe68afee5566d4aa6c535920aec9c7b966e401
[]
no_license
lengzyuez/MMORPG
0599c042f7cabd64410f054897c3906c1154311f
2e67f34d387c56e7a91dc7e822ec3ad5620147ad
refs/heads/master
2020-09-08T15:14:05.973142
2019-09-16T09:41:53
2019-09-16T09:41:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
755
java
package com.game.event.handler; import com.game.event.annotation.EventAnnotation; import com.game.event.beanevent.TradeEvent; import com.game.utils.QuestType; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * @ClassName TradeHandler * @Description 交易处理器 * @Author DELL * @Date 2019/8/27 20:44 * @Version 1.0 */ @EventAnnotation @Component public class Trade2Handler implements IHandler<TradeEvent>{ /** * 处理器工具类 */ @Autowired private HandlerUtils handlerUtils; @EventAnnotation @Override public void exec(TradeEvent tradeEvent) { //处理任务 handlerUtils.handleTask(tradeEvent, QuestType.TRADE); } }
[ "1025741620@qq.com" ]
1025741620@qq.com
7f2c198ccd3b51d088f716d7262505b7ae8d69bc
5b8337c39cea735e3817ee6f6e6e4a0115c7487c
/sources/p043io/reactivex/internal/operators/observable/ObservableWindow.java
a1ae25983b960cbc49504ce7b2e49cc511ec986a
[]
no_license
karthik990/G_Farm_Application
0a096d334b33800e7d8b4b4c850c45b8b005ccb1
53d1cc82199f23517af599f5329aa4289067f4aa
refs/heads/master
2022-12-05T06:48:10.513509
2020-08-10T14:46:48
2020-08-10T14:46:48
286,496,946
1
0
null
null
null
null
UTF-8
Java
false
false
7,308
java
package p043io.reactivex.internal.operators.observable; import java.util.ArrayDeque; import java.util.Iterator; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import p043io.reactivex.Observable; import p043io.reactivex.ObservableSource; import p043io.reactivex.Observer; import p043io.reactivex.disposables.Disposable; import p043io.reactivex.internal.disposables.DisposableHelper; import p043io.reactivex.subjects.UnicastSubject; /* renamed from: io.reactivex.internal.operators.observable.ObservableWindow */ public final class ObservableWindow<T> extends AbstractObservableWithUpstream<T, Observable<T>> { final int capacityHint; final long count; final long skip; /* renamed from: io.reactivex.internal.operators.observable.ObservableWindow$WindowExactObserver */ static final class WindowExactObserver<T> extends AtomicInteger implements Observer<T>, Disposable, Runnable { private static final long serialVersionUID = -7481782523886138128L; final Observer<? super Observable<T>> actual; volatile boolean cancelled; final int capacityHint; final long count; /* renamed from: s */ Disposable f4084s; long size; UnicastSubject<T> window; WindowExactObserver(Observer<? super Observable<T>> observer, long j, int i) { this.actual = observer; this.count = j; this.capacityHint = i; } public void onSubscribe(Disposable disposable) { if (DisposableHelper.validate(this.f4084s, disposable)) { this.f4084s = disposable; this.actual.onSubscribe(this); } } public void onNext(T t) { UnicastSubject<T> unicastSubject = this.window; if (unicastSubject == null && !this.cancelled) { unicastSubject = UnicastSubject.create(this.capacityHint, this); this.window = unicastSubject; this.actual.onNext(unicastSubject); } if (unicastSubject != null) { unicastSubject.onNext(t); long j = this.size + 1; this.size = j; if (j >= this.count) { this.size = 0; this.window = null; unicastSubject.onComplete(); if (this.cancelled) { this.f4084s.dispose(); } } } } public void onError(Throwable th) { UnicastSubject<T> unicastSubject = this.window; if (unicastSubject != null) { this.window = null; unicastSubject.onError(th); } this.actual.onError(th); } public void onComplete() { UnicastSubject<T> unicastSubject = this.window; if (unicastSubject != null) { this.window = null; unicastSubject.onComplete(); } this.actual.onComplete(); } public void dispose() { this.cancelled = true; } public boolean isDisposed() { return this.cancelled; } public void run() { if (this.cancelled) { this.f4084s.dispose(); } } } /* renamed from: io.reactivex.internal.operators.observable.ObservableWindow$WindowSkipObserver */ static final class WindowSkipObserver<T> extends AtomicBoolean implements Observer<T>, Disposable, Runnable { private static final long serialVersionUID = 3366976432059579510L; final Observer<? super Observable<T>> actual; volatile boolean cancelled; final int capacityHint; final long count; long firstEmission; long index; /* renamed from: s */ Disposable f4085s; final long skip; final ArrayDeque<UnicastSubject<T>> windows; final AtomicInteger wip = new AtomicInteger(); WindowSkipObserver(Observer<? super Observable<T>> observer, long j, long j2, int i) { this.actual = observer; this.count = j; this.skip = j2; this.capacityHint = i; this.windows = new ArrayDeque<>(); } public void onSubscribe(Disposable disposable) { if (DisposableHelper.validate(this.f4085s, disposable)) { this.f4085s = disposable; this.actual.onSubscribe(this); } } public void onNext(T t) { ArrayDeque<UnicastSubject<T>> arrayDeque = this.windows; long j = this.index; long j2 = this.skip; if (j % j2 == 0 && !this.cancelled) { this.wip.getAndIncrement(); UnicastSubject create = UnicastSubject.create(this.capacityHint, this); arrayDeque.offer(create); this.actual.onNext(create); } long j3 = this.firstEmission + 1; Iterator it = arrayDeque.iterator(); while (it.hasNext()) { ((UnicastSubject) it.next()).onNext(t); } if (j3 >= this.count) { ((UnicastSubject) arrayDeque.poll()).onComplete(); if (!arrayDeque.isEmpty() || !this.cancelled) { this.firstEmission = j3 - j2; } else { this.f4085s.dispose(); return; } } else { this.firstEmission = j3; } this.index = j + 1; } public void onError(Throwable th) { ArrayDeque<UnicastSubject<T>> arrayDeque = this.windows; while (!arrayDeque.isEmpty()) { ((UnicastSubject) arrayDeque.poll()).onError(th); } this.actual.onError(th); } public void onComplete() { ArrayDeque<UnicastSubject<T>> arrayDeque = this.windows; while (!arrayDeque.isEmpty()) { ((UnicastSubject) arrayDeque.poll()).onComplete(); } this.actual.onComplete(); } public void dispose() { this.cancelled = true; } public boolean isDisposed() { return this.cancelled; } public void run() { if (this.wip.decrementAndGet() == 0 && this.cancelled) { this.f4085s.dispose(); } } } public ObservableWindow(ObservableSource<T> observableSource, long j, long j2, int i) { super(observableSource); this.count = j; this.skip = j2; this.capacityHint = i; } public void subscribeActual(Observer<? super Observable<T>> observer) { if (this.count == this.skip) { this.source.subscribe(new WindowExactObserver(observer, this.count, this.capacityHint)); return; } ObservableSource observableSource = this.source; WindowSkipObserver windowSkipObserver = new WindowSkipObserver(observer, this.count, this.skip, this.capacityHint); observableSource.subscribe(windowSkipObserver); } }
[ "knag88@gmail.com" ]
knag88@gmail.com