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 |
|---|---|---|---|---|---|---|
Returns the tax of use plus the value. | public double useTax() {
return super.useTax() + getValue()
* PER_AXLE_TAX_RATE * getAxles();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getTax();",
"public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }",
"double getTaxAmount();",
"public Double getTax();",
"@Override\n\tpublic double getTax() {\n\t\treturn 0.04;\n\t}",
"public double getTax() {\n return tax_;\n }",
"public double calcTax() {\... | [
"0.773451",
"0.76993346",
"0.7659113",
"0.75465894",
"0.74753416",
"0.74708736",
"0.7417834",
"0.74162126",
"0.7403271",
"0.738627",
"0.7381723",
"0.7379497",
"0.7350575",
"0.7350003",
"0.73266333",
"0.7271803",
"0.72650653",
"0.7245586",
"0.7218055",
"0.7168982",
"0.71511525... | 0.799435 | 0 |
Output of the class. | public String toString() {
return super.toString() + " Axle Tax Rate: "
+ PER_AXLE_TAX_RATE * getAxles();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Output() {}",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}",
"private static void consoleOutput() {\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInv... | [
"0.76624113",
"0.73298717",
"0.7314927",
"0.70422506",
"0.7034808",
"0.6974678",
"0.69559133",
"0.69176763",
"0.6910916",
"0.69033337",
"0.68941617",
"0.6815474",
"0.6783718",
"0.67699486",
"0.67611086",
"0.6730587",
"0.67244726",
"0.67219913",
"0.6705542",
"0.669038",
"0.666... | 0.0 | -1 |
TODO Create filter algorithm here | public List<PlaceLogEntry> getFilteredLogentryList(List<PlaceLogEntry> rawDataList) {
return rawDataList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void filter();",
"public abstract Filter<T> filter();",
"boolean doFilter() { return false; }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"String getFilter();",
"@Override\n\tpublic int f... | [
"0.76380444",
"0.66325724",
"0.6526846",
"0.6519356",
"0.6519356",
"0.649093",
"0.64758414",
"0.6442763",
"0.6306168",
"0.63044053",
"0.62853676",
"0.6227572",
"0.6173891",
"0.61369103",
"0.61166126",
"0.6103788",
"0.60854095",
"0.60683906",
"0.6063271",
"0.6044669",
"0.60231... | 0.0 | -1 |
NAME SECTION Helper to enforce authorization by name, to users. | public List<String> getListOfAuthorizedByName(
List<String> names,
String username,
ResponseToFailedAuthorization failureResponse,
AccessLevel accessLevel,
Session session,
QueryEntityType queryEntityType ) throws Exception {
if ( queryEntityType == QueryEntityType.Project ) {
logger.debug( "Getting list of authorized projects for user " + username );
return getListOfAuthorizedByName(
names, username, failureResponse, accessLevel, session,
SECURED_PROJECTS_SQL_QUERY, OPEN_AND_SECURED_PROJECTS_SQL_QUERY, RTN_PROJECT_VAR_NAME, SECURE_PROJECTS_PARAM_LIST_NAME, OPEN_PROJECTS_PARAM_LIST_NAME
);
}
else {
logger.debug( "Getting list of authorized samples for user " + username );
return getListOfAuthorizedByName(
names, username, failureResponse, accessLevel, session,
SECURED_SAMPLES_SQL_QUERY, OPEN_AND_SECURED_SAMPLES_SQL_QUERY, RTN_SAMPLE_VAR_NAME, SECURE_SAMPLES_PARAM_LIST_NAME, OPEN_SAMPLES_PARAM_LIST_NAME
);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isNameRequired();",
"boolean isProtected(String name);",
"public boolean checkName(String name)\n {\n return true;\n }",
"private boolean isNameValid(String name) {\n\n }",
"private boolean isAllCaps(String name) {\r\n for (int ndx = 0; ndx < name.length(); ndx++) {\r\n c... | [
"0.6196376",
"0.60240895",
"0.59371483",
"0.58859134",
"0.57979834",
"0.57806987",
"0.5776374",
"0.5709685",
"0.5700863",
"0.56997764",
"0.5688843",
"0.5688843",
"0.5688843",
"0.56737506",
"0.56591195",
"0.5648425",
"0.56406724",
"0.5588305",
"0.5575815",
"0.5561559",
"0.5552... | 0.0 | -1 |
ID SECTION Helper to enforce authorization of values known by their IDs, to users. | public List<Long> getListOfAuthorizedById(
List<Long> ids,
String username,
ResponseToFailedAuthorization failureResponse,
AccessLevel accessLevel,
Session session,
QueryEntityType queryEntityType
) throws Exception {
if ( queryEntityType == QueryEntityType.Project ) {
logger.debug( "Getting list of authorized projects for user " + username );
return getListOfAuthorizedById(
ids, username, failureResponse, accessLevel, session,
SECURED_PROJECT_IDS_SQL_QUERY,
OPEN_AND_SECURED_PROJECT_IDS_SQL_QUERY,
SECURE_PROJECTS_PARAM_LIST_NAME,
OPEN_PROJECTS_PARAM_LIST_NAME,
RTN_PROJECT_VAR_NAME
);
}
else {
logger.debug( "Getting list of authorized samples for user " + username );
return getListOfAuthorizedById(
ids, username, failureResponse, accessLevel, session,
SECURED_SAMPLE_IDS_SQL_QUERY,
OPEN_AND_SECURED_SAMPLE_IDS_SQL_QUERY,
SECURE_SAMPLES_PARAM_LIST_NAME,
OPEN_SAMPLES_PARAM_LIST_NAME,
RTN_SAMPLE_VAR_NAME
);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean userCanAccess(int id) {\n return true;\n }",
"public abstract boolean isValidID(long ID);",
"boolean isSetID();",
"protected void checkId(String id) throws ValidationException {\n if (!id.equals(\"\")) {\n Set idrefs = getFOEventHandler().getIDRefer... | [
"0.603673",
"0.5732596",
"0.5647633",
"0.56080455",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55359685",
"0.55327654",
"0.5499688",
"0.5494421",
"0.54305303",
"0.542711",
"0.54179716",
"0.54018396",
"0.5... | 0.0 | -1 |
HELPERS Common code for both project and sample, to get data by listofidentifiers. | private List<Long> getListOfAuthorizedById(
List<Long> ids,
String username,
ResponseToFailedAuthorization failureResponse,
AccessLevel accessLevel,
Session session,
String securedIdsQuery,
String openAndSecuredIdsQuery,
String securedParamListName,
String openParamListName,
String returnVarName
) throws Exception {
ids = uniquifyIds(ids);
String queryStr;
if ( accessLevel == AccessLevel.View ) {
queryStr = openAndSecuredIdsQuery.replace( PROJ_GRP_SUBST_STR, VIEW_PROJECT_GROUP_FIELD );
}
else {
queryStr = securedIdsQuery.replace( PROJ_GRP_SUBST_STR, EDIT_PROJECT_GROUP_FIELD );
}
NativeQuery query = session.createNativeQuery( queryStr );
query.addScalar( returnVarName, StandardBasicTypes.STRING );
if ( accessLevel == AccessLevel.View ) {
query.setParameterList( openParamListName, ids );
}
query.setParameterList( securedParamListName, ids );
String queryUsername = username == null ? UNLOGGED_IN_USER : username;
query.setParameter( USERNAME_PARAM, queryUsername );
logger.debug(query.getQueryString());
List<Long> rtnVal = query.list();
if ( failureResponse == ResponseToFailedAuthorization.ThrowException &&
rtnVal.size() < ids.size() ) {
String idStr = joinIdList( ids );
String message = makeUserReadableMessage( username, idStr );
logger.error( message );
throw new ForbiddenResourceException( message );
}
return rtnVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<ProductInfoOutput> findList(List<String> productIdList);",
"public abstract List get(List oids) throws OIDDoesNotExistException;",
"List<CptDataStore> selectByExample(CptDataStoreExample example);",
"List<PaasCustomAutomationRecord> selectByExample(PaasCustomAutomationRecordExample example);",
"public... | [
"0.6032422",
"0.5845746",
"0.5671732",
"0.55346495",
"0.5517951",
"0.5498808",
"0.5479801",
"0.5352684",
"0.5331543",
"0.53138494",
"0.530473",
"0.5285757",
"0.5274337",
"0.5257321",
"0.5212625",
"0.5195942",
"0.51615775",
"0.51577395",
"0.5154144",
"0.51484585",
"0.5141296",... | 0.50304204 | 37 |
Common code for both project and sample, to get data by listofnames. | private List<String> getListOfAuthorizedByName(
List<String> names,
String username,
ResponseToFailedAuthorization failureResponse,
AccessLevel accessLevel,
Session session,
String securedQuery,
String openAndSecuredQuery,
String returnVarName,
String securedParamListName,
String openParamListName)
throws Exception {
// Need to avoid sending same name multiple times.
names = uniquifyNames(names);
String queryStr;
if ( accessLevel == AccessLevel.View ) {
queryStr = openAndSecuredQuery.replace( PROJ_GRP_SUBST_STR, VIEW_PROJECT_GROUP_FIELD );
}
else {
queryStr = securedQuery.replace( PROJ_GRP_SUBST_STR, EDIT_PROJECT_GROUP_FIELD );
}
NativeQuery query = session.createNativeQuery( queryStr );
query.addScalar(returnVarName, StandardBasicTypes.STRING );
query.setParameterList( securedParamListName, names );
if ( accessLevel == AccessLevel.View ) {
query.setParameterList( openParamListName, names );
}
String queryUsername = username == null ? UNLOGGED_IN_USER : username;
query.setParameter( USERNAME_PARAM, queryUsername );
List<String> rtnVal = query.list();
if ( failureResponse == ResponseToFailedAuthorization.ThrowException &&
rtnVal.size() < names.size() ) {
String nameStr = joinNameList(names);
String message = makeUserReadableMessage( username, nameStr );
logger.error( message );
throw new ForbiddenResourceException( message );
}
return rtnVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}",
"public void loadList(String name){\n }",
"private void getDatasetsList(final String newName) {\r\n DivaClientService.getA... | [
"0.5919087",
"0.58850557",
"0.5778221",
"0.5607132",
"0.55833757",
"0.554784",
"0.55467623",
"0.5511592",
"0.54998416",
"0.54539007",
"0.5428668",
"0.54113644",
"0.5408553",
"0.5337827",
"0.533762",
"0.533242",
"0.53197265",
"0.5300849",
"0.52859163",
"0.5284803",
"0.5283867"... | 0.5360403 | 13 |
PROJECT SECTION Helper to enforce authorization by name, to users. | public List<Project> getListOfAuthorizedProjects(
String username,
AccessLevel accessLevel,
Session session ) throws Exception {
String queryStr = AUTHORIZED_FOR_USER_SQL_QUERY;
if ( accessLevel == AccessLevel.View ) {
queryStr = queryStr.replace( PROJ_GRP_SUBST_STR, VIEW_PROJECT_GROUP_FIELD );
}
else {
queryStr = queryStr.replace( PROJ_GRP_SUBST_STR, EDIT_PROJECT_GROUP_FIELD );
}
NativeQuery query = session.createNativeQuery( queryStr );
String queryUsername = username == null ? UNLOGGED_IN_USER : username;
query.setParameter( USERNAME_PARAM, queryUsername );
query.addEntity("P", Project.class);
List<Project> rtnVal = query.list();
return rtnVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String checkUserAccessOnProject(Long id, String username);",
"public interface SectionService {\n\n @PreAuthorize(\"hasPermission(#sectionId, 'org.innovateuk.ifs.form.resource.SectionResource', 'READ')\")\n ServiceResult<SectionResource> getById(final Long sectionId);\n\n @PreAuthorize(\"hasPermission(#... | [
"0.61990625",
"0.56998914",
"0.56901014",
"0.5355918",
"0.53256387",
"0.5314766",
"0.52828395",
"0.5279581",
"0.5278505",
"0.52691454",
"0.5238993",
"0.52146816",
"0.5145868",
"0.51297885",
"0.51245934",
"0.5119269",
"0.5088092",
"0.5065678",
"0.50357664",
"0.50262964",
"0.50... | 0.0 | -1 |
Messages generated here can wind up before the user. Take care to make them readable! | private String makeUserReadableMessage(String username, String projectStr) {
//return "User " + username + " requested projects '" + projectStr + "' but may not access one or more of them.";
return "You do not have permission to view or edit the project.";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ManualMessage() {\n initFields();\n }",
"@Override\n public String getMessage(){\n \n }",
"public void getMessage() {\n\r\n\t}",
"private void initMsgs() {\n }",
"private void initMsgs() {\n }",
"private Messages() {\n\t}",
"protected abstract TMessage prepareMessage();",
... | [
"0.6570762",
"0.6554281",
"0.65089977",
"0.64378506",
"0.64378506",
"0.64336014",
"0.64030993",
"0.6403046",
"0.6391496",
"0.6353031",
"0.62857956",
"0.62825656",
"0.6249008",
"0.62077975",
"0.6200186",
"0.61964875",
"0.61867577",
"0.61732465",
"0.6137325",
"0.6136004",
"0.61... | 0.0 | -1 |
Roll a list of strings into a commaseparated single string. | private String joinNameList(List<String> names) {
String bldr;
if ( names != null ) {
bldr = uniquifyNames(names)
.stream()
.collect(Collectors.joining("','"));
}
else {
throw new IllegalArgumentException( "Null name list not allowed." );
}
return bldr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String concat(String[] list) {\n StringJoiner joiner = new StringJoiner(\" \");\n for (String s : list) {\n joiner.add(s);\n }\n return joiner.toString();\n }",
"public static String join(List<String> strings) {\n\t\tString result = \"\";\n\n\t\tboolean fir... | [
"0.6740249",
"0.67261356",
"0.6539188",
"0.648465",
"0.6445029",
"0.6393661",
"0.62808657",
"0.61875236",
"0.61410564",
"0.61041474",
"0.6081636",
"0.60453534",
"0.6038961",
"0.60320723",
"0.60271573",
"0.59658545",
"0.5942168",
"0.59301436",
"0.592978",
"0.59240085",
"0.5910... | 0.6630649 | 2 |
Roll a list of numeric IDs into a commaseparated single string. | private String joinIdList(List<Long> projects) {
String bldr;
if ( projects != null ) {
bldr = projects.stream()
.map(String::valueOf)
.collect(Collectors.joining(","));
}
else {
throw new IllegalArgumentException( "Null id list not allowed." );
}
return bldr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String formStringFromList(List<Long> ids)\n {\n if (ids == null || ids.size() == 0)\n return null;\n\n StringBuilder idsBuffer = new StringBuilder();\n for (Long id : ids)\n {\n idsBuffer.append(id).append(\",\");\n }\n\n return idsB... | [
"0.65278375",
"0.62072724",
"0.614637",
"0.6070944",
"0.5995418",
"0.5872399",
"0.5855867",
"0.57278067",
"0.55085474",
"0.550257",
"0.54820937",
"0.5432685",
"0.5429829",
"0.54091763",
"0.53434265",
"0.5321877",
"0.5309889",
"0.5309096",
"0.5289339",
"0.528021",
"0.5272621",... | 0.61997795 | 2 |
This could be NaN if out of bound. | @Override
public double get()
{
return unbounded.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected double getUpperBound() {\n\t\treturn 0;\n\t}",
"@Override\n\tprotected double getLowerBound() {\n\t\treturn 0;\n\t}",
"public int getBound();",
"public InfinitNumber getBound() {\n\t\treturn mBound;\n\t}",
"public double getDomainMin1() throws IllegalStateException {\n\treturn -Doubl... | [
"0.72182053",
"0.6690167",
"0.6527403",
"0.64963245",
"0.6387707",
"0.62724173",
"0.62264377",
"0.6220536",
"0.62075293",
"0.61888695",
"0.6097815",
"0.60881215",
"0.6077297",
"0.60583645",
"0.60396725",
"0.6022444",
"0.6000327",
"0.59775156",
"0.59739834",
"0.597043",
"0.596... | 0.5767495 | 25 |
Creates a new AbstractSocketConnection. | public AbstractSocketTransport(final Server server,
final MongoClientConfiguration config,
final StringDecoderCache decoderCache,
final TransportResponseListener responseListener)
throws SocketException, IOException {
myServer = server;
myResponseListener = responseListener;
myOpen = new AtomicBoolean(false);
myShutdown = new AtomicBoolean(false);
myLog = LogFactory.getLog(getClass());
mySocket = openSocket(server, config);
updateSocketWithOptions(config);
myOpen.set(true);
myInput = mySocket.getInputStream();
myBsonIn = new BsonInputStream(myInput, decoderCache);
// Careful with the size of the buffer here. Seems Java likes to call
// madvise(..., MADV_DONTNEED) for buffers over a certain size.
// Net effect is that the performance of the system goes down the
// drain. Some numbers using the
// UnixDomainSocketAccepatanceTest.testMultiFetchiterator
// 1M ==> More than a minute...
// 512K ==> 24 seconds
// 256K ==> 16.9 sec.
// 128K ==> 17 sec.
// 64K ==> 17 sec.
// 32K ==> 16.5 sec.
// Based on those numbers we set the buffer to 32K as larger does not
// improve performance.
myOutput = new BufferedOutputStream(mySocket.getOutputStream(),
32 * 1024);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract ConnectionBase createNewConnection(Socket socket);",
"public Socket createSocket()\n/* */ {\n/* 82 */ return new Socket();\n/* */ }",
"public Socket createSocket() {\n try {\n // Create socket\n server = new Socket(\"127.0.0.1\", 8520);\n ... | [
"0.79253757",
"0.6812771",
"0.67831594",
"0.66400486",
"0.66146046",
"0.6503705",
"0.6487719",
"0.6374905",
"0.6323725",
"0.6298223",
"0.6270502",
"0.6226691",
"0.62063736",
"0.620263",
"0.6190756",
"0.61777323",
"0.6108666",
"0.6059413",
"0.60582095",
"0.6031887",
"0.6024716... | 0.0 | -1 |
Closes the connection to the server without allowing an exception to be thrown. | @Override
public final void close() throws IOException {
close(new MongoDbException("Connection closed."));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeConnection() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.warning(\"problem closing socket connection with JSON-RPC server at \" + serverIP + \":\" + serverPort);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\t... | [
"0.75353026",
"0.7482149",
"0.7427951",
"0.737869",
"0.73745215",
"0.73703855",
"0.7341636",
"0.7309541",
"0.7262155",
"0.7215971",
"0.71837354",
"0.71771955",
"0.716964",
"0.7160093",
"0.6961039",
"0.69262767",
"0.68789274",
"0.6859948",
"0.68586004",
"0.68477744",
"0.682885... | 0.0 | -1 |
Returns the bsonIn value. | public BsonInputStream getBsonIn() {
return myBsonIn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E getIn() {\n return in;\n }",
"public Set<E> getIn() {\n return in;\n }",
"public InputInteractions getInIn() {\r\n\t\t// restituisce le interazioni di input\r\n\t\treturn this.InIn;\r\n\t}",
"public ConditionItem in(String fieldName, Object...value) {\n\t\treturn singleCondition(Cond... | [
"0.5996476",
"0.58383685",
"0.55062306",
"0.53686833",
"0.5240875",
"0.52056605",
"0.50750446",
"0.4949585",
"0.49489146",
"0.49437806",
"0.4943216",
"0.4898003",
"0.48691517",
"0.48442632",
"0.47907865",
"0.4766891",
"0.47510397",
"0.47471863",
"0.4742834",
"0.47401986",
"0.... | 0.62153506 | 0 |
Returns the listener for changes in the transport and responses we receive. | public TransportResponseListener getResponseListener() {
return myResponseListener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Listener getListener() {\n return listener;\n }",
"public JmsRequestorListener getListener() {\n return listener;\n }",
"public ConnectionListener getListener(String listenerID);",
"@Nullable\n public P getListener() {\n return mListener;\n }",
"@SuppressWarnings(\"d... | [
"0.68875533",
"0.6870452",
"0.64897156",
"0.6389879",
"0.62904346",
"0.6288799",
"0.62483495",
"0.620586",
"0.6172365",
"0.61721087",
"0.6121704",
"0.6108871",
"0.6015521",
"0.59925354",
"0.59832597",
"0.59347445",
"0.59329903",
"0.59109324",
"0.5893166",
"0.58195615",
"0.579... | 0.7043096 | 0 |
Returns true if the transport is idle (has not pending work). | public abstract boolean isIdle(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isIdle() {\n return queue.isEmpty();\n }",
"boolean isIdle();",
"public boolean isIdle() {\n return mIdle;\n }",
"public boolean isIdleTimeoutEnabled() {\n return idleTimeout;\n }",
"public boolean getStatus()\n\t{\n\t\treturn idle;\n\t}",
"public bool... | [
"0.7763751",
"0.7627503",
"0.7381044",
"0.7379916",
"0.70712334",
"0.7029644",
"0.671167",
"0.66697973",
"0.66591066",
"0.65974313",
"0.65463394",
"0.651318",
"0.6500031",
"0.6480469",
"0.6448974",
"0.64223",
"0.6413314",
"0.6391316",
"0.6345312",
"0.63150823",
"0.6302119",
... | 0.74427426 | 2 |
Returns true if the socket is currently open. | public boolean isOpen() {
return myOpen.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean isOpen() {\r\n\t\t//\r\n\t\treturn this.socket.isOpen();\r\n\t}",
"protected synchronized boolean isSockOpen(){\n\t\ttry{\n\t\t\tif(out.checkError()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isC... | [
"0.8213543",
"0.8058457",
"0.7568718",
"0.7564456",
"0.7381378",
"0.72325593",
"0.7168312",
"0.7153542",
"0.714896",
"0.7118714",
"0.7095965",
"0.709327",
"0.70266855",
"0.6989439",
"0.6915301",
"0.6905211",
"0.6858814",
"0.68143666",
"0.680707",
"0.6806547",
"0.6759379",
"... | 0.0 | -1 |
Returns true if the connection is being gracefully closed, false otherwise. | public boolean isShuttingDown() {
return myShutdown.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean close() {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\treturn connection.isClosed();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isClosed() {\n\t\treturn (dbConnection == null);\n\t}",
"public boolean shouldClose(Connection conn)... | [
"0.7530283",
"0.74242705",
"0.7204735",
"0.7157002",
"0.71518874",
"0.7150631",
"0.71049476",
"0.705987",
"0.7017874",
"0.6955435",
"0.69539803",
"0.6926694",
"0.69053376",
"0.69046193",
"0.6877696",
"0.68649846",
"0.68647456",
"0.68426985",
"0.68076986",
"0.6753144",
"0.6741... | 0.6315779 | 71 |
Notifies the connection that once all outstanding requests have been sent and all replies received the Connection should be closed. This method will return prior to the connection being closed. | public void shutdown(final boolean force) {
// Mark
myShutdown.set(true);
if (force) {
IOUtils.close(this);
}
else {
if (isOpen()) {
// Force a message with a callback to wake the receiver up.
try {
final OUT buffer = createIsMasterBuffer();
send(buffer);
}
catch (final IOException e) {
myLog.warn("Could not send a message to wake up the "
+ "receive thread on a shutdown.", e);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void connectionClosed(Peer.CloseReason reason)\n {\n Stream.concat(sendQueue.stream(), blockRequests.stream())\n .filter(pm -> pm.type == StdPeerMessage.REQUEST)\n .forEach(pm -> {\n torrent.cancelBlockRequest(pm.index, pm.begin);\... | [
"0.6688424",
"0.6635067",
"0.6551686",
"0.65018725",
"0.6389695",
"0.6339718",
"0.63337183",
"0.63028723",
"0.62728965",
"0.6260839",
"0.618347",
"0.61734074",
"0.61510956",
"0.6130505",
"0.61182415",
"0.60629386",
"0.60488045",
"0.6034088",
"0.600115",
"0.5991118",
"0.598790... | 0.0 | -1 |
Closes the connection to the server without allowing an exception to be thrown. | protected abstract void close(MongoDbException error) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeConnection() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.warning(\"problem closing socket connection with JSON-RPC server at \" + serverIP + \":\" + serverPort);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\t... | [
"0.75355875",
"0.74815434",
"0.7427734",
"0.7378748",
"0.7374578",
"0.73708045",
"0.73420334",
"0.7309789",
"0.72626585",
"0.72169673",
"0.71842754",
"0.7177539",
"0.71700317",
"0.7160422",
"0.69612443",
"0.6926287",
"0.68792003",
"0.6860433",
"0.68583685",
"0.6847523",
"0.68... | 0.0 | -1 |
Updates to raise an error on the callback, if any. | protected void raiseError(final Throwable exception,
final ReplyCallback replyCallback) {
ReplyHandler.raiseError(exception, replyCallback, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void errorOnUpdate(String buxError) {\n }",
"public void onReceivedError();",
"public void doCallbackFailure(Throwable error) {\n if (channelPointerOpt.isPresent() && error != null) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWrite... | [
"0.6494921",
"0.6418718",
"0.6410574",
"0.6291774",
"0.6280029",
"0.62714005",
"0.62648743",
"0.6242127",
"0.61778736",
"0.61584526",
"0.6145914",
"0.6145203",
"0.61245465",
"0.6118834",
"0.6117901",
"0.6115553",
"0.611525",
"0.6109843",
"0.60770273",
"0.6066147",
"0.60644025... | 0.56944996 | 71 |
Updates the socket with the configuration's socket options. | protected void updateSocketWithOptions(final MongoClientConfiguration config)
throws SocketException {
mySocket.setKeepAlive(config.isUsingSoKeepalive());
mySocket.setSoTimeout(config.getReadTimeout());
try {
mySocket.setTcpNoDelay(true);
}
catch (final SocketException seIgnored) {
// The junixsocket implementation does not support TCP_NO_DELAY,
// which makes sense but it throws an exception instead of silently
// ignoring - ignore it here.
if (!"AFUNIXSocketException".equals(seIgnored.getClass()
.getSimpleName())) {
throw seIgnored;
}
}
mySocket.setPerformancePreferences(1, 5, 6);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSocket(SocketWrapper socket);",
"public void setSocketOptions(Socket socket) throws IOException\n {\n socket.setSoTimeout(config.getTimeout());\n socket.setTrafficClass(0x18);\n socket.setTcpNoDelay(true);\n }",
"public void setSocketChannel(SocketChannel socketChannel... | [
"0.68928427",
"0.6554266",
"0.6220812",
"0.6101267",
"0.6039957",
"0.58822787",
"0.5821574",
"0.56936485",
"0.55738777",
"0.54841083",
"0.5469088",
"0.5460629",
"0.53901917",
"0.5381061",
"0.53731805",
"0.5366776",
"0.5362112",
"0.53229266",
"0.5263601",
"0.5258364",
"0.52544... | 0.7225838 | 0 |
Created by Administrator on 2018/5/9/009. | public interface FestivalCallback<T> {
/**
* @descriptoin 请求异常
*/
void requestError(Throwable throwable);
void requestfesSuccess(List<FestivalBean> callBack);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"pub... | [
"0.6035233",
"0.6011527",
"0.57654244",
"0.5765193",
"0.5747825",
"0.5715101",
"0.5710829",
"0.5676574",
"0.5653731",
"0.5652633",
"0.56006473",
"0.5598811",
"0.5598811",
"0.55950636",
"0.55941",
"0.55770874",
"0.55412877",
"0.55412036",
"0.5522833",
"0.55192655",
"0.5507416"... | 0.0 | -1 |
Creates new form Carrera | public Carrera() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public FormInserir() {\n initComponents();\n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public creacionempresa() {\n initComponent... | [
"0.7423498",
"0.6781364",
"0.67774737",
"0.67734504",
"0.65645117",
"0.650806",
"0.65059304",
"0.6483543",
"0.6446372",
"0.64043",
"0.6286742",
"0.62771386",
"0.6260693",
"0.6233779",
"0.6218452",
"0.6196619",
"0.61863506",
"0.6176177",
"0.6107926",
"0.6083389",
"0.60820174",... | 0.58447933 | 71 |
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() {
jSpinner3 = new javax.swing.JSpinner();
jSpinner6 = new javax.swing.JSpinner();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jProgressBar1 = new javax.swing.JProgressBar();
jProgressBar2 = new javax.swing.JProgressBar();
jProgressBar3 = new javax.swing.JProgressBar();
jButton1 = new javax.swing.JButton();
velocidad1 = new javax.swing.JSpinner();
velocidad2 = new javax.swing.JSpinner();
velocidad3 = new javax.swing.JSpinner();
jSpinner6.setModel(new javax.swing.SpinnerNumberModel(Float.valueOf(1.0f), Float.valueOf(0.0f), Float.valueOf(1.0f), Float.valueOf(0.1f)));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel1.setText("independiente 1");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel2.setText("independiente 2");
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel3.setText("independiente 3");
jProgressBar1.setMaximumSize(new java.awt.Dimension(146, 16));
jProgressBar1.setMinimumSize(new java.awt.Dimension(146, 16));
jProgressBar1.setPreferredSize(new java.awt.Dimension(146, 16));
jProgressBar2.setMaximumSize(new java.awt.Dimension(146, 16));
jProgressBar2.setMinimumSize(new java.awt.Dimension(146, 16));
jProgressBar2.setPreferredSize(new java.awt.Dimension(146, 16));
jProgressBar3.setMaximumSize(new java.awt.Dimension(146, 16));
jProgressBar3.setMinimumSize(new java.awt.Dimension(146, 16));
jProgressBar3.setPreferredSize(new java.awt.Dimension(146, 16));
jButton1.setText("Empezar Carrera");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
velocidad1.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));
velocidad2.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));
velocidad3.setModel(new javax.swing.SpinnerNumberModel(1, 1, 10, 1));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, 265, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jButton1)
.addGap(66, 66, 66)))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(velocidad1, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(velocidad2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(velocidad3, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(20, 20, 20))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jLabel1))
.addGroup(layout.createSequentialGroup()
.addComponent(velocidad1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))))
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(9, 9, 9)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addGroup(layout.createSequentialGroup()
.addComponent(velocidad2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(1, 1, 1)))
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3)
.addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(velocidad3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))
);
pack();
} | {
"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.73200226",
"0.7291205",
"0.7291205",
"0.7291205",
"0.7286934",
"0.72486174",
"0.72148067",
"0.7208562",
"0.7196016",
"0.7190541",
"0.71850747",
"0.71595925",
"0.71484745",
"0.7093441",
"0.708049",
"0.70576906",
"0.6987498",
"0.6977434",
"0.69557697",
"0.6954114",
"0.694637... | 0.0 | -1 |
File menu new, save, exit | protected void fillMenu(MenuBar menuBar) {
Menu fileMenu = new Menu("Файл");
MenuItem loginMenuItem = new MenuItem("Сменить пользователя");
loginMenuItem.setOnAction(actionEvent -> main.logout());
MenuItem exitMenuItem = new MenuItem("Выход (выключить планшет)");
exitMenuItem.setOnAction(actionEvent -> main.requestShutdown());
exitMenuItem.setAccelerator(KeyCombination.keyCombination("Alt+F4"));
fileMenu.getItems().addAll( loginMenuItem,
new SeparatorMenuItem(), exitMenuItem);
Menu navMenu = new Menu("Навигация");
MenuItem navHomeMap = new MenuItem("На общую карту");
//navHomeMap.setOnAction(actionEvent -> setMapData(bigMapData));
navHomeMap.setOnAction(actionEvent -> setMapData(main.ml.getRootMap()));
Menu navMaps = new Menu("Карты");
//navMaps.setOnAction(actionEvent -> setMapData(bigMapData));
main.ml.fillMapsMenu( navMaps, this );
MenuItem navOverview = new MenuItem("Обзор");
navOverview.setOnAction(actionEvent -> setOverviewScale());
navMenu.getItems().addAll( navHomeMap, navMaps, new SeparatorMenuItem(), navOverview );
Menu dataMenu = new Menu("Данные");
ServerUnitType.forEach(t -> {
MenuItem dataItem = new MenuItem(t.getDisplayName());
dataItem.setOnAction(actionEvent -> new EntityListWindow(t, main.rc, main.sc));
dataMenu.getItems().add(dataItem);
});
//dataMenu.Menu debugMenu = new Menu("Debug");
//MenuItem d1 = new MenuItem("На общую карту");
//d1.setOnAction(actionEvent -> setMapData(main.ml.getRootMap()));
/*
Menu webMenu = new Menu("Web");
CheckMenuItem htmlMenuItem = new CheckMenuItem("HTML");
htmlMenuItem.setSelected(true);
webMenu.getItems().add(htmlMenuItem);
CheckMenuItem cssMenuItem = new CheckMenuItem("CSS");
cssMenuItem.setSelected(true);
webMenu.getItems().add(cssMenuItem);
Menu sqlMenu = new Menu("SQL");
ToggleGroup tGroup = new ToggleGroup();
RadioMenuItem mysqlItem = new RadioMenuItem("MySQL");
mysqlItem.setToggleGroup(tGroup);
RadioMenuItem oracleItem = new RadioMenuItem("Oracle");
oracleItem.setToggleGroup(tGroup);
oracleItem.setSelected(true);
sqlMenu.getItems().addAll(mysqlItem, oracleItem,
new SeparatorMenuItem());
Menu tutorialManeu = new Menu("Tutorial");
tutorialManeu.getItems().addAll(
new CheckMenuItem("Java"),
new CheckMenuItem("JavaFX"),
new CheckMenuItem("Swing"));
sqlMenu.getItems().add(tutorialManeu);
*/
Menu aboutMenu = new Menu("О системе");
MenuItem version = new MenuItem("Версия");
version.setOnAction(actionEvent -> showAbout());
MenuItem aboutDz = new MenuItem("Digital Zone");
aboutDz.setOnAction(actionEvent -> main.getHostServices().showDocument(Defs.HOME_URL));
MenuItem aboutVita = new MenuItem("VitaSoft");
aboutVita.setOnAction(actionEvent -> main.getHostServices().showDocument("vtsft.ru"));
aboutMenu.getItems().addAll( version, new SeparatorMenuItem(), aboutDz, aboutVita );
// --------------- Menu bar
//menuBar.getMenus().addAll(fileMenu, webMenu, sqlMenu);
menuBar.getMenus().addAll(fileMenu, navMenu, dataMenu, aboutMenu );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Menu createFileMenu();",
"private void handleMenuSave() {\n String initialDirectory = getInitialDirectory();\n String initialFileName = getInitialFilename(Constants.APP_FILEEXTENSION_SPV);\n File file = FileChooserHelper.showSaveDialog(initialDirectory, initialFileName, this);\n\n ... | [
"0.7627091",
"0.7508781",
"0.727885",
"0.7144489",
"0.71146643",
"0.7053926",
"0.7050855",
"0.7016424",
"0.69953394",
"0.6990305",
"0.6957697",
"0.694871",
"0.681613",
"0.6814443",
"0.6790593",
"0.6781699",
"0.6755321",
"0.67244875",
"0.67244047",
"0.6720808",
"0.67128",
"0... | 0.0 | -1 |
/ Checks if the player is banned | @EventHandler(priority = EventPriority.HIGHEST) // set to highest because this is most important
public void playerBanned(PlayerLoginEvent event){
UUID uuid = event.getPlayer().getUniqueId();
String reason = bm.isBanned(uuid);
if (reason.equals("")) return;
Player p = event.getPlayer();
event.setKickMessage(reason);
event.setResult(Result.KICK_BANNED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkBanStatus() {\n if(getBanned() != null && getBanned().after(getLast_join())) {\n Date today = new Date();\n Date banDate = getBanned();\n String timeLeft = ClymeSkyblockCore.getInstance().getTimeUtil().getTimeDifference(banDate, today);\n\n Bukkit... | [
"0.75169057",
"0.72291327",
"0.65479445",
"0.65213627",
"0.6520459",
"0.64913183",
"0.64345133",
"0.6412864",
"0.63035434",
"0.6152821",
"0.6127508",
"0.61110723",
"0.60764927",
"0.6066605",
"0.60479355",
"0.5984156",
"0.59456015",
"0.5945175",
"0.59419787",
"0.5934316",
"0.5... | 0.6503988 | 5 |
/ sets the amount of alts a player can have logged on at once | @EventHandler(priority = EventPriority.LOWEST)
public void tooManyLoggedInAccounts(PlayerLoginEvent event){ // Set to join because if kicked on login ip info isnt tracked.
UUID name = event.getPlayer().getUniqueId();
int count = 0;
int allowed = plugin.getConfig().getInt("banmanager.set.altlimit");
if (allowed == 0) return;
List<UUID> alts = am.getAltsListUUID(name);
Player[] players = Bukkit.getOnlinePlayers();
for (Player p: players)
if(alts.contains(p.getUniqueId())) count++;
if (count > allowed){
String reason = plugin.getConfig().getString("banmanager.set.altlimitreason");
event.setKickMessage(reason);
event.setResult(Result.KICK_BANNED);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPassCounter()\r\n {\r\n passCounter++;\r\n\r\n }",
"void setAccessCounterForSession(int cnt);",
"private void logino(int selected) {\n ExtendedAccountData data = queriedaccounts.get(selected);\n AltManager.getInstance().setUserOffline(data.alias);\n loginfailed ... | [
"0.6170548",
"0.6025706",
"0.5988223",
"0.5929131",
"0.5880658",
"0.58723813",
"0.58681047",
"0.5848667",
"0.58198625",
"0.57715124",
"0.5760487",
"0.5753714",
"0.5741544",
"0.57314545",
"0.57112753",
"0.5692178",
"0.5675468",
"0.5674531",
"0.56702256",
"0.5668734",
"0.564944... | 0.6467195 | 0 |
shows one or to additional textAreas, depending on which shape is chosen | private void sizeBoxAction(ChoiceBox<String> box) {
if (box.getId().equals("inRecipeBox")) {
if (inRecipeBox.getValue().equals("Rectangular")) { // both areas are set visible bc we need two sides of rectangle
inRecipeArea1.setVisible(false);
inRecipeArea2.setVisible(false);
cm1.setText("");
inRecipeSize.setText("Size:");
inRecipeArea1.setVisible(true);
inRecipeArea2.setVisible(true);
x1.setText(" x");
cm1.setText(" cm");
} else {
cm1.setText("");
inRecipeArea1.setVisible(false);
inRecipeArea2.setVisible(false);
inRecipeArea1.setText("");
inRecipeArea2.setText("");
inRecipeSize.setText("Diameter:");
inRecipeArea1.setVisible(true);
x1.setText(" cm");
}
}
else {
if (IHaveBox.getValue().equals("Rectangular")) { // one area is set visible bc we only need a diameter of circle
IHaveArea1.setVisible(false);
IHaveArea2.setVisible(false);
cm2.setText("");
IHaveSize.setText("Size:");
IHaveArea1.setVisible(true);
IHaveArea2.setVisible(true);
x2.setText(" x");
cm2.setText(" cm");
} else {
cm2.setText("");
IHaveArea1.setVisible(false);
IHaveArea2.setVisible(false);
IHaveArea1.setText("");
IHaveArea2.setText("");
IHaveSize.setText("Diameter:");
IHaveArea1.setVisible(true);
x2.setText(" cm");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setShape(String shape)\n\t{\n \t \n \tlength.setVisible(false); \n \twidth.setVisible(false); \n \theight.setVisible(false); \n \tradius.setVisible(false); \n \tradius2.setVisible(false); \n \troll.setVisible(false); \n \tpitch.setVisible(false); \n \tyaw.setVisible(fa... | [
"0.5895677",
"0.5659664",
"0.5507625",
"0.5460966",
"0.5408941",
"0.53900737",
"0.5373181",
"0.53527284",
"0.53434014",
"0.53430134",
"0.52866197",
"0.52861565",
"0.5273769",
"0.52698976",
"0.52501726",
"0.5243409",
"0.52272236",
"0.521945",
"0.5205299",
"0.51903254",
"0.5164... | 0.0 | -1 |
converts mold sizes, displays how much of ingredient user need to use | private void okMoldAction(){
String a1 = IHaveArea1.getText();
String b1 = IHaveArea2.getText();
String h1 = Height1.getText();
String a2 = inRecipeArea1.getText();
String b2 = inRecipeArea2.getText();
String h2 = Height2.getText();
double IHaveVolume;
double inRecipeVolume;
moldLabel.setWrapText(true);
if (a1.equals("") || h1.equals("") || a2.equals("")|| h2.equals("")){
moldLabel.setText("Too little information");
return;
}
try {
if (b1.equals("")) {
IHaveVolume = converter.getRoundMoldVolume(Double.parseDouble(a1), Double.parseDouble(h1)); // volume of round mold user has
} else {
IHaveVolume = converter.getRectangularMoldVolume(Double.parseDouble(a1), Double.parseDouble(b1), Double.parseDouble(h1)); // volume of rectangular mold user has
}
if (b2.equals("")) {
inRecipeVolume = converter.getRoundMoldVolume(Double.parseDouble(a2), Double.parseDouble(h2)); // volume of round mold used in recipe
} else {
inRecipeVolume = converter.getRectangularMoldVolume(Double.parseDouble(a2), Double.parseDouble(b2), Double.parseDouble(h2)); // volume of rectangular mold used in recipe
}
if (IHaveVolume == 0){
moldLabel.setText("Wrong values were given");
return;
}
double result = inRecipeVolume / IHaveVolume;
moldLabel.setWrapText(true);
DecimalFormat df = new DecimalFormat("###.###");
moldLabel.setText("You need to use " + df.format(result) + "x ingredients in recipe");
}
catch(NumberFormatException e){
moldLabel.setText("Wrong values were given");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void scaleRecipe(double newSize, String newUnits) {\n \t\tdouble currentSize = getPostBoilVol(getVolUnits());\n \t\tcurrentSize = Quantity.convertUnit(getVolUnits(), newUnits, currentSize);\n \t\tdouble conversionFactor = newSize / currentSize;\n \n \t\tif (conversionFactor != 1) {\n \t\t\tsetPostBoil(newSi... | [
"0.6425572",
"0.61106044",
"0.6006847",
"0.5909138",
"0.57823557",
"0.574263",
"0.5592859",
"0.5537455",
"0.5517958",
"0.55029964",
"0.5488555",
"0.54307765",
"0.5430481",
"0.54145575",
"0.54009825",
"0.5396085",
"0.53933764",
"0.5374657",
"0.5351873",
"0.5348541",
"0.5297394... | 0.53436816 | 20 |
Hides the current window | public void actionPerformed(ActionEvent e) {
DeleteItem.this.setVisible(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hide() {\n synchronized (ownedWindows) {\n for (int i = 0; i < ownedWindows.size(); i++) {\n Window child = (Window) ownedWindows.elementAt(i);\n if (child != null) {\n child.hide();\n }\n }\n }\n ... | [
"0.77961785",
"0.7753554",
"0.76544565",
"0.7623348",
"0.74531513",
"0.7415016",
"0.7407435",
"0.71337754",
"0.7123721",
"0.71160966",
"0.7080964",
"0.705921",
"0.70351785",
"0.70190233",
"0.7008931",
"0.6997006",
"0.6993453",
"0.69813204",
"0.69378155",
"0.6844601",
"0.68413... | 0.0 | -1 |
Updates the item list prior to deletion | public void itemListAdd(ArrayList<String> list) {
itemList.addAll(list);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}",
"public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }",
"@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(... | [
"0.7107748",
"0.68328226",
"0.68070287",
"0.6694769",
"0.6649015",
"0.6644323",
"0.65591246",
"0.65383774",
"0.65147877",
"0.6502924",
"0.6455972",
"0.6435737",
"0.6432032",
"0.64140874",
"0.63733625",
"0.63553536",
"0.6351761",
"0.6332381",
"0.6304345",
"0.6304073",
"0.62204... | 0.0 | -1 |
Clear the deleted list | public void clearList() {
deletedList.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void clearBuffer() {\n\t\tsynchronized (listLock) {\n\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\tdeleteList.clear();\n\t\t\t}\n\t\t}\n\n\t}",
"public void clear() {\n\t\tlists.clear();\n\t}",
"void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\... | [
"0.7708844",
"0.761317",
"0.7527915",
"0.74840736",
"0.7441514",
"0.73816335",
"0.73239",
"0.731177",
"0.72646546",
"0.72487223",
"0.7223529",
"0.7217549",
"0.71916527",
"0.71665394",
"0.7163463",
"0.71466964",
"0.71359235",
"0.70936817",
"0.70467454",
"0.70347923",
"0.699712... | 0.88435566 | 0 |
method sends notification to admin notifying them of request made. | public void sendToAdmin(String sessionid, Smsmodel sms, String vals) throws ProtocolException, MalformedURLException, IOException {
String val = null;
System.out.println("hello boy " + vals);
String sender = "DND_BYPASSGetItDone";
URL url = new URL("http://www.smslive247.com/http/index.aspx?cmd=sendmsg&sessionid=" + sessionid + "&message=" + sms.getVendorMessage() + "&sender=" + sender + "&sendto=" + vals + "&msgtype=0");
//http://www.bulksmslive.com/tools/geturl/Sms.php?username=abc&password=xyz&sender="+sender+"&message="+message+"&flash=0&sendtime=2009-10- 18%2006:30&listname=friends&recipients="+recipient;
//URL gims_url = new URL("http://smshub.lubredsms.com/hub/xmlsmsapi/send?user=loliks&pass=GJP8wRTs&sender=nairabox&message=Acct%3A5073177777%20Amt%3ANGN1%2C200.00%20CR%20Desc%3ATesting%20alert%20Avail%20Bal%3ANGN%3A1%2C342%2C158.36&mobile=08065711040&flash=0");
final String USER_AGENT = "Mozilla/5.0";
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
con.setRequestProperty("User-Agent", USER_AGENT);
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
// System.out.println(messageModel.getBody() + " dude");
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
String responseCod = response.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendNotification() {\n }",
"protected void notifyUser()\n {\n }",
"@Override\r\n\tpublic void sendNotifications() {\n\r\n\t}",
"@Override\r\n\tpublic void sendGeneralNotification() {\n\t\t\r\n\t}",
"private void sendNotify(JSONObject notification, String staffID) {\r\n JsonObje... | [
"0.756923",
"0.71472937",
"0.7072219",
"0.7052292",
"0.6733022",
"0.67217344",
"0.644688",
"0.64277786",
"0.6370838",
"0.6368004",
"0.63637304",
"0.6340248",
"0.6315421",
"0.6294535",
"0.623733",
"0.6233957",
"0.6200232",
"0.61917555",
"0.6183764",
"0.61729646",
"0.6172911",
... | 0.0 | -1 |
end of run method... | public boolean isValueGet() {
return valueGet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"p... | [
"0.7782636",
"0.7639323",
"0.7639323",
"0.762615",
"0.762615",
"0.75728315",
"0.7535356",
"0.75307703",
"0.75307703",
"0.75218785",
"0.75038224",
"0.74753886",
"0.74501497",
"0.7363434",
"0.7353781",
"0.7353781",
"0.7341838",
"0.72869676",
"0.7247068",
"0.7214052",
"0.7212026... | 0.0 | -1 |
false close, true open. | private boolean open(final int status) {
return Objects.equals(status, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean open() {\n\t\treturn open(false);\n\t}",
"boolean open();",
"public void open() {\n this.isClosed = false;\n }",
"public void close() {\n close = true;\n }",
"@Override\n\tpublic void closeIfStillOpen() {\n\n\t}",
"public boolean open() {\n\n return true;\n }"... | [
"0.76932186",
"0.76289475",
"0.75283235",
"0.73969007",
"0.73269403",
"0.731739",
"0.71747196",
"0.7153622",
"0.71100706",
"0.7098701",
"0.70770776",
"0.70770776",
"0.7075792",
"0.7074049",
"0.70658314",
"0.70543593",
"0.7019882",
"0.7009434",
"0.69936067",
"0.6981801",
"0.69... | 0.0 | -1 |
BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); | public void readTestcase(BufferedReader br) throws IOException{
testcases=Integer.parseInt(br.readLine());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyInputStream()\n {\n in = new BufferedReader\n (new InputStreamReader(System.in));\n }",
"OutputStream getStdin();",
"public String Get_Input()throws IOException{\r\n\t\tString input=\"\";\r\n\t\tInputStreamReader converter = new InputStreamReader(System.in);\r\n\t\tBufferedReade... | [
"0.7524985",
"0.70503765",
"0.6994383",
"0.6814538",
"0.6713509",
"0.66611755",
"0.6618324",
"0.65547657",
"0.6552924",
"0.6512248",
"0.64937323",
"0.6447457",
"0.6435025",
"0.64340365",
"0.64177114",
"0.6416354",
"0.63605946",
"0.6358812",
"0.6357953",
"0.63576293",
"0.62839... | 0.0 | -1 |
Insert controller method that inserts the story into the database | @PostMapping(value = "/insertstory")
public void insertPost(@RequestBody String jsonString) {
Story s = null;
try {
s = new ObjectMapper().readValue(jsonString, Story.class);
} catch (IOException e) {
e.printStackTrace();
}
loggy.info("Insert Story Controller Accessed");
storyServ.insert(s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int insert(Storydetail record);",
"public void submitStory(Story story) {\n storyRepository.save(story);\n }",
"@Override\n\tpublic Tutorial insert(Tutorial t) {\n\t\treturn cotizadorRepository.save(t);\n\n\t\t\n\t}",
"int insert(BlogDetails record);",
"public void insertCourse(){\n \n ... | [
"0.74322546",
"0.6988823",
"0.66247684",
"0.64735055",
"0.6437458",
"0.6334962",
"0.63190925",
"0.6278791",
"0.62759835",
"0.62422705",
"0.62412375",
"0.6207457",
"0.62072015",
"0.62049365",
"0.6188785",
"0.6159968",
"0.6157704",
"0.6112649",
"0.61125076",
"0.6063299",
"0.604... | 0.730545 | 1 |
Controller method that updates the story in the database | @PutMapping(value = "/updatestory")
public void updatePost(@RequestBody String jsonString) {
Story s = null;
try {
s = new ObjectMapper().readValue(jsonString, Story.class);
} catch (IOException e) {
e.printStackTrace();
}
loggy.info("Update Story Controller Accessed");
storyServ.update(s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SecureSocial.SecuredAction\r\n\tpublic static Result editStory(Long storyId) throws ModelAlreadyExistsException, IOException, ModelNotFountException {\n\t\tUser currentuser = getCurrentUser();\r\n\t\tStory story = Story.findById(storyId);\r\n\t\tif (story == null) return badRequest(\"Invalid story id.\");\r\n\t\... | [
"0.6620543",
"0.64227664",
"0.6059151",
"0.60181814",
"0.6017111",
"0.5953755",
"0.5917033",
"0.59151244",
"0.5866172",
"0.5865318",
"0.5855343",
"0.58121735",
"0.5802287",
"0.5761895",
"0.5752114",
"0.57503444",
"0.574792",
"0.572567",
"0.57228106",
"0.57196474",
"0.5704822"... | 0.6854414 | 0 |
Controller method that selects all storys based on the user email | @GetMapping(value="{email}/userstorys")
public @ResponseBody List<Story> selectUserPosts(@PathVariable("email") String email) {
loggy.info("List of a User's Stories pulled from the database");
return storyServ.selectStoriesByEmail(email);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void queryStoriesFromUser() {\n ParseQuery<Story> query = ParseQuery.getQuery(Story.class);\n // include objects related to a story\n query.include(Story.KEY_AUTHOR);\n query.include(Story.KEY_ITEM);\n query.include(Story.KEY_LIST);\n query.include(Story.KEY_CATEGO... | [
"0.57785565",
"0.56109494",
"0.54366237",
"0.5370971",
"0.52851164",
"0.52748895",
"0.5256146",
"0.51947576",
"0.51901954",
"0.5167549",
"0.51502633",
"0.51501",
"0.51501",
"0.51426315",
"0.5136621",
"0.51287377",
"0.5107799",
"0.5068229",
"0.5062864",
"0.505642",
"0.5055675"... | 0.7522903 | 0 |
Controller method that selects all storys from all users | @GetMapping(value="/allstorys")
public @ResponseBody List<Story> selectAllPosts() {
loggy.info("List of all Stories pulled from the database");
return storyServ.selectAllStories();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void queryStoriesFromUser() {\n ParseQuery<Story> query = ParseQuery.getQuery(Story.class);\n // include objects related to a story\n query.include(Story.KEY_AUTHOR);\n query.include(Story.KEY_ITEM);\n query.include(Story.KEY_LIST);\n query.include(Story.KEY_CATEGO... | [
"0.6826423",
"0.63526076",
"0.5994839",
"0.5788068",
"0.56902313",
"0.56902313",
"0.5662239",
"0.55214715",
"0.5438012",
"0.54352593",
"0.54224",
"0.5421002",
"0.53604716",
"0.534857",
"0.53451705",
"0.5330724",
"0.5326049",
"0.5323832",
"0.53012204",
"0.5285099",
"0.52450526... | 0.65775365 | 1 |
This class was generated by Apache CXF 2.6.2 20130328T09:31:29.24805:00 Generated source version: 2.6.2 | @WebService(targetNamespace = "http://payment.services.adyen.com", name = "PaymentPortType")
@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})
public interface PaymentPortType {
@WebResult(name = "captureResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "capture", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Capture")
@WebMethod
@ResponseWrapper(localName = "captureResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.CaptureResponse")
public com.adyen.services.payment.ModificationResult capture(
@WebParam(name = "modificationRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.ModificationRequest modificationRequest
) throws ServiceException;
@WebResult(name = "refundResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "refund", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Refund")
@WebMethod
@ResponseWrapper(localName = "refundResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.RefundResponse")
public com.adyen.services.payment.ModificationResult refund(
@WebParam(name = "modificationRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.ModificationRequest modificationRequest
) throws ServiceException;
@WebResult(name = "result", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "fundTransfer", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.FundTransfer")
@WebMethod
@ResponseWrapper(localName = "fundTransferResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.FundTransferResponse")
public com.adyen.services.payment.FundTransferResult fundTransfer(
@WebParam(name = "request", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.FundTransferRequest request
) throws ServiceException;
@WebResult(name = "authoriseReferralResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "authoriseReferral", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.AuthoriseReferral")
@WebMethod
@ResponseWrapper(localName = "authoriseReferralResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.AuthoriseReferralResponse")
public com.adyen.services.payment.ModificationResult authoriseReferral(
@WebParam(name = "modificationRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.ModificationRequest modificationRequest
) throws ServiceException;
@WebResult(name = "result", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "refundWithData", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.RefundWithData")
@WebMethod
@ResponseWrapper(localName = "refundWithDataResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.RefundWithDataResponse")
public com.adyen.services.payment.PaymentResult refundWithData(
@WebParam(name = "request", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.PaymentRequest request
) throws ServiceException;
@WebResult(name = "cancelResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "cancel", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Cancel")
@WebMethod
@ResponseWrapper(localName = "cancelResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.CancelResponse")
public com.adyen.services.payment.ModificationResult cancel(
@WebParam(name = "modificationRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.ModificationRequest modificationRequest
) throws ServiceException;
@WebResult(name = "paymentResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "authorise3d", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Authorise3D")
@WebMethod(operationName = "authorise3d")
@ResponseWrapper(localName = "authorise3dResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Authorise3DResponse")
public com.adyen.services.payment.PaymentResult authorise3D(
@WebParam(name = "paymentRequest3d", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.PaymentRequest3D paymentRequest3D
) throws ServiceException;
@WebResult(name = "response", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "balanceCheck", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.BalanceCheck")
@WebMethod
@ResponseWrapper(localName = "balanceCheckResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.BalanceCheckResponse")
public com.adyen.services.payment.BalanceCheckResult balanceCheck(
@WebParam(name = "request", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.BalanceCheckRequest request
) throws ServiceException;
@WebResult(name = "response", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "directdebit", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Directdebit")
@WebMethod
@ResponseWrapper(localName = "directdebitResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.DirectdebitResponse")
public com.adyen.services.payment.DirectDebitResponse2 directdebit(
@WebParam(name = "request", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.DirectDebitRequest request
) throws ServiceException;
@WebResult(name = "cancelOrRefundResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "cancelOrRefund", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.CancelOrRefund")
@WebMethod
@ResponseWrapper(localName = "cancelOrRefundResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.CancelOrRefundResponse")
public com.adyen.services.payment.ModificationResult cancelOrRefund(
@WebParam(name = "modificationRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.ModificationRequest modificationRequest
) throws ServiceException;
@WebResult(name = "paymentResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "authorise", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.Authorise")
@WebMethod
@ResponseWrapper(localName = "authoriseResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.AuthoriseResponse")
public com.adyen.services.payment.PaymentResult authorise(
@WebParam(name = "paymentRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.PaymentRequest paymentRequest
) throws ServiceException;
@WebResult(name = "paymentResult", targetNamespace = "http://payment.services.adyen.com")
@RequestWrapper(localName = "checkFraud", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.CheckFraud")
@WebMethod
@ResponseWrapper(localName = "checkFraudResponse", targetNamespace = "http://payment.services.adyen.com", className = "com.adyen.services.payment.CheckFraudResponse")
public com.adyen.services.payment.PaymentResult checkFraud(
@WebParam(name = "paymentRequest", targetNamespace = "http://payment.services.adyen.com")
com.adyen.services.payment.PaymentRequest paymentRequest
) throws ServiceException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceM... | [
"0.66662884",
"0.6506979",
"0.64188504",
"0.6404088",
"0.6380656",
"0.6370897",
"0.6210099",
"0.6188548",
"0.6181135",
"0.61239904",
"0.6114258",
"0.6109316",
"0.6101272",
"0.60675263",
"0.6064094",
"0.6061495",
"0.60570204",
"0.604314",
"0.60151064",
"0.59824544",
"0.5964172... | 0.5553162 | 93 |
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() {
javax.swing.JScrollPane scrollPane = new javax.swing.JScrollPane();
tree = new javax.swing.JTree();
setMinimumSize(new java.awt.Dimension(200, 300));
tree.setModel(treeModel);
tree.setRootVisible(false);
scrollPane.setViewportView(tree);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(scrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(scrollPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
);
} | {
"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.73201853",
"0.7291607",
"0.7291607",
"0.7291607",
"0.7285772",
"0.7248832",
"0.721371",
"0.72083634",
"0.71965843",
"0.7190274",
"0.71847606",
"0.71592176",
"0.71481156",
"0.70935035",
"0.70799935",
"0.70570904",
"0.6987588",
"0.6977819",
"0.69557554",
"0.6953564",
"0.6945... | 0.0 | -1 |
Returns a random AttributeFactory impl | public static AttributeFactory newAttributeFactory(Random random) {
switch (random.nextInt(3)) {
case 0:
return TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY;
case 1:
return org.apache.lucene.analysis.Token.TOKEN_ATTRIBUTE_FACTORY;
case 2:
return AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY;
default:
throw new AssertionError("Please fix the Random.nextInt() call above");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static AttributeFactory newAttributeFactory() {\n\t\treturn newAttributeFactory(random());\n\t}",
"public interface RandomAttrGeneratorFactory {\n\n RandomAttributeGenerator getRandomAttrGenerator(JSONObject attributeConfig) throws InvalidConfigException;\n}",
"Attribute createAttribute();",
"Attri... | [
"0.87514716",
"0.7632452",
"0.701917",
"0.701917",
"0.62380266",
"0.6202888",
"0.6155362",
"0.61542064",
"0.61492765",
"0.61268467",
"0.610202",
"0.5918548",
"0.5885414",
"0.5854577",
"0.5842591",
"0.58317435",
"0.5828244",
"0.57808846",
"0.57516974",
"0.5697439",
"0.5654443"... | 0.8019949 | 1 |
Returns a random AttributeFactory impl | public static AttributeFactory newAttributeFactory() {
return newAttributeFactory(random());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static AttributeFactory newAttributeFactory(Random random) {\n\t\tswitch (random.nextInt(3)) {\n\t\tcase 0:\n\t\t\treturn TokenStream.DEFAULT_TOKEN_ATTRIBUTE_FACTORY;\n\t\tcase 1:\n\t\t\treturn org.apache.lucene.analysis.Token.TOKEN_ATTRIBUTE_FACTORY;\n\t\tcase 2:\n\t\t\treturn AttributeFactory.DEFAULT_ATTR... | [
"0.8019159",
"0.7633315",
"0.7020061",
"0.7020061",
"0.62383455",
"0.6202497",
"0.6155831",
"0.61532736",
"0.6150741",
"0.6125777",
"0.6101744",
"0.5917458",
"0.58865005",
"0.5856044",
"0.5841644",
"0.58306444",
"0.582959",
"0.5781401",
"0.5752963",
"0.5697897",
"0.5655088",
... | 0.87520385 | 0 |
Called just before this Command runs the first time | protected void initialize() {
Robot.gearIntake.setIsDown(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void preRun() {\n super.preRun();\n }",
"protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}",
"@Override\n public void beforeFirstLogic() {\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"protected void onFirstUse() {}",
"@O... | [
"0.7113986",
"0.6542487",
"0.64347786",
"0.6433418",
"0.64082474",
"0.6353506",
"0.6309701",
"0.62537354",
"0.62473047",
"0.62407833",
"0.6167777",
"0.6163407",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.61080366",
"0.608483",
"0.608483",
"0.60805327"... | 0.0 | -1 |
Called at a rate of 50 hz when this command is running | protected void execute() {
Robot.gearIntake.setGearRollerSpeed(-.7);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
... | [
"0.6536313",
"0.6536313",
"0.64788884",
"0.64788884",
"0.64788884",
"0.64788884",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",
"0.6468697",... | 0.0 | -1 |
when this returns true, the command will stop, and the end method will be called | protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endCommand();",
"@Override\n public boolean isEnding() {\n return false;\n }",
"protected void end() {\n \tRobot.conveyor.stop();\n }",
"protected void end() {\n\t\tRobot.conveyor.Stop();\n\t}",
"protected void end()\n\t{\n\t\tstop();\n\t}",
"private Boolean quitCommand() {... | [
"0.7998673",
"0.72074896",
"0.7041473",
"0.69713545",
"0.69350505",
"0.6929109",
"0.6924111",
"0.68974453",
"0.6887337",
"0.6884323",
"0.6863384",
"0.6855089",
"0.6839359",
"0.68207806",
"0.67961067",
"0.6739766",
"0.67379916",
"0.6665185",
"0.6652577",
"0.6651714",
"0.665171... | 0.0 | -1 |
Called once after isFinished returns true | protected void end() {
Robot.gearIntake.setIsDown(false);
Robot.gearIntake.setGearRollerSpeed(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\... | [
"0.85859007",
"0.854002",
"0.83345413",
"0.8331934",
"0.8331934",
"0.830716",
"0.83051914",
"0.8299351",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.82780725",
"0.... | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | protected void interrupted() {
end();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi... | [
"0.5763735",
"0.5597857",
"0.5525979",
"0.5434967",
"0.53826046",
"0.53644043",
"0.5349786",
"0.5344097",
"0.5329482",
"0.53283983",
"0.5299414",
"0.5261541",
"0.5256005",
"0.52316135",
"0.52242804",
"0.52031666",
"0.5192441",
"0.5177707",
"0.5162963",
"0.51539654",
"0.514155... | 0.0 | -1 |
Returns the project base dir. | public File getProjectDir() {
return projectDir;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == nul... | [
"0.828859",
"0.7964135",
"0.7800685",
"0.7527165",
"0.7527165",
"0.7461411",
"0.7321581",
"0.72593486",
"0.72559994",
"0.7253069",
"0.7239564",
"0.7213914",
"0.710142",
"0.70990115",
"0.70781726",
"0.70089525",
"0.6937862",
"0.6931648",
"0.6929088",
"0.6892923",
"0.68435013",... | 0.70360243 | 15 |
Add JSON Type Definition. | public void addLib(String lib) {
getLibs().add(lib);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addType(TypeData type) { types.add(type); }",
"Builder addAdditionalType(String value);",
"public void addDojoType(String type) {\n dojoTypes.add(type);\n }",
"public boolean supportsJsonType() {\n return false;\n }",
"public void setJsonTypeAttributeName(String jsonTypeAttributeN... | [
"0.60330456",
"0.6004422",
"0.58843356",
"0.5882957",
"0.58788866",
"0.5849704",
"0.5793892",
"0.57286793",
"0.5695705",
"0.5610205",
"0.5571212",
"0.55312675",
"0.5517941",
"0.5493612",
"0.54785687",
"0.5472355",
"0.5439087",
"0.5429448",
"0.53923726",
"0.53840756",
"0.53744... | 0.0 | -1 |
Return the JSON Type Defintnions of the tern project. | public List getLibs() {
List libs = (List) super.get(LIBS_FIELD_NAME);
if (libs == null) {
libs = new JSONArray();
super.put(LIBS_FIELD_NAME, libs);
}
return libs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getFileType() {return \"json\";}",
"public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }",
"java.lang.String getMetadataJson();",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllPlatformTypes\")\n List<JsonType> types();",
"@GET\n... | [
"0.6217466",
"0.5964731",
"0.58527166",
"0.5816686",
"0.56840646",
"0.5653235",
"0.5615484",
"0.56144136",
"0.5596874",
"0.55146384",
"0.5508736",
"0.54869556",
"0.54854774",
"0.5459499",
"0.54540294",
"0.5429191",
"0.537594",
"0.5330559",
"0.532218",
"0.53201437",
"0.5280042... | 0.0 | -1 |
Return the JSON plugins of the tern project. | public JSONObject getPlugins() {
JSONObject plugins = (JSONObject) super.get(PLUGINS_FIELD_NAME);
if (plugins == null) {
plugins = new JSONObject();
super.put(PLUGINS_FIELD_NAME, plugins);
}
return plugins;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JsonObject getPluginData() {\n JsonObject data = new JsonObject();\n \n String pluginName = plugin.getDescription().getName();\n String pluginVersion = plugin.getDescription().getVersion();\n \n data.addProperty(\"pluginName\", pluginName); // Append the name of the... | [
"0.65255725",
"0.59779996",
"0.5915382",
"0.5891829",
"0.58827233",
"0.57366854",
"0.5733422",
"0.56787366",
"0.56431407",
"0.5633737",
"0.56313705",
"0.55324733",
"0.55317795",
"0.551142",
"0.55043954",
"0.5492621",
"0.54886496",
"0.5486217",
"0.5465473",
"0.5458473",
"0.544... | 0.7463628 | 0 |
Save the tern project in the file .ternproject of the project base dir. | public void save() throws IOException {
projectDir.mkdirs();
Writer writer = null;
try {
writer = new FileWriter(new File(projectDir, TERN_PROJECT));
super.writeJSONString(writer);
} finally {
if (writer != null) {
IOUtils.closeQuietly(writer);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveProject() {\n File f = new File(getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), projectName + File.separator + \"render.cfg\");\n\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"frames\", frames);\n json.put(\"a\", a);\n json... | [
"0.66717",
"0.65388453",
"0.6268378",
"0.61749226",
"0.5895884",
"0.5765773",
"0.5765773",
"0.5765773",
"0.5684869",
"0.5660069",
"0.5649781",
"0.5633278",
"0.55994695",
"0.5539392",
"0.54987115",
"0.5440561",
"0.5433399",
"0.5350663",
"0.5337343",
"0.5330298",
"0.52624124",
... | 0.6764319 | 0 |
Load the tern project from the .ternproject of the project base dir. | public void load() throws IOException {
File file = new File(projectDir, TERN_PROJECT);
if (file.exists()) {
JSONParser parser = new JSONParser();
try {
JSONObject result = (JSONObject) parser.parse(new FileReader(
file));
super.putAll(result);
} catch (ParseException e) {
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }",
"public void loadProject(String arg) throws IOException {\n Project newProject = Project.readProject(arg);\n newProject.setConfiguration(project.getConfiguration());\n project = newProject;\n projectLo... | [
"0.7067433",
"0.66341275",
"0.61093885",
"0.6050248",
"0.5963828",
"0.586185",
"0.58464026",
"0.5819891",
"0.5715579",
"0.5686132",
"0.5658448",
"0.5624333",
"0.559578",
"0.55682325",
"0.5530129",
"0.5530129",
"0.5530129",
"0.54486406",
"0.5439315",
"0.5439005",
"0.5319287",
... | 0.62613386 | 2 |
Set the tern file manager. | public void setFileManager(TernFileManager<T> fileManager) {
this.fileManager = fileManager;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TernFileManager<T> getFileManager() {\r\n\t\treturn fileManager;\r\n\t}",
"public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}",
"public void setManager(String manager) {\n this.manager = manager;\n }",
"public void setManager(String manage... | [
"0.69240314",
"0.5936387",
"0.57797277",
"0.57630605",
"0.5736344",
"0.5658925",
"0.56549984",
"0.56498545",
"0.551387",
"0.5476838",
"0.5475209",
"0.5473063",
"0.5451022",
"0.5426948",
"0.5379898",
"0.5358604",
"0.53490853",
"0.5346322",
"0.5343523",
"0.5305061",
"0.5304129"... | 0.8087133 | 0 |
Returns the setted tern file manager and null otherwise. | public TernFileManager<T> getFileManager() {
return fileManager;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFileManager(TernFileManager<T> fileManager) {\r\n\t\tthis.fileManager = fileManager;\r\n\t}",
"public synchronized String getManager()\r\n {\r\n return manager;\r\n }",
"public String getManager() {\n return manager;\n }",
"public final T getManager() {\n return this.mana... | [
"0.6243316",
"0.61320245",
"0.604685",
"0.60181683",
"0.59858453",
"0.5975723",
"0.5875408",
"0.5722723",
"0.5689542",
"0.5684058",
"0.56504506",
"0.5628172",
"0.56235456",
"0.5614991",
"0.5591444",
"0.55379903",
"0.552198",
"0.5513572",
"0.5513572",
"0.55099535",
"0.5489695"... | 0.74858135 | 0 |
////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////// Database Handling ///////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////// | public static DatabaseHelper getDatabaseHelper()
{
return databaseHelper;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getDatabase(){\n\n }",
"Object getDB();",
"private boolean inDatabase() {\r\n \t\treturn inDatabase(0, null);\r\n \t}",
"private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }",
"@Override\r\n\tpublic b... | [
"0.67735964",
"0.6701906",
"0.6692698",
"0.6641504",
"0.662472",
"0.66019124",
"0.65997833",
"0.6593691",
"0.65115505",
"0.65022874",
"0.648649",
"0.648017",
"0.6453957",
"0.64453495",
"0.64286596",
"0.64142716",
"0.63455796",
"0.6277202",
"0.62749135",
"0.62477785",
"0.62465... | 0.0 | -1 |
////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////// User Name Handling ///////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////// | public static String createPassword()
{
return getRandomPwd(4);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"java.lang.String getUserName();",
"private void getUserName() {\n if (mAuth.getCurrentUser() != null) {\n nameOfCurrentUser = mAuth.getCurrentUser().getDisplayName();\n Log.d(TAG, \"getUserName: getDisplayName ... | [
"0.7743013",
"0.7743013",
"0.7743013",
"0.76034766",
"0.7363566",
"0.7362821",
"0.7362821",
"0.729844",
"0.7269126",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7240389",
"0.7230173",
"0.7200226",
"0.7127713",
"... | 0.0 | -1 |
/////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////// Password Handling ///////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////// | public static String[] encrypt(String password) throws NoSuchAlgorithmException, InvalidKeySpecException {
byte[] salt = new byte[8];
new Random().nextBytes(salt);
return encrypt(password, salt);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"String getPassword();",
"String getPassword();",
"St... | [
"0.79550064",
"0.79550064",
"0.79550064",
"0.79550064",
"0.79550064",
"0.79550064",
"0.79550064",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7890869",
"0.7748028",
"0.77307403",
"0.7708557",
"0.7708557",
"0.76971... | 0.0 | -1 |
printCursor( MyApplication.getSqLiteDatabase().rawQuery(String.format("SELECT FROM protocolentry ;"), null)); MyApplication.getSqLiteDatabase().execSQL(String.format("UPDATE `user` SET `last_upload`='%s' WHERE `id_user`='%s';", "20150523 11:01:47", "KF031192")); printCursor( MyApplication.getSqLiteDatabase().rawQuery(String.format("SELECT FROM user WHERE `offline_login`= '%d' ;", 0), null)); | public static String[] getUsers2Update()
{
Cursor users2update = MyApplication.getSqLiteDatabase().rawQuery(String.format("SELECT `id_user`FROM user WHERE `session_id`= '%s' ;", "OfflineLogin"), null);
//MyApplication.getSqLiteDatabase().execSQL(String.format("UPDATE `user` SET `offline_login`='%d' WHERE `id_user`='%s';",1, "WJ070785"));
//Cursor users2update = MyApplication.getSqLiteDatabase().rawQuery(String.format("SELECT `id_user`FROM user WHERE `offline_login`= '%d' ;", 1), null);
//users2update.moveToFirst();
//String[] user = new String[1];
//user[0] = users2update.getString(0);
//return user;
if(users2update!=null)
{
String[] u2upd = new String[users2update.getCount()];
for(int i=0;i<users2update.getCount();i++)
{
users2update.moveToNext();
u2upd[i] = users2update.getString(0);
}
return u2upd;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DBCursor execute();",
"public void updateSyncStatus(String id, String status)\n {\n SQLiteDatabase database = this.getWritableDatabase(); \n String updateQuery = \"Update UsersTable set udpateStatus = '\"+ status +\"' where userId=\"+\"'\"+ id +\"'\";\n Log.d(\"query\",updateQuery); ... | [
"0.583611",
"0.574741",
"0.56299376",
"0.5578873",
"0.55716527",
"0.5453053",
"0.5400978",
"0.53630257",
"0.53623617",
"0.5346797",
"0.53259355",
"0.531927",
"0.52962583",
"0.52885497",
"0.52693516",
"0.5268267",
"0.5261176",
"0.5260423",
"0.52467006",
"0.5241266",
"0.5208456... | 0.6289525 | 0 |
sets the ID field. | public PersonBuilderName ID(PersonID ID)
{
edma_value[0] = (ID == null ? null : (((IValueInstance) ID).edma_getValue()));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setID(int value) {\n this.id = value;\n }",
"@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}",
"public void setId(int value) {\r\n ... | [
"0.8217827",
"0.8158989",
"0.813514",
"0.8094095",
"0.8087321",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.80328673",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"... | 0.0 | -1 |
sets the ID field. | public PersonBuilderName ID(Long ID) throws InvalidValueException
{
if(ID != null) PersonIDImpl.edma_validate(ID);
edma_value[0] = (ID == null ? null : (PersonIDImpl.edma_create(ID)));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setID(int value) {\n this.id = value;\n }",
"@Override\n\tpublic void setId(int id) {\n\t\tthis.ID = id;\n\t}",
"public void setId(int value) {\r\n ... | [
"0.8217827",
"0.8158989",
"0.813514",
"0.8094095",
"0.8087321",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.8065683",
"0.80328673",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"0.8010367",
"... | 0.0 | -1 |
sets the fieldID to null. | public PersonBuilderName noID()
{
edma_value[0] = null;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder clearFieldTypeIdNull() {\n \n fieldTypeIdNull_ = false;\n onChanged();\n return this;\n }",
"public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}",
"pub... | [
"0.72613037",
"0.6696243",
"0.6688554",
"0.66571116",
"0.641169",
"0.638488",
"0.63295877",
"0.6304137",
"0.6255719",
"0.6249423",
"0.62256956",
"0.62176687",
"0.6209398",
"0.6208669",
"0.61996824",
"0.61712617",
"0.6149351",
"0.613554",
"0.61340916",
"0.61340916",
"0.6134091... | 0.0 | -1 |
sets the name field. | public PersonBuilderEmail name(Name name)
{
if(name == null) throw new NullPointerException("The field name in the Person ValueDomain may not be null");
edma_value[1] = ((IValueInstance) name).edma_getValue();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setName(String name) {_name = name;}",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name){\r\n\t... | [
"0.83468306",
"0.8326121",
"0.8310111",
"0.8310111",
"0.83034045",
"0.83034045",
"0.83034045",
"0.83030707",
"0.83004117",
"0.8299998",
"0.8294122",
"0.828977",
"0.8279331",
"0.82742083",
"0.8268091",
"0.8260592",
"0.82598",
"0.82598",
"0.82598",
"0.82598",
"0.8258992",
"0.... | 0.0 | -1 |
sets the name field. | public PersonBuilderEmail name(String name) throws InvalidValueException
{
if(name != null) NameImpl.edma_validate(name);
if(name == null) throw new NullPointerException("The field name in the Person ValueDomain may not be null");
edma_value[1] = NameImpl.edma_create(name);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setName(String name) {_name = name;}",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name){\r\n\t... | [
"0.83468306",
"0.8326121",
"0.8310111",
"0.8310111",
"0.83034045",
"0.83034045",
"0.83034045",
"0.83030707",
"0.83004117",
"0.8299998",
"0.8294122",
"0.828977",
"0.8279331",
"0.82742083",
"0.8268091",
"0.8260592",
"0.82598",
"0.82598",
"0.82598",
"0.82598",
"0.8258992",
"0.... | 0.0 | -1 |
sets the email field. | public PersonBuilderMobile email(Email email)
{
if(email == null) throw new NullPointerException("The field email in the Person ValueDomain may not be null");
edma_value[2] = ((IValueInstance) email).edma_getValue();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setEmail(String email);",
"void setEmail(String email);",
"@Override\n public void setEmail(String email) {\n\n }",
"public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }",
"public void setEmail(String email);",
"private void setEmail(S... | [
"0.83187366",
"0.83187366",
"0.8219136",
"0.82066447",
"0.81564516",
"0.8120229",
"0.8062614",
"0.80342746",
"0.8018626",
"0.8018626",
"0.8013018",
"0.8008295",
"0.7987857",
"0.79837066",
"0.7970005",
"0.79419136",
"0.79336137",
"0.79259557",
"0.79050833",
"0.78883",
"0.78731... | 0.0 | -1 |
sets the email field. | public PersonBuilderMobile email(String email) throws InvalidValueException
{
if(email != null) EmailImpl.edma_validate(email);
if(email == null) throw new NullPointerException("The field email in the Person ValueDomain may not be null");
edma_value[2] = EmailImpl.edma_create(email);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setEmail(String email);",
"void setEmail(String email);",
"@Override\n public void setEmail(String email) {\n\n }",
"public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }",
"public void setEmail(String email);",
"private void setEmail(S... | [
"0.83187366",
"0.83187366",
"0.8219136",
"0.82066447",
"0.81564516",
"0.8120229",
"0.8062614",
"0.80342746",
"0.8018626",
"0.8018626",
"0.8013018",
"0.8008295",
"0.7987857",
"0.79837066",
"0.7970005",
"0.79419136",
"0.79336137",
"0.79259557",
"0.79050833",
"0.78883",
"0.78731... | 0.0 | -1 |
sets the mobile field. | public PersonBuilderBalance mobile(Mobile mobile)
{
if(mobile == null) throw new NullPointerException("The field mobile in the Person ValueDomain may not be null");
edma_value[3] = ((IValueInstance) mobile).edma_getValue();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}",
"public modifyMobile() {\n\t\tsuper();\n\t}",
"public void setMobile(String mobile) {\n this.mobile = mobile;\n }",
"public void setMobile(String mobile) {\n this.mobile = mobile;\n }",
"public void setMobile(St... | [
"0.7470558",
"0.74391055",
"0.7427875",
"0.7427875",
"0.7427875",
"0.7427875",
"0.73745596",
"0.7268838",
"0.7234748",
"0.7234748",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7186554",
"0.6933164",
... | 0.0 | -1 |
sets the mobile field. | public PersonBuilderBalance mobile(String mobile) throws InvalidValueException
{
if(mobile != null) MobileImpl.edma_validate(mobile);
if(mobile == null) throw new NullPointerException("The field mobile in the Person ValueDomain may not be null");
edma_value[3] = MobileImpl.edma_create(mobile);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}",
"public modifyMobile() {\n\t\tsuper();\n\t}",
"public void setMobile(String mobile) {\n this.mobile = mobile;\n }",
"public void setMobile(String mobile) {\n this.mobile = mobile;\n }",
"public void setMobile(St... | [
"0.7470558",
"0.74391055",
"0.7427875",
"0.7427875",
"0.7427875",
"0.7427875",
"0.73745596",
"0.7268838",
"0.7234748",
"0.7234748",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7187514",
"0.7186554",
"0.6933164",
... | 0.0 | -1 |
sets the balance field. | public Person balance(NotNegInt balance)
{
if(balance == null) throw new NullPointerException("The field balance in the Person ValueDomain may not be null");
edma_value[4] = ((IValueInstance) balance).edma_getValue();
return new PersonImpl(PersonImpl.edma_create(edma_value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBalance(){\n balance.setBalance();\n }",
"public void setBalance(double bal){\n balance = bal;\r\n }",
"private void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance(float balance) {\n this.balance = balance;\n }",
"public... | [
"0.8209374",
"0.81815076",
"0.80605143",
"0.78799343",
"0.78761756",
"0.7871559",
"0.7832018",
"0.7804058",
"0.7804058",
"0.77828",
"0.7702612",
"0.76907754",
"0.76709914",
"0.7664657",
"0.7645674",
"0.7602954",
"0.7602953",
"0.7602953",
"0.75306636",
"0.7458091",
"0.73305774... | 0.0 | -1 |
sets the balance field. | public Person balance(Integer balance) throws InvalidValueException
{
if(balance != null) NotNegIntImpl.edma_validate(balance);
if(balance == null) throw new NullPointerException("The field balance in the Person ValueDomain may not be null");
edma_value[4] = NotNegIntImpl.edma_create(balance);
return new PersonImpl(PersonImpl.edma_create(edma_value));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBalance(){\n balance.setBalance();\n }",
"public void setBalance(double bal){\n balance = bal;\r\n }",
"private void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance(float balance) {\n this.balance = balance;\n }",
"public... | [
"0.8209374",
"0.81815076",
"0.80605143",
"0.78799343",
"0.78761756",
"0.7871559",
"0.7832018",
"0.7804058",
"0.7804058",
"0.77828",
"0.7702612",
"0.76907754",
"0.76709914",
"0.7664657",
"0.7645674",
"0.7602954",
"0.7602953",
"0.7602953",
"0.75306636",
"0.7458091",
"0.73305774... | 0.0 | -1 |
E' il costruttore della classe Giocatore | public Giocatore(String nome, Casella c, Pedina p) {
setNome(nome);
setPedina(p);
casella = c;
dado = new Dado();
punt_carta = punteggioIniziale;
punt_plastica = punteggioIniziale;
punt_vetro = punteggioIniziale;
punt_metallo = punteggioIniziale;
punt_indifferenziata = punteggioIniziale;
punt_organica = punteggioIniziale;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Gioco(String titolo, int larghezza, int altezza)\n {\n //Inizializzazione degli attributi\n this.larghezza = larghezza;\n this.altezza = altezza;\n this.titolo = titolo;\n gestoreTasti = new GestoreTasti();\n gestoreMouse = new GestoreMouse();\n }",
"public Gasto() {\r\n\t}... | [
"0.72606623",
"0.6723252",
"0.6561057",
"0.6459126",
"0.6435158",
"0.6390917",
"0.6369798",
"0.634655",
"0.6346535",
"0.6309236",
"0.6281146",
"0.62453437",
"0.6240644",
"0.62383866",
"0.62207973",
"0.62098753",
"0.62049615",
"0.61948675",
"0.6187377",
"0.6154623",
"0.6143057... | 0.67303646 | 1 |
/ Metodo che richiama la funzione lancia del Dado | public int lancia() {
lancio = dado.tiraDado();
this.numLanci++;
return lancio;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tvoid geraDados() {\n\n\t}",
"Funcionario(){\n }",
"public void operacao();",
"public void Ordenamiento() {\n\n\t}",
"public void datos_elegidos(){\n\n\n }",
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"public void MieiOrdini()\r\n {\r\n ge... | [
"0.7091167",
"0.7054708",
"0.6969963",
"0.6902925",
"0.68424946",
"0.672638",
"0.6539841",
"0.63536227",
"0.6329878",
"0.6314729",
"0.63094914",
"0.6285575",
"0.6282866",
"0.62817746",
"0.6267593",
"0.624766",
"0.6218606",
"0.6200203",
"0.61624706",
"0.6154461",
"0.6132458",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public ItemStack decrStackSize(int par1, int par2) {
if (this.stack[par1] != null)
{
ItemStack var3;
if (this.stack[par1].stackSize <= par2)
{
var3 = this.stack[par1];
this.stack[par1] = null;
return var3;
}
else
{
var3 = this.stack[par1].splitStack(par2);
if (this.stack[par1].stackSize == 0)
{
this.stack[par1] = null;
}
return var3;
}
}
else
{
return null;
}
} | {
"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 |
Screen field Add this field in the Record's field sequence. | public BaseField setupField(int iFieldSeq)
{
BaseField field = null;
if (iFieldSeq == 0)
field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 1)
// field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 2)
// field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 3)
// field = new StringField(this, DESCRIPTION, 10, null, null);
//if (iFieldSeq == 4)
// field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 5)
// field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 6)
// field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 7)
// field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 8)
// field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 9)
// field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 10)
// field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 11)
field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 12)
field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 13)
// field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 14)
// field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));
//if (iFieldSeq == 15)
// field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 16)
// field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 17)
// field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 18)
// field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 19)
// field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 20)
// field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 21)
// field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 22)
// field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
//if (iFieldSeq == 23)
// field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (iFieldSeq == 24)
field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
if (field == null)
field = super.setupField(iFieldSeq);
return field;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n // field = new TicketScreenRecord_ReportDate(this, REPO... | [
"0.66109145",
"0.64721864",
"0.6453383",
"0.6295053",
"0.61240375",
"0.6116208",
"0.60487825",
"0.59603727",
"0.59589607",
"0.5882597",
"0.5882038",
"0.5841459",
"0.5841135",
"0.57480186",
"0.57159954",
"0.5698202",
"0.5660715",
"0.5633439",
"0.55580044",
"0.55460835",
"0.551... | 0.5793398 | 13 |
TODO Autogenerated method stub | @Override
public List<BusinessconfigStuff> listChildren(Long id) {
return businessconfigStuffDao.listChildren(id);
} | {
"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 save(BusinessconfigStuff businessconfigStuff) {
String maxCode = businessconfigStuffDao.getMaxCode();
if (businessconfigStuff.getId() == null) {
if (maxCode == null) {
businessconfigStuff.setOrdercode("00001");
} else {
StringBuffer sBuffer = new StringBuffer();
sBuffer.append(String.valueOf(Integer.parseInt(maxCode) + 1));
while (sBuffer.length() < 5) {
sBuffer.insert(0, "0");
}
businessconfigStuff.setOrdercode(sBuffer.toString());
}
businessconfigStuffDao.save(businessconfigStuff);
} else {// 修改
businessconfigStuffDao.update(businessconfigStuff);
}
} | {
"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(BusinessconfigStuff businessconfigStuff) {
businessconfigStuffDao.update(businessconfigStuff);
} | {
"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 BusinessconfigStuff getObjectById(long id) {
return businessconfigStuffDao.getObjectById(id);
} | {
"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(long id) {
businessconfigStuffDao.delete(id);
} | {
"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 move(long id, int movetype) throws Exception {
String startOrderCode = getStartOrderCode(id);
String endOrderCode = getEndOrderCode(id);
String orderCode = getOrderCodeById(id);
BusinessconfigStuff stuff = new BusinessconfigStuff();
if(movetype == 1){//向上移动
if (orderCode.equals(startOrderCode)) {
throw new Exception("已经排在此类型分类第一了!");
}
stuff = getnextOrderCodeById(id);
String code = stuff.getOrdercode();
//换码
businessconfigStuffDao.updateordercode(code,id);
businessconfigStuffDao.updateordercode(orderCode, stuff.getId());
}else{
if (orderCode.equals(endOrderCode)) {
throw new Exception("已经排在此类型分类末尾了!");
}
stuff = getbefOrderCodeById(id);
String code = stuff.getOrdercode();
//换码
businessconfigStuffDao.updateordercode(code,id);
businessconfigStuffDao.updateordercode(orderCode, stuff.getId());
}
} | {
"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 |
Sends a username and password to the coorrect login fields and then clicks the login button | public void login(String userCredentials, String pass) {
driver.findElement(loginTab).click();
driver.findElement(username).sendKeys(userCredentials);
driver.findElement(password).sendKeys(pass);
driver.findElement(loginBtn).click();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}",
"public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }",
"protected void l... | [
"0.7875306",
"0.7841723",
"0.78382564",
"0.77539235",
"0.77095777",
"0.77037334",
"0.7702611",
"0.76555085",
"0.76394206",
"0.7633249",
"0.76080304",
"0.7603246",
"0.75486434",
"0.7540269",
"0.7523925",
"0.7508862",
"0.74795735",
"0.74772006",
"0.74704677",
"0.7453561",
"0.74... | 0.0 | -1 |
looks for a success msg obj and returns true if found | public boolean verifySuccess() {
return driver.findElement(successMsg).isDisplayed();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSuccess();",
"public boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean isSuccess();",
"boolean hasIsSuccess();",
"boolean getSuccess();",
"boolean get... | [
"0.70979166",
"0.70979166",
"0.7035885",
"0.7035885",
"0.7035885",
"0.7035885",
"0.7035885",
"0.7035885",
"0.7035885",
"0.69377667",
"0.69303954",
"0.69303954",
"0.69303954",
"0.69303954",
"0.6722194",
"0.66246307",
"0.6598221",
"0.65506244",
"0.65491915",
"0.651428",
"0.6501... | 0.628146 | 29 |
looks for a failure msg and returns true if found | public boolean verifyFailure() {
return driver.findElement(failMsg).isDisplayed();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasErrmsg();",
"boolean isFailure();",
"boolean hasErrormessage();",
"boolean isFail();",
"public void failed(String msg) {\n failureMsg = msg;\n }",
"boolean hasErrorMessage();",
"boolean hasErrorMessage();",
"boolean hasErr();",
"String getFailureMessage();",
"private ... | [
"0.7341845",
"0.6887494",
"0.6853014",
"0.6751806",
"0.6716231",
"0.6647062",
"0.6647062",
"0.6538942",
"0.64931715",
"0.63832533",
"0.6366275",
"0.62985146",
"0.62433004",
"0.6234676",
"0.6210871",
"0.6206882",
"0.61374956",
"0.60914963",
"0.606767",
"0.60173535",
"0.6017353... | 0.67021364 | 5 |
Goes into the user tab and then the users profile | public void clickUserProfile(){
driver.findElement(userTab).click();
driver.findElement(profileBtn).click();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToProfilePage() {\n\t\tUtil.element(userTab, driver).click();\n\t}",
"public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}",
"private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }",
... | [
"0.8645963",
"0.83499503",
"0.8064447",
"0.74151504",
"0.7190705",
"0.7189568",
"0.71723133",
"0.7152176",
"0.71128905",
"0.70882785",
"0.6930196",
"0.6925059",
"0.68264353",
"0.67562586",
"0.67428625",
"0.6721783",
"0.67207444",
"0.6692543",
"0.6655698",
"0.6564587",
"0.6505... | 0.7589065 | 3 |
Created by rxia on 2015/9/2. | public interface BaseDAO<T> {
/**
* 添加
*
* @param t
* @return
*/
Integer addBean(T t);
/**
* 更新
*
* @param t
*/
void updateBean(T t);
/**
* 查询
*
* @param t
* @return
*/
List<T> queryBeans(T t);
/**
* 统计
*
* @param t
* @return
*/
Integer countBean(T t);
/**
* 查找
*
* @param t
* @return
*/
T findBean(T t);
void deleteBean(T t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.6309828",
"0.61599654",
"0.6148804",
"0.6109348",
"0.60332316",
"0.60332316",
"0.6007977",
"0.59713763",
"0.592152",
"0.59108275",
"0.5905983",
"0.5898175",
"0.58946",
"0.58945227",
"0.58800036",
"0.5873994",
"0.5873994",
"0.58731097",
"0.58652306",
"0.58520716",
"0.582744... | 0.0 | -1 |
Created by secured on 2016. 03. 13.. | public interface IWheelVisualization {
void ModifyVehicleSpeed(float speed);
void ModifyVehicleOrientation(float degree);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubl... | [
"0.6045915",
"0.5909202",
"0.588024",
"0.57708704",
"0.57244337",
"0.57107145",
"0.57107145",
"0.56840646",
"0.5630598",
"0.56246704",
"0.55895513",
"0.5581347",
"0.5575422",
"0.5568091",
"0.5544943",
"0.55322605",
"0.5522802",
"0.552099",
"0.5519706",
"0.5519706",
"0.5519706... | 0.0 | -1 |
This method is used to get all role in database and return a list role in json | @RequestMapping(value = "/factory/list", produces = "application/json", method = RequestMethod.GET)
@ResponseBody
public Map<String, Object> getAllFactory() {
log.info(String.format("getAllFactory in class %s", getClass()));
try {
log.debug("getting list of all Factory and return json");
Map<String, Object> result = new HashMap<String, Object>();
List<FactoryModel> ls = ser.getAllFactoryModel();
result.put("status", "ok");
result.put("list", ls);
log.debug("getAllFactory successful");
return result;
} catch (Exception e) {
log.error(String.format("getAllFactory in class %s has error: %s",
getClass(), e.getMessage()));
throw e;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Roles> selectAllRole(){\n\treturn rolesDao.findAll();\n\t}",
"public List<Role> getAllRoles();",
"public List<Role> getAllRole() {\n\t\treturn (List<Role>) roleDao.findAll();\n\t}",
"@Override\r\n\tpublic List<Role> getAllRole() {\n\t\tString hql = \"from Role\";\r\n\t\treturn (List<Role>) getHib... | [
"0.80865365",
"0.8046145",
"0.7957541",
"0.79492396",
"0.78394705",
"0.7833095",
"0.7812486",
"0.78033346",
"0.7776131",
"0.77313304",
"0.77118325",
"0.77061355",
"0.7686163",
"0.7661568",
"0.76520574",
"0.7596761",
"0.75832975",
"0.7582119",
"0.7569901",
"0.75397843",
"0.750... | 0.0 | -1 |
Returns whether this account is verified. This method also validates if the point of verification is in the past. | default boolean isVerified() {
return getVerifiedAt().filter(e -> e.isBefore(Instant.now())).map(e -> Boolean.TRUE)
.orElse(Boolean.FALSE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVerified() {\r\n return verified;\r\n }",
"public boolean isVerified() {\n return verified;\n }",
"public boolean isEmailVerified() {\n return emailVerified;\n }",
"public boolean checkLoggedIn() {\n FirebaseUser user = firebaseAuth.getCurrentUser();\n\n ... | [
"0.7477576",
"0.74605405",
"0.6984075",
"0.63595545",
"0.6289072",
"0.6194011",
"0.6035215",
"0.5962014",
"0.58938473",
"0.5891301",
"0.5718161",
"0.5678151",
"0.5651478",
"0.55899554",
"0.55560654",
"0.5550308",
"0.55466074",
"0.55462503",
"0.5530235",
"0.55301744",
"0.55298... | 0.694761 | 3 |
Creates new form keyrelease | public keyrelease() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void insertKeys(Stage currentStage, String text, String iv, String encrypt) {\n Label labelS = new Label(\"Insert your private key\");\n TextArea insertS = new TextArea();\n Label labelP = new Label(\"Insert your public key\");\n TextArea insertP = new TextArea();\n ... | [
"0.55648607",
"0.54978997",
"0.54532075",
"0.5422671",
"0.5324815",
"0.5291592",
"0.5260018",
"0.51758045",
"0.51567644",
"0.51013184",
"0.5081732",
"0.50536174",
"0.5046639",
"0.5029936",
"0.5018819",
"0.49804163",
"0.49776682",
"0.4970498",
"0.4951283",
"0.49379897",
"0.493... | 0.62594354 | 0 |
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() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jLabel1.setText("jLabel1");
setClosable(true);
setIconifiable(true);
setMaximizable(true);
setResizable(true);
setTitle("Key Released");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel2.setText("Key Released");
jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
jTextField1KeyReleased(evt);
}
});
jLabel3.setText("Masukan Kata 1 : ");
jTextField2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField2ActionPerformed(evt);
}
});
jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
jTextField2KeyReleased(evt);
}
});
jLabel4.setText("Masukan Kata 2 :");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(50, 50, 50)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jTextField1)
.addComponent(jLabel2)
.addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 118, Short.MAX_VALUE))
.addContainerGap(140, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel2)
.addGap(36, 36, 36)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4))
.addContainerGap(151, Short.MAX_VALUE))
);
pack();
} | {
"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.73200226",
"0.7291205",
"0.7291205",
"0.7291205",
"0.7286934",
"0.72486174",
"0.72148067",
"0.7208562",
"0.7196016",
"0.7190541",
"0.71850747",
"0.71595925",
"0.71484745",
"0.7093441",
"0.708049",
"0.70576906",
"0.6987498",
"0.6977434",
"0.69557697",
"0.6954114",
"0.694637... | 0.0 | -1 |
Vytvori prekladiste danych parametru. Nastavi pocet sudu na defaultni hodnotu. | public Prekladiste(int id, UzelTyp typ, int x, int y, Simulator sim)
{
super(id, typ, x, y, sim);
sklad = PRIPRAVENE_SUDY;
this.vozy = new LinkedList<Auto>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }",
"@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}",
"public... | [
"0.70476556",
"0.6207157",
"0.61070997",
"0.60978734",
"0.5992582",
"0.5927383",
"0.5921769",
"0.5898877",
"0.58714765",
"0.5866734",
"0.5862674",
"0.584032",
"0.58281034",
"0.58000153",
"0.5787244",
"0.57660466",
"0.57619315",
"0.57515997",
"0.5745909",
"0.57382995",
"0.5737... | 0.0 | -1 |
Prihlasi hospodu mezi odberatele od tohoto prekladiste | public void prihlasHospodu(HospodaSud hospoda)
{
hospodySud.put(hospoda.id, hospoda);
//kontrolni vypis
/*
System.out.println(this.id);
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < Main.getVozilaAll().size()) {\n\t\t\tif (!Main.getVozilaAll().get(... | [
"0.6499141",
"0.64317006",
"0.6390314",
"0.63900906",
"0.6383379",
"0.6381455",
"0.6316342",
"0.6246879",
"0.624404",
"0.6224192",
"0.62200564",
"0.61902493",
"0.61652404",
"0.6132534",
"0.6102973",
"0.60533553",
"0.60270846",
"0.6006011",
"0.59713554",
"0.5960355",
"0.594481... | 0.0 | -1 |
Metoda zpracuje co nejvic prijatych objednavek. | public void zpracujObjednavky()
{
int idtmp = 0;
float delkaCesty = 0;
if (this.objednavky.isEmpty())
{
return ;
}
Nakladak nakl = (Nakladak) getVolneAuto();
nakl.poloha[0] = this.poloha[0];
nakl.poloha[1] = this.poloha[1];
Objednavka ob = this.objednavky.remove();
/*System.out.println();
System.out.println("Objednavka hospody:" + ob.id + " se zpracuje pres trasu: ");
*/
delkaCesty += vyberCestu(this.id, ob.id, nakl);
while(nakl.pridejObjednavku(ob))
{
idtmp = ob.id;
ob = vyberObjednavku(ob.id);
if (ob == null)
{
ob=nakl.objednavky.getLast();
break;
}
objednavky.remove(ob);
delkaCesty += vyberCestu(idtmp, ob.id, nakl);
if((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){
//System.out.println("Nakladak ma "+nakl.objem);
nakl.kDispozici = false;
//System.out.println("Auto jede " + delkaCesty + "km");
break;
}
/*
if((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){
//System.out.println("Nakladak ma "+nakl.objem);
nakl.kDispozici = false;
//System.out.println("Auto jede " + delkaCesty + "km");
break;
}
if((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){
//System.out.println("Nakladak ma "+nakl.objem);
nakl.kDispozici = false;
//System.out.println("Auto jede " + delkaCesty + "km");
break;
}*/
}
//cesta zpatky
vyberCestu(ob.id, this.id, nakl);
if (nakl.objem >= 1)
{
nakl.kDispozici = false;
nakl.jede = true;
//vytvoreni nove polozky seznamu pro statistiku
nakl.novaStatCesta();
}
else
{
nakl.resetCesta();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic String getObjetivo() {\n\t\treturn model.getObjetivo();\n\t}",
"public IzvajalecZdravstvenihStoritev() {\n\t}",
"Objet getOb... | [
"0.69381243",
"0.65402347",
"0.64661926",
"0.644989",
"0.639074",
"0.6204489",
"0.6200122",
"0.6151485",
"0.61164445",
"0.61088896",
"0.61066806",
"0.6043192",
"0.60321546",
"0.60242987",
"0.5983332",
"0.5972549",
"0.59500074",
"0.5932781",
"0.5931209",
"0.5930007",
"0.592184... | 0.6797425 | 1 |
Vybere vhodnou cestu mezi dvema uzly a preda uzly, pres ktere tato cesta vede autu | public float vyberCestu(int idStart ,int idCil, Auto auto)
{
//System.out.println("Vybiram cestu");
int id = 0;
float nejblizsi = 2000;
float aktualni = 2000;
float delkaCesty = 0;
Uzel uzel = Simulator.objekty[idStart];
Uzel cil = Simulator.objekty[idCil];
while(!((Simulator.objekty[uzel.id].poloha[0] == Simulator.objekty[cil.id].poloha[0])&&
(Simulator.objekty[uzel.id].poloha[1] == Simulator.objekty[cil.id].poloha[1]))){
//nastaveni hodnoty nejblizsi na vyrazne vyssi, nez je ocekavana
nejblizsi = 2000;
for(Integer idtmp : uzel.sousedi){
if(idtmp == 0){
continue;
}
aktualni = cil.spoctiVzdalenost(Simulator.objekty[idtmp]);
//System.out.println(aktualni);
if(aktualni < nejblizsi){
nejblizsi = aktualni;
id = idtmp;
}
}
//System.out.println("vybrano: "+nejblizsi);
delkaCesty += uzel.spoctiVzdalenost(Simulator.objekty[id]);
uzel = Simulator.objekty[id];
auto.pridejUzel(uzel);
//System.out.print(uzel.id+", ");
}
//System.out.println("Heureka");
return delkaCesty;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"private void peliLoppuuUfojenTuhoamiseen() {\n if ... | [
"0.64722806",
"0.6417835",
"0.63552815",
"0.6343089",
"0.6287226",
"0.6194098",
"0.61475337",
"0.6118745",
"0.61081",
"0.6099573",
"0.6065338",
"0.6056166",
"0.6050261",
"0.60494244",
"0.6041948",
"0.60252637",
"0.5993015",
"0.59576976",
"0.5934043",
"0.592664",
"0.59251136",... | 0.0 | -1 |
Metoda projde seznam vozu pridelenych prekladisti a vybere prvni volne auto (=to, ktere neni na vyjezdu, nebo neni plne). | public Auto getVolneAuto()
{
Nakladak nakl;
//seznam aut je prazdny, vytvori se nove auto
if(this.vozy.isEmpty())
{
nakl = new Nakladak(Simulator.getCas(),this.id);
sim.auta.add(nakl);
sim.addObserver(nakl);
this.vozy.add(nakl);
return this.vozy.get(0);
}
else
{
//prochazeni seznamu aut
for(Auto a : this.vozy)
{
if (a.kDispozici)
{
return a;
}
}
//pokud neni zadne auto volne, vrat null
//return null;
//prozatim pokud neni volne auto, vytvori nove a vrati ho
nakl = new Nakladak(Simulator.getCas(),this.id);
sim.addObserver(nakl);
this.vozy.addLast(nakl);
return this.vozy.getLast();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(kon... | [
"0.6525193",
"0.6406422",
"0.6351383",
"0.6297371",
"0.6284187",
"0.6018489",
"0.6009456",
"0.5908418",
"0.5885967",
"0.5877274",
"0.58697355",
"0.58450437",
"0.5815563",
"0.57802355",
"0.57749194",
"0.5764167",
"0.5709541",
"0.56767225",
"0.5649478",
"0.56492764",
"0.5645665... | 0.6051804 | 5 |
TODO Autogenerated method stub | @Override
public void prijmiNaklad(Objednavka ob, int idAuta) {
super.prijmiNaklad(ob, idAuta);
this.sklad += ob.objem;
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.