query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
/ renamed from: b | public final boolean mo118722b() {
MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d("G4DA6F33B8A1C9F16C522B96DDCD1"));
if (a != null) {
return a.mo57253a();
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: b | public final void mo118720b(String str, String str2) {
C32569u.m150519b(str, C6969H.m41409d("G6486D818BA228328F506B94C"));
mo118714a(str);
mo118719b(str2);
MqttMonitor.f97502b.mo118674b();
FlowControlHelper.f97498a.mo118670a();
MQTTTopic<EventMessage> oVar = f97550g;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: a | public final void mo118713a(EventMessage abVar) {
C32569u.m150519b(abVar, C6969H.m41409d("G6C95D014AB1DAE3AF50F974D"));
if (!m134904a(abVar, C6969H.m41409d("G6492C10E"))) {
VideoXOnlineLog abVar2 = VideoXOnlineLog.f101073b;
String abVar3 = abVar.toString();
C32569u.m1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: c | public final void mo118723c(String str) {
EventMessage abVar;
C32569u.m150519b(str, C6969H.m41409d("G7A97C737AC37"));
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));
} catch (Exception e) {
VideoXOnlineLog.f101... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",... | 0.0 | -1 |
/ renamed from: a | public final void mo118716a(List<String> list) {
EventMessage abVar;
C32569u.m150519b(list, C6969H.m41409d("G658AC60E"));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | public final void mo118721b(List<String> list) {
EventMessage abVar;
C32569u.m150519b(list, C6969H.m41409d("G658AC60E"));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: a | public static /* synthetic */ void m134903a(MqttHelper fVar, List list, boolean z, int i, Object obj) {
if ((i & 2) != 0) {
z = true;
}
fVar.mo118717a(list, z);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final void mo118717a(List<String> list, boolean z) {
EventMessage abVar;
C32569u.m150519b(list, C6969H.m41409d("G658AC60E"));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private final boolean m134904a(EventMessage abVar, String str) {
Drama drama;
if (abVar.f96689m != null) {
String valueOf = String.valueOf(abVar.f96689m.longValue());
Theater a = StaticProperty.f99549a.mo120385a();
if (!TextUtils.equals(valueOf, (a == null || (drama =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | private final void m134907b(EventMessage abVar) {
C28082z zVar = abVar.f96686j;
Integer num = abVar.f96684h;
int value = EventCode.ApplyForConnect.getValue();
if (num != null && num.intValue() == value) {
MqttBus a = MqttBus.f97541a.mo118711a();
ApplyForConnectEve... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
public Response doLogin(UserDomain userDomain); | public UsersModel getUserById(String userEmail); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean doLogin(UserDTO loginUser);",
"public void login(User user);",
"void login(String user, String password);",
"boolean userLogin(UserDTO user) throws UserException, Exception;",
"private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public User doAuthentic... | [
"0.7217326",
"0.7074495",
"0.69752",
"0.6949444",
"0.68376476",
"0.68352264",
"0.6834367",
"0.68289125",
"0.6827361",
"0.6676965",
"0.6587789",
"0.65599215",
"0.6559292",
"0.6538956",
"0.6490836",
"0.6426163",
"0.6366456",
"0.6361379",
"0.6341448",
"0.6326682",
"0.632571",
... | 0.0 | -1 |
Return the enclosing view | @Override
public View getView() {
return mView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"View getActiveView();",
"public abstract View getMainDialogContainer();",
"Window getParent();",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public View getView() {\n\t\treturn view;\n\t}",
"protected ViewGroup getDecorView() {\n if (getContext() instanceof Activity) {\n ... | [
"0.692387",
"0.67280495",
"0.6691033",
"0.66483504",
"0.65470654",
"0.65199304",
"0.64428544",
"0.64363265",
"0.6386162",
"0.63677627",
"0.6364884",
"0.63336897",
"0.6305493",
"0.62874436",
"0.6276591",
"0.62615764",
"0.6246509",
"0.6242639",
"0.621065",
"0.61647177",
"0.6152... | 0.5664074 | 65 |
To handle the back press | @Override
public boolean onBackPreseed() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }",
"@Override\n pu... | [
"0.86009663",
"0.85492903",
"0.85341763",
"0.8529914",
"0.85047936",
"0.8490572",
"0.84406495",
"0.843962",
"0.84213173",
"0.84176886",
"0.840385",
"0.84013295",
"0.83889157",
"0.83889157",
"0.83889157",
"0.83889157",
"0.8388053",
"0.83811283",
"0.8371261",
"0.8367858",
"0.83... | 0.0 | -1 |
Create the view from the id provided | @Override
public void init(LayoutInflater inflater, ViewGroup parent) {
mView = inflater.inflate(R.layout.project_task_layout, parent, false);
mTaskList = (ExpandableListView) mView.findViewById(R.id.task_list);
// mTaskList.setHasFixedSize(true);
// final LinearLayoutManager mLayoutMa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"View createView();",
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\treturn (View)t;\n\t}",
"ViewElement createViewElement();",
"@GetMapping(\"/viewItem/{id}\")\n\tpublic ModelAndView viewItemById(@PathVariable(val... | [
"0.6843761",
"0.66569984",
"0.6180716",
"0.61533594",
"0.6120605",
"0.6119012",
"0.6105365",
"0.60350835",
"0.6013716",
"0.59523714",
"0.59439844",
"0.5875928",
"0.58672816",
"0.5842909",
"0.58334374",
"0.58196",
"0.58059424",
"0.58056754",
"0.57778853",
"0.57746065",
"0.5762... | 0.0 | -1 |
We call collapseGroupWithAnimation(int) and expandGroupWithAnimation(int) to animate group expansion/collapse. | @Override
public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {
if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return parent.expandGroup(groupPosition, true);
}else
return tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n ... | [
"0.74453574",
"0.7340666",
"0.7318803",
"0.73101187",
"0.73101187",
"0.73101187",
"0.716131",
"0.7080038",
"0.6998765",
"0.6992646",
"0.6972588",
"0.6972588",
"0.69712025",
"0.696059",
"0.6916574",
"0.6870426",
"0.66057765",
"0.658941",
"0.6515665",
"0.6117766",
"0.6075453",
... | 0.58033085 | 28 |
Creates the default factory implementation. | public static ScribbleFactory init()
{
try {
ScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.scribble.org/Scribble");
if (theScribbleFactory != null) {
return theScribbleFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n\t\tsuper();\n\t}",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"private ConcreteFactory() {}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstruc... | [
"0.77731436",
"0.76486766",
"0.74667984",
"0.7430188",
"0.7425205",
"0.7364157",
"0.72402287",
"0.7239365",
"0.71722776",
"0.7160405",
"0.71596897",
"0.7150511",
"0.71012115",
"0.7100998",
"0.7089295",
"0.70861953",
"0.7084425",
"0.7056558",
"0.70475817",
"0.70462054",
"0.703... | 0.0 | -1 |
Creates an instance of the factory. | public ScribbleFactoryImpl()
{
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n\t\tsuper();\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public ObjectifyFactory factory() {\n return ofy().factory();\n ... | [
"0.73933536",
"0.7212417",
"0.72005916",
"0.6975247",
"0.6974846",
"0.68345267",
"0.67098427",
"0.66718435",
"0.66718435",
"0.66718435",
"0.66642797",
"0.6616401",
"0.6614854",
"0.66146886",
"0.6589288",
"0.6569264",
"0.6534342",
"0.65325534",
"0.6525314",
"0.6516507",
"0.647... | 0.0 | -1 |
/ Constructor for class Truck | public Truck(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TruckManager() {\r\n super(Truck.TRUCKS);\r\n }",
"TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n ... | [
"0.8277383",
"0.73401386",
"0.7328027",
"0.7149399",
"0.7116663",
"0.6705807",
"0.66559094",
"0.6598367",
"0.6577745",
"0.6572513",
"0.65111893",
"0.64976454",
"0.6474727",
"0.641528",
"0.63726366",
"0.63210714",
"0.6221605",
"0.618675",
"0.6171057",
"0.61417556",
"0.61413616... | 0.8803942 | 0 |
/ constructor for special form of class Truck | public Truck(String color, int year, String make, boolean cargo){
super (color, year, make);
this.cargo = cargo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Truck(){\n }",
"public TruckManager() {\r\n super(Truck.TRUCKS);\r\n }",
"public OrdinaryTruck() {\n\t\tsuper();\n\t\tmaxCapacity = 1000;\n\t}",
"public OrdinaryTruck(int itemQuantity)\n {\n this.itemQuantity = itemQuantity;\n }",
"public FridgeTruck(){\n\t\tsuper();\n\t\tthis.ma... | [
"0.8411069",
"0.7952609",
"0.7328497",
"0.71356344",
"0.6880645",
"0.66856444",
"0.649857",
"0.6487011",
"0.6358761",
"0.63465506",
"0.63351816",
"0.6328959",
"0.6324241",
"0.6285498",
"0.62045157",
"0.6187191",
"0.618497",
"0.6121766",
"0.6120872",
"0.61188",
"0.6111492",
... | 0.6671552 | 6 |
/ Method change smogCheck | public void smogCheck(){
if(!cargo){
System.out.println("Hey ya don't got any cargo, might as well get your smog checked.");
this.cargo = true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tint check_sweetness() {\n\t\treturn 30;\r\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\r\n\tint check_sweetness() {\n\t\treturn 10;\r\n\t}",
"void check();",
"void check();",
"public void checkGame() {\n\n\t}",
"pro... | [
"0.6277883",
"0.6206995",
"0.6206995",
"0.60212404",
"0.585943",
"0.585943",
"0.5829349",
"0.5755561",
"0.57472956",
"0.5709172",
"0.56437624",
"0.5581131",
"0.55699664",
"0.55570704",
"0.5535423",
"0.5519058",
"0.5512952",
"0.5507142",
"0.5482802",
"0.54724836",
"0.54140145"... | 0.62022614 | 3 |
second example, compute some values by hand (these figures were not used in the end) | public static void main2(String[] args)
{
String designString = "design23e";
double coolingRate = 1.0;
Design design = new Design(designString, coolingRate, "distance-M1", true, "Unified");
System.out.println("FIGURE 1 160nt");
double distance = (160 * (1.0 / 3.0) * 1.8 * 1.8) * 1E-18;
getStats(distance,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double compute(double value);",
"protected abstract SoyValue compute();",
"public abstract double calcular();",
"double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}",
"double getValue();",
"double... | [
"0.6924631",
"0.65708435",
"0.65693635",
"0.6541848",
"0.6406094",
"0.6406094",
"0.6406094",
"0.6376421",
"0.6326674",
"0.62771416",
"0.62075275",
"0.61338437",
"0.6131677",
"0.6077435",
"0.6068774",
"0.6065256",
"0.6046748",
"0.60379",
"0.60311145",
"0.60028917",
"0.59503937... | 0.0 | -1 |
compute the transition for an simple state in the dimer (polymorphic tile) | public static void main3(String[] args)
{
String designString = "design23e";
double rate = 1.0;
Design design = new Design(designString, rate, "distance-M1", true, "");
State state = Util.generateInitialState(design);
RatesGenerator ratesGenerator = new RatesGenerator(design);
state.addFullStaple(4 * 16)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Etat transition();",
"protected abstract int newState();",
"public abstract State getStateAtTime(double t);",
"void nextState();",
"public State getState(Action action) { \n\t\tState newstate = new State(getTractor(), getK(), getMax(), getRows(), getColumns());\n\t\tfor (int i = 0; i < ge... | [
"0.68517363",
"0.6085185",
"0.60441333",
"0.5995327",
"0.5993048",
"0.5936695",
"0.59364057",
"0.5932179",
"0.5916837",
"0.5916837",
"0.59090406",
"0.59090406",
"0.59090406",
"0.59090406",
"0.59090406",
"0.59090406",
"0.5904038",
"0.59014034",
"0.58965755",
"0.589257",
"0.588... | 0.0 | -1 |
/ / Metodos / Llama al evento de tipo get del formulario marca | public void doGet( )
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setD... | [
"0.5894904",
"0.5791245",
"0.56686026",
"0.56421083",
"0.5601277",
"0.5596243",
"0.55588716",
"0.5439771",
"0.539379",
"0.531749",
"0.5316813",
"0.53153753",
"0.53049296",
"0.5277661",
"0.5270883",
"0.52507484",
"0.5246413",
"0.5245497",
"0.52416575",
"0.523966",
"0.5191714",... | 0.0 | -1 |
Llama al evento de tipo post del formulario marca | public void doPost( )
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tvoid postarComentario() {\n\n\t}",
"public void post(Object event);",
"public postevent(int flag) {\n byGetOrPost = flag;\n\n\n\n\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\n protected void validateSave(Fornecedor post) {\n\n }",
"@Override\n protected void ... | [
"0.57423306",
"0.57258934",
"0.56597126",
"0.56238604",
"0.5580403",
"0.55732363",
"0.55540663",
"0.55253345",
"0.5501802",
"0.5384649",
"0.5298116",
"0.52882504",
"0.5259346",
"0.5259346",
"0.5227408",
"0.5182309",
"0.5178425",
"0.5165092",
"0.51641726",
"0.5110971",
"0.5077... | 0.48343214 | 50 |
Fill board with shuffled integers in range from 0 to 15 | public void fillBoard() {
List<Integer> fifteen = ArrayUtils.intArrayToList(SOLVED_BOARD);
Collections.shuffle(fifteen, this.random);
this.emptyTileIndex = fifteen.indexOf(0);
this.matrix = fifteen.stream().mapToInt(i -> i).toArray();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n b... | [
"0.70091623",
"0.6903006",
"0.6705865",
"0.66567796",
"0.6637196",
"0.6617042",
"0.6469332",
"0.64327085",
"0.6424341",
"0.635816",
"0.6350199",
"0.63458294",
"0.62801015",
"0.6261886",
"0.6244292",
"0.6236708",
"0.62349576",
"0.6221823",
"0.620164",
"0.6156918",
"0.61534643"... | 0.77100325 | 0 |
Perform a move of the empty tile in give direction | public boolean move(final Direction direction) {
if (analyser.canMove(this.matrix, this.emptyTileIndex, direction)) {
this.matrix = analyser.move(this.matrix, this.emptyTileIndex, direction);
this.emptyTileIndex += direction.getIndexMod();
return true;
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void move(Tile t);",
"private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\... | [
"0.7219207",
"0.6953276",
"0.69016576",
"0.6848261",
"0.68453413",
"0.6833477",
"0.6817804",
"0.6716043",
"0.66781",
"0.6629178",
"0.660351",
"0.6589621",
"0.6569732",
"0.6540164",
"0.6532495",
"0.6522173",
"0.65061325",
"0.65059185",
"0.65035504",
"0.64962435",
"0.64926434",... | 0.6834614 | 5 |
Set new matrix and find empty tile inside it | public void setMatrix(int[] matrix) {
this.matrix = matrix;
this.emptyTileIndex = indexOfEmptyTile();
if (this.emptyTileIndex == -1) throw new IllegalStateException("Board does not contains empty tile!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}",
"private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0;... | [
"0.6784904",
"0.67597127",
"0.67251986",
"0.6589316",
"0.65031075",
"0.63819623",
"0.63785225",
"0.6365819",
"0.6332061",
"0.6298583",
"0.6291134",
"0.6289485",
"0.6277108",
"0.6272058",
"0.6251518",
"0.620605",
"0.6187948",
"0.618108",
"0.61806417",
"0.6175873",
"0.61490303"... | 0.60441476 | 26 |
draw the track(moving background) | private void drawTrack(Canvas canvas){
if(trackEnabled){
progressPaint.setShader(null);
progressPaint.setColor(mTrackColor);
if(fillEnabled) {
progressPaint.setStyle(Paint.Style.FILL);
initTrack(canvas, true);
}else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}",
"@Override public void paintTrack(Graphics g) {\n\n g.translate(trackRect.x, trackRect.y);\n\n int trackLeft = 0;\n int trackTop = 0;\n int trackRight;\n int t... | [
"0.69739574",
"0.693951",
"0.69002724",
"0.68107986",
"0.6784162",
"0.6670168",
"0.66681045",
"0.66194737",
"0.6582129",
"0.6580056",
"0.6575437",
"0.6573252",
"0.65695924",
"0.6558854",
"0.6510837",
"0.648115",
"0.6419279",
"0.6416445",
"0.64157474",
"0.641563",
"0.6394111",... | 0.73294514 | 0 |
draw the each scale zone, you can set round corner fot it | private void drawScaleZones(boolean isGraduated){
Log.e(TAG, "init======isGraduated>>>>>"+isGraduated );
if(isGraduated){
if(pathEffect == null){
pathEffect = new PathDashPathEffect(mScaleZonePath, mScaleZonePadding,0, PathDashPathEffect.Style.ROTATE);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawMap(ObservableList<Node> root, int scale) {\n\t\tfor (int x=0; x<dimensions; x++) {\n\t\t\tfor (int y=0; y<dimensions; y++) {\n\t\t\t\tRectangle rect = new Rectangle(x*scale, y*scale, scale, scale);\n\t\t\t\trect.setStroke(Color.BLACK);\n\t\t\t\trect.setFill(Color.LIGHTSKYBLUE);\n\t\t\t\troot.add(r... | [
"0.6544824",
"0.63105804",
"0.6241624",
"0.62397915",
"0.62319064",
"0.6193354",
"0.61565804",
"0.6102918",
"0.6069486",
"0.6021289",
"0.59495574",
"0.5902132",
"0.58883804",
"0.5871487",
"0.58654463",
"0.586238",
"0.5830758",
"0.58268696",
"0.58222395",
"0.5822085",
"0.58186... | 0.65663916 | 0 |
init for track view | private void initTrack(Canvas canvas, boolean isFilled){
if(circleBroken){
canvas.drawArc(mOval, 135, 270, isFilled, progressPaint);
}else {
canvas.drawArc(mOval, 90, 360, isFilled, progressPaint);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initView() {\n\t\t//buttonPlayPause = (ImageButton)getView().findViewById(R.id.ButtonTestPlayPause);\n\t\t//buttonPlayPause.setOnClickListener(this);\n\t\t\n\t\t//seekBarProgress = (SeekBar)getView().findViewById(R.id.SeekBarTestPlay);\t\n\t\t//seekBarProgress.setMax(99); // It means 100% .0-99\n\t\t/... | [
"0.72747463",
"0.72156626",
"0.71772975",
"0.6987803",
"0.6965167",
"0.68383306",
"0.680466",
"0.6799123",
"0.6794681",
"0.6794681",
"0.6780351",
"0.6780351",
"0.6756967",
"0.67554194",
"0.6748526",
"0.6730795",
"0.67155004",
"0.67155004",
"0.66888577",
"0.6682062",
"0.668206... | 0.0 | -1 |
draw the progress text | private void drawProgressText(Canvas canvas){
if(textVisibility){
mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mTextPaint.setStyle(Paint.Style.FILL);
mTextPaint.setTextSize(mProgressTextSize);
mTextPaint.setColor(mProgressTextColor);
mTextPaint.setT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}",
"@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Co... | [
"0.73363537",
"0.65666336",
"0.6543222",
"0.6542439",
"0.6492756",
"0.6466985",
"0.64575225",
"0.6368956",
"0.6351277",
"0.6329414",
"0.62877274",
"0.627101",
"0.6257851",
"0.61865205",
"0.6161535",
"0.61521965",
"0.6147802",
"0.6128749",
"0.6128541",
"0.6087086",
"0.6085782"... | 0.8053152 | 0 |
set progress animate type | public void setAnimateType(@AnimateType int type){
this.mAnimateType = type;
setObjectAnimatorType(type);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setProgress(float progress);",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setProgress(int value);",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate... | [
"0.7034664",
"0.7024269",
"0.7024269",
"0.68545854",
"0.6795917",
"0.66856027",
"0.6242665",
"0.61909497",
"0.61570746",
"0.61537546",
"0.60824764",
"0.604561",
"0.60179853",
"0.59951776",
"0.5988551",
"0.598582",
"0.596461",
"0.595703",
"0.59510875",
"0.5938947",
"0.59388274... | 0.7514004 | 0 |
set object animation type by received | private void setObjectAnimatorType(int animatorType){
Log.e(TAG, "AnimatorType>>>>>>"+animatorType );
switch (animatorType){
case ACCELERATE_DECELERATE_INTERPOLATOR:
if(mInterpolator!=null){
mInterpolator = null;
}
mInterp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAnimateType(@AnimateType int type){\n this.mAnimateType = type;\n setObjectAnimatorType(type);\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"public static Animation createBoxAnimation(String ty... | [
"0.7135162",
"0.6761938",
"0.61580426",
"0.6044573",
"0.60366035",
"0.5851511",
"0.5717695",
"0.57170945",
"0.5655668",
"0.56528354",
"0.56336385",
"0.56336385",
"0.56286335",
"0.55980724",
"0.5565562",
"0.5562612",
"0.5535784",
"0.5535784",
"0.5529189",
"0.5511295",
"0.55063... | 0.6281159 | 2 |
set the width of progress stroke | public void setTrackWidth(int width){
this.mTrackWidth = Utils.dp2px(mContext, width);
progressPaint.setStrokeWidth(width);
updateTheTrack();
refreshTheView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;",
"void setStrokeWidth(float strokeWidth) {\n/* 180 */ this.mStrokeWidth = strokeWidth;\n/* */ }",
"public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n ... | [
"0.70682377",
"0.7031226",
"0.69524354",
"0.69476116",
"0.686313",
"0.6825032",
"0.67488855",
"0.6745912",
"0.67084193",
"0.6705954",
"0.6671186",
"0.6659248",
"0.66198367",
"0.658665",
"0.6579754",
"0.654102",
"0.652579",
"0.65062094",
"0.6478818",
"0.6462512",
"0.6450724",
... | 0.7002257 | 2 |
set text size for inner text | public void setProgressTextSize(int size){
mProgressTextSize = Utils.sp2px(mContext, size);
refreshTheView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }",
"public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n ... | [
"0.76741123",
"0.7644059",
"0.7318365",
"0.7283502",
"0.7218772",
"0.70888066",
"0.6950938",
"0.69442236",
"0.6869883",
"0.68274844",
"0.66793734",
"0.66773725",
"0.66455543",
"0.66248417",
"0.6588465",
"0.651411",
"0.65095556",
"0.6465292",
"0.64559764",
"0.6424379",
"0.6406... | 0.67881835 | 10 |
set text color for progress text | public void setProgressTextColor(@ColorInt int textColor){
this.mProgressTextColor = textColor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextColor(String textColor);",
"Color(String text) {\n this.text = text;\n }",
"public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n ... | [
"0.72146875",
"0.70883447",
"0.6881628",
"0.6827589",
"0.6800282",
"0.67320293",
"0.66490287",
"0.6648284",
"0.6638843",
"0.6548845",
"0.6536068",
"0.6527263",
"0.6410082",
"0.6395441",
"0.6299337",
"0.62778693",
"0.623743",
"0.6216734",
"0.6215424",
"0.6141603",
"0.6126632",... | 0.8252715 | 0 |
set duration of progress moving | public void setProgressDuration(int duration){
this.mProgressDuration = duration;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDuration(int duration);",
"public void setDuration(long duration) {\n\t\tthis.startDuration = System.currentTimeMillis();\n\t\tthis.endDuration = startDuration + duration * 1000;\n\t}",
"public void setDuration(int val){this.duration = val;}",
"public void setDuration( Long duration );",
"void setD... | [
"0.7020874",
"0.65978247",
"0.6555716",
"0.65414184",
"0.6518583",
"0.64195406",
"0.64162225",
"0.6307648",
"0.6274222",
"0.6262638",
"0.6255615",
"0.625399",
"0.625399",
"0.62287587",
"0.61979",
"0.61841905",
"0.6181827",
"0.6181411",
"0.6166775",
"0.61651015",
"0.61651015",... | 0.73484457 | 0 |
set track for progress | public void setTrackEnabled(boolean trackAble){
this.trackEnabled = trackAble;
refreshTheView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setProgress(int value);",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String... | [
"0.7283603",
"0.7283603",
"0.7112823",
"0.7090415",
"0.7070828",
"0.70295185",
"0.6984851",
"0.6967184",
"0.685854",
"0.6709091",
"0.6689617",
"0.66843355",
"0.66787976",
"0.661263",
"0.6607481",
"0.6592745",
"0.6585865",
"0.6568179",
"0.65641934",
"0.6531059",
"0.647439",
... | 0.0 | -1 |
set track color for progress background | public void setTrackColor(@ColorInt int color){
this.mTrackColor = color;
refreshTheView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean bo) {\n int r = sbrRed.getProgress();\n int g = sbrGreen.getProgress();\n int b = sbrBlue.getProgress();\n int a = sbrAlpha.getProgress();\n\n int color = Color.argb(a,r,g,b);\n vieColors.setBackg... | [
"0.68639076",
"0.6810637",
"0.64383113",
"0.6437945",
"0.6289318",
"0.6148773",
"0.6102508",
"0.61007845",
"0.60642356",
"0.5971697",
"0.5966475",
"0.5939258",
"0.5931743",
"0.59136575",
"0.59126335",
"0.5882328",
"0.58715",
"0.5814083",
"0.5806093",
"0.5783995",
"0.5719715",... | 0.703211 | 0 |
set content for progress inner space | public void setFillEnabled(boolean fillEnabled){
this.fillEnabled = fillEnabled;
refreshTheView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\... | [
"0.630418",
"0.61335444",
"0.59622216",
"0.58997667",
"0.5899581",
"0.5880344",
"0.587012",
"0.58583635",
"0.57424104",
"0.57221943",
"0.5708548",
"0.5704266",
"0.5698596",
"0.5698596",
"0.5665638",
"0.5662186",
"0.5659828",
"0.5628151",
"0.5626633",
"0.561311",
"0.5607361",
... | 0.0 | -1 |
set the broken circle for progress | public void setCircleBroken(boolean isBroken){
this.circleBroken = isBroken;
refreshTheView();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initProgressDrawing(Canvas canvas, boolean isFilled){\n\n if(circleBroken){\n Log.e(TAG, \"circleBroken>>>>>>\"+\"yes\" );\n canvas.drawArc(mOval, 135 + mStartProgress*2.7f, (moveProgress - mStartProgress) * 2.7f, isFilled, progressPaint);\n\n }else {\n L... | [
"0.67704713",
"0.628519",
"0.6156074",
"0.6080812",
"0.5902003",
"0.5865063",
"0.5805693",
"0.57845503",
"0.57845503",
"0.57720774",
"0.57634014",
"0.5713221",
"0.5684486",
"0.56350344",
"0.56175035",
"0.5598671",
"0.5595334",
"0.5566441",
"0.55550027",
"0.55507004",
"0.55383... | 0.685641 | 0 |
set the scale zone type for progress view | public void setGraduatedEnabled(final boolean isGraduated){
this.isGraduated = isGraduated;
post(new Runnable() {
@Override
public void run() {
drawScaleZones(isGraduated);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setMediaAssetScaleTypeValue(int value) {\n mediaAssetScaleType_ = value;\n }",
"public void setSizeType(int type) {\n\t\tif (sizeType == type)\n\t\t\treturn;\n\t\tif (type != LMOptions.SMALL && type != LMOptions.LARGE && type != LMOptions.VARY)\n\t\t\treturn;\n\t\t\n\t\tdouble scale = parentLa... | [
"0.61063254",
"0.6065834",
"0.5868168",
"0.5804126",
"0.5748562",
"0.56724703",
"0.5669385",
"0.56548643",
"0.56302726",
"0.5603149",
"0.55119324",
"0.55108106",
"0.5474402",
"0.54540145",
"0.5431402",
"0.5425367",
"0.5403772",
"0.5397514",
"0.5396528",
"0.5389036",
"0.537355... | 0.0 | -1 |
set the scale zone width for it | public void setScaleZoneWidth(float zoneWidth){
this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(int w) {\n this.W =... | [
"0.6885109",
"0.687807",
"0.6755856",
"0.673658",
"0.66552263",
"0.6653496",
"0.66448957",
"0.66448957",
"0.66259265",
"0.6516044",
"0.6502216",
"0.64910275",
"0.64412475",
"0.64376944",
"0.63606584",
"0.6326914",
"0.6325408",
"0.63172364",
"0.6312607",
"0.6284317",
"0.626268... | 0.79614085 | 0 |
set the scale zone length for it | public void setScaleZoneLength(float zoneLength){
this.mScaleZoneLength = Utils.dp2px(mContext, zoneLength);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setScaleZoneWidth(float zoneWidth){\n this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);\n }",
"default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }",
"public void setScale_length(float scale_length) throws IOException\n\t{\n\t\tif ((__io__pointers... | [
"0.7227608",
"0.63585836",
"0.6314122",
"0.62952834",
"0.6036902",
"0.6019026",
"0.59070665",
"0.5900962",
"0.58757454",
"0.5875252",
"0.585173",
"0.5835419",
"0.5829938",
"0.58229196",
"0.580257",
"0.5797147",
"0.5789759",
"0.5753688",
"0.5752259",
"0.57434493",
"0.57188225"... | 0.76631314 | 0 |
set each zone's distance | public void setScaleZonePadding(int zonePadding){
this.mScaleZonePadding = Utils.dp2px(mContext, zonePadding);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void set_distance() {\n int[] k = new int[getQueue().length];\n distance = 0.0;\n for (int i = 1; i < getQueue().length; i++) {\n distance += getPoints().get(way[i]).distance(getPoints().get(way[i - 1]));\n }\n distance += getPoints().get(getQueue()[getPoints()... | [
"0.6499838",
"0.6477769",
"0.60571533",
"0.60560024",
"0.603562",
"0.5759329",
"0.5725683",
"0.5714549",
"0.5653647",
"0.5653554",
"0.55610156",
"0.5543021",
"0.5539232",
"0.5507174",
"0.5504156",
"0.5486531",
"0.5479642",
"0.5454993",
"0.5449629",
"0.54235494",
"0.5418976",
... | 0.0 | -1 |
set corner radius for each zone | public void setScaleZoneCornerRadius(int cornerRadius){
this.mScaleZoneCornerRadius = Utils.dp2px(mContext, cornerRadius);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setCornerRadii(float cornerRadius) {\n setCornerRadii(new float[] { cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius });\n }",
"public void setRadius(int radius);",
"public void setCornerRadius(float cornerRadius) {\n ... | [
"0.64356065",
"0.63461035",
"0.6155365",
"0.60176885",
"0.60029566",
"0.59630567",
"0.59150434",
"0.5914306",
"0.5879341",
"0.58692116",
"0.58476174",
"0.57957447",
"0.5795205",
"0.5786485",
"0.57648516",
"0.57522964",
"0.57472616",
"0.5731663",
"0.5727884",
"0.5727884",
"0.5... | 0.6755696 | 0 |
set the visibility for progress inner text | public void setProgressTextVisibility(boolean visibility){
this.textVisibility = visibility;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setLoadingBarVisible(String text)\n {\n loadingBar.setVisibility(View.VISIBLE);\n loadingText.setText(text);\n }",
"public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View... | [
"0.72213334",
"0.6945024",
"0.6729525",
"0.66975975",
"0.66588306",
"0.6514176",
"0.6485301",
"0.64605033",
"0.6407363",
"0.63956916",
"0.63830495",
"0.6371731",
"0.6367164",
"0.6322816",
"0.63133377",
"0.6311407",
"0.626863",
"0.6248622",
"0.6242173",
"0.62390894",
"0.621350... | 0.8384582 | 0 |
start the progress's moving | public void startProgressAnimation(){
progressAnimator = ObjectAnimator.ofFloat(this,"progress",mStartProgress, mEndProgress);
Log.e(TAG, "progressDuration: "+ mProgressDuration);
progressAnimator.setInterpolator(mInterpolator);
progressAnimator.setDuration(mProgressDuration);
pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveToStart();",
"public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {stat... | [
"0.7215332",
"0.69332236",
"0.6928291",
"0.6909706",
"0.6688792",
"0.65394217",
"0.64998335",
"0.64774334",
"0.64417064",
"0.6411925",
"0.636685",
"0.6358509",
"0.6350873",
"0.63219786",
"0.6297205",
"0.629581",
"0.62924397",
"0.6271531",
"0.62577224",
"0.6237897",
"0.6220712... | 0.5937979 | 57 |
stop the progress moving | public void stopProgressAnimation(){
if(progressAnimator!=null){
progressAnimator.cancel();
progressAnimator = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\n this.setCurrentCell(0);\n this.setPicX(0);\n slowDownX();\n slowDownY();\n setMoving(false);\n if (moveDown) {\n this.setPicY(0);\n } else if (moveUp) {\n this.setPicY(211);\n } else if (moveLeft) {\n th... | [
"0.75926006",
"0.732973",
"0.7295463",
"0.7282265",
"0.7219901",
"0.7097301",
"0.7078949",
"0.6986461",
"0.6969892",
"0.69679815",
"0.6950776",
"0.6929759",
"0.69116527",
"0.6886122",
"0.6886108",
"0.68827057",
"0.6867769",
"0.6859713",
"0.68585724",
"0.6834419",
"0.68152106"... | 0.750776 | 1 |
update the oval progress track | private void updateTheTrack() {
if(mOval != null){
mOval = null;
}
mOval = new RectF(getPaddingLeft() + mTrackWidth, getPaddingTop() + mTrackWidth,
getWidth() - getPaddingRight() - mTrackWidth,
getHeight() - getPaddingBottom() - mTrackWidth);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update()\n {\n this.lastProgress = this.progress;\n\n if (this.lastProgress >= 1.0F)\n {\n this.func_184322_i();\n this.worldObj.removeTileEntity(this.pos);\n this.invalidate();\n\n if (this.worldObj.getBlockState(this.pos).getBlock() ... | [
"0.6686856",
"0.65138674",
"0.6388379",
"0.63180447",
"0.62997776",
"0.6293503",
"0.62458134",
"0.6226777",
"0.6214936",
"0.6213977",
"0.61999685",
"0.6183973",
"0.6169303",
"0.61663264",
"0.6148861",
"0.6136968",
"0.6136455",
"0.6103189",
"0.6097806",
"0.6097806",
"0.6078061... | 0.6821587 | 0 |
init the circle progress drawing | private void initProgressDrawing(Canvas canvas, boolean isFilled){
if(circleBroken){
Log.e(TAG, "circleBroken>>>>>>"+"yes" );
canvas.drawArc(mOval, 135 + mStartProgress*2.7f, (moveProgress - mStartProgress) * 2.7f, isFilled, progressPaint);
}else {
Log.e(TAG, "circl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void plotinit() {\r\n\r\n\t\tfloat dx;\r\n\t\tfloat dy;\r\n\t\tfloat d;\r\n\r\n\t\tdy = ymax - ymin;\r\n\t\tdx = xmax - xmin;\r\n\t\td = (dx > dy ? dx : dy) * 1.1f;\r\n\r\n\t\tpxmin = xmin - (d - dx) / 2.0f;\r\n\t\tpxmax = xmax + (d - dx) / 2.0f;\r\n\t\tpymin = ymin - (d - dy) / 2.0f;\r\n\t\tpymax = ymax + ... | [
"0.69545275",
"0.65728354",
"0.6561339",
"0.6555484",
"0.64372915",
"0.63642585",
"0.6316243",
"0.630137",
"0.628489",
"0.62739444",
"0.62737083",
"0.6252322",
"0.6220512",
"0.6205243",
"0.62028086",
"0.61951643",
"0.61924034",
"0.6169767",
"0.61612433",
"0.6117058",
"0.61038... | 0.70370185 | 0 |
the interface to help get the value of progress moving | public interface CircleProgressUpdateListener{
void onCircleProgressStart(View view);
void onCircleProgressUpdate(View view, float progress);
void onCircleProgressFinished(View view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getProgress();",
"@FloatRange(from = 0, to = 1) float getProgress();",
"public Double getProgress() {\r\n\treturn progress;\r\n}",
"int getProgress(int index);",
"int getProgress(int index);",
"int getProgress(int index);",
"public int getProgress(){\n return -1;\n }",
"double ... | [
"0.7809229",
"0.7339623",
"0.7287397",
"0.72453606",
"0.72453606",
"0.72453606",
"0.7196739",
"0.71023387",
"0.7093457",
"0.7064715",
"0.70618606",
"0.70302063",
"0.7003985",
"0.6998165",
"0.69895536",
"0.6970203",
"0.69038916",
"0.6902803",
"0.6861007",
"0.68564236",
"0.6854... | 0.0 | -1 |
set the progress update listener for progress view | public void setProgressViewUpdateListener(CircleProgressUpdateListener listener){
this.updateListener = listener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progr... | [
"0.7757388",
"0.7752908",
"0.7588364",
"0.7559661",
"0.754948",
"0.75030136",
"0.7489375",
"0.7463644",
"0.7446489",
"0.74063194",
"0.7388406",
"0.7346431",
"0.7337578",
"0.73256665",
"0.72598946",
"0.72405756",
"0.72387815",
"0.7230165",
"0.7227658",
"0.7190232",
"0.7151981"... | 0.80382514 | 0 |
Reichweite, Standard "beliebig weit" | public abstract String getText(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"void zmniejszBieg();",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"private void wechsleRaum(Befehl befehl)\n {\n if(!befehl.hatZweitesWort()) {\n \t// Gibt es kein zweites Wort, wissen wir nicht, wohin...\n S... | [
"0.66258126",
"0.64984465",
"0.6242032",
"0.6213782",
"0.6192699",
"0.61349905",
"0.61338264",
"0.60684204",
"0.60547715",
"0.59812325",
"0.5953594",
"0.5949449",
"0.5941291",
"0.5940268",
"0.5940268",
"0.59192085",
"0.5893291",
"0.58721894",
"0.58686924",
"0.5839594",
"0.582... | 0.0 | -1 |
Bewege die Figur zu einer neuen Position. Es wird dabei nicht geprueft, ob eine Figur geschlagen wird. | public void moveToDestination(Move move) {
x = move.getToX();
y = move.getToY();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}",
"public void frogReposition() {\n\t\tsetY(FrogPositionY);\n\t\tsetX(FrogPositionX);\t\t\n\t\t}",
"Object getPosition();",
"Position getPosition();",
"Position getPosition();",
"@Overr... | [
"0.7147901",
"0.6734383",
"0.66310215",
"0.6604324",
"0.6564423",
"0.6564423",
"0.65462637",
"0.6516471",
"0.6510935",
"0.6452966",
"0.6419147",
"0.6407337",
"0.6407107",
"0.64002895",
"0.6375659",
"0.63694644",
"0.63605225",
"0.6356509",
"0.6348636",
"0.6343492",
"0.6340289"... | 0.0 | -1 |
Erzeuge alle Zuege: bewege die Figur in alle Richtungen Ein Zug ist unmoeglich, wenn das Zielfeld Rand oder eine eigene Figur ist. Eine gegnerische Figur wird geschlagen, aber es geht dann nicht weiter in diese Richtung | public List<Move> getMoves(ChessBoard chessBoard) {
List<Move> moves = new ArrayList<>();
for (Direction direction : directions) {
for (int n = 1; n <= maxRange ; n++) {
Move move = new Move(x, y, direction, n);
if (chessBoard.allows(move)) {
if (move.isTake(chessBoard)) {
TakeMove take... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void random() {\n\n\t}",
"Randomizer getRandomizer();",
"public void maakNieuweDoolhof()\n {\n /*hzs: hoek zonder schat\n hms: hoek met schat\n r: recht stuk\n t: T-kruispunt met schat*/\n //vaste aantallen vakjes\n int hzs = 10, hms = 6, r = 11, t = 6;\n ... | [
"0.68419844",
"0.683099",
"0.6764076",
"0.6706507",
"0.6604898",
"0.6538483",
"0.653001",
"0.6520541",
"0.6486529",
"0.6396869",
"0.6371497",
"0.63517255",
"0.63489765",
"0.63407755",
"0.62813497",
"0.6213188",
"0.6185431",
"0.6179925",
"0.6173997",
"0.6167418",
"0.6162478",
... | 0.0 | -1 |
Used to add buttons | @Override
public void postInit(){
super.postInit();
this.buttonList.add(this.readDescription = new GuiButton(6, this.width - 110, 2, 100, 20, "World Description"));
this.readDescription.enabled = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }",
"private void createButton(){\n addButton();\n addStartButton();\n }",
"void addButton_actionPerformed(ActionE... | [
"0.79920316",
"0.7883009",
"0.78094184",
"0.77607304",
"0.75993854",
"0.7599159",
"0.75852174",
"0.7567179",
"0.7559692",
"0.7497391",
"0.7420638",
"0.74126416",
"0.74122757",
"0.7403356",
"0.73490655",
"0.7332754",
"0.729999",
"0.7292529",
"0.7221559",
"0.721125",
"0.7192445... | 0.0 | -1 |
List copyPersons = new ArrayList(personsOrig); make sure we make a deep copy of original collection then sort it NOTE the "target" collection of copy has to be equal or greater size than "src" of copy | public List<Person> copyPersons() {
List<Person> copyPersons = new ArrayList<Person>(personsOrig.size()); // NOTE this is still an empty List with initial capacity of personsOrig size
// unfortunately there isn't a clone or factory method in Collections. So have to create "target" collection with some garbage
P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int compare(Person p1, Person p2) { //because this class implements Comparator \n\t\treturn p1.id-p2.id;\n\t}",
"public void triCollection(){\r\n Collections.sort(collection);\r\n }",
"public ArrayList<Person> builtinSortDeduplication(){\n\t//copy data from list to array arr\n\tP... | [
"0.60336804",
"0.601611",
"0.59689724",
"0.59362227",
"0.5908062",
"0.58017445",
"0.57402784",
"0.5690137",
"0.56595135",
"0.5644615",
"0.5644072",
"0.56409675",
"0.56101257",
"0.55608463",
"0.5542204",
"0.5540546",
"0.55207634",
"0.54682696",
"0.54622823",
"0.54572797",
"0.5... | 0.8036582 | 0 |
TODO Autogenerated method stub | @Override
public void insert(CustVO custVO) {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(INSERT_STMT);
pstmt.setString(1, custVO.getCust_acc());
pstmt.setString(2, custVO.getCust_pwd());
pstmt.setString(3, custVO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void update(CustVO custVO) {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(UPDATE);
pstmt.setString(1, custVO.getCust_acc());
pstmt.setString(2, custVO.getCust_pwd());
pstmt.setString(3, custVO.getCust... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void delete(String cust_ID) {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(DELETE);
pstmt.setString(1, cust_ID);
pstmt.executeUpdate();
} catch (SQLException se) {
throw new RuntimeException("A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public CustVO findByPrimaryKey(String cust_ID) {
CustVO custVO = null;
Connection con = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(GET_ONE_STMT);
pstmt.setString(1, cust_ID);
rs = pstmt.executeQu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<CustVO> getAll() {
List<CustVO> list = new ArrayList<CustVO>();
CustVO custVO = null;
Connection con = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(GET_ALL_STMT);
rs = pstmt.executeQuery()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
The main method of the program where the execution takes place. Contains the creation of objects of the classes NumericalQuestion, BooleanQuestion, MultipleChoiseQuestion, Exam and Marker. | public static void main(String[] args) {
// Creation of the constructor nqMarkScheme with parameters 198 and 6 of the class NumericalQuestion.
NumericalQuestion nqMarkScheme = new NumericalQuestion(198, 6);
// Creation of the constructor bqMarkScheme with parameters true and 1 of the class BooleanQuest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }",
"pub... | [
"0.78981817",
"0.76060915",
"0.73627406",
"0.71485806",
"0.71470344",
"0.7119921",
"0.6949311",
"0.67995435",
"0.6774204",
"0.6761438",
"0.6710403",
"0.6678542",
"0.6662429",
"0.6645657",
"0.66378784",
"0.66337514",
"0.66243064",
"0.6618124",
"0.6599645",
"0.65765965",
"0.657... | 0.78392905 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] test1 = {1};
int[] test2 = {0, 10};
int[] test3 = {1,3,6};
SolutionSmallestRange1 solutionSmallestRange1 = new SolutionSmallestRange1();
System.out.println(solutionSmallestRange1.smallestRangeI(test1, 0));
System.out.println(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Define k the number of edges per node. Default value is 10 | public final void setK(final int k) {
if (k <= 0) {
throw new IllegalArgumentException("k must be > 0");
}
this.k = k;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getNumberOfEdges();",
"int getNumberOfEdges();",
"public int sizeAboveDepth(int k) {\n\t\t// TODO\n\t\t return sizeAboveDepth(root, k , 0);\n\t }",
"public int numEdges();",
"public void setK(int k) {\n this.k = k;\n }"... | [
"0.6346982",
"0.63394463",
"0.62901527",
"0.614555",
"0.6112451",
"0.6039652",
"0.60064805",
"0.5941596",
"0.5901663",
"0.58996886",
"0.5887579",
"0.5833311",
"0.58246046",
"0.581192",
"0.57904875",
"0.57704467",
"0.57411546",
"0.5710906",
"0.5708855",
"0.56725895",
"0.567258... | 0.5598843 | 28 |
Build the approximate graph, then use bruteforce to build the exact graph and compare the results. | public final void test(final List<T> nodes) {
Graph<T> approximate_graph = computeGraph(nodes);
// Use Brute force to build the exact graph
Brute brute = new Brute();
brute.setK(k);
brute.setSimilarity(similarity);
Graph<T> exact_graph = brute.computeGraph(nodes);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n ... | [
"0.6384945",
"0.63714695",
"0.6130149",
"0.6126256",
"0.5897581",
"0.5795493",
"0.5773547",
"0.5721201",
"0.57183903",
"0.5715834",
"0.5707762",
"0.5690264",
"0.5647685",
"0.55959314",
"0.55946994",
"0.55053914",
"0.54953647",
"0.5487336",
"0.54602957",
"0.5458586",
"0.545723... | 0.57896197 | 6 |
never invoke any methods on null value | public static void main(String[] args) {
Integer i=null;
int j=i;
System.out.println(i);
System.out.println(j);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}",
"@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}",
"@Override\n\tprotected Object doGetValue(Object source) {\n\t\treturn null;\n\... | [
"0.71058166",
"0.6845389",
"0.6817606",
"0.67542034",
"0.6743229",
"0.6692779",
"0.66268283",
"0.66221476",
"0.6605997",
"0.66007936",
"0.65946716",
"0.65785164",
"0.6543408",
"0.6476562",
"0.64548147",
"0.64387375",
"0.63829005",
"0.63541424",
"0.6351012",
"0.63093907",
"0.6... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws InterruptedException {
WebDriver driver = new FirefoxDriver();
System.out.println("Class Program 31- july -2017, Demostrating ActionClass Use");
System.out.println("Open Amazon website");
driver.get("https://www.amazon.com//");
//Declare an Action Clas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jScrollPane1 = new javax.swing.JScrollPane();
jPanel1 = new javax.swing.JPanel();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7321233",
"0.72922724",
"0.72922724",
"0.72922724",
"0.7287021",
"0.7250113",
"0.7214902",
"0.7209478",
"0.71973455",
"0.71915394",
"0.71855843",
"0.71602577",
"0.7149222",
"0.70949143",
"0.70813066",
"0.70579875",
"0.6988272",
"0.6978623",
"0.6956488",
"0.6954857",
"0.694... | 0.0 | -1 |
End of variables declaration//GENEND:variables | private void combo() {
cargaCombo(combo_habitacion, "SELECT hh.descripcion\n" +
"FROM huespedes h\n" +
"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\n" +
"LEFT JOIN estadia_habitac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo217... | [
"0.63617",
"0.6280625",
"0.61909467",
"0.6095729",
"0.6092663",
"0.607037",
"0.60523474",
"0.605212",
"0.6002499",
"0.59878224",
"0.5970378",
"0.59679425",
"0.5967425",
"0.5965642",
"0.596177",
"0.5942055",
"0.5908757",
"0.589693",
"0.589137",
"0.5882839",
"0.58795726",
"0.... | 0.0 | -1 |
make an api request | public static String makeRequest(String apiRequest) throws IOException {
//execute the api request
HttpClient client = HttpClientBuilder.create().build();
HttpGet request = new HttpGet(apiRequest);
HttpResponse response = client.execute(request);
//create a buffered reader for re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Response makeRequest(String url) throws IOException, IllegalStateException {\n // Make the request\n Request req = new Request.Builder()\n .url(url)\n .addHeader(\"token\", NOAA.KEY)\n .build();\n Response res = client.newCall(req).execute()... | [
"0.69253755",
"0.6772976",
"0.66161644",
"0.64030683",
"0.63925886",
"0.63330936",
"0.6237599",
"0.6230593",
"0.62123466",
"0.62099403",
"0.61769015",
"0.6161573",
"0.61152565",
"0.60956776",
"0.6048497",
"0.6040978",
"0.6033174",
"0.5993223",
"0.5971365",
"0.5961145",
"0.595... | 0.55666614 | 85 |
check for invalid characters | public static String cleanRequest(String city){
if(hasSpecialCharacters(city)){
//if it has special characters return invalid
return "invalid";
}
//return the un-altered version if no special characters
return city;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }",
"private String validateChar(String text) {\n char[] validChars = new char[text.length()];\n int validCount = ... | [
"0.7458106",
"0.7427399",
"0.7342413",
"0.7237748",
"0.7107141",
"0.7074534",
"0.7030751",
"0.69968665",
"0.69863945",
"0.6923186",
"0.69113904",
"0.6880537",
"0.68754965",
"0.681918",
"0.68070626",
"0.68030566",
"0.679092",
"0.6745443",
"0.6740731",
"0.6734732",
"0.6723753",... | 0.0 | -1 |
check for empty string | public static boolean hasSpecialCharacters(String s) {
if (s == null || s.trim().isEmpty()) {
//if the string is empty return true
return true;
}
//create a pattern that checks for characters which are not alphanumeric and are not a dot, dash, or comma
Pattern p =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }",
"private boolean isEmpty(String str) {\n r... | [
"0.8070274",
"0.79894465",
"0.79840004",
"0.7969921",
"0.7884312",
"0.78631955",
"0.7855884",
"0.7834666",
"0.7832823",
"0.78298867",
"0.7809499",
"0.78032976",
"0.77959085",
"0.77930737",
"0.77850795",
"0.77830714",
"0.776449",
"0.77423567",
"0.76815283",
"0.7666423",
"0.766... | 0.0 | -1 |
/ Read client properties from the file. | private void init(String propFilePath) {
properties = new Properties();
try {
properties.load(new FileInputStream(new File(propFilePath)));
} catch (FileNotFoundException e1) {
logger.error("External properties file not found!", e1);
System.exit(1);
} ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n... | [
"0.7844136",
"0.68254924",
"0.6793821",
"0.6609526",
"0.6537679",
"0.65151244",
"0.645719",
"0.63887125",
"0.63795507",
"0.6370521",
"0.6343466",
"0.6311852",
"0.62949574",
"0.6291433",
"0.6283996",
"0.62171525",
"0.6209582",
"0.6205065",
"0.61888707",
"0.61826855",
"0.617010... | 0.56805074 | 82 |
argumenti su niz parametara na osnovu kojih se vrsi evaluacija | public static void main(String[] args) {
new ClientExternal(args).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getParameterValue();",
"boolean hasParameterValue();",
"public void param(int direccionValorParam, int numeroParam){\n String valorParam = \"\";\n //traduce casos de direccionamiento indirecto\n direccionValorParam = traduceDirIndirecto(direccionValorParam);\n // ob... | [
"0.5995892",
"0.5932792",
"0.5915641",
"0.5915042",
"0.5818616",
"0.5780248",
"0.5758429",
"0.570165",
"0.56411386",
"0.55626",
"0.5530963",
"0.55078244",
"0.54760253",
"0.5455317",
"0.5454462",
"0.5454146",
"0.5449636",
"0.5442462",
"0.5424665",
"0.5424337",
"0.54212457",
... | 0.0 | -1 |
DatabaseReference myRef; DatabaseReference rootRef, demoRef; | @Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.login_fragment, container, false);
edtEmail = root.findViewById(R.id.edtEmail);
edtPassword = root.findViewById(R.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void iniciarBaseDeDatos(){\n db_reference = FirebaseDatabase.getInstance().getReference();\n\n }",
"static DatabaseReference getDBRef() {\n return mDBRef;\n }",
"private void iniciarFirebase(){\n FirebaseApp.initializeApp(getApplicationContext());\n firebaseDatabase = ... | [
"0.6740673",
"0.6183358",
"0.6161169",
"0.6061042",
"0.59957564",
"0.59283",
"0.59233934",
"0.5910226",
"0.5877377",
"0.58430755",
"0.57416487",
"0.5739318",
"0.56796783",
"0.56776243",
"0.56511015",
"0.56506115",
"0.5585221",
"0.5563041",
"0.55233866",
"0.55233866",
"0.54989... | 0.0 | -1 |
Main method to be called by JVM. | public static void main(final String[] args) {
// Parrot instance assigned to type of FlightBirds
FlightBirds parrot = new Parrot();
parrot.setLatitude(200);
parrot.setLongitude(300);
parrot.setAltitude(100);
// Parrot location
System.out.println("Parrot Lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main() {\n }",
"public static void main(){\n\t}",
"public static void main()\n\t{\n\t}",
"public static void main(String[] args) {}",
"public static void main(String[] args) {}",
"public static void main(String... args) {\n doMain().run();\n }",
"public static void main() {\n ... | [
"0.78129935",
"0.7735534",
"0.7733047",
"0.76717585",
"0.76717585",
"0.7641845",
"0.76329505",
"0.75892913",
"0.7529418",
"0.75196505",
"0.75125396",
"0.74868447",
"0.7471849",
"0.74648845",
"0.74648845",
"0.7419521",
"0.7419521",
"0.7419521",
"0.7416484",
"0.74116224",
"0.73... | 0.0 | -1 |
Please do not use. Items are produced by a JSONiq query via the Rumble API. | protected Item() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET\r\n\t@Path(\"/all\")\r\n\t@Produces(\"application/json\")\r\n\tpublic JsonArray getAllItems(){\r\n\t\t \tConnection database = DBConnecter.getConnection();\r\n\t\t Statement stat = null;\r\n\t\t ResultSet rs = null;\r\n\t\t\ttry {\r\n\t\t\t\tstat = database.createStatement();\r\n\t\t\t\tString sqlQueryS... | [
"0.6508028",
"0.64538264",
"0.64131254",
"0.6281199",
"0.6181642",
"0.6119201",
"0.6075702",
"0.60601395",
"0.6028149",
"0.6007426",
"0.6002833",
"0.5998153",
"0.59932745",
"0.59703577",
"0.5960301",
"0.5933917",
"0.59326494",
"0.5929882",
"0.5905622",
"0.5889357",
"0.5868034... | 0.0 | -1 |
Tests whether the item is a number (integer, decimal or double). | public boolean isNumeric() {
return this.isInteger() || this.isDecimal() || this.isDouble();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isNumeric();",
"private boolean isNumber(Object o) {\n\t\tif(o instanceof String) return isNumber((String) o);\n\t\telse if(o instanceof Double) return true;\n\t\telse return false;\n\t}",
"public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.pars... | [
"0.7089525",
"0.6887847",
"0.6839781",
"0.68282443",
"0.6805865",
"0.6779739",
"0.67441714",
"0.67026573",
"0.66474074",
"0.6592061",
"0.6404613",
"0.63948876",
"0.63806826",
"0.63651884",
"0.63094544",
"0.62973064",
"0.62890166",
"0.6280473",
"0.6280013",
"0.62680787",
"0.62... | 0.7067635 | 1 |
Casts the item to a double value. | public double castToDoubleValue() {
throw new IteratorFlowException("Cannot call castToDouble on non numeric");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public Double getAsDouble(String itemName, Double defaultValue);",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"@ZenCodeType.Caster\n ... | [
"0.7885966",
"0.7626753",
"0.73200345",
"0.7200356",
"0.71335614",
"0.69572717",
"0.69467497",
"0.69387144",
"0.69074446",
"0.6897423",
"0.6897254",
"0.686127",
"0.68369013",
"0.68349457",
"0.6809514",
"0.68077683",
"0.6802725",
"0.67761105",
"0.67402166",
"0.6738915",
"0.673... | 0.7438965 | 2 |
Casts the item to a decimal value. | public BigDecimal castToDecimalValue() {
throw new IteratorFlowException("Cannot call castToDouble on non numeric");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }",
"public Decimal toDecimalForm() {\n return amount.movePoint(-2);\n }",
"private static BigDecimal arrayNodeItemAsDecimal(ArrayNode arrayNode, int index) {\n if... | [
"0.6654998",
"0.65204567",
"0.6351446",
"0.6113787",
"0.5870395",
"0.5842035",
"0.5836703",
"0.5832001",
"0.57388294",
"0.57374656",
"0.5713654",
"0.56733394",
"0.5671765",
"0.5668618",
"0.5642436",
"0.55879754",
"0.55830115",
"0.5579104",
"0.55702925",
"0.55348015",
"0.55224... | 0.7149804 | 0 |
Casts the item to an integer value. | public int castToIntegerValue() {
throw new IteratorFlowException("Cannot call castToDouble on non numeric");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }",
"public int getItemIntValue(){\n return itemIntValue;\n }",
"public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }",
"... | [
"0.7217097",
"0.6725212",
"0.67230016",
"0.6620013",
"0.653428",
"0.64781684",
"0.64675385",
"0.63833153",
"0.63824105",
"0.63774806",
"0.63280106",
"0.63228595",
"0.63040435",
"0.62921494",
"0.62921494",
"0.62918746",
"0.62571293",
"0.6188054",
"0.61787087",
"0.6157082",
"0.... | 0.66971064 | 3 |
Returns the effective boolean value of the item, if atomic. | public abstract boolean getEffectiveBooleanValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getIsEffective() {\n return isEffective;\n }",
"public boolean getBooleanValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a boolean.\");\n }",
"public boolean getValue() {\n\t\treturn _checked;\n\t}",
"public Boolean getValue() {\n\t\treturn... | [
"0.66307503",
"0.649173",
"0.63597125",
"0.63355356",
"0.63291246",
"0.62585175",
"0.624331",
"0.6194555",
"0.6179452",
"0.6143286",
"0.61140937",
"0.61140937",
"0.60997105",
"0.60573447",
"0.6053561",
"0.6053561",
"0.6053561",
"0.6040391",
"0.6040391",
"0.6040391",
"0.602628... | 0.72062355 | 0 |
Function that compares 2 items. Nonatomics can't be compared. Items have to be of the same type or one them has to be null. | public int compareTo(Item other) {
if (other.isNull()) {
return 1;
}
return this.serialize().compareTo(other.serialize());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void compareItem(Item expected, Item actual);",
"private static <F> /*@ pure @*/ boolean elem_equals(F item1,\n F item2) {\n return (item1 != null && item1.equals(item2))\n\t || (item1 == null && item2 == null);\n }",
"@Overri... | [
"0.7475927",
"0.6563217",
"0.6552061",
"0.64530444",
"0.63234407",
"0.6264376",
"0.6151876",
"0.6144794",
"0.6135883",
"0.6126582",
"0.6098877",
"0.6076299",
"0.60645866",
"0.60525525",
"0.60344756",
"0.59896797",
"0.59885776",
"0.5987459",
"0.59705555",
"0.59398305",
"0.5875... | 0.6233388 | 6 |
Function that compare two items according to the operator defined for the comparison. | public Item compareItem(
Item other,
ComparisonExpression.ComparisonOperator comparisonOperator,
ExceptionMetadata metadata
) {
// Subclasses should override this method to perform additional typechecks,
// and then invoke it on super.
switch (comparisonOp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void compareItem(Item expected, Item actual);",
"private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Exp... | [
"0.69079524",
"0.63857514",
"0.629438",
"0.62926",
"0.6185235",
"0.6178103",
"0.6178103",
"0.61687386",
"0.60852754",
"0.59400725",
"0.59383225",
"0.5928022",
"0.5923313",
"0.5910251",
"0.58801514",
"0.5874487",
"0.58733565",
"0.5848431",
"0.5842923",
"0.5822667",
"0.58111167... | 0.7124435 | 0 |
Returns the members of the item if it is an array. | public List<Item> getItems() {
throw new OurBadException("Item '" + this.serialize() + "' is not an array.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T[] items();",
"public String[] getArray(){\n return (String[])this.items.toArray();\n }",
"public Object[] getItems()\n {\n return items.toArray();\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsA... | [
"0.63006836",
"0.6265776",
"0.6101396",
"0.6067174",
"0.60353416",
"0.57250255",
"0.57003254",
"0.5685102",
"0.56510025",
"0.55971676",
"0.5579277",
"0.5563912",
"0.5556903",
"0.55409557",
"0.54953134",
"0.54926646",
"0.5491153",
"0.54846334",
"0.5443742",
"0.5431874",
"0.543... | 0.63360804 | 0 |
Returns the member of the item at the specified position if it is an array. | public Item getItemAt(int position) {
throw new OurBadException("Item '" + this.serialize() + "' is not an array.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getArrayElement(int index);",
"Object getArrayElement(int index);",
"@Override\n public T get(int idx) {\n //if item is within the bounds of the array list, it is returned others null is returned\n if (idx >= 0 && idx<=size){\n return arr[idx+1];\n } else {\n ... | [
"0.6767934",
"0.6767934",
"0.60109526",
"0.5953543",
"0.58883786",
"0.5735684",
"0.5730739",
"0.5598892",
"0.55774134",
"0.5546945",
"0.5521971",
"0.55104065",
"0.549517",
"0.5489246",
"0.5432666",
"0.5425802",
"0.5402669",
"0.53609025",
"0.5337789",
"0.53263175",
"0.52831036... | 0.60756016 | 2 |
Appends an item, if it is an array. | public void putItem(Item item) {
throw new OurBadException("Item '" + this.serialize() + "' is not an array.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }",
"public void append(Object item);",
"private String[] addItemToArray(String item, String[] myArray) {\n if (!ApiFunctions.isEmpty(item)) {\n if (ApiFunctions.isEmpty(my... | [
"0.78910166",
"0.68784183",
"0.6404151",
"0.64033985",
"0.6325832",
"0.62817955",
"0.6203158",
"0.61197174",
"0.6110009",
"0.6074108",
"0.6071992",
"0.59823346",
"0.5971799",
"0.59644115",
"0.59457374",
"0.5928003",
"0.59211296",
"0.5885351",
"0.5877028",
"0.58426267",
"0.577... | 0.5758325 | 23 |
Returns the keys of the item, if it is an object item. | public List<String> getKeys() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Enumeration<Object> keys ();",
"public Iterable<K> keys();",
"public Iterable<Key> keys();",
"public Iterable<Key> keys();",
"public List<K> keys();",
"public Iterator<K> keys();",
"public Iterator<K> keys();",
"public List<String> keysAsString() {\n\t\treturn iter.getItems().stream().map(e ->... | [
"0.6437546",
"0.62547714",
"0.6089794",
"0.6089794",
"0.6056634",
"0.6036067",
"0.6036067",
"0.6032351",
"0.59461176",
"0.5886594",
"0.58637536",
"0.5814941",
"0.5786105",
"0.5747356",
"0.57383275",
"0.5729025",
"0.56459945",
"0.5643278",
"0.56283474",
"0.5585088",
"0.5582002... | 0.7586038 | 0 |
Returns the values of the item, if it is an object item. | public List<Item> getValues() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object[] getItems()\n {\n return items.toArray();\n }",
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"public java.util.List<java.util.Map<String, AttributeValue>> getItems() {\n return items;\n }",
"public java.util.List<java.util.Map<String,Attri... | [
"0.6565431",
"0.6409555",
"0.62683296",
"0.61487854",
"0.6088126",
"0.60467",
"0.6009595",
"0.5961343",
"0.5928528",
"0.59176105",
"0.59056425",
"0.58987427",
"0.5882479",
"0.5882377",
"0.5868515",
"0.58410937",
"0.58378685",
"0.5836327",
"0.5823924",
"0.58223647",
"0.5800733... | 0.78237194 | 0 |
Returns the value associated with a specific key, if it is an object item. | public Item getItemByKey(String key) {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object get(String key);",
"public Object getObject(String key);",
"Object get(String key);",
"Object get(String key);",
"V get(Object key);",
"Object get(Object key);",
"ISObject get(String key);",
"public Value get(Key key);",
"public Object get(String key) {\r\n\t\treturn objectMap.get(key... | [
"0.69844157",
"0.6980583",
"0.69787914",
"0.69787914",
"0.69760513",
"0.6945174",
"0.6879728",
"0.68724495",
"0.6822187",
"0.68083715",
"0.6784184",
"0.6704158",
"0.6704158",
"0.66848916",
"0.66844434",
"0.6640239",
"0.65289927",
"0.6498113",
"0.6463877",
"0.6448793",
"0.6430... | 0.6556424 | 16 |
Adds a value pair, if it is an array item. | public void append(Item value) {
throw new OurBadException(" Item '" + this.serialize() + "' is not an array.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n public void arrayAddValue(LinkedList<String> keyList, Object array, Object value) throws IOException {\n if (value instanceof JSONParseEngine.ByteBuffer) {\n value = value.toString();\n }\n ((ArrayList) array).add(value);\n }",
"public void... | [
"0.6920207",
"0.6593565",
"0.645546",
"0.64173484",
"0.61677027",
"0.6032092",
"0.59722245",
"0.5924096",
"0.59172636",
"0.58474547",
"0.5812919",
"0.5789446",
"0.5745052",
"0.57252043",
"0.5715228",
"0.57104224",
"0.5709824",
"0.5696179",
"0.5685395",
"0.56755835",
"0.567044... | 0.6792384 | 1 |
Adds a keyvalue pair, if it is an object item. | public void putItemByKey(String key, Item value) {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean add(Object key, Object value);",
"public Object putItem (String key, Object item);",
"public void add(Object value) {\n\n\t}",
"void add(K key, V value);",
"public boolean add(K key, V value);",
"public V add(K key, V value);",
"@Override\r\n\tpublic void putObject(Object key, Object value) {\n... | [
"0.74202013",
"0.7025787",
"0.6782261",
"0.6781186",
"0.6778154",
"0.6774132",
"0.66939116",
"0.66735226",
"0.6623995",
"0.6560387",
"0.6509537",
"0.64197534",
"0.6381368",
"0.6373986",
"0.6334655",
"0.62933296",
"0.6267119",
"0.6259674",
"0.6226963",
"0.6207282",
"0.6183781"... | 0.6711035 | 6 |
Returns the size of the item, if it is an array item. | public int getSize() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an array.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size() {\n\t\treturn array.length();\n\t}",
"public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }",
"public int arraySize();",
"public int getSize() {\r\n return array.length;\r\n }",
"int size() {\n\t\treturn array.length;\n\t}... | [
"0.7389582",
"0.73715574",
"0.72768563",
"0.72690076",
"0.7130046",
"0.71123356",
"0.705136",
"0.70058495",
"0.70049715",
"0.6973946",
"0.69591874",
"0.68946826",
"0.68810225",
"0.687662",
"0.6872785",
"0.68470824",
"0.6841662",
"0.6840205",
"0.6807896",
"0.6795427",
"0.67607... | 0.7846967 | 0 |
Returns the string value of the item, if it is a atomic item of type string. | public String getStringValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a string.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getStringValue();",
"java.lang.String getStringValue();",
"public String getString() {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\treturn stringValue;\r\n\t}",
"@Override\n\tpublic String getString() {\n\t\treturn value;\n\t}",
"String getStringValue();",
"String getStringValue();"... | [
"0.64667445",
"0.64667445",
"0.64666206",
"0.61901647",
"0.616987",
"0.616987",
"0.6067531",
"0.60650325",
"0.6046002",
"0.6043861",
"0.6014504",
"0.5998994",
"0.591503",
"0.5901469",
"0.58972955",
"0.5884286",
"0.5878657",
"0.5875386",
"0.58654314",
"0.58495784",
"0.5842155"... | 0.7016381 | 0 |
Returns the boolean value of the item, if it is a atomic item of type boolean. | public boolean getBooleanValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a boolean.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getBoolValue();",
"boolean getBoolValue();",
"public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}",
"abstract public boolean getAsBoolean();",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public boolean getBoolValue(... | [
"0.735368",
"0.735368",
"0.7315596",
"0.72558725",
"0.71213657",
"0.71133554",
"0.708439",
"0.6922372",
"0.6901212",
"0.6877229",
"0.6864045",
"0.6832134",
"0.6753103",
"0.6710053",
"0.6709826",
"0.66825527",
"0.66825527",
"0.6668174",
"0.66569465",
"0.66496205",
"0.6645254",... | 0.75652045 | 0 |
Returns the double value of the item, if it is a atomic item of type double. | public double getDoubleValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a double.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public Double getAsDouble(String itemName, Double defaultValue);",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"Double getDoubleValue();... | [
"0.7446545",
"0.7431287",
"0.7405447",
"0.73595995",
"0.7351445",
"0.7305362",
"0.7234056",
"0.72339034",
"0.71920455",
"0.71817064",
"0.71573126",
"0.7153489",
"0.71355164",
"0.7105889",
"0.7080113",
"0.7074876",
"0.6979134",
"0.69516313",
"0.6929768",
"0.6892578",
"0.684834... | 0.7992479 | 0 |
Returns the integer value of the item, if it is a atomic item of type integer. | public int getIntegerValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an integer.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}",
"public int getIntValue() {\n return (int)getValue();\n }",
"public int getIntValue(){\n\t\treturn value.intValue();\n\t}",
"public Integer getInteger() {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\treturn integerValue;\r\n\t}",
... | [
"0.68029594",
"0.6741476",
"0.67385405",
"0.66688037",
"0.6617235",
"0.6617235",
"0.65043706",
"0.6503698",
"0.64889777",
"0.6476846",
"0.6465643",
"0.6442278",
"0.64283144",
"0.6420368",
"0.64172965",
"0.6407625",
"0.63925105",
"0.6369247",
"0.6335734",
"0.6289822",
"0.62898... | 0.7336385 | 0 |
Returns the decimal value of the item, if it is a atomic item of type decimal. | public BigDecimal getDecimalValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a big decimal.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Money getItemValue();",
"BigDecimal getValue();",
"public Decimal toDecimalForm() {\n return amount.movePoint(-2);\n }",
"public org.xmlsoap.schemas.soap.encoding.Decimal getDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.xmlsoap.sch... | [
"0.6798969",
"0.6232517",
"0.62186795",
"0.6191305",
"0.6149413",
"0.61480266",
"0.6136739",
"0.6072978",
"0.60693043",
"0.5995043",
"0.58869374",
"0.5879359",
"0.58554256",
"0.58404416",
"0.5814598",
"0.57634646",
"0.572081",
"0.57092357",
"0.5664671",
"0.56571084",
"0.56301... | 0.7058276 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.