blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 7
390
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 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
sequencelengths 1
1
| author_id
stringlengths 1
79
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24b2caab6c186b2ed7d800421ef5a80dc4a91d14 | be693f39cb944cf6276efc75d720d5f67f684d64 | /ec-member-service/src/main/java/com/lj/business/member/dto/FindPersonMember.java | 6208d85e0b78f65f51b67fb82549872c694d8d3d | [] | no_license | wo510751575/service | 8846da26529810fcf1e34b3a7d495518456831f7 | 2d8b2cb469c00271ce8c7ceb32b197e07fc96760 | refs/heads/master | 2022-12-28T22:29:57.315251 | 2019-08-27T08:08:52 | 2019-08-27T08:11:27 | 203,946,023 | 1 | 1 | null | 2022-12-16T11:35:13 | 2019-08-23T07:20:48 | Java | UTF-8 | Java | false | false | 3,369 | java | package com.lj.business.member.dto;
import java.io.Serializable;
// TODO: Auto-generated Javadoc
/**
* The Class FindPersonMember.
*/
public class FindPersonMember implements Serializable {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 9076091602064733682L;
/** The code. */
private String code;
/** 客户号. */
private String memberNo;
/** 导购号. */
private String memberNoGm;
/** 商户号. */
private String merchantNo;
/** 区域CODE. */
private String areaCode;
/** 区域名称. */
private String areaName;
/**门店编号*/
private String shopNo;
/**客户类型*/
private String pmTypeType;
/**创建时间*/
private String createDate;
/**省code*/
private String provinceCode;
public String getProvinceCode() {
return provinceCode;
}
public void setProvinceCode(String provinceCode) {
this.provinceCode = provinceCode;
}
public String getShopNo() {
return shopNo;
}
public void setShopNo(String shopNo) {
this.shopNo = shopNo;
}
/**
* Gets the area code.
*
* @return the area code
*/
public String getAreaCode() {
return areaCode;
}
/**
* Sets the area code.
*
* @param areaCode the area code
*/
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
/**
* Gets the area name.
*
* @return the area name
*/
public String getAreaName() {
return areaName;
}
/**
* Sets the area name.
*
* @param areaName the area name
*/
public void setAreaName(String areaName) {
this.areaName = areaName;
}
/**
* Gets the code.
*
* @return the code
*/
public String getCode() {
return code;
}
/**
* Sets the code.
*
* @param code the code to set
*/
public void setCode(String code) {
this.code = code;
}
/**
* Gets the 客户号.
*
* @return the 客户号
*/
public String getMemberNo() {
return memberNo;
}
/**
* Sets the 客户号.
*
* @param memberNo the new 客户号
*/
public void setMemberNo(String memberNo) {
this.memberNo = memberNo;
}
/**
* Gets the 导购号.
*
* @return the 导购号
*/
public String getMemberNoGm() {
return memberNoGm;
}
/**
* Sets the 导购号.
*
* @param memberNoGm the new 导购号
*/
public void setMemberNoGm(String memberNoGm) {
this.memberNoGm = memberNoGm;
}
/**
* Gets the merchant no.
*
* @return the merchant no
*/
public String getMerchantNo() {
return merchantNo;
}
/**
* Sets the merchant no.
*
* @param merchantNo the merchant no
*/
public void setMerchantNo(String merchantNo) {
this.merchantNo = merchantNo;
}
public String getPmTypeType() {
return pmTypeType;
}
public void setPmTypeType(String pmTypeType) {
this.pmTypeType = pmTypeType;
}
public String getCreateDate() {
return createDate;
}
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
@Override
public String toString() {
return "FindPersonMember [code=" + code + ", memberNo=" + memberNo
+ ", memberNoGm=" + memberNoGm + ", merchantNo=" + merchantNo
+ ", areaCode=" + areaCode + ", areaName=" + areaName
+ ", shopNo=" + shopNo + ", pmTypeType=" + pmTypeType
+ ", createDate=" + createDate + ", provinceCode="
+ provinceCode + "]";
}
}
| [
"37724558+wo510751575@users.noreply.github.com"
] | 37724558+wo510751575@users.noreply.github.com |
b80c0f112f742968a6c1173ce6cbac624774efd2 | a4a51084cfb715c7076c810520542af38a854868 | /src/main/java/com/shopee/app/ui/follow/search/n.java | 1ca59a7007d0b38bc1575749ae38894fb8db4003 | [] | no_license | BharathPalanivelu/repotest | ddaf56a94eb52867408e0e769f35bef2d815da72 | f78ae38738d2ba6c9b9b4049f3092188fabb5b59 | refs/heads/master | 2020-09-30T18:55:04.802341 | 2019-12-02T10:52:08 | 2019-12-02T10:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,097 | java | package com.shopee.app.ui.follow.search;
import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.shopee.id.R;
import org.a.a.b.a;
import org.a.a.b.b;
import org.a.a.b.c;
public final class n extends m implements a, b {
private boolean q = false;
private final c r = new c();
public n(Context context, String str, boolean z, int i, boolean z2, String str2) {
super(context, str, z, i, z2, str2);
k();
}
public static m a(Context context, String str, boolean z, int i, boolean z2, String str2) {
n nVar = new n(context, str, z, i, z2, str2);
nVar.onFinishInflate();
return nVar;
}
public void onFinishInflate() {
if (!this.q) {
this.q = true;
inflate(getContext(), R.layout.search_user_layout, this);
this.r.a((a) this);
}
super.onFinishInflate();
}
private void k() {
c a2 = c.a(this.r);
c.a((b) this);
c.a(a2);
}
public <T extends View> T internalFindViewById(int i) {
return findViewById(i);
}
public void onViewChanged(a aVar) {
this.f21818a = (ListView) aVar.internalFindViewById(R.id.search_user_list);
this.f21819b = (ListView) aVar.internalFindViewById(R.id.history_and_hotKey_list);
this.h = aVar.internalFindViewById(R.id.emptyView);
if (this.f21819b != null) {
this.f21819b.setOnItemClickListener(new AdapterView.OnItemClickListener() {
/* JADX WARNING: type inference failed for: r1v0, types: [android.widget.AdapterView<?>, android.widget.AdapterView] */
/* JADX WARNING: Unknown variable types count: 1 */
/* Code decompiled incorrectly, please refer to instructions dump. */
public void onItemClick(android.widget.AdapterView<?> r1, android.view.View r2, int r3, long r4) {
/*
r0 = this;
com.shopee.app.ui.follow.search.n r2 = com.shopee.app.ui.follow.search.n.this
android.widget.Adapter r1 = r1.getAdapter()
java.lang.Object r1 = r1.getItem(r3)
com.shopee.app.data.viewmodel.SearchProductItem r1 = (com.shopee.app.data.viewmodel.SearchProductItem) r1
r2.a((com.shopee.app.data.viewmodel.SearchProductItem) r1)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.shopee.app.ui.follow.search.n.AnonymousClass1.onItemClick(android.widget.AdapterView, android.view.View, int, long):void");
}
});
}
if (this.f21818a != null) {
this.f21818a.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
n.this.a(i);
}
});
}
a();
}
}
| [
"noiz354@gmail.com"
] | noiz354@gmail.com |
c6ea7d85c81cc1c116030a20b341022c8de3859d | 225011bbc304c541f0170ef5b7ba09b967885e95 | /com/mopub/nativeads/MoPubNativeAdPositioning.java | 61bedc27952368f242eb4e163049b1ab6c592623 | [] | no_license | sebaudracco/bubble | 66536da5367f945ca3318fecc4a5f2e68c1df7ee | e282cda009dfc9422594b05c63e15f443ef093dc | refs/heads/master | 2023-08-25T09:32:04.599322 | 2018-08-14T15:27:23 | 2018-08-14T15:27:23 | 140,444,001 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,347 | java | package com.mopub.nativeads;
import android.support.annotation.NonNull;
import com.mopub.common.Preconditions;
import com.mopub.common.Preconditions.NoThrow;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public final class MoPubNativeAdPositioning {
public static class MoPubClientPositioning {
public static final int NO_REPEAT = Integer.MAX_VALUE;
@NonNull
private final ArrayList<Integer> mFixedPositions = new ArrayList();
private int mRepeatInterval = Integer.MAX_VALUE;
@NonNull
public MoPubClientPositioning addFixedPosition(int position) {
if (NoThrow.checkArgument(position >= 0)) {
int index = Collections.binarySearch(this.mFixedPositions, Integer.valueOf(position));
if (index < 0) {
this.mFixedPositions.add(index ^ -1, Integer.valueOf(position));
}
}
return this;
}
@NonNull
List<Integer> getFixedPositions() {
return this.mFixedPositions;
}
@NonNull
public MoPubClientPositioning enableRepeatingPositions(int interval) {
boolean z = true;
if (interval <= 1) {
z = false;
}
if (NoThrow.checkArgument(z, "Repeating interval must be greater than 1")) {
this.mRepeatInterval = interval;
} else {
this.mRepeatInterval = Integer.MAX_VALUE;
}
return this;
}
int getRepeatingInterval() {
return this.mRepeatInterval;
}
}
public static class MoPubServerPositioning {
}
@NonNull
static MoPubClientPositioning clone(@NonNull MoPubClientPositioning positioning) {
Preconditions.checkNotNull(positioning);
MoPubClientPositioning clone = new MoPubClientPositioning();
clone.mFixedPositions.addAll(positioning.mFixedPositions);
clone.mRepeatInterval = positioning.mRepeatInterval;
return clone;
}
@NonNull
public static MoPubClientPositioning clientPositioning() {
return new MoPubClientPositioning();
}
@NonNull
public static MoPubServerPositioning serverPositioning() {
return new MoPubServerPositioning();
}
}
| [
"sebaudracco@gmail.com"
] | sebaudracco@gmail.com |
47c334f782b6f0f1954a1d55781ba79c2a210c56 | 5d6c374a2518d469d674a1327d21d8e0cf2b54f7 | /modules/plugin/jdbc/jdbc-oracle/src/main/java/org/geotools/data/oracle/sdo/CoordinateAccessFactory.java | 68419d39be54cd049e0672e6142dd3976b5f5857 | [] | no_license | HGitMaster/geotools-osgi | 648ebd9343db99a1e2688d9aefad857f6521898d | 09f6e327fb797c7e0451e3629794a3db2c55c32b | refs/heads/osgi | 2021-01-19T08:33:56.014532 | 2014-03-19T18:04:03 | 2014-03-19T18:04:03 | 4,750,321 | 3 | 0 | null | 2014-03-19T13:50:54 | 2012-06-22T11:21:01 | Java | UTF-8 | Java | false | false | 2,152 | java | /*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2003-2008, Open Source Geospatial Foundation (OSGeo)
*
* 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;
* version 2.1 of the License.
*
* 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.
*
* Refractions Research Inc. Can be found on the web at:
* http://www.refractions.net/
*
* Created on Oct 29, 2003
*/
package org.geotools.data.oracle.sdo;
import com.vividsolutions.jts.geom.CoordinateSequenceFactory;
/**
* Extends CoordianteSequenceFactory with meta data information.
* <p>
* This allows us to determine the dimensions of a Geometry.
* </p>
* @author jgarnett
*
* @source $URL: http://svn.osgeo.org/geotools/tags/8.0-M1/modules/plugin/jdbc/jdbc-oracle/src/main/java/org/geotools/data/oracle/sdo/CoordinateAccessFactory.java $
*/
public interface CoordinateAccessFactory extends CoordinateSequenceFactory {
/**
* Create method that allows additional content.
* <p>
* Example: (x,y,z,t) getDimension()==2, getNumAttributes()==2
* </p>
* <pre><code>
* <b>xyz</b>:[ [ x1, x2,...,xN], [ y1, y2,...,yN] ]
* <b>attributes</b>:[ [ z1, z2,...,zN], [ t1, t2,..., tN] ]
* </code></pre>
* @param xyz an array of doubles in column major order where xyz.length == getDimension()
* @param attributes an array of Objects which can be null. Column major measure arrays where attributes.length == getNumAttributes()
*/
public CoordinateAccess create(double[] xyz[], Object[] attributes );
/** Number of spatial ordinates() */
public int getDimension();
/** Number of non spatial ordinates() */
public int getNumAttributes();
}
| [
"devnull@localhost"
] | devnull@localhost |
24645a082c2a8e21f1f093e01a7d540573b0b654 | 260b40bfdab44257c0615fe5fbf30cabfd15c144 | /app/src/main/java/me/jessyan/mvpart/demo/demo4/FourthActivity.java | b784344c3274bd4cfc2cc3d9c954074232973099 | [
"Apache-2.0"
] | permissive | JerryMissTom/MVPArt | 91d9ab3edd92d1ade15076eda7acc2ba02a18635 | 4fa9fb556efba09d94448e4446e750646888e0c9 | refs/heads/master | 2021-01-21T06:38:42.562553 | 2017-02-26T15:16:22 | 2017-02-26T15:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,175 | java | package me.jessyan.mvpart.demo.demo4;
import android.content.Intent;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.Toast;
import butterknife.BindView;
import butterknife.OnClick;
import me.jessyan.art.base.BaseActivity;
import me.jessyan.art.mvp.BaseView;
import me.jessyan.art.mvp.Message;
import me.jessyan.mvpart.demo.MainPresenter;
import me.jessyan.mvpart.demo.R;
/**
* Created by jess on 25/02/2017 20:22
* Contact with jess.yan.effort@gmail.com
* 这里为了展示一个页面可以持有多个Presenter对象,做不同的逻辑处理,相比于传统MVP,可以随便重用Presenter
* 而不用担心,实现多余的view接口,也可以减少大量Presenter类
*/
public class FourthActivity extends BaseActivity<MainPresenter> implements BaseView {
private SecondPresenter mSecondPresenter;
@BindView(R.id.activity_main)
RelativeLayout mRoot;
@Override
protected int initView() {
return R.layout.activity_fourth;
}
@Override
protected void initData() {
}
@Override
protected MainPresenter getPresenter() {
mSecondPresenter = new SecondPresenter();
return new MainPresenter();
}
@Override
protected void onDestroy() {
super.onDestroy();
if (mSecondPresenter != null)
mSecondPresenter.onDestroy();
mSecondPresenter = null;
}
@Override
public void showLoading() {
}
@Override
public void hideLoading() {
}
@Override
public void showMessage(String message) {
Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();
}
@Override
public void launchActivity(Intent intent) {
}
@Override
public void handleMessage(Message message) {
switch (message.what) {
// 两个presenter都使用了"2"这个what字段,所以使用presenter字段来区分
// 但记得每次调用presenter方法前将此presenter的类名赋值给message的presenter字段
case 2:
if (message.presenter.equals(MainPresenter.class.getSimpleName())) {
mRoot.setBackgroundResource(R.color.colorAccent);
// 在一个请求链中重用多个不同presenter的方法来完成所有请求,灵活重用presenter使MVP更强大
mSecondPresenter.request3(Message.obtain(this, SecondPresenter.class));
} else if (message.presenter.equals(SecondPresenter.class.getSimpleName())) {
showMessage("MVPArt");
}
break;
}
}
@OnClick({R.id.btn_request})
public void onClick(View v) {
switch (v.getId()) {
case R.id.btn_request:
// 使用多个presenter时,可能都使用过同一个what值,存在冲突的情况
// 所以message提供一个presenter字段,避免这个冲突的情况
// 这个方法也就是将presenter的类名赋值给message.presenter
mPresenter.request2(Message.obtain(this, MainPresenter.class));
break;
}
}
}
| [
"jessyan@foxmail.com"
] | jessyan@foxmail.com |
432662769642fd5271adfe47c172c0a55b182f5a | 5a78c0ddd9eb6945d1556f07b02e4a85a22c6348 | /ssm-salt-cloud/ssm-service-gateway/src/main/java/cn/edu/cqvie/controller/FallbackController.java | 6c9718a505a2de5181f39d18ed630af934de7fc2 | [] | no_license | zhengsh/ssm-salt | a5c1323abdb3d0230b55edad7bffa2a748570a8d | 3ce8d4866843b294df2262b332295ce9c0dc65d3 | refs/heads/master | 2023-03-18T21:52:00.025665 | 2021-03-10T02:55:49 | 2021-03-10T02:55:49 | 307,019,368 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 584 | java | package cn.edu.cqvie.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 服务降级重定向返回
*
* @author zhengsh
* @date 2021-01-31
*/
@RestController
public class FallbackController {
@GetMapping("/fallback")
public Object login(ServerHttpResponse response) {
response.setStatusCode(HttpStatus.GATEWAY_TIMEOUT);
return "服务降级";
}
}
| [
"xxx@xxx.com"
] | xxx@xxx.com |
43f571f419a7332f31d229631e1f6feab446ffec | f6d1013296ecc58c5ef10c880cb404ac877c46fe | /src/test/java/guice/guice_tutorial/project/SomeDelegateTest.java | 8ce7c26262f20c42bdc78d6cc2a59c941e24aac4 | [] | no_license | jojo8775/guice-tutorial | 4e0d8feec482684ab3e3e34d26ed29b1f0a2b82a | b7956b965ebf896bd9cb8a37fc942cf873b49b76 | refs/heads/master | 2021-06-21T15:53:23.631741 | 2017-04-25T17:24:54 | 2017-04-25T17:24:54 | 56,207,634 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,294 | java | package guice.guice_tutorial.project;
import java.util.List;
import org.junit.Test;
import com.google.inject.Binder;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.AssistedInject;
import com.google.inject.assistedinject.FactoryModuleBuilder;
public class SomeDelegateTest
{
@Test
public void testProcessSomething()
{
Injector injector = Guice.createInjector(new Module()
{
public void configure(Binder binder)
{
binder.bind(SomeHelper.class).to(MockSomeHelper.class);
binder.install(new FactoryModuleBuilder().implement(SomeHelper2.class, MockSomeHelper2.class)
.implement(SomeHelper3.class, MockSampleHelper3.class)
.implement(SomeHelper4.class, MockSomeHelper4.class).build(SomeFactory.class));
}
});
SomeDelegate someDelegate = injector.getInstance(SomeDelegate.class);
someDelegate.processSomething(injector);
}
private static class MockSomeHelper extends SomeHelper
{
@Override
public void print()
{
System.out.println("this is the test implementation.");
}
}
private static class MockSomeHelper2 extends SomeHelper2
{
@AssistedInject
public MockSomeHelper2(@Assisted("msg1") String msg1, @Assisted("msg2") String msg2)
{
super(msg1, msg2);
}
@Override
public void print()
{
System.out.println("This is constructor injection");
}
}
private static class MockSampleHelper3 extends SomeHelper3
{
private List<String> msgList;
@AssistedInject
public MockSampleHelper3(@Assisted List<String> msgList)
{
super(msgList);
this.msgList = msgList;
}
@Override
public void print()
{
System.out.println("This is mock list");
for(String s : msgList){
System.out.print(s + ", ");
}
System.out.println("end of mock");
}
}
private static class MockSomeHelper4 extends SomeHelper4
{
private SomeModel criteria;
@AssistedInject
public MockSomeHelper4(@Assisted SomeModel criteria)
{
super(criteria);
this.criteria = criteria;
}
public void print(){
System.out.println("Helper 4 mock beg: ");
System.out.println(criteria.getName());
System.out.println("Helper 4 mock end:");
}
}
}
| [
"chiranjeeb.nandy@yahoo.com"
] | chiranjeeb.nandy@yahoo.com |
9b401fafcf140e938b9c1b8d29fd1a136abaf93d | 9e4f379555b116497b5450a94616edcc9183e03c | /src/JavaSessions/LoopsConcept.java | cbf643b4d0da152c58ccd7804b7e8d5680788d49 | [] | no_license | naveenanimation20/Jan2021JavaSessions | d6398bd43fe236d73d341ef7929acfa3aa5553a7 | d392c8e53683013e0650a0ce4aa2d116ae5a7f39 | refs/heads/master | 2023-04-06T22:54:20.320163 | 2021-04-20T02:20:16 | 2021-04-20T02:20:16 | 359,654,561 | 6 | 6 | null | null | null | null | UTF-8 | Java | false | false | 1,504 | java | package JavaSessions;
public class LoopsConcept {
public static void main(String[] args) {
//1 to 10
//1. while loop:
int i = 1;
while(i<=10) {
System.out.println(i);//1 2 3 4 5 6...10
i++;
//++i;
//i=i+1;
}
int n = 1;
while(n<=50) {
System.out.println(n);//1
if(n % 5 == 0) {
System.out.println("Hi....");
}
n++;
}
System.out.println("---------------");
//break with while:
int num = 0;
while(num<=100) {
System.out.println(num);
if(num == 50) {
System.out.println("half century");
}
if(num == 100) {
System.out.println("century");
}
if(num==0) {
System.out.println("duck...out");
break;
}
num++;
}
System.out.println("----------------");
//2. for loops:
//1 to 10:
for(int k=1; k<=10; ) {
System.out.println(k);//1....10
k++;
}
System.out.println("----------------");
for(double d = 1.0; d<=10.0; d++) {
System.out.println(d);
}
System.out.println("----------------");
for(char c='a'; c<='z'; c++) {
System.out.println(c);//a b c d
}
//
// for(;;) {
// System.out.println("welcome to TAJ Hotel....");
// }
//for with break:
for(int w=1; w<=20; w++) {
System.out.println(w);
if(w==15) {
System.out.println("value is 15...");
break;
}
}
System.out.println("------");
//3. do-while:
int p = 1;
do {
System.out.println(p);//1
p++;
}
while (p<=10);
}
}
| [
"naveenautomationlabs@naveenautomationlabss-MacBook-Pro.local"
] | naveenautomationlabs@naveenautomationlabss-MacBook-Pro.local |
f1517d6517241cbd33d3584ff6935e23aef1edfc | 882a1a28c4ec993c1752c5d3c36642fdda3d8fad | /proxies/com/microsoft/bingads/v12/campaignmanagement/GetMediaMetaDataByAccountIdRequest.java | f971170b4419b88017aff7a4226385a18a5898a8 | [
"MIT"
] | permissive | BazaRoi/BingAds-Java-SDK | 640545e3595ed4e80f5a1cd69bf23520754c4697 | e30e5b73c01113d1c523304860180f24b37405c7 | refs/heads/master | 2020-07-26T08:11:14.446350 | 2019-09-10T03:25:30 | 2019-09-10T03:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,638 | java |
package com.microsoft.bingads.v12.campaignmanagement;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="MediaEnabledEntities" type="{https://bingads.microsoft.com/CampaignManagement/v12}MediaEnabledEntityFilter" minOccurs="0"/>
* <element name="PageInfo" type="{https://bingads.microsoft.com/CampaignManagement/v12}Paging" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"mediaEnabledEntities",
"pageInfo"
})
@XmlRootElement(name = "GetMediaMetaDataByAccountIdRequest")
public class GetMediaMetaDataByAccountIdRequest {
@XmlElement(name = "MediaEnabledEntities", type = String.class)
@XmlJavaTypeAdapter(Adapter9 .class)
protected Collection<MediaEnabledEntityFilter> mediaEnabledEntities;
@XmlElement(name = "PageInfo", nillable = true)
protected Paging pageInfo;
/**
* Gets the value of the mediaEnabledEntities property.
*
* @return
* possible object is
* {@link String }
*
*/
public Collection<MediaEnabledEntityFilter> getMediaEnabledEntities() {
return mediaEnabledEntities;
}
/**
* Sets the value of the mediaEnabledEntities property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMediaEnabledEntities(Collection<MediaEnabledEntityFilter> value) {
this.mediaEnabledEntities = value;
}
/**
* Gets the value of the pageInfo property.
*
* @return
* possible object is
* {@link Paging }
*
*/
public Paging getPageInfo() {
return pageInfo;
}
/**
* Sets the value of the pageInfo property.
*
* @param value
* allowed object is
* {@link Paging }
*
*/
public void setPageInfo(Paging value) {
this.pageInfo = value;
}
}
| [
"qitia@microsoft.com"
] | qitia@microsoft.com |
7f6923fec3262f73a1287edb8ecd34c0c10f4bfd | db08b66b0e39e25a59dd830deceda8cf1296bbdb | /jtester.testng/src/test/java/org/jtester/tools/reflector/ReflectorTest_NewInstance.java | 18ca50e877185d13e76c0a310289c275b90bbab0 | [] | no_license | pengsong31/jtester | a3c577e26699d44c9a815cafa4f3ad5201358552 | 51bb78a7212d1cab4ce0a6e4a778476e77b5c28b | refs/heads/master | 2020-05-02T19:19:22.618616 | 2013-08-23T08:24:17 | 2013-08-23T08:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,863 | java | package org.jtester.tools.reflector;
import org.jtester.testng.JTester;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@Test(groups = "jtester")
@SuppressWarnings({ "rawtypes", "unchecked" })
public class ReflectorTest_NewInstance extends JTester {
@Test(dataProvider = "instance_data")
public void testNewInstance(Class claz) {
Object instance = reflector.newInstance(claz);
want.object(instance).notNull();
String result = ((ISayHello) instance).getName();
want.string(result).isNull();
}
@DataProvider
public Object[][] instance_data() {
return new Object[][] { { NoDefaultConstructor.class },// <br>
{ ISayHello.class } // <br>
};
}
@Test
public void testPrivateConstruction() {
Object instance = reflector.newInstance(PrivateConstructor.class);
want.object(instance).notNull();
String result = ((ISayHello) instance).getName();
want.string(result).isEqualTo("construction");
}
public void testNewInstance_AbstractClazz() {
try {
reflector.newInstance(AbstractClazz.class);
want.fail();
} catch (Exception e) {
String message = e.getMessage();
want.string(message).contains("unsupport").contains("abstract class");
}
}
}
class NoDefaultConstructor implements ISayHello {
private String name = "defualt";
public NoDefaultConstructor(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
class PrivateConstructor implements ISayHello {
private String name = "defualt";
private PrivateConstructor() {
this.name = "construction";
}
public String getName() {
return name;
}
}
abstract class AbstractClazz implements ISayHello {
private String name = "defualt";
private AbstractClazz(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
interface ISayHello {
public String getName();
}
| [
"darui.wu@163.com"
] | darui.wu@163.com |
8d331029ffda91a33418e4b8fc396f71b218cd60 | f96fe513bfdf2d1dbd582305e1cbfda14a665bec | /net.sf.smbt.jazzmutant/src-model/net/sf/smbt/jzmui/Script.java | f4f31839ec67599a8291f615effdfbdf28c6ac0e | [] | no_license | lucascraft/ubq_wip | 04fdb727e7b2dc384ba1d2195ad47e895068e1e4 | eff577040f21be71ea2c76c187d574f1617703ce | refs/heads/master | 2021-01-22T02:28:20.687330 | 2015-06-10T12:38:47 | 2015-06-10T12:38:47 | 37,206,324 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,259 | java | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.sf.smbt.jzmui;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Script</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link net.sf.smbt.jzmui.Script#getExpr <em>Expr</em>}</li>
* </ul>
* </p>
*
* @see net.sf.smbt.jzmui.JzmuiPackage#getScript()
* @model
* @generated
*/
public interface Script extends EObject {
/**
* Returns the value of the '<em><b>Expr</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Expr</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Expr</em>' attribute.
* @see #setExpr(String)
* @see net.sf.smbt.jzmui.JzmuiPackage#getScript_Expr()
* @model
* @generated
*/
String getExpr();
/**
* Sets the value of the '{@link net.sf.smbt.jzmui.Script#getExpr <em>Expr</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Expr</em>' attribute.
* @see #getExpr()
* @generated
*/
void setExpr(String value);
} // Script
| [
"lucas.bigeardel@gmail.com"
] | lucas.bigeardel@gmail.com |
200eb3fba33d46a208781c1bd8e90355aba4144b | d6267a448e056b47d79cc716d18edec6dd91154c | /modules/core/src/main/java/org/apache/ignite/internal/processors/odbc/OdbcColumnMeta.java | 0edfabcfd4a0bcc2d1fb19f4fe020b6fb1fbb82c | [
"Apache-2.0",
"LicenseRef-scancode-gutenberg-2020",
"CC0-1.0",
"BSD-3-Clause"
] | permissive | sk8tz/ignite | 1635163cc2309aa0f9fd65734317af861679679f | 2774d879a72b0eeced862cc9a3fbd5d9c5ff2d72 | refs/heads/master | 2023-04-19T03:07:50.202953 | 2017-01-04T21:01:13 | 2017-01-04T21:01:13 | 78,094,618 | 0 | 0 | Apache-2.0 | 2023-04-17T19:45:36 | 2017-01-05T08:30:14 | Java | UTF-8 | Java | false | false | 3,356 | java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.internal.processors.odbc;
import org.apache.ignite.binary.BinaryRawWriter;
import org.apache.ignite.internal.binary.BinaryUtils;
import org.apache.ignite.internal.processors.query.GridQueryFieldMetadata;
/**
* ODBC column-related metadata.
*/
public class OdbcColumnMeta {
/** Cache name. */
private final String schemaName;
/** Table name. */
private final String tableName;
/** Column name. */
private final String columnName;
/** Data type. */
private final Class<?> dataType;
/**
* @param schemaName Cache name.
* @param tableName Table name.
* @param columnName Column name.
* @param dataType Data type.
*/
public OdbcColumnMeta(String schemaName, String tableName, String columnName, Class<?> dataType) {
this.schemaName = OdbcUtils.addQuotationMarksIfNeeded(schemaName);
this.tableName = tableName;
this.columnName = columnName;
this.dataType = dataType;
}
/**
* @param info Field metadata.
*/
public OdbcColumnMeta(GridQueryFieldMetadata info) {
this.schemaName = OdbcUtils.addQuotationMarksIfNeeded(info.schemaName());
this.tableName = info.typeName();
this.columnName = info.fieldName();
Class<?> type;
try {
type = Class.forName(info.fieldTypeName());
}
catch (Exception ignored) {
type = Object.class;
}
this.dataType = type;
}
/** {@inheritDoc} */
@Override public int hashCode() {
int hash = schemaName.hashCode();
hash = 31 * hash + tableName.hashCode();
hash = 31 * hash + columnName.hashCode();
hash = 31 * hash + dataType.hashCode();
return hash;
}
/** {@inheritDoc} */
@Override public boolean equals(Object o) {
if (o instanceof OdbcColumnMeta) {
OdbcColumnMeta other = (OdbcColumnMeta) o;
return this == other || schemaName.equals(other.schemaName) && tableName.equals(other.tableName) &&
columnName.equals(other.columnName) && dataType.equals(other.dataType);
}
return false;
}
/**
* Write in a binary format.
*
* @param writer Binary writer.
*/
public void write(BinaryRawWriter writer) {
writer.writeString(schemaName);
writer.writeString(tableName);
writer.writeString(columnName);
byte typeId = BinaryUtils.typeByClass(dataType);
writer.writeByte(typeId);
}
}
| [
"vozerov@gridgain.com"
] | vozerov@gridgain.com |
3e733483fcb55f4bf07002353a23a84863ee7305 | 49b4cb79c910a17525b59d4b497a09fa28a9e3a8 | /parserValidCheck/src/main/java/com/ke/css/cimp/ffm/ffm8/Rule_Grp_ULD_Utilisation_Detail.java | 2576698abb2ed3c83970a726a9885189dcb5577f | [] | no_license | ganzijo/koreanair | a7d750b62cec2647bfb2bed4ca1bf8648d9a447d | e980fb11bc4b8defae62c9d88e5c70a659bef436 | refs/heads/master | 2021-04-26T22:04:17.478461 | 2018-03-06T05:59:32 | 2018-03-06T05:59:32 | 124,018,887 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,227 | java | package com.ke.css.cimp.ffm.ffm8;
/* -----------------------------------------------------------------------------
* Rule_Grp_ULD_Utilisation_Detail.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Fri Feb 23 10:57:44 KST 2018
*
* -----------------------------------------------------------------------------
*/
import java.util.ArrayList;
final public class Rule_Grp_ULD_Utilisation_Detail extends Rule
{
public Rule_Grp_ULD_Utilisation_Detail(String spelling, ArrayList<Rule> rules)
{
super(spelling, rules);
}
public Object accept(Visitor visitor)
{
return visitor.visit(this);
}
public static Rule_Grp_ULD_Utilisation_Detail parse(ParserContext context)
{
context.push("Grp_ULD_Utilisation_Detail");
boolean parsed = true;
int s0 = context.index;
ParserAlternative a0 = new ParserAlternative(s0);
ArrayList<ParserAlternative> as1 = new ArrayList<ParserAlternative>();
parsed = false;
{
int s1 = context.index;
ParserAlternative a1 = new ParserAlternative(s1);
parsed = true;
if (parsed)
{
boolean f1 = true;
int c1 = 0;
for (int i1 = 0; i1 < 1 && f1; i1++)
{
int g1 = context.index;
ArrayList<ParserAlternative> as2 = new ArrayList<ParserAlternative>();
parsed = false;
{
int s2 = context.index;
ParserAlternative a2 = new ParserAlternative(s2);
parsed = true;
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_Sep_Slant.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_ULD_VOLUME_AVAILABLE_CODE.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
boolean f2 = true;
int c2 = 0;
for (int i2 = 0; i2 < 1 && f2; i2++)
{
Rule rule = Rule_Sep_CRLF.parse(context);
if ((f2 = rule != null))
{
a2.add(rule, context.index);
c2++;
}
}
parsed = c2 == 1;
}
if (parsed)
{
as2.add(a2);
}
context.index = s2;
}
ParserAlternative b = ParserAlternative.getBest(as2);
parsed = b != null;
if (parsed)
{
a1.add(b.rules, b.end);
context.index = b.end;
}
f1 = context.index > g1;
if (parsed) c1++;
}
parsed = c1 == 1;
}
if (parsed)
{
as1.add(a1);
}
context.index = s1;
}
ParserAlternative b = ParserAlternative.getBest(as1);
parsed = b != null;
if (parsed)
{
a0.add(b.rules, b.end);
context.index = b.end;
}
Rule rule = null;
if (parsed)
{
rule = new Rule_Grp_ULD_Utilisation_Detail(context.text.substring(a0.start, a0.end), a0.rules);
}
else
{
context.index = s0;
}
context.pop("Grp_ULD_Utilisation_Detail", parsed);
return (Rule_Grp_ULD_Utilisation_Detail)rule;
}
}
/* -----------------------------------------------------------------------------
* eof
* -----------------------------------------------------------------------------
*/
| [
"wrjo@wrjo-PC"
] | wrjo@wrjo-PC |
34bdc10107cd530cb42c6141c5c04091a0b67558 | 46786b383a16fff9c5d57b6b197b905e56a40dba | /xcloud/xcloud-vijava/src/main/java/com/vmware/vim25/StorageDrsVmConfigInfo.java | 5beeede3c226e6f93293d302b76d19b1ef8ea123 | [] | no_license | yiguotang/x-cloud | feeb9c6288e01a45fca82648153238ed85d4069e | 2b255249961efb99d48a0557f7d74ce3586918fe | refs/heads/master | 2020-04-05T06:18:30.750373 | 2016-08-03T06:48:35 | 2016-08-03T06:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,867 | java | /*================================================================================
Copyright (c) 2013 Steve Jin. 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 VMware, 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 VMWARE, INC. 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.vmware.vim25;
/**
* @author Steve Jin (http://www.doublecloud.org)
* @version 5.1
*/
@SuppressWarnings("all")
public class StorageDrsVmConfigInfo extends DynamicData {
public ManagedObjectReference vm;
public Boolean enabled;
public String behavior;
public Boolean intraVmAffinity;
public VirtualDiskAntiAffinityRuleSpec intraVmAntiAffinity;
public ManagedObjectReference getVm() {
return this.vm;
}
public Boolean getEnabled() {
return this.enabled;
}
public String getBehavior() {
return this.behavior;
}
public Boolean getIntraVmAffinity() {
return this.intraVmAffinity;
}
public VirtualDiskAntiAffinityRuleSpec getIntraVmAntiAffinity() {
return this.intraVmAntiAffinity;
}
public void setVm(ManagedObjectReference vm) {
this.vm=vm;
}
public void setEnabled(Boolean enabled) {
this.enabled=enabled;
}
public void setBehavior(String behavior) {
this.behavior=behavior;
}
public void setIntraVmAffinity(Boolean intraVmAffinity) {
this.intraVmAffinity=intraVmAffinity;
}
public void setIntraVmAntiAffinity(VirtualDiskAntiAffinityRuleSpec intraVmAntiAffinity) {
this.intraVmAntiAffinity=intraVmAntiAffinity;
}
}
| [
"waddy87@gmail.com"
] | waddy87@gmail.com |
a0a6ed84c3a509c825e05689c3dc0b279e48d5a5 | d2eb8e8af7962b2080d83e25408739b94a8a5e66 | /src/main/java/com/belerweb/social/qq/connect/bean/PicUploadResult.java | 17c7aa2418c9b8c29d4f619c449829c3c50ee9c8 | [] | no_license | shiqiyue/social-sdk | ad88d18308dc9fb1c17624ada581b348b20d8c95 | 4c6805e00c939b7d32368690116abdc20381e48f | refs/heads/master | 2020-12-25T11:32:01.284597 | 2016-02-25T02:52:19 | 2016-02-25T02:52:19 | 52,768,375 | 2 | 1 | null | 2016-02-29T06:09:37 | 2016-02-29T06:09:37 | null | UTF-8 | Java | false | false | 2,010 | java | package com.belerweb.social.qq.connect.bean;
import org.json.JSONObject;
import com.belerweb.social.bean.JsonBean;
import com.belerweb.social.bean.Result;
public class PicUploadResult extends JsonBean {
public PicUploadResult() {}
private PicUploadResult(JSONObject jsonObject) {
super(jsonObject);
}
private String albumId;
private String lLoc;
private String sLoc;
private String largeUrl;
private String smallUrl;
private Integer width;
private Integer height;
public String getAlbumId() {
return albumId;
}
public void setAlbumId(String albumId) {
this.albumId = albumId;
}
public String getlLoc() {
return lLoc;
}
public void setlLoc(String lLoc) {
this.lLoc = lLoc;
}
public String getsLoc() {
return sLoc;
}
public void setsLoc(String sLoc) {
this.sLoc = sLoc;
}
public String getLargeUrl() {
return largeUrl;
}
public void setLargeUrl(String largeUrl) {
this.largeUrl = largeUrl;
}
public String getSmallUrl() {
return smallUrl;
}
public void setSmallUrl(String smallUrl) {
this.smallUrl = smallUrl;
}
public Integer getWidth() {
return width;
}
public void setWidth(Integer width) {
this.width = width;
}
public Integer getHeight() {
return height;
}
public void setHeight(Integer height) {
this.height = height;
}
public static PicUploadResult parse(JSONObject jsonObject) {
if (jsonObject == null) {
return null;
}
PicUploadResult obj = new PicUploadResult(jsonObject);
obj.albumId = Result.toString(jsonObject.opt("albumid"));
obj.lLoc = Result.toString(jsonObject.opt("lloc"));
obj.sLoc = Result.toString(jsonObject.opt("sloc"));
obj.largeUrl = Result.toString(jsonObject.opt("large_url"));
obj.smallUrl = Result.toString(jsonObject.opt("small_url"));
obj.width = Result.parseInteger(jsonObject.opt("width"));
obj.height = Result.parseInteger(jsonObject.opt("height"));
return obj;
}
}
| [
"belerweb@gmail.com"
] | belerweb@gmail.com |
e272c005f6f4a25b64897feea2c360eca3fc8caa | 028d6009f3beceba80316daa84b628496a210f8d | /uidesigner/com.nokia.sdt.sourcegen/src/com/nokia/sdt/sourcegen/doms/rss/impl/RssModelProxy.java | e1a2f3d1367a33d62508a0406c6c21be5f9f012b | [] | no_license | JamesLinus/oss.FCL.sftools.dev.ide.carbidecpp | fa50cafa69d3e317abf0db0f4e3e557150fd88b3 | 4420f338bc4e522c563f8899d81201857236a66a | refs/heads/master | 2020-12-30T16:45:28.474973 | 2010-10-20T16:19:31 | 2010-10-20T16:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,579 | java | /*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
/**
*
*/
package com.nokia.sdt.sourcegen.doms.rss.impl;
import com.nokia.sdt.datamodel.IDesignerDataModel;
import com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy;
import com.nokia.sdt.sourcegen.doms.rss.IRssProjectInfo;
import com.nokia.cpp.internal.api.utils.core.Check;
import com.nokia.sdt.workspace.IDesignerDataModelSpecifier;
import org.eclipse.core.runtime.IPath;
/**
*
*
*/
public class RssModelProxy implements IRssModelProxy {
private IRssProjectInfo projectInfo;
private IDesignerDataModelSpecifier specifier;
private IDesignerDataModel loadedModel;
protected String rssBaseName;
private boolean isCached;
private String rssFileName;
public RssModelProxy(IRssProjectInfo info, IDesignerDataModelSpecifier dmSpec, String rssBaseName) {
Check.checkArg(info);
Check.checkArg(dmSpec);
this.projectInfo = info;
this.specifier = dmSpec;
this.loadedModel = null;
this.isCached = false;
setRssBaseName(rssBaseName);
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return "RssModelProxy for " + specifier;
}
/* (non-Javadoc)
* @see com.nokia.sdt.utils.IDisposable#dispose()
*/
public synchronized void dispose() {
if (loadedModel != null) {
if (isCached)
loadedModel.dispose();
isCached = false;
loadedModel = null;
}
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#getProjectInfo()
*/
public IRssProjectInfo getProjectInfo() {
return projectInfo;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#getModelSpecifier()
*/
public IDesignerDataModelSpecifier getModelSpecifier() {
return specifier;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#setModelSpecifier(com.nokia.sdt.workspace.IDesignerDataModelSpecifier)
*/
public synchronized void setModelSpecifier(IDesignerDataModelSpecifier dmSpec) {
if (this.specifier != null && this.specifier.equals(dmSpec))
return;
this.specifier = dmSpec;
if (loadedModel != null) {
if (isCached)
loadedModel.dispose();
isCached = false;
loadedModel = null;
}
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#requestDataModel()
*/
public synchronized IDesignerDataModel requestDataModel() {
if (loadedModel == null) {
loadedModel = specifier.loadNoSourceGen().getModel();
isCached = true;
}
return loadedModel;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#setDataModel(com.nokia.sdt.datamodel.IDesignerDataModel)
*/
public synchronized void setDataModel(IDesignerDataModel dataModel) {
if (loadedModel == dataModel)
return;
if (loadedModel != null && isCached)
loadedModel.dispose();
loadedModel = dataModel;
isCached = false;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#isRootModel()
*/
public boolean isRootModel() {
return false;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#getDesignLocation()
*/
public synchronized IPath getDesignPath() {
return specifier.getPrimaryResource().getFullPath();
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#getRssBaseName()
*/
public String getRssBaseName() {
return rssBaseName;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#setRssBaseName(java.lang.String)
*/
public void setRssBaseName(String baseName) {
Check.checkArg(baseName);
this.rssBaseName = baseName;
rssFileName = isRootModel() ?
rssBaseName + ".rss" : //$NON-NLS-1$
rssBaseName + ".rssi"; //$NON-NLS-1$
}
public String getRssFileName() {
return rssFileName;
}
/* (non-Javadoc)
* @see com.nokia.sdt.sourcegen.doms.rss.IRssModelProxy#setRssFileName(java.lang.String)
*/
public void setRssFileName(String fileName) {
Check.checkArg(fileName);
this.rssFileName = fileName;
}
}
| [
"Deepak.Modgil@Nokia.com"
] | Deepak.Modgil@Nokia.com |
1961368463cd01313dae7b168dd0dff7baf2d5c5 | 6eb82e580b25d10321d8e625991abb30e3c7879b | /doma-gen/src/main/java/org/seasar/doma/extension/gen/DaoDescFactory.java | a9ee2fd3b68ee1f789ca57383add0a1020caf8a0 | [
"Apache-2.0"
] | permissive | teramura/doma-gen | ec93a3f76566b5e2d9186032977e748059a26883 | fef900d7ada1dd7620cca028e089acd26ae62dad | refs/heads/master | 2021-01-21T18:14:42.458279 | 2013-10-01T01:54:14 | 2013-10-01T01:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,308 | java | /*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
package org.seasar.doma.extension.gen;
import org.seasar.doma.extension.gen.internal.util.ClassUtil;
/**
* {@link DaoDesc} のファクトリです。
*
* @author taedium
*/
public class DaoDescFactory {
/** パッケージ名 */
protected final String packageName;
/** サフィックス */
protected final String suffix;
/** 設定クラス名 */
protected final String configClassName;
/** クラス記述のサポートクラス */
protected final ClassDescSupport classDescSupport = new ClassDescSupport();
/**
* インスタンスを構築します。
*
* @param packageName
* パッケージ名
* @param suffix
* サフィックス
* @param configClassName
* 設定クラス名、指定しない場合 {@code null}
*/
public DaoDescFactory(String packageName, String suffix,
String configClassName) {
if (suffix == null) {
throw new GenNullPointerException("suffix");
}
this.packageName = packageName;
this.suffix = suffix;
this.configClassName = configClassName;
}
/**
* Dao記述を作成します。
*
* @param entityDesc
* エンティティ記述
* @return Dao記述
*/
public DaoDesc createDaoDesc(EntityDesc entityDesc) {
DaoDesc daoDesc = new DaoDesc();
daoDesc.setPackageName(packageName);
daoDesc.setSimpleName(entityDesc.getSimpleName() + suffix);
if (configClassName != null) {
daoDesc.setConfigClassSimpleName(ClassUtil
.getSimpleName(configClassName));
}
daoDesc.setEntityDesc(entityDesc);
daoDesc.setTemplateName(Constants.DAO_TEMPLATE);
handleImportName(daoDesc, entityDesc);
return daoDesc;
}
/**
* インポート名を処理します。
*
* @param daoDesc
* Dao記述
* @param entityDesc
* エンティティ記述
*/
protected void handleImportName(DaoDesc daoDesc, EntityDesc entityDesc) {
classDescSupport.addImportName(daoDesc, ClassConstants.Dao);
classDescSupport.addImportName(daoDesc, ClassConstants.Insert);
classDescSupport.addImportName(daoDesc, ClassConstants.Update);
classDescSupport.addImportName(daoDesc, ClassConstants.Delete);
if (configClassName != null) {
classDescSupport.addImportName(daoDesc, configClassName);
}
classDescSupport.addImportName(daoDesc, entityDesc.getQualifiedName());
for (EntityPropertyDesc propertyDesc : entityDesc
.getIdEntityPropertyDescs()) {
classDescSupport.addImportName(daoDesc, propertyDesc
.getPropertyClassName());
classDescSupport.addImportName(daoDesc, ClassConstants.Select);
}
if (entityDesc.getIdEntityPropertyDescs().size() > 0) {
classDescSupport.addImportName(daoDesc, ClassConstants.Select);
for (EntityPropertyDesc propertyDesc : entityDesc
.getIdEntityPropertyDescs()) {
classDescSupport.addImportName(daoDesc, propertyDesc
.getPropertyClassName());
}
if (entityDesc.getVersionEntityPropertyDesc() != null) {
classDescSupport.addImportName(daoDesc, entityDesc
.getVersionEntityPropertyDesc().getPropertyClassName());
}
}
}
}
| [
"toshihiro.nakamura@gmail.com"
] | toshihiro.nakamura@gmail.com |
3622470f57cafd09c9ddd63eb0f35b301e04dee3 | 87207c5c1f7d1497fa6dddf42823edc7fd489929 | /src/com/pie/tlatoani/Tablist/Simple/SimpleTablist.java | def823b293dd6d7116e9d72c859157cffbdb32ae | [
"MIT"
] | permissive | Pikachu920/MundoSK | 2e0352cb1028f18d2333edd18aa9bee30335d332 | e80e88e77d17e301c73d3fcfcf5bdba6fb42e0a9 | refs/heads/master | 2021-01-22T09:54:38.362298 | 2016-12-03T17:06:31 | 2016-12-03T17:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,787 | java | package com.pie.tlatoani.Tablist.Simple;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.wrappers.*;
import com.pie.tlatoani.Mundo;
import com.pie.tlatoani.ProtocolLib.UtilPacketEvent;
import com.pie.tlatoani.Skin.Skin;
import com.pie.tlatoani.Tablist.Tablist;
import org.bukkit.entity.Player;
import java.lang.reflect.InvocationTargetException;
import java.nio.charset.Charset;
import java.util.*;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
/**
* Created by Tlatoani on 7/15/16.
*/
public class SimpleTablist {
private final Tablist tablist;
private final HashMap<String, String> displayNames = new HashMap<>();
private final HashMap<String, Integer> latencies = new HashMap<>();
private final HashMap<String, Skin> heads = new HashMap<>();
private final HashMap<String, Integer> scores = new HashMap<>();
public static final Charset UTF_8 = Charset.forName("UTF-8");
public SimpleTablist(Tablist tablist) {
this.tablist = tablist;
}
private void sendPacketToAll(String id, EnumWrappers.PlayerInfoAction action) {
sendPacket(id, action, tablist.players);
}
private void sendPacket(String id, EnumWrappers.PlayerInfoAction action, Collection<Player> players) {
int ping = latencies.get(id);
String displayName = displayNames.get(id);
WrappedChatComponent chatComponent = WrappedChatComponent.fromJson(Tablist.colorStringToJson(displayName));
UUID uuid = UUID.nameUUIDFromBytes(("MundoSKTablist::" + id).getBytes(UTF_8));
Skin icon = heads.get(id);
WrappedGameProfile gameProfile = new WrappedGameProfile(uuid, id + "-MSK");
if (action == EnumWrappers.PlayerInfoAction.ADD_PLAYER) {
if (icon == null) icon = Tablist.DEFAULT_SKIN_TEXTURE;
icon.retrieveSkinTextures(gameProfile.getProperties());
}
PlayerInfoData playerInfoData = new PlayerInfoData(gameProfile, ping, EnumWrappers.NativeGameMode.NOT_SET, chatComponent);
List<PlayerInfoData> playerInfoDatas = Arrays.asList(playerInfoData);
PacketContainer packetContainer = new PacketContainer(PacketType.Play.Server.PLAYER_INFO);
packetContainer.getPlayerInfoDataLists().writeSafely(0, playerInfoDatas);
packetContainer.getPlayerInfoAction().writeSafely(0, action);
players.forEach(new Consumer<Player>() {
@Override
public void accept(Player player) {
try {
UtilPacketEvent.protocolManager.sendServerPacket(player, packetContainer);
} catch (InvocationTargetException e) {
Mundo.reportException(this, e);
}
}
});
}
private void sendScorePacketToAll(String id) {
sendScorePacket(id, tablist.players);
}
private void sendScorePacket(String id, Collection<Player> players) {
if (!tablist.areScoresEnabled()) return;
PacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_SCORE);
packet.getStrings().writeSafely(0, id + "-MSK");
packet.getStrings().writeSafely(1, Tablist.OBJECTIVE_NAME);
packet.getIntegers().writeSafely(0, scores.get(id));
packet.getScoreboardActions().writeSafely(0, EnumWrappers.ScoreboardAction.CHANGE);
players.forEach(new Consumer<Player>() {
@Override
public void accept(Player player) {
try {
UtilPacketEvent.protocolManager.sendServerPacket(player, packet);
} catch (InvocationTargetException e) {
Mundo.reportException(this, e);
}
}
});
}
public void addPlayers(Collection<Player> players) {
heads.forEach(new BiConsumer<String, Skin>() {
@Override
public void accept(String s, Skin skin) {
sendPacket(s, EnumWrappers.PlayerInfoAction.ADD_PLAYER, players);
}
});
}
public void removePlayers(Collection<Player> players) {
heads.forEach(new BiConsumer<String, Skin>() {
@Override
public void accept(String s, Skin skin) {
sendPacket(s, EnumWrappers.PlayerInfoAction.REMOVE_PLAYER, players);
}
});
}
public void clear() {
String[] ids = displayNames.keySet().toArray(new String[0]);
for (int i = 0; i < ids.length; i++) {
deleteTab(ids[i]);
}
}
public boolean tabExists(String id) {
return id.length() <= 12 && displayNames.containsKey(id);
}
public void createTab(String id, String displayName, Integer ping, Skin head, Integer score) {
tablist.arrayTablist.setColumns(0);
if (id.length() <= 12 && !tabExists(id)) {
ping = Math.max(ping, 0);
ping = Math.min(ping, 5);
latencies.put(id, ping);
displayNames.put(id, displayName);
heads.put(id, head);
scores.put(id, score);
sendPacketToAll(id, EnumWrappers.PlayerInfoAction.ADD_PLAYER);
if (score != 0) sendScorePacketToAll(id);
}
}
public void deleteTab(String id) {
if (tabExists(id)) {
sendPacketToAll(id, EnumWrappers.PlayerInfoAction.REMOVE_PLAYER);
displayNames.remove(id);
latencies.remove(id);
heads.remove(id);
}
}
public String getDisplayName(String id) {
return displayNames.get(id);
}
public Integer getLatency(String id) {
return latencies.get(id);
}
public Skin getHead(String id) {
return heads.get(id);
}
public Integer getScore(String id) {
return scores.get(id);
}
public void setDisplayName(String id, String displayName) {
if (tabExists(id)) {
displayNames.put(id, displayName);
sendPacketToAll(id, EnumWrappers.PlayerInfoAction.UPDATE_DISPLAY_NAME);
}
}
public void setLatency(String id, Integer ping) {
if (tabExists(id)) {
latencies.put(id, ping);
sendPacketToAll(id, EnumWrappers.PlayerInfoAction.UPDATE_LATENCY);
}
}
public void setHead(String id, Skin icon) {
if (tabExists(id)) {
sendPacketToAll(id, EnumWrappers.PlayerInfoAction.REMOVE_PLAYER);
heads.put(id, icon);
sendPacketToAll(id, EnumWrappers.PlayerInfoAction.ADD_PLAYER);
}
}
public void setScore(String id, Integer ping) {
if (tabExists(id)) {
scores.put(id, ping);
sendScorePacketToAll(id);
}
}
}
| [
"dannymittal@gmail.com"
] | dannymittal@gmail.com |
634aaae3069f1ca155d874b11c90e22192196129 | 85eb470c9b11ca969a1b6371c47c4e2df45b195b | /src/main/java/ioreaderclasspath/countries/Country.java | a38dccbaec94b6efd25ef0dad428307be4150445 | [] | no_license | csgrabt/training-solutions | b694332b856f17c237831123bd2c6504a18d5cb4 | 5e5fc887dc3d72aa673f8df01ba3f1d097f37176 | refs/heads/master | 2023-08-15T00:29:28.460172 | 2021-10-04T08:36:23 | 2021-10-04T08:36:23 | 308,076,903 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 393 | java | package ioreaderclasspath.countries;
public class Country {
private String name;
private int borderCountries;
public Country(String name, int borderCountries) {
this.name = name;
this.borderCountries = borderCountries;
}
public int getBorderCountries() {
return borderCountries;
}
public String getName() {
return name;
}
}
| [
"gy.cseko@outlook.com"
] | gy.cseko@outlook.com |
9df608f66b4a73672c522c54abd8c3e9d21ccaab | dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9 | /data_defect4j/preprossed_method_corpus/Math/64/org/apache/commons/math/distribution/AbstractIntegerDistribution_cumulativeProbability_87.java | 6276f62d38bfcd1abbb38f93a5d3f69ae4343758 | [] | no_license | hvdthong/NetML | dca6cf4d34c5799b400d718e0a6cd2e0b167297d | 9bb103da21327912e5a29cbf9be9ff4d058731a5 | refs/heads/master | 2021-06-30T15:03:52.618255 | 2020-10-07T01:58:48 | 2020-10-07T01:58:48 | 150,383,588 | 1 | 1 | null | 2018-09-26T07:08:45 | 2018-09-26T07:08:44 | null | UTF-8 | Java | false | false | 1,148 | java |
org apach common math distribut
base integ valu discret distribut default
implement provid method vari
distribut distribut
version revis date
abstract integ distribut abstractintegerdistribut abstract distribut abstractdistribut
random variabl valu distribut
distribut method return
param inclus lower bound
param inclus upper bound
probabl random variabl distribut
code code code code
includ endpoint
math except mathexcept cumul probabl
comput due converg numer error
illeg argument except illegalargumentexcept code code
overrid
cumul probabl cumulativeprob
math except mathexcept
math runtim except mathruntimeexcept creat illeg argument except createillegalargumentexcept
local format localizedformat lower endpoint upper endpoint
math floor
cumul probabl cumulativeprob math floor
math floor count mass
mathemat integ
cumul probabl cumulativeprob math floor
math floor
| [
"hvdthong@gmail.com"
] | hvdthong@gmail.com |
0d2056321a59bcb23f7b3747ff6fb6dae1e725ec | 42337d23e155cc9f61982386aa4917ef37a9bca5 | /src/main/java/com/game/map/bean/ConcreteMap.java | 7eafe85868ab4c27745d55b53b7da0bbfeccf29d | [] | 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 | 1,696 | java | package com.game.map.bean;
import com.game.npc.bean.ConcreteMonster;
import com.game.role.bean.ConcreteRole;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @ClassName ConcreteMap
* @Description 地图实体类
* @Author DELL
* @Date 2019/5/3015:09
* @Version 1.0
*/
public class ConcreteMap {
/**
* 唯一id
*/
private int id;
/**
* 地图名
*/
private String name;
/**
* 怪兽的引用
*/
private Map<String, ConcreteMonster> monsterMap = new HashMap<>();
/**
* 角色列表
*/
private List<ConcreteRole> roleList = new ArrayList<>();
public void setMonsterMap(Map<String, ConcreteMonster> monsterMap) {
this.monsterMap = monsterMap;
}
public void setRoleList(List<ConcreteRole> roleList) {
this.roleList = roleList;
}
public List<ConcreteRole> getRoleList() {
return roleList;
}
public Map<String, ConcreteMonster> getMonsterMap() {
return monsterMap;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return "ConcreteMap{" +
"id=" + id +
", name='" + name + '\'' +
'}';
}
public ConcreteMap(int id,String name){
this.id = id;
this.name = name;
}
public ConcreteMap(){}
@Override
public int hashCode() {
return super.hashCode();
}
}
| [
"1025741620@qq.com"
] | 1025741620@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.