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
Get the set of HTTP status codes that occur in the application that should be ignored from being reported as errors.
Set<Integer> getIgnoreStatusCodes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<Integer> getExpectedStatusCodes();", "public int[] getStatusCodes()\n {\n return this.statusCodes;\n }", "@Bean\n public Set<HttpStatus> validStatuses() {\n return new HashSet<>(Arrays.asList(HttpStatus.OK, HttpStatus.BAD_REQUEST, HttpStatus.NOT_FOUND));\n }", "int getStatusCode();", "int getStatusCode();", "public void setStatusCodes(int sc[])\n {\n this.statusCodes = ((sc != null) && (sc.length > 0))? sc : null;\n }", "public Set<Integer> getHttpStatusCodesToRetry() {\r\n return configuration.getHttpStatusCodesToRetry();\r\n }", "abstract Integer getStatusCode();", "public abstract int getHttpStatusErrorCode();", "int getStatusCode( );", "public abstract int statusCode();", "HttpStatusCode getStatusCode();", "public int getStatusCode() {\n\t\treturn getStatusCode(iReason);\n\t}", "public int statusCode(){\n return code;\n }", "public void setHttpStatusCode(int value) {\n this.httpStatusCode = value;\n }", "Set<IgnoreErrorConfig> getIgnoreErrors();", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "public interface ResponseStatusConstants {\n\n\t/** Status code for resource not found exception. */\n\tint RESOURCE_NOT_FOUND = 404;\n\n\t/** Status code for resource not created exception. */\n\tint RESOURCE_NOT_CREATED = 400;\n\n\t/** Status code for resource invalid exception. */\n\tint RESOURCE_INVALID = 400;\n\n\t/** Status code for not authorized exception. */\n\tint UNAUTHORIZED = 401;\n\n}", "public Integer getStatusCode() {\n return statusCode;\n }", "public int get_http_status_code () {\n\t\treturn http_status_code;\n\t}", "public int getHttpStatusCode() {\n return httpStatusCode;\n }", "public int getHttpStatusCode() {\n return JsoHelper.getAttributeAsInt(jsObj, \"http_status\");\n }", "public int getHttpStatusCode() {\n return httpStatusCode;\n }", "public StatusCodes getStatusCode() {\n\t\treturn statusCode;\n\t}", "public int getStatusCode() {\n return code;\n }", "public int getHttpCode() {\n return httpCode;\n }", "public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }", "@Test\n\tpublic void testIncorrectStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY_invalid).then().statusCode(404);\n\t}", "public boolean hasStatusCodes()\n {\n return (this.statusCodes != null) && (this.statusCodes.length > 0);\n }", "protected abstract boolean isExpectedResponseCode(int httpStatus);", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public static Integer checkStatusCodes(HttpResponse response, int... expectedCodes) throws ClientProtocolException {\n\t\tif (response == null)\n\t\t\tthrow new ClientProtocolException(\"No response\");\n\t\tStatusLine statusLine = response.getStatusLine();\n\t\tif (statusLine == null)\n\t\t\tthrow new ClientProtocolException(\"Response does not contains any status\");\n\t\tint statusCode = statusLine.getStatusCode();\n\t\tif (expectedCodes == null)\n\t\t\treturn null;\n\t\tfor (int code : expectedCodes)\n\t\t\tif (code == statusCode)\n\t\t\t\treturn code;\n\t\tthrow new HttpResponseEntityException(response,\n\t\t\t\tStringUtils.fastConcat(\"Unexpected HTTP status code: \", statusCode));\n\t}", "public int getStatusCode() {\n return statusLine.getStatusCode();\n }", "private int getStatusCode(String sHTTPMethod, String sHTTPRequest) {\n // default is internal server error\n int iStatusCode = 500;\n\n // update based on method and request\n if (!isSupportedMethod(sHTTPMethod)) {\n iStatusCode = 403;\n } else if (isRedirect(sHTTPRequest)) {\n iStatusCode = 301;\n } else if (!isValidFile(sHTTPRequest)) {\n iStatusCode = 404;\n } else if (!isValidContentType(sHTTPRequest)) {\n iStatusCode = 415;\n } else if (isSupportedMethod(sHTTPMethod) && !isRedirect(sHTTPRequest)\n && isValidFile(sHTTPRequest) && isValidContentType(sHTTPRequest)) {\n iStatusCode = 200;\n }\n\n // return final status code\n return iStatusCode;\n }", "public String getHttpStatusCode() {\n return this.httpStatusCode;\n }", "public int getErrorCode() {\n\t\treturn httpErrorCode;\n\t}", "public List<AXProperty> getIgnoredReasons() {\n return ignoredReasons;\n }", "public int getStatusCode() {\n\t\treturn response.getStatusLine().getStatusCode();\n\t}", "void resetExcStatuses()\n\t\t{\n\t\t}", "public static int getStatusCode() {\r\n\r\n\r\n\r\n\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\r\n\r\n\t\tint statuseCode=response.getStatusLine().getStatusCode();\r\n\r\n\t\tSystem.out.println(\"statuseCode= \"+statuseCode);\r\n\r\n\t\t//Assert.assertEquals(200,statuseCode);\r\n\r\n\t\treturn statuseCode;\r\n\r\n\t}", "@JsonProperty(PROP_NOT_ICMP_CODES)\n public SortedSet<SubRange> getNotIcmpCodes() {\n return _notIcmpCodes;\n }", "public SOAPErrorCodes() {\n\t\terrorMap = new Hashtable<>();\n\t\terrorMap.put(\"401\", new String[] {\"Invalid Action\",\n\t\t\t\t\"No action by that name at this service.\"});\n\t\terrorMap\n\t\t\t\t.put(\n\t\t\t\t\t\t\"402\",\n\t\t\t\t\t\tnew String[] {\n\t\t\t\t\t\t\t\t\"Invalid Args\",\n\t\t\t\t\t\t\t\t\"Could be any of the following: not \"\n\t\t\t\t\t\t\t\t\t\t+ \"enough in args, too many in args, no in args, no in args by that name, \"\n\t\t\t\t\t\t\t\t\t\t+ \"one or more in args are of the wrong data type.\"});\n\t\terrorMap.put(\"403\", new String[] {\"Out of Sync\",\n\t\t\t\t\"Out of synchronization.\"});\n\t\terrorMap.put(\"501\", new String[] {\n\t\t\t\t\"Action Failed\",\n\t\t\t\t\"May be returned in current state of \"\n\t\t\t\t\t\t+ \"service prevents invoking that action.\"});\n\t\terrorMap.put(\"404\", new String[] {\"Invalid Var\",\n\t\t\t\t\"No state variable by that name at this service.\"});\n\t}", "public HttpStatus getStatusCode() {\n return statusCode;\n }", "public int[] exceptionTypes();", "long getInnerStatusCode();", "public HttpStatus getHttpStatus();", "public StatusCode getStatusCode() {\n return statusCode;\n }", "public static Map<Integer, String> getErrorCodeDefns() {\n\t\treturn errorCodeDefns;\n\t}", "@Override\n\tpublic int getStatusCodeValue() {\n\t\treturn this.statusCode.value();\n\t}", "Response.StatusType getStatus(Exception exception);", "java.util.List<java.lang.Integer> getStatusList();", "@Override\n\tpublic HttpStatus getStatusCode() {\n\t\treturn this.statusCode;\n\t}", "public int getStatusCode() {\r\n\t\treturn mStatus;\r\n\t}", "public int toStatusCode(){\n\t\t\treturn _code;\n\t\t}", "public synchronized int getResponseCode() throws IOException {\n //avoid dup validateConnection\n if ((replyHeaders.responseCode == -1)\n || (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n validateConnection();\n }\n\n return replyHeaders.responseCode;\n }", "public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }", "Collection<String> getExcludeExceptions();", "int getErrorCode();", "@ApiModelProperty(value = \"The HTTP status code for this occurrence of the problem\")\n \n public Integer getStatus() {\n return status;\n }", "IHttpRequestResponse[] getHttpMessages();", "public int getStatusCode()\n {\n return Integer.parseInt(startLine.split(\" \")[1]);\n }", "public void setHttpStatusCode(Integer httpStatusCode) {\n this.httpStatusCode = httpStatusCode;\n }", "public static int getStatusFilter() {\r\n return statusFilter;\r\n }", "public java.util.List<java.lang.Integer> getDisabledReasonValueList() {\n return java.util.Collections.unmodifiableList(disabledReason_);\n }", "public StatusCode getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public String getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public StatusCode GetStatus();", "private void clearStatuses () {\n\tstatus = \"Reading request\";\n\tstarted = System.currentTimeMillis ();\n\trequest = null;\n\tkeepalive = true;\n\tmeta = false;\n\tchunk = true;\n\tmayUseCache = true;\n\tmayCache = true;\n\tmayFilter = true;\n\tmustRevalidate = false;\n\taddedINM = false;\n\taddedIMS = false;\n\tuserName = null;\n\tpassword = null;\n\trequestLine = \"?\";\n\tstatusCode = \"200\";\n\textraInfo = null;\n\tcontentLength = \"-\";\n\tclientResourceHandler = null;\n }", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "public int getResponseCode() throws IOException {\n/* 317 */ return this.delegate.getResponseCode();\n/* */ }", "@Test(priority=1)\r\n\tpublic void validateStatusCode()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.statusCode(200);\r\n\t\t\r\n\t}", "public HttpStatus getHttpStatus() {\n return httpStatus;\n }", "public HttpStatus getHttpStatus() {\n return httpStatus;\n }", "@java.lang.Override\n public int getRequestStatusValue() {\n return requestStatus_;\n }", "public String getStatusCode() {\n\t\treturn statusCode;\n\t}", "public String getStatusCode() {\n\t\treturn statusCode;\n\t}", "public java.lang.String getResponseCode() {\n return responseCode;\n }", "@Test\n\tpublic void testCompleteness() {\n\t\t/* HttpStatus (100 - 599) */\n\t\tfor (int i = 0; i < 600; i++) {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tHttpStatus current = HttpStatus.getStatus(i);\n\t\t}\n\t}", "@java.lang.Override\n public int getDisabledReasonCount() {\n return disabledReason_.size();\n }", "@NoProxy\n public Set<BwRequestStatus> cloneRequestStatuses() {\n Set<BwRequestStatus> rs = getRequestStatuses();\n if (rs == null) {\n return null;\n }\n\n Set<BwRequestStatus> nrs = new TreeSet<>();\n\n for (BwRequestStatus o: rs) {\n nrs.add((BwRequestStatus)o.clone());\n }\n\n return nrs;\n }", "public static long getServerErrors() {\n return serverErrors;\n }", "public int getErrorCode() {\n return Util.bytesToInt(new byte[]{data[2], data[3], data[4], data[5]});\n }", "@Test(priority=1)\n\tpublic void teststatuscode() {\n\t\t\n\t\twhen()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/1\")\n\t\t.then()\n\t\t\t.statusCode(200);\n\t\t\t//.log().all();\n\t}", "public HttpResponseCode getCode() {\n return code;\n }", "@Test\n public void teststatusCode() {\n\t \n\t given().\n\t \tget(\"https://reqres.in/api/unknown\").\n\t then().\t\t\n\t \tstatusCode(200);\n\t \n }", "public int getDisabledReasonCount() {\n return disabledReason_.size();\n }", "public int status() {\n\t\treturn code;\n\t}", "public int getResponseCode()\r\n {\r\n return this.responseCode;\r\n }", "@java.lang.Override\n public int getRequestStatusValue() {\n return requestStatus_;\n }", "public Response status() {\n return getStates();\n }", "@Override\n\tpublic int getStatusCode() {\n\t\treturn _dmGtStatus.getStatusCode();\n\t}", "public java.lang.String getStatusreason() {\n return statusreason;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public int getResponseCode() {\n return responseCode;\n }", "@java.lang.Override\n public java.util.List<java.lang.Integer> getDisabledReasonValueList() {\n return disabledReason_;\n }" ]
[ "0.73260236", "0.6913132", "0.6555761", "0.61564106", "0.61564106", "0.61563563", "0.61400896", "0.60559714", "0.6041062", "0.5850453", "0.584096", "0.5805319", "0.57650113", "0.5734261", "0.5719921", "0.5712869", "0.57109267", "0.5683739", "0.5631071", "0.5576684", "0.5550061", "0.5525307", "0.55116034", "0.5502816", "0.55008894", "0.54766434", "0.54681903", "0.5459394", "0.5457224", "0.5457103", "0.5456632", "0.5441292", "0.5441292", "0.5441292", "0.5441292", "0.5407866", "0.54061186", "0.54023033", "0.5393895", "0.53684896", "0.5366595", "0.5352988", "0.53283674", "0.53232706", "0.5295216", "0.5282533", "0.5270638", "0.5264055", "0.52512425", "0.52430016", "0.5232592", "0.5224685", "0.52006304", "0.5188917", "0.5186192", "0.5185792", "0.51783967", "0.5177035", "0.517513", "0.51740015", "0.5156906", "0.5151513", "0.514649", "0.5111795", "0.510255", "0.5097825", "0.5091355", "0.50770354", "0.50734425", "0.5071636", "0.5071289", "0.5067428", "0.50523174", "0.50389135", "0.5035895", "0.5030615", "0.5030615", "0.5013579", "0.50088143", "0.50088143", "0.49927545", "0.4991192", "0.4990347", "0.4987195", "0.49860853", "0.4981885", "0.49743238", "0.49668694", "0.49614176", "0.49596193", "0.49560395", "0.49461055", "0.49438095", "0.49355593", "0.49330273", "0.49246752", "0.49201062", "0.49201062", "0.49201062", "0.49159622" ]
0.8487794
0
Get the set of error classes (and optionally) error messages that are expected to occur in the application.
Set<ExpectedErrorConfig> getExpectedErrors();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getErrorMessages();", "public Set<String> getErrorMessages() {\n HashSet<String> result = new HashSet<String>();\n switch (argumentPresence) {\n case MANDATORY:\n if (!argument.hasValue()) {\n result.add(messageArgMissing);\n } else {\n result.addAll(argument.getErrorMessages());\n }\n break;\n case OPTIONAL:\n if (argument.hasValue()) {\n result.addAll(argument.getErrorMessages());\n }\n break;\n }\n return result;\n }", "public ImmutableList<ErrorCase> getAllErrors() {\n // Relevant error cases are precisely the concrete subclasses of EppException.\n return getConcreteSubclassesStream(FlowDocumentation.EXCEPTION_CLASS_NAME)\n .map(\n typeElement ->\n new ErrorCase(\n typeElement,\n sourceRoot.getDocTrees().getDocCommentTree(typeElement),\n sourceRoot.getTypeUtils()))\n .collect(toImmutableList());\n }", "public String getErrorStrings() {\n return this.errorStrings;\n }", "public List<String> getErrorMessages() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Getting All Error Messages -> \"+errMessages);\n return errMessages;\n }", "public Collection<GmlExceptionReport> getErrors()\r\n {\r\n return myErrorHandler.getExceptionReports();\r\n }", "public Collection<ErrorClass> getErrorCol() {\r\n\t\treturn values();\r\n\t}", "public Set<Class<? extends Throwable>> getRegisteredExceptionClasses() {\n\t\treturn Collections.unmodifiableSet(registeredClasses);\n\t}", "public ImmutableList<String> getErrorMessages() {\n return Lists.immutable.ofAll(errorMessages);\n }", "public java.util.List<WorldUps.UErr> getErrorList() {\n if (errorBuilder_ == null) {\n return java.util.Collections.unmodifiableList(error_);\n } else {\n return errorBuilder_.getMessageList();\n }\n }", "public String getErrorsMessages()\n \t{\n \t\treturn errorsMessages;\n \t}", "public final Map<String, Exception> getErrors() {\n\n\t\treturn this.errors;\n\t}", "public int[] exceptionTypes();", "int getErrorsMode();", "List<String> getErrorMessages(Exception exception);", "TypeList getExceptionTypes();", "public List<Exception> getErrors() {\n\t\treturn null;\n\t}", "Set<ISOAError> getErrors();", "public List<Diagnostic<? extends JavaFileObject>> getErrors() {\n List<Diagnostic<? extends JavaFileObject>> err;\n err = new ArrayList<Diagnostic<? extends JavaFileObject>>();\n for (Diagnostic<? extends JavaFileObject> diagnostic : errors) {\n if (diagnostic.getKind() == Diagnostic.Kind.ERROR) {\n err.add(diagnostic);\n }\n }\n return err;\n }", "public List<Throwable> getErrors() {\n\t\tfinal List<Throwable> retval = new ArrayList<Throwable>();\n\t\tfor (final TestInfo testInfo : contractTestMap.listTestInfo()) {\n\t\t\tretval.addAll(testInfo.getErrors());\n\t\t}\n\t\treturn retval;\n\t}", "public JUnitError[] getErrors() {\n return _errors;\n }", "public List<String> getErrors()\n {\n return _errors;\n }", "public List<String> getErrors ()\n\t{\n\t\treturn errors;\n\t}", "java.util.List<WorldUps.UErr> \n getErrorList();", "public noNamespace.ErrorDocument.Error[] getErrorArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(ERROR$0, targetList);\r\n noNamespace.ErrorDocument.Error[] result = new noNamespace.ErrorDocument.Error[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public Set<String> getFilmErrorMessage() {\n Set<String> errors = new HashSet<>();\n errors.addAll(errorMessage);\n return errors;\n }", "@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }", "public BaseBean getStartupErrors() {\n\t\tif (null != AzureChatAppCtxUtils.getApplicationContext().getAttribute(\n\t\t\t\tAzureChatConstants.STARTUP_ERRORS)) {\n\t\t\treturn (BaseBean) AzureChatAppCtxUtils.getApplicationContext()\n\t\t\t\t\t.getAttribute(AzureChatConstants.STARTUP_ERRORS);\n\t\t}\n\t\treturn null;\n\t}", "public List<ReportType> getErrors() {\n\t\treturn errorList;\n\t}", "public String[] getErrorParserList();", "public java.util.List<? extends WorldUps.UErrOrBuilder> \n getErrorOrBuilderList() {\n if (errorBuilder_ != null) {\n return errorBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(error_);\n }\n }", "public List<SystemError> getSystemErrors() {\n return Lists.transform(systemErrors, ResolvedNotice::getContext);\n }", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "java.lang.String getErrorInfo();", "public static ArrayList<String> getErrorMap() {\n if (errList.isEmpty()) {\n return null;\n } else {\n return errList;\n }\n }", "Set<IgnoreErrorConfig> getIgnoreErrors();", "public noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors.Error[] getErrorArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(ERROR$0, targetList);\r\n noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors.Error[] result = new noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors.Error[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public List<String> getErrors() {\n\t\treturn errors;\n\t}", "public List<String> getValidationErrors() {\n\n List<String> messages = ObjectUtils.getValidationErrors(PartitionConfig.class, this);\n \n if(PartitionType.FUNCTION.equals(this.type)) { \n if(StringUtils.isBlank(this.output)) {\n\n messages.add(\"output is required for Function type partition\");\n }\n\n if(!BooleanUtils.xor(new boolean [] {StringUtils.isBlank(this.className), \n StringUtils.isBlank(this.functionName)})) {\n\n messages.add(\"either functionName or className is required\");\n }\n \n } else if(PartitionType.COUNT.equals(this.type) \n && !BooleanUtils.xor(new boolean [] {this.count == null, StringUtils.isBlank(this.countRef)})) {\n \n messages.add(\"either count or countRef is required for Function type count\");\n }\n \n if(!PartitionType.COUNT.equals(this.type)) {\n \n if(this.input == null) {\n messages.add(\"input may not be null\");\n \n } else if(this.input.get(PartitionFunction.ITEMS_KEY) == null) {\n messages.add(\"expecting an input with key items\");\n }\n }\n \n return messages;\n }", "@Override\n\tpublic HashMap<String, String> getErrors() {\n\t\treturn errors;\n\t}", "public List<String> takeErrors() {\n final List<String> result = new ArrayList<String>(errors);\n errors.clear();\n return result;\n }", "String getErrorsString();", "public java.util.List<WorldUps.UErr> getErrorList() {\n return error_;\n }", "List<CSSParseException> getExceptions();", "public UseCaseResult<? extends UseCaseError> getUseCaseErrorResult(Class<? extends UseCaseError> errorClass) {\n return errors.get(errorClass);\n }", "public int getErrorCount() {\n return error_.size();\n }", "public String getErrorParserIds();", "java.util.List<? extends WorldUps.UErrOrBuilder> \n getErrorOrBuilderList();", "java.lang.String getErrmsg();", "String[] getError() {\n return error;\n }", "public static Map<Integer, String> getErrorCodeDefns() {\n\t\treturn errorCodeDefns;\n\t}", "public static Errors forException(Throwable t) {\n Errors error = classToError.get(t.getClass());\n return error == null ? UNKNOWN : error;\n }", "public int getERRReps() { \r\n \treturn getReps(\"ERR\");\r\n }", "public ValidationErrors getErrors() {\n if (errors == null) errors = new ValidationErrors();\n return errors;\n }", "public CErrors getErrors() {\n\t\treturn mErrors;\n\t}", "public Map<Object, Exception> getFailedMessages() {\n\t\treturn failedMessages;\n\t}", "public int getErrorCount() {\n\t\treturn errors.size();\n\t}", "public CErrors getErrors() {\n\t\treturn this.mErrors;\n\t}", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "public int getErrorCount() {\r\n\t\treturn errorHandler.getErrorCount();\r\n\t}", "public Vector getErrors() {\n \t\tif (parser.hasErrors()) {\n \t\t\tsetError(parser.getErrors());\n \t\t}\n \t\tVector tmp = errors;\n \t\terrors = new Vector();\n \t\treturn tmp;\n \t}", "public List<String> getListOfErrors() {\n return listOfErrors;\n }", "public java.util.List<? extends WorldUps.UErrOrBuilder> \n getErrorOrBuilderList() {\n return error_;\n }", "public final IClass[]\r\n getThrownExceptions() throws CompileException {\r\n if (this.thrownExceptionsCache != null) return this.thrownExceptionsCache;\r\n return (this.thrownExceptionsCache = this.getThrownExceptions2());\r\n }", "@ManagedAttribute\n public Class<? extends ValidationErrorHandler> getErrorHandler() {\n return clazz;\n }", "int getErrorCount();", "static Optional<String> validate(Errors errors) {\n if (errors.hasErrors()) {\n return Optional.of(errors.getAllErrors()\n .stream()\n .map(DefaultMessageSourceResolvable::getDefaultMessage)\n .collect(Collectors.joining(\",\")));\n }\n\n return Optional.empty();\n }", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "public int getErrors() {\n return errors;\n }", "public List<ApiError> getErrors() {\n return errors;\n }", "java.lang.String getErr();", "public String getErrorCategory() {\n return errorCategory;\n }", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "java.lang.String getErrorMessage();", "public interface ErrorCodes {\n\tpublic static final String INPUT_DIRECTORY_MISSING = \"INPUT_DIRECTORY_MISSING\";\n\tpublic static final String STATEMENT_READ_FAILED = \"STATEMENT_READ_FAILED\";\n\tpublic static final String INPUT_FILE_NULL = \"INPUT_FILE_NULL\";\n\tpublic static final String DUP_TRANS_REFERENCE = \"DUP_TRANSACTION_REFERENCE\";\n\tpublic static final String WRONG_END_BALANCE = \"WRONG_END_BALANCE\";\n}", "public int getErrors() {\n return errors;\n }", "public List<ErrorResult> getErrorResults()\n {\n \tif(this.errorResults == null) {\n \t\tthis.errorResults = new ArrayList<ErrorResult>();\n \t}\n return errorResults;\n }", "public void setErrorMessages(){\n // if mood state in myself tab is chosen\n if(selectedMyMoodState != null && !selectedMyMoodState.isEmpty()){\n ((TextView)myEmotionalStateSpinner.getSelectedView()).setError(\"More than one option is chosen\");\n }\n // if mood state in following tab is chosen\n if(selectedFoMoodState != null && !selectedFoMoodState.isEmpty()){\n ((TextView)foEmotionalStateSpinner.getSelectedView()).setError(\"More than one option is chosen\");\n }\n // if most recent week in myself tab is chosen\n if (myMostRecentWeekCheckbox.isChecked()){\n myMostRecentWeekCheckbox.setError(\"More than one option is chosen\");\n }\n // if most recent week in foloowing tab is chosen\n if (foMostRecentWeekCheckbox.isChecked()){\n foMostRecentWeekCheckbox.setError(\"More than one option is chosen\");\n }\n // if display all in myself tab is chosen\n if (myDisplayAllCheckbox.isChecked()){\n myDisplayAllCheckbox.setError(\"More than one option is chosen\");\n }\n // if display all in following tab is chosen\n if (foDisplayAllCheckbox.isChecked()){\n foDisplayAllCheckbox.setError(\"More than one option is chosen\");\n }\n // if reason in myself tab is chosen\n if(enteredMyReason != null && !enteredMyReason.isEmpty()){\n myReasonEditText.setError(\"More than one option is chosen\");\n }\n // if reason in following tab is chosen\n if(enteredFoReason != null && !enteredFoReason.isEmpty()){\n foReasonEditText.setError(\"More than one option is chosen\");\n }\n }", "public String getErrorType() {\n return errorType;\n }", "public final int getErrorCount()\n\t{\n\t\treturn errorCount_;\n\t}", "public void cleanErrorMessages() {\r\n\r\n }", "Object getExceptionHandlers();", "public WorldUps.UErrOrBuilder getErrorOrBuilder(\n int index) {\n return error_.get(index);\n }", "private void addErrors() {\n this.errors = new ArrayList<>();\n var resources = ResourceBundle.getBundle(ERRORS);\n for (var key : Collections.list(resources.getKeys())) {\n var value = resources.getString(key);\n errors.add(new AbstractMap.SimpleEntry<>(key, value));\n }\n }", "Collection<ClassValidationAnnotationHandler> getClassHandlers();", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n errorInfo_ = s;\n return s;\n }\n }" ]
[ "0.66332877", "0.6413749", "0.64016026", "0.6361665", "0.63573056", "0.609515", "0.60670424", "0.60173887", "0.59602135", "0.5918757", "0.58985114", "0.5887503", "0.5846319", "0.57970625", "0.57846713", "0.57732856", "0.5757499", "0.575298", "0.5748827", "0.5738638", "0.57335836", "0.5672215", "0.56496316", "0.5649351", "0.56385237", "0.5634988", "0.56045496", "0.55911165", "0.55846137", "0.5576827", "0.5551767", "0.55511814", "0.5537866", "0.5537866", "0.5537866", "0.5537866", "0.55340207", "0.55317414", "0.5526087", "0.5494247", "0.5473598", "0.54486454", "0.5408866", "0.5383744", "0.538022", "0.5367474", "0.5355295", "0.5354272", "0.5337029", "0.5332464", "0.5275091", "0.5271731", "0.5263875", "0.52578855", "0.52548", "0.52473414", "0.5218976", "0.5214896", "0.5209035", "0.5205109", "0.5203742", "0.5203742", "0.5203742", "0.5196404", "0.5192792", "0.5192105", "0.5135472", "0.51290286", "0.51127917", "0.5105441", "0.5103957", "0.5102934", "0.510102", "0.5075905", "0.50729936", "0.50668585", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5066615", "0.5061313", "0.5058066", "0.5049371", "0.5048068", "0.50415903", "0.50393206", "0.50254935", "0.50249255", "0.500983", "0.50085807", "0.49956563", "0.49916023" ]
0.6517352
1
Get the set of HTTP status codes that are expected to occur in the application.
Set<Integer> getExpectedStatusCodes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getStatusCodes()\n {\n return this.statusCodes;\n }", "Set<Integer> getIgnoreStatusCodes();", "int getStatusCode();", "int getStatusCode();", "@Bean\n public Set<HttpStatus> validStatuses() {\n return new HashSet<>(Arrays.asList(HttpStatus.OK, HttpStatus.BAD_REQUEST, HttpStatus.NOT_FOUND));\n }", "HttpStatusCode getStatusCode();", "abstract Integer getStatusCode();", "int getStatusCode( );", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public abstract int statusCode();", "public StatusCodes getStatusCode() {\n\t\treturn statusCode;\n\t}", "public void setStatusCodes(int sc[])\n {\n this.statusCodes = ((sc != null) && (sc.length > 0))? sc : null;\n }", "public abstract int getHttpStatusErrorCode();", "public int statusCode(){\n return code;\n }", "public Integer getStatusCode() {\n return statusCode;\n }", "public static int getStatusCode() {\r\n\r\n\r\n\r\n\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\r\n\r\n\t\tint statuseCode=response.getStatusLine().getStatusCode();\r\n\r\n\t\tSystem.out.println(\"statuseCode= \"+statuseCode);\r\n\r\n\t\t//Assert.assertEquals(200,statuseCode);\r\n\r\n\t\treturn statuseCode;\r\n\r\n\t}", "public int getStatusCode() {\n\t\treturn getStatusCode(iReason);\n\t}", "public interface ResponseStatusConstants {\n\n\t/** Status code for resource not found exception. */\n\tint RESOURCE_NOT_FOUND = 404;\n\n\t/** Status code for resource not created exception. */\n\tint RESOURCE_NOT_CREATED = 400;\n\n\t/** Status code for resource invalid exception. */\n\tint RESOURCE_INVALID = 400;\n\n\t/** Status code for not authorized exception. */\n\tint UNAUTHORIZED = 401;\n\n}", "public Set<Integer> getHttpStatusCodesToRetry() {\r\n return configuration.getHttpStatusCodesToRetry();\r\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n return statusLine.getStatusCode();\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "public static Integer checkStatusCodes(HttpResponse response, int... expectedCodes) throws ClientProtocolException {\n\t\tif (response == null)\n\t\t\tthrow new ClientProtocolException(\"No response\");\n\t\tStatusLine statusLine = response.getStatusLine();\n\t\tif (statusLine == null)\n\t\t\tthrow new ClientProtocolException(\"Response does not contains any status\");\n\t\tint statusCode = statusLine.getStatusCode();\n\t\tif (expectedCodes == null)\n\t\t\treturn null;\n\t\tfor (int code : expectedCodes)\n\t\t\tif (code == statusCode)\n\t\t\t\treturn code;\n\t\tthrow new HttpResponseEntityException(response,\n\t\t\t\tStringUtils.fastConcat(\"Unexpected HTTP status code: \", statusCode));\n\t}", "public int get_http_status_code () {\n\t\treturn http_status_code;\n\t}", "public int getStatusCode() {\n return code;\n }", "public int getHttpStatusCode() {\n return httpStatusCode;\n }", "public int getHttpStatusCode() {\n return httpStatusCode;\n }", "public StatusCode getStatusCode() {\n return statusCode;\n }", "public HttpStatus getStatusCode() {\n return statusCode;\n }", "public int getStatusCode() {\n\t\treturn response.getStatusLine().getStatusCode();\n\t}", "public int getHttpCode() {\n return httpCode;\n }", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "public void setHttpStatusCode(int value) {\n this.httpStatusCode = value;\n }", "public String getHttpStatusCode() {\n return this.httpStatusCode;\n }", "public StatusCode getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public int getStatusCode() {\r\n\t\treturn mStatus;\r\n\t}", "public HttpStatus getHttpStatus();", "@Test(priority=1)\n\tpublic void teststatuscode() {\n\t\t\n\t\twhen()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/1\")\n\t\t.then()\n\t\t\t.statusCode(200);\n\t\t\t//.log().all();\n\t}", "@Override\n\tpublic int getStatusCodeValue() {\n\t\treturn this.statusCode.value();\n\t}", "public int getHttpStatusCode() {\n return JsoHelper.getAttributeAsInt(jsObj, \"http_status\");\n }", "@Override\n\tpublic HttpStatus getStatusCode() {\n\t\treturn this.statusCode;\n\t}", "@Test(priority=1)\r\n\tpublic void validateStatusCode()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.statusCode(200);\r\n\t\t\r\n\t}", "protected abstract boolean isExpectedResponseCode(int httpStatus);", "public java.util.List<java.lang.Integer>\n getStatusList() {\n return java.util.Collections.unmodifiableList(status_);\n }", "java.util.List<java.lang.Integer> getStatusList();", "public StatusCode GetStatus();", "public String getStatusCode() {\r\n\t\treturn statusCode;\r\n\t}", "public Response status() {\n return getStates();\n }", "public int toStatusCode(){\n\t\t\treturn _code;\n\t\t}", "public java.util.List<java.lang.Integer>\n getStatusList() {\n return status_;\n }", "public int getStatusCount() {\n return status_.size();\n }", "public boolean hasStatusCodes()\n {\n return (this.statusCodes != null) && (this.statusCodes.length > 0);\n }", "@Test\n public void teststatusCode() {\n\t \n\t given().\n\t \tget(\"https://reqres.in/api/unknown\").\n\t then().\t\t\n\t \tstatusCode(200);\n\t \n }", "public int getStatusCode()\n {\n return Integer.parseInt(startLine.split(\" \")[1]);\n }", "public String getStatusCode() {\n\t\treturn statusCode;\n\t}", "public String getStatusCode() {\n\t\treturn statusCode;\n\t}", "@Test\n\tpublic void teststatuscode() {\n\t\t\n\t\tgiven()\n\t\t\n\t\t.when()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/5\")\n\t\t.then()\n\t\t\t.statusCode(200)\n\t\t\t.log().all();\n\t}", "public int getStatusCount() {\n return status_.size();\n }", "private int getStatusCode(String sHTTPMethod, String sHTTPRequest) {\n // default is internal server error\n int iStatusCode = 500;\n\n // update based on method and request\n if (!isSupportedMethod(sHTTPMethod)) {\n iStatusCode = 403;\n } else if (isRedirect(sHTTPRequest)) {\n iStatusCode = 301;\n } else if (!isValidFile(sHTTPRequest)) {\n iStatusCode = 404;\n } else if (!isValidContentType(sHTTPRequest)) {\n iStatusCode = 415;\n } else if (isSupportedMethod(sHTTPMethod) && !isRedirect(sHTTPRequest)\n && isValidFile(sHTTPRequest) && isValidContentType(sHTTPRequest)) {\n iStatusCode = 200;\n }\n\n // return final status code\n return iStatusCode;\n }", "long getInnerStatusCode();", "public SOAPErrorCodes() {\n\t\terrorMap = new Hashtable<>();\n\t\terrorMap.put(\"401\", new String[] {\"Invalid Action\",\n\t\t\t\t\"No action by that name at this service.\"});\n\t\terrorMap\n\t\t\t\t.put(\n\t\t\t\t\t\t\"402\",\n\t\t\t\t\t\tnew String[] {\n\t\t\t\t\t\t\t\t\"Invalid Args\",\n\t\t\t\t\t\t\t\t\"Could be any of the following: not \"\n\t\t\t\t\t\t\t\t\t\t+ \"enough in args, too many in args, no in args, no in args by that name, \"\n\t\t\t\t\t\t\t\t\t\t+ \"one or more in args are of the wrong data type.\"});\n\t\terrorMap.put(\"403\", new String[] {\"Out of Sync\",\n\t\t\t\t\"Out of synchronization.\"});\n\t\terrorMap.put(\"501\", new String[] {\n\t\t\t\t\"Action Failed\",\n\t\t\t\t\"May be returned in current state of \"\n\t\t\t\t\t\t+ \"service prevents invoking that action.\"});\n\t\terrorMap.put(\"404\", new String[] {\"Invalid Var\",\n\t\t\t\t\"No state variable by that name at this service.\"});\n\t}", "public HttpStatus getHttpStatus() {\n return httpStatus;\n }", "public HttpStatus getHttpStatus() {\n return httpStatus;\n }", "@ApiModelProperty(value = \"The HTTP status code for this occurrence of the problem\")\n \n public Integer getStatus() {\n return status;\n }", "public int getErrorCode() {\n\t\treturn httpErrorCode;\n\t}", "Response.StatusType getStatus(Exception exception);", "Http.Status status();", "int getStatusCount();", "public int status() {\n\t\treturn code;\n\t}", "public static Map<Integer, String> getErrorCodeDefns() {\n\t\treturn errorCodeDefns;\n\t}", "@Test\n\tpublic void testCompleteness() {\n\t\t/* HttpStatus (100 - 599) */\n\t\tfor (int i = 0; i < 600; i++) {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tHttpStatus current = HttpStatus.getStatus(i);\n\t\t}\n\t}", "public Map<String, Object> getStatus() throws IOException {\n String httpResponse = httpGet(baseUrl.resolve(\"/_status\"));\n return mapper.readValue(httpResponse, new TypeReference<Map<String, Object>>() {\n });\n }", "public java.lang.String getResponseCode() {\n return responseCode;\n }", "@Test\r\n\tpublic void testResponseCode(){\r\n\t\t\r\n\t\tint code = get(api1).getStatusCode();\r\n\t\tSystem.out.println(\"Code: \"+code);\r\n\t\tAssert.assertEquals(code, 200);\r\n\t}", "@Override\n\tpublic int getStatusCode() {\n\t\treturn _dmGtStatus.getStatusCode();\n\t}", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public TStatusCode getStatusCode() {\n\n\t\treturn statusCode;\n\t}", "@Test\n\tpublic void testStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY).then().statusCode(200);\n\t}", "Integer getStatus();", "public synchronized int getResponseCode() throws IOException {\n //avoid dup validateConnection\n if ((replyHeaders.responseCode == -1)\n || (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n validateConnection();\n }\n\n return replyHeaders.responseCode;\n }", "public int[] exceptionTypes();", "int getErrorCode();", "public interface IHttpStatus {\n\n /**\n * <p>Get the status code.</p>\n *\n * @return the status code\n */\n HttpStatusCode getStatusCode();\n\n}", "public interface HttpCode {\n\n int NO_RESOURCE = 404;\n int SUCCESS = 200;\n int NO_TOKEN_HEADER = 401;\n int NO_TOKEN_FOUND = 403;\n int SYSTEM_EXCEPTION = 500;\n int NO_ACCOUNT_PROJECT = 402;\n int NO_ACCOUNT_NORMAL = 405;\n int ACCOUNT_OVERDUE = 406;\n int ERROR_ACCOUN_TOKEN = 407;\n int NO_RESOURCE_RIGHT = 408;\n int NO_EXAM_TIMES = 40601;\n int NO_KNOWLEDEG_TIMES = 40501;\n int NO_COURSE_TIME = 40801;\n int NO_COURSE_RIGHT = 40802;\n int SYSTEM_ERROR_REJECT = 409;\n int SYSTEM_ERROR_REFRESH_REPEAT = 410;\n int BUSINESS_ERROR_REPEAT = 411;\n int BUSINESS_ERROR_REFRESH_TOO_FAST = 412;\n int SMS_VERIFYCODE_NEED_WAIT = 40101;\n int SMS_NO_TEMPLATE = 40102;\n int SMS_NO_SEND_TIMES = 40103;\n int VERIFYCODE_DIFFERENT = 40104;\n int VERIFYCODE_NO_MORE_CHECKTIMES = 40105;\n int VERIFYCODE_EXPIRE = 40106;\n int SMS_NO_TELEPHONE = 40107;\n int VERIFYCODE_NULL = 40108;\n int SMS_SUCCESS = 20101;\n int HAS_NULL_REQUEST_PARAM = 413;\n int TOO_LONG_LENGTH = 414;\n int TOO_SHORT_LENGTH = 415;\n\n //公共功能\n int NO_RULE_FOUND = 40001;\n int NO_RULE_HANDLER_FOUND = 40002;\n int NO_ACCOUNT_FOUND = 40003;\n\n //用户登录(03)\n int FIND_PASSWORD_SUCCESS = 20301;\n int CHECK_USER_LOGIN_FAILURE = 40301;\n int CHECK_LOGINFORM_FAILURE = 40302;\n int CHECK_FIND_PASSWORD_FORM_FAILURE = 40303;\n int CHECK_USER_BY_TELEPHONE_FAILURE = 40304;\n int USER_TELEPHONE_ISNULL_CODE = 40305;\n int USER_LOGIN_SUCCESS_CODE = 40306;\n\n //用户中心(04)\n int MODIFY_USERINFO_SUCCESS = 20401;\n int MODIFY_PASSWORD_SUCCESS = 20402;\n int CHECK_OLD_PASSWORD_FAILURE = 40401;\n int CHECK_MODIFY_PASSWORD_FORM_FAILURE = 40402;\n int CHECK_USERINFO_FORM_FAILURE = 40403;\n int CHECK_BIND_MOBILE_FAILURE = 40404;\n int REPETITION_BIND_MOBILE = 40405;\n int BIND_MOBILE_FAILURE = 40406;\n\n //用户注册(02)\n int CHECK_TELEPHONE_EXIST = 40201;\n int CHECK_IDCARD_EXIST = 40202;\n int CHECK_ACCOUNT_EXIST = 40203;\n int CHECK_VERIFYCODE_FAILURE = 40204;\n int TELEPHONE_NULL = 40205;\n int TELEPHONE_ERROR = 40206;\n int PASSWORD_NULL = 40207;\n int PASSWORD_LENGTH_OVERLONG = 40208;\n int REGISTER_FAILURE = 40209;\n //身份证校验\n int IDCARD_LENGTH_ERROR=40210;\n int IDCARD_NUMERIC_ERROR=40211;\n int IDCARD_BIRTHDAY_INVALID=40212;\n int IDCARD_BIRTHDAY_OVER_LIMIT=40213;\n int IDCARD_MONTH_INVALID=40214;\n int IDCARD_DATE_INVALID=40215;\n int IDCARD_AREACODE_ERROR=40216;\n int IDCARD_ILLEGAL=40217;\n //身份证号不能为空\n int IDCARD_NULL=40218;\n\n\n //学习卡绑定(09)\n int PAYCARD_USED = 40901;\n int PAYCARD_NOTEXIST = 40902;\n int PAYCARD_PASSWORD_ERROR = 40903;\n int PAYCARD_BOUND = 40904;\n int PAYCARD_INVALID = 40905;\n int PAYCARD_UNNORMAL = 40906;\n int PROJECT_EXIST = 40907;\n int BIND_PROJECT_ERROR = 40908;\n int ADD_RULES_ERROR = 40909;\n int ADD_PROJECT_COMPLETERATE_ERROR = 40910;\n int INIT_KNOWLEDGE_QUESTIONS_ERROR = 40911;\n int PAYCARD_MEAL_NOTEXIST = 40912;\n int PAYCARD_MEAL_MISMATCHING = 40913;\n int NO_AUTH_BIND_PROJECT = 40914;\n int PAYCARD_RENEW_NO_SAME_JG = 40915;\n int PAYCARD_RENEW_NO_SAME_PRICE = 40916;\n int PAYCARD_RENEW_NO_SAME_CARDTYPE = 40917;\n int PAYCARD_RENEW_NO_SAME_TRAINTYPE = 40918;\n int PAYCARD_RENEW_NO_ID_PASSWORD = 40919;\n int PAYCARD_RENEW_NO_ACCOUNT_PROJECT_ID = 40920;\n int REQUEST_VR_NODEJS_URL = 40921;\n int NO_PROVINCE_TK = 40922;\n\n //培训考核\n int NO_EXAM_QUESTIONS = 40602;\n int PAPER_NOT_COMPLETE = 40603;\n int NO_EXAM_RULES = 40604;\n int TOO_MANY_EXAM_RULES = 40605;\n int CHECK_MARK_EXAM_QUESTION_FORM_FAILURE = 40606;\n int CHECK_SAVE_EXAM_ANSWER_FORM_FAILURE = 40607;\n int PAPER_OR_SUBJECT_NOT_EXISTS = 40608;\n int SHORT_OF_WELD_SELECT = 40609;\n int NOT_WELD_PROJECT = 40610;\n\n //知识点学习(05)\n int GET_QUESTION_FAILURE = 40502;\n int NO_QUESTION_FLAG = 40503;\n int CHECK_ANSWER_QUESTION_FORM_FAILURE = 40504;\n int NO_FLAG = 40506;\n\n //(完成度)计算(10)\n int WCD_CALCULATE_TARGET_ERROR = 41001;\n\n //vr实操 知识点练习(11)\n int CHECK_VR_KNOWLEDGE_TRAIN_FORM_FAILURE = 41101;\n int NO_VR_KNOWLEDEG_TIMES = 41102;\n int CHECK_SAVE_VR_EXAM_ANSWER_FORM_FAILURE = 41103;\n int CHECK_VR_COMMIT_PAPER_FAILURE = 41104;\n int CONNECT_VR_FAILURE= 41105;\n int WRONG_STBH=41106;\n int NO_TRAIN_MX=41107;\n int NO_TRAIN=41108;\n int NO_PAPER_EXISTS=41109;\n\n int CHECK_VERSION_FAILURE = 42101;\n\n //机构登录(36)\n int FIND_JGPASSWORD_SUCCESS = 23601;\n int CHECK_JG_LOGIN_FAILURE = 43601;\n int CHECK_JGLOGINFORM_FAILURE = 43602;\n int CHECK_FIND_JGPASSWORD_FORM_FAILURE = 43603;\n int CHECK_JG_BY_TELEPHONE_FAILURE = 43604;\n int NO_MENUS = 43605;\n\n //机构信息(37)\n int MODIFY_JGINFO_SUCCESS = 23701;\n int MODIFY_JGPASSWORD_SUCCESS = 23702;\n int CHECK_OLD_JGPASSWORD_FAILURE = 43701;\n int CHECK_MODIFY_JGPASSWORD_FORM_FAILURE = 43702;\n int CHECK_JGINFO_FORM_FAILURE = 43703;\n // 公用查询(30)\n int CHECK_MANAGER_COMMON_EMPTY = 43001;\n\n // 注册绑卡(31)\n int CHECK_MANAGER_REGISTER_EMPTY = 43101;\n int CHECK_MANAGER_REGISTER_TO_LONG_NAME = 43102;\n int CHECK_MANAGER_REGISTER_TELEPHONE_FAILURE = 43103;\n int CHECK_MANAGER_REGISTER_RECHECK_NO_EXPIREDATE = 43104;\n int CHECK_MANAGER_REGISTER_SUBORG_NO_PAYSTATE = 43105;\n int CHECK_MANAGER_REGISTER_NO_PLAN = 43106;\n int CHECK_MANAGER_REGISTER_PROJECT_SAME = 43107;\n int CHECK_MANAGER_REGISTER_PROJECT_SAME_ALREADY = 43108;\n int CHECK_MANAGER_REGISTER_NO_PAR_CARD_NEW = 43109;\n int CHECK_MANAGER_REGISTER_NO_PAR_CARD_RECHECK = 43110;\n int CHECK_MANAGER_REGISTER_NO_PAR_CARD_PRACTICAL = 43111;\n int CHECK_MANAGER_REGISTER_PLANTYPE_FAILURE = 43112;\n int CHECK_MANAGER_REGISTER_PAYCARD_IS_EMPTY = 43113;\n\n /*培训记录提取成功*/\n int EXTRACT_TRAIN_CERTIFY_SUCCESS = 23201;\n /*存在已提取学员*/\n int EXTRACT_REPEAT = 43201;\n /*培训不及格*/\n int EXTRACT_NOT_PASS_TRAIN = 43202;\n /*未查询到学员*/\n int EXTRACT_NO_STUDENT = 43203;\n\n int STUDENT_REPORT_DATE_ERROR = 43301;\n int DATEBEGIN_NULL_ERROR = 43302;\n int DATEEND_NULL_ERROR = 43303;\n\n //班次名称是否已存在\n int CHECK_BATCH_NAME = 43403;\n\n //机构班次人员管理\n int CHECK_ADD_BATCH_STUDENT_FAILURE = 43501;\n int CHECK_DELETE_BATCH_STUDENT_FAILURE = 43502;\n\n int ADD_BATCH_STUDENT_ERROR = 43503;\n int DELETE_BATCH_STUDENT_ERROR = 43504;\n\n int BATCH_COUNT_ERROR = 43505;\n int BATCH_STATE_ERROR = 43506;\n\n /*微信返回空*/\n int DO_NOTHING = 43801;\n /*公众号配置错误*/\n int NO_CONFIG = 43802;\n /*签名错误*/\n int SIGN_ERROR = 43803;\n /*获取token异常*/\n int CAN_NOT_GET_TOKEN = 43804;\n /*获取token异常*/\n int CAN_NOT_GET_TICKET = 43805;\n\n /*未绑定微信账号*/\n int NO_BIND_WECHAT = 43806;\n /*未绑定培训项目*/\n int NO_BIND_PROJECT = 43807;\n\n /*项目数据异常*/\n int PROJECT_MESSAGE_ERROR = 43808;\n\n /*获取用户微信信息失败*/\n int GET_USERINFO_ERROR = 43809;\n\n /*成功绑定项目*/\n int SAVE_APID_SUCCESS = 43810;\n\n /*获取openId为空*/\n int GET_OPENID_ERROR= 43811;\n\n\n int EXAM_RULE_IS_NOT_REACH = 99001;// 开始考试前,有内容未达标。\n int EXAM_RULE_IS_NEED_NOTICE = 99002;// 开始考试前,有内容未达标,需要提示信息。\n\n /* Redis 相关参数 */\n int REDIS_PARAM_IS_EMPTY = 43900;\n\n /* 题库代码和题库版本为空*/\n int NO_TKDM_OR_VERSION_NOW = 43901;\n int NO_TKDM_OR_VERSION = 43902;\n}", "@Test\n\tpublic void verifyStatusCode() {\n\t\tAssert.assertEquals(response.getStatusCode(), 200);\n\t}", "public int getResponseCode() {\n return responseCode;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public ExportStatusCode getStatusCode()\n {\n return statusCode;\n }", "public int getResponseCode()\r\n {\r\n return this.responseCode;\r\n }", "public static int getStatusCode(String statusValue) {\r\n\t\tif (statusValue.equals(STATUS_OK)) {\r\n\t\t\treturn OK;\r\n\t\t} else if (statusValue.equals(STATUS_ZERO_RESULTS)) {\r\n\t\t\treturn ZERO_RESULTS;\r\n\t\t} else if (statusValue.equals(STATUS_OVER_QUERY_LIMIT)) {\r\n\t\t\treturn OVER_QUERY_LIMIT;\r\n\t\t} else if (statusValue.equals(STATUS_REQUEST_DENIED)) {\r\n\t\t\treturn REQUEST_DENIED;\r\n\t\t} else if (statusValue.equals(STATUS_INVALID_REQUEST)) {\r\n\t\t\treturn INVALID_REQUEST;\r\n\t\t} else if (statusValue.equals(STATUS_UNKNOWN_ERROR)) {\r\n\t\t\treturn UNKNOWN_ERROR;\r\n\t\t} else if (statusValue.equals(STATUS_NOT_FOUND)) {\r\n\t\t\treturn NOT_FOUND;\r\n\t\t} else {\r\n\t\t\treturn ERROR;\r\n\t\t}\r\n\t}", "IHttpRequestResponse[] getHttpMessages();", "public String getResponseCode() {\n return responseCode;\n }", "public HttpResponseCode getCode() {\n return code;\n }", "public Status[] getStatusArray()\n throws RedmineException\n {\n getStatus(false);\n return statusMap.values().toArray(new Redmine.Status[statusMap.size()]);\n }", "ApplicationWebConfigStatus getStatus();" ]
[ "0.79864806", "0.71591634", "0.69455254", "0.69455254", "0.68352216", "0.6695987", "0.66725767", "0.66648304", "0.6587829", "0.6530805", "0.6510113", "0.64865553", "0.64806354", "0.6455292", "0.64109844", "0.6396985", "0.6377049", "0.63623124", "0.6333425", "0.63215804", "0.63215804", "0.63215804", "0.63215804", "0.62664187", "0.62583166", "0.62546533", "0.6245625", "0.6241066", "0.62393814", "0.6226154", "0.61878353", "0.61637145", "0.6153988", "0.61314934", "0.6079342", "0.60626155", "0.6049801", "0.6047921", "0.60280675", "0.60143065", "0.6010704", "0.60062236", "0.60012347", "0.59990466", "0.5988617", "0.5971619", "0.5939964", "0.59340364", "0.59235764", "0.5922029", "0.5899417", "0.5892888", "0.5885219", "0.58817506", "0.587914", "0.5873522", "0.5861256", "0.5848308", "0.5848308", "0.5838072", "0.58327127", "0.5823934", "0.5786584", "0.5782376", "0.5774986", "0.5774986", "0.5709368", "0.56788236", "0.56504077", "0.56465554", "0.56390864", "0.5629723", "0.5606643", "0.55998206", "0.5590536", "0.5583513", "0.5546051", "0.552834", "0.5498598", "0.54970425", "0.5495699", "0.5479668", "0.54680634", "0.5464931", "0.54613763", "0.5425444", "0.542535", "0.542352", "0.5409529", "0.53925097", "0.53925097", "0.53925097", "0.5387392", "0.53831524", "0.53816116", "0.53708446", "0.53646046", "0.53645056", "0.5364217", "0.5357794" ]
0.8326438
0
Gets a value indicating if error priority should be ignored; default is true.
boolean isIgnoreErrorPriority();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getPriority() {\n\t\treturn priority;\n\t}", "public boolean getPriority() {\n\t\treturn priority;\n\t}", "public boolean isIgnoreErrors() {\n return ignoreErrors;\n }", "public boolean isReportedNonSevere() {\n if (\"4\".equals(originalPriority.getId()) || \"5\".equals(originalPriority.getId())) {\n return true;\n }\n\n return false;\n }", "public boolean isIgnoreFailed()\n {\n return ignoreFailed;\n }", "public boolean getIgnoreResult() {\n return ignoreResult;\n }", "public boolean isReportedDefault() {\n if (\"3\".equals(originalPriority.getId())) {\n return true;\n }\n\n return false;\n }", "public boolean isReportedSevere() {\n if (\"1\".equals(originalPriority.getId()) || \"2\".equals(originalPriority.getId())) {\n return true;\n }\n\n return false;\n }", "public PriorityCode.Enum getMissivePriority() {\n\n // Get the missive document priority\n return this.sepamailMissive001.getMsvPri();\n }", "public boolean isPriority()\r\n/* 49: */ {\r\n/* 50:47 */ return false;\r\n/* 51: */ }", "public int priority(){\n return 0; //TODO codavaj!!\n }", "@Stub\n\tpublic int getPriority()\n\t{\n\t\treturn PRIO_DEFAULT;\n\t}", "public boolean hasErrorLevel() {\n return fieldSetFlags()[5];\n }", "public Boolean isIgnored() {\n return ignored;\n }", "protected boolean ignoreFailure() {\n return ignoreFailure;\n }", "public boolean isIgnored() {\n return m_ignored;\n }", "public int getEffectivePriority() {\n Lib.assertTrue(Machine.interrupt().disabled());\n\n\n return getWinningPriority();\n }", "public Boolean suppressionEnabled() {\n return this.innerProperties() == null ? null : this.innerProperties().suppressionEnabled();\n }", "@java.lang.Override\n public com.google.cloud.recommender.v1.Recommendation.Priority getPriority() {\n com.google.cloud.recommender.v1.Recommendation.Priority result =\n com.google.cloud.recommender.v1.Recommendation.Priority.forNumber(priority_);\n return result == null\n ? com.google.cloud.recommender.v1.Recommendation.Priority.UNRECOGNIZED\n : result;\n }", "boolean getPossiblyBad();", "@java.lang.Override\n public com.google.cloud.recommender.v1.Recommendation.Priority getPriority() {\n com.google.cloud.recommender.v1.Recommendation.Priority result =\n com.google.cloud.recommender.v1.Recommendation.Priority.forNumber(priority_);\n return result == null\n ? com.google.cloud.recommender.v1.Recommendation.Priority.UNRECOGNIZED\n : result;\n }", "int getWarningMode();", "default int getPriority() {\n return 0;\n }", "public String getPriority() {\r\n return priority;\r\n }", "default byte getPriority() {\n\t\treturn 0;\n\t}", "public Integer getPriority() {\n return priority;\n }", "public Integer getPriority() {\n return priority;\n }", "public double getPriority() {\n\t\treturn priority;\n\t}", "@java.lang.Override\n public int getPriorityValue() {\n return priority_;\n }", "public Integer getPriority() {\n return priority;\n }", "public static RegressionPrior noninformative() {\n return NONINFORMATIVE_PRIOR;\n }", "@NoProxy\n @NoDump\n public boolean getSuppressed() {\n final String s = getStatus();\n\n if (s == null) {\n return false;\n }\n\n return s.equals(statusMasterSuppressed);\n }", "public Integer getRiskWarning() {\n return riskWarning;\n }", "public String getPriority() {\n return priority;\n }", "@Override\n\tpublic boolean isErrorEnabled() {\n\t\treturn false;\n\t}", "public Boolean getSkipFail() {\r\n\t\treturn this.skipFail;\r\n\t}", "@Override\r\n\tpublic int getPriority() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "boolean hasPriority();", "boolean hasPriority();", "boolean hasPriority();", "int getErrorsMode();", "Set<IgnoreErrorConfig> getIgnoreErrors();", "public void setIgnoreErrors(boolean b) {\n ignoreErrors = b;\n }", "public int getPriority() {\n\t\treturn getSettings().getInt(\"priority\");\n\t}", "public boolean hasSeverity() {\n return fieldSetFlags()[2];\n }", "@java.lang.Override\n public int getPriorityValue() {\n return priority_;\n }", "Property<Boolean> getIgnoreExitValue();", "public boolean getFailOnErr() {\n return mFailonerr;\n }", "boolean isFailOnError() {\n return failOnError;\n }", "public int priority()\n\t{\n\t\treturn priority;\n\t}", "@java.lang.Override\n public int getPriority() {\n return priority_;\n }", "boolean getSkipMessage();", "String getSpecifiedPriority();", "public int getPriority() {\n return priority;\n }", "public int failureLevel(){\n return RESULT_WARNING;\n }", "@java.lang.Override\n public int getPriority() {\n return priority_;\n }", "public BigDecimal getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "public int getPriority(){\n\t\treturn priority;\n\t}", "public int getAlertPriority()\n {\n return this.alert_priority;\n }", "@Override\n public int getPriority() {\n return priority;\n }", "@Override\n public int getPriority() {\n return priority;\n }", "@NotNull\r\n public Priority getPriority() {\r\n return priority;\r\n }", "@Override\r\n\tpublic int getPriority() {\n\t\treturn Message.LOW_PRIORITY;\r\n\t}", "public List<AXProperty> getIgnoredReasons() {\n return ignoredReasons;\n }", "public int getPriority() {\n return priority;\n }", "public double getBailout()\n {\n return m_Bailout;\n }", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public YangEnumeration getWildcardDnsFailOverrideValue()\n throws JNCException {\n YangEnumeration wildcardDnsFailOverride = (YangEnumeration)getValue(\"wildcard-dns-fail-override\");\n if (wildcardDnsFailOverride == null) {\n wildcardDnsFailOverride = new YangEnumeration(\"disable\", new String[] { // default\n \"enable\",\n \"disable\",\n });\n }\n return wildcardDnsFailOverride;\n }", "public int getPriority()\n {\n return priority;\n }", "public boolean getErr() {\n\t\treturn err;\r\n\t}", "public int getPriority(){\n return 2;\n }", "public final boolean isExceptionOn()\n {\n return this.getPropertyValue(GUILoggerSeverityProperty.EXCEPTION);\n }", "public boolean getError() {\r\n \treturn error;\r\n }", "public java.lang.Object getPriority() {\n return priority;\n }", "public String getPriority() {\n\t\treturn (String) get_Value(\"Priority\");\n\t}", "public final String getPriority() {\n return this.priority;\n }", "public int getPriority() {\n return this.mPriority;\n }", "public int getPriority() {\n return this.priority;\n }", "public Integer failureThreshold() {\n return this.failureThreshold;\n }", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "public int getPriority() {\n\t\tInteger prop = (Integer) getObject(\"priority\");\n\t\tif (prop != null) {\n\t\t\treturn prop;\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"The Task doesn't have its priority set\");\n\t\t}\n\t}", "Boolean ignoreExceptions();", "public boolean ignore() {\n\t\tif(ignoreT<=0) return false; // if ignoreT is 0, the user gets control again\n\t\telse return true; // otherwise the user doesn't have control\n\t}", "int getSeverityValue();", "public boolean isError() { return error; }", "Set<Integer> getIgnoreStatusCodes();", "public int getPriority(){\n\t\t\n\t\treturn this.priority;\n\t}", "public int getPriority();", "public int getPriority();" ]
[ "0.5904455", "0.5904455", "0.5859294", "0.58213925", "0.5729301", "0.5674357", "0.5632743", "0.5568361", "0.5539061", "0.5519275", "0.5518226", "0.54981345", "0.5430168", "0.5401325", "0.5380569", "0.53182864", "0.53069544", "0.53043306", "0.5301888", "0.52999544", "0.5294244", "0.52797836", "0.527088", "0.5254384", "0.5249767", "0.5246123", "0.5246123", "0.52451396", "0.52408314", "0.5220937", "0.52135986", "0.52001303", "0.5180603", "0.5178152", "0.5172519", "0.5164894", "0.51499504", "0.51438487", "0.51438487", "0.51438487", "0.51434344", "0.5143335", "0.51378345", "0.5132402", "0.5131892", "0.51209164", "0.5119241", "0.51004326", "0.5092635", "0.50922054", "0.509143", "0.5087024", "0.50829947", "0.5075438", "0.5049054", "0.5041963", "0.5036143", "0.5030717", "0.5030717", "0.5030717", "0.5030717", "0.5030717", "0.5030717", "0.50301766", "0.50301766", "0.50259656", "0.50258476", "0.501737", "0.501737", "0.50164616", "0.5015439", "0.49725503", "0.4966435", "0.4959135", "0.4952681", "0.4952681", "0.4952681", "0.4952681", "0.49514788", "0.49370316", "0.49338827", "0.49305362", "0.49171755", "0.49167216", "0.49162868", "0.4910406", "0.49082896", "0.49050456", "0.48962572", "0.48953927", "0.48762414", "0.48753965", "0.486683", "0.48593533", "0.48567167", "0.4844963", "0.48399785", "0.48356152", "0.48330045", "0.48330045" ]
0.79725456
0
Gets the defined exception handlers in configuration.
Object getExceptionHandlers();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Catch[] exceptionHandlers();", "public FlowExecutionExceptionHandlerSet getExceptionHandlerSet() {\r\n\t\treturn exceptionHandlerSet;\r\n\t}", "public UnitP.ExceptionHandlingTypes getExceptionHandling()\n\t\t{\n\t\t return ExceptionHandling;\n\t\t}", "public void setExceptionHandlers(Catch[] exceptions);", "public static HandlerList getHandlerList() {\n return handlers;\n }", "public static HandlerList getHandlerList() {\n return handlers;\n }", "public final static HandlerList getHandlerList(){\n return handlers;\n }", "Map<String, Handler> handlers();", "UsedExceptions getExceptions();", "@Override\n public HandlerList getHandlers() {\n return handlers;\n }", "@Override\n public HandlerList getHandlers() {\n return handlers;\n }", "@Override\n public final HandlerList getHandlers(){\n return handlers;\n }", "public HandlerDescription[] getHandlers() {\n return m_handlers;\n }", "@NotNull\n @Contract(pure = true)\n @Override\n public HandlerList getHandlers() {\n return HANDLERS;\n }", "public List<Throwable> getExceptions() {\n return exceptions;\n }", "java.util.List<java.lang.String>\n getExceptionsList();", "@NotNull\n @Contract(pure = true)\n @SuppressWarnings(\"unused\")\n public static HandlerList getHandlerList() {\n return HANDLERS;\n }", "public List<CatchClause> getCatchClauses() {\n return getCatchClauseList();\n }", "private void configureRoutesAndExceptions() {\n\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler>\n getRepromptEventHandlersList();", "public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n return this.delegate.getHandlers();\r\n }", "IExceptionHandler createHandlerFor(java.lang.Class typeOfExceptionToHandle);", "public List<String> getExceptionsCaught() {\n\t\treturn exceptionsCaught;\n\t}", "TypeList getExceptionTypes();", "public java.lang.String getExceptions(int index) {\n return exceptions_.get(index);\n }", "public java.lang.String getExceptions(int index) {\n return exceptions_.get(index);\n }", "@Override\r\n\tpublic Collection<EventHandler> getEventHandlers() {\n\t\treturn null;\r\n\t}", "public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder>\n getRepromptEventHandlersBuilderList() {\n return getRepromptEventHandlersFieldBuilder().getBuilderList();\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>\n getRepromptEventHandlersOrBuilderList();", "public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler>\n getRepromptEventHandlersList() {\n if (repromptEventHandlersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(repromptEventHandlers_);\n } else {\n return repromptEventHandlersBuilder_.getMessageList();\n }\n }", "public AuthenticationResultHandler[] getAuthenticationResultHandlers()\n {\n return this.authenticationResultHandlers;\n }", "public AuthenticationResultHandler[] getAuthenticationResultHandlers()\n {\n return this.authenticationResultHandlers;\n }", "public com.google.cloud.dialogflow.cx.v3beta1.EventHandler getRepromptEventHandlers(\n int index) {\n if (repromptEventHandlersBuilder_ == null) {\n return repromptEventHandlers_.get(index);\n } else {\n return repromptEventHandlersBuilder_.getMessage(index);\n }\n }", "public interface ExceptionHandler\n{\n //TODO not sure how to handle this\n}", "@Override\r\n public ExceptionHandler getExceptionHandler() {\r\n return new JsfExceptionHandler(this.parent.getExceptionHandler());\r\n }", "com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder\n getRepromptEventHandlersOrBuilder(int index);", "@Override\n\tpublic void exceptionHandler(Handler<Exception> handler) {\n\t\t\n\t}", "com.google.cloud.dialogflow.cx.v3beta1.EventHandler getRepromptEventHandlers(int index);", "public org.hpccsystems.ws.filespray.ArrayOfEspException getExceptions() {\n\t\t return exceptions;\n\t }", "@Override\n public ErrorHandler getErrorHandler() {\n return errorHandler;\n }", "private Property getHandlersPropertyObject(String namespace)\r\n throws CockpitConfigurationException {\r\n Property handlersProp;\r\n\r\n try {\r\n handlersProp = ConfigManager.getInstance().getPropertyObject(namespace, \"handlers\");\r\n } catch (UnknownNamespaceException e) {\r\n throw new CockpitConfigurationException(\"Fails on reading handlers from unknown namespace '\"\r\n + namespace + \"'\", e);\r\n }\r\n\r\n if (handlersProp == null) {\r\n throw new CockpitConfigurationException(\"Missing 'handlers' property from namespace '\" + namespace\r\n + \"'\");\r\n }\r\n\r\n return handlersProp;\r\n }", "public DefaultValidationAnnotationHandlerRegistry() {\n\n // class annotation handlers\n registerClassHandler(new ExpressionClassValidationAnnotationHandler());\n registerClassHandler(new ExpressionsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorReferenceClassValidationAnnotationHandler());\n\n // method annotation handlers\n registerMethodHandler(new ValidationMethodAnnotationHandler());\n\n // property annotation handlers\n registerPropertyHandler(new CascadeValidationAnnotationHandler());\n registerPropertyHandler(new EmailValidationAnnotationHandler());\n registerPropertyHandler(new DateInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new DateInThePastValidationAnnotationHandler());\n registerPropertyHandler(new LengthValidationAnnotationHandler());\n registerPropertyHandler(new NotBlankValidationAnnotationHandler());\n registerPropertyHandler(new NotEmptyValidationAnnotationHandler());\n registerPropertyHandler(new NotNullValidationAnnotationHandler());\n registerPropertyHandler(new RangeValidationAnnotationHandler());\n registerPropertyHandler(new RegExpValidationAnnotationHandler());\n registerPropertyHandler(new SizeValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionsPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ConditionReferenceValidationAnnotationHandler());\n\n if (LibraryUtils.JODA_TIME_IN_CLASSPATH) {\n registerPropertyHandler(new InstantInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new InstantInThePastValidationAnnotationHandler());\n }\n\n }", "public String[] getExceptionNames() {\n\t\treturn exceptionNames;\n\t}", "public Set<Class<? extends Throwable>> getRegisteredExceptionClasses() {\n\t\treturn Collections.unmodifiableSet(registeredClasses);\n\t}", "@java.lang.Override\n public com.google.cloud.dialogflow.cx.v3beta1.EventHandler getRepromptEventHandlers(\n int index) {\n return repromptEventHandlers_.get(index);\n }", "public Collection<GmlExceptionReport> getErrors()\r\n {\r\n return myErrorHandler.getExceptionReports();\r\n }", "public List<PromptHandlerConfig> getPromptHandlerConfigs() {\n return promptHandlerConfigs;\n }", "@Override\n public List<XulEventHandler> getEventHandlers() {\n return null;\n }", "Set<IgnoreErrorConfig> getIgnoreErrors();", "@Override\n public GetEventConfigurationByResourceTypesResult getEventConfigurationByResourceTypes(GetEventConfigurationByResourceTypesRequest request) {\n request = beforeClientExecution(request);\n return executeGetEventConfigurationByResourceTypes(request);\n }", "Collection<ClassValidationAnnotationHandler> getClassHandlers();", "@ExceptionHandler(Exception.class)\n public String handleAllException(Exception ex) {\n logger.info(\"Error in dashboard.\");\n return \"error\";\n }", "java.lang.String getExceptions(int index);", "public ArrayList<Exception> getEndUserExceptions();", "public int[] exceptionTypes();", "public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder\n getRepromptEventHandlersOrBuilder(int index) {\n if (repromptEventHandlersBuilder_ == null) {\n return repromptEventHandlers_.get(index);\n } else {\n return repromptEventHandlersBuilder_.getMessageOrBuilder(index);\n }\n }", "Collection<PropertyValidationAnnotationHandler> getPropertyHandlers();", "public ArrayList<Exception> getValidateExceptions();", "public java.util.List<\n ? extends com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>\n getRepromptEventHandlersOrBuilderList() {\n if (repromptEventHandlersBuilder_ != null) {\n return repromptEventHandlersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(repromptEventHandlers_);\n }\n }", "public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder\n getRepromptEventHandlersBuilder(int index) {\n return getRepromptEventHandlersFieldBuilder().getBuilder(index);\n }", "protected abstract <E extends Event> List<EventHandler<? extends Event>> lookupHandlers(final E event);", "@Deprecated public List<ClassRef> getExceptions(){\n return build(exceptions);\n }", "@Override\n public List<MHandler> getHandlers()\n {\n return null;\n }", "public HandlerRegistry getHandlerRegistry() {\n\t\treturn null;\n\t}", "public int getExceptionsCount() {\n return exceptions_.size();\n }", "@Override\n public List<String> catchFaults(){\n List<String> errors = new ArrayList<>();\n severityLevels.forEach(level -> {\n if(level.equals(\"ERROR\")){\n errors.add(level);\n }\n });\n return errors;\n }", "public QueryConfigHandler getQueryConfigHandler() {\n return config;\n }", "public PhaseHandler[] getAllHandlers() {\r\n return this.delegate.getAllHandlers();\r\n }", "List<CSSParseException> getExceptions();", "public interface IExceptionHandlerFactory {\n\n /**\n * Function creates a handle for the exception.\n *\n * @param typeOfExceptionToHandle the class type of exception to handle.\n * @return an IException Handler.\n */\n IExceptionHandler createHandlerFor(java.lang.Class typeOfExceptionToHandle);\n}", "public int getExceptionsCount() {\n return exceptions_.size();\n }", "protected void _loadHandlers() throws SessionException\n {\n if (this._fileEventHandlerSet != null)\n {\n this._logger.trace(\"Releasing old set of file event handlers.\"); \n this._fileEventHandlerSet.destroy();\n }\n \n //--------------------------\n \n this._logger.trace(\"Creating file event handler manager.\");\n \n //create new manager, and get a (possible empty) handle set from it\n FileEventHandlerManager fehManager = new FileEventHandlerManager(\n this._argTable, \n this._actionId); \n this._fileEventHandlerSet = fehManager.getFileEventHandlers();\n \n //check for error\n if (this._fileEventHandlerSet.hasError())\n {\n throw new SessionException(\"Error occured while loading file handlers\",\n Constants.EXCEPTION);\n }\n \n //dump list of ids if debug enabled\n if (this._logger.isDebugEnabled())\n {\n String[] ids = _fileEventHandlerSet.getHandlerIds();\n StringBuffer buf = new StringBuffer(\"Handler set ids: { \");\n if (ids.length > 0)\n buf.append(ids[0]);\n if (ids.length > 1)\n for (int i = 1; i < ids.length; ++i)\n buf.append(\", \").append(ids[i]);\n buf.append(\"}\");\n this._logger.debug(buf.toString()); \n \n }\n }", "@Override\n public void configure() throws Exception {\n onException(IOException.class).handled(true).log(\"IOException occurred due: ${exception.message}\")\n // as we handle the exception we can send it to\n // direct:file-error,\n // where we could send out alerts or whatever we want\n .to(\"direct:file-error\");\n\n // special route that handles file errors\n from(\"direct:file-error\").log(\"File error route triggered to deal with exception ${exception?.class}\")\n // as this is based on unit test just transform a message\n // and send it to a mock\n .transform().simple(\"Error ${exception.message}\").to(\"mock:error\");\n\n // this is the file route that pickup files, notice how we use\n // our custom exception handler on the consumer\n // the exclusiveReadLockStrategy is only configured because this\n // is from an unit test, so we use that to simulate exceptions\n from(fileUri(\n \"?exclusiveReadLockStrategy=#myReadLockStrategy&exceptionHandler=#myExceptionHandler&initialDelay=0&delay=10\"))\n .convertBodyTo(String.class).to(\"mock:result\");\n }", "@java.lang.Override\n public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder\n getRepromptEventHandlersOrBuilder(int index) {\n return repromptEventHandlers_.get(index);\n }", "public static ParticleHandlers getHandlers() {\n return INSTANCE;\n }", "public ErrorHandler getErrorHandler()\n {\n return (errorHandler == base) ? null : errorHandler;\n }", "@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n @ExceptionHandler(Exception.class)\n public String handleAllException() {\n\n return \"server_error\";\n }", "public Enumeration getControlHandlerNames();", "public com.google.protobuf.ProtocolStringList\n getExceptionsList() {\n return exceptions_;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExceptions() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXCEPTIONS_PROP.get());\n }", "public void setDefaultHandler( ExceptionHandler eh )\n {\n dh = eh;\n }", "Handler getHandler() {\n return getEcologyLooper().getHandler();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getExceptions() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(EXCEPTIONS_PROP.get());\n }", "public com.google.protobuf.ProtocolStringList\n getExceptionsList() {\n return exceptions_.getUnmodifiableView();\n }", "@java.lang.Override\n public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler>\n getRepromptEventHandlersList() {\n return repromptEventHandlers_;\n }", "public interface ExceptionHandler {\n public void onException(Exception e);\n}", "private static ErrorHandler getErrorHandlerFromProperties(VitessConnection connection) {\n if (Strings.isNullOrEmpty(connection.getErrorHandlerClass())) {\n return new DefaultErrorHandler();\n }\n\n Object provider = constructDefault(connection.getErrorHandlerClass());\n return ((ErrorHandler) provider);\n }", "Collection<String> getExcludeExceptions();", "private ExceptionPolicyEntry FindExceptionPolicyEntry(Class<?> exceptionType)\n {\n ExceptionPolicyEntry entry = null;\n\n while (exceptionType != Object.class.getClass())\n {\n entry = GetPolicyEntry(exceptionType);\n\n if (entry == null)\n {\n exceptionType = exceptionType.getSuperclass();\n }\n else\n {\n //we've found the handlers, now continue on\n break;\n }\n }\n\n return entry;\n }", "public com.vsp.bl.product.dto.cob.v002.COBExceptionRule[] getCobExceptionRules() {\n return cobExceptionRules;\n }", "public static InvalidEventHandlerException reusable() {\n return STATIC;\n }", "public static FileHandler getFileHandler() throws SecurityException, IOException {\n if (fh == null) {\n String path = Config.getStringProperty(\"logPath\");\n String fileName = Config.getStringProperty(\"logFileName\");\n String fullLogPath;\n\n if (path.toLowerCase().equals(\"default\")) {\n path = System.getProperty(\"user.dir\");\n path += \"/Logs\";\n }\n\n if (!path.endsWith(\"/\")) {\n path += \"/\";\n }\n\n fullLogPath = path + fileName;\n fh = new FileHandler(fullLogPath, true);\n }\n return fh;\n }", "public Handler getHandler();", "@Override\r\n\tpublic void configHandler(Handlers me) {\n\r\n\t}", "public final IClass[]\r\n getThrownExceptions() throws CompileException {\r\n if (this.thrownExceptionsCache != null) return this.thrownExceptionsCache;\r\n return (this.thrownExceptionsCache = this.getThrownExceptions2());\r\n }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "private static Map<String, Greetable> loadHandlers() {\n Map<String, Greetable> result = new HashMap<>();\n\n try (InputStream is = Server.class.getClassLoader()\n .getResourceAsStream(\"server.properties\")){\n\n Properties properties = new Properties();\n properties.load(is);\n\n //Get full name of handler class by associated map key\n for (Object command : properties.keySet()) {\n String className = properties.getProperty(command.toString());\n //Get link on class realizzation\n Class<Greetable> cl = (Class<Greetable>) Class.forName(className);\n //Get class entity\n Greetable handler = cl.getConstructor().newInstance();\n result.put(command.toString(), handler);\n\n }\n\n } catch (Exception e){\n e.printStackTrace(System.out);\n }\n\n\n return result;\n }", "private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }", "public Class<?> getHandler();", "public EventHandling getEventHandling() {\n return eventHandling;\n }" ]
[ "0.76498824", "0.61338186", "0.59599423", "0.5952424", "0.5869042", "0.5869042", "0.57947826", "0.5736695", "0.57363945", "0.5733853", "0.5733853", "0.56915253", "0.5564299", "0.5547973", "0.5526519", "0.5505203", "0.5504412", "0.54939693", "0.548195", "0.5413915", "0.5390319", "0.529071", "0.52866054", "0.5241298", "0.5228699", "0.5218929", "0.5215375", "0.5164785", "0.51233417", "0.5120242", "0.5114846", "0.5114846", "0.5110303", "0.509374", "0.50769615", "0.5072957", "0.5069375", "0.5033462", "0.5033417", "0.5018879", "0.501682", "0.50006235", "0.49818158", "0.4974035", "0.4962042", "0.4959442", "0.49404907", "0.492886", "0.4916875", "0.49165738", "0.49098283", "0.49077988", "0.49077147", "0.49068362", "0.49041104", "0.4900139", "0.48955172", "0.4882155", "0.4881485", "0.48574102", "0.48499367", "0.48451576", "0.4844224", "0.4831512", "0.48291102", "0.48272508", "0.48254606", "0.48146266", "0.48134813", "0.4810398", "0.48069346", "0.48047733", "0.48016188", "0.47787005", "0.47786105", "0.47765478", "0.47686085", "0.47593576", "0.47462302", "0.47190598", "0.47142148", "0.47018293", "0.46976432", "0.46900782", "0.4686998", "0.46764606", "0.46715885", "0.46414483", "0.4637913", "0.4632852", "0.45860305", "0.45739868", "0.45734513", "0.45418605", "0.45415208", "0.45288143", "0.4521129", "0.45122537", "0.45085788", "0.45077765" ]
0.79455936
0
TODO Autogenerated method stub
public static void main(String[] args) { HttpClient httpClient = new HttpClient(); HttpMethod getMethod = new GetMethod("http://www.yahoo.com"); getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false)); try { // Execute the method. int statusCode = httpClient.executeMethod(getMethod); if (statusCode != HttpStatus.SC_OK) { System.err.println("Method failed: " + getMethod.getStatusLine()); } // Read the response body. byte[] responseBody = getMethod.getResponseBody(); // Deal with the response. // Use caution: ensure correct character encoding and is not binary data System.out.println(new String(responseBody)); } catch (HttpException e) { System.err.println("Fatal protocol violation: " + e.getMessage()); e.printStackTrace(); } catch (IOException e) { System.err.println("Fatal transport error: " + e.getMessage()); e.printStackTrace(); } finally { // Release the connection. getMethod.releaseConnection(); } }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/3 LOCATIONS TO CHANGE IN SIMPLE VERSION 1. in main, change the filename; 2. above, change NOZERO=true; 3. in reconstructTree(), change HMAC;
public static void main(String[] args){ //a /*HCTree hct=new HCTree("../HCT/huff_test_mssg.txt","../HCT/test_key.txt"); hct.buildTreeFromMessage();*/ //b HCTree hct=new HCTree("../HCT/huff_test_mssg.txt","../HCT/test_key.txt","../HCT/huff_test_tree_clean.txt"); hct.verify(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tBinaryNode root = new BinaryNode(1);\n root.left = new BinaryNode(2);\n root.right = new BinaryNode(3);\n root.left.left = new BinaryNode(4);\n root.right.left = new BinaryNode(5);\n root.right.right = new BinaryNode(6);\n root.right.left.left = new BinaryNode(7);\n root.right.left.right = new BinaryNode(8);\n ZigZag(root);\n\n\t\t\n\n\t}", "private BinaryTree() {\n root = new Node(0);\n }", "void buildHashTree(java.io.File r13) {\n /*\n r12 = this;\n r7 = new java.util.Stack;\n r7.<init>();\n r10 = r12.mFilesDataStore;\t Catch:{ all -> 0x0137 }\n r10.open();\t Catch:{ all -> 0x0137 }\n r10 = r12.mFilesDataStore;\t Catch:{ all -> 0x0137 }\n r10.beginTransaction();\t Catch:{ all -> 0x0137 }\n r5 = r13;\n L_0x0010:\n r10 = r12.mOs;\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r10 = r10.isSymlink(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n if (r10 == 0) goto L_0x0046;\n L_0x0018:\n r10 = r12.mOs;\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r3 = r10.getLstatStruct(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r10 = r12.hashSymlink(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r11 = 1;\n r12.updateFilesInfo(r5, r10, r3, r11);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r10 = r12.mOs;\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r9 = r10.readLink(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r13 = new java.io.File;\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r13.<init>(r9);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r10 = r12.mAllFiles;\t Catch:{ NoSuchAlgorithmException -> 0x0144, OsException -> 0x0141 }\n r10 = r10.containsKey(r9);\t Catch:{ NoSuchAlgorithmException -> 0x0144, OsException -> 0x0141 }\n if (r10 == 0) goto L_0x0044;\n L_0x0039:\n r10 = r12.mFilesDataStore;\n r10.endTransaction();\n r10 = r12.mFilesDataStore;\n r10.close();\n L_0x0043:\n return;\n L_0x0044:\n r5 = r13;\n goto L_0x0010;\n L_0x0046:\n r10 = r5.isDirectory();\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n if (r10 == 0) goto L_0x008d;\n L_0x004c:\n r10 = new com.google.android.snet.FileFinder$SystemPartitionFileFinder$HashTreeDirectoryNode;\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r10.<init>(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r7.push(r10);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n L_0x0054:\n r10 = r7.isEmpty();\t Catch:{ all -> 0x0080 }\n if (r10 != 0) goto L_0x0125;\n L_0x005a:\n r4 = r7.peek();\t Catch:{ all -> 0x0080 }\n r4 = (com.google.android.snet.FileFinder.SystemPartitionFileFinder.HashTreeDirectoryNode) r4;\t Catch:{ all -> 0x0080 }\n r0 = r4.getCurrentSubFile();\t Catch:{ all -> 0x0080 }\n if (r0 != 0) goto L_0x00bb;\n L_0x0066:\n r2 = r4.getHash();\t Catch:{ all -> 0x0080 }\n r3 = 0;\n r10 = r12.mOs;\t Catch:{ OsException -> 0x013e }\n r11 = r4.getFile();\t Catch:{ OsException -> 0x013e }\n r3 = r10.getLstatStruct(r11);\t Catch:{ OsException -> 0x013e }\n L_0x0075:\n r10 = r4.getFile();\t Catch:{ all -> 0x0080 }\n r12.updateFilesInfo(r10, r2, r3);\t Catch:{ all -> 0x0080 }\n r7.pop();\t Catch:{ all -> 0x0080 }\n goto L_0x0054;\n L_0x0080:\n r10 = move-exception;\n r13 = r5;\n L_0x0082:\n r11 = r12.mFilesDataStore;\n r11.endTransaction();\n r11 = r12.mFilesDataStore;\n r11.close();\n throw r10;\n L_0x008d:\n r10 = r5.isFile();\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n if (r10 == 0) goto L_0x0010;\n L_0x0093:\n r10 = r12.mOs;\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r3 = r10.getLstatStruct(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r10 = r12.hashFile(r5);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n r12.updateFilesInfo(r5, r10, r3);\t Catch:{ NoSuchAlgorithmException -> 0x00a1, OsException -> 0x00ae }\n goto L_0x0054;\n L_0x00a1:\n r1 = move-exception;\n r13 = r5;\n L_0x00a3:\n r10 = r12.mFilesDataStore;\n r10.endTransaction();\n r10 = r12.mFilesDataStore;\n r10.close();\n goto L_0x0043;\n L_0x00ae:\n r1 = move-exception;\n r13 = r5;\n L_0x00b0:\n r10 = r12.mFilesDataStore;\n r10.endTransaction();\n r10 = r12.mFilesDataStore;\n r10.close();\n goto L_0x0043;\n L_0x00bb:\n r10 = r12.mOs;\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r10 = r10.isSymlink(r0);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n if (r10 == 0) goto L_0x00dd;\n L_0x00c3:\n r8 = r12.hashSymlink(r0);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r3 = 0;\n r10 = r12.mOs;\t Catch:{ OsException -> 0x013c, NoSuchAlgorithmException -> 0x00ff }\n r3 = r10.getLstatStruct(r0);\t Catch:{ OsException -> 0x013c, NoSuchAlgorithmException -> 0x00ff }\n L_0x00ce:\n r10 = 1;\n r12.updateFilesInfo(r0, r8, r3, r10);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r4.updateHash(r8, r3);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n L_0x00d5:\n r0 = r4.getNextSubFile();\t Catch:{ all -> 0x0080 }\n if (r0 != 0) goto L_0x00bb;\n L_0x00db:\n goto L_0x0054;\n L_0x00dd:\n r10 = r0.isDirectory();\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n if (r10 == 0) goto L_0x010d;\n L_0x00e3:\n r10 = r12.mAllFiles;\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r11 = r0.getAbsolutePath();\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r10 = r10.containsKey(r11);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n if (r10 == 0) goto L_0x0101;\n L_0x00ef:\n r10 = r12.mAllFiles;\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r11 = r0.getAbsolutePath();\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r6 = r10.get(r11);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r6 = (com.google.android.snet.FileFinder.FilesInfo) r6;\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r4.updateHash(r6);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n goto L_0x00d5;\n L_0x00ff:\n r1 = move-exception;\n goto L_0x00d5;\n L_0x0101:\n r10 = new com.google.android.snet.FileFinder$SystemPartitionFileFinder$HashTreeDirectoryNode;\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r10.<init>(r0);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r7.push(r10);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n goto L_0x0054;\n L_0x010b:\n r1 = move-exception;\n goto L_0x00d5;\n L_0x010d:\n r10 = r0.isFile();\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n if (r10 == 0) goto L_0x00d5;\n L_0x0113:\n r2 = r12.hashFile(r0);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r3 = 0;\n r10 = r12.mOs;\t Catch:{ OsException -> 0x013a, NoSuchAlgorithmException -> 0x00ff }\n r3 = r10.getLstatStruct(r0);\t Catch:{ OsException -> 0x013a, NoSuchAlgorithmException -> 0x00ff }\n L_0x011e:\n r12.updateFilesInfo(r0, r2, r3);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n r4.updateHash(r2, r3);\t Catch:{ NoSuchAlgorithmException -> 0x00ff, OsException -> 0x010b }\n goto L_0x00d5;\n L_0x0125:\n r10 = r12.mFilesDataStore;\t Catch:{ all -> 0x0080 }\n r10.setTransactionSuccessful();\t Catch:{ all -> 0x0080 }\n r10 = r12.mFilesDataStore;\n r10.endTransaction();\n r10 = r12.mFilesDataStore;\n r10.close();\n r13 = r5;\n goto L_0x0043;\n L_0x0137:\n r10 = move-exception;\n goto L_0x0082;\n L_0x013a:\n r10 = move-exception;\n goto L_0x011e;\n L_0x013c:\n r10 = move-exception;\n goto L_0x00ce;\n L_0x013e:\n r10 = move-exception;\n goto L_0x0075;\n L_0x0141:\n r1 = move-exception;\n goto L_0x00b0;\n L_0x0144:\n r1 = move-exception;\n goto L_0x00a3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.snet.FileFinder.SystemPartitionFileFinder.buildHashTree(java.io.File):void\");\n }", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n GenericTree tree = new GenericTree();\n tree.display();\n System.out.println(\"Size \" + tree.size());\n\n System.out.println(\"Calc Size \" + tree.calculateSize());\n\n System.out.println(\"Max Node Data \" + tree.getMaxNodeData());\n\n System.out.println(\"Element 120 exists ? \" + tree.isElementExists(120));\n\n System.out.println(\"Element 56 exists ? \" + tree.isElementExists(56));\n\n System.out.println(\"Height of tree \" + tree.height());\n\n tree.preOrder();\n\n tree.postOrder();\n\n tree.levelOrder();\n\n tree.levelOrderLW();\n\n tree.levelOrderLW2();\n\n tree.levelOrderZigZag();\n\n tree.levelOrderZigZagPepVersion();\n\n // tree.linearize();\n // tree.display();\n\n // tree.removeLeaves();\n\n // tree.display();\n\n // // changes original data\n // tree.printMirrorImage();\n\n // tree.linearizeEffective();\n // tree.display();\n\n\n System.out.println(tree.isSymmetric());\n\n tree.predSucc(120);\n\n tree.justLarger(83);\n\n System.out.println(tree.kthSmallest(3));\n\n }", "public static void main(String[] args) {\n ConstructBinaryTreefromInorderandPostorderTraversal obj = new ConstructBinaryTreefromInorderandPostorderTraversal();\n TreeNode root = TreeNode.deserializeLevelorder(\"6,2,8,0,4,7,9,null,null,3,5\");\n TreeNode.printNode(root);\n System.out.println(\"\\nPost order\");\n TreeNode.postorderRecursive(root);\n System.out.println(\"\\nIn order\");\n TreeNode.inorderRecursive(root);\n System.out.println(\"\\nPre order\");\n TreeNode.preorderRecursive(root);\n System.out.println(\"\\nConstruct tree\");\n int[] inorder = {0, 2, 3, 4, 5, 6, 7, 8, 9};\n int[] postOrder = {0, 3, 5, 4, 2, 7, 9, 8, 6};\n TreeNode res = obj.buildTree(inorder, postOrder);\n TreeNode.printNode(res);\n\n int[] inorder2 = {3, 2, 1};\n int[] postOrder2 = {3, 2, 1};\n TreeNode res2 = obj.buildTree(inorder2, postOrder2);\n TreeNode.printNode(res2);\n }", "private BinaryTreeMethods() {\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t binarytree bt = new binarytree(); bt.display();\r\n\t\t System.out.println(bt.size2()); System.out.println(bt.size());\r\n\t\t System.out.println(bt.max()); System.out.println(bt.min());\r\n\t\t \r\n\t\t System.out.println(bt.height()); System.out.println(bt.find(87));\r\n\t\t System.out.println(bt.find(5)); //bt.mirror(); bt.display();\r\n\t\t \r\n\t\t bt.preOrder(); bt.postOrder(); bt.inOrder();\r\n\t\t System.out.println(\"**************************************\");\r\n\t\t bt.levelorder(); bt.preorderI();\r\n\t\t \r\n\t\t/*\r\n\t\t * System.out.println(bt.find(87)); System.out.println(bt.find(5));\r\n\t\t * \r\n\t\t * System.out.println(bt.height());\r\n\t\t * \r\n\t\t * // bt.display();\r\n\t\t */// bt.mirror();\r\n\t\t\t// bt.display();\r\n\t\t/*\r\n\t\t * bt.preOrder(); bt.postOrder(); bt.inOrder(); bt.levelOrder();\r\n\t\t * bt.preOrderI();33\r\n\t\t * \r\n\t\t * System.out.println(bt.postOrderPred(50));\r\n\t\t * System.out.println(bt.postOrderSucc(50));\r\n\t\t * \r\n\t\t * bt.multiCalculator();\r\n\t\t */\r\n\t\tint[] pre = { 50, 25, 12, 49, 62, 87, 75 };\r\n\t\tint[] in = { 12, 25, 49, 50, 62, 75, 87 };\r\n\t\tbinarytree b2 = new binarytree(pre, in);\r\n\t\tbt.display();\r\n\t\tSystem.out.println(b2.diameter());\r\n\t\tSystem.out.println(b2.isbst());\r\n\t\tSystem.out.println(b2.isbst3());\r\n\t}", "public static void main(String[] args) {\n TreeNode treeNode = reConstructBinaryTree();\n zxubianli(treeNode);\n }", "public static void main(String[] args) {\n // GenericTree gt=new GenericTree();\n // gt.display(); \n //System.out.println(gt.height());\n //System.out.println(gt.find(10));\n /*gt.mirror(); \n gt.display(); */ \n //gt.preorderTraversal();\n //gt.preOTraversalIterative();\n // gt.postOrderTraversal();\n // gt.postOrderIterat(); \n //gt.multiSolver(30); \n /*gt.levelOrderLinewise();\n gt.levelOrderZigzag();*/ \n\t\tGenericTree gt1=new GenericTree();\n\t\t//GenericTree gt2=new GenericTree();\n\t\t//System.out.println(gt1.isSymmetric()); \n\t\tgt1.KthSmallest(3); \n \n \n\t}", "private CompressionTools() {}", "public CanonicalTreeParser() {\n \t\t// Nothing necessary.\n \t}", "private static void buildNewEncodingTableUtil(Node root , Map<Character,String> newTable , List<Character> path) {\n\t\t\n\t\tif(root!=null) {\n\t\t\t\n\t\t\tif(root.left==null && root.right==null) {//Leaf.. Put the sequence into the map.\n\t\t\t\t\n\t\t\t\tString encoding = path.stream().map(e->e.toString()).collect(Collectors.joining()); //Good stuff\n//\t\t\t\tSystem.out.println(\"--encoding : \" + encoding);\n\t\t\t\tnewTable.put(root.data, encoding);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpath.add('0');\n\t\t\t\tbuildNewEncodingTableUtil(root.left, newTable, path);\n\t\t\t\tpath.remove(path.size()-1);\n\t\t\t\tpath.add('1');\n\t\t\t\tbuildNewEncodingTableUtil(root.right, newTable, path);\n\t\t\t\tpath.remove(path.size()-1);\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tBinaryTree bt = new BinaryTree();\n\t\tint key = sc.nextInt();\n\t\tbt.root = bt.createTreeByLevelTree(sc);\n\t\tbt.root = bt.replaceNegativeOne(bt.root);\n\t\tNode infected = bt.ifNodeExists(bt.root, key);\n\t\tSystem.out.println(bt.CovidTree(bt.root, infected));\n\t\tbt.deleteTree(bt.root);\n\t}", "FractalTree() {\r\n }", "public BinaryTree() {\n\t}", "private void buildBinaryTree() {\n log.info(\"Constructing priority queue\");\n Huffman huffman = new Huffman(cache.vocabWords());\n huffman.build();\n\n log.info(\"Built tree\");\n\n }", "public static void main(String[] args) {\n\t\tBinaryTree binaryTree = new BinaryTree();\n\t\t// System.out.println(binaryTree.height());\n\t\t// System.out.println(binaryTree.minDepthRecur());\n\t\t// System.out.println(binaryTree.pathSum(58));\n\t\t// System.out.println(binaryTree.sumNumbers());\n\t\tSystem.out.println(binaryTree.LCA(9, 24));\n\t}", "public static void main(String[] args) {\n int[] preorder = {3, 9, 1, 2, 20, 15, 7};\n int[] inorder = {1, 9, 2, 3, 15, 20, 7};\n\n Node root = buildTree(preorder, inorder);\n }", "public IntTree() {\n overallRoot = null;\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\tbbst rbt = new bbst();\n\t\t\n\t\t\t//File f1 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\test_10000000.txt\");\n\t\t\t\t//System.out.println(\" file name \" + args[0]);\n\t\t\tFile f1 = new File(args[0]);\n\t\t\tFileReader input = new FileReader(f1);\n\t\t\tBufferedReader in = new BufferedReader(input);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\t\tline = in.readLine();\n\t\t\t\tint size = Integer.parseInt(line);\n\t\t\t\tint arr[][] = new int[size][2];\n\t\t\t\tint i=0;\n\t\t\t\twhile(line != null){\n\t\t\t\t\tline = in.readLine();\n\t\t\t\t\tif( line != null){\n\t\t\t\t\t\tint key = Integer.parseInt(line.split(\" \")[0]);\n\t\t\t\t\t\tint val = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t\t\tarr[i][0]=key;\n\t\t\t\t\t\tarr[i][1]=val;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trbt.buildInitialTree(arr,size);\n\t\t\t\t\n\t\t\t\tinput.close();\n\t\t\t\tin.close();\n\t\t\t\t//System.out.println(\" tree build\");\n\t\t\t\tString line1;\n\t\t\t\twhile ((line1 = br.readLine()) != null) {\n\t\t\t\t\t//System.out.println(\" line \" + line);\n\t \tif(line1.isEmpty())\n\t \t\tcontinue;\n\t \t//System.out.println(\" line \");\n\t \tStringTokenizer stringTokenizer = new StringTokenizer(line1, \" \");\n\t \t\n\t \twhile (stringTokenizer.hasMoreElements()) {\n\t\t\t\t\t \n\t \tString command = stringTokenizer.nextElement().toString();\n\t \tint param1 ;\n\t\t\t \tint param2;\n\t\t\t \t\t \n\t \n\t\t // System.out.println(command);\n\t\t switch (command.toString()) {\n\t\t case \"increase\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \n\t\t //System.out.println(Integer.parseInt(y.toString()));\n\t\t rbt.Increase(param1, param2);\n\t\t break;\n\t\t case \"reduce\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Reduce(param1,param2);\n\t\t break;\n\t\t case \"count\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Count(param1);\n\t\t break;\n\t\t case \"inrange\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.InRange(param1, param2);\n\t\t break;\n\t\t case \"next\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Next(param1);\n\t\t break;\n\t\n\t\t case \"previous\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Previous(param1);\n\t\t break;\n\t\t case \"quit\":\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t default : \n\t\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t }\n\t \t}\n\t }\n\t\t\t\t\n\t\t\t\t//File f2 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\commands.txt\");\n\t\t\t\t//File f2 = new File(args[1]);\n\t\t\t\t//FileReader input2 = new FileReader(f2);\n\t\t\t\t//BufferedReader in2 = new BufferedReader(input2);\n\t\t\t\t//String s2 = in2.readLine();\n\t\t\t\t/*while(s != null){\n\t\t\t\t\ts = in.readLine();\n\t\t\t\t\tif(s!=null){\n\t\t\t\t\t\tswitch(s.split(\" \")[0]){\n\t\t\t\t\t case \"increase\" :\n\t\t\t\t\t \t//System.out.println(\" increase \");\n\t\t\t\t\t \tint key = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint incVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Increase(key, incVal);\n\t\t\t\t\t break; \n\t\t\t\t\t case \"reduce\" :\n\t\t\t\t\t \t //System.out.println(\" reduce \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tincVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println( \" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Reduce(key, incVal);\n\t\t\t\t\t break;\n\t\t\t\t\t case \"count\" :\n\t\t\t\t\t \t//System.out.println(\"count \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Count(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"inrange\" :\n\t\t\t\t\t \t//System.out.println(\" in range \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint key2 = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" val \" + key2);\n\t\t\t\t\t \trbt.InRange(key, key2);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"next\" :\n\t\t\t\t\t \t//System.out.println(\" next\");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Next(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"previous\" :\n\t\t\t\t\t \t//System.out.println(\" prev \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" find prev of \" + key);\n\t\t\t\t\t \t//System.out.println(\" node in tree \" + rbt.getNode(root, key).id);\n\t\t\t\t\t \trbt.Previous(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"quit\":\n\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t default : \n\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\n\t}", "public static void main(String[] args){ \n // What It Does: Demo that the assignment is complete and correct\n // How It Works: Call to BinaryTree.main() demo method\n BinaryTree.main(args);\n }", "public static void main(String[] args) {\n BinayTree root = new BinayTree();\n root.data = 8;\n root.left = new BinayTree();\n root.left.data = 6;\n root.left.left = new BinayTree();\n root.left.left.data = 5;\n root.left.right = new BinayTree();\n root.left.right.data = 7;\n root.right = new BinayTree();\n root.right.data = 10;\n root.right.left = new BinayTree();\n root.right.left.data = 9;\n root.right.right = new BinayTree();\n root.right.right.data = 11;\n printTree(root);\n System.out.println();\n mirror(root);\n printTree(root);\n // 1\n // /\n // 3\n // /\n // 5\n // /\n // 7\n // /\n // 9\n BinayTree root2 = new BinayTree();\n root2.data = 1;\n root2.left = new BinayTree();\n root2.left.data = 3;\n root2.left.left = new BinayTree();\n root2.left.left.data = 5;\n root2.left.left.left = new BinayTree();\n root2.left.left.left.data = 7;\n root2.left.left.left.left = new BinayTree();\n root2.left.left.left.left.data = 9;\n System.out.println(\"\\n\");\n printTree(root2);\n System.out.println();\n mirror(root2);\n printTree(root2);\n\n // 0\n // \\\n // 2\n // \\\n // 4\n // \\\n // 6\n // \\\n // 8\n BinayTree root3 = new BinayTree();\n root3.data = 0;\n root3.right = new BinayTree();\n root3.right.data = 2;\n root3.right.right = new BinayTree();\n root3.right.right.data = 4;\n root3.right.right.right = new BinayTree();\n root3.right.right.right.data = 6;\n root3.right.right.right.right = new BinayTree();\n root3.right.right.right.right.data = 8;\n System.out.println(\"\\n\");\n printTree(root3);\n System.out.println();\n mirror(root3);\n printTree(root3);\n\n\n }", "private StandardDeCompressors() {}", "public static void main(String args[]){\n SimpleBST<Integer> t = new SimpleBST<Integer>();\n\n //build the tree / set the size manually\n //only for testing purpose\n Node<Integer> node = new Node<>(112);\n Node<Integer> node2 = new Node<>(330);\n node2 = new Node<>(440,node2,null);\n node = new Node<>(310,node,node2);\n t.root = node;\n t.size = 4;\n\n // Current tree:\n //\t\t\t 310\n // / \\\n // 112 440\n // /\n // 330\n\n\n //checking basic features\n if (t.root.data == 310 && t.contains(112) && !t.contains(211) && t.height() == 2){\n System.out.println(\"Yay 1\");\n }\n\n //checking more features\n if (t.numLeaves() == 2 && SimpleBST.findMax(t.root)==440\n && SimpleBST.findPredecessor(t.root) == 112){\n System.out.println(\"Yay 2\");\n }\n\n //toString and toArray\n if (t.toString().equals(\"112 310 330 440 \") && t.toArray().length==t.size()\n && t.toArray()[0].equals(310) && t.toArray()[1].equals(112)\n && t.toArray()[2].equals(440) && t.toArray()[3].equals(330) ){\n System.out.println(\"Yay 3\");\n //System.out.println(t.toString());\n }\n\n // start w/ an empty tree and insert to build the same tree as above\n t = new SimpleBST<Integer>();\n if (t.insert(310) && !t.insert(null) && t.size()==1 && t.height()==0\n && t.insert(112) && t.insert(440) && t.insert(330) && !t.insert(330)\n ){\n System.out.println(\"Yay 4\");\n }\n\n if (t.size()==4 && t.height()==2 && t.root.data == 310 &&\n t.root.left.data == 112 && t.root.right.data==440\n && t.root.right.left.data == 330){\n System.out.println(\"Yay 5\");\n }\n\n // more insertion\n t.insert(465);\n t.insert(321);\n t.insert(211);\n\n //\t\t\t 310\n // / \\\n // 112 440\n // \\ / \\\n // 211 330 465\n // /\n // 321\n\n\n\n //remove leaf (211), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 330 465\n // /\n // 321\n\n if (t.remove(211) && !t.contains(211) && t.size()==6 && t.height() == 3\n && SimpleBST.findMax(t.root.left) == 112){\n System.out.println(\"Yay 6\");\n }\n\n //remove node w/ single child (330), after removal:\n //\t\t\t 310\n // / \\\n // 112 440\n // / \\\n // 321 465\n\n if (t.remove(330) && !t.contains(330) && t.size()==5 && t.height() == 2\n && t.root.right.left.data == 321){\n System.out.println(\"Yay 7\");\n }\n\n //remove node w/ two children (440), after removal:\n //\t\t\t 310\n // / \\\n // 112 321\n // \\\n // 465\n\n if ((t.root!=null) && SimpleBST.findPredecessor(t.root.right) == 321 && t.remove(440) && !t.contains(440)\n && t.size()==4 && t.height() == 2 && t.root.right.data == 321){\n System.out.println(\"Yay 8\");\n }\n\n }", "BSTDictionary() {\n\t\troot = null;// default root to null;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString[] a={\"111\",\"1101\",\"1100\",\"0\",\"10\"};\n\t\tBinTree t;\n\t\ttry{\n\t\t\tt=new BinTree(a);\n\t\t\tSystem.out.println(\"Print tree:\");\n\t\t\tt.printTree();\n\t\t\tSystem.out.println(\"\\n***************\");\n\t\t\t\n\t\t\tSystem.out.println(\"Print tree in level order:\");\n\t\t\tt.printLevelOrder();\n\t\t\tSystem.out.println(\"\\n***************\");\n\t\t\t\n\t\t\tSystem.out.println(\"Get Codewords:\");\n\t\t\tSystem.out.println(t.getCodewords());\n\t\t\tSystem.out.println(\"\\n***************\");\n\t\t\t\n\t\t\tSystem.out.println(\"Convert to array\");\n\t\t\tt.convert();\n\t\t\tSystem.out.println(\"\\n***************\");\n\t\t\t\n\t\t\tSystem.out.println(\"Decode 1111011011010:\");\n\t\t\tSystem.out.println(t.decode(\"1111011011010\"));\n\t\t\tSystem.out.println(\"\\n***************\");\n\t\t}catch(IllegalArgumentException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}", "protected abstract Nfa buildInternal();", "public PrefixBasedOutsourcing(String rootDirectory)\n\t{\n\t\tthis.rootDirectory = rootDirectory;\n\t\tthis.existingFile = new TreeMap<String, byte[]>();\n\t\tthis.prefix = new TreeMap<String, byte[]>();\n\t\t\n\t\tthis.seed = new byte[32];\n\t\tfor (int i = 0; i < this.seed.length; i++)\n\t\t\tthis.seed[i] = (byte)0xff;\n\t\t\n\t\t\n\t\t// initialize the MAC algorithm\n\t\ttry \n\t\t{\n\t\t\tthis.sr = new SecureRandom(this.seed);\n\t\t\tthis.kg = KeyGenerator.getInstance(\"HmacSHA256\");\n\t\t\tthis.kg.init(this.sr);\n\t\t\tthis.sk = kg.generateKey();\n\t\t\tthis.mac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tthis.mac.init(sk);\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Error occured when initializing the cryptographic primitives.\");\n\t\t}\n\t}", "public void constructTree(){\n PriorityQueue<HCNode> queue=new PriorityQueue<HCNode>();\n \n for(int i=0;i<MAXSIZE;i++){\n if(NOZERO){\n if(occTable[i]!=0){\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }else{\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }\n //constructing the Huffman Tree\n HCNode n1=null,n2=null;\n while(((n2=queue.poll())!=null) && ((n1=queue.poll())!=null)){\n HCNode nnode=new HCNode(n1.str+n2.str,n1.occ+n2.occ, null);\n nnode.left=n1;nnode.right=n2;\n n1.parent=nnode;n2.parent=nnode;\n queue.add(nnode);\n }\n if(n1==null&&n2==null){\n System.out.println(\"oops\");\n }\n if(n1!=null)\n root=n1;\n else\n root=n2;\n }", "public T208() {\n root = new Node(-1);\n }", "public static void main(String[] args) {\n System.out.println(\"..............Testing Balanced Tree..............\");\n {\n BST bst = BST.createBST();\n printPreety(bst.root);\n\n System.out.println(\"Testing Balanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(bst.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing Balanced Tree Better way: \" + isBalanced_Better(bst.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing Balanced Tree Using Memoization: \" + isBalanced_Memoization(bst.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n //System.out.println(\"Wrong algorithm:\" + isTreeAlmostBalanced(bst.root));\n }\n System.out.println();\n\n countWithBruteForce = 0;\n countWithBetterWay = 0;\n countWithMemoization = 0;\n\n System.out.println(\"..............Testing UnBalanced Tree..............\");\n {\n BST unBalancedBst = BST.createUnBalancedBST();\n printPreety(unBalancedBst.root);\n\n System.out.println(\"Testing UnBalanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(unBalancedBst.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing UnBalanced Tree Better way: \" + isBalanced_Better(unBalancedBst.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing UnBalanced Tree Using Memoization: \" + isBalanced_Memoization(unBalancedBst.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n //System.out.println(\"Wrong algorithm:\" + isTreeAlmostBalanced(unBalancedBst.root));\n }\n System.out.println();\n\n countWithBruteForce = 0;\n countWithBetterWay = 0;\n countWithMemoization = 0;\n\n System.out.println(\"..............Testing Another UnBalanced Tree..............\");\n {\n BST anotherUnbalanced = BST.createAnotherUnBalancedBST();\n printPreety(anotherUnbalanced.root);\n\n System.out.println(\"Testing another UnBalanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(anotherUnbalanced.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing another UnBalanced Tree Better way: \" + isBalanced_Better(anotherUnbalanced.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing another UnBalanced Tree Using Memoization: \" + isBalanced_Memoization(anotherUnbalanced.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n }\n\n }", "public BinaryTree() {\n root = null;\n }", "public BinaryTree() {\n root = null;\n }", "public TreeDictionary() {\n\t\t\n\t}", "public KdTree() \r\n\t{\r\n\t}", "bst()\n\t{\n\t\troot = null;\n\t\tnodecount = 0;\n\t}", "public static void main(String[] args) {\n\t\tbinaryTreeNode root1 = new binaryTreeNode(8);\r\n\t\tbinaryTreeNode b1 = new binaryTreeNode(8);\r\n\t\tbinaryTreeNode b2 = new binaryTreeNode(7);\r\n\t\tbinaryTreeNode b3 = new binaryTreeNode(9);\r\n\t\tbinaryTreeNode b4 = new binaryTreeNode(2);\r\n\t\tbinaryTreeNode b5 = new binaryTreeNode(4);\r\n\t\tbinaryTreeNode b6 = new binaryTreeNode(7);\r\n\t\troot1.left = b1;root1.right = b2;\r\n\t\tb1.left = b3;b1.right = b4;\r\n\t\tb4.left = b5;b4.right = b6;\r\n\t\t\r\n\t\tMirrorRecursively(root1);\r\n\t\t\r\n\t}", "public BinaryTree()\n\t{\n\t\troot = null;\n\t}", "private HPTNode<K, V> buildRoot() {\n HPTNode<K, V> node = new HPTNode<K, V>(keyIdSequence++, null);\n node.children = reallocate(ROOT_CAPACITY);\n return node;\n }", "public TernaryTree() {\n root = null;\n\n }", "public Tree() // constructor\n\t{ root = null; }", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\ttry {\r\n\t\tString inputfile = args[0]+\".txt\";\r\n\t\tString outputfile = args[1]+\".txt\";\r\n\t\tString outputfile2 = args[2]+\".txt\";\r\n\r\n\r\n\r\n\t\tFileInputStream textFile1 = new FileInputStream(inputfile);\r\n\t\tScanner scan = new Scanner(textFile1);\r\n\t\tBinaryTree bst = new BinaryTree();\r\n\t\t\r\n\t\t//reading input files and storing\r\n\t\twhile(scan.hasNextLine()){\r\n\t\t\t\r\n\t\tString s = scan.nextLine();\r\n\t\tchar code=s.charAt(0);\r\n\t\tint id = Integer.parseInt(s.substring(1, 8));\r\n\t\t\tString nah=s.substring(8,8+25);\r\n\t\t\tString name= nah.trim();\r\n\t\t\tString department=s.substring(33,37);\r\n\t\t\tString program=s.substring(37,40);\r\n\t\t\tchar year=s.charAt(41);\r\n\t\t\tNode n= new Node();\r\n\t\t\tStudent stu = new Student();\r\n\t\t\tn.code=code;\r\n\t\t\tstu.id=id;\r\n\t\t\tstu.name=name;\r\n\t\t\tstu.department=department;\r\n\t\t\tstu.program=program;\r\n\t\t\tstu.year=year;\r\n\t\t\tif(code=='I')\r\n\t\t\t\tbst.insert(stu);\r\n\t\t\telse if(code=='D')\r\n\t\t\t\tbst.deleteKey(stu);\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Wrong code detected in input file. Should be I or D\");\r\n\t\t\t//System.out.println(\"Code: \" + code + \" ID: \" + stu.id + \" Name: \" + stu.name+ \" Dep: \" + stu.department + \" Program: \" + stu.program + \" Year: \"+ stu.year);\r\n\t\t}\r\n\t\t //Just changing the Stream so it will print to a file instead of console.\r\n\t\t PrintStream printStream = new PrintStream(new FileOutputStream(outputfile));\r\n\t\t System.setOut(printStream);\r\n\t\t System.out.println(\"\\nInorder traversal of binary tree is \");\r\n\t\t System.out.println(String.format(\"%-10s %-7s %-4s %-4s %-4s \",\"Name\",\" ID\",\"Department\",\"Program\",\"Year\"));\r\n\t\t bst.printInorder(outputfile);\r\n\t\t PrintStream printStream2 = new PrintStream(new FileOutputStream(outputfile2));\r\n\t\t System.setOut(printStream2);\r\n\t\t System.out.println(\"\\nBreadthFirst traversal of binary tree is \");\r\n\t\t System.out.println(String.format(\"%-10s %-7s %-4s %-4s %-4s \",\"Name\",\" ID\",\"Department\",\"Program\",\"Year\"));\r\n\t\t bst.printLevelOrder(outputfile2);\r\n\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"usage\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\r\n\t}", "public static void main(String[] args) {\n\t\tBinaryTree binaryTree = new BinaryTree();\n\t\tBinaryNode FrontBinaryNode = binaryTree.buildTree();\n\t\tSystem.out.print(\"层次遍历:\");\n\t\tbinaryTree.sequence(FrontBinaryNode);\n\t\tSystem.out.print(\"先序遍历:\");\n\t\tbinaryTree.preorder(FrontBinaryNode);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"中序遍历:\");\n\t\tbinaryTree.inorder(FrontBinaryNode);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"后序遍历:\");\n\t\tbinaryTree.postorder(FrontBinaryNode);\n\t\t//测试数据:ebfad.g..c\n\n\t}", "public static void main(String[] args) \n\t{\n\t\ttree x = new tree(0);\n\t\t\n\t\ttreenode r = x.root;\n\t\t\n//\t\ttreenode c = r;\n//\t\tfor(int i =1;i<=4;i++)\n//\t\t{\n//\t\t\tfor(int j=0;j<=8;j=j+4)\n//\t\t\t{\n//\t\t\t\ttreenode n = new treenode(i+j);\n//\t\t\t\tif(j==0)\n//\t\t\t\t{\n//\t\t\t\t\tr.child.add(n);\n//\t\t\t\t\tc = n;\n//\t\t\t\t}\n//\t\t\t\telse\n//\t\t\t\t{\n//\t\t\t\t\tc.child.add(n);\n//\t\t\t\t\tc = n;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\ttreenode c1 = r;\n\t\ttreenode c2 = r;\n\t\ttreenode c3 = r;\n\t\ttreenode c4 = r;\n\t\tfor(int i=1;i<13;i++)\n\t\t{\n\t\t\ttreenode n = new treenode(i);\n\t\t\tif(i%4==1)\n\t\t\t{\n\t\t\t\tc1.child.add(n);\n\t\t\t\tc1 = n;\n\t\t\t}\n\t\t\tif(i%4==2)\n\t\t\t{\n\t\t\t\tc2.child.add(n);\n\t\t\t\tc2 = n;\n\t\t\t}\n\t\t\tif(i%4==3)\n\t\t\t{\n\t\t\t\tc3.child.add(n);\n\t\t\t\tc3 = n;\n\t\t\t}\n\t\t\tif(i%4==0)\n\t\t\t{\n\t\t\t\tc4.child.add(n);\n\t\t\t\tc4 = n;\n\t\t\t}\n\t\t}\n\t\tx.traverse(r);\n\t}", "public KdTree() {\n size = 0;\n }", "public MagicDictionary() {\n root=new Node();\n }", "public KdTree() {\n root = null;\n n = 0;\n }", "public HuffmanTree() {\r\n\t\tsuper();\r\n\t}", "public RBTree() {\r\n\t\t// well its supposed just create a new Red Black Tree\r\n\t\t// Maybe create a new one that does a array of Objects\r\n\t}", "@Test\n public void testSerDeserTree() {\n\n TreeSerDeser.Node node0 = new TreeSerDeser.Node('A');\n TreeSerDeser.Node node1 = new TreeSerDeser.Node('B');\n TreeSerDeser.Node node2 = new TreeSerDeser.Node('C');\n TreeSerDeser.Node node3 = new TreeSerDeser.Node('D');\n TreeSerDeser.Node node4 = new TreeSerDeser.Node('E');\n TreeSerDeser.Node node5 = new TreeSerDeser.Node('F');\n TreeSerDeser.Node node6 = new TreeSerDeser.Node('G');\n TreeSerDeser.Node node7 = new TreeSerDeser.Node('H');\n TreeSerDeser.Node node8 = new TreeSerDeser.Node('I');\n TreeSerDeser.Node node9 = new TreeSerDeser.Node('J');\n TreeSerDeser.Node node10 = new TreeSerDeser.Node('K');\n node0.children.addAll(Arrays.asList(node1, node2, node3));\n node1.children.addAll(Arrays.asList(node4, node5));\n node3.children.addAll(Arrays.asList(node6, node7, node8, node9));\n node4.children.add(node10);\n\n String result = TreeSerDeser.serializeTree(node0);\n System.out.println(result);\n TreeSerDeser.Node root = TreeSerDeser.deserializeTree(result);\n System.out.println(TreeSerDeser.serializeTree(root));\n\n StringBuffer sb = new StringBuffer();\n TreeSerDeser.serializeTreeRecursively(node0, sb);\n System.out.println(sb.toString());\n\n TreeSerDeser.Counter counter = new TreeSerDeser.Counter();\n root = TreeSerDeser.deserializeTreeRecursively(sb.toString(), counter);\n sb = new StringBuffer();\n TreeSerDeser.serializeTreeRecursively(root, sb);\n System.out.println(sb.toString());\n }", "public static void main(String[] args) {\n\t\tZBinaryTree tree = new ZBinaryTree();\n\t\ttree.rootNode = new ZNode(1);\n\t\ttree.rootNode.leftChild = new ZNode(2);\n\t\ttree.rootNode.rightChild = new ZNode(3);\n\t\ttree.rootNode.leftChild.leftChild = new ZNode(7);\n\t\ttree.rootNode.leftChild.rightChild = new ZNode(6);\n\t\ttree.rootNode.rightChild.leftChild = new ZNode(5);\n\t\ttree.rootNode.rightChild.rightChild = new ZNode(4);\n\n\t\tSystem.out.println(\"ZigZag Order traversal of binary tree is\");\n\t\ttree.printZigZagTraversal();\n\t}", "public KdTree()\n {\n root = null;\n size = 0;\n }", "public ObjectBinaryTree() {\n root = null;\n }", "public BinaryTree() {\n count = 0;\n root = null;\n }", "public MagicDictionary() {\n\t\troot = new TrieNode();\n\t}", "public static void main(String[] args) {\n TreeNode root = build(1, build(2, null, build(1)), build(3));\n System.out.println(new SumRootToLeaf().sum(root));\n }", "public SegmentTree() {}", "public KdTree() \n\t {\n\t\t \n\t }", "public BinaryTree()\r\n\t{\r\n\t\t// Initialize field values\r\n\t\tthis.counter = 0;\r\n\t\tthis.arrayCounter = 0;\r\n\t\tthis.root = null;\r\n\t}", "private void buildTable(HuffmanNode root) {\r\n \tpostorder(root, \"\");\r\n }", "public BinaryTree(){\r\n root = null;\r\n }", "public BinaryTree(){}", "public MorseCodeTree()\r\n\t{\r\n\t\tbuildTree();\r\n\t}", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "public EmptyBinarySearchTree()\n {\n\n }", "public KdTree() {\n root = null;\n }", "public static void main(String[] args) {\n\t\tTreeNode node1 = new TreeNode(1);\r\n\t\tTreeNode node2 = new TreeNode(2);\r\n\t\tTreeNode node3 = new TreeNode(3);\r\n\t\tTreeNode node4 = new TreeNode(4);\r\n\t\tTreeNode node5 = new TreeNode(5);\r\n\t\tTreeNode node6 = new TreeNode(6);\r\n\t\tnode1.left=node2;\r\n\t\tnode1.right=node3;\r\n\t\tnode2.left=node4;\r\n\t\tnode3.left=node5;\r\n\t\tnode3.right=node6;\r\n\t\tSolution s=new Solution();\r\n\t\tString res=s.Serialize(node1);\r\n\t\tSystem.out.println(res);\r\n\t\t\r\n\r\n \r\n\t}", "public KdTree() {\n }", "public RedBlackTree()\n { \n \t root = null;\n }", "private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }", "private NormalizerImpl()\n/* */ throws IOException\n/* */ {\n/* 256 */ if (!isDataLoaded)\n/* */ {\n/* */ \n/* 259 */ InputStream localInputStream = ICUData.getRequiredStream(\"/sun/text/resources/unorm.icu\");\n/* 260 */ BufferedInputStream localBufferedInputStream = new BufferedInputStream(localInputStream, 25000);\n/* 261 */ NormalizerDataReader localNormalizerDataReader = new NormalizerDataReader(localBufferedInputStream);\n/* */ \n/* */ \n/* 264 */ indexes = localNormalizerDataReader.readIndexes(32);\n/* */ \n/* 266 */ byte[] arrayOfByte1 = new byte[indexes[0]];\n/* */ \n/* 268 */ int i = indexes[2];\n/* 269 */ combiningTable = new char[i];\n/* */ \n/* 271 */ int j = indexes[1];\n/* 272 */ extraData = new char[j];\n/* */ \n/* 274 */ byte[] arrayOfByte2 = new byte[indexes[10]];\n/* 275 */ byte[] arrayOfByte3 = new byte[indexes[11]];\n/* */ \n/* 277 */ fcdTrieImpl = new FCDTrieImpl();\n/* 278 */ normTrieImpl = new NormTrieImpl();\n/* 279 */ auxTrieImpl = new AuxTrieImpl();\n/* */ \n/* */ \n/* 282 */ localNormalizerDataReader.read(arrayOfByte1, arrayOfByte2, arrayOfByte3, extraData, combiningTable);\n/* */ \n/* 284 */ NormTrieImpl.normTrie = new IntTrie(new ByteArrayInputStream(arrayOfByte1), normTrieImpl);\n/* 285 */ FCDTrieImpl.fcdTrie = new CharTrie(new ByteArrayInputStream(arrayOfByte2), fcdTrieImpl);\n/* 286 */ AuxTrieImpl.auxTrie = new CharTrie(new ByteArrayInputStream(arrayOfByte3), auxTrieImpl);\n/* */ \n/* */ \n/* */ \n/* 290 */ isDataLoaded = true;\n/* */ \n/* */ \n/* 293 */ byte[] arrayOfByte4 = localNormalizerDataReader.getDataFormatVersion();\n/* */ \n/* 295 */ isFormatVersion_2_1 = (arrayOfByte4[0] > 2) || ((arrayOfByte4[0] == 2) && (arrayOfByte4[1] >= 1));\n/* */ \n/* */ \n/* */ \n/* 299 */ isFormatVersion_2_2 = (arrayOfByte4[0] > 2) || ((arrayOfByte4[0] == 2) && (arrayOfByte4[1] >= 2));\n/* */ \n/* */ \n/* */ \n/* 303 */ unicodeVersion = localNormalizerDataReader.getUnicodeVersion();\n/* 304 */ localBufferedInputStream.close();\n/* */ }\n/* */ }", "public static void main(String[] args)\r\n {\r\n \r\n int[] preorder = { 1, 2, 4, 5, 3, 6, 8, 9, 7 };\r\n int[] isLeaf = { 0, 0, 1, 1, 0, 0, 1, 1, 1 };\r\n \r\n // construct the tree\r\n Node root = constructTree(preorder, isLeaf);\r\n \r\n // print the tree in preorder fashion\r\n System.out.print(\"Preorder Traversal of the constructed tree is: \");\r\n preorderTraversal(root);\r\n }", "static public void main(String[] args) throws IOException, ClassNotFoundException\n\t{\n\t\tString loggingPath = \"logging.properties\";\n\t\tSystem.setProperty(\"java.util.logging.config.file\", loggingPath);\n\n\t\tString kbPath = \"/opt/data/nlp/sumo/SumoKB\";\n\t\tSystem.out.printf(\"Kb building%n\");\n\t\tfinal KB kb = new SUMOKb().make(kbPath);\n\t\tSystem.out.printf(\"%nKb built%n\");\n\t\tSystem.out.printf(\"Kb1%n\");\n\t\tdumpKb(kb);\n\t\tmakeClausalForms(kb);\n\n\t\tSystem.out.printf(\"%nKb serializing%n\");\n\t\tSerializer.serializeFile(\"./sumokb.ser\", kb);\n\t\tSerializer.serializeZip(\"./sumo.zip\", \"kb\", kb);\n\t\tSystem.out.printf(\"Kb serialized%n\");\n\n\t\tSystem.out.printf(\"%nKb de-serializing%n\");\n\t\tKB kb2 = (KB) DeSerializer.deserializeZip(\"./sumo.zip\", \"kb\");\n\t\tKB kb3 = (KB) DeSerializer.deserializeFile(\"./sumokb.ser\");\n\t\tSystem.out.printf(\"Kb de-serialized%n\");\n\t\tSystem.out.printf(\"Kb2%n\");\n\t\tdumpKb(kb2);\n\t\tSystem.out.printf(\"Kb3%n\");\n\t\tdumpKb(kb3);\n\n\t\tSystem.out.printf(\"%nDone\");\n\t}", "public BSearchTree() {\n\t\tthis.overallRoot = null;\n\t}", "public static void main(String[] args){\n\t\tcreatetree t=new createtree();\n\t\tt.binaryinsert(10);\n\t\tt.binaryinsert(20);\n\t\tt.binaryinsert(40);\n\t\tboolean r=checkbalance(t.root);\n\t\tSystem.out.println(r);\n\t\n\t}", "public static void main(String[] args) throws Exception {\n \t\n \tbyte[] fileData = Files.readAllBytes(Paths.get(new File(System.getProperty(\"user.dir\")+\"/bin/main/re/bytecode/obfuscat/pass/vm/VMRefImpl.class\").toURI()));\n \tDSLParser p = new DSLParser();\n \tMap<String, Function> functions = p.processFile(fileData);\n \tFunction refF = MergedFunction.mergeFunctions(functions, \"process\"); // functions.get(\"process\");\n \t\n \t\n \t\n \tfileData = Files.readAllBytes(Paths.get(new File(System.getProperty(\"user.dir\")+\"/bin/test/re/bytecode/obfuscat/samples/Sample8.class\").toURI()));\n \tp = new DSLParser();\n functions = p.processFile(fileData);\n \n \tFunction f = MergedFunction.mergeFunctions(functions, \"entry\");\n \t\n\t\t//HashMap<String, Object> map = new HashMap<String, Object>();\n\t\t//Function f = Obfuscat.buildFunction(\"Test\", map);\n \t\n \t\n\t\t//HashMap<String, Object> map = new HashMap<String, Object>();\n\t\t//map.put(\"data\", new byte[] { 1, 2, 3, 4 });\n\t\t//Function f = Obfuscat.buildFunction(\"KeyBuilder\", map );\n\t\n \tf = Obfuscat.applyPass(f, \"Flatten\");\n\t\tf = Obfuscat.applyPass(f, \"OperationEncode\");\n\t\t\n\t\tint[] gen = new VMCodeGenerator(new Context(System.currentTimeMillis()), f).generate();\n\n\t\tbyte[] vmcode = new byte[gen.length];\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < gen.length; i++) {\n\t\t\tsb.append(String.format(\"%02X\", gen[i] & 0xFF));\n\t\t\tvmcode[i] = (byte) gen[i];\n\t\t}\n\n\t\tSystem.out.println(sb.toString());\n\n\t\tSystem.out.println(\"=========================================\");\n\n\t\t\n\t\tSystem.out.println(f.getBlocks().get(0));\n\t\t\n\t\tEmulateFunction eFB = new EmulateFunction(f);\n\t\tbyte[] arr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Emulate Original => \"+eFB.run(-1, arr));\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\t\tarr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Java Reference => \"+VMRefImpl.process(vmcode, f.getData() ,new Object[]{0, arr}));\n\t\tSystem.out.println(Arrays.toString(arr));\n\n\t\t\n\t\tEmulateFunction eFRef = new EmulateFunction(refF);\n\t\tarr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Emulated Reference => \"+eFRef.run(-1, gen, f.getData(), new Object[] {0, arr}));\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\t\tEmulateFunction eFPass = new EmulateFunction(Obfuscat.applyPass(f, \"Virtualize\"));\n\t\tarr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Emulate Pass VM => \"+eFPass.run(-1, arr ));\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\n }", "public BinaryTree()\n {\n this.root = null;\n this.actualNode = null;\n this.altMode = false;\n this.deepestRight = null;\n }", "public void initOldRootTxs();", "public static void main(String[] args) {\n\t\tBinTree tree = new BinTree(new BinTree(null, null, \"1\"), new BinTree(null, null,\"2\"), \"3\" );\n\t\t\ttree.printTree(tree);\n\t}", "public BinaryTree() {\r\n\t\troot = null;\r\n\t\tcount = 0;\r\n\t}", "private TPM_DIGEST createEmptyPubKeyHash()\r\n {\r\n// if ( this.getTpmManufacturer() == TPMDriver.TPM_MANUFACTURER_BROADCOM )\r\n// {\r\n// return null;\r\n// }\r\n// else\r\n// {\r\n// return new TPM_DIGEST();\r\n// }\r\n if ( this.getTpmManufacturer() == TPMDriver.TPM_MANUFACTURER_INFINEON )\r\n {\r\n return new TPM_DIGEST();\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }", "public File XMLforRoot(String hashid, String key, String value, int LayerId, int copyNum, String timer, boolean timerType, String userid, String Time, Certificate Certi) {\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n // root element\n Element root = document.createElement(\"Root_Node_For\" + key + \"Copy\" + copyNum);\n document.appendChild(root);\n\n Element hashId = document.createElement(\"HashID\");\n hashId.appendChild(document.createTextNode(hashid));\n root.appendChild(hashId);\n\n Element layerid = document.createElement(\"layerid\");\n hashId.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(LayerId));\n\n Element key1 = document.createElement(\"Key\");\n hashId.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value));\n hashId.appendChild(Value);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum)));\n hashId.appendChild(copynum);\n\n Element timer2 = document.createElement(\"timer\");\n timer2.appendChild(document.createTextNode(String.valueOf(timer)));\n hashId.appendChild(timer2);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType)));\n hashId.appendChild(timertype);\n\n Element userId = document.createElement(\"userId\");\n userId.appendChild(document.createTextNode(String.valueOf(userid)));\n hashId.appendChild(userId);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(Time)));\n hashId.appendChild(time2);\n\n Element cert = document.createElement(\"Certificate\");\n cert.appendChild(document.createTextNode(String.valueOf(Certi)));\n hashId.appendChild(cert);\n\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(\"Root_Node for\" + key + \"Copy\" + copyNum + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(\"Root_Node for\" + key + \"Copy\" + copyNum + \".xml\");\n return file;\n }", "public void encodeTreeHelper(HuffmanNode node, StringBuilder builder){\n if(node.getLeft() == null && node.getRight()== null && !node.getCharAt().equals(null))\n encodedTable.put(node.getCharAt(),builder.toString());\n else{\n encodeTreeHelper(node.getLeft(), builder.append(\"0\"));\n encodeTreeHelper(node.getRight(), builder.append(\"1\"));\n }\n \n if(builder.length()>0)\n builder.deleteCharAt(builder.length()-1);\n }", "public static void main(String[] args)\n {\n System.out.println(\"CompareTD2BU :fileName1 :dirName2 :rootName2 :ext2 :outputNameRoot :gammaMultiplier\");\n// System.out.println(\"CompareTD2BU takes compares a series of vertex communties against a standard community\");\n// System.out.println(\"for the timgraph defined by the\");\n// System.out.println(\"final timgraph arguments (including the input file name and directory).\");\n// System.out.println(\"The first community is given by fileName1 and is the fixed standard against\");\n// System.out.println(\"which all others are compared. The second community is a set formed from\");\n// System.out.println(\"<dirName2><rootName2>*<ext2> so note the dirName2 must end in a slash.\");\n// System.out.println(\"The * is taken to be the values of gamma involved. The last argument\");\n// System.out.println(\"outputNameRoot gives the full directory and name root of the output file.\");\n// \n //First arg chooses first community file\n //String fileName1=\"input/ICtest_psecinputBVNLS.dat\";\n //String fileName1=\"input/ICNS090224npstemppew0020inputELS.dat\";\n //String fileName1=\"input/ICNS090729_psecinputBVNLS.dat\";\n String fileName1=\"input/karateTSEActualVPinputBVNLS.dat\";\n int ano=0;\n if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) fileName1=args[ano].substring(1);\n System.out.println(\"--- Using reference network \"+fileName1);\n\n\n //String dirName2=\"output/IC/PaperTerm/\";\n String dirName2=\"output/karate/\";\n ano++;\n if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) dirName2=args[ano].substring(1);\n\n //String rootName2=\"ICNS090729stempt_PapersVCWLG_VP\";\n String rootName2=\"karateTSE_VC_WLG_VP\";\n ano++;\n if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) rootName2=args[ano].substring(1);\n\n String ext2 = \"output.vcis\";\n ano++;\n if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) ext2=args[ano].substring(1);\n\n System.out.println(\"--- Comparing against networks \"+dirName2+rootName2+\"(gamma)\"+ext2);\n\n //Third arg is output file name\n String rootName3=\"output/karateTSE_actual_WLG_VP\";\n //String rootName3=\"output/ICNS090729stempt_psec_Papers\";\n ano++;\n if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) rootName3=args[ano].substring(1);\n System.out.println(\"--- Output to \"+rootName3);\n\n //Third arg is gamma multiplier\n double gammaMultiplier=1.0;\n ano++;\n if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) gammaMultiplier=Double.parseDouble(args[ano].substring(1));\n System.out.println(\"--- gamma multiplier \"+gammaMultiplier);\n\n\n FindFile ff = new FindFile();\n ff.getFileList(dirName2, rootName2, ext2, true);\n int nf = ff.filelist.length;\n String [] name2Array = new String[nf];\n MutualInformation [] miArray = new MutualInformation[nf];\n double [] gammaArray = new double[nf];\n PrintWriter results = null;\n String outputFile=rootName3+\"_gammaMI.dat\";\n try {results = new PrintWriter(new FileWriter(outputFile));}// eo try\n catch (IOException e){\n System.err.println(\"Problem with output file \"+outputFile+\", \"+e);\n System.exit(1);\n }\n System.out.println(\"--- Opened output file \"+outputFile);\n String sep=\"\\t\";\n results.println(MutualInformation.toStringBasicLabel(sep)+sep+\"gamma\"+sep+MutualInformation.toStringLabel(sep));\n\n for (int f=0; f<nf; f++){\n String fullFileName2=dirName2+ff.filelist[f];\n System.out.println(\"--- Using network two \"+fullFileName2);\n int c0= fullFileName2.lastIndexOf(rootName2)+rootName2.length();\n int c1= fullFileName2.lastIndexOf(ext2);\n String gammaString=fullFileName2.substring(c0, c1);\n double gamma=Double.parseDouble(gammaString)*gammaMultiplier;\n System.out.println(\"--- gamma = \"+gamma);\n \n MutualInformation mi = CompareVertexCommunities.doComparision(fileName1,fullFileName2);\n results.println(mi.toStringBasic(sep)+sep+gamma+sep+mi.toString(sep));\n results.flush();\n miArray[f]= new MutualInformation(mi,false,false);\n name2Array[f]=ff.filelist[f];\n gammaArray[f]=gamma;\n } // eo for\n results.close();\n System.out.println(\"--- Closed output file \"+outputFile);\n }", "public static void main(String[] args) throws IOException {\n\n // check for correct number of arguments\n if (args.length > constants.TREEQUERY_MAX_ARG_COUNT || args.length < constants.TREEQUERY_MIN_ARG_COUNT) {\n System.out.println(\"Error: Incorrect number of arguments were input\");\n return;\n }\n\n int pageSize;\n String start_index = args[0].replace('_',' ');\n // allowing range query with arguments length\n Key start_key = new Key(start_index), end_key = null;\n if(args.length == constants.TREEQUERY_MAX_ARG_COUNT) {\n String end_index = args[1].replace('_', ' ');\n end_key = new Key(end_index);\n pageSize = Integer.parseInt(args[constants.TREEQUERY_MAX_PAGE_SIZE_ARG]);\n }else\n pageSize = Integer.parseInt(args[constants.TREEQUERY_MIN_PAGE_SIZE_ARG]);\n\n String datafile = \"heap.\" + pageSize;\n String treefile = String.format(\"bptree.%d\", pageSize);\n\n long startTime = 0;\n long finishTime = 0;\n long tree_start = 0, tree_end = 0;\n\n int numBytesIntField = Integer.BYTES;\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss a\");\n\n FileInputStream inStream = null;\n FileInputStream inStream_tree = null;\n try{\n File file = new File(datafile);\n inStream = new FileInputStream(file);\n inStream_tree = new FileInputStream(treefile);\n\n // calculate tree degree\n int degree = (int) Math.sqrt((double) file.length()/pageSize);\n tree_start = System.nanoTime();\n BPlusTree tree = new BPlusTree(degree, pageSize);\n // construct tree from tree file\n tree.construct(inStream_tree);\n tree_end = System.nanoTime();\n\n // start query\n startTime = System.nanoTime();\n\n byte[] sdtnameBytes = new byte[constants.STD_NAME_SIZE];\n byte[] idBytes = new byte[constants.ID_SIZE];\n byte[] dateBytes = new byte[constants.DATE_SIZE];\n byte[] yearBytes = new byte[constants.YEAR_SIZE];\n byte[] monthBytes = new byte[constants.MONTH_SIZE];\n byte[] mdateBytes = new byte[constants.MDATE_SIZE];\n byte[] dayBytes = new byte[constants.DAY_SIZE];\n byte[] timeBytes = new byte[constants.TIME_SIZE];\n byte[] sensorIdBytes = new byte[constants.SENSORID_SIZE];\n byte[] sensorNameBytes = new byte[constants.SENSORNAME_SIZE];\n byte[] countsBytes = new byte[constants.COUNTS_SIZE];\n RandomAccessFile raf = new RandomAccessFile(datafile, \"r\");\n // range query\n if(end_key!=null) {\n // Range query can have more than one results, using ArrayList to save\n ArrayList<Integer> result = tree.query(start_key, end_key);\n if (!result.isEmpty()){\n result.forEach(p -> {\n try {\n // random access file seek to the point we want\n raf.seek(p);\n // retrieve the whole data from this point\n byte[] data = new byte[constants.TOTAL_SIZE];\n raf.read(data);\n /*\n * Fixed Length Records (total size = 112 bytes):\n * SDT_NAME field = 24 bytes, offset = 0\n * id field = 4 bytes, offset = 24\n * date field = 8 bytes, offset = 28\n * year field = 4 bytes, offset = 36\n * month field = 9 bytes, offset = 40\n * mdate field = 4 bytes, offset = 49\n * day field = 9 bytes, offset = 53\n * time field = 4 bytes, offset = 62\n * sensorid field = 4 bytes, offset = 66\n * sensorname field = 38 bytes, offset = 70\n * counts field = 4 bytes, offset = 108\n *\n * Copy the corresponding sections of \"page\" to the individual field byte arrays\n */\n System.arraycopy(data, 0, sdtnameBytes, 0, constants.STD_NAME_SIZE);\n System.arraycopy(data, constants.STD_NAME_SIZE, idBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.DATE_OFFSET, dateBytes, 0, constants.DATE_SIZE);\n System.arraycopy(data, constants.YEAR_OFFSET, yearBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.MONTH_OFFSET, monthBytes, 0, constants.MONTH_SIZE);\n System.arraycopy(data, constants.MDATE_OFFSET, mdateBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.DAY_OFFSET, dayBytes, 0, constants.DAY_SIZE);\n System.arraycopy(data, constants.TIME_OFFSET, timeBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.SENSORID_OFFSET, sensorIdBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.SENSORNAME_OFFSET, sensorNameBytes, 0, constants.SENSORNAME_SIZE);\n System.arraycopy(data, constants.COUNTS_OFFSET, countsBytes, 0, numBytesIntField);\n\n // Convert long data into Date object\n Date date = new Date(ByteBuffer.wrap(dateBytes).getLong());\n String sdtNameString = new String(sdtnameBytes);\n\n // Get a string representation of the record for printing to stdout\n String record = sdtNameString.trim() + \",\" + ByteBuffer.wrap(idBytes).getInt()\n + \",\" + dateFormat.format(date) + \",\" + ByteBuffer.wrap(yearBytes).getInt() +\n \",\" + new String(monthBytes).trim() + \",\" + ByteBuffer.wrap(mdateBytes).getInt()\n + \",\" + new String(dayBytes).trim() + \",\" + ByteBuffer.wrap(timeBytes).getInt()\n + \",\" + ByteBuffer.wrap(sensorIdBytes).getInt() + \",\" +\n new String(sensorNameBytes).trim() + \",\" + ByteBuffer.wrap(countsBytes).getInt();\n System.out.println(record);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n System.out.printf(\"\\nRange query result: %d records found.\\n\", result.size());\n }\n }else {\n // equal query\n int result = tree.query(start_key);\n if (result!=-1) {\n try {\n // same as Range query\n raf.seek(result);\n byte[] data = new byte[constants.TOTAL_SIZE];\n raf.read(data);\n /*\n * Fixed Length Records (total size = 112 bytes):\n * SDT_NAME field = 24 bytes, offset = 0\n * id field = 4 bytes, offset = 24\n * date field = 8 bytes, offset = 28\n * year field = 4 bytes, offset = 36\n * month field = 9 bytes, offset = 40\n * mdate field = 4 bytes, offset = 49\n * day field = 9 bytes, offset = 53\n * time field = 4 bytes, offset = 62\n * sensorid field = 4 bytes, offset = 66\n * sensorname field = 38 bytes, offset = 70\n * counts field = 4 bytes, offset = 108\n *\n * Copy the corresponding sections of \"page\" to the individual field byte arrays\n */\n System.arraycopy(data, 0, sdtnameBytes, 0, constants.STD_NAME_SIZE);\n System.arraycopy(data, constants.STD_NAME_SIZE, idBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.DATE_OFFSET, dateBytes, 0, constants.DATE_SIZE);\n System.arraycopy(data, constants.YEAR_OFFSET, yearBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.MONTH_OFFSET, monthBytes, 0, constants.MONTH_SIZE);\n System.arraycopy(data, constants.MDATE_OFFSET, mdateBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.DAY_OFFSET, dayBytes, 0, constants.DAY_SIZE);\n System.arraycopy(data, constants.TIME_OFFSET, timeBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.SENSORID_OFFSET, sensorIdBytes, 0, numBytesIntField);\n System.arraycopy(data, constants.SENSORNAME_OFFSET, sensorNameBytes, 0, constants.SENSORNAME_SIZE);\n System.arraycopy(data, constants.COUNTS_OFFSET, countsBytes, 0, numBytesIntField);\n\n // Convert long data into Date object\n Date date = new Date(ByteBuffer.wrap(dateBytes).getLong());\n String sdtNameString = new String(sdtnameBytes);\n\n // Get a string representation of the record for printing to stdout\n String record = sdtNameString.trim() + \",\" + ByteBuffer.wrap(idBytes).getInt()\n + \",\" + dateFormat.format(date) + \",\" + ByteBuffer.wrap(yearBytes).getInt() +\n \",\" + new String(monthBytes).trim() + \",\" + ByteBuffer.wrap(mdateBytes).getInt()\n + \",\" + new String(dayBytes).trim() + \",\" + ByteBuffer.wrap(timeBytes).getInt()\n + \",\" + ByteBuffer.wrap(sensorIdBytes).getInt() + \",\" +\n new String(sensorNameBytes).trim() + \",\" + ByteBuffer.wrap(countsBytes).getInt();\n System.out.println(record);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n System.out.println();\n }\n\n finishTime = System.nanoTime();\n }catch (FileNotFoundException e) {\n System.err.println(\"File not found \" + e.getMessage());\n }\n finally {\n\n if (inStream != null) {\n inStream.close();\n }\n if (inStream_tree != null){\n inStream_tree.close();\n }\n }\n\n long treeInMilliseconds = (tree_end - tree_start)/constants.MILLISECONDS_PER_SECOND;\n System.out.println(\"Time taken for constructing B+Tree: \" + treeInMilliseconds + \" ms\");\n long timeInMilliseconds = (finishTime - startTime)/constants.MILLISECONDS_PER_SECOND;\n System.out.println(\"Time taken for query: \" + timeInMilliseconds + \" ms\");\n System.out.println(\"Total Time taken: \" + (treeInMilliseconds + timeInMilliseconds) + \" ms\");\n }", "public static void main(String[] args) \r\n\t{\n\t\tif(args.length < 3 || args.length > 5) \r\n\t\t{\r\n\t\t\tprintUsage();\r\n\t\t}\r\n\r\n\t\t// This if statement determines whether to use a cache or not\r\n\t\tif (args[0].equals(\"1\")) \r\n\t\t{\r\n\t\t\tuseCache = 1; //use BTree with cache\r\n\t\t}\r\n\t\t\r\n\t\telse if (!(args[0].equals(\"0\") || args[0].equals(\"1\"))) \r\n\t\t{\r\n\t\t\tprintUsage();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tbtreeFile = args[1]; //BTree File\r\n\t\tqueryFile = args[2]; //Query File \r\n\r\n\t\t//This if statement checks the size of the cache if there are at least 4 arguments\r\n\t\tif (useCache == 1 && args.length >= 4) \r\n\t\t{\r\n\t\t\tcacheSize = Integer.parseInt(args[3]);\r\n\t\t}\r\n\r\n\t\t//Set debug level if there are 5 arguments\r\n\t\tif(args.length == 5)\r\n\t\t\tdebugLevel = Integer.parseInt(args[4]);\r\n\r\n\t\t//find degree and sequence length\r\n\t\tString seq = \"\";\r\n\t\tString deg = \"\";\r\n\r\n\t\t//finds the degree of the btree file\r\n\t\tfor(int i = btreeFile.length()-1; i >= 0; i--) \r\n\t\t{\r\n\t\t\tif(btreeFile.charAt(i) != '.')\r\n\t\t\t\tdeg += btreeFile.charAt(i);\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tdeg = reverseString(deg);\r\n\r\n\t\t//finds the sequence length of the btree file\r\n\t\tfor (int i = btreeFile.length()-deg.length()-2; i >= 0; i--) \r\n\t\t{\r\n\t\t\tif(btreeFile.charAt(i) != '.')\r\n\t\t\t\tseq += btreeFile.charAt(i);\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tseq = reverseString(seq);\r\n\r\n\t\tint degree = Integer.parseInt(deg);\r\n\t\tint sequence = Integer.parseInt(seq);\r\n\t\t//System.out.println(\"degree: \" + degree);\r\n\t\t//System.out.println(\"sequence length: \" + sequence);\r\n\t\t\r\n\t\tsubSequences = \"\";\r\n\t\t//searching in the specified BTree for sequences of given length. The search program\r\n\t\t//assumes that the user specified the proper BTree to use depending upon the query length.\r\n\t\ttry {\r\n\t\t\tFile treeFile = new File(btreeFile);\r\n\t\t\tif(treeFile.createNewFile()) {\r\n\t\t\t\tSystem.out.println(\"Error, no such file!\");\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t\tRandomAccessFile read = new RandomAccessFile(treeFile, \"r\");\r\n\t\t\tBTree<TreeObject> tree = new BTree<TreeObject>(degree, btreeFile, queryFile, useCache, cacheSize);\r\n\t\t\tread.seek(4); //position of rootOffset metadata\r\n\t\t\ttree.getRoot().setOffset(read.readInt());\r\n\t\t\tread.seek(tree.getRoot().getOffset());\r\n\t\t\ttree.setRoot(tree.readNode(tree.getRoot().getOffset()));\r\n\t\t\tread.seek(0);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tScanner scan = new Scanner(new File(queryFile));\r\n\t\t\t\r\n\t\t\twhile(scan.hasNext()) {\r\n\t\t\t\tsubSequences = \"\";\r\n\t\t\t\tString query = scan.nextLine(); //sequence to search for binary \r\n\t\t\t\tString currString = \"\";\r\n\t\t\t\tint numValidReads = 0;\r\n\t\t\t\tdo \r\n\t\t\t\t{\r\n//\t\t\t\t\tString.valueOf(currChar = fileReader.readChar());\r\n//\t\t\t\t\tcurrChar = fileReader.readChar();\r\n\t\t\t\t\tString currChar = query.substring(numValidReads, numValidReads+1);\r\n\t\t\t\t\tcurrString += currChar;\r\n\t\t\t\t\t//if good character found convert to binary and save in subsequence string\r\n\t\t\t\t\tif (currChar.equalsIgnoreCase(\"a\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumValidReads++;\r\n\t\t\t\t\t\tsubSequences += \"00\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (currChar.equalsIgnoreCase(\"t\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumValidReads++;\r\n\t\t\t\t\t\tsubSequences += \"11\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (currChar.equalsIgnoreCase(\"c\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumValidReads++;\r\n\t\t\t\t\t\tsubSequences += \"01\";\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (currChar.equalsIgnoreCase(\"g\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnumValidReads++;\r\n\t\t\t\t\t\tsubSequences += \"10\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//if n found,clear subsequence, find next valid value and return\r\n\t\t\t\t\telse if(currChar.equalsIgnoreCase(\"n\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubSequences = \"\";\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}while (numValidReads < sequence);\r\n\t\t\t\t\r\n\t\t\t\tif(!subSequences.isEmpty()) \r\n\t\t\t\t\tsearchLong = Long.parseLong(subSequences, 2);\r\n\t\t\t\t\r\n\t\t\t\tTreeObject found = tree.search(tree.getRoot(), searchLong);\r\n\t\t\t\t\r\n\t\t\t\tif(found != null) {\r\n\t\t\t\t\tSystem.out.println(currString + \": \" + found.getFrequency());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(currString + \": \" + 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tscan.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private ByteTools(){}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tSorting tree = new Sorting();\n\t\ttree.root = new Node2(10);\n\t\ttree.root.left = new Node2(-2); \n tree.root.right = new Node2(7); \n tree.root.left.left = new Node2(8); \n tree.root.left.right = new Node2(-4); \n int sum = tree.maxSumPath();\n System.out.println(sum);\n\n\t}", "public static void processOneYear(TreeSet<ebrpPublication> pubSet,\n String rootFileName, \n String outputDirectory, String inputDirectory,\n int year, String fieldname,\n int weightType,\n ElsevierPapersFilter ipf,\n boolean useTitle, boolean useKeywords,\n boolean extractGCC,\n int minDegreeIn, int minDegreeOut, double minWeight, \n int infoLevel){\n // now process titles into keywords\n //boolean showProcess=false;\n System.out.println(\"\\n--- now processing \"\n +(useTitle?\"titles\":\"\")\n +(useTitle&&useKeywords?\" and \":\"\")\n +(useKeywords?\"keywords\":\"\")+\" into keywords\");\n System.out.println(\"--- year \"+year);\n System.out.println(\"--- fieldname \"+fieldname);\n System.out.println(\"--- weight type \"+weightTypeDescription[weightType]);\n boolean showProcess=(infoLevel>1?true:false);\n TreeMap<String,String> stemMap = new TreeMap();\n// int minChar=2;\n// int minL=3;\n// boolean keepRejectList=true;\n// ElsevierPapersFilter ipf = new ElsevierPapersFilter(minChar, minL, \n// StopWords.MySQL_STOP_WORDS_EDITED, ElsevierStopStems.PHYSICS, keepRejectList);\n setUserKeywords(pubSet, stemMap, ipf, useTitle, useKeywords, showProcess);\n \n //String fileRootName=\"ebrp\";\n String sep=\"\\t\";\n String outputFileName = outputDirectory+rootFileName+\"_\"+year+\"_\"+fieldname+\"_\"+(useTitle?\"t\":\"\")+(useKeywords?\"k\":\"\")+\"_\"+ipf.abbreviation()+\"ptStemMap.dat\";\n TimUtilities.FileUtilities.FileOutput.FileOutputMap(outputFileName, sep, stemMap, true);\n outputFileName = outputDirectory+rootFileName+\"_\"+year+\"_\"+fieldname+\"_\"+(useTitle?\"t\":\"\")+(useKeywords?\"k\":\"\")+\"_\"+ipf.abbreviation()+\"ptRejectList.dat\";\n ipf.FileOutputRejectedList(outputFileName, showProcess);\n\n // now build network\n System.out.println(\"--- now building network \");\n \n stemMap.clear(); // no longer needed so free up memory\n timgraph tg=makePublicationKeywordGraph(pubSet, weightType);\n\n String subDir=\"\";\n String networkType=\"PT\"+(useTitle?\"t\":\"\")+(useKeywords?\"k\":\"\"); // P=Publication T=Term from title\n String fileRootName=rootFileName+\"_\"+year+\"_\"+fieldname+\"_\"+networkType+\"_\"+weightTypeShort[weightType];\n tg.inputName.setFileName(inputDirectory, subDir, fileRootName, \"\");\n tg.outputName.setFileName(outputDirectory, subDir, fileRootName, \"\");\n// public boolean degreeDistributionOn; // 1\n// public boolean distancesOn; // 2\n// public boolean clusteringOn; // 4\n// public boolean triangleSquareOn; // 8\n// public boolean componentsOn; // 16\n// public boolean rankingOn; // 32\n// public boolean structuralHolesOn; // 64\n// public boolean graphMLFileOn; // 128\n// public boolean pajekFileOn; // 256\n// public boolean adjacencyFileOn; // 512\n //1+2+16\n tg.outputControl.set(\"19\");\n BasicAnalysis.analyse(tg);\n \n// // create list of degree zero or one vertices\n// TreeMap<Integer,Integer> oldToNewVertexMap = new TreeMap();\n// int nextVertex=0;\n// for (int v=0; v<tg.getNumberVertices(); v++){\n// oldToNewVertexMap.put(v, (tg.getVertexDegree(v)<2)?-1:nextVertex++) ; // 0 partition to retain\n// }\n// System.out.println(\"--- keeping \"+\" vertices, eliminating \"+(tg.getNumberVertices()-nextVertex));\n// // use Projections routine which makes copy of tg with given list of vertices\n// timgraph rtg = Projections.eliminateVertexSet(tg, addToRoot, partition, numberPartitions, forceUndirected, makeUnweighted); \n \n \n // now find and produce GCC\n if (!extractGCC) {return;}\n timgraph gcc = GCC.extractGCC(tg);\n gcc.outputName.setDirectory(tg.outputName.getDirectoryFull());\n BasicAnalysis.analyse(gcc);\n \n // now simplify GCC\n if (minDegreeIn<=0 && minDegreeOut<=0 && minWeight<=0) {return;}\n boolean makeLabelled=gcc.isVertexLabelled();\n boolean makeWeighted=gcc.isWeighted();\n boolean makeVertexEdgeList=gcc.isVertexEdgeListOn();\n timgraph gccsimple = TimGraph.algorithms.Projections.minimumDegreeOrWeight(gcc, \n minDegreeIn, minDegreeOut, minWeight, \n makeLabelled, makeWeighted, makeVertexEdgeList);\n gccsimple.outputName.setDirectory(tg.outputName.getDirectoryFull());\n gccsimple.outputName.appendToNameRoot(\"MINkin\"+minDegreeIn+\"kin\"+minDegreeOut+\"w\"+String.format(\"%06.3f\", minWeight));\n BasicAnalysis.analyse(gccsimple); \n }", "public static void main(String args[])\n {\n /* creating a binary tree and entering the nodes */\n BinaryTree tree = new BinaryTree();\n tree.root = new TNode(12);\n tree.root.left = new TNode(10);\n tree.root.right = new TNode(30);\n tree.root.right.left = new TNode(25);\n tree.root.right.right = new TNode(40);\n tree.rightView();\n max_level=0;\n tree.leftView();\n }", "@ThreadSafe\npublic interface TendermintInitializedNode extends InitializedNode {\n\n\t/**\n\t * Yields a decorated node with basic Takamaka classes, gamete and manifest.\n\t * Uses the chain id and the validators\n\t * of the underlying Tendermint network. It uses a generic gas station.\n\t * \n\t * @param parent the node to decorate\n\t * @param consensus the consensus parameters that will be set for the node\n\t * @param takamakaCode the jar containing the basic Takamaka classes\n\t * @return a decorated view of {@code parent}\n\t * @throws TransactionRejectedException if some transaction that installs the jar or creates the accounts is rejected\n\t * @throws TransactionException if some transaction that installs the jar or creates the accounts fails\n\t * @throws CodeExecutionException if some transaction that installs the jar or creates the accounts throws an exception\n\t * @throws IOException if the jar file cannot be accessed\n\t * @throws SignatureException if some initialization request could not be signed\n\t * @throws InvalidKeyException if some key used for signing initialization transactions is invalid\n\t * @throws NoSuchAlgorithmException if the signing algorithm for the node is not available in the Java installation\n\t */\n\tstatic TendermintInitializedNode of(TendermintBlockchain parent, ValidatorsConsensusConfig consensus, Path takamakaCode) throws TransactionRejectedException, TransactionException, CodeExecutionException, IOException, InvalidKeyException, SignatureException, NoSuchAlgorithmException {\n\t\treturn new TendermintInitializedNodeImpl(parent, consensus, null, takamakaCode);\n\t}\n\n\t/**\n\t * Yields a decorated node with basic Takamaka classes, gamete and manifest.\n\t * Uses the chain id and the validators\n\t * of the underlying Tendermint network. It allows one to specify the gas station to use.\n\t * \n\t * @param parent the node to decorate\n\t * @param consensus the consensus parameters that will be set for the node\n\t * @param producerOfGasStation an algorithm that creates the builder of the gas station to be installed in the manifest of the node;\n\t * if this is {@code null}, a generic gas station is created\n\t * @param takamakaCode the jar containing the basic Takamaka classes\n\t * @return a decorated view of {@code parent}\n\t * @throws TransactionRejectedException if some transaction that installs the jar or creates the accounts is rejected\n\t * @throws TransactionException if some transaction that installs the jar or creates the accounts fails\n\t * @throws CodeExecutionException if some transaction that installs the jar or creates the accounts throws an exception\n\t * @throws IOException if the jar file cannot be accessed\n\t * @throws SignatureException if some initialization request could not be signed\n\t * @throws InvalidKeyException if some key used for signing initialization transactions is invalid\n\t * @throws NoSuchAlgorithmException if the signing algorithm for the node is not available in the Java installation\n\t */\n\tstatic TendermintInitializedNode of(TendermintBlockchain parent, ValidatorsConsensusConfig consensus,\n\t\t\tProducerOfStorageObject<ConsensusConfig> producerOfGasStation, Path takamakaCode, BigInteger redAmount) throws TransactionRejectedException, TransactionException, CodeExecutionException, IOException, InvalidKeyException, SignatureException, NoSuchAlgorithmException {\n\t\treturn new TendermintInitializedNodeImpl(parent, consensus, producerOfGasStation, takamakaCode);\n\t}\n}", "public static void main(String[] args) {\n\n System.out.println(\"\\n... MakeNetworks Arguments :<rootFileName> \"\n +\":<inputDirectory>+ :<outputDirectory> +:<extractGCC>\"\n + \":<year> :<weightType> :<useWhat> :<infoLevel>\");\n System.out.println(\"Fieldname types are:- Bus for Business and International Management\");\n System.out.println(\" - Phy for Physics & astronomy\");\n for (int i=0; i<weightTypeDescription.length; i++) {\n System.out.println(\"... weightType \"+i+\" = \"+weightTypeDescription[i]);\n } \n System.out.println(\"... useWhat: 1,3= use title, 2,3=use keywords\");\n for(int a=0; a<args.length; a++) {\n System.out.print((a==0?\"... Arguments: \":\" \")+args[a]);\n }\n System.out.println();\n \n HashSet<Integer> yearSet = new HashSet();\n HashSet<String> fieldnameSet = new HashSet();\n HashSet<Integer> weightTypeSet = new HashSet();\n HashSet<Integer> useWhatSet = new HashSet();\n \n \n int ano=0;\n //String rootFileName = \"ebrp_03_set_01_documentsTEST\";\n //String rootFileName = \"ebrp_03_set_01_documentsHARDTEST\";\n String rootFileName = \"ebrp_03_set_01_documents\";\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) {\n rootFileName=args[ano].substring(1);\n }\n System.out.println(\"--- Root of file name is \"+rootFileName);\n \n final String fileSep=System.getProperty(\"file.separator\");\n String dirBase=System.getProperty(\"user.dir\")+fileSep;\n \n //String inputDirectory =\"C:\\\\PRG\\\\JAVA\\\\Elsevier\\\\input\\\\\";\n String inputDirectory =\"C:\\\\DATA\\\\Elsevier\\\\input\\\\\";\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) inputDirectory=args[ano].substring(1); \n System.out.println(\"--- Input directory is \"+inputDirectory);\n \n String outputDirectory =\"C:\\\\DATA\\\\Elsevier\\\\output\\\\\";\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) outputDirectory=args[ano].substring(1); \n System.out.println(\"--- Output directory is \"+outputDirectory);\n \n \n boolean extractGCC=true;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) extractGCC=(StringAsBoolean.isTrue(args[ano].charAt(1))?true:false); \n System.out.println(\"--- extracting GCC - \"+(extractGCC?\"yes\":\"no\"));\n \n int minDegreeIn=3;\n int minDegreeOut=3;\n double minWeight=0;\n System.out.println(\"--- extracting simplified GCC with min in degree - \"\n +minDegreeIn+\", min out degree - \"+minDegreeOut+\", and min weight \"+minWeight);\n \n // set up filter\n int minChar=2;\n int minL=3;\n boolean keepRejectList=true;\n ElsevierPapersFilter ipf = new ElsevierPapersFilter(minChar, minL, keepRejectList);\n \n \n if (rootFileName.equalsIgnoreCase(\"ALL\")){\n //rootFileName = \"ebrp_03_set_01_documentsHARDTEST\"; \n rootFileName = \"ebrp_03_set_01_documents\";\n yearSet.add(2002);\n yearSet.add(2006);\n yearSet.add(2010);\n fieldnameSet.add(\"Bus\"); //Business and International Management\n fieldnameSet.add(\"Phy\"); //Physics & astronomy\n weightTypeSet.add(0);\n weightTypeSet.add(1);\n useWhatSet.add(1);\n useWhatSet.add(2);\n useWhatSet.add(3);\n int infoLevelAll=-1;\n process(rootFileName, inputDirectory, outputDirectory,\n yearSet, fieldnameSet,\n weightTypeSet,\n useWhatSet,\n ipf,\n extractGCC,\n minDegreeIn, minDegreeOut, minWeight,\n infoLevelAll);\n System.exit(0);\n }\n System.out.println(\"--- file name root \"+rootFileName);\n\n int year = 2002;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) year=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n System.out.println(\"--- Year used \"+year);\n yearSet.add(year);\n\n // Bus= Business and International Management\n // Phy= Physics & astronomy\n String fieldname = \"Phy\"; \n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) fieldname=args[ano].substring(1, args[ano].length()); System.out.println(\"--- fieldname used \"+fieldname);\n fieldnameSet.add(fieldname);\n\n // 1 = total weight one for each paper, terms have equal weight, P1 in file name\n int weightType=1;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) weightType=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n if ((weightType<0) || (weightType>=weightTypeShort.length)) throw new RuntimeException(\"illegal weightType of \"+weightType+\", must be between 0 and \"+(weightTypeShort.length-1)+\" inclusive\");\n System.out.println(\"--- Weight Type \"+weightType+\" = \"+weightTypeDescription[weightType]);\n weightTypeSet.add(weightType);\n \n\n // 1,3= use title, 2,3=use keywords\n int useWhat=1;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) useWhat=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n boolean useTitle=((useWhat&1)>0);\n boolean useKeywords=((useWhat&2)>0);\n System.out.println(\"--- \"+(useTitle?\"U\":\"Not u\")+\"sing titles\");\n System.out.println(\"--- \"+(useKeywords?\"U\":\"Not u\")+\"sing keywords\");\n useWhatSet.add(useWhat);\n\n // 0 for normal, 1 for some, 2 for all debugging info, -1 for minimal\n int infoLevel=0;\n ano++;\n if ( (args.length>ano ) && (timgraph.isOtherArgument(args[ano]) )) infoLevel=Integer.parseInt(args[ano].substring(1, args[ano].length())); \n System.out.println(\"--- infoLevel=\"+infoLevel);\n boolean infoOn=(infoLevel>1);\n\n// if (args.length>ano ) if (timgraph.isOtherArgument(args[ano])) graphMLOutput=StringFilter.trueString(args[ano].charAt(1));\n\n\n process(rootFileName, inputDirectory, outputDirectory,\n yearSet, fieldnameSet,\n weightTypeSet,\n useWhatSet,\n ipf,\n extractGCC,\n minDegreeIn, minDegreeOut, minWeight,\n infoLevel);\n }", "public ImplementTrie208() {\n\t\troot = new TrieNode();\n\t}", "public static void main(String[] args) {\n\t\tint[] arr = new int[] {0,13,65,5,97,25,0,37,22,0,4,28,0,0,32,0};\n//\t\tint[] arr = new int[] {0,13,65,5,0};\n\t\tNode root = createBinaryTreeByArray(arr, 1);\n\t\tSystem.out.print(\"先序遍历:\"+\" \");\n\t\tpreSearch(root);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"中序遍历:\"+\" \");\n\t\tmidSearch(root);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"后序遍历:\"+\" \");\n\t\tposSearch(root);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"DFS:\"+\" \");\n\t\tDFS(root);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"BFS:\"+\" \");\n\t\tBFS(root);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"树的最大深度:\"+maxDepth(root));\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"树的最小深度:\"+minDepth(root));\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"该树是否是平衡二叉树\" + balanceTree(root));\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"二叉树翻转\");\n\t\treverse(root);\n\t\tSystem.out.println(\"先序遍历:\");\n\t\tpreSearch(root);\n\t\t\n\t}", "TrieNode root();", "public RBTree() {\r\n\t\troot = null;\r\n\t}", "public static void main(String[] args)\n {\n BinaryTreeNode root= generateATree();\n String parseResult=root.parse();\n System.out.println(parseResult);\n }", "@Test\n public void testMiniFatTreeExtension() throws IOException { Graph:\n //\n // 0 1\n // 2 3 4 5\n //\n\n File inFile = constructGraph(\n 6, 16,\n \"incl_range(2,5)\", \"set(0,1)\", \"incl_range(2,5)\",\n \"2 0\\n0 2\\n2 1\\n1 2\\n3 0\\n0 3\\n3 1\\n1 3\\n4 0\\n0 4\\n4 1\\n1 4\\n5 0\\n0 5\\n5 1\\n1 5\"\n );\n\n // Perform extension\n File tempOut = File.createTempFile(\"topology\", \".tmp\");\n TopologyServerExtender extender = new TopologyServerExtender(inFile.getAbsolutePath(), tempOut.getAbsolutePath());\n extender.extendRegular(7);\n assertTrue(inFile.delete());\n\n Pair<Graph, GraphDetails> res = GraphReader.read(tempOut.getAbsolutePath());\n GraphDetails details = res.getRight();\n\n // Graph dimensions\n assertEquals(34, details.getNumNodes()); // 6 + 4*7 = 34\n assertEquals(72, details.getNumEdges()); // 16 + 2*4*7 = 16 + 56 = 72\n\n // Sets\n assertTrue(details.isAutoExtended());\n assertEquals(createSet(2, 3, 4, 5), details.getTorNodeIds()); // ToRs remain the same\n assertEquals(createSet(0, 1), details.getSwitchNodeIds()); // Switches remain the same\n Set<Integer> servers = new HashSet<>();\n for (int i = 6; i < 34; i++ ) {\n servers.add(i);\n }\n assertEquals(servers, details.getServerNodeIds()); // Servers are added\n\n // Test saved mapping from server perspective\n for (int i = 6; i < 34; i++ ) {\n assertEquals((int) details.getTorIdOfServer(i), 2 + (int) Math.floor((double) (i - 6) / 7.0));\n }\n\n // Test saved mapping from ToR perspective\n for (int i = 2; i <= 5; i++ ) {\n Set<Integer> torServers = new HashSet<>();\n for (int j = 6 + (i - 2) * 7; j < 6 + (i - 1) * 7; j++ ) {\n torServers.add(j);\n }\n assertEquals(torServers, details.getServersOfTor(i));\n }\n\n assertTrue(tempOut.delete());\n\n }", "public String printBFSTree(){\n if(root==null)return \"\";\n String binstr=\"\";\n String valuestr=\"\";\n String codestr=\"\";\n LinkedList<HCNode> list=new LinkedList<HCNode>();\n root.code=\"\";\n list.add(root);\n HCNode node;\n while(list.size()>0){\n node=list.getFirst();\n if(node.left==null && node.right==null){\n binstr=binstr+\"0\";\n valuestr=valuestr+((byte)node.str.charAt(0))+\"\\n\";\n codestr=codestr+node.code;\n }else{\n binstr=binstr+\"1\";\n }\n if(node.left!=null){node.left.code=node.left.parent.code+\"0\";list.addLast(node.left);}\n if(node.right!=null){node.right.code=node.right.parent.code+\"1\";list.addLast(node.right);}\n list.removeFirst();\n }\n String res=binstr+\"\\n\"+valuestr+codestr+\"\\n\";\n System.out.println(binstr);\n System.out.print(valuestr);\n System.out.println(codestr);\n return res;\n }" ]
[ "0.5575975", "0.5546017", "0.54465497", "0.5427639", "0.5408774", "0.53986543", "0.5380865", "0.53620154", "0.5356897", "0.53529257", "0.5343561", "0.5324597", "0.5275122", "0.52724564", "0.52228665", "0.51777136", "0.5169526", "0.5168609", "0.51596445", "0.51463914", "0.5140835", "0.5140688", "0.51386416", "0.5123157", "0.5117468", "0.511707", "0.5110685", "0.5079871", "0.5074411", "0.5074405", "0.50731975", "0.5072594", "0.50681555", "0.50681555", "0.50638425", "0.5061972", "0.50618005", "0.50610965", "0.50474083", "0.50363564", "0.50354177", "0.5013876", "0.5004541", "0.49959385", "0.4993382", "0.49919876", "0.49799573", "0.49773848", "0.49756965", "0.4974417", "0.4970423", "0.4969242", "0.49682686", "0.49662688", "0.4964028", "0.49585608", "0.49523723", "0.4949526", "0.49455813", "0.4943586", "0.49362022", "0.49353203", "0.49320632", "0.49282166", "0.4927437", "0.4926483", "0.4922946", "0.49085668", "0.4905798", "0.4905132", "0.4899969", "0.48979074", "0.48966157", "0.4885607", "0.48850563", "0.48835713", "0.4876113", "0.48728037", "0.48678184", "0.4866393", "0.48641664", "0.48505044", "0.4850426", "0.48498046", "0.48476788", "0.48461258", "0.48423743", "0.4839955", "0.4837252", "0.483714", "0.48328763", "0.48326614", "0.48311666", "0.4830489", "0.48271152", "0.48266786", "0.4826183", "0.48152757", "0.48129898", "0.4811883" ]
0.5906777
0
Constrution of TREE from file
public String verify(){ String res=""; int msglen=msgarr.length; for(int i=0;i<msglen;i++){ treecodestr=treecodestr+codeTable[msgarr[i]+DIFF]; } //Now compare treecodestr and filecodestr boolean same=treecodestr.equals(filecodestr); if(same){ res=":) -- This tree has not been modified."; }else{ res=":( -- This tree has been modified."; } System.out.println(res); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static DecisionTree loadTree(File file) throws FileNotFoundException {\r\n\t\tScanner scan = new Scanner(file); // Read from file\r\n\t\t// First line of file is question at root node\r\n\t\tDecisionTree dt = new DecisionTree(scan.nextLine());\r\n\t\tBinaryNode<String> root = dt.getRootNode();\r\n\t\tfillTree(Branch.LEFT, scan, root); // Fill left subtree using Scanner\r\n\t\tfillTree(Branch.RIGHT, scan, root); // Fill right subtree using Scanner\r\n\t\tscan.close(); // Close the file loaded from\r\n\t\treturn dt;\r\n\t}", "public void createFullTree(String path) {\n String str = null;\n BufferedReader br = ExternalFunctions.getBufferedFile(path);\n\n try {\n while((str = br.readLine()) != null) { // Insert all the password to the tree by the algo. here the dog buried\n //str = str.toLowerCase();\n \tinsert(str);\n }\n br.close();\n }\n catch (IOException e) {\n System.out.println(\"File text is wrong\");\n }\n }", "public void visit(TreeBuilder tree){\n\t\tString line;\n\t\twhile ((line = file.readLine(true)) != null)\n\t {\t\t \n \t\tString[] words = line.split(\" \");\n \t\tfor(String word : words){\n \t\t\tif(!word.equals(\"\")){\n \t\t\t\ttree.insertNode(word);\n \t\t\t}\n \t\t}\n \t}\n\t}", "public static DecisionTree loadTree(String filename) throws FileNotFoundException {\r\n\r\n\t\treturn loadTree(new File(filename));\r\n\t}", "@SuppressFBWarnings({\"NP_NULL_PARAM_DEREF\", \"DM_DEFAULT_ENCODING\", \"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE\"})\n public Tree getTreeFromFile(String path) {\n FileInputStream fileInputStream = null;\n try {\n fileInputStream = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n \n }\n\n BufferedReader r = new BufferedReader(new InputStreamReader(fileInputStream));\n TreeParser tp = new TreeParser(r);\n\n String f = Paths.get(path).getFileName().toString();\n return tp.tokenize(f);\n }", "public static Tree loadTree(String inFile) {\n\t\tif (inFile == null) throw new NullPointerException(\"inFile: null\");\n\t\tTreeBuilder tb = TreeBuilder.loadTree(inFile);\n\t\treturn tb == null ? null : new Tree(tb);\n\t}", "public static ArrayList<Tree> readTreesFromFile(File file) {\n \n ArrayList<Tree> trees = new ArrayList<Tree>();\n \n BufferedReader br = null;\n \n try {\n \n br = new BufferedReader(new FileReader(file));\n \n String line;\n \n while ((line = br.readLine()) != null) {\n \n if (!line.contains(\"(\")) {\n continue;\n }\n \n Tree auxTree = new Tree(line);\n trees.add(auxTree);\n }\n \n br.close();\n \n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n return trees;\n }", "public void readCliqueTreeFile(String cliqueTreeFilename) \n\t\t\tthrows IOException, NumberFormatException {\n\t\tif(DEBUG) System.out.println(\"reading clique tree from:\"+cliqueTreeFilename);\n\t\tBufferedReader br = new BufferedReader(new FileReader(cliqueTreeFilename));\n\t\tString line;\n\t\t// on the first line is the number of following lines that describe vertices\n\t\tint numCliques = -1;\n\t\tif((line = br.readLine()) != null){\n\t\t\tnumCliques = Integer.valueOf(line);\n\t\t}else{\n\t\t\tbr.close();\n\t\t\tthrow new IOException();\n\t\t}\n\t\t//num Cliques\n\t\tif(numCliques<0) {\n\t\t\tbr.close();\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\t//cliques\n\t\tfor(int i = 0;i<numCliques;i++){\n\t\t\tif((line = br.readLine()) != null){\n\t\t\t\tString[] containedVars = line.split(\",\");\n//\t\t\t\tif(DEBUG) System.out.println(\"Adding VertexMax: \" + Factor.variableNamesToIndicies(containedVars) );\n\t\t\t\tVertex v = new Vertex(containedVars);\n\t\t\t\t_tree.addVertex(v);\n\t\t\t}else{\n\t\t\t\tbr.close();\n\t\t\t\tthrow new IOException(\"inconsistent network file.\");\n\t\t\t}\n\t\t}\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\t// edges\n\t\t\tString[] tokenized = line.split(\" \");\n\t\t\t\n\t\t\tString[] left_variables = tokenized[0].split(\",\");\n\t\t\tString[] right_variables = tokenized[2].split(\",\");\n\t\t\t\n\t\t\tArrayList<Integer> left = Factor.variableNamesToIndicies(left_variables);\n\t\t\tArrayList<Integer> right = Factor.variableNamesToIndicies(right_variables);\n\t\t\t\n\t\t\tCollections.sort(left);\n\t\t\tCollections.sort(right);\n\t\t\t\n\t\t\t_tree.addEdge(new Edge(\n\t\t\t\t\t_tree._vertices.get(left.toString()), \n\t\t\t\t\t_tree._vertices.get(right.toString())));\n\t\t}\n//\t\tif(DEBUG) System.out.println(\"\\nclique tree structure:\\n\"+_tree.toString());\n\t\tbr.close();\n\t}", "private Program02(String fileName) {\n BinaryTree bt = new BinaryTree();\n Stack expression = new Stack();\n\n try {\n Scanner scanner = new Scanner(new File(fileName));\n\n while (scanner.hasNext()) {\n String curChar = scanner.next();\n expression.push(curChar);\n }\n\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n Node tree = createLevelOrder(expression, bt.getRoot(), 0, expression.length());\n\n // construct a binary tree to store parsed math expression\n bt.setRoot(tree);\n printInfo(bt);\n }", "public VPTree(LargeBinaryFile file, Progress progress) throws IOException {\n\t\tsuper(file);\n\t\t\n\t\tthis.optimise = true;\n\t\tthis.progress = progress;\n\t}", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "public void loadGraph2(String path) throws FileNotFoundException, IOException {\n\n\t\ttry (BufferedReader br = new BufferedReader(\n\n\t\t\t\tnew InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8), 1024 * 1024)) {\n\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif (line == null) // end of file\n\t\t\t\t\tbreak;\n\n\n\t\t\t\tint a = 0;\n\t\t\t\tint left = -1;\n\t\t\t\tint right = -1;\n\n\t\t\t\tfor (int pos = 0; pos < line.length(); pos++) {\n\t\t\t\t\tchar c = line.charAt(pos);\n\t\t\t\t\tif (c == ' ' || c == '\\t') {\n\t\t\t\t\t\tif (left == -1)\n\t\t\t\t\t\t\tleft = a;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tright = a;\n\n\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tSystem.out.println(\"Erreur format ligne \");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\ta = 10 * a + c - '0';\n\t\t\t\t}\n\t\t\t\tright = a;\n\t\t\n\t\t\t\t// s'assurer qu'on a toujours de la place dans le tableau\n\t\t\t\tif (adjVertices.length <= left || adjVertices.length <= right) {\n\t\t\t\t\tensureCapacity(Math.max(left, right) + 1);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left] == null) {\n\t\t\t\t\tadjVertices[left] = new Sommet(left);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[right] == null) {\n\t\t\t\t\tadjVertices[right] = new Sommet(right);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left].listeAdjacence.contains(adjVertices[right])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjVertices[left].listeAdjacence.add(adjVertices[right]);\n\t\t\t\t\tadjVertices[right].listeAdjacence.add(adjVertices[left]);\n\t\t\t\t\tnombreArrete++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < adjVertices.length; i++) {\n\t\t\tif (adjVertices[i] == null)\n\t\t\t\tnombreTrous++;\n\t\t}\n\t\tnumberOfNode = adjVertices.length - nombreTrous;\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Loading graph done !\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\n\t\tSystem.out.println(\"nombreTrous \" + nombreTrous);\n\t\tSystem.out.println(\"numberOfNode \" + numberOfNode);\n\t\t\n\t}", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public TreeDictionary(String filename) {\n\t\tString entry;\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filename));\n\t\t\twhile((entry=in.readLine())!=null){\n\t\t\t\tif(MapDictionary.isValidWord(entry)){\n\t\t\t\t\tString signature = wordToSignature(entry.toLowerCase());\n\t\t\t\t\tinsert(entry, signature);\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\tin.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\ttry {\r\n\t\tString inputfile = args[0]+\".txt\";\r\n\t\tString outputfile = args[1]+\".txt\";\r\n\t\tString outputfile2 = args[2]+\".txt\";\r\n\r\n\r\n\r\n\t\tFileInputStream textFile1 = new FileInputStream(inputfile);\r\n\t\tScanner scan = new Scanner(textFile1);\r\n\t\tBinaryTree bst = new BinaryTree();\r\n\t\t\r\n\t\t//reading input files and storing\r\n\t\twhile(scan.hasNextLine()){\r\n\t\t\t\r\n\t\tString s = scan.nextLine();\r\n\t\tchar code=s.charAt(0);\r\n\t\tint id = Integer.parseInt(s.substring(1, 8));\r\n\t\t\tString nah=s.substring(8,8+25);\r\n\t\t\tString name= nah.trim();\r\n\t\t\tString department=s.substring(33,37);\r\n\t\t\tString program=s.substring(37,40);\r\n\t\t\tchar year=s.charAt(41);\r\n\t\t\tNode n= new Node();\r\n\t\t\tStudent stu = new Student();\r\n\t\t\tn.code=code;\r\n\t\t\tstu.id=id;\r\n\t\t\tstu.name=name;\r\n\t\t\tstu.department=department;\r\n\t\t\tstu.program=program;\r\n\t\t\tstu.year=year;\r\n\t\t\tif(code=='I')\r\n\t\t\t\tbst.insert(stu);\r\n\t\t\telse if(code=='D')\r\n\t\t\t\tbst.deleteKey(stu);\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Wrong code detected in input file. Should be I or D\");\r\n\t\t\t//System.out.println(\"Code: \" + code + \" ID: \" + stu.id + \" Name: \" + stu.name+ \" Dep: \" + stu.department + \" Program: \" + stu.program + \" Year: \"+ stu.year);\r\n\t\t}\r\n\t\t //Just changing the Stream so it will print to a file instead of console.\r\n\t\t PrintStream printStream = new PrintStream(new FileOutputStream(outputfile));\r\n\t\t System.setOut(printStream);\r\n\t\t System.out.println(\"\\nInorder traversal of binary tree is \");\r\n\t\t System.out.println(String.format(\"%-10s %-7s %-4s %-4s %-4s \",\"Name\",\" ID\",\"Department\",\"Program\",\"Year\"));\r\n\t\t bst.printInorder(outputfile);\r\n\t\t PrintStream printStream2 = new PrintStream(new FileOutputStream(outputfile2));\r\n\t\t System.setOut(printStream2);\r\n\t\t System.out.println(\"\\nBreadthFirst traversal of binary tree is \");\r\n\t\t System.out.println(String.format(\"%-10s %-7s %-4s %-4s %-4s \",\"Name\",\" ID\",\"Department\",\"Program\",\"Year\"));\r\n\t\t bst.printLevelOrder(outputfile2);\r\n\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"usage\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\r\n\t}", "@Override\r\n\tpublic void run() {\n \tFile in = new File(\"input.txt\");\r\n\t\t String strLine;\r\n\t\t int k;\r\n\t\t Tree mytree = new Tree();\r\n\t\t try {\r\n\t\t Scanner sc = new Scanner(in);\r\n\t\t while (sc.hasNext()) {\r\n\t\t mytree.insert(sc.nextInt());\r\n\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t try(FileWriter fos=new FileWriter(\"output.txt\"))\r\n\t {\r\n\t \r\n\t\t\t mytree.PreOrderTraversal(mytree.root, fos);\r\n\t }\r\n\t catch(IOException ex){\r\n\t \tSystem.out.println(ex.getMessage());\r\n\t }\r\n \t\r\n\t}", "public TreeDictionary(String path) {\n\n\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\tnodes[i] = new TreeDictionary();\n\t\t}\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\n\t\t\tString word = br.readLine();\n\n\t\t\twhile (word != null) {\n\n\t\t\t\tif (isValidWord(word)) {\n\t\t\t\t\tString signature = wordToSignature(word);\n\n\t\t\t\t\t// characterVal = converting the first character from the signature to an int\n\t\t\t\t\tint characterVal = Integer.parseInt(signature.substring(0, 1));\n\t\t\t\t\t// adding the corresponding characterVal to the tree\n\t\t\t\t\tnodes[characterVal - 2].addToNode(word.toLowerCase(), 1);\n\n\t\t\t\t}\n\t\t\t\tword = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not find file to open.\");\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}", "private static RootedTree parseTree(String line,\n\t\t\tMap<String, String> translation)\n\t{\t\t\n\t\tString newickStr = StringUtils.selectFirstRegex(newickPattern, line);\t\t\t\t\n\t\tnewickStr=newickStr.substring(4); \t\n\t\t// hack (cannot translate in tree rep because of limitation of newick parser\t\t\n\t\tfor (String code : translation.keySet())\n\t\t{\n\t\t\tString codeCtx = StringUtils.selectFirstRegex(\"([,)(])\" + code + \"[:]\", newickStr);\t\t\t\n\t\t\tnewickStr = newickStr.replace(codeCtx + code + \":\", codeCtx + translation.get(code) + \":\");\n\t\t}\n\n\t\t// for (int i = translation.size(); i >= 1; i--)\n\t\t// newickStr = newickStr.replace(\"\" + i + \":\" , translation.get(\"\" + i) + \":\"); \n\n\t\tnewickStr = newickStr + \";\";\t\t\n\t\treturn RootedTree.Util.fromNewickString(newickStr);\n\t}", "private static BST readDataFile(Scanner in)\n\t{\n\t\tBST tree=new BST();\n\t\t\n\t\t//read the file line by line\n\t\twhile(in.hasNextLine())\n\t\t{\n\t\t\t// Scanner to read 1 line; closed before end of while loop\n\t\t\tString currentLine=in.nextLine();\n\t\t\tScanner line=new Scanner(currentLine);\n\t\t\t\n\t\t\t// makes the scanner separate the information in the line by \",\" and \";\"\n\t\t\tline.useDelimiter(\",|;\");\n\t\t\t\n\t\t\t// create a profile from the line and insert it into the tree\n\t\t\tProfile p=createProfile(line);\n\t\t\ttree.insertProfile(p);\t\n\t\t\t\t\t\n\t\t\tline.close();\n\t\t}\n\t\t\n\t\tin.close();\n\t\treturn tree;\n\t}", "@Test\n public void testAllConstructions() throws IOException, LexerException, ParseException {\n TreeNode<ASTNode> tree = getTree(\"all.txt\");\n System.out.println(tree);\n }", "public void load()\r\n {\r\n \tfc.setAcceptAllFileFilterUsed(false);\r\n\t\tfc.setDialogTitle(\"Select the text file representing your organism!\");\r\n\t\tfc.setFileFilter(new FileNameExtensionFilter(\"Text Files (Organism)\", new String[]{\"txt\"}));\r\n\t\tif(fc.showOpenDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t\t\t//Try-Catch Block\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tbr=new BufferedReader(new FileReader(fc.getSelectedFile()));\r\n\t\t\t\tArrayList<Organism> treeTemp=new ArrayList<Organism>();\r\n\t\t \tString line=br.readLine();\r\n\t\t \tint x=0;\r\n\t\t \twhile(line!=null)\r\n\t\t \t{\r\n\t\t \t\t\tString[] genesSt=line.split(\" \");\r\n\t\t \t\t\tint[] genes=new int[genesSt.length];\r\n\t\t \t\t\tfor(int y=0; y<genesSt.length; y++)\r\n\t\t \t\t\t\tgenes[y]=Integer.parseInt(genesSt[y]);\r\n\t\t \t\t\t\t\r\n\t\t \t\t\ttreeTemp.add(new Organism(genes,x));\r\n\t\t \t\tline=br.readLine();\r\n\t\t \t\tx++;\r\n\t\t \t}\r\n\t\t \tbr.close();\r\n\t\t \te.setTree(treeTemp);\r\n\t\t \te.setParent(treeTemp.get(treeTemp.size()-1));\r\n\t\t\t\trepaint();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex)\r\n\t\t\t{\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n }", "public Node createHuffmanTree(File f) throws FileNotFoundException {\r\n File file = f;\r\n FileInputStream fi = new FileInputStream(file);\r\n List<Node> nodes = new LinkedList<>();\r\n\r\n// Creating a map, where the key is characters and the values are the number of characters in the file\r\n Map<Character, Integer> charsMap = new LinkedHashMap<>();\r\n try (Reader reader = new InputStreamReader(fi);) {\r\n int r;\r\n while ((r = reader.read()) != -1) {\r\n char nextChar = (char) r;\r\n\r\n if (charsMap.containsKey(nextChar))\r\n charsMap.compute(nextChar, (k, v) -> v + 1);\r\n else\r\n charsMap.put(nextChar, 1);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n//// Sort the map by value and create a list\r\n// charsMap = charsMap.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\r\n\r\n// Creating a list of Nodes from a map\r\n for (Character ch : charsMap.keySet()) {\r\n nodes.add(new Node(ch, charsMap.get(ch), null, null));\r\n }\r\n\r\n// Creating a Huffman tree\r\n while (nodes.size() > 1) {\r\n Node firstMin = nodes.stream().min(Comparator.comparingInt(n -> n.count)).get();\r\n nodes.remove(firstMin);\r\n Node secondMin = nodes.stream().min(Comparator.comparingInt(n -> n.count)).get();\r\n nodes.remove(secondMin);\r\n\r\n Node newNode = new Node(null, firstMin.count + secondMin.count, firstMin, secondMin);\r\n newNode.left.count = null;\r\n newNode.right.count = null;\r\n nodes.add(newNode);\r\n nodes.remove(firstMin);\r\n nodes.remove(secondMin);\r\n }\r\n\r\n// Why first? See algorithm!\r\n nodes.get(0).count = null;\r\n return nodes.get(0);\r\n }", "public TreeNode readTrainingFile() {\n\t\t// first, read the training data into some storage location\n\t\ttry {\n\t\t\tScanner s = new Scanner(new File(trainingFile));\n\t\t\t// took these lines from helper-code\n\t\t classifierNames = new ArrayList<String>();\n\t\t for (Scanner l = new Scanner(s.nextLine()); l.hasNext();) {\n\t\t \tclassifierNames.add(l.next());\n\t\t }\n\t\t\tif (attributeNames.size() == 0) {\n\t\t\t\tScanner line = new Scanner(s.nextLine());\n\t\t\t\twhile (line.hasNext()) {\n\t\t\t\t\tattributeNames.add(line.next());\n\t\t\t\t}\n\t\t\t\tline.close();\n\t\t\t}\n\t\t\treadFile(s,instances);\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Training file not found, you should have put tests for this in main.\");\n\t\t\tSystem.err.println(\"Attempted to read \"+trainingFile+\".\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tsetDefaultNode();\n\t\tArrayList<Boolean> ar = new ArrayList<Boolean>();\n\t\tfor (int i = 0; i < attributeNames.size(); i++) {\n\t\t\tar.add(false);\n\t\t}\n\t\treturn BuildTree(instances, ar);\n\t}", "public static void main(String[] args) {\n\t\tif (args.length == 0) {\n\t\t\t System.err.println(\"Usage Error: the program expects a file name as an argument\");\n\t\t\t System.exit(-1);\n\t\t}\n\t\t\n\t\t// create a file with the entered file name\n\t\tFile file= new File(args[0]);\n\t\t\n\t\t// if the file does not exist inform the user and terminate the program\n\t\tif(file.exists()!=true){\n\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file cannot be read inform the user and terminate the program\n\t\telse if(file.canRead()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file is not a file inform the user and terminate the program\n\t\telse if(file.isFile()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\t\n\t\t// create a list of type TreeList that will contain all the tree objects \n\t\tTreeList list= new TreeList();\n\t\t\t\n\t\ttry{\n\t\t\t// send the file to the scanner\n\t\t\tScanner inputFile = new Scanner(file);\n\t\t\t\n\t\t\t// create a boolean variable that is initially equal to true. \n\t\t\t// Since the first line does not contain info that can be parsed use the \n\t\t\t// variable to ensure the first line is skipped\n\t\t\tboolean firstLine=true;\n\t\t\t\n\t\t\t// while there is another line in the file continue the loop\n\t\t\twhile (inputFile.hasNextLine())\t{\n\t\t\t\t\n\t\t\t\t// create a string that represents a single line from the file\n\t\t\t\tString line= inputFile.nextLine();\n\t\t\t\t\n\t\t\t\t// send the line to have its information separated and entered into an\n\t\t\t\t// arrayList of strings\n\t\t\t\tArrayList<String> splitLine= splitCSVLine(line);\n\t\t\t\t\n\t\t\t\t\t// ensure the splitLine contains 41 elements, if not, skip it\n\t\t\t\t\tif (splitLine.size()==41){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t// parse the information according to the needed information\n\t\t\t\t\t\t\t// about a tree that is sent to the tree class\n\t\t\t\t\t\t\tint id= Integer.parseInt(splitLine.get(0));\n\t\t\t\t\t\t\tint diam= Integer.parseInt(splitLine.get(3));\n\t\t\t\t\t\t\tString status= splitLine.get(6);\n\t\t\t\t\t\t\tString health= splitLine.get(7);\n\t\t\t\t\t\t\tString spc= splitLine.get(9);\n\t\t\t\t\t\t\tint zip= Integer.parseInt(splitLine.get(25));\n\t\t\t\t\t\t\tString boro= splitLine.get(29);\n\t\t\t\t\t\t\tdouble x= Double.parseDouble(splitLine.get(39));\n\t\t\t\t\t\t\tdouble y= Double.parseDouble(splitLine.get(40));\n\t\t\t\t\t\t\t// once information is parsed, use its information to create a \n\t\t\t\t\t\t\t// new tree\n\t\t\t\t\t\t\tTree tree= new Tree(id,diam,status,health,spc,zip,boro,x,y);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// ensure that the new tree does not have the same\n\t\t\t\t\t\t\t// ID, but a different species name from the other trees\n\t\t\t\t\t\t\t// in treeList\n\t\t\t\t\t\t\tfor (int i=0; i<list.size();i++){\n\t\t\t\t\t\t\t\ttree.equals(list.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// if the tree object is valid, add it to treeList list\n\t\t\t\t\t\t\tlist.add(tree);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// catch any invalid values sent to the constructor of the tree class\n\t\t\t\t\t\tcatch (IllegalArgumentException e){\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// throw a general exception in the case there is a parsing error\n\t\t\t\t\t\t// therefore the line will be ignored\n\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t//}\n\t\t\t\t// after the first line passes through the loop set it equal\n\t\t\t\t// to false so the following information can be parsed and \n\t\t\t\t// sent to the tree class\n\t\t\t\tfirstLine=false;\n\t\t\t\n\t\t\t}\n\t\t\t// close the scanner\n\t\t\tinputFile.close();\n\t\t }\n\t\t\n\t\t// catch if the file cannot be found and send a message describing what happened\n\t\t// to the user. Exit the program.\n\t\tcatch (FileNotFoundException e){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" does not exist.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// create an if statement to terminate the program if the file is empty or contains\n\t\t// no usable information\n\t\tif (list.size()==0){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" contains no usable information.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// this portion of the program will handle user input and print the correct\n\t\t// tree information according to the tree species the user enters \n\t\t\n\t \t// create an exit word that will terminate the loop\n\t\tString exitWord=\"quit\";\n\t\t\n\t\t// create a string variable that represents the user's answer\n\t\tString answer;\n\t\t \n\t\t// open the scanner \n\t\tScanner input= new Scanner(System.in);\n\t\t// print a statement informing the user what to do\n\t\tSystem.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t// set the answer equal to the user's response\n answer= input.nextLine();\n \n // while the answer is not quit, keep prompting the user for a tree species\n\t\twhile (!(answer.equalsIgnoreCase(exitWord))){\n\t\t\t// if the tree species exists within the list of trees, print its matching species\n\t\t\t// and how many of that species exists within NYC and its boroughs\n\t\t\tif ((list.getCountByTreeSpecies(answer))>0){\n\t\t\t\tSystem.out.println(getMatchingSpecies(list,answer)+\"\\n\");\n\t\t\t\tSystem.out.println(getSpeciesInfo(list,answer));\n\t\t\t}\n\t\t\t\n\t\t\t// if the tree species is not within the list of trees, print a statement to \n\t\t\t// the user explaining it does not exist in NYC\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"There are no records of \"+answer+\" on NYC streets\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\n\t\t// re-prompt the user to enter a tree species\n\t\t System.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t answer= input.nextLine();\n\t\t}\n\t\t\n\t\t//close the scanner\n\t\t input.close();\n\t\t \n\t\t \n\t}", "public Node buildTree(ArrayList<ArrayList<String>> dataSet,\n\t\t\tArrayList<String> attributeList) throws FileNotFoundException {\n\t\tint countZero = 0;\n\t\tint countOne = 0;\n\n\t\tfor (int i = 1; i < dataSet.size(); i++) {\n\t\t\tif (dataSet.get(i).get(dataSet.get(i).size() - 1)\n\t\t\t\t\t.equalsIgnoreCase(\"1\")) {\n\t\t\t\tcountOne++;\n\t\t\t} else {\n\t\t\t\tcountZero++;\n\t\t\t}\n\t\t}\n\t\tif (attributeList.isEmpty() || countZero == dataSet.size() - 1) {\n\t\t\treturn new Node(\"0\");\n\n\t\t} else if (attributeList.isEmpty() || countOne == dataSet.size() - 1) {\n\t\t\treturn new Node(\"1\");\n\t\t} else {\n\t\t\tComputeInfoGain gain = new ComputeInfoGain();\n\t\t\tString bestAttribute = gain.bestAttribute(dataSet, attributeList);\n\t\t\tArrayList<String> attributes2 = new ArrayList<String>();\n\t\t\tHashMap<String, ArrayList<ArrayList<String>>> newMap = ComputeInfoGain\n\t\t\t\t\t.classifyOnBestAttribute(dataSet, bestAttribute);\n\t\t\tfor (String attr : attributeList) {\n\t\t\t\tif (!attr.equalsIgnoreCase(bestAttribute)) {\n\t\t\t\t\tattributes2.add(attr);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (newMap.size() < 2) {\n\t\t\t\tString value = \"0\";\n\t\t\t\tif (countOne > countZero) {\n\t\t\t\t\tvalue = \"1\";\n\t\t\t\t}\n\t\t\t\treturn new Node(value);\n\t\t\t}\n\t\t\treturn new Node(bestAttribute, buildTree(newMap.get(\"0\"),\n\t\t\t\t\tattributes2), buildTree(newMap.get(\"1\"), attributes2));\n\t\t}\n\n\t}", "public static void main(String[] args) throws AVLTreeException, BSTreeException, IOException {\n\t\tint bsDepths = 0, avlDepths = 0; // tracks the sum of the depths of every node\n\t\tScanner inFile = new Scanner(new FileReader(args[0]));\n\t\tAVLTree<String> avltree = new AVLTree<>();\n\t\tBSTree<String> bstree = new BSTree<>();\n\t\tFunction<String, PrintStream> printUpperCase = x -> System.out.printf(\"%S\\n\", x); // function example from Duncan. Hope this is okay :)\n\t\tArrayList<String> words = new ArrayList<>(); // Way to store the words without opening the file twice\n\t\twhile (inFile.hasNext()) { // inserting words into each tree without using an extra loop\n\t\t\twords.add(inFile.next().toUpperCase());\n\t\t\tbstree.insert(words.get(words.size() - 1));\n\t\t\tavltree.insert(words.get(words.size() - 1));\n\t\t}\n\t\tinFile.close();\n\t\t// VVV Prints table 1 VVV\n\t\tSystem.out.printf(\"Table 1: Binary Search Tree [%s]\\n\" + \"Level-Order Traversal\\n\"\n\t\t\t\t+ \"=========================================\\n\" + \"Word\\n\"\n\t\t\t\t+ \"-----------------------------------------\\n\", args[0]);\n\t\tbstree.levelTraverse(printUpperCase);\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t\t// VVV Prints table 2 VVV\n\t\tSystem.out.printf(\n\t\t\t\t\"Table 2: AVL Tree [%s]\\n\" + \"Level-Order Traversal\\n\" + \"=========================================\\n\"\n\t\t\t\t\t\t+ \"Word\\n\" + \"-----------------------------------------\\n\",\n\t\t\t\targs[0]);\n\t\tavltree.levelTraverse(printUpperCase);\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t\t// VVV Prints table 3 VVV\n\t\tSystem.out.printf(\"Table 3:Number of Nodes vs Height vs Diameter\\n\" + \"Using Data in [%s]\\n\"\n\t\t\t\t+ \"=========================================\\n\" + \"Tree # Nodes Height Diameter\\n\"\n\t\t\t\t+ \"-----------------------------------------\\n\" + \"BST\\t%d\\t %d\\t %d\\n\" + \"AVL\\t%d\\t %d\\t %d\\n\",\n\t\t\t\targs[0], bstree.size(), bstree.height(), bstree.diameter(), avltree.size(), avltree.height(),\n\t\t\t\tavltree.diameter());\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t\tfor (int i = 0; i < words.size(); i++) { //searches the trees for each word, totaling their depths\n\t\t\tbsDepths += 1 + bstree.depth(words.get(i));\n\t\t\tavlDepths += 1 + avltree.depth(words.get(i));\n\t\t}\n\t\t// VVV Prints table 4 VVV\n\t\tSystem.out.printf(\"Table 4:Total Number of Node Accesses\\n\" + \"Searching for all the Words in [%s]\\n\"\n\t\t\t\t+ \"=========================================\\n\" + \"Tree # Nodes\\n\"\n\t\t\t\t+ \"-----------------------------------------\\n\" + \"BST %d\\n\" + \"AVL %d\\n\",\n\t\t\t\targs[0], bsDepths, avlDepths);\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t}", "private void writeTree() throws IOException {\n\t\ttry (final BufferedWriter writer = Files.newBufferedWriter(destinationFile, CHARSET)) {\n\t\t\tfinal char[] treeString = new char[512];\n\t\t\tint treeStringLength = 0;\n\t\t\tfor (final CharacterCode cur : sortedCodes) {\n\t\t\t\ttreeString[treeStringLength++] = cur.getChar();\n\t\t\t\ttreeString[treeStringLength++] = (char) cur.getCode().length();\n\t\t\t}\n\t\t\tif (treeStringLength > 0xff) { //tree length will not always be less than 255, we have to write it on two bytes\n\t\t\t\tfinal int msb = (treeStringLength & 0xff00) >> Byte.SIZE;\n\t\t\t\ttreeStringLength &= 0x00ff;\n\t\t\t\twriter.write(msb);\n\t\t\t} else {\n\t\t\t\twriter.write(0);\n\t\t\t}\n\t\t\twriter.write(treeStringLength);\n\t\t\twriter.write(treeString, 0, treeStringLength);\n\t\t}\n\t}", "public Node readTree() {\n boolean totuusarvo = b.readBoolean();\n if (totuusarvo == true) {\n return new Node(b.readShort(), -1, null, null);\n } else {\n return new Node(\"9000\", -1, readTree(), readTree());\n }\n }", "void createTree() throws IOException {\n\n // create root\n rootTreeItem = createTreeRoot();\n\n // create tree structure recursively\n createTree(rootTreeItem);\n\n // sort tree structure by name\n rootTreeItem.getChildren()\n .sort(Comparator.comparing(new Function<TreeItem<FilePath>, String>() {\n @Override\n public String apply(TreeItem<FilePath> t) {\n return t.getValue().toString().toLowerCase();\n }\n }));\n\n }", "Graph<V,E> load(String filename);", "@SuppressWarnings(\"unchecked\")\n\tpublic void readData(String fileName) {\n\t\ttry {\n\t\t\tFile file = new File(fileName);;\n\t\t\tif( !file.isFile() ) {\n\t\t\t\tSystem.out.println(\"ERRO\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\tBufferedReader buffer = new BufferedReader( new FileReader(file) );\n\t\t\t/* Reconhece o valor do numero de vertices */\n\t\t\tString line = buffer.readLine();\n\t\t\tStringTokenizer token = new StringTokenizer(line, \" \");\n\t\t\tthis.num_nodes = Integer.parseInt( token.nextToken() );\n\t\t\tthis.nodesWeigths = new int[this.num_nodes];\n\t\t\t\n\t\t\t/* Le valores dos pesos dos vertices */\n\t\t\tfor(int i=0; i<this.num_nodes; i++) { // Percorre todas a linhas onde seta valorado os pesos dos vertices\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se existe a linha a ser lida\n\t\t\t\t\tbreak;\n\t\t\t\ttoken = new StringTokenizer(line, \" \");\n\t\t\t\tthis.nodesWeigths[i] = Integer.parseInt( token.nextToken() ); // Adiciona o peso de vertice a posicao do arranjo correspondente ao vertice\n\t\t\t}\n\t\t\t\n\t\t\t/* Mapeia em um array de lista todas as arestas */\n\t\t\tthis.edges = new LinkedList[this.num_nodes];\n\t\t\tint cont = 0; // Contador com o total de arestas identificadas\n\t\t\t\n\t\t\t/* Percorre todas as linhas */\n\t\t\tfor(int row=0, col; row<this.num_nodes; row++) {\n\t\t\t\tif( (line = buffer.readLine()) == null ) // Verifica se ha a nova linha no arquivo\n\t\t\t\t\tbreak;\n\t\t\t\tthis.edges[row] = new LinkedList<Integer>(); // Aloca nova lista no arranjo, representado a linha o novo vertice mapeado\n\t\t\t\tcol = 0;\n\t\t\t\ttoken = new StringTokenizer(line, \" \"); // Divide a linha pelos espacos em branco\n\t\t\t\t\n\t\t\t\t/* Percorre todas as colunas */\n\t\t\t\twhile( token.hasMoreTokens() ) { // Enquanto ouver mais colunas na linha\n\t\t\t\t\tif( token.nextToken().equals(\"1\") ) { // Na matriz binaria, onde possui 1, e onde ha arestas\n//\t\t\t\t\t\tif( row != col ) { // Ignora-se os lacos\n\t\t\t\t\t\t\t//System.out.println(cont + \" = \" + (row+1) + \" - \" + (col+1) );\n\t\t\t\t\t\t\tthis.edges[row].add(col); // Adiciona no arranjo de listas a aresta\n\t\t\t\t\t\t\tcont++; // Incrementa-se o total de arestas encontradas\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcol++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.num_edges = cont; // Atribui o total de arestas encontradas\n\n\t\t\tif(true) {\n//\t\t\t\tfor(int i=0; i<this.num_nodes; i++) {\n//\t\t\t\t\tSystem.out.print(this.nodesWeigths[i] + \"\\n\");\n//\t\t\t\t}\n\t\t\t\tSystem.out.print(\"num edges = \" + cont + \"\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tbuffer.close(); // Fecha o buffer\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}", "private QuestionNode readTree(Scanner input){\n String type = input.nextLine();\n String data = input.nextLine();\n QuestionNode current = new QuestionNode(data);\n if(!type.equals(\"A:\")) {\n current.left = readTree(input);\n current.right = readTree(input);\n }\n return current;\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\tbbst rbt = new bbst();\n\t\t\n\t\t\t//File f1 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\test_10000000.txt\");\n\t\t\t\t//System.out.println(\" file name \" + args[0]);\n\t\t\tFile f1 = new File(args[0]);\n\t\t\tFileReader input = new FileReader(f1);\n\t\t\tBufferedReader in = new BufferedReader(input);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\t\tline = in.readLine();\n\t\t\t\tint size = Integer.parseInt(line);\n\t\t\t\tint arr[][] = new int[size][2];\n\t\t\t\tint i=0;\n\t\t\t\twhile(line != null){\n\t\t\t\t\tline = in.readLine();\n\t\t\t\t\tif( line != null){\n\t\t\t\t\t\tint key = Integer.parseInt(line.split(\" \")[0]);\n\t\t\t\t\t\tint val = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t\t\tarr[i][0]=key;\n\t\t\t\t\t\tarr[i][1]=val;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trbt.buildInitialTree(arr,size);\n\t\t\t\t\n\t\t\t\tinput.close();\n\t\t\t\tin.close();\n\t\t\t\t//System.out.println(\" tree build\");\n\t\t\t\tString line1;\n\t\t\t\twhile ((line1 = br.readLine()) != null) {\n\t\t\t\t\t//System.out.println(\" line \" + line);\n\t \tif(line1.isEmpty())\n\t \t\tcontinue;\n\t \t//System.out.println(\" line \");\n\t \tStringTokenizer stringTokenizer = new StringTokenizer(line1, \" \");\n\t \t\n\t \twhile (stringTokenizer.hasMoreElements()) {\n\t\t\t\t\t \n\t \tString command = stringTokenizer.nextElement().toString();\n\t \tint param1 ;\n\t\t\t \tint param2;\n\t\t\t \t\t \n\t \n\t\t // System.out.println(command);\n\t\t switch (command.toString()) {\n\t\t case \"increase\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \n\t\t //System.out.println(Integer.parseInt(y.toString()));\n\t\t rbt.Increase(param1, param2);\n\t\t break;\n\t\t case \"reduce\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Reduce(param1,param2);\n\t\t break;\n\t\t case \"count\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Count(param1);\n\t\t break;\n\t\t case \"inrange\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.InRange(param1, param2);\n\t\t break;\n\t\t case \"next\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Next(param1);\n\t\t break;\n\t\n\t\t case \"previous\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Previous(param1);\n\t\t break;\n\t\t case \"quit\":\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t default : \n\t\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t }\n\t \t}\n\t }\n\t\t\t\t\n\t\t\t\t//File f2 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\commands.txt\");\n\t\t\t\t//File f2 = new File(args[1]);\n\t\t\t\t//FileReader input2 = new FileReader(f2);\n\t\t\t\t//BufferedReader in2 = new BufferedReader(input2);\n\t\t\t\t//String s2 = in2.readLine();\n\t\t\t\t/*while(s != null){\n\t\t\t\t\ts = in.readLine();\n\t\t\t\t\tif(s!=null){\n\t\t\t\t\t\tswitch(s.split(\" \")[0]){\n\t\t\t\t\t case \"increase\" :\n\t\t\t\t\t \t//System.out.println(\" increase \");\n\t\t\t\t\t \tint key = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint incVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Increase(key, incVal);\n\t\t\t\t\t break; \n\t\t\t\t\t case \"reduce\" :\n\t\t\t\t\t \t //System.out.println(\" reduce \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tincVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println( \" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Reduce(key, incVal);\n\t\t\t\t\t break;\n\t\t\t\t\t case \"count\" :\n\t\t\t\t\t \t//System.out.println(\"count \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Count(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"inrange\" :\n\t\t\t\t\t \t//System.out.println(\" in range \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint key2 = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" val \" + key2);\n\t\t\t\t\t \trbt.InRange(key, key2);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"next\" :\n\t\t\t\t\t \t//System.out.println(\" next\");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Next(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"previous\" :\n\t\t\t\t\t \t//System.out.println(\" prev \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" find prev of \" + key);\n\t\t\t\t\t \t//System.out.println(\" node in tree \" + rbt.getNode(root, key).id);\n\t\t\t\t\t \trbt.Previous(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"quit\":\n\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t default : \n\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\n\t}", "public TreeItem(String file) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file);\n\t}", "public BinaryTree(){}", "private void openTreeML()\r\n {\r\n// // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Open the file.\r\n// String file = openFileChooser(true, filters);\r\n// \r\n// // Process the file. \r\n// if (file != null)\r\n// {\r\n// m_gtree = Loader.loadTreeML(file);\r\n// TreeDisplay disp = new TreeDisplay(m_gtree,0);\r\n// TreePanel panel = new TreePanel(disp, LEGEND, ORIENTATION_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(1, panel);\r\n// }\r\n }", "public MaxFlow(final String filename) {\r\n\t\tthis.nodes = new ArrayList<>();\r\n\t\tArrayList<String> nodeNames = new ArrayList<>();\r\n Pattern pattern = Pattern.compile(\"[^->\\\"\\\\[\\\\s]+\");\r\n Matcher matcher;\r\n\r\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(filename);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\tString currentLine = br.readLine();\r\n\t\t\tboolean finished = false;\r\n\t\t\t//create nodes and edges\r\n\r\n\t\t\twhile(!finished) {\r\n if(currentLine.matches(\".* -> .*\")) {\r\n matcher = pattern.matcher(currentLine);\r\n matcher.find();\r\n String start = matcher.group();\r\n matcher.find();\r\n String end = matcher.group();\r\n int maxFlow = Integer.parseInt(currentLine.substring(currentLine.indexOf(\"\\\"\") + 1, currentLine.indexOf(\"]\") - 1));\r\n\r\n if (!nodeNames.contains(start) && !nodeNames.contains(end)) {\r\n Node startNode = new Node(start, 0);\r\n Node endNode = new Node(end, 0);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(start);\r\n nodes.add(startNode);\r\n nodeNames.add(end);\r\n nodes.add(endNode);\r\n } else if (!nodeNames.contains(start) && nodeNames.contains(end)) {\r\n Node startNode = new Node(start, 0);\r\n Node endNode = findNode(end);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(start);\r\n nodes.add(startNode);\r\n } else if (nodeNames.contains(start) && !nodeNames.contains(end)) {\r\n Node startNode = findNode(start);\r\n Node endNode = new Node(end, 0);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(end);\r\n nodes.add(endNode);\r\n } else {\r\n Node startNode = findNode(start);\r\n Node endNode = findNode(end);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n startNode.addEdge(connection);\r\n }\r\n }\r\n currentLine = br.readLine();\r\n if (currentLine == null)\r\n finished = true;\r\n\r\n }\r\n this.pathfinder = new Navigation(nodes);\r\n\r\n\t\t} catch (IOException e){e.printStackTrace();}\r\n\t}", "public Consensus(String filename, double perc) {\n\tBufferedReader input = null;\n\t// Read in the taxa information and input trees\n\ttry {\n\t input = new BufferedReader(new FileReader(filename));\n\t String line = input.readLine();\n\t StringTokenizer st;\n\t System.out.println(\"Reading taxa blocks.\");\n\t //Read in the taxa labels\n\t while (line.indexOf(\"dimensions ntax\") == -1)\n\t\tline = input.readLine();\n\t //No. of taxa\n\t noTax = Integer.parseInt(line.substring(\n\t\t\t line.indexOf(\"=\") + 1, line.indexOf(\";\")).trim());\n\t System.out.println(\"No. of taxa: \" + noTax);\n\t taxa = new String[noTax];\n\t //Random weight, used in hashcode calculation\n\t int[] weight = new int[noTax];\n\t while (line.indexOf(\"taxlabels\") == -1)\n\t\tline = input.readLine();\n\t st = new StringTokenizer(line.substring(0, line.indexOf(\";\")));\n\t st.nextToken();\n\t int count = 0;\n\t Random r = new Random();\n\t while (st.hasMoreTokens()){ \n\t\ttaxa[count] = st.nextToken();\n\t\tweight[count++] = Math.abs(r.nextInt());\n\t }\n\t //Determine hash1\n\t int low = 0;\n\t int high = primes.length;\n\t while (low + 1 < high) {\n\t\t//System.out.println(primes[(high + low) / 2] + \" High = \" +\n\t\t//\t\t high + \" Low = \" + low);\n\t\tif (primes[(high + low) / 2] < (10 * noTax)) {\n\t\t low = (high + low) / 2;\n\t\t} else {\n\t\t high = (high + low) / 2;\n\t\t}\n\t }\n\t //change from low+1 to low to avoie array index out of bound when low=length-1\n\t hash1 = primes[low];\n\t System.out.println(\"Hash1 = \" + hash1);\n\t hashTable = new Node[hash1];\n\t built = new Node[hash1];\n\n\t //Read in the input trees\n\t System.out.print(\"Start reading input trees\");\n\t trees = new Vector();\n\t while (line != null) {\n\t\tif (line.startsWith(\"tree B_\")) {\n\t\t trees.add(new BinTree(convertToID(line.substring(\n\t\t\t\t\t\t line.indexOf(\"(\"), \n\t\t\t\t\t\t line.indexOf(\";\"))),\n\t\t\t\t\t hash1, hash2, weight));\n\t\t System.out.print(\".\");\n\t\t}\n\t\tline = input.readLine();\n\t }\n\t trees.trimToSize();\n\t noTrees = trees.size();\n\t System.out.println(\"\\nNo. of trees read: \" + noTrees);\n\t thresh = noTrees * perc;\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Exception: \" + e);\n\t\te.printStackTrace();\n\t\tSystem.exit(1);\n\t} finally {\n\t try {\n\t\tinput.close();\n\t } catch (IOException ie) {\n\t\tSystem.out.println(\"Exception: \" + ie);\n\t\tie.printStackTrace();\n\t\tSystem.exit(1);\n\t }\n\t}\n }", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "public static Tree<Contact, String> loadContacts() {\n\t\tTree<Contact, String> ret = new Tree<Contact, String>();\n\t\tNode<Contact, String> nRoot = null;\n\t\tContact contact = new Contact();\n\t\tString row;\n\n\t\t// Load the contacts files\n\t\ttry {\n\t\t\tFileReader fReader = new FileReader(\"contacts.txt\");\n\t\t\tBufferedReader textReader = new BufferedReader(fReader);\n\n\t\t\t// For each row\n\t\t\twhile ((row = textReader.readLine()) != null) {\n\t\t\t\tcontact = new Contact();\n\t\t\t\tString[] rowSplit = row.split(\"##\");\n\t\t\t\tNode<Contact, String> node = new Node<Contact, String>();\n\t\t\t\t\n\t\t\t\tcontact.setName(rowSplit[0]);\n\t\t\t\tcontact.setPhone(rowSplit[1]);\n\t\t\t\tnode.setValue(contact);\n\t\t\t\tnode.setKey(rowSplit[0]);\n\t\t\t\t\n\t\t\t\tnode.setRoot(nRoot);\n\t\t\t\t\n\t\t\t\tret.addNode(node, false);\n\t\t\t}\n\t\t\t\n\t\t\ttextReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t\n\t\t}\n\n\t\treturn ret;\n\t}", "private void expandTree(TreeNode tn,Set<Condition> conds)\n{\n List<RuleInstance> rules = tn.getRules();\n double tot = rules.size();\n if (tot <= 1) return;\n if (conds == null || conds.isEmpty()) return;\n\n Condition best = null;\n List<RuleInstance> bestp = null;\n List<RuleInstance> bestf = null;\n double bestv = 0;\n\n for (Condition c : conds) {\n List<RuleInstance> pr = new ArrayList<RuleInstance>();\n List<RuleInstance> fr = new ArrayList<RuleInstance>();\n for (RuleInstance ri : rules) {\n\t if (c.match(ri)) pr.add(ri);\n\t else fr.add(ri);\n }\n if (pr.size() == 0 || fr.size() == 0) continue;\n double vp = pr.size() / tot;\n double vf = fr.size() / tot;\n double e = - vp * Math.log(vp) - vf * Math.log(vf);\n if (e > bestv) {\n\t best = c;\n\t bestp = pr;\n\t bestf = fr;\n }\n }\n\n if (best == null) return;\n\n tn.setCondition(best,bestp,bestf);\n expandTree(tn.getPassTree(),conds);\n expandTree(tn.getFailTree(),conds);\n}", "public BTree(String arg) {\n try {\n t = Integer.parseInt(arg);\n if (t < 2)\n throw new IllegalArgumentException(\" number is lower then 1\");\n BTNode.DEGREE = t;\n mRoot = createNode();\n }catch (NumberFormatException nfe){\n throw new NumberFormatException (\"arg \" + \" is not a number\");\n }\n\n }", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "public CSGraph(String fileName) {\n hashTable = new CSHashing();\n words = readWords(fileName);\n\n// createGraph(); // Minimal lösning\n\n createHashTable(); // Frivillig bra lösning\n createGraphWithHashTable(); // Frivillig bra lösning\n\n// shortestPaths(); // Metod som endast används till textfilen utan par.\n\n readPairs(\"files/5757Pairs\");\n }", "private void setUp(String file) {\n unorderedList = new LinkedList<>();\n orderedList = new SortedLinkedList<>();\n\n try {\n input = new Scanner(new BufferedReader(new FileReader(file)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private static void generateHuffmanTree(){\n try (BufferedReader br = new BufferedReader(new FileReader(_codeTableFile))) {\n String line;\n while ((line = br.readLine()) != null) {\n // process the line.\n if(!line.isEmpty() && line!=null){\n int numberData = Integer.parseInt(line.split(\" \")[0]);\n String code = line.split(\" \")[1];\n Node traverser = root;\n for (int i = 0; i < code.length() - 1; i++){\n char c = code.charAt(i); \n if (c == '0'){\n //bit is 0\n if(traverser.getLeftPtr() == null){\n traverser.setLeftPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getLeftPtr();\n }\n else{\n //bit is 1\n if(traverser.getRightPtr() == null){\n traverser.setRightPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getRightPtr();\n }\n }\n //Put data in the last node by creating a new leafNode\n char c = code.charAt(code.length() - 1);\n if(c == '0'){\n traverser.setLeftPtr(new LeafNode(9999999, numberData, null, null));\n }\n else{\n traverser.setRightPtr(new LeafNode(9999999, numberData, null, null));\n }\n }\n }\n } \n catch (IOException ex) {\n Logger.getLogger(FrequencyTableBuilder.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public HuffTree makeHuffTree(InputStream stream) throws IOException;", "public static void main(String[] args) throws FileNotFoundException {\n ThreeDigits threeDigits = new ThreeDigits();\n String filename = args[1];\n\n File myFile = new File(filename);\n Scanner reader = new Scanner(myFile);\n\n threeDigits.startNode = new Node(reader.nextLine());\n threeDigits.goalNode = new Node(reader.nextLine());\n\n if (reader.hasNextLine()) {\n\n String num = reader.nextLine();\n threeDigits.forbidden.addAll(Arrays.asList(num.split(\",\")));\n\n }\n\n if(threeDigits.startNode.getDigit().getDigitString().equals(threeDigits.goalNode.getDigit().getDigitString())){\n System.out.println(\"No solution found\");\n System.out.print(threeDigits.startNode.getDigit().getDigitString());\n System.exit(0);\n }\n\n ArrayList<String> childrenOfStart = new ArrayList<>();\n childrenOfStart = threeDigits.makeChildren(threeDigits.startNode);\n\n childrenOfStart.removeAll(threeDigits.forbidden);\n\n if(childrenOfStart.size() == 0){\n System.out.println(\"No solution found.\");\n System.out.println(threeDigits.startNode.getDigit().getDigitString());\n System.exit(0);\n }else{\n threeDigits.performSearch(args[0]);\n }\n\n\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n StringBuilder result = serialiseBT(root, new StringBuilder());\n System.out.println(result.toString());\n String[] strings = result.toString().split(\",\");\n TreeNode head = deserialize(strings, new int[]{0});\n System.out.println(serialiseBT(head, new StringBuilder()));\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public void showTree(IGPProgram a_prog, String a_filename)\n throws InvalidConfigurationException {\n if (a_prog == null) {\n return;\n }\n TreeNode myTree = createTree(a_prog);\n if (myTree == null) {\n return;\n }\n TreeVisualizer tv = new TreeVisualizer();\n tv.setTreeBranchRenderer(new JGAPTreeBranchRenderer());\n tv.setTreeNodeRenderer(new JGAPTreeNodeRenderer());\n tv.setBranchStartWidth(18.0);\n tv.setArenaColor(Color.black);\n tv.setBkgndColor(Color.black);\n tv.setRenderNodes(true);\n tv.setSide(1024);\n tv.setCircleDiminishFactor(0.5);\n tv.writeImageFile(tv.renderTree(myTree), new File(a_filename));\n }", "@Test\n\tpublic void testTreeloading() throws IOException{\n\t\tFile pFile = getResource(\"PTHR10000.arbre\");\n\t\tPANTHERTree ptree = new PANTHERTree(pFile);\n\t\t\n//\t\t// Trivial\n//\t\tOWLShuntGraph g = ptree.getOWLShuntGraph();\n//\t\tassertNotNull(g);\n\n\t\tSet<String> aSet = ptree.associatedIdentifierSet();\n\t\t\t\n\t\tassertTrue(\"Contains A\", aSet.contains(\"TAIR:At1g18640\"));\n\t\tassertTrue(\"Contains B\", aSet.contains(\"ENTREZ:3405244\"));\n\t\tassertTrue(\"Contains C\", aSet.contains(\"UniProtKB:Q4Q8D0\"));\n\t\tassertTrue(\"Contains D\", aSet.contains(\"NCBI:XP_001671160\"));\n\t\tassertTrue(\"Contains E\", aSet.contains(\"ZFIN:ZDB-GENE-050809-127\"));\n\t\tassertTrue(\"Contains F\", aSet.contains(\"ENSEMBL:AGAP012247\"));\n\t\tassertFalse(\"Does not contain A\", aSet.contains(\"TAIR:locus:2033535\"));\n\t\tassertFalse(\"Does not contain B\", aSet.contains(\"TAIR=locus=2043535\"));\n\t\tassertFalse(\"Does not contain C\", aSet.contains(\"ZFIN=ZDB-GENE-050809-127\"));\n\t\tassertFalse(\"Does not contain D\", aSet.contains(\"\"));\n\t\tassertFalse(\"Does not contain E\", aSet.contains(\"AN7\"));\n\t\tassertFalse(\"Does not contain F\", aSet.contains(\":\"));\n\t\tassertFalse(\"Does not contain G\", aSet.contains(\"GO:0022008\"));\n\t\t\n\t\t// DEBUG: Okay, now let's look at the generated graph a little.\n\t\t//OWLShuntGraph sg = ptree.getOWLShuntGraph();\n\t\t//String sg_json = sg.toJSON();\n\t\t//LOG.info(sg_json.toString());\n\t}", "private static Graph fileToGraph(String fileName) throws IOException {\n Graph graph = new Graph();\n // line counter to help keep track of the first line in the array\n // we will add those characters to a arrayList of characters\n int lineCounter = 0;\n ArrayList<Character> nodeArray = new ArrayList<>();\n\n // check if its a existing file\n if (new File(fileName).isFile()) {\n Scanner scanner = new Scanner(new File(fileName));\n // loop over each line in the file\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] stringNums = line.trim().split(\"\\\\s+\");\n // System.out.println(Arrays.toString(stringNums));\n if (lineCounter == 0) {\n for (int i = 0; i < stringNums.length; i++) {\n // add the character to the array list\n nodeArray.add(stringNums[i].charAt(0));\n // add the character to the graph\n // creating a key based on the character\n // and creating a node with the name of that same character\n graph.addNode(stringNums[i].charAt(0));\n }\n } else {\n // the first index is always going to be a character\n Character nodeName = stringNums[0].charAt(0);\n // we will get the node based on what character we are at\n Node currentNode = graph.getNode(nodeName);\n // loop over the array\n for (int i = 1; i < stringNums.length; i++) {\n // convert to an int\n int weight = Integer.parseInt(stringNums[i]);\n // create node by getting\n Node destination = graph.getNode(nodeArray.get(i - 1));\n // connect the destination node and weight to current node that we are at\n if (weight != 0) {\n currentNode.addEdge(destination, weight);\n }\n }\n }\n lineCounter++;\n }\n }\n return graph;\n }", "private void fileToPoSTags(String filePath,int version){\n Log.log(\"Reading TreeBank file <\" + filePath +\">\");\n\n FileReader fr = null;\n BufferedReader br = null;\n\n try{\n fr = new FileReader(filePath);\n br = new BufferedReader(fr);\n\n String currentLine;\n String[] columns;\n\n Tag tag1 = null;\n Tag tag2;\n String word;\n\n Integer numRow;\n while((currentLine = br.readLine()) != null){\n columns = currentLine.split(\"\\t\");\n numRow = getIntegerString(columns[0]);\n if(numRow != null && numRow >= 1){\n if(numRow == 1) {\n tag1 = Tag.valueOf(\"START\");\n saveTag(tag1);\n }\n try{\n tag2 = Tag.valueOf(columns[3]);\n saveTag(tag2);\n word = columns[1];\n switch (version){\n case 1:\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n break;\n case 2:\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n else if(Character.isUpperCase(word.charAt(0)))\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 3:\n\n if(tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n else{\n if(Character.isUpperCase(word.charAt(0))){\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n }else{\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(\n word.substring(0,1).toUpperCase()\n +word.substring(1),tag2));\n }\n\n }\n\n break;\n case 4:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 5:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n\n }\n saveBigram(new BiGram(tag1,tag2));\n tag1 = tag2;\n }catch (IllegalArgumentException e){\n e.printStackTrace();\n }\n }\n }\n\n }catch (IOException e){\n e.printStackTrace();\n }finally {\n UtilitiesIO.closeFile(fr,br);\n }\n }", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Map<Integer, Set<Integer>> map = new HashMap<Integer,Set<Integer>>();\n int[] valArr = new int[n];\n int[] colArr = new int[n];\n for(int i =0;i<n;i++){\n valArr[i] = scan.nextInt();\n }\n for(int i =0;i<n;i++){\n colArr[i] = scan.nextInt();\n }\n for(int i=0;i<n-1;i++){\n //10^10 / 1024/ 1024/1024, 10GB\n int a = scan.nextInt()-1;\n int b = scan.nextInt()-1;\n \n //Tree[] treeArr = new Tree[n];\n if(map.containsKey(a)){\n map.get(a).add(b);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(b);\n map.put(a,set);\n }\n //case 1-2, 2-1\n if(map.containsKey(b)){\n map.get(b).add(a);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(a);\n map.put(b,set);\n } \n }\n Set<Integer> visited = new HashSet<Integer>();\n Tree root =buildTree(map,0,0,valArr,colArr);\n return root;\n }", "public TreeNode readDataFile() {\n\t\tdata = new ArrayList<Instance>();\n\t\ttry {\n\t\t\tScanner s = new Scanner(new File(testFile));\n\t\t\t// took these lines from helper-code\n\t\t\tScanner l = new Scanner(s.nextLine());\n\t\t\tfor (int i = 0; l.hasNext(); i++) {\n\t\t\t\tif (!l.next().equals(classifierNames.get(i))) {\n\t\t\t\t\tSystem.err.println(\"This data file does not use the same category names as the training file.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tl.close();\n\t\t\tl = new Scanner(s.nextLine());\n\t\t\tfor (int i = 0; l.hasNext(); i++) {\n\t\t\t\tif (!l.next().equals(attributeNames.get(i))) {\n\t\t\t\t\tSystem.err.println(\"This data file does not match the attributes of the training file.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tl.close();\n\t\t\tSystem.out.println(\"Read attributes \"+attributeNames.toString()+\".\");\n\t\t\treadFile(s,data);\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"Training file not found, you should have put tests for this in main.\");\n\t\t\tSystem.err.println(\"Attempted to read \"+testFile+\".\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tArrayList<Boolean> attrs = new ArrayList<Boolean>();\n\t\tfor (int i = 0; i < attributeNames.size(); i++) {\n\t\t\tattrs.add(false);\n\t\t}\n\t\tTreeNode root = BuildTree(instances, attrs);\n\t\treturn root;\n\t}", "static TreeSet<Insertion> parseFile(String fn) throws IOException\n{\n\tTreeSet<Insertion> res = new TreeSet<>();\n\t@SuppressWarnings(\"resource\")\n\tScanner input = new Scanner(new FileInputStream(new File(fn)));\n\twhile(input.hasNext())\n\t{\n\t\tString line = input.nextLine();\n\t\tif(line.length() == 0 || line.charAt(0) == '#') continue;\n\t\tif(filter && svType == DELETE && !line.contains(\"SVTYPE=DEL\")) continue;\n\t\tif(filter && svType == INSERT && !line.contains(\"SVTYPE=INS\")) continue;\n\t\tInsertion cur = new Insertion(line);\n\t\tif(cur.length == 0) continue;\n\t\tres.add(new Insertion(line));\n\t}\n\treturn res;\n}", "public HIRTree(){\r\n\t\t\r\n\t}", "private static void parseRelations(){\n\t\tString[] number = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\tint numOfCoarse = Integer.parseInt(number[0]);\n\t\tint numOfAccurate = Integer.parseInt(number[1]);\n\t\t\n\t\tfor(int i=0; i<numOfCoarse; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\t\tmap.put(Integer.parseInt(pair[0]), pair[1]);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<numOfAccurate; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n//\t\t\tSystem.err.println(pair[0]);\n\t\t\tif(pair[1].equalsIgnoreCase(\"ROOT\"))\n\t\t\t\ttransform.put(pair[0], pair[1]);\n\t\t\telse\n\t\t\t\ttransform.put(pair[0], map.get(Integer.parseInt(pair[1])));\n\t\t}\n\t\t\n//\t\tSystem.err.println(map.size());\n//\t\tSystem.err.println(transform.size());\n\t\t\n\t\treturn;\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String, HashSet<String>> childParentHM=new HashMap<String, HashSet<String>>();\n\t\tLinkedList<String> queueLinkedList=new LinkedList<String>();\t\n \tLinkedHashMap<String, HashSet> linkedHashMap=new LinkedHashMap<String,HashSet>();\t\t\n\t\t//String fileName = \"C:/VK/alog/src/miniProject/min-imfo.txt\";\n\t\tString rootFile = \"C:/VK/alog/src/miniProject/mfo_names.txt\";\n\t\tString givenEdgesFile = \"C:/VK/alog/src/miniProject/created_File.txt\";\n\t\tFileReader fileReader;\n\t BufferedReader bufferedReader;\n\t \n\t \n\t \n\t try {\n\t \t FileReader filereader2=new FileReader(rootFile);\n\t \t \n\t \tbufferedReader = new BufferedReader(filereader2);\n\t \tString line = null;\n\t \t \n\n\t \t while((line = bufferedReader.readLine()) != null) \n\t \t {\n\t if(line.indexOf(\"_\")!=-1)\n\t \t//root=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\" \"));\n\t root=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\"\\t\")).trim();\n\t \t }\n\t \t root=\"1\";\n\t \t\n\t System.out.println(\"Root: \"+ root);\n\t fileReader = new FileReader(givenEdgesFile);\n \t bufferedReader = new BufferedReader(fileReader);\n \t String key;\n String value;\n \n \t while((line = bufferedReader.readLine()) != null) \n \t {\n \n if(line.indexOf(\"GO:\")==-1)\n \tcontinue;\n key=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\"\\t\")).trim();\n value=line.substring(line.lastIndexOf(\"GO:\")+3,line.length()).trim();\n if(childParentHM.get(key)==null)\n {\n \t\n \tHashSet<String> tempHashSet = new HashSet<String>();\n \tif(value.equals(root))\n \t{\n \t\tqueueLinkedList.add(key);\n \t}\n \ttempHashSet.add(value);\n \tchildParentHM.put(key, tempHashSet);\n }\n else\n {\n \tHashSet<String> tempHashSet = new HashSet<String>();\n \ttempHashSet=childParentHM.get(key);\n \ttempHashSet.add(value);\n }\n \n if(parentChild.get(value)==null)\n {\n \t\n \tLinkedHashSet<String> tempLinkedList = new LinkedHashSet<String>();\n \ttempLinkedList.add(key);\n \tparentChild.put(value, tempLinkedList);\n }\n else\n {\n \tLinkedHashSet<String> tempHashSet = new LinkedHashSet<String>();\n \ttempHashSet=parentChild.get(value);\n \ttempHashSet.add(key);\n }\n }\n \t \n\t\twhile(!queueLinkedList.isEmpty())\n\t\t{\n\t\t\t int sizeLinkedList=queueLinkedList.size();\n\t\t\t while(sizeLinkedList!=0)\n\t\t\t {\n\t\t\t\t HashSet tempHS=(HashSet)parentChild.get(queueLinkedList.get(0));\n\t\t\t\t if(tempHS!=null)\n\t\t\t\t {\n\t\t \t\t Iterator iteratorHashSet=tempHS.iterator();\n\t\t \t\t while(iteratorHashSet.hasNext())\n\t\t \t\t {\n\t\t \t\t\t String nextElement=(String)iteratorHashSet.next();\n\t\t \t\t\tqueueLinkedList.addLast(nextElement);\n\t\t \t }\n\t\t \t\tsizeLinkedList--;\n\t\t \t\t \n\t\t \t\tlinkedHashMap.put((String)queueLinkedList.getFirst(),childParentHM.get(queueLinkedList.getFirst()) );\n\t\t \t\tqueueLinkedList.remove(0);\n\t\t \t\t \n\t\t \t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t linkedHashMap.put((String)queueLinkedList.getFirst(),childParentHM.get(queueLinkedList.getFirst()) );\n\t\t\t\t\t sizeLinkedList--;\n\t\t\t\t\t queueLinkedList.remove(0);\n\t\t\t\t }\n\t\t\t }\n\t\t}\n \tbufferedReader.close();\n \tSystem.out.println(\"Numder of nodes: \"+childParentHM.size());\n \tprintMap(childParentHM);\n \tSystem.out.println(\"------------\");\n \t//printMap(linkedHashMap);\n \t//childParentHM.clear();\n \tparentChild.clear();\n \tcalConsistentDAG(linkedHashMap,root);\n \tint totalDAGcount=totalDAG.size()+1;\n \tSystem.out.println(\"TotalSize: \"+totalDAGcount);\n /*\tIterator toRecieve = hsPublic.iterator();\n \twhile(toRecieve.hasNext())\n \t{\n \t\tSystem.out.println(toRecieve.next());\n \t}*/\n \t\n\t }\n\t \tcatch(FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + \"\" + \"'\"); \n \t}\n catch(IOException ex) {\n System.out.println(\"Error reading file '\"+ \"\" + \"'\"); \n }\n catch(Exception ex) {\n System.out.println(\"Error \" + ex.getMessage() + \"'\");\n ex.printStackTrace();\n \n }\n\t}", "public void makeTree(String xmlFileName) throws Exception {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\tDocument doc = db.parse(new FileInputStream(xmlFileName));;\n\t\tElement xmlRoot = doc.getDocumentElement();\n\n\t\troot = new Node();\n\t\twalk(xmlRoot, root);\n\t}", "public void readNetworkFromFile() {\r\n\t\tFileReader fr = null;\r\n\t\t// open file with name given by filename\r\n\t\ttry {\r\n\t\t\ttry {\r\n\t\t\t\tfr = new FileReader (filename);\r\n\t\t\t\tScanner in = new Scanner (fr);\r\n\r\n\t\t\t\t// get number of vertices\r\n\t\t\t\tString line = in.nextLine();\r\n\t\t\t\tint numVertices = Integer.parseInt(line);\r\n\r\n\t\t\t\t// create new network with desired number of vertices\r\n\t\t\t\tnet = new Network (numVertices);\r\n\r\n\t\t\t\t// now add the edges\r\n\t\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\t\tline = in.nextLine();\r\n\t\t\t\t\tString [] tokens = line.split(\"[( )]+\");\r\n\t\t\t\t\t// this line corresponds to add vertices adjacent to vertex u\r\n\t\t\t\t\tint u = Integer.parseInt(tokens[0]);\r\n\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\tVertex uu = net.getVertexByIndex(u);\r\n\t\t\t\t\tint i=1;\r\n\t\t\t\t\twhile (i<tokens.length) {\r\n\t\t\t\t\t\t// get label of vertex v adjacent to u\r\n\t\t\t\t\t\tint v = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// get corresponding Vertex object\r\n\t\t\t\t\t\tVertex vv = net.getVertexByIndex(v);\r\n\t\t\t\t\t\t// get capacity c of (uu,vv)\r\n\t\t\t\t\t\tint c = Integer.parseInt(tokens[i++]);\r\n\t\t\t\t\t\t// add edge (uu,vv) with capacity c to network \r\n\t\t\t\t\t\tnet.addEdge(uu, vv, c);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinally { \r\n\t\t\t\tif (fr!=null) fr.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.err.println(\"IO error:\");\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n File file = new File(args[0]);\r\n //FileOutputStream f = new FileOutputStream(\"prat_dfs_data2.txt\");\r\n //System.setOut(new PrintStream(f));\r\n BufferedReader reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n line = reader.readLine();\r\n int nodecount = 0;\r\n HashMap <String , Integer> nodeMap = new HashMap <String , Integer>(); \r\n while ((line = reader.readLine()) != null ) {\r\n String data[] = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n if (!nodeMap.containsKey(data[0].replaceAll(\"^\\\"|\\\"$\", \"\"))){\r\n nodeMap.put(data[0].replaceAll(\"^\\\"|\\\"$\", \"\"), nodecount);\r\n nodecount++;\r\n }\r\n }\r\n reader.close();\r\n Vertex adjList[] = new Vertex[nodecount];\r\n Vertex sortVer[] = new Vertex[nodecount];\r\n for(int it = 0; it < nodecount; it++){\r\n adjList[it] = new Vertex(it);\r\n }\r\n nodeMap.forEach((k, v) -> adjList[v].val = k);\r\n File file2 = new File(args[1]);\r\n BufferedReader reader2 = new BufferedReader(new FileReader(file2));\r\n line = reader2.readLine();\r\n while ((line = reader2.readLine()) !=null) {\r\n String data[] = line.split(\",(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n String source = data[0].replaceAll(\"^\\\"|\\\"$\", \"\");\r\n String target = data[1].replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\r\n int weight = Integer.parseInt(data[2]);\r\n Vertex current = adjList[nodeMap.get(source)];\r\n Vertex newbie = new Vertex(nodeMap.get(target));\r\n current.countN++;\r\n current.co_occur += weight;\r\n if (adjList[nodeMap.get(source)].next == null){\r\n current.next = newbie;\r\n newbie.prev = current;\r\n }\r\n else{\r\n current.next.prev = newbie;\r\n newbie.next = current.next;\r\n current.next = newbie;\r\n newbie.prev = current;\r\n }\r\n Vertex current1 = adjList[nodeMap.get(target)];\r\n Vertex newbie1 = new Vertex(nodeMap.get(source));\r\n current1.co_occur += weight;\r\n current1.countN++;\r\n if (current1.next == null){\r\n current1.next = newbie1;\r\n newbie1.prev = current1;\r\n }\r\n else{\r\n current1.next.prev = newbie1;\r\n newbie1.next = current1.next;\r\n current1.next = newbie1;\r\n newbie1.prev = current1;\r\n }\r\n }\r\n reader2.close();\r\n \r\n for(int it = 0; it < nodecount; it++){\r\n sortVer[it] = new Vertex(adjList[it].id);\r\n sortVer[it].val = adjList[it].val;\r\n sortVer[it].co_occur = adjList[it].co_occur;\r\n }\r\n if (args[2].equals(\"average\")){\r\n double countdeg = 0;\r\n for(int it = 0; it<nodecount; it++){\r\n countdeg+= (double) adjList[it].countN;\r\n }\r\n countdeg = countdeg / (double) (nodecount);\r\n System.out.printf(\"%.2f\", countdeg);\r\n System.out.println();\r\n //long toc= System.nanoTime();\r\n //System.out.println((toc- startTime)/1000000000.0);\r\n }\r\n \r\n if(args[2].equals(\"rank\")){\r\n Graph.mergesort(sortVer, 0, nodecount-1);\r\n // long toc= System.nanoTime();\r\n // System.out.println((toc- startTime)/1000000000.0);\r\n System.out.print(sortVer[0].val);\r\n for(int kk=1; kk<nodecount; kk++){\r\n System.out.print(\",\" + sortVer[kk].val.toString());\r\n }\r\n System.out.println();\r\n }\r\n if(args[2].equals(\"independent_storylines_dfs\")){\r\n boolean visited[] = new boolean[nodecount];\r\n int ind = 0;\r\n ArrayList<ArrayList<Vertex>> comps = new ArrayList<ArrayList<Vertex>>();\r\n for(int it1 = 0; it1<nodecount; it1++){\r\n visited[it1] = false;\r\n }\r\n for(int it1 = 0; it1<nodecount; it1++){\r\n if (visited[it1] == false){\r\n ArrayList<Vertex> temp = new ArrayList<Vertex>();\r\n Graph.dfs(it1, visited, ind, adjList, temp);\r\n ind++;\r\n Graph.mergesort2(temp, 0, temp.size()-1);\r\n comps.add(temp);\r\n }\r\n }\r\n Graph.mergesort3(comps, 0, comps.size()-1);\r\n // long toc= System.nanoTime();\r\n // System.out.println((toc- startTime)/1000000000.0);\r\n for(int a1 = 0; a1 < ind; a1++){\r\n System.out.print(comps.get(a1).get(0).val);\r\n for(int j1 = 1; j1<comps.get(a1).size(); j1++){\r\n System.out.print(\",\" + comps.get(a1).get(j1).val);\r\n }\r\n System.out.println();\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n Scanner scan = null;\n try {\n scan = new Scanner(new File(\"src/input.txt\"));\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found.\");\n }\n\n /** Read the minimum degree of B+Tree first */\n\n int degree = scan.nextInt();\n\n BTree bTree = new BTree(degree);\n\n /** Reading the database student.csv into B+Tree Node*/\n List<Student> studentsDB = getStudents();\n\n for (Student s : studentsDB) {\n bTree.insert(s);\n }\n \n long size = (long) studentsDB.size();\n /** Start reading the operations now from input file*/\n try {\n while (scan.hasNextLine()) {\n Scanner s2 = new Scanner(scan.nextLine());\n\n while (s2.hasNext()) {\n\n String operation = s2.next();\n //System.out.println(operation);\n switch (operation) {\n case \"insert\": {\n\n long studentId = Long.parseLong(s2.next());\n String studentName = s2.next() + \" \" + s2.next();\n String major = s2.next();\n String level = s2.next();\n int age = Integer.parseInt(s2.next());\n /** TODO: Write a logic to generate recordID*/\n\n long recordID = ++size;\n\n Student s = new Student(studentId, age, studentName, major, level, recordID);\n bTree.insert(s);\n\n break;\n }\n case \"delete\": {\n long studentId = Long.parseLong(s2.next());\n boolean result = bTree.delete(studentId);\n if (result)\n System.out.println(\"Student deleted successfully.\");\n else\n System.out.println(\"Student deletion failed.\");\n\n break;\n }\n case \"search\": {\n long studentId = Long.parseLong(s2.next());\n long recordID = bTree.search(studentId);\n if (recordID != -1)\n System.out.println(\"Student exists in the database at \" + recordID);\n else\n System.out.println(\"Student does not exist.\");\n break;\n }\n case \"print\": {\n List<Long> listOfRecordID = new ArrayList<>();\n listOfRecordID = bTree.print();\n System.out.println(\"List of recordIDs in B+Tree \" + listOfRecordID.toString());\n break;\n }\n default:\n System.out.println(\"Wrong Operation\");\n break;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void create() throws Exception {\n\t\tString[] temp = new String[2];\n\t\tString thisLine;\n\t\tint indexX;\n\t\tint indexY;\n\n\t BufferedReader br = new BufferedReader(new FileReader(\"input.txt\"));\n\n\t if ((thisLine = br.readLine()) != null) {\n\t \tnumOfEmp = Integer.parseInt(thisLine);\n\t \tSystem.out.println(numOfEmp);\n\t }\n\n\t employees = new Node[numOfEmp];\n\n if ((thisLine = br.readLine()) != null) {\n\t \ttargetX = thisLine;\n\t \tSystem.out.println(targetX);\n\t }\n\n if ((thisLine = br.readLine()) != null) {\n\t \ttargetY = thisLine;\n\t \tSystem.out.println(targetY);\n\t }\n\n if ((thisLine = br.readLine()) != null) {\n\t \ttemp = thisLine.split(\" \");\n\t \tSystem.out.println(temp[0] + \" \" + temp[1]);\n\t }\n\n\t employees[0] = new Node(temp[0]);\n\t employees[1] = new Node(temp[1]);\n\t root = employees[0];\n\n\t counter = 1;\n\t employees[0].left = employees[1];\n\t employees[1].parent = employees[0];\n\n while ((thisLine = br.readLine()) != null) {\n temp = thisLine.split(\" \");\n System.out.println(temp[0] + \" \" + temp[1]);\n indexX = findEmp(temp[0]);\n indexY = findEmp(temp[1]);\n\n if (indexX == -1) {\n \tcounter++;\n indexX = counter;\n \temployees[indexX] = new Node(temp[0]);\n }\n if (indexY == -1) {\n \tcounter++;\n \tindexY = counter;\n \temployees[indexY] = new Node(temp[1]);\n }\n\n if (employees[indexX].left == null) {\n\n \temployees[indexX].left = employees[indexY];\n \temployees[indexY].parent = employees[indexX];\n }\n else if (employees[indexX].right == null) {\n\n \temployees[indexX].right = employees[indexY];\n \temployees[indexY].parent = employees[indexX];\n }\n else {\n \tthrow new EmptyStackException();\n }\n\n }\n\n\n \n\t}", "static TreeSet<Adjective> parseAdjective3(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adjective> output = new TreeSet<Adjective>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADJECTIVE_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\t\t\tAdjective currentAdjective = null;\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\n\t\t\t\tchapter = Integer.parseInt(current[0].trim());\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\ttrimAll(definitions);\n\t\t\t\t\n\t\t\t\tif(current[1].split(\", \").length == 1){\n\t\t\t\t\tcurrentAdjective = new OneTerminationAdjective(current[1].split(\", \")[0].split(\":\")[0], current[1].split(\", \")[0].split(\":\")[1], chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 2){\n\t\t\t\t\tString mascFem = current[1].split(\", \")[0];\n\t\t\t\t\tString neuter = current[1].split(\", \")[1];\n\t\t\t\t\tcurrentAdjective = new TwoTerminationAdjective(mascFem, neuter, chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 3){\n\t\t\t\t\tString masculine = current[1].split(\", \")[0];\n\t\t\t\t\tString feminine = current[1].split(\", \")[1];\n\t\t\t\t\tString neuter = current[1].split(\", \")[2];\n\t\t\t\t\tcurrentAdjective = new ThreeTerminationAdjective(masculine, feminine, neuter, chapter, definitions);\n\t\t\t\t}\n\n\t\t\t} catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\t//Adjective currentAdjective = new Adjective(masculine, feminine, neuter, chapter, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdjective);\n\t\t\toutput.add(currentAdjective);\n\t\t}\n\n\t\treturn output;\n\t}", "public Tree(){\n root = null;\n }", "protected PhraseTree() {}", "public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }", "@Test\n public void testPrint() throws Exception {\n Writer writer = new Writer();\n File file = new File(\"/home/spec/HomeWork/semestr2/homework5/hw5_task1/src/arithmeticTree/input.txt\");\n writer.writeTextToFile(\"(* (+ (* (+ 10 15) 2) 50) (- (+ 5 5) (/ 8 4)))\");\n ArithmeticTree tree = new ArithmeticTree(file);\n tree.print();\n System.out.println();\n writer.writeTextToFile(\"(* (+ 1 1) 2)\");\n tree = new ArithmeticTree(file);\n tree.print();\n System.out.println();\n writer.writeTextToFile(\"(+ (/ 100 20) (/ 100500 (/ 400 4))\");\n tree = new ArithmeticTree(file);\n tree.print();\n System.out.println();\n }", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }", "public static ArrayList<A0_RawText> loadConstraintsFromFile(File f) {\n\t\tArrayList<A0_RawText> res = new ArrayList<>();\n\t\tif (f == null) {\n\t\t\tA0_RawText.LOGGER.warning(\"IllegalArgument : \" + f + \". No A0 constraint loaded.\");\n\t\t\treturn res;\n\t\t}\n\t\n\t\tif (f.isDirectory()) {\n\t\t\tA0_RawText.LOGGER.finer(\"File '\" + f.getAbsolutePath() + \"' is a directory. \");\n\t\t\tfor (File ff : f.listFiles(new FileFilter() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean accept(File pathname) {\n\t\t\t\t\treturn pathname != null && pathname.exists() && (pathname.getName().endsWith(\"ocl\") || pathname.getName().endsWith(\"OCL\"));\n\t\t\t\t}\n\t\t\t})) {\n\t\t\t\tres.addAll(loadConstraintsFromFile(ff));\n\t\t\t}\n\t\t\treturn res;\n\t\t} else if (f.getName().endsWith(\"ocl\") || f.getName().endsWith(\"OCL\")) {\n\t\t\t// ELSE f is not a directory -> process ocl file.\n\t\t\tString text = \"\", s;\n\t\t\tArrayList<String> cleanText = new ArrayList<>();\n\t\t\ttry {\n\t\t\t\tBufferedReader br3 = new BufferedReader(new FileReader(f));\n\t\t\t\twhile ((s = br3.readLine()) != null) {\n\t\t\t\t\ts = s.trim();\n\t\t\t\t\tif (!s.isEmpty() && !s.startsWith(\"import\") && !s.startsWith(\"package\") && !s.startsWith(\"endpackage\") && !s.startsWith(\"--\")) {\n\t\t\t\t\t\ttext += s + \"\\n\";\n\t\t\t\t\t\tcleanText.add(s.trim() + \" \");\n\t\t\t\t\t}\n\t\t\t\t\tif (A0_RawText.LOGGER.isLoggable(Level.FINEST) && s.startsWith(\"--\"))\n\t\t\t\t\t\tA0_RawText.LOGGER.finest(\"Comment line '\" + s + \"' \");\n\t\t\t\t}\n\t\t\t\tbr3.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tA0_RawText.LOGGER.severe(\"Error during OCL file reading : \" + e1.getMessage());\n\t\t\t\tif (A0_RawText.LOGGER.isLoggable(Level.CONFIG))\n\t\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttext = text.trim();\n\t\t\t\n\t\t\tString[] contexts = text.split(\"context\");\n\t\t\tfor (int i = 1; i < contexts.length; i++) {// First \"contexts[0]\" always empty.\n\t\t\t\tString[] constraints = contexts[i].trim().split(\"inv\");\n\t\t\t\tConcept context = Metamodel.getConcept(constraints[0].trim());\n\t\t\t\tString cstName = null;\n\t\t\t\ttry {\n\t\t\t\t\tcstName = constraints[1].substring(0, constraints[1].indexOf(\":\")).trim()+\"_\";\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t//CST HAS NO NAME\n\t\t\t\t}\n\t\t\t\tif (context == null) {\n\t\t\t\t\tA0_RawText.LOGGER.severe(\"Constraint unclear ! '\" + constraints[0].trim() + \"' should be a valid concept.\");\n\t\t\t\t}\n\t\t\t\tfor (int j = 1; j < constraints.length; j++) {\n\t\t\t\t\tconstraints[j] = constraints[j].trim();\n\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString constraintName = context.getName() + \"_\" + constraints[j].substring(0, constraints[j].indexOf(\":\")).trim();\n\t\t\t\t\t\tString constraint = constraints[j].substring(constraints[j].indexOf(\":\") + 1).trim();\n\t\t\t\t\t\tif(cstName != null)\n\t\t\t\t\t\t\tconstraintName = cstName;\n\t\t\t\t\t\tA0_RawText a = new A0_RawText(constraintName, context, constraint, f);\n\t\t\t\t\t\tA0_RawText.LOGGER.finer(\"Constraint added : \" + a);\n\t\t\t\t\t\tres.add(a);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tA0_RawText.LOGGER.severe(\"Parsing fail : \" + e.getMessage() + \"\\n Context : \" + context.getName() + \"\\n Constraint : '\" + constraints[j]\n\t\t\t\t\t\t\t\t+ \"' \\n -> Constraint ignored ! <-\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tA0_RawText.LOGGER.config(res.size() + \" constraints added from '\" + f.getAbsolutePath() + \"'\");\n\t\t}\n\t\treturn res;\n\t\n\t}", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "private void readFile(){\n\t\tQuestionlistModel = new DefaultListModel();\n\t\tJFileChooser fc=new JFileChooser();\n\t\tfc.setDialogTitle(\"Choose file\");\n\t\t\n\t\tint returnVal=fc.showOpenDialog(new JFrame());\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File file = fc.getSelectedFile();\t\t\n\t\t\ttry {\n\t\t\n \tBufferedReader br = new BufferedReader(new FileReader(file));\n String strLine;\n //Read File Line By Line\n while ((strLine = br.readLine()) != null) {\n \t//Skipping blank lines\n \tif(strLine.length()>0){\n \t\t//Skipping buffered lines\n\t \tif(strLine.charAt(0) != '#'){\n\t if(strLine.equals(\"CTS\")){\n\t \tint i = 0;\n\t \tint j = (int) this.countLines(\"CTS\", \"CTE\",file);\n\t \tConditionTree = new String[j][6];\n\t \t//filling conditions tree\n\t \twhile(!(strLine = br.readLine()).equals(\"CTE\")){\n\t \t\t\n\t \t\ttry{\n\t\t \t\tString Cond[] = strLine.split(\",\");\n\t\t \t\tConditionTree[i][0] = Cond[0].trim(); \n\t\t \t\tConditionTree[i][1] = Cond[1].trim(); \n\t\t \t\tConditionTree[i][2] = Cond[2].trim(); \n\t\t \t\tConditionTree[i][3] = Cond[3].trim(); \n\t\t \t\tConditionTree[i][4] = Cond[4].trim(); \n\t\t \t\tConditionTree[i][5] = Cond[5].trim(); \n\n\t\t \t\ti++;\n\t \t\t}catch(NullPointerException ex){\n\t \t \tSystem.out.println(\"Error at line: \"+ i);//donothing\n\t \t } \n\t \t}\n\t }else if(strLine.equals(\"QTS\")){\n\t \tint i = 0;\n\t \tint j = (int) this.countLines(\"QTS\", \"QTE\",file);\n\t \tQuestionsTree = new String[j][2];\n\t \t//filling Questions tree \n\t \twhile(!(strLine = br.readLine()).equals(\"QTE\")){\n\t \t\t\n\t \t\ttry{\n\t\t \t\tString Qes[] = strLine.split(\",\");\n\t\t \t\tQuestionsTree[i][0] = Qes[0].trim(); \n\t\t \t\tQuestionsTree[i][1] = Qes[1].trim(); \n\n\t\t \t\ti++;\n\t \t\t}catch(NullPointerException ex){\n\t \t \t//donothing\n\t \t } \n\t \t}\n\t \t\n\t \t\n\t }\n\t \n\t \t}\n \t}\n }\n\t\tQuestionList.setModel(QuestionlistModel);\n }catch(java.lang.StringIndexOutOfBoundsException ex){\n \tSystem.out.println(\"String index out of bond.\");\n }\n\tcatch (Exception e) {\n\t\te.printStackTrace();\n }\n\t}\n\t\n}", "private void parseTree(BufferedReader in, VssProject vssProject) {\r\n try {\r\n String line;\r\n boolean start = false;\r\n while ((line = in.readLine()) != null) {\r\n if (!start) {\r\n if (line.startsWith(\"$\") && line.endsWith(\":\")) {\r\n start = true;\r\n continue;\r\n }\r\n } else {\r\n if (line.length() == 0)\r\n break;\r\n if (line.startsWith(\"$\")) {\r\n \t\r\n String projectName = line.substring(1);\r\n if ( config.getProjectsToIgnore().contains( projectName ) )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t// Ignore list!\r\n \t\t\t\t\t\tLOG.warn( \"Ignore project \" + projectName + \" found in : \" + vssProject.getVssPath() );\r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t}\r\n \r\n VssProject newProject = new VssProject();\r\n newProject.setName(projectName);\r\n newProject.setParent(vssProject);\r\n vssProject.addSubproject(newProject);\r\n \r\n } else \r\n {\r\n if (line.startsWith(\"No items found under $\")) {\r\n continue;\r\n } \r\n String filename = line;\r\n String parent = vssProject.getVssPath().substring(config.getProject().length());\r\n if (parent.length() > 0) {\r\n if (parent.startsWith(\"/\"))\r\n parent = parent.substring(1);\r\n if (!parent.endsWith(\"/\"))\r\n parent += \"/\";\r\n }\r\n String path = parent + filename;\r\n VssFile newFile = new VssFile(path, filename);\r\n newFile.setParent(vssProject);\r\n vssProject.addFile(newFile);\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n throw new VssException(\"readLine\", e);\r\n }\r\n }", "public TreeNode() {\n }", "public Graph loadFile(){\r\n String path = \"\";\r\n JFileChooser choix = new JFileChooser();\r\n choix.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only xml files\", \"xml\");\r\n choix.addChoosableFileFilter(filter);\r\n if (choix.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\r\n path = choix.getSelectedFile().getAbsolutePath();\r\n }\r\n Graph g = new Graph();\r\n boolean quit = false;\r\n int max = 0;\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(path));\r\n do {\r\n String line = br.readLine();\r\n if (line.indexOf(\"<node\") != -1){\r\n String[] node_xml = line.split(\"\\\"\");\r\n Node node = new Node(Integer.parseInt(node_xml[1]),(int)Double.parseDouble(node_xml[3]),(int)Double.parseDouble(node_xml[5]),TypeNode.valueOf(node_xml[7]));\r\n max = Math.max(max, node.getId());\r\n if (node.getType() == TypeNode.INCENDIE){\r\n node.kindleFire((int)Double.parseDouble(node_xml[9]));\r\n }\r\n g.getListNodes().add(node);\r\n }\r\n if (line.indexOf(\"<edge\") != -1){\r\n String[] edge_xml = line.split(\"\\\"\");\r\n Edge edge = new Edge(findNode(g,Integer.parseInt(edge_xml[1])),findNode(g,Integer.parseInt(edge_xml[3])),TypeEdge.valueOf(edge_xml[5]));\r\n g.getListEdges().add(edge);\r\n }\r\n if (line.startsWith(\"</osm>\")){\r\n quit = true;\r\n } \r\n Node.setNb_node(max+1);\r\n } while (!quit);\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"File not found : \"+e.getMessage());\r\n } catch (IOException e) {\r\n System.out.println(\"Listening file error : \"+e.getMessage());\r\n }\r\n return g;\r\n }", "public static BST readProfiles(String filename)\n\t{\n\t\t\n\t\t// Opening file.\n\t\tFile inputFile=new File(PATH + filename);\n\t\t\n\t\t// create a Scanner to read from file\n\t\tScanner in=FileReader.createScanner(inputFile);\n\t\t\t\n\t\t// call readDataFile, which will construct a tree for us\n\t\treturn FileReader.readDataFile(in);\n\t}", "public BTreeNode(int t, long offset, RandomAccessFile file, Cache cache){\n this.t = t;\n this.file = file;\n //maximum # of values = 2t - 1\n keys = new TreeObject[2 * (this.t) - 1];\n //initialize each to null\n for (int i = 0; i < keys.length; i++){\n keys[i] = null;\n }\n //maximum # of children: 2t\n children = new long[2 * (this.t)];\n //initialize each to -1 (invalid offset)\n for (int i = 0; i < children.length; i++){\n children[i] = -1;\n }\n this.offset = offset;\n numKeys = 0;\n this.cache = cache;\n }", "public BinaryTree() {\n\t}", "public LevelParser(String file) throws SyntacticIncException \n\t{\n\t\tthis.file = file;\n\t\ttry \n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(this.file));\n\t\t\tString zeile;\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint zeilenlaenge = 0;\n\t\t\twhile ((zeile = in.readLine()) != null) \n\t\t\t{\n\t\t\t\tchar[] zeilenChars = zeile.toCharArray();\n\t\t\t\tif(x!=0 && zeilenlaenge!=zeilenChars.length) throw new SyntacticIncException(\"Syntaktisch Inkorrekt - zeilen in datei unterschiedlich lang\");\n\t\t\t\tzeilenlaenge = zeilenChars.length;\n\t\t\t\tif(level==null){\n\t\t\t\t\tlevel = new char[1][zeilenlaenge];\n\t\t\t\t\tlevel[0] = zeilenChars.clone();\n\t\t\t\t}else{\n\t\t\t\t\tchar[][] levelClone = level.clone();\n\t\t\t\t\tlevel = new char[levelClone.length+1][zeilenlaenge];\n\t\t\t\t\tSystem.arraycopy(levelClone, 0, level, 0, level.length-1);\n\t\t\t\t\tlevel[levelClone.length] = zeilenChars;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tx++;\n\t\t\t}\n\t\t\tlevelActive = new char[level.length+2][level[0].length+2];\n\t\t\t\n\t\t\tfillActiveLevels();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - Datei nicht gefunden\");\n\t\t}\n\t\tif (!syntaktischRichtig()) \n\t\t{\n\t\t\tlevel = null;\n\t\t\tlevelActive = null;\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - datei fehlerhaft\");\n\t\t} else \n\t\t{\n\t\t\tlevelGeladen = true;\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "public final void readFile(final String filePath, final boolean printTree)\r\n {\r\n setNumberOfPivotalElements(0);\r\n clearFullTree();\r\n\r\n taggedDataListArray = new TaggedDataList[stdef.MAX_NUMBER_OF_PARTS];\r\n temporaryTaggedDataList = new TaggedDataList(stdef.MAX_NUMBER_OF_PARTS);\r\n pivotalElementName = new String[stdef.MAX_NUMBER_OF_PARTS];\r\n\r\n setPrintFullTree(printTree);\r\n loadData(filePath);\r\n }", "public void showTree(IGPProgram a_prog, String a_filename,\n TreeBranchRenderer a_treeBranchRenderer,\n TreeNodeRenderer a_treeNodeRenderer)\n throws InvalidConfigurationException {\n TreeNode myTree = createTree(a_prog);\n if (myTree == null) {\n return;\n }\n TreeVisualizer tv = new TreeVisualizer();\n tv.setTreeBranchRenderer(a_treeBranchRenderer);\n tv.setTreeNodeRenderer(a_treeNodeRenderer);\n tv.setBranchStartWidth(18.0);\n tv.setArenaColor(Color.black);\n tv.setBkgndColor(Color.black);\n tv.setRenderNodes(true);\n tv.setSide(1024);\n tv.setCircleDiminishFactor(0.5);\n tv.writeImageFile(tv.renderTree(myTree), new File(a_filename));\n }", "public TentTree(int numRows, int numCols, String tent, String tree){\n\t\t// constructor that initializes attributes\n\t\tthis.numRows = numRows;\n\t\tthis.numCols = numCols;\n\t\tthis.tentSymbol = tent;\n\t\tthis.treeSymbol = tree;\n\t\tthis.grid = new HashMap<Position,String>();\n\t}", "public NamedTree()\r\n {\r\n head = null;\r\n }", "public void constructTree(){\n PriorityQueue<HCNode> queue=new PriorityQueue<HCNode>();\n \n for(int i=0;i<MAXSIZE;i++){\n if(NOZERO){\n if(occTable[i]!=0){\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }else{\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }\n //constructing the Huffman Tree\n HCNode n1=null,n2=null;\n while(((n2=queue.poll())!=null) && ((n1=queue.poll())!=null)){\n HCNode nnode=new HCNode(n1.str+n2.str,n1.occ+n2.occ, null);\n nnode.left=n1;nnode.right=n2;\n n1.parent=nnode;n2.parent=nnode;\n queue.add(nnode);\n }\n if(n1==null&&n2==null){\n System.out.println(\"oops\");\n }\n if(n1!=null)\n root=n1;\n else\n root=n2;\n }", "public static LinkedList<TransactionNode> readTransactionFile(String fileName)\n\t\t\tthrows IOException, InvalidFileFormatException, FileNotFoundException {\n\t\tFile csvFile = new File(fileName);\n\n\t\t// read the file only if it exists\n\t\tif (csvFile.isFile()) {\n\t\t\t// the row in the csv file\n\t\t\tString row = null;\n\t\t\tint indexRow = 0;\n\t\t\t// create BufferedReader and read data from csv\n\t\t\tBufferedReader csvReader = new BufferedReader(new FileReader(fileName));\n\t\t\ttry {\n\t\t\t\t// read the rest of the lines\n\t\t\t\tLinkedList<TransactionNode> newNodes = new LinkedList<TransactionNode>();\n\t\t\t\twhile ((row = csvReader.readLine()) != null) {\n\t\t\t\t\tString[] data = row.split(\",\");\n\n\t\t\t\t\t// check the header at the first line (header)\n\t\t\t\t\tif (indexRow == 0) {\n\t\t\t\t\t\t// check if the column names\n\t\t\t\t\t\tif (!(data[0].equals(\"target\") && data[1].equals(\"date\")\n\t\t\t\t\t\t\t\t&& data[2].equals(\"unitPrice\") && data[3].equals(\"investorName\")\n\t\t\t\t\t\t\t\t&& data[4].equals(\"numUnits\")\n\t\t\t\t\t\t\t\t&& data[5].equals(\"transactionType\"))) {\n\n\t\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\t\"The column names of the file is invalid.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindexRow++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// for the rest of the rows\n\t\t\t\t\t// - create the transaction node for each row\n\t\t\t\t\tString target = data[0];\n\t\t\t\t\tlong date = Long.valueOf(data[1]);\n\t\t\t\t\tdouble unitPrice = Double.valueOf(data[2]);\n\t\t\t\t\tString investorName = data[3];\n\t\t\t\t\tdouble numUnits = Double.valueOf(data[4]);\n\t\t\t\t\tString transactionType = data[5];\n\t\t\t\t\tif (!(transactionType.equals(\"sell\") || transactionType.equals(\"buy\"))) {\n\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\"Unrecognized transaction type\" + transactionType);\n\t\t\t\t\t}\n\t\t\t\t\t// add the row data to the list\n\t\t\t\t\tTransactionNode node = new TransactionNode(date, investorName, transactionType,\n\t\t\t\t\t\t\ttarget, unitPrice, numUnits);\n\t\t\t\t\tnewNodes.add(node);\n\t\t\t\t\tindexRow++;\n\t\t\t\t}\n\t\t\t\t// return the new nodes\n\t\t\t\treturn newNodes;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(\"IO Exception occured while reading the file at line \"\n\t\t\t\t\t\t+ String.valueOf(indexRow) + \" in: \" + fileName);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\"The format of the file at line \" + String.valueOf(indexRow)\n\t\t\t\t\t\t\t\t+ \" is invalid,i.e.,\" + row + \" in: \" + fileName);\n\t\t\t} finally {\n\t\t\t\t// close the reader\n\t\t\t\tcsvReader.close();\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new FileNotFoundException(\n\t\t\t\t\t\"The file you attempted to read does not exist or is not a valid file: \"\n\t\t\t\t\t\t\t+ fileName);\n\t\t}\n\t}", "public Tree() // constructor\n\t{ root = null; }", "public SegmentTree() {}", "public TreeNode deserialize(String data) {\n return build(new Scanner(data));\n }", "public static Graph<Integer,String> fromFile (String fileName) {\n\t\t\r\n\t\tGraph<Integer,String> g = new SparseGraph<Integer,String>();\r\n\t\tFileReader file = null;\r\n\t\ttry {\r\n\t\t\tfile = new FileReader(fileName);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.print(\"File not found: \" + fileName +\"\\n\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tScanner scan = new Scanner(file);\r\n\r\n\t\twhile (scan.hasNext()){\r\n\t\t\tInteger a = scan.nextInt();\r\n\t\t\tInteger b = scan.nextInt();\r\n\t\t\tg.addEdge(\"e:\"+a+\"-\"+b, a, b);\r\n\t\t}\r\n\t\t\r\n\t\treturn g;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void build(Node<VirtualDataSet> node) {\n\n\t\tif (node == null)\n\t\t\tthrow new NullPointerException(\"Cannot built a decision (sub)tree for a null node.\");\n\n\t\tVirtualDataSet set = node.data;\n\n\t\tif (set == null || set.getNumberOfDatapoints() == 0 || set.getNumberOfAttributes() == 0)\n\t\t\tthrow new IllegalStateException(\"The dataset is in an invalid state!\");\n\n\t\tif (set.getNumberOfAttributes() == 1) // We have only the class attribute left\n\t\t\treturn;\n\n\t\tif (set.getAttribute(set.getNumberOfAttributes() - 1).getValues().length == 1) // No uncertainty left\n\t\t\treturn;\n\n\t\tboolean needsSplit = false;\n\n\t\tfor (int i = 0; i < set.getNumberOfAttributes() - 1; i++) {\n\t\t\tif (set.getAttribute(i).getValues().length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tneedsSplit = true;\n\t\t}\n\n\t\tif (!needsSplit) // split would be futile for all remaining attributes\n\t\t\treturn;\n\n\t\tGainInfoItem[] gains = InformationGainCalculator.calculateAndSortInformationGains(set);\n\t\t\n\t\tif (gains[0].getGainValue() == 0.0) // No split when there is no gain\n\t\t\treturn; \n\n\t\tAttribute bestAttribute = set.getAttribute(gains[0].getAttributeName());\n\n\t\tif (bestAttribute.getType() == AttributeType.NOMINAL) {\n\t\t\tVirtualDataSet[] partitions = set\n\t\t\t\t\t.partitionByNominallAttribute(set.getAttributeIndex(bestAttribute.getName()));\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\n\t\t} else {\n\t\t\tint attributeIndex = node.data.getAttributeIndex(bestAttribute.getName());\n\n\t\t\tString[] values = bestAttribute.getValues();\n\n\t\t\tint valueIndex = -1;\n\n\t\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t\tif (values[i].equals(gains[0].getSplitAt())) {\n\t\t\t\t\tvalueIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (valueIndex == -1) {\n\t\t\t\tSystem.out.println(\"Houston, we have a problem!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tVirtualDataSet[] partitions = set.partitionByNumericAttribute(attributeIndex, valueIndex);\n\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testPhylogeneticTreeParserNoNamesNoDistance() {\n // create the actual tree\n String tree = \"(,,(,));\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "public TreeItem(String file, String encoding) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file, encoding);\n\t}", "public Graph load(String filename) throws IOException\n {\n return load(filename, new SparseGraph(), null);\n }", "private Node makeTree(Node currentNode, DataNode dataNode,\r\n\t\t\tint featureSubsetSize, int height) {\n\r\n\t\tif (dataNode.labels.size() < this.traineeDataSize / 25 || height > 7) {\r\n\t\t\treturn new Node(majority(dataNode));\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tEntropyCalculation e1 = new EntropyCalculation();\r\n\r\n\t\t\tNode n = e1.maxGainedElement(dataNode.features, dataNode.labels, featureSubsetSize); //new\r\n\r\n\r\n\t\t\tif(e1.zeroEntropy){\r\n\r\n\t\t\t\tcurrentNode = new Node(dataNode.labels.get(0));\r\n\r\n\t\t\t\t/*currentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.labels.get(0);*/\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t\telse{\r\n\r\n\t\t\t\tcurrentNode = new Node();\r\n\r\n\t\t\t\tcurrentNode.featureIndexColumn = n.featureIndexColumn;\r\n\t\t\t\tcurrentNode.featureIndexRow = n.featureIndexRow;\r\n\r\n\t\t\t\tcurrentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.features.get(currentNode.featureIndexRow).get(currentNode.featureIndexColumn);\r\n\r\n\t\t\t\tcurrentNode.leftChild = new Node();\r\n\t\t\t\tcurrentNode.rightChild = new Node();\r\n\r\n\t\t\t\tDataNode leftNode = new DataNode();\r\n\t\t\t\tDataNode rightNode = new DataNode();\r\n\r\n\t\t\t\tfor (int i = 0; i < dataNode.features.size(); i++) {\r\n\r\n\t\t\t\t\tif(currentNode.nodeValue >= dataNode.features.get(i).get(currentNode.featureIndexColumn)) {\r\n\r\n\t\t\t\t\t\tleftNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\tleftNode.labels.add(dataNode.labels.get(i));\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\trightNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\trightNode.labels.add(dataNode.labels.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif((leftNode.labels.isEmpty() || rightNode.labels.isEmpty()) && height == 0){\r\n\t\t\t\t\tSystem.out.println(\"Ghapla\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentNode.leftChild = makeTree(currentNode.leftChild, leftNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\tcurrentNode.rightChild = makeTree(currentNode.rightChild, rightNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public TreeNode deserialize1(String tree) {\r\n \r\n // **** sanity checks ****\r\n if (tree.isEmpty())\r\n return null;\r\n\r\n // **** split the tree string ****\r\n String[] strs = tree.split(\" \");\r\n\r\n // **** deserialise BST ****\r\n return deserialize1(strs, 0, strs.length - 1);\r\n }" ]
[ "0.6960202", "0.6289078", "0.60961264", "0.60878605", "0.6042582", "0.60217834", "0.60149056", "0.5883435", "0.57742095", "0.56790155", "0.56728435", "0.5654072", "0.5648345", "0.5627614", "0.5598117", "0.55851054", "0.55790704", "0.55699915", "0.55317885", "0.5521279", "0.5515156", "0.5497153", "0.5488135", "0.5476269", "0.547357", "0.5458058", "0.5439647", "0.5426677", "0.538067", "0.5379984", "0.5365395", "0.5364759", "0.5354786", "0.5337012", "0.5332892", "0.5281428", "0.525524", "0.52470857", "0.5238558", "0.5237599", "0.52297926", "0.52279204", "0.5226603", "0.52207524", "0.5206446", "0.52045155", "0.52026176", "0.5196098", "0.51777774", "0.51776534", "0.5177414", "0.5176563", "0.5165277", "0.51610684", "0.51417893", "0.51277024", "0.5127623", "0.5116191", "0.5103436", "0.51029444", "0.51023734", "0.5091481", "0.5082355", "0.50701135", "0.5061312", "0.505902", "0.50556475", "0.50553495", "0.5054105", "0.5046433", "0.5040637", "0.50365925", "0.5035015", "0.50347024", "0.50124407", "0.50108564", "0.49981216", "0.49970776", "0.49877757", "0.49839655", "0.4978938", "0.49766016", "0.49752718", "0.49705985", "0.49703512", "0.4969066", "0.4962396", "0.49486423", "0.4944876", "0.49366292", "0.4933513", "0.4931103", "0.49271423", "0.49267247", "0.49211955", "0.4919776", "0.49168923", "0.49167562", "0.49162298", "0.49149793", "0.49143475" ]
0.0
-1
Constrution of TREE from message file
public String buildTreeFromMessage(){ parseMsg(); if(printOCCTable)printTable(); constructTree(); reconstructTree(); if(printHuffTree) printTree(); return printBFSTree(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static RootedTree parseTree(String line,\n\t\t\tMap<String, String> translation)\n\t{\t\t\n\t\tString newickStr = StringUtils.selectFirstRegex(newickPattern, line);\t\t\t\t\n\t\tnewickStr=newickStr.substring(4); \t\n\t\t// hack (cannot translate in tree rep because of limitation of newick parser\t\t\n\t\tfor (String code : translation.keySet())\n\t\t{\n\t\t\tString codeCtx = StringUtils.selectFirstRegex(\"([,)(])\" + code + \"[:]\", newickStr);\t\t\t\n\t\t\tnewickStr = newickStr.replace(codeCtx + code + \":\", codeCtx + translation.get(code) + \":\");\n\t\t}\n\n\t\t// for (int i = translation.size(); i >= 1; i--)\n\t\t// newickStr = newickStr.replace(\"\" + i + \":\" , translation.get(\"\" + i) + \":\"); \n\n\t\tnewickStr = newickStr + \";\";\t\t\n\t\treturn RootedTree.Util.fromNewickString(newickStr);\n\t}", "public void createFullTree(String path) {\n String str = null;\n BufferedReader br = ExternalFunctions.getBufferedFile(path);\n\n try {\n while((str = br.readLine()) != null) { // Insert all the password to the tree by the algo. here the dog buried\n //str = str.toLowerCase();\n \tinsert(str);\n }\n br.close();\n }\n catch (IOException e) {\n System.out.println(\"File text is wrong\");\n }\n }", "public void readCliqueTreeFile(String cliqueTreeFilename) \n\t\t\tthrows IOException, NumberFormatException {\n\t\tif(DEBUG) System.out.println(\"reading clique tree from:\"+cliqueTreeFilename);\n\t\tBufferedReader br = new BufferedReader(new FileReader(cliqueTreeFilename));\n\t\tString line;\n\t\t// on the first line is the number of following lines that describe vertices\n\t\tint numCliques = -1;\n\t\tif((line = br.readLine()) != null){\n\t\t\tnumCliques = Integer.valueOf(line);\n\t\t}else{\n\t\t\tbr.close();\n\t\t\tthrow new IOException();\n\t\t}\n\t\t//num Cliques\n\t\tif(numCliques<0) {\n\t\t\tbr.close();\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\t//cliques\n\t\tfor(int i = 0;i<numCliques;i++){\n\t\t\tif((line = br.readLine()) != null){\n\t\t\t\tString[] containedVars = line.split(\",\");\n//\t\t\t\tif(DEBUG) System.out.println(\"Adding VertexMax: \" + Factor.variableNamesToIndicies(containedVars) );\n\t\t\t\tVertex v = new Vertex(containedVars);\n\t\t\t\t_tree.addVertex(v);\n\t\t\t}else{\n\t\t\t\tbr.close();\n\t\t\t\tthrow new IOException(\"inconsistent network file.\");\n\t\t\t}\n\t\t}\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\t// edges\n\t\t\tString[] tokenized = line.split(\" \");\n\t\t\t\n\t\t\tString[] left_variables = tokenized[0].split(\",\");\n\t\t\tString[] right_variables = tokenized[2].split(\",\");\n\t\t\t\n\t\t\tArrayList<Integer> left = Factor.variableNamesToIndicies(left_variables);\n\t\t\tArrayList<Integer> right = Factor.variableNamesToIndicies(right_variables);\n\t\t\t\n\t\t\tCollections.sort(left);\n\t\t\tCollections.sort(right);\n\t\t\t\n\t\t\t_tree.addEdge(new Edge(\n\t\t\t\t\t_tree._vertices.get(left.toString()), \n\t\t\t\t\t_tree._vertices.get(right.toString())));\n\t\t}\n//\t\tif(DEBUG) System.out.println(\"\\nclique tree structure:\\n\"+_tree.toString());\n\t\tbr.close();\n\t}", "private static DecisionTree loadTree(File file) throws FileNotFoundException {\r\n\t\tScanner scan = new Scanner(file); // Read from file\r\n\t\t// First line of file is question at root node\r\n\t\tDecisionTree dt = new DecisionTree(scan.nextLine());\r\n\t\tBinaryNode<String> root = dt.getRootNode();\r\n\t\tfillTree(Branch.LEFT, scan, root); // Fill left subtree using Scanner\r\n\t\tfillTree(Branch.RIGHT, scan, root); // Fill right subtree using Scanner\r\n\t\tscan.close(); // Close the file loaded from\r\n\t\treturn dt;\r\n\t}", "public void visit(TreeBuilder tree){\n\t\tString line;\n\t\twhile ((line = file.readLine(true)) != null)\n\t {\t\t \n \t\tString[] words = line.split(\" \");\n \t\tfor(String word : words){\n \t\t\tif(!word.equals(\"\")){\n \t\t\t\ttree.insertNode(word);\n \t\t\t}\n \t\t}\n \t}\n\t}", "public static void main(String[] args){\n //a\n /*HCTree hct=new HCTree(\"../HCT/huff_test_mssg.txt\",\"../HCT/test_key.txt\");\n hct.buildTreeFromMessage();*/\n //b\n HCTree hct=new HCTree(\"../HCT/huff_test_mssg.txt\",\"../HCT/test_key.txt\",\"../HCT/huff_test_tree_clean.txt\");\n hct.verify();\n }", "@SuppressFBWarnings({\"NP_NULL_PARAM_DEREF\", \"DM_DEFAULT_ENCODING\", \"NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE\"})\n public Tree getTreeFromFile(String path) {\n FileInputStream fileInputStream = null;\n try {\n fileInputStream = new FileInputStream(path);\n } catch (FileNotFoundException e) {\n \n }\n\n BufferedReader r = new BufferedReader(new InputStreamReader(fileInputStream));\n TreeParser tp = new TreeParser(r);\n\n String f = Paths.get(path).getFileName().toString();\n return tp.tokenize(f);\n }", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "private Program02(String fileName) {\n BinaryTree bt = new BinaryTree();\n Stack expression = new Stack();\n\n try {\n Scanner scanner = new Scanner(new File(fileName));\n\n while (scanner.hasNext()) {\n String curChar = scanner.next();\n expression.push(curChar);\n }\n\n scanner.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n Node tree = createLevelOrder(expression, bt.getRoot(), 0, expression.length());\n\n // construct a binary tree to store parsed math expression\n bt.setRoot(tree);\n printInfo(bt);\n }", "private void writeTree() throws IOException {\n\t\ttry (final BufferedWriter writer = Files.newBufferedWriter(destinationFile, CHARSET)) {\n\t\t\tfinal char[] treeString = new char[512];\n\t\t\tint treeStringLength = 0;\n\t\t\tfor (final CharacterCode cur : sortedCodes) {\n\t\t\t\ttreeString[treeStringLength++] = cur.getChar();\n\t\t\t\ttreeString[treeStringLength++] = (char) cur.getCode().length();\n\t\t\t}\n\t\t\tif (treeStringLength > 0xff) { //tree length will not always be less than 255, we have to write it on two bytes\n\t\t\t\tfinal int msb = (treeStringLength & 0xff00) >> Byte.SIZE;\n\t\t\t\ttreeStringLength &= 0x00ff;\n\t\t\t\twriter.write(msb);\n\t\t\t} else {\n\t\t\t\twriter.write(0);\n\t\t\t}\n\t\t\twriter.write(treeStringLength);\n\t\t\twriter.write(treeString, 0, treeStringLength);\n\t\t}\n\t}", "protected PhraseTree() {}", "public static Tree loadTree(String inFile) {\n\t\tif (inFile == null) throw new NullPointerException(\"inFile: null\");\n\t\tTreeBuilder tb = TreeBuilder.loadTree(inFile);\n\t\treturn tb == null ? null : new Tree(tb);\n\t}", "private QuestionNode readTree(Scanner input){\n String type = input.nextLine();\n String data = input.nextLine();\n QuestionNode current = new QuestionNode(data);\n if(!type.equals(\"A:\")) {\n current.left = readTree(input);\n current.right = readTree(input);\n }\n return current;\n }", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public Node readTree() {\n boolean totuusarvo = b.readBoolean();\n if (totuusarvo == true) {\n return new Node(b.readShort(), -1, null, null);\n } else {\n return new Node(\"9000\", -1, readTree(), readTree());\n }\n }", "@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }", "public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }", "public TreeDictionary(String path) {\n\n\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\tnodes[i] = new TreeDictionary();\n\t\t}\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(path));\n\t\t\tString word = br.readLine();\n\n\t\t\twhile (word != null) {\n\n\t\t\t\tif (isValidWord(word)) {\n\t\t\t\t\tString signature = wordToSignature(word);\n\n\t\t\t\t\t// characterVal = converting the first character from the signature to an int\n\t\t\t\t\tint characterVal = Integer.parseInt(signature.substring(0, 1));\n\t\t\t\t\t// adding the corresponding characterVal to the tree\n\t\t\t\t\tnodes[characterVal - 2].addToNode(word.toLowerCase(), 1);\n\n\t\t\t\t}\n\t\t\t\tword = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not find file to open.\");\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"IOException\");\n\t\t}\n\t}", "void createTree() throws IOException {\n\n // create root\n rootTreeItem = createTreeRoot();\n\n // create tree structure recursively\n createTree(rootTreeItem);\n\n // sort tree structure by name\n rootTreeItem.getChildren()\n .sort(Comparator.comparing(new Function<TreeItem<FilePath>, String>() {\n @Override\n public String apply(TreeItem<FilePath> t) {\n return t.getValue().toString().toLowerCase();\n }\n }));\n\n }", "public TreeDictionary(String filename) {\n\t\tString entry;\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filename));\n\t\t\twhile((entry=in.readLine())!=null){\n\t\t\t\tif(MapDictionary.isValidWord(entry)){\n\t\t\t\t\tString signature = wordToSignature(entry.toLowerCase());\n\t\t\t\t\tinsert(entry, signature);\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\tin.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "@Test\n public void testAllConstructions() throws IOException, LexerException, ParseException {\n TreeNode<ASTNode> tree = getTree(\"all.txt\");\n System.out.println(tree);\n }", "public VPTree(LargeBinaryFile file, Progress progress) throws IOException {\n\t\tsuper(file);\n\t\t\n\t\tthis.optimise = true;\n\t\tthis.progress = progress;\n\t}", "public MorseCodeTree()\r\n\t{\r\n\t\tbuildTree();\r\n\t}", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }", "public static DecisionTree loadTree(String filename) throws FileNotFoundException {\r\n\r\n\t\treturn loadTree(new File(filename));\r\n\t}", "public MaxFlow(final String filename) {\r\n\t\tthis.nodes = new ArrayList<>();\r\n\t\tArrayList<String> nodeNames = new ArrayList<>();\r\n Pattern pattern = Pattern.compile(\"[^->\\\"\\\\[\\\\s]+\");\r\n Matcher matcher;\r\n\r\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(filename);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\tString currentLine = br.readLine();\r\n\t\t\tboolean finished = false;\r\n\t\t\t//create nodes and edges\r\n\r\n\t\t\twhile(!finished) {\r\n if(currentLine.matches(\".* -> .*\")) {\r\n matcher = pattern.matcher(currentLine);\r\n matcher.find();\r\n String start = matcher.group();\r\n matcher.find();\r\n String end = matcher.group();\r\n int maxFlow = Integer.parseInt(currentLine.substring(currentLine.indexOf(\"\\\"\") + 1, currentLine.indexOf(\"]\") - 1));\r\n\r\n if (!nodeNames.contains(start) && !nodeNames.contains(end)) {\r\n Node startNode = new Node(start, 0);\r\n Node endNode = new Node(end, 0);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(start);\r\n nodes.add(startNode);\r\n nodeNames.add(end);\r\n nodes.add(endNode);\r\n } else if (!nodeNames.contains(start) && nodeNames.contains(end)) {\r\n Node startNode = new Node(start, 0);\r\n Node endNode = findNode(end);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(start);\r\n nodes.add(startNode);\r\n } else if (nodeNames.contains(start) && !nodeNames.contains(end)) {\r\n Node startNode = findNode(start);\r\n Node endNode = new Node(end, 0);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n\r\n startNode.addEdge(connection);\r\n nodeNames.add(end);\r\n nodes.add(endNode);\r\n } else {\r\n Node startNode = findNode(start);\r\n Node endNode = findNode(end);\r\n Edge connection = new Edge(startNode, endNode, maxFlow, 0);\r\n startNode.addEdge(connection);\r\n }\r\n }\r\n currentLine = br.readLine();\r\n if (currentLine == null)\r\n finished = true;\r\n\r\n }\r\n this.pathfinder = new Navigation(nodes);\r\n\r\n\t\t} catch (IOException e){e.printStackTrace();}\r\n\t}", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "void doMcTree() throws NotConnectedException, NotSuspendedException, NoResponseException\n\t{\n\t\t/* wait a bit if we are not halted */\n\t\twaitTilHalted();\n\t\ttry\n\t\t{\n\t\t\tString var = nextToken(); // our variable reference\n\t\t\tString member = \"_target\"; //$NON-NLS-1$\n\t\t\tboolean printPath = false;\n\t\t\tObject result = null;\n\t\t\tString name = null;\n\n\t\t\t// did the user specify a member name\n\t\t\tif (hasMoreTokens())\n\t\t\t{\n\t\t\t\tmember = nextToken();\n\n\t\t\t\t// did they specify some other options\n\t\t\t\twhile(hasMoreTokens())\n\t\t\t\t{\n\t\t\t\t\tString option = nextToken();\n\t\t\t\t\tif (option.equalsIgnoreCase(\"fullpath\")) //$NON-NLS-1$\n\t\t\t\t\t\tprintPath = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// first parse it, then attempt to evaluate the expression\n\t\t\tValueExp expr = parseExpression(var);\n\t\t\tresult = evalExpression(expr).value;\n\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\tif (result instanceof Variable)\n\t\t\t{\n\t\t\t\tname = ((Variable)result).getName();\n\t\t\t\tresult = ((Variable)result).getValue();\n\t\t\t}\n\n\t\t\t// It worked an should now be a value that we can traverse looking for member properties\n\n\t\t\tif (result instanceof Value)\n\t\t\t{\n\t\t\t\tArrayList<Object> e = new ArrayList<Object>();\n\t\t\t\tdumpTree(new HashMap<Object, String>(), e, name, (Value)result, member);\n\n\t\t\t\t// now sort according to our criteria\n\t\t\t\ttreeResults(sb, e, member, printPath);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new NoSuchVariableException(result);\n\n\t\t\tout( sb.toString() );\n\t\t}\n\t\tcatch(NoSuchVariableException nsv)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"variable\", nsv.getMessage()); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"variableUnknown\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotEvaluate\")); //$NON-NLS-1$\n\t\t}\n\t}", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "public void dumpTree(String msg) {\n\t\tSystem.out.println(msg);\n\t\tSystem.out.println(((org.eclipse.etrice.runtime.java.messaging.RTObject)getRoot()).toStringRecursive());\n\t}", "public void constructTree(){\n PriorityQueue<HCNode> queue=new PriorityQueue<HCNode>();\n \n for(int i=0;i<MAXSIZE;i++){\n if(NOZERO){\n if(occTable[i]!=0){\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }else{\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }\n //constructing the Huffman Tree\n HCNode n1=null,n2=null;\n while(((n2=queue.poll())!=null) && ((n1=queue.poll())!=null)){\n HCNode nnode=new HCNode(n1.str+n2.str,n1.occ+n2.occ, null);\n nnode.left=n1;nnode.right=n2;\n n1.parent=nnode;n2.parent=nnode;\n queue.add(nnode);\n }\n if(n1==null&&n2==null){\n System.out.println(\"oops\");\n }\n if(n1!=null)\n root=n1;\n else\n root=n2;\n }", "private void fileToPoSTags(String filePath,int version){\n Log.log(\"Reading TreeBank file <\" + filePath +\">\");\n\n FileReader fr = null;\n BufferedReader br = null;\n\n try{\n fr = new FileReader(filePath);\n br = new BufferedReader(fr);\n\n String currentLine;\n String[] columns;\n\n Tag tag1 = null;\n Tag tag2;\n String word;\n\n Integer numRow;\n while((currentLine = br.readLine()) != null){\n columns = currentLine.split(\"\\t\");\n numRow = getIntegerString(columns[0]);\n if(numRow != null && numRow >= 1){\n if(numRow == 1) {\n tag1 = Tag.valueOf(\"START\");\n saveTag(tag1);\n }\n try{\n tag2 = Tag.valueOf(columns[3]);\n saveTag(tag2);\n word = columns[1];\n switch (version){\n case 1:\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n break;\n case 2:\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n else if(Character.isUpperCase(word.charAt(0)))\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 3:\n\n if(tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n else{\n if(Character.isUpperCase(word.charAt(0))){\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n }else{\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(\n word.substring(0,1).toUpperCase()\n +word.substring(1),tag2));\n }\n\n }\n\n break;\n case 4:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word,tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n case 5:\n\n if(!tag2.equals(Tag.PROPN))\n savePoSTag(new PoSTag(word.toLowerCase(),tag2));\n savePoSTag(new PoSTag(word,tag2));\n break;\n\n }\n saveBigram(new BiGram(tag1,tag2));\n tag1 = tag2;\n }catch (IllegalArgumentException e){\n e.printStackTrace();\n }\n }\n }\n\n }catch (IOException e){\n e.printStackTrace();\n }finally {\n UtilitiesIO.closeFile(fr,br);\n }\n }", "public static ArrayList<Tree> readTreesFromFile(File file) {\n \n ArrayList<Tree> trees = new ArrayList<Tree>();\n \n BufferedReader br = null;\n \n try {\n \n br = new BufferedReader(new FileReader(file));\n \n String line;\n \n while ((line = br.readLine()) != null) {\n \n if (!line.contains(\"(\")) {\n continue;\n }\n \n Tree auxTree = new Tree(line);\n trees.add(auxTree);\n }\n \n br.close();\n \n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n return trees;\n }", "public void drawTree(GUIMain guiMn, MenuDoAction menu, DoNewInsertOpenModel doNewInsertOpenModel) {\n DefaultMutableTreeNode tissueBranch;\n HumanBody body = null;\n\n if (guiMn.simMain.solver == null) {\n System.err.println(\"The model files are not correct\\n\");\n }\n HostModel host = guiMn.simMain.solver.getHostModelToSolve().getHostModel();\n body = host.getPlacentalia();\n Map<Tissue, DefaultMutableTreeNode> ancestor = new HashMap<>();\n if (body.getNumOrganSystems() > 0) {\n Iterator<PhysioSystem> iter = body.getOrganSystems().iterator();\n\n // loop over PhysioSystems (usually there is only one)\n while (iter.hasNext()) {\n PhysioSystem organsys = iter.next();\n NodeLeaf organSystem = new NodeLeaf(organsys, \"./data/images/iconOrganSystem.gif\");\n DefaultMutableTreeNode organBranch = guiMn.simMain.st.addObject(guiMn, organSystem);\n ArrayList<Tissue> tissues = organsys.tissues;\n Iterator<Tissue> tissueIterator = tissues.iterator();\n\n // loop over Tissues in this PhysioSystem\n while (tissueIterator.hasNext()) {\n NodeLeaf leaf = null;\n\n Tissue tiss = tissueIterator.next();\n if (tiss.getName() == null) {\n System.out.println(\"Error null Tissue\");\n }\n NodeLeaf leafTissue = new NodeLeaf(tiss, \"./data/images/iconTissue.gif\");\n tissueBranch = guiMn.simMain.st.addObject(guiMn, organBranch, leafTissue, true);\n ancestor.put(tiss, tissueBranch);\n ArrayList<CompartmentSBML> comps = tiss.getInternVolumes();\n Iterator<CompartmentSBML> compIterator = comps.iterator();\n\n // loop over compartments in this Tissues\n while (compIterator.hasNext()) {\n CompartmentSBML compa = compIterator.next();\n leaf = processComp(guiMn, compa, tissueBranch);\n }\n // Post processing for \"outside\" field\n ArrayList<CompartmentSBML> compbis = tiss.getInternVolumes();\n Iterator<CompartmentSBML> postIterator = compbis.iterator();\n // loop over compartments in this Tissue\n CompartmentSBML compInside;\n while (postIterator.hasNext()) {\n compInside = postIterator.next();\n if(compInside == null)\n {\n System.out.println(\"No id in model: \" + compInside.getName());\n }\n postProcessComp(guiMn, tiss, tissueBranch, compInside);\n }\n // now there are still compartments in root that are at the wrong place\n } // end of Tissue loop\n } // end of Physiological systems loop\n }\n // when a tissue is embedded in another tissue \n careForPartOf(guiMn, ancestor);\n }", "private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}", "private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}", "public Node buildTree(ArrayList<ArrayList<String>> dataSet,\n\t\t\tArrayList<String> attributeList) throws FileNotFoundException {\n\t\tint countZero = 0;\n\t\tint countOne = 0;\n\n\t\tfor (int i = 1; i < dataSet.size(); i++) {\n\t\t\tif (dataSet.get(i).get(dataSet.get(i).size() - 1)\n\t\t\t\t\t.equalsIgnoreCase(\"1\")) {\n\t\t\t\tcountOne++;\n\t\t\t} else {\n\t\t\t\tcountZero++;\n\t\t\t}\n\t\t}\n\t\tif (attributeList.isEmpty() || countZero == dataSet.size() - 1) {\n\t\t\treturn new Node(\"0\");\n\n\t\t} else if (attributeList.isEmpty() || countOne == dataSet.size() - 1) {\n\t\t\treturn new Node(\"1\");\n\t\t} else {\n\t\t\tComputeInfoGain gain = new ComputeInfoGain();\n\t\t\tString bestAttribute = gain.bestAttribute(dataSet, attributeList);\n\t\t\tArrayList<String> attributes2 = new ArrayList<String>();\n\t\t\tHashMap<String, ArrayList<ArrayList<String>>> newMap = ComputeInfoGain\n\t\t\t\t\t.classifyOnBestAttribute(dataSet, bestAttribute);\n\t\t\tfor (String attr : attributeList) {\n\t\t\t\tif (!attr.equalsIgnoreCase(bestAttribute)) {\n\t\t\t\t\tattributes2.add(attr);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (newMap.size() < 2) {\n\t\t\t\tString value = \"0\";\n\t\t\t\tif (countOne > countZero) {\n\t\t\t\t\tvalue = \"1\";\n\t\t\t\t}\n\t\t\t\treturn new Node(value);\n\t\t\t}\n\t\t\treturn new Node(bestAttribute, buildTree(newMap.get(\"0\"),\n\t\t\t\t\tattributes2), buildTree(newMap.get(\"1\"), attributes2));\n\t\t}\n\n\t}", "private BinaryTree<Character> constructTree(){\n if(pq.size() == 1) return pq.poll().data;\n if(pq.size() == 0) return null;\n // Poll the lowest two trees, combine them, then stick them back in the queue.\n Helper<BinaryTree<Character>> temp0 = pq.poll(), temp1 = pq.poll(),\n result = new Helper<>(temp0.priority + temp1.priority, new BinaryTree<>(temp0.data, null , temp1.data));\n pq.add(result);\n // Call again to keep constructing.\n return constructTree();\n }", "public void loadGraph2(String path) throws FileNotFoundException, IOException {\n\n\t\ttry (BufferedReader br = new BufferedReader(\n\n\t\t\t\tnew InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8), 1024 * 1024)) {\n\n\t\t\tString line;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif (line == null) // end of file\n\t\t\t\t\tbreak;\n\n\n\t\t\t\tint a = 0;\n\t\t\t\tint left = -1;\n\t\t\t\tint right = -1;\n\n\t\t\t\tfor (int pos = 0; pos < line.length(); pos++) {\n\t\t\t\t\tchar c = line.charAt(pos);\n\t\t\t\t\tif (c == ' ' || c == '\\t') {\n\t\t\t\t\t\tif (left == -1)\n\t\t\t\t\t\t\tleft = a;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tright = a;\n\n\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (c < '0' || c > '9') {\n\t\t\t\t\t\tSystem.out.println(\"Erreur format ligne \");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\ta = 10 * a + c - '0';\n\t\t\t\t}\n\t\t\t\tright = a;\n\t\t\n\t\t\t\t// s'assurer qu'on a toujours de la place dans le tableau\n\t\t\t\tif (adjVertices.length <= left || adjVertices.length <= right) {\n\t\t\t\t\tensureCapacity(Math.max(left, right) + 1);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left] == null) {\n\t\t\t\t\tadjVertices[left] = new Sommet(left);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[right] == null) {\n\t\t\t\t\tadjVertices[right] = new Sommet(right);\n\t\t\t\t}\n\n\t\t\t\tif (adjVertices[left].listeAdjacence.contains(adjVertices[right])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjVertices[left].listeAdjacence.add(adjVertices[right]);\n\t\t\t\t\tadjVertices[right].listeAdjacence.add(adjVertices[left]);\n\t\t\t\t\tnombreArrete++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < adjVertices.length; i++) {\n\t\t\tif (adjVertices[i] == null)\n\t\t\t\tnombreTrous++;\n\t\t}\n\t\tnumberOfNode = adjVertices.length - nombreTrous;\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Loading graph done !\");\n\t\tSystem.out.println(\"-----------------------------------------------------------------\");\n\n\t\tSystem.out.println(\"nombreTrous \" + nombreTrous);\n\t\tSystem.out.println(\"numberOfNode \" + numberOfNode);\n\t\t\n\t}", "public LevelParser(String file) throws SyntacticIncException \n\t{\n\t\tthis.file = file;\n\t\ttry \n\t\t{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(this.file));\n\t\t\tString zeile;\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint zeilenlaenge = 0;\n\t\t\twhile ((zeile = in.readLine()) != null) \n\t\t\t{\n\t\t\t\tchar[] zeilenChars = zeile.toCharArray();\n\t\t\t\tif(x!=0 && zeilenlaenge!=zeilenChars.length) throw new SyntacticIncException(\"Syntaktisch Inkorrekt - zeilen in datei unterschiedlich lang\");\n\t\t\t\tzeilenlaenge = zeilenChars.length;\n\t\t\t\tif(level==null){\n\t\t\t\t\tlevel = new char[1][zeilenlaenge];\n\t\t\t\t\tlevel[0] = zeilenChars.clone();\n\t\t\t\t}else{\n\t\t\t\t\tchar[][] levelClone = level.clone();\n\t\t\t\t\tlevel = new char[levelClone.length+1][zeilenlaenge];\n\t\t\t\t\tSystem.arraycopy(levelClone, 0, level, 0, level.length-1);\n\t\t\t\t\tlevel[levelClone.length] = zeilenChars;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tx++;\n\t\t\t}\n\t\t\tlevelActive = new char[level.length+2][level[0].length+2];\n\t\t\t\n\t\t\tfillActiveLevels();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - Datei nicht gefunden\");\n\t\t}\n\t\tif (!syntaktischRichtig()) \n\t\t{\n\t\t\tlevel = null;\n\t\t\tlevelActive = null;\n\t\t\tthrow new SyntacticIncException(\"Syntaktisch Inkorrekt - datei fehlerhaft\");\n\t\t} else \n\t\t{\n\t\t\tlevelGeladen = true;\n\t\t}\n\t}", "public TreeNode() {\n }", "private void parseTree(BufferedReader in, VssProject vssProject) {\r\n try {\r\n String line;\r\n boolean start = false;\r\n while ((line = in.readLine()) != null) {\r\n if (!start) {\r\n if (line.startsWith(\"$\") && line.endsWith(\":\")) {\r\n start = true;\r\n continue;\r\n }\r\n } else {\r\n if (line.length() == 0)\r\n break;\r\n if (line.startsWith(\"$\")) {\r\n \t\r\n String projectName = line.substring(1);\r\n if ( config.getProjectsToIgnore().contains( projectName ) )\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t// Ignore list!\r\n \t\t\t\t\t\tLOG.warn( \"Ignore project \" + projectName + \" found in : \" + vssProject.getVssPath() );\r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t}\r\n \r\n VssProject newProject = new VssProject();\r\n newProject.setName(projectName);\r\n newProject.setParent(vssProject);\r\n vssProject.addSubproject(newProject);\r\n \r\n } else \r\n {\r\n if (line.startsWith(\"No items found under $\")) {\r\n continue;\r\n } \r\n String filename = line;\r\n String parent = vssProject.getVssPath().substring(config.getProject().length());\r\n if (parent.length() > 0) {\r\n if (parent.startsWith(\"/\"))\r\n parent = parent.substring(1);\r\n if (!parent.endsWith(\"/\"))\r\n parent += \"/\";\r\n }\r\n String path = parent + filename;\r\n VssFile newFile = new VssFile(path, filename);\r\n newFile.setParent(vssProject);\r\n vssProject.addFile(newFile);\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n throw new VssException(\"readLine\", e);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tHashMap<String, HashSet<String>> childParentHM=new HashMap<String, HashSet<String>>();\n\t\tLinkedList<String> queueLinkedList=new LinkedList<String>();\t\n \tLinkedHashMap<String, HashSet> linkedHashMap=new LinkedHashMap<String,HashSet>();\t\t\n\t\t//String fileName = \"C:/VK/alog/src/miniProject/min-imfo.txt\";\n\t\tString rootFile = \"C:/VK/alog/src/miniProject/mfo_names.txt\";\n\t\tString givenEdgesFile = \"C:/VK/alog/src/miniProject/created_File.txt\";\n\t\tFileReader fileReader;\n\t BufferedReader bufferedReader;\n\t \n\t \n\t \n\t try {\n\t \t FileReader filereader2=new FileReader(rootFile);\n\t \t \n\t \tbufferedReader = new BufferedReader(filereader2);\n\t \tString line = null;\n\t \t \n\n\t \t while((line = bufferedReader.readLine()) != null) \n\t \t {\n\t if(line.indexOf(\"_\")!=-1)\n\t \t//root=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\" \"));\n\t root=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\"\\t\")).trim();\n\t \t }\n\t \t root=\"1\";\n\t \t\n\t System.out.println(\"Root: \"+ root);\n\t fileReader = new FileReader(givenEdgesFile);\n \t bufferedReader = new BufferedReader(fileReader);\n \t String key;\n String value;\n \n \t while((line = bufferedReader.readLine()) != null) \n \t {\n \n if(line.indexOf(\"GO:\")==-1)\n \tcontinue;\n key=line.substring(line.indexOf(\"GO:\")+3,line.indexOf(\"\\t\")).trim();\n value=line.substring(line.lastIndexOf(\"GO:\")+3,line.length()).trim();\n if(childParentHM.get(key)==null)\n {\n \t\n \tHashSet<String> tempHashSet = new HashSet<String>();\n \tif(value.equals(root))\n \t{\n \t\tqueueLinkedList.add(key);\n \t}\n \ttempHashSet.add(value);\n \tchildParentHM.put(key, tempHashSet);\n }\n else\n {\n \tHashSet<String> tempHashSet = new HashSet<String>();\n \ttempHashSet=childParentHM.get(key);\n \ttempHashSet.add(value);\n }\n \n if(parentChild.get(value)==null)\n {\n \t\n \tLinkedHashSet<String> tempLinkedList = new LinkedHashSet<String>();\n \ttempLinkedList.add(key);\n \tparentChild.put(value, tempLinkedList);\n }\n else\n {\n \tLinkedHashSet<String> tempHashSet = new LinkedHashSet<String>();\n \ttempHashSet=parentChild.get(value);\n \ttempHashSet.add(key);\n }\n }\n \t \n\t\twhile(!queueLinkedList.isEmpty())\n\t\t{\n\t\t\t int sizeLinkedList=queueLinkedList.size();\n\t\t\t while(sizeLinkedList!=0)\n\t\t\t {\n\t\t\t\t HashSet tempHS=(HashSet)parentChild.get(queueLinkedList.get(0));\n\t\t\t\t if(tempHS!=null)\n\t\t\t\t {\n\t\t \t\t Iterator iteratorHashSet=tempHS.iterator();\n\t\t \t\t while(iteratorHashSet.hasNext())\n\t\t \t\t {\n\t\t \t\t\t String nextElement=(String)iteratorHashSet.next();\n\t\t \t\t\tqueueLinkedList.addLast(nextElement);\n\t\t \t }\n\t\t \t\tsizeLinkedList--;\n\t\t \t\t \n\t\t \t\tlinkedHashMap.put((String)queueLinkedList.getFirst(),childParentHM.get(queueLinkedList.getFirst()) );\n\t\t \t\tqueueLinkedList.remove(0);\n\t\t \t\t \n\t\t \t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t linkedHashMap.put((String)queueLinkedList.getFirst(),childParentHM.get(queueLinkedList.getFirst()) );\n\t\t\t\t\t sizeLinkedList--;\n\t\t\t\t\t queueLinkedList.remove(0);\n\t\t\t\t }\n\t\t\t }\n\t\t}\n \tbufferedReader.close();\n \tSystem.out.println(\"Numder of nodes: \"+childParentHM.size());\n \tprintMap(childParentHM);\n \tSystem.out.println(\"------------\");\n \t//printMap(linkedHashMap);\n \t//childParentHM.clear();\n \tparentChild.clear();\n \tcalConsistentDAG(linkedHashMap,root);\n \tint totalDAGcount=totalDAG.size()+1;\n \tSystem.out.println(\"TotalSize: \"+totalDAGcount);\n /*\tIterator toRecieve = hsPublic.iterator();\n \twhile(toRecieve.hasNext())\n \t{\n \t\tSystem.out.println(toRecieve.next());\n \t}*/\n \t\n\t }\n\t \tcatch(FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + \"\" + \"'\"); \n \t}\n catch(IOException ex) {\n System.out.println(\"Error reading file '\"+ \"\" + \"'\"); \n }\n catch(Exception ex) {\n System.out.println(\"Error \" + ex.getMessage() + \"'\");\n ex.printStackTrace();\n \n }\n\t}", "public String verify(){\n String res=\"\";\n int msglen=msgarr.length;\n for(int i=0;i<msglen;i++){\n treecodestr=treecodestr+codeTable[msgarr[i]+DIFF];\n }\n //Now compare treecodestr and filecodestr\n boolean same=treecodestr.equals(filecodestr);\n if(same){\n res=\":) -- This tree has not been modified.\";\n }else{\n res=\":( -- This tree has been modified.\";\n }\n System.out.println(res);\n return res;\n }", "@Test\n public void testPhylogeneticTreeParserNoNamesNoDistance() {\n // create the actual tree\n String tree = \"(,,(,));\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "public static Tree<Contact, String> loadContacts() {\n\t\tTree<Contact, String> ret = new Tree<Contact, String>();\n\t\tNode<Contact, String> nRoot = null;\n\t\tContact contact = new Contact();\n\t\tString row;\n\n\t\t// Load the contacts files\n\t\ttry {\n\t\t\tFileReader fReader = new FileReader(\"contacts.txt\");\n\t\t\tBufferedReader textReader = new BufferedReader(fReader);\n\n\t\t\t// For each row\n\t\t\twhile ((row = textReader.readLine()) != null) {\n\t\t\t\tcontact = new Contact();\n\t\t\t\tString[] rowSplit = row.split(\"##\");\n\t\t\t\tNode<Contact, String> node = new Node<Contact, String>();\n\t\t\t\t\n\t\t\t\tcontact.setName(rowSplit[0]);\n\t\t\t\tcontact.setPhone(rowSplit[1]);\n\t\t\t\tnode.setValue(contact);\n\t\t\t\tnode.setKey(rowSplit[0]);\n\t\t\t\t\n\t\t\t\tnode.setRoot(nRoot);\n\t\t\t\t\n\t\t\t\tret.addNode(node, false);\n\t\t\t}\n\t\t\t\n\t\t\ttextReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t\n\t\t}\n\n\t\treturn ret;\n\t}", "public BinaryTree(){}", "private static TreeNode<Character> buildTree () {\n // build left half\n TreeNode<Character> s = new TreeNode<Character>('S', \n new TreeNode<Character>('H'),\n new TreeNode<Character>('V'));\n\n TreeNode<Character> u = new TreeNode<Character>('U', \n new TreeNode<Character>('F'),\n null);\n \n TreeNode<Character> i = new TreeNode<Character>('I', s, u);\n\n TreeNode<Character> r = new TreeNode<Character>('R', \n new TreeNode<Character>('L'), \n null);\n\n TreeNode<Character> w = new TreeNode<Character>('W', \n new TreeNode<Character>('P'),\n new TreeNode<Character>('J'));\n\n TreeNode<Character> a = new TreeNode<Character>('A', r, w);\n\n TreeNode<Character> e = new TreeNode<Character>('E', i, a);\n\n // build right half\n TreeNode<Character> d = new TreeNode<Character>('D', \n new TreeNode<Character>('B'),\n new TreeNode<Character>('X'));\n\n TreeNode<Character> k = new TreeNode<Character>('K', \n new TreeNode<Character>('C'),\n new TreeNode<Character>('Y'));\n\n TreeNode<Character> n = new TreeNode<Character>('N', d, k);\n\n\n TreeNode<Character> g = new TreeNode<Character>('G', \n new TreeNode<Character>('Z'),\n new TreeNode<Character>('Q'));\n\n TreeNode<Character> o = new TreeNode<Character>('O');\n\n TreeNode<Character> m = new TreeNode<Character>('M', g, o);\n\n TreeNode<Character> t = new TreeNode<Character>('T', n, m);\n\n // build the root\n TreeNode<Character> root = new TreeNode<Character>(null, e, t);\n return root;\n }", "@Override\r\n\tpublic void run() {\n \tFile in = new File(\"input.txt\");\r\n\t\t String strLine;\r\n\t\t int k;\r\n\t\t Tree mytree = new Tree();\r\n\t\t try {\r\n\t\t Scanner sc = new Scanner(in);\r\n\t\t while (sc.hasNext()) {\r\n\t\t mytree.insert(sc.nextInt());\r\n\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t try(FileWriter fos=new FileWriter(\"output.txt\"))\r\n\t {\r\n\t \r\n\t\t\t mytree.PreOrderTraversal(mytree.root, fos);\r\n\t }\r\n\t catch(IOException ex){\r\n\t \tSystem.out.println(ex.getMessage());\r\n\t }\r\n \t\r\n\t}", "public static void main(String[] args) {\n String levelNodes = \"1,2,3,#,#,4,#,#,#\";\n TreeNode<String> level = of(levelNodes, \"#\", TraverseType.LEVEL);\n System.out.println(level);\n\n\n String postNodes = \"#,#,2,#,#,4,#,3,1\";\n TreeNode<String> post = of(postNodes, \"#\", TraverseType.POST);\n System.out.println(post);\n\n\n String preNodes = \"1,2,#,#,3,4,#,#,#\";\n TreeNode<String> pre = of(preNodes, \"#\", TraverseType.PRE);\n System.out.println(pre);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblTitle = new javax.swing.JLabel();\n lblPath = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTree1 = new javax.swing.JTree();\n btnDelete = new javax.swing.JButton();\n btnInsert = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n lblTitle.setText(\"Tree 예제\");\n\n lblPath.setText(\"Path : \");\n\n jTree1.addTreeExpansionListener(new javax.swing.event.TreeExpansionListener() {\n public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt) {\n jTree1TreeCollapsed(evt);\n }\n public void treeExpanded(javax.swing.event.TreeExpansionEvent evt) {\n jTree1TreeExpanded(evt);\n }\n });\n jTree1.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {\n public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {\n jTree1ValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(jTree1);\n\n btnDelete.setText(\"삭제\");\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n\n btnInsert.setText(\"추가\");\n btnInsert.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnInsertActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(165, 165, 165)\n .addComponent(lblTitle))\n .addGroup(layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblPath, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 292, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnInsert, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addContainerGap(8, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(lblTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 263, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblPath, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnInsert)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnDelete)))\n .addContainerGap())\n );\n\n pack();\n }", "public TreeNode deserialize(String data) {\n // write your code here\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n boolean isLeftPosition = true;\n String[] stringArray = data.substring(1, data.length() - 1).split(\",\");\n if(data.equals(\"{}\")){\n \treturn null;\n }\n TreeNode root = new TreeNode(Integer.parseInt(stringArray[0]));\n queue.add(root);\n int index = 0;\n for(int i = 1; i < stringArray.length; i++){\n \tif(!stringArray[i].equals(\"#\")){\n \t\tTreeNode node = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\tSystem.out.print((new TreeNode(Integer.parseInt(stringArray[i])).equals(new TreeNode(Integer.parseInt(stringArray[i])))));\n \t\tif (isLeftPosition){\n \t\t queue.get(index).left = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\telse {\n \t\t queue.get(index).right = new TreeNode(Integer.parseInt(stringArray[i]));\n \t\t}\n \t\tqueue.add(new TreeNode(Integer.parseInt(stringArray[i])));\n \t}\n \tif(!isLeftPosition) index++;\n \tisLeftPosition = !isLeftPosition;\n }\n return root;\n }", "private void buildBinaryTree() {\n log.info(\"Constructing priority queue\");\n Huffman huffman = new Huffman(cache.vocabWords());\n huffman.build();\n\n log.info(\"Built tree\");\n\n }", "@DISPID(1611006004) //= 0x60060034. The runtime will prefer the VTID if present\n @VTID(79)\n boolean constraintsNodeInTree();", "@Test\n public void testPhylogeneticTreeParserNamednodesNoDistance() {\n // create the actual tree\n String tree = \"(A,B,(C,D)E)F;\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n rootExpected.setName(\"F\");\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"E\");\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "public TreeNode deserialize(StringBuilder data) {\r\n //分成两组\r\n \tHashMap<Integer,Integer> showMapAct = new HashMap<>();\r\n \tStringBuilder[] result = data.split(\"k\");\r\n \t//deal with showMapAct\r\n \tif(result.length==1 || result[1].length()==0){\r\n \t}\r\n \telse{\r\n \t\tStringBuilder[] extraInfo = result[1].split(\",\");\r\n \t\tfor(int i = 0; i < extraInfo.length;i++){\r\n \t\t\tStringBuilder[] temp = extraInfo[i].split(\":\");\r\n \t\t\tshowMapAct.put(Integer.valueOf(temp[0]),Integer.valueOf(temp[1]));\r\n \t\t}///////\r\n \t}\r\n \tStringBuilder[] nums = result[0].split(\",\");\r\n \tint[] preOrder = new int[nums.length/2];\r\n \tint[] inOrder = new int[nums.length/2];\r\n \tinitArray(preOrder,nums,0,nums.length/2);\r\n \tinitArray(inOrder,nums,nums.length/2,nums.length);\r\n \treturn constructTree(preOrder,0,preOrder.length,inOrder,0,inOrder.length,showMapAct);\r\n }", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "private static void generateHuffmanTree(){\n try (BufferedReader br = new BufferedReader(new FileReader(_codeTableFile))) {\n String line;\n while ((line = br.readLine()) != null) {\n // process the line.\n if(!line.isEmpty() && line!=null){\n int numberData = Integer.parseInt(line.split(\" \")[0]);\n String code = line.split(\" \")[1];\n Node traverser = root;\n for (int i = 0; i < code.length() - 1; i++){\n char c = code.charAt(i); \n if (c == '0'){\n //bit is 0\n if(traverser.getLeftPtr() == null){\n traverser.setLeftPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getLeftPtr();\n }\n else{\n //bit is 1\n if(traverser.getRightPtr() == null){\n traverser.setRightPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getRightPtr();\n }\n }\n //Put data in the last node by creating a new leafNode\n char c = code.charAt(code.length() - 1);\n if(c == '0'){\n traverser.setLeftPtr(new LeafNode(9999999, numberData, null, null));\n }\n else{\n traverser.setRightPtr(new LeafNode(9999999, numberData, null, null));\n }\n }\n }\n } \n catch (IOException ex) {\n Logger.getLogger(FrequencyTableBuilder.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static void doTransform(Tree t) {\n\n if (t.value().startsWith(\"QP\")) {\n //look at the children\n List<Tree> children = t.getChildrenAsList();\n if (children.size() >= 3 && children.get(0).isPreTerminal()) {\n //go through the children and check if they match the structure we want\n String child1 = children.get(0).value();\n String child2 = children.get(1).value();\n String child3 = children.get(2).value();\n if((child3.startsWith(\"CD\") || child3.startsWith(\"DT\")) &&\n (child1.startsWith(\"RB\") || child1.startsWith(\"JJ\") || child1.startsWith(\"IN\")) &&\n (child2.startsWith(\"IN\") || child2.startsWith(\"JJ\"))) {\n transformQP(t);\n }\n }\n /* --- to be written or deleted\n } else if (t.value().startsWith(\"NP\")) {\n //look at the children\n List<Tree> children = t.getChildrenAsList();\n if (children.size() >= 3) {\n\n }\n ---- */\n } else if (t.isPhrasal()) {\n for (Tree child : t.getChildrenAsList()) {\n doTransform(child);\n }\n }\n }", "public BinaryTree() {\n\t}", "public BTree(String arg) {\n try {\n t = Integer.parseInt(arg);\n if (t < 2)\n throw new IllegalArgumentException(\" number is lower then 1\");\n BTNode.DEGREE = t;\n mRoot = createNode();\n }catch (NumberFormatException nfe){\n throw new NumberFormatException (\"arg \" + \" is not a number\");\n }\n\n }", "public TreeStructure<String> optimiseTree() throws IllegalAccessException {\n\n canonicalTree.createStack(canonicalTree.getRootNode());\n TreeStructure.Node<String> popNode;\n TreeStructure.Node<String> whereNodeToDelete = null;\n Stack<TreeStructure.Node<String>> stack = canonicalTree.getStack();\n Stack<TreeStructure.Node<String>> optimizationStack = new Stack<>();\n\n boolean conditionAlready;\n while (!stack.empty()) {\n popNode = stack.pop();\n switch (popNode.getNodeStatus()) {\n case RELATION_NODE_STATUS:{\n conditionAlready = false;\n /*if there is a condition associated with that relation then call the method. and set set conditionAlready to TRue so that\n if a node is associated with more than one conditions all the associated conditions will be added to it's parent node.\n after every iteration of the loop the popNode is becoming the node that holds the condition if any so need to make pop node to hold the\n relation node again (if node has a child node-> avoid exception)!!!*/\n while(optimizedWhere.containsValue(new LinkedList<>(Collections.singleton(popNode.getData())))) {\n conditionAlready = relationNodeAction(popNode, conditionAlready);\n if(popNode.getChildren().size() == 1) popNode = popNode.getChildren().get(0);\n }\n associatedRelations = new LinkedList<>();\n break;\n }\n case CARTESIAN_NODE_STATUS: {\n\n cartesianNodeAction(popNode,(Stack<TreeStructure.Node<String>>) optimizationStack.clone());\n cartesianNodesIncludeCond(popNode);\n associatedRelations = new LinkedList<>();\n }\n case WHERE_NODE_STATUS:{\n whereNodeToDelete = popNode;\n break;\n }\n }\n optimizationStack.push(popNode);\n }\n //Delete node that holds the condition if any from the initial tree\n if(whereNodeToDelete!=null){\n /*The condition node will be removed so the root node level must become the condition node's level\n *Make the root node the parent of its child node so the whole tree won't be deleted when the node is deleted*/\n canonicalTree.getRootNode().setNodeLevel(whereNodeToDelete.getNodeLevel());\n whereNodeToDelete.getChildren().get(0).setParentNode(whereNodeToDelete.getParentNode());\n canonicalTree.deleteNode(whereNodeToDelete);\n }\n convertCartesianToJoin();\n\n\n return canonicalTree;\n }", "void createItem(StreamTokenizer st) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\tboolean inComment = false;\n\t\tStringBuffer treebuf = new StringBuffer();\n\t\twhile (true) {\n\t\t\tswitch (st.nextToken()) {\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add token \"+st.sval);\n\t\t\t\ttreebuf.append(st.sval);\n\t\t\t\tbreak;\n\t\t\tcase '\"':\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\t// check for length 0 and triple quote\n\t\t\t\tif (st.sval.length() == 0) {\n\t\t\t\t\tst.ordinaryChar('\"');\n\t\t\t\t\tif (st.nextToken() == '\"') {\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found triple quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tst.pushBack();\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found empty double quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tst.quoteChar('\"');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add quoted token \"+st.sval);\n\t\t\t\t\ttreebuf.append(\"\\\"\"+st.sval+\"\\\"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '@':\n\t\t\tcase '#':\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: pushing symbol back\");\n\t\t\t\tst.pushBack();\n\t\t\tcase StreamTokenizer.TT_EOL:\n\t\t\tcase StreamTokenizer.TT_EOF:\n\n\t\t\t\t// in a newline. Reset any inComment aspect\n\t\t\t\tinComment = false;\n\t\t\t\tif (treebuf.length() > 0) {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to process item \"+treebuf.toString());\n\t\t\t\t\tTreeItem t = new TreeItem(treebuf);\n\t\t\t\t\tchildren = t.children;\n\t\t\t\t\tnumChildren = t.numChildren;\n\t\t\t\t\tnumNodes = t.numNodes;\n\t\t\t\t\ttruncated = t.truncated;\n\t\t\t\t\tlabel = t.label;\n\t\t\t\t\tweight = t.weight;\n\t\t\t\t\tisEmptyString = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"Skipping empty line\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// can't reach here, so no break\n\t\t\tcase COMMENT:\n\t\t\t\t// in a comment. Set inComment flag\n\t\t\t\tinComment = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new DataFormatException(\" Expected word, but read \"+st.ttype+\" which is \"+(char)st.ttype);\n\n\t\t\t}\n\t\t}\n\t}", "public TreeItem(String file) throws DataFormatException, FileNotFoundException, IOException {\n\t\tsuper(file);\n\t}", "public static void main(String[] args) throws AVLTreeException, BSTreeException, IOException {\n\t\tint bsDepths = 0, avlDepths = 0; // tracks the sum of the depths of every node\n\t\tScanner inFile = new Scanner(new FileReader(args[0]));\n\t\tAVLTree<String> avltree = new AVLTree<>();\n\t\tBSTree<String> bstree = new BSTree<>();\n\t\tFunction<String, PrintStream> printUpperCase = x -> System.out.printf(\"%S\\n\", x); // function example from Duncan. Hope this is okay :)\n\t\tArrayList<String> words = new ArrayList<>(); // Way to store the words without opening the file twice\n\t\twhile (inFile.hasNext()) { // inserting words into each tree without using an extra loop\n\t\t\twords.add(inFile.next().toUpperCase());\n\t\t\tbstree.insert(words.get(words.size() - 1));\n\t\t\tavltree.insert(words.get(words.size() - 1));\n\t\t}\n\t\tinFile.close();\n\t\t// VVV Prints table 1 VVV\n\t\tSystem.out.printf(\"Table 1: Binary Search Tree [%s]\\n\" + \"Level-Order Traversal\\n\"\n\t\t\t\t+ \"=========================================\\n\" + \"Word\\n\"\n\t\t\t\t+ \"-----------------------------------------\\n\", args[0]);\n\t\tbstree.levelTraverse(printUpperCase);\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t\t// VVV Prints table 2 VVV\n\t\tSystem.out.printf(\n\t\t\t\t\"Table 2: AVL Tree [%s]\\n\" + \"Level-Order Traversal\\n\" + \"=========================================\\n\"\n\t\t\t\t\t\t+ \"Word\\n\" + \"-----------------------------------------\\n\",\n\t\t\t\targs[0]);\n\t\tavltree.levelTraverse(printUpperCase);\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t\t// VVV Prints table 3 VVV\n\t\tSystem.out.printf(\"Table 3:Number of Nodes vs Height vs Diameter\\n\" + \"Using Data in [%s]\\n\"\n\t\t\t\t+ \"=========================================\\n\" + \"Tree # Nodes Height Diameter\\n\"\n\t\t\t\t+ \"-----------------------------------------\\n\" + \"BST\\t%d\\t %d\\t %d\\n\" + \"AVL\\t%d\\t %d\\t %d\\n\",\n\t\t\t\targs[0], bstree.size(), bstree.height(), bstree.diameter(), avltree.size(), avltree.height(),\n\t\t\t\tavltree.diameter());\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t\tfor (int i = 0; i < words.size(); i++) { //searches the trees for each word, totaling their depths\n\t\t\tbsDepths += 1 + bstree.depth(words.get(i));\n\t\t\tavlDepths += 1 + avltree.depth(words.get(i));\n\t\t}\n\t\t// VVV Prints table 4 VVV\n\t\tSystem.out.printf(\"Table 4:Total Number of Node Accesses\\n\" + \"Searching for all the Words in [%s]\\n\"\n\t\t\t\t+ \"=========================================\\n\" + \"Tree # Nodes\\n\"\n\t\t\t\t+ \"-----------------------------------------\\n\" + \"BST %d\\n\" + \"AVL %d\\n\",\n\t\t\t\targs[0], bsDepths, avlDepths);\n\t\tSystem.out.println(\"-----------------------------------------\\n\");\n\t}", "void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }", "public TentTree(int numRows, int numCols, String tent, String tree){\n\t\t// constructor that initializes attributes\n\t\tthis.numRows = numRows;\n\t\tthis.numCols = numCols;\n\t\tthis.tentSymbol = tent;\n\t\tthis.treeSymbol = tree;\n\t\tthis.grid = new HashMap<Position,String>();\n\t}", "public static void main(String[] args) {\n TreeNode root = new TreeNode(50);\n root.left = new TreeNode(30);\n root.right = new TreeNode(70);\n root.left.left = new TreeNode(20);\n root.left.right = new TreeNode(40);\n root.right.left = new TreeNode(60);\n root.right.right = new TreeNode(80);\n StringBuilder result = serialiseBT(root, new StringBuilder());\n System.out.println(result.toString());\n String[] strings = result.toString().split(\",\");\n TreeNode head = deserialize(strings, new int[]{0});\n System.out.println(serialiseBT(head, new StringBuilder()));\n }", "@Test\n public void testPhylogeneticTreeParserUnnamednodesAndDistance() {\n // create the actual tree\n String tree = \"(:0.1,:0.2,(:0.3,:0.4):0.5);\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setDistance(0.2);\n current = new PhylogeneticTreeItem();\n current.setDistance(0.1);\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setDistance(0.5);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setDistance(0.3);\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setDistance(0.4);\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "private void openTreeML()\r\n {\r\n// // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Open the file.\r\n// String file = openFileChooser(true, filters);\r\n// \r\n// // Process the file. \r\n// if (file != null)\r\n// {\r\n// m_gtree = Loader.loadTreeML(file);\r\n// TreeDisplay disp = new TreeDisplay(m_gtree,0);\r\n// TreePanel panel = new TreePanel(disp, LEGEND, ORIENTATION_CONTROL_WIDGET);\r\n// m_tabbedPane.setComponentAt(1, panel);\r\n// }\r\n }", "public void showTree(IGPProgram a_prog, String a_filename)\n throws InvalidConfigurationException {\n if (a_prog == null) {\n return;\n }\n TreeNode myTree = createTree(a_prog);\n if (myTree == null) {\n return;\n }\n TreeVisualizer tv = new TreeVisualizer();\n tv.setTreeBranchRenderer(new JGAPTreeBranchRenderer());\n tv.setTreeNodeRenderer(new JGAPTreeNodeRenderer());\n tv.setBranchStartWidth(18.0);\n tv.setArenaColor(Color.black);\n tv.setBkgndColor(Color.black);\n tv.setRenderNodes(true);\n tv.setSide(1024);\n tv.setCircleDiminishFactor(0.5);\n tv.writeImageFile(tv.renderTree(myTree), new File(a_filename));\n }", "public TreeNode(String label, String message, String prompt){\n\t\t//Don't set parent label?\n\t\tthis.label = label;\n\t\tthis.message = message;\n\t\tthis.prompt = prompt;\n\t\tright = null;\n\t\tleft = null;\n\t\tmiddle = null;\n\t}", "private TreeItem(StringBuffer text, int level) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\t// is input the head of a tree?\n\t\tMatcher nodeMatch = nodePat.matcher(text.toString());\n\t\tif (nodeMatch.lookingAt()) {\n\t\t\tif (debug) Debug.debug(debug, level, \"matched \"+text+\" against node pattern\");\n\t\t\tString labStr = nodeMatch.group(2);\n\t\t\tint totalLength = nodeMatch.group(1).length();\n\t\t\tif (debug) Debug.debug(debug, level, \"Consuming [\"+nodeMatch.group(1)+\"]\");\n\t\t\tif (debug) Debug.debug(debug, level, \"label set to \"+labStr);\n\t\t\tlabel = SymbolFactory.getSymbol(labStr);\n\t\t\ttext.delete(0, totalLength);\n\t\t\t// temporary holding place for children\n\t\t\tVector<TreeItem> kids = new Vector<TreeItem>();\n\t\t\t// add children until we reach the end pattern\n\t\t\tMatcher endMatch = endPat.matcher(text.toString());\n\t\t\twhile (!endMatch.lookingAt()) {\n\t\t\t\tTreeItem kid = new TreeItem(text, level+1);\n\t\t\t\tif (debug) Debug.debug(debug, level, \"adding child \"+kid);\n\t\t\t\tkids.add(kid);\n\t\t\t\tendMatch = endPat.matcher(text.toString());\n\t\t\t}\n\t\t\ttotalLength = endMatch.group(1).length();\n\t\t\tif (debug) Debug.debug(debug, level, \"Consuming end group [\"+endMatch.group(1)+\"]\");\n\t\t\ttext.delete(0, totalLength);\n\t\t\tMatcher weightMatch = weightPat.matcher(text.toString());\n\t\t\tif (weightMatch.matches()) {\n\t\t\t\tif (weightMatch.group(2) != null) {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"Reading weight \"+weightMatch.group(1));\n\t\t\t\t\tweight = Double.parseDouble(weightMatch.group(2));\n\t\t\t\t}\n\t\t\t\ttext.delete(0, weightMatch.group(1).length());\n\t\t\t}\n\t\t\tchildren = new TreeItem[kids.size()];\n\t\t\tnumChildren = children.length;\n\t\t\tkids.toArray(children);\n\t\t\treturn;\n\t\t}\n\t\t// is input a leaf?\n\t\tMatcher leafMatch = leafPat.matcher(text.toString());\n\t\tif (leafMatch.lookingAt()) {\n\t\t\tif (debug) Debug.debug(debug, level, \"matched \"+text+\" against label pattern\");\n\t\t\tString labStr = leafMatch.group(2);\n\t\t\tint totalLength = leafMatch.group(1).length();\n\t\t\tif (debug) Debug.debug(debug, level, \"Consuming [\"+leafMatch.group(1)+\"]\");\n\t\t\tlabel = SymbolFactory.getSymbol(labStr);\n\t\t\tif (debug) Debug.debug(debug, level, \"TLT label set to \"+labStr);\n\t\t\ttext.delete(0, totalLength);\n\t\t\treturn;\n\t\t}\n\t\tthrow new DataFormatException(\"Couldn't match any pattern to \"+text);\n\t}", "private void getTreeShape() {\n int treeSizeInBytes = (int) (Math.ceil(treeSize / (double) Byte.SIZE));\n // converting tree shape in bytes to the bitset;\n BitSet bs = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, bufferPosition + treeSizeInBytes));\n bufferPosition += treeSizeInBytes;\n\n int treeLeavesAmount = 0;\n for (int i = 0; i < treeSize; i++) {\n boolean bit = bs.get(i);\n if (!bit) {\n treeLeavesAmount += 1;\n }\n treeShape.add(bit);\n }\n\n // adding tree leaves to the linked list;\n for (int i = bufferPosition; i < bufferPosition + treeLeavesAmount; i++) {\n treeLeaves.add(buffer.get(i));\n }\n // increasing buffer position for the amount of leaves(unique bytes);\n bufferPosition = bufferPosition + treeLeavesAmount;\n }", "public static void main(String[] args) {\n\t\tif (args.length == 0) {\n\t\t\t System.err.println(\"Usage Error: the program expects a file name as an argument\");\n\t\t\t System.exit(-1);\n\t\t}\n\t\t\n\t\t// create a file with the entered file name\n\t\tFile file= new File(args[0]);\n\t\t\n\t\t// if the file does not exist inform the user and terminate the program\n\t\tif(file.exists()!=true){\n\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file cannot be read inform the user and terminate the program\n\t\telse if(file.canRead()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// if the file is not a file inform the user and terminate the program\n\t\telse if(file.isFile()!=true){\n\t\t\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" cannot be opened.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\t\n\t\t// create a list of type TreeList that will contain all the tree objects \n\t\tTreeList list= new TreeList();\n\t\t\t\n\t\ttry{\n\t\t\t// send the file to the scanner\n\t\t\tScanner inputFile = new Scanner(file);\n\t\t\t\n\t\t\t// create a boolean variable that is initially equal to true. \n\t\t\t// Since the first line does not contain info that can be parsed use the \n\t\t\t// variable to ensure the first line is skipped\n\t\t\tboolean firstLine=true;\n\t\t\t\n\t\t\t// while there is another line in the file continue the loop\n\t\t\twhile (inputFile.hasNextLine())\t{\n\t\t\t\t\n\t\t\t\t// create a string that represents a single line from the file\n\t\t\t\tString line= inputFile.nextLine();\n\t\t\t\t\n\t\t\t\t// send the line to have its information separated and entered into an\n\t\t\t\t// arrayList of strings\n\t\t\t\tArrayList<String> splitLine= splitCSVLine(line);\n\t\t\t\t\n\t\t\t\t\t// ensure the splitLine contains 41 elements, if not, skip it\n\t\t\t\t\tif (splitLine.size()==41){\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t// parse the information according to the needed information\n\t\t\t\t\t\t\t// about a tree that is sent to the tree class\n\t\t\t\t\t\t\tint id= Integer.parseInt(splitLine.get(0));\n\t\t\t\t\t\t\tint diam= Integer.parseInt(splitLine.get(3));\n\t\t\t\t\t\t\tString status= splitLine.get(6);\n\t\t\t\t\t\t\tString health= splitLine.get(7);\n\t\t\t\t\t\t\tString spc= splitLine.get(9);\n\t\t\t\t\t\t\tint zip= Integer.parseInt(splitLine.get(25));\n\t\t\t\t\t\t\tString boro= splitLine.get(29);\n\t\t\t\t\t\t\tdouble x= Double.parseDouble(splitLine.get(39));\n\t\t\t\t\t\t\tdouble y= Double.parseDouble(splitLine.get(40));\n\t\t\t\t\t\t\t// once information is parsed, use its information to create a \n\t\t\t\t\t\t\t// new tree\n\t\t\t\t\t\t\tTree tree= new Tree(id,diam,status,health,spc,zip,boro,x,y);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// ensure that the new tree does not have the same\n\t\t\t\t\t\t\t// ID, but a different species name from the other trees\n\t\t\t\t\t\t\t// in treeList\n\t\t\t\t\t\t\tfor (int i=0; i<list.size();i++){\n\t\t\t\t\t\t\t\ttree.equals(list.get(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// if the tree object is valid, add it to treeList list\n\t\t\t\t\t\t\tlist.add(tree);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// catch any invalid values sent to the constructor of the tree class\n\t\t\t\t\t\tcatch (IllegalArgumentException e){\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// throw a general exception in the case there is a parsing error\n\t\t\t\t\t\t// therefore the line will be ignored\n\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t//}\n\t\t\t\t// after the first line passes through the loop set it equal\n\t\t\t\t// to false so the following information can be parsed and \n\t\t\t\t// sent to the tree class\n\t\t\t\tfirstLine=false;\n\t\t\t\n\t\t\t}\n\t\t\t// close the scanner\n\t\t\tinputFile.close();\n\t\t }\n\t\t\n\t\t// catch if the file cannot be found and send a message describing what happened\n\t\t// to the user. Exit the program.\n\t\tcatch (FileNotFoundException e){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" does not exist.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// create an if statement to terminate the program if the file is empty or contains\n\t\t// no usable information\n\t\tif (list.size()==0){\n\t\t\tSystem.err.println(\"Usage Error: the file \"+args[0]+\" contains no usable information.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t// this portion of the program will handle user input and print the correct\n\t\t// tree information according to the tree species the user enters \n\t\t\n\t \t// create an exit word that will terminate the loop\n\t\tString exitWord=\"quit\";\n\t\t\n\t\t// create a string variable that represents the user's answer\n\t\tString answer;\n\t\t \n\t\t// open the scanner \n\t\tScanner input= new Scanner(System.in);\n\t\t// print a statement informing the user what to do\n\t\tSystem.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t// set the answer equal to the user's response\n answer= input.nextLine();\n \n // while the answer is not quit, keep prompting the user for a tree species\n\t\twhile (!(answer.equalsIgnoreCase(exitWord))){\n\t\t\t// if the tree species exists within the list of trees, print its matching species\n\t\t\t// and how many of that species exists within NYC and its boroughs\n\t\t\tif ((list.getCountByTreeSpecies(answer))>0){\n\t\t\t\tSystem.out.println(getMatchingSpecies(list,answer)+\"\\n\");\n\t\t\t\tSystem.out.println(getSpeciesInfo(list,answer));\n\t\t\t}\n\t\t\t\n\t\t\t// if the tree species is not within the list of trees, print a statement to \n\t\t\t// the user explaining it does not exist in NYC\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tSystem.out.println(\"There are no records of \"+answer+\" on NYC streets\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\n\t\t// re-prompt the user to enter a tree species\n\t\t System.out.println(\"Enter the tree species to learn more about it ('quit' to stop):\");\n\t\t answer= input.nextLine();\n\t\t}\n\t\t\n\t\t//close the scanner\n\t\t input.close();\n\t\t \n\t\t \n\t}", "@Test\n public void testPhylogeneticTreeParserNamednodesAndDistance() {\n // create the actual tree\n String tree = \"(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F;\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n rootExpected.setName(\"F\");\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current.setDistance(0.1);\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setDistance(0.2);\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"E\");\n current.setDistance(0.5);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2.setDistance(0.3);\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n current2.setDistance(0.4);\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "public TentTree(int numRows, int numCols){\n\t\t// overloaded constructor that by default uses \"X\" for tent \n\t\t// and \"O\" (capital O not 0) for tree\n\t\tthis.numRows = numRows;\n\t\tthis.numCols = numCols;\n\t\tthis.tentSymbol = \"X\";\n\t\tthis.treeSymbol = \"O\";\n\t\tthis.grid = new HashMap<Position,String>();\n\t}", "public CommitNode(CommitNode parent, int id, String msg) {\r\n\t\tparentCommit = parent;\r\n\t\tID = id;\r\n\t\tmessage = msg;\r\n\t\tdate = Calendar.getInstance().getTime();\r\n\t\ttrackedFiles = new HashMap<String, Integer>();\r\n\t\tbranchesPartOf = new HashSet<String>();\r\n\t\tchildren = new HashMap<String, CommitNode>();\r\n\t}", "public static void main(String[] args) throws IOException {\r\n\t\t\r\n\t\ttry {\r\n\t\tString inputfile = args[0]+\".txt\";\r\n\t\tString outputfile = args[1]+\".txt\";\r\n\t\tString outputfile2 = args[2]+\".txt\";\r\n\r\n\r\n\r\n\t\tFileInputStream textFile1 = new FileInputStream(inputfile);\r\n\t\tScanner scan = new Scanner(textFile1);\r\n\t\tBinaryTree bst = new BinaryTree();\r\n\t\t\r\n\t\t//reading input files and storing\r\n\t\twhile(scan.hasNextLine()){\r\n\t\t\t\r\n\t\tString s = scan.nextLine();\r\n\t\tchar code=s.charAt(0);\r\n\t\tint id = Integer.parseInt(s.substring(1, 8));\r\n\t\t\tString nah=s.substring(8,8+25);\r\n\t\t\tString name= nah.trim();\r\n\t\t\tString department=s.substring(33,37);\r\n\t\t\tString program=s.substring(37,40);\r\n\t\t\tchar year=s.charAt(41);\r\n\t\t\tNode n= new Node();\r\n\t\t\tStudent stu = new Student();\r\n\t\t\tn.code=code;\r\n\t\t\tstu.id=id;\r\n\t\t\tstu.name=name;\r\n\t\t\tstu.department=department;\r\n\t\t\tstu.program=program;\r\n\t\t\tstu.year=year;\r\n\t\t\tif(code=='I')\r\n\t\t\t\tbst.insert(stu);\r\n\t\t\telse if(code=='D')\r\n\t\t\t\tbst.deleteKey(stu);\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Wrong code detected in input file. Should be I or D\");\r\n\t\t\t//System.out.println(\"Code: \" + code + \" ID: \" + stu.id + \" Name: \" + stu.name+ \" Dep: \" + stu.department + \" Program: \" + stu.program + \" Year: \"+ stu.year);\r\n\t\t}\r\n\t\t //Just changing the Stream so it will print to a file instead of console.\r\n\t\t PrintStream printStream = new PrintStream(new FileOutputStream(outputfile));\r\n\t\t System.setOut(printStream);\r\n\t\t System.out.println(\"\\nInorder traversal of binary tree is \");\r\n\t\t System.out.println(String.format(\"%-10s %-7s %-4s %-4s %-4s \",\"Name\",\" ID\",\"Department\",\"Program\",\"Year\"));\r\n\t\t bst.printInorder(outputfile);\r\n\t\t PrintStream printStream2 = new PrintStream(new FileOutputStream(outputfile2));\r\n\t\t System.setOut(printStream2);\r\n\t\t System.out.println(\"\\nBreadthFirst traversal of binary tree is \");\r\n\t\t System.out.println(String.format(\"%-10s %-7s %-4s %-4s %-4s \",\"Name\",\" ID\",\"Department\",\"Program\",\"Year\"));\r\n\t\t bst.printLevelOrder(outputfile2);\r\n\t\t \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"usage\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\r\n\t}", "public Tree()\n\t{\n\t\tsuper(\"Tree\", \"tree\", 0);\n\t}", "@SuppressWarnings(\"unchecked\") \r\n\tpublic CommitNode(int id, String message, CommitNode prev, HashMap<String,File> copyFromStag, HashMap<String,File> UnTracked){\r\n\t\ttry{\r\n\t\t\tthis.id = id;\r\n\t\t\tthis.message = message;\t\t\r\n\t\t\tnext = prev;\r\n\r\n\t\t\t//Credit:\r\n\t\t\t//http://stackoverflow.com/questions/11681202/simpledateformat-appears-to-fail-with-yyyy-mm-dd-hhmmss-sss0\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tthis.Time = sdf.format(Calendar.getInstance().getTime()).toString();\r\n\r\n\t\t\t//Commit Folder\t\t\r\n\t\t\tcomitfolder = System.getProperty(\"user.dir\") + File.separator+\".gitlet\"+File.separator+\"commit\"+File.separator + id + File.separator;\t\t\r\n\t\t\tnew File(comitfolder).mkdirs(); // create folder\r\n\r\n\t\t\tfiles = new HashMap<String,File>(); // initialize\r\n\r\n\t\t\t//Saving Current Commit file in files \r\n\t\t\tif (next != null){\r\n\t\t\t\tfiles =\t(HashMap<String, File>) next.getFile().clone();\r\n\t\t\t}\t\r\n\r\n\t\t\tif (UnTracked != null){\r\n\t\t\t\tfor (String name: UnTracked.keySet())\r\n\t\t\t\t\tfiles.remove(name);\t\r\n\t\t\t}\t\r\n\r\n\t\t\tif ( copyFromStag == null)\r\n\t\t\t\treturn;\r\n\r\n\t\t\tfor (File file: copyFromStag.values()){\r\n\t\t\t\t//Getting the last filename from commit folder\r\n\t\t\t\tString filePath = file.getAbsolutePath().substring(file.getAbsolutePath().indexOf(\".gitlet\")+8);\r\n\r\n\t\t\t\tif (filePath.indexOf(\"stagging\")!=-1){ // from stagging area\r\n\t\t\t\t\tfilePath = filePath.substring(filePath.indexOf(file.separator));\r\n\r\n\t\t\t\t\tFile dest = new File(comitfolder+filePath);\t\r\n\t\t\t\t\tif (!dest.exists())\r\n\t\t\t\t\t\tdest.mkdirs();\r\n\r\n\t\t\t\t\tFiles.copy(file.toPath(), dest.toPath(), StandardCopyOption.REPLACE_EXISTING);\r\n\t\t\t\t\tfiles.put(filePath.substring(1), dest);\t\r\n\t\t\t\t}\r\n\t\t\t\telse{ // from reference point in commit folder\r\n\t\t\t\t\tfilePath = filePath.substring(filePath.indexOf(file.separator)+1);\r\n\t\t\t\t\tfilePath = filePath.substring(filePath.indexOf(file.separator)+1);\t\t\t\t\t\r\n\t\t\t\t\tfiles.put(filePath, file);\t\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}catch(IOException e){\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "public void load()\r\n {\r\n \tfc.setAcceptAllFileFilterUsed(false);\r\n\t\tfc.setDialogTitle(\"Select the text file representing your organism!\");\r\n\t\tfc.setFileFilter(new FileNameExtensionFilter(\"Text Files (Organism)\", new String[]{\"txt\"}));\r\n\t\tif(fc.showOpenDialog(this)==JFileChooser.APPROVE_OPTION)\r\n\t\t\t//Try-Catch Block\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tbr=new BufferedReader(new FileReader(fc.getSelectedFile()));\r\n\t\t\t\tArrayList<Organism> treeTemp=new ArrayList<Organism>();\r\n\t\t \tString line=br.readLine();\r\n\t\t \tint x=0;\r\n\t\t \twhile(line!=null)\r\n\t\t \t{\r\n\t\t \t\t\tString[] genesSt=line.split(\" \");\r\n\t\t \t\t\tint[] genes=new int[genesSt.length];\r\n\t\t \t\t\tfor(int y=0; y<genesSt.length; y++)\r\n\t\t \t\t\t\tgenes[y]=Integer.parseInt(genesSt[y]);\r\n\t\t \t\t\t\t\r\n\t\t \t\t\ttreeTemp.add(new Organism(genes,x));\r\n\t\t \t\tline=br.readLine();\r\n\t\t \t\tx++;\r\n\t\t \t}\r\n\t\t \tbr.close();\r\n\t\t \te.setTree(treeTemp);\r\n\t\t \te.setParent(treeTemp.get(treeTemp.size()-1));\r\n\t\t\t\trepaint();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex)\r\n\t\t\t{\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n }", "private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }", "@Test\n public void testPhylogeneticTreeParserNamedLeafsNoDistance() {\n // create the actual tree\n String tree = \"(A,B,(C,D));\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "public void makeTree(String xmlFileName) throws Exception {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\tDocument doc = db.parse(new FileInputStream(xmlFileName));;\n\t\tElement xmlRoot = doc.getDocumentElement();\n\n\t\troot = new Node();\n\t\twalk(xmlRoot, root);\n\t}", "private void createNodes( DefaultMutableTreeNode top ) {\n DefaultMutableTreeNode leaf = null;\n \n leaf = new DefaultMutableTreeNode( new treeInfo(\"Insert Transaction\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Item\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Report\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Employee\") );\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Suplier\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Salesman\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Customer\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Commisioner\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Edit Transaction\"));\n top.add(leaf);\n leaf = new DefaultMutableTreeNode( new treeInfo(\"Producer\"));\n top.add(leaf);\n }", "private void expandTree(TreeNode tn,Set<Condition> conds)\n{\n List<RuleInstance> rules = tn.getRules();\n double tot = rules.size();\n if (tot <= 1) return;\n if (conds == null || conds.isEmpty()) return;\n\n Condition best = null;\n List<RuleInstance> bestp = null;\n List<RuleInstance> bestf = null;\n double bestv = 0;\n\n for (Condition c : conds) {\n List<RuleInstance> pr = new ArrayList<RuleInstance>();\n List<RuleInstance> fr = new ArrayList<RuleInstance>();\n for (RuleInstance ri : rules) {\n\t if (c.match(ri)) pr.add(ri);\n\t else fr.add(ri);\n }\n if (pr.size() == 0 || fr.size() == 0) continue;\n double vp = pr.size() / tot;\n double vf = fr.size() / tot;\n double e = - vp * Math.log(vp) - vf * Math.log(vf);\n if (e > bestv) {\n\t best = c;\n\t bestp = pr;\n\t bestf = fr;\n }\n }\n\n if (best == null) return;\n\n tn.setCondition(best,bestp,bestf);\n expandTree(tn.getPassTree(),conds);\n expandTree(tn.getFailTree(),conds);\n}", "private void readFile(){\n\t\tQuestionlistModel = new DefaultListModel();\n\t\tJFileChooser fc=new JFileChooser();\n\t\tfc.setDialogTitle(\"Choose file\");\n\t\t\n\t\tint returnVal=fc.showOpenDialog(new JFrame());\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File file = fc.getSelectedFile();\t\t\n\t\t\ttry {\n\t\t\n \tBufferedReader br = new BufferedReader(new FileReader(file));\n String strLine;\n //Read File Line By Line\n while ((strLine = br.readLine()) != null) {\n \t//Skipping blank lines\n \tif(strLine.length()>0){\n \t\t//Skipping buffered lines\n\t \tif(strLine.charAt(0) != '#'){\n\t if(strLine.equals(\"CTS\")){\n\t \tint i = 0;\n\t \tint j = (int) this.countLines(\"CTS\", \"CTE\",file);\n\t \tConditionTree = new String[j][6];\n\t \t//filling conditions tree\n\t \twhile(!(strLine = br.readLine()).equals(\"CTE\")){\n\t \t\t\n\t \t\ttry{\n\t\t \t\tString Cond[] = strLine.split(\",\");\n\t\t \t\tConditionTree[i][0] = Cond[0].trim(); \n\t\t \t\tConditionTree[i][1] = Cond[1].trim(); \n\t\t \t\tConditionTree[i][2] = Cond[2].trim(); \n\t\t \t\tConditionTree[i][3] = Cond[3].trim(); \n\t\t \t\tConditionTree[i][4] = Cond[4].trim(); \n\t\t \t\tConditionTree[i][5] = Cond[5].trim(); \n\n\t\t \t\ti++;\n\t \t\t}catch(NullPointerException ex){\n\t \t \tSystem.out.println(\"Error at line: \"+ i);//donothing\n\t \t } \n\t \t}\n\t }else if(strLine.equals(\"QTS\")){\n\t \tint i = 0;\n\t \tint j = (int) this.countLines(\"QTS\", \"QTE\",file);\n\t \tQuestionsTree = new String[j][2];\n\t \t//filling Questions tree \n\t \twhile(!(strLine = br.readLine()).equals(\"QTE\")){\n\t \t\t\n\t \t\ttry{\n\t\t \t\tString Qes[] = strLine.split(\",\");\n\t\t \t\tQuestionsTree[i][0] = Qes[0].trim(); \n\t\t \t\tQuestionsTree[i][1] = Qes[1].trim(); \n\n\t\t \t\ti++;\n\t \t\t}catch(NullPointerException ex){\n\t \t \t//donothing\n\t \t } \n\t \t}\n\t \t\n\t \t\n\t }\n\t \n\t \t}\n \t}\n }\n\t\tQuestionList.setModel(QuestionlistModel);\n }catch(java.lang.StringIndexOutOfBoundsException ex){\n \tSystem.out.println(\"String index out of bond.\");\n }\n\tcatch (Exception e) {\n\t\te.printStackTrace();\n }\n\t}\n\t\n}", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "public Node createHuffmanTree(File f) throws FileNotFoundException {\r\n File file = f;\r\n FileInputStream fi = new FileInputStream(file);\r\n List<Node> nodes = new LinkedList<>();\r\n\r\n// Creating a map, where the key is characters and the values are the number of characters in the file\r\n Map<Character, Integer> charsMap = new LinkedHashMap<>();\r\n try (Reader reader = new InputStreamReader(fi);) {\r\n int r;\r\n while ((r = reader.read()) != -1) {\r\n char nextChar = (char) r;\r\n\r\n if (charsMap.containsKey(nextChar))\r\n charsMap.compute(nextChar, (k, v) -> v + 1);\r\n else\r\n charsMap.put(nextChar, 1);\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n//// Sort the map by value and create a list\r\n// charsMap = charsMap.entrySet().stream().sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\r\n\r\n// Creating a list of Nodes from a map\r\n for (Character ch : charsMap.keySet()) {\r\n nodes.add(new Node(ch, charsMap.get(ch), null, null));\r\n }\r\n\r\n// Creating a Huffman tree\r\n while (nodes.size() > 1) {\r\n Node firstMin = nodes.stream().min(Comparator.comparingInt(n -> n.count)).get();\r\n nodes.remove(firstMin);\r\n Node secondMin = nodes.stream().min(Comparator.comparingInt(n -> n.count)).get();\r\n nodes.remove(secondMin);\r\n\r\n Node newNode = new Node(null, firstMin.count + secondMin.count, firstMin, secondMin);\r\n newNode.left.count = null;\r\n newNode.right.count = null;\r\n nodes.add(newNode);\r\n nodes.remove(firstMin);\r\n nodes.remove(secondMin);\r\n }\r\n\r\n// Why first? See algorithm!\r\n nodes.get(0).count = null;\r\n return nodes.get(0);\r\n }", "public HIRTree(){\r\n\t\t\r\n\t}", "public VPTree(String path, int size, String descriptorPath, String metricName, Progress progress) throws IOException {\n\t\tsuper(path, AbstractIndex.VP_TREE, size, descriptorPath, metricName);\n\n\t\tthis.optimise = true;\n\t\tthis.progress = progress;\n\t\t\n\t\tsuper.resize(dataOffset + super.size * NODE_SIZE);\n\t}", "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "public TreeNode deserialize(String data) {\n return build(new Scanner(data));\n }", "void buildTree(){\n while(second.hasNext()){\n String s = second.next();\n String[] arr = s.split(SPLIT);\n //descending sort according to num\n Arrays.sort(arr, (String s1, String s2)->{\n int a = this.keyToNum.getOrDefault(s1, 0);\n int b = this.keyToNum.getOrDefault(s2, 0);\n if (a <= b)\n return 1;\n else\n return -1;\n });\n\n //current node\n TreeNode curr = root;\n for (String item: arr){\n if (!keyToNum.containsKey(item))\n continue;\n if(!curr.containChild(item)){\n TreeNode node = curr.addChild(item);\n //change the current node\n curr = node;\n //add new node in table\n TableEntry e = table.get(keyToIdx.get(item));\n e.addNode(node);\n }else{\n curr = curr.getChild(item);\n curr.setNum(curr.getNum()+1);\n }\n }\n }\n /*\n this.root.print();\n for(TableEntry e: table){\n Iterator<TreeNode> it = e.getIterator();\n while(it.hasNext()){\n System.out.print(it.next().getItem()+\" \");\n }\n System.out.println();\n }\n */\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\t\tbbst rbt = new bbst();\n\t\t\n\t\t\t//File f1 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\test_10000000.txt\");\n\t\t\t\t//System.out.println(\" file name \" + args[0]);\n\t\t\tFile f1 = new File(args[0]);\n\t\t\tFileReader input = new FileReader(f1);\n\t\t\tBufferedReader in = new BufferedReader(input);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString line;\n\t\t\t\tline = in.readLine();\n\t\t\t\tint size = Integer.parseInt(line);\n\t\t\t\tint arr[][] = new int[size][2];\n\t\t\t\tint i=0;\n\t\t\t\twhile(line != null){\n\t\t\t\t\tline = in.readLine();\n\t\t\t\t\tif( line != null){\n\t\t\t\t\t\tint key = Integer.parseInt(line.split(\" \")[0]);\n\t\t\t\t\t\tint val = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t\t\tarr[i][0]=key;\n\t\t\t\t\t\tarr[i][1]=val;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trbt.buildInitialTree(arr,size);\n\t\t\t\t\n\t\t\t\tinput.close();\n\t\t\t\tin.close();\n\t\t\t\t//System.out.println(\" tree build\");\n\t\t\t\tString line1;\n\t\t\t\twhile ((line1 = br.readLine()) != null) {\n\t\t\t\t\t//System.out.println(\" line \" + line);\n\t \tif(line1.isEmpty())\n\t \t\tcontinue;\n\t \t//System.out.println(\" line \");\n\t \tStringTokenizer stringTokenizer = new StringTokenizer(line1, \" \");\n\t \t\n\t \twhile (stringTokenizer.hasMoreElements()) {\n\t\t\t\t\t \n\t \tString command = stringTokenizer.nextElement().toString();\n\t \tint param1 ;\n\t\t\t \tint param2;\n\t\t\t \t\t \n\t \n\t\t // System.out.println(command);\n\t\t switch (command.toString()) {\n\t\t case \"increase\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \n\t\t //System.out.println(Integer.parseInt(y.toString()));\n\t\t rbt.Increase(param1, param2);\n\t\t break;\n\t\t case \"reduce\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Reduce(param1,param2);\n\t\t break;\n\t\t case \"count\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Count(param1);\n\t\t break;\n\t\t case \"inrange\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t \tparam2 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.InRange(param1, param2);\n\t\t break;\n\t\t case \"next\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Next(param1);\n\t\t break;\n\t\n\t\t case \"previous\":\n\t\t \tparam1 = Integer.parseInt(stringTokenizer.nextElement().toString());\n\t\t rbt.Previous(param1);\n\t\t break;\n\t\t case \"quit\":\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t\t\t\t\t default : \n\t\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t\t \tbreak;\n\t\t }\n\t \t}\n\t }\n\t\t\t\t\n\t\t\t\t//File f2 = new File(\"C:\\\\Users\\\\Prakriti\\\\Downloads\\\\ads_project\\\\commands.txt\");\n\t\t\t\t//File f2 = new File(args[1]);\n\t\t\t\t//FileReader input2 = new FileReader(f2);\n\t\t\t\t//BufferedReader in2 = new BufferedReader(input2);\n\t\t\t\t//String s2 = in2.readLine();\n\t\t\t\t/*while(s != null){\n\t\t\t\t\ts = in.readLine();\n\t\t\t\t\tif(s!=null){\n\t\t\t\t\t\tswitch(s.split(\" \")[0]){\n\t\t\t\t\t case \"increase\" :\n\t\t\t\t\t \t//System.out.println(\" increase \");\n\t\t\t\t\t \tint key = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint incVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Increase(key, incVal);\n\t\t\t\t\t break; \n\t\t\t\t\t case \"reduce\" :\n\t\t\t\t\t \t //System.out.println(\" reduce \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tincVal = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println( \" key \" + key + \" incVal \" + incVal);\n\t\t\t\t\t \trbt.Reduce(key, incVal);\n\t\t\t\t\t break;\n\t\t\t\t\t case \"count\" :\n\t\t\t\t\t \t//System.out.println(\"count \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Count(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"inrange\" :\n\t\t\t\t\t \t//System.out.println(\" in range \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \tint key2 = Integer.parseInt(s.split(\" \")[2]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key + \" val \" + key2);\n\t\t\t\t\t \trbt.InRange(key, key2);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"next\" :\n\t\t\t\t\t \t//System.out.println(\" next\");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" key \" + key);\n\t\t\t\t\t \trbt.Next(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"previous\" :\n\t\t\t\t\t \t//System.out.println(\" prev \");\n\t\t\t\t\t \tkey = Integer.parseInt(s.split(\" \")[1]);\n\t\t\t\t\t \t//System.out.println(\" find prev of \" + key);\n\t\t\t\t\t \t//System.out.println(\" node in tree \" + rbt.getNode(root, key).id);\n\t\t\t\t\t \trbt.Previous(key);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t case \"quit\":\n\t\t\t\t\t \tSystem.exit(0);\n\t\t\t\t\t \tbreak;\n\t\t\t\t\t default : \n\t\t\t\t\t \tSystem.out.println(\" incorrect Input\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\t\t\n\t}", "private void crearTree(){\n tree= new Tree(\"PROGRAMAS\");\r\n tree.setImmediate(true);\r\n\r\n // Set tree to show the 'name' property as caption for items\r\n tree.setItemCaptionPropertyId(\"nombre\");\r\n \r\n tree.addValueChangeListener(e -> Notification.show(\"Value changed:\",String.valueOf(e.getProperty().getValue()),Type.TRAY_NOTIFICATION));\r\n\t}", "private static Node buildSmallerTree() {\n\t\tNode root = createNode(10);\n\t\troot.leftChild = createNode(25);\n\t\troot.rightChild = createNode(25);\n\t\troot.leftChild.leftChild = createNode(13);\n\t\troot.rightChild.rightChild = createNode(7);\n\t\troot.leftChild.rightChild = createNode(27);\n\t\t\n\t\treturn root;\n\t}" ]
[ "0.6012633", "0.5847484", "0.5669935", "0.56668955", "0.56015843", "0.5533498", "0.5477834", "0.5461683", "0.54151124", "0.5380017", "0.5314051", "0.52479553", "0.5229754", "0.5227132", "0.5211287", "0.51656216", "0.5150077", "0.5140002", "0.5137626", "0.51366866", "0.5129896", "0.51149094", "0.5105611", "0.5052789", "0.5050451", "0.50414854", "0.5025863", "0.50224286", "0.5020894", "0.5017379", "0.50166285", "0.50054365", "0.4992611", "0.49873504", "0.49870184", "0.49869454", "0.49853158", "0.49548683", "0.49501327", "0.49499705", "0.4942569", "0.49163038", "0.4897458", "0.48967728", "0.4896394", "0.4885381", "0.48819223", "0.4877039", "0.48679", "0.48609403", "0.4854462", "0.48510867", "0.48475054", "0.4839965", "0.48261416", "0.48248422", "0.48243603", "0.4818274", "0.48179066", "0.48166975", "0.48050493", "0.4795927", "0.47957206", "0.4784731", "0.47832987", "0.47791883", "0.4778755", "0.47766566", "0.4776484", "0.47744313", "0.47722197", "0.4771824", "0.47714362", "0.47676772", "0.47626448", "0.4758783", "0.4747123", "0.47467414", "0.4735587", "0.47295567", "0.47267917", "0.47233632", "0.47095495", "0.4707012", "0.47053063", "0.47021744", "0.4700645", "0.47001088", "0.46978012", "0.4695101", "0.4694648", "0.4694414", "0.4693367", "0.46917033", "0.46856374", "0.46803403", "0.46769425", "0.4672773", "0.4671306", "0.4670964" ]
0.6880173
0
get the priority queue
public void constructTree(){ PriorityQueue<HCNode> queue=new PriorityQueue<HCNode>(); for(int i=0;i<MAXSIZE;i++){ if(NOZERO){ if(occTable[i]!=0){ HCNode nnode=new HCNode(""+(char)(i-DIFF),occTable[i], null); queue.add(nnode); } }else{ HCNode nnode=new HCNode(""+(char)(i-DIFF),occTable[i], null); queue.add(nnode); } } //constructing the Huffman Tree HCNode n1=null,n2=null; while(((n2=queue.poll())!=null) && ((n1=queue.poll())!=null)){ HCNode nnode=new HCNode(n1.str+n2.str,n1.occ+n2.occ, null); nnode.left=n1;nnode.right=n2; n1.parent=nnode;n2.parent=nnode; queue.add(nnode); } if(n1==null&&n2==null){ System.out.println("oops"); } if(n1!=null) root=n1; else root=n2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nPriorityQueue pq= new PriorityQueue(15);//,new MyComparator123());\r\nSystem.out.println(pq.peek());\r\n//System.out.println(pq.element());\r\n/*for(int i=1;i<=10;i++)\r\npq.offer(i);\r\nSystem.out.println(pq);\r\nSystem.out.println(pq.poll());\r\n\r\nSystem.out.println(pq);*/\r\npq.offer(\"A\");\r\npq.offer(\"C\");\r\npq.offer(\"B\");\r\npq.offer(\"Z\");\r\nfor(int i=0;i<pq.size();i++)\r\nSystem.out.println(pq.peek());\r\n\t}", "public MyQueue() {\n queue = new PriorityQueue<>();\n }", "@DISPID(3)\r\n\t// = 0x3. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tint queuePriority();", "public interface IPriorityQueue {\n\n /**\n * Check whether the priority queue is empty\n * @return true if it is empty, otherwise false\n */\n Boolean isEmpty();\n\n /**\n * Add a priority and value into a list\n * @param priority priority to add to the priority queue\n * @param value value to add to the priority queue\n * @return a new priority queue with new priority and value\n */\n IPriorityQueue add(Integer priority, String value);\n\n /**\n * Gets the number of items in the priority queue.\n * @return The number of items in the priority queue.\n */\n Integer size();\n\n /**\n * returns the String at the front of the priority queue if the Queue is not empty.\n * @return The String at the front of the priority queue, if the Queue is not empty.\n * @throws EmptyPriorityQueueException EmptyPriorityQueueException if the priority queue is empty.\n */\n String peek() throws EmptyPriorityQueueException;\n\n /**\n * Removes and returns the String at the front of the priority queue if the priority queue is not empty.\n * @return A copy of the priority queue without the removed item..\n * @throws EmptyPriorityQueueException EmptyPriorityQueueException if the priority queue is empty.\n */\n IPriorityQueue pop() throws EmptyPriorityQueueException;\n\n}", "public int dequeue()\r\n\t{\r\n\t\tint dequeued = 0;\r\n\t\r\n\t\tif (empty())\r\n\t\t{\r\n\t\t\tdequeued = 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdequeued = (int) pq[lowestCurrentPriority].getHead();\r\n\t\t\tcurrentSize--;\r\n\t\t\tif (currentSize > 0)\r\n\t\t\t{\r\n\t\t\t\twhile (pq[lowestCurrentPriority].isEmpty())\r\n\t\t\t\t\tlowestCurrentPriority++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dequeued;\r\n\t}", "public NodeBase<V> dequeue() {\r\n \tif(!isEmpty()){\r\n \tNodeBase<V> min=queue[0];\r\n \tint j=0;\r\n for(int i=0;i<currentSize;i++){\r\n \t if(min.getPriority()>queue[i].getPriority()){\r\n \t\t min=queue[i];\r\n \t\t j=i;\r\n \t }\r\n }\r\n for(int x=j;x<currentSize-1;x++){\r\n \t queue[x]=queue[x+1];\r\n }\r\n \r\n currentSize--;\r\n \r\n return min;\r\n \t}\r\n \telse{\r\n \t\treturn null;\r\n \t}\r\n }", "public Task poll() \n\t{\n\t\tif(this.isEmpty())\n\t\t{\n\t\t\tSystem.out.println(\"Cannot remove from an empty list.\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint parent = 1;\n\t\tint child = 2;\n\t\tTask newTask = heap[1];\n\t\tTask temp = heap[size--];\n\t\t\n\t\twhile(child <= size)\n\t\t{\n\t\t\tif(child < size && heap[child].getPriority() > heap[child + 1].getPriority())\n\t\t\t{\n\t\t\t\tchild++;\n\t\t\t}\n\t\t\tif(temp.getPriority() <= heap[child].getPriority())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\theap[parent] = heap[child];\n\t\t\tparent = child;\n\t\t\tchild *= 2;\n\t\t\t\n\t\t}\n\t\t\n\t\theap[parent] = temp;\n\t\treturn newTask;\n\t}", "public int peek()\r\n\t{\r\n\t\treturn (int) pq[lowestCurrentPriority].getHead();\r\n\t}", "public PuzzleBoard poll() {\r\n if (isEmpty()) throw new NoSuchElementException(\"Priority queue underflow\");\r\n swap(1, N);\r\n PuzzleBoard min = pq[N--];\r\n sink(1);\r\n pq[N+1] = null; // avoid loitering and help with garbage collection\r\n if ((N > 0) && (N == (pq.length - 1) / 4)) resize(pq.length / 2);\r\n assert isMinHeap();\r\n return min;\r\n }", "public Priority getPriority() ;", "public static void main(String[] args) {\r\n\t\tPriorityQueue p1=new PriorityQueue();\r\n\t\t // System.out.println(\"p1.poll()=\"+p1.poll());\r\n // System.out.println(\"p1.remove()=\"+p1.remove());\r\n\t\tp1.add(12); \r\n\t\tp1.add(10);\r\n p1.add(20);\r\n // p1.add(2.3);\r\n p1.add(20);\r\n p1.add(100);\r\n p1.add(21);\r\n // p1.add(null);\r\n System.out.println(p1);\r\n System.out.println(\"p1.remove()=\"+p1.remove());\r\n System.out.println(\"p1.poll()=\"+p1.poll());\r\n System.out.println(p1);\r\n System.out.println(\"p1.peek()=\"+p1.peek()); \r\n System.out.println(\"p1.peek()=\"+p1.peek()); \r\n System.out.println(p1);\r\n\t}", "public Priority getPriority();", "IPriorityQueue pop() throws EmptyPriorityQueueException;", "private PriorityQueue<PCB> newRemainingQueue() {\n\n\t\t// Comparator for sorting low priorities first\n\t\tComparator<PCB> byLowestPriority =\n\t\t\t(p1, p2) -> new Integer(p1.getPriority()).compareTo(p2.getPriority());\n\n\t\treturn new PriorityQueue<>(byLowestPriority);\n\t}", "@DISPID(115)\r\n\t// = 0x73. The runtime will prefer the VTID if present\r\n\t@VTID(110)\r\n\tint queuePriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "public static void main(String[] args) {\n\t\t\r\n\t\tQueue<Item> pq = new PriorityQueue<Item>();\r\n\t\t\r\n\t\tpq.add(new Item(154,\"java\"));\r\n\t\tpq.add(new Item(45,\"c++\"));\r\n\t\tpq.add(new Item(4,\"c\"));\r\n\t\tpq.add(new Item(154,\"javascript\"));\r\n\t\tpq.add(new Item(160,\"html\"));\r\n\t\t\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t\tpq.poll();\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(pq);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n Queue<Integer> values=new PriorityQueue<>();\r\n values.add(87);\r\n\t values.add(97);\r\n\t values.add(34);\r\n\t values.add(92);\r\n\t System.out.println(values);\r\n\t}", "public int getPriority();", "public int getPriority();", "public int getPriority() \n {\n return priority;\n }", "public WBLeftistHeapPriorityQueueFIFO() {\n\t\theap = new WBLeftistHeap<>();\n\t}", "int priority();", "int priority();", "public PuzzleBoard peek() {\r\n if (isEmpty()) throw new NoSuchElementException(\"Priority queue underflow\");\r\n return pq[1];\r\n }", "private PQHeap makeQueue(){\n \tPQHeap queue = new PQHeap(frequency.length);\n \tfor (int i = 0; i < frequency.length; i++) {\n \t\tqueue.insert(new Element(frequency[i], new HuffmanTempTree(i)));\n \t}\n \treturn queue;\n \t}", "public int getPriority() \n {\n return priority;\n }", "public Queue getQueue() {\n return new Queue();\n }", "public T poll() {\n if(size==0)\n return null;\n else {\n T temp= (T) pq[0];\n pq[0]=pq[size-1];\n size--;\n percolateDown(0);\n return temp;\n\n\n }\n }", "@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }", "public int getPriority()\n {\n return priority;\n }", "public PriorityQueue()\r\n\t{\r\n\t\tcurrentSize = 0;\r\n\t\tlowestCurrentPriority = Integer.MAX_VALUE;\r\n\t\tpq = new DLL[MAXIMUM_PRIORITY + 1];\r\n\t\tfor (int i = 0; i < pq.length; i++)\r\n\t\t{\r\n\t\t\tpq[i] = new DLL();\r\n\t\t}\r\n\t}", "String peek() throws EmptyPriorityQueueException;", "public interface PriorityQueue<E, P> {\n\t\n\t/** return the comparator used for ordering priorities */\n\tpublic Comparator<? super P> comparator();\n\t\n\t/** Return the number of elements in this. Runs in O(1) time. */\n\tpublic int size();\n\t\n\t/**\n\t * Remove and return the largest element of this, according to comparator()\n\t * Runs in O(log n) time.\n\t * \n\t * @throws NoSuchElementException if this is empty \n\t */\n\tpublic E poll() throws NoSuchElementException;\n\t\n\t/**\n\t * Return the largest element of this, according to comparator().\n\t * Runs in O(1) time.\n\t * \n\t * @throws NoSuchElementException if this is empty.\n\t */\n\tpublic E peek() throws NoSuchElementException;\n\t\n\t/**\n\t * Add the element e with priority p to this. Runs in O(log n + a) time,\n\t * where a is the time it takes to append an element to an ArrayList of size\n\t * n.\n\t * \n\t * @throws IllegalArgumentException if this already contains an element that\n\t * is equal to e (according to .equals())\n\t */\n\tpublic void add(E e, P p) throws IllegalArgumentException;\n\n\t/**\n\t * Change the priority associated with e to p.\n\t *\n\t * @throws NoSuchElementException if this does not contain e.\n\t */\n\tpublic void changePriority(E e, P p) throws NoSuchElementException;\n}", "int getPriority( int priority );", "public T poll() {\n if (this.size > 0) {\n T min = (T) pq[0];\n pq[0] = pq[this.size - 1];\n size--;\n percolateDown(0);\n return min;\n } else {\n return null;\n }\n }", "public int priority()\n\t{\n\t\treturn priority;\n\t}", "public int priority(){\n return 0; //TODO codavaj!!\n }", "@Override\r\n public CustomProcess peekBest() {\r\n if (data[0] == null || isEmpty()) {\r\n throw new NoSuchElementException(\"queue is empty\");\r\n }\r\n return data[0];\r\n }", "public int getPriority(){\n return priority;\n }", "public abstract int priority();", "public abstract int getPriority();", "public abstract int getPriority();", "public abstract int getPriority();", "public Priority getPriority() {\r\n return this.priority;\r\n }", "IPriorityQueue add(Integer priority, String value);", "public interface PQueue<T> {\n\n void add(T item, int priority) throws InterruptedException;\n\n T removeMin();\n\n}", "public static void main(String[] args)\n\t{\n\t\tdouble mine = (29 + 27 + 29 + /*24*/ 28 + 30 + 50 + 55 + 17 + 19 + 16 + 18 + 17 + 17 + 20 + 18 + 20 + 82 + 81 + 87 + 215);\n\t\t\n\t\tdouble pote = (30 + 30 + 30 + 30 + 30 + 60 + 30 + 30 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 20 + 100 + 100 + 100 + 250);\n\t\t\n\t\tdouble grade = (mine / pote) * 100;\n\t\tSystem.out.println(grade);\n\t\t\n\t\tPriorityQueue<String> pq = new PriorityQueue<String>();\n\t\tPriorityQueue<String> pq2 = new PriorityQueue<String>();\n\t\tPriorityQueue<Character> pq3 = new PriorityQueue<Character>();\n\t\t/*\n\t\tPriorityQueue pq4 = new PriorityQueue();\n\t\tpq4.enqueuePQ(2, \"F\");\n\t\tpq4.enqueuePQ(2, 32);\n\t\tSystem.out.println(pq4.toString());\n\t\t*/\n\t\t\n\t\t\n\t\tpq3.enqueuePQ(3, 'A');\n\t\tpq3.enqueuePQ(3, 'B');\n\t\tpq3.enqueuePQ(3, 'C');\n\t\tSystem.out.println(pq3.toString());\n\t\t\n\t\tSystem.out.println(pq3.dequeuePQ());\n\t\tSystem.out.println(pq3.peekPQ());\n\t\t\n\t\tpq2.enqueuePQ(2, \"two\");\n\t\tpq2.enqueuePQ(3, \"three\");\n\t\tpq2.enqueuePQ(1, \"one\");\n\t\t//pq2.enqueuePQ(-2, \"neg two\");\n\t\t//pq2.enqueuePQ(3, \"three 2\");\n\t\t//pq2.enqueuePQ(-2, \"neg two 2\");\n\t\t//pq2.enqueuePQ(1, \"one 2\");\n\t\tSystem.out.println(pq2.toString());\n\t\t\n\t\tSystem.out.println(pq2.dequeuePQ());\n\t\tSystem.out.println(pq2.peekPQ());\n\t\tSystem.out.println(pq2.toString());\n\t\t\n\t\tSystem.out.println(pq.isEmpty());\n\t\tpq.enqueuePQ(3, \"three\");\n\t\tSystem.out.println(pq.toString());\n\t\tpq.enqueuePQ(5, \"five\");\n\t\tSystem.out.println(pq.isEmpty());\n\t\tSystem.out.println(pq.toString());\n\t\tSystem.out.println(pq.dequeuePQ());\n\t\tSystem.out.println(pq.isEmpty());\n\t\tSystem.out.println(pq.dequeuePQ());\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(pq.peekPQ());\n\t\t}\n\t\tcatch (PQException ex)\n\t\t{\n\t\t\tSystem.out.println(\"PEEK EXCEPTION CAUGHT\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(pq.dequeuePQ());\n\t\t}\n\t\tcatch (PQException ex)\n\t\t{\n\t\t\tSystem.out.println(\"Dequeue EXCEPTION CAUGHT\");\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(pq.isEmpty());\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"DONE\");\n\t\t\n\t\t\n\t\t\n\t}", "public java.lang.Object getPriority() {\n return priority;\n }", "public static void main(String[] args) {\n\t\tPriorityQueue<Integer> pqueue = new PriorityQueue<>(Comparator.reverseOrder()); //ordered as per max heap\r\n\t\tpqueue.add(3);\r\n\t\tpqueue.add(1);\r\n\t\tpqueue.add(4);\r\n\t\tpqueue.add(2);\r\n\t\tSystem.out.println(pqueue); \r\n\r\n\t\tpqueue.poll(); //the element with the lowest priority, i.e., smallest element will be removed\r\n\t\tSystem.out.println(pqueue);\r\n\r\n\t\tSystem.out.println(pqueue.peek()); //the next element to be removed\r\n\t}", "private static PriorityQueue<ByteBuffer> getReclaimed() {\n\n return reclaimed;\n }", "public int getPriority(){\n\t\treturn priority;\n\t}", "public interface PriorityQueue<T> {\n\t/**\n\t * Returns true if priority queue has no elements\n\t *\n\t * @return true if the priority queue has no elements\n\t */\n\tpublic boolean isEmpty();\n\n\n\t/**\n\t * Returns the number of elements in this priority queue.\n\t *\n\t * @return the number of elements in this priority queue.\n\t */\n\tpublic int size();\n\n\n\t/**\n\t * Returns the minimum element in the priority queue\n\t *\n\t * @return the minimum element or throw EmptyHeapException if empty\n\t */\n\tpublic T findMin();\n\n\n\t/**\n\t * Inserts a new element into the priority queue.\n\t * Duplicate values ARE allowed.\n\t *\n\t * @param x element to be inserted into the priority queue.\n\t */\n\tpublic void insert(T x);\n\n\n\t/**\n\t * Removes and returns the minimum element from the priority queue.\n\t *\n\t * @return the minimum element or throw EmptyHeapException if empty\n\t */\n\tpublic T deleteMin();\n\n\n\t/**\n\t * Erases all elements from the priority queue.\n\t */\n\tpublic void makeEmpty();\n\n}", "public int getPriority() {\n return this.priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "PriorityQueue(boolean transferPriority) \n\t\t{\n\t\t\tthis.transferPriority = transferPriority;\n\t\t\twaitQueue = new java.util.PriorityQueue<KThread>(1, new comparePriority()); //Initialize the waitQueue to a java.util.PriorityQueue with a custom comparator defined below\n\t\t}", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int top() {\n int size=queue.size();\n for (int i = 0; i < size-1; i++) {\n int temp=queue.poll();\n queue.add(temp);\n }\n int top=queue.poll();\n queue.add(top);\n return top;\n }", "private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n if(highPriorityMode) {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, HighPriorityModeComparator.COMPARATOR);\n } else {\n newQueue = new PriorityBlockingQueue<>(DEFAULT_CAPACITY_SIZE, NoPriorityModeComparator.COMPARATOR);\n }\n this.queue.drainTo(newQueue);\n this.queue = newQueue;\n latch.countDown();\n }", "public Integer getPriority() {\n return priority;\n }", "public Integer getPriority() {\n return priority;\n }", "public Integer getPriority() {\n return priority;\n }", "public static void main(String[] args)\n {\n PriorityQueue<Integer> pQueue =\n new PriorityQueue<>(Collections.reverseOrder());\n\n // Adding items to the pQueue using add()\n pQueue.add(10);\n pQueue.add(30);\n pQueue.add(20);\n pQueue.add(400);\n\n // Printing the most priority element\n System.out.println(\"Head value using peek function:\" +\n pQueue.peek());\n\n // Printing all elements\n System.out.println(\"The queue elements:\");\n for (Integer integer : pQueue) System.out.println(integer);\n\n // Removing the top priority element (or head) and\n // printing the modified pQueue using poll()\n pQueue.poll();\n System.out.println(\"After removing an element \"\n + \"with poll function:\");\n for (Integer integer : pQueue) System.out.println(integer);\n\n // Removing 30 using remove()\n pQueue.remove(30);\n System.out.println(\"after removing 30 with\"\n + \" remove function:\");\n for (Integer integer : pQueue) System.out.println(integer);\n\n // Check if an element is present using contains()\n boolean b = pQueue.contains(20);\n System.out.println(\"Priority queue contains 20 \"\n + \"or not?: \" + b);\n\n // Getting objects from the queue using toArray()\n // in an array and print the array\n Object[] arr = pQueue.toArray();\n System.out.println(\"Value in array: \");\n for (Object o : arr) System.out.println(\"Value: \" + o.toString());\n }", "public Priority getPriority() {\n\t\treturn priority;\n\t}", "public MaxPriorityQueue() {\n heap = new MaxHeap<>();\n }", "int getPriorityOrder();", "public static void main(String[] arg) {\n\t\tMyPriorityQueue pq = new MyPriorityQueue();\n\n\t\tpq.enqueue(2, \"apple\");\t// medium priority\n\t\tpq.enqueue(3, \"candy\");\t// low priority\n\t\tpq.enqueue(1, \"milk\");\t// high priority\n\t\tpq.enqueue(1, \"cheese\");// high priority\n\t\tpq.enqueue(2, \"banana\");// medium priority\n\t\tpq.peek();\n\t\tpq.dequeue();\t\t\t// ----> milk come out first although it was not the first one enter the queue!\n\t\tpq.peek();\n\t\tpq.enqueue(3, \"gum\");\t// low priority\n\t\tpq.dequeue();\t\t\t// ----> cheese come out next\n\t\tpq.peek();\n\t\tpq.enqueue(2, \"kiwi\");\t// low priority\n\t\tpq.dequeue();\t\t\t// apple come out after ALL high priority items had dequeued.\n\t\tpq.dequeue();\t\t\t// ----> banana\n\t\tpq.dequeue();\t\t\t// ----> kiwi\n\t\tpq.peek();\n\t\tpq.enqueue(1, \"fish\");\t// high priority\n\t\tpq.enqueue(2, \"apple\");\t// medium priority\n\t\tpq.peek();\n\t\tpq.dequeue();\t\t\t// ----> fish\n\t\tpq.dequeue();\t\t\t// ----> apple\n\t\tpq.dequeue();\t\t\t// ----> kiwi\n\t\tpq.dequeue();\t\t\t// ----> candy\n\t\tpq.peek();\n\t\tpq.enqueue(2, \"kiwi\");\t// medium priority\n\t\tpq.enqueue(1, \"cheese\");// high priority\n\t\tpq.peek();\n\t\n\t}", "String getPriority();", "String getPriority();", "String getPriority();", "public PriorityQueue() {\n\t\theap = new ArrayList<Pair<Integer, Integer>>();\n\t\tlocation = new HashMap<Integer, Integer>();\n\t}", "public int getPriority(){\n\t\t\n\t\treturn this.priority;\n\t}", "public int top() {\n int size = queue.size();\n for (int i = 0; i < size - 1; i++) {\n Integer poll = queue.poll();\n queue.offer(poll);\n }\n Integer poll = queue.poll();\n queue.offer(poll);\n return poll;\n }", "public double getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int top() {\n return queue1.peek();\n }", "public ArrayPriorityQueue()\n { \n\tqueue = new ArrayList();\n }", "void enqueue(int x, int p){\n for(int i=0;i<size;i++){\n if(values[i]==(-1)){\n values[i] = x;\n priorities[i] = p;\n break;\n }\n }\n }", "public int getQueuePosition();", "public E poll() {\n\t\tif (apq.isEmpty())\n\t\t\treturn null;\n\t\tE retValue = apq.get(1);\n\t\tswap(1, apq.size() - 1); // -1 changed, change back if it doesnt work\n\t\tapq.remove(apq.size() - 1); // -1 changed, change back if it doesnt work\n\t\tdownheap(1);\n\t\treturn retValue; // implement this method\n\t}", "public PriorityQueue()\n {\n // initialise instance variables\n heap = new PriorityCustomer[100];\n size = 0;\n }", "public int getPriority()\n\t{\n\t\treturn mPriority;\n\t}", "public BigDecimal getPriority() {\n\t\treturn priority;\n\t}", "T poll(){\n if(isEmpty()){\n return null;\n }\n T temp = (T) queueArray[0];\n for(int i=0; i<tail-1;i++){\n queueArray[i] = queueArray[i+1];\n }\n tail--;\n return temp;\n }", "Collection<QueuedPrintJob> getQueue();" ]
[ "0.71433717", "0.70332706", "0.6765829", "0.67609817", "0.6747415", "0.67450196", "0.6733466", "0.67133564", "0.6710211", "0.6688525", "0.6682364", "0.66664666", "0.6651495", "0.66511995", "0.66396415", "0.662486", "0.662486", "0.662486", "0.662486", "0.662486", "0.662486", "0.662486", "0.662486", "0.6559213", "0.6552736", "0.6523599", "0.6523599", "0.6511132", "0.65105057", "0.65056777", "0.65056777", "0.6478509", "0.6471745", "0.6465967", "0.6452071", "0.641903", "0.6417975", "0.6408391", "0.64001423", "0.63716096", "0.63479495", "0.634259", "0.6310653", "0.6302398", "0.6300431", "0.6295841", "0.62938714", "0.6291964", "0.6275681", "0.6275681", "0.6275681", "0.6272081", "0.62572414", "0.6255606", "0.6254097", "0.6251474", "0.62507945", "0.6248532", "0.6226583", "0.6226505", "0.6226264", "0.6225722", "0.6225722", "0.6225722", "0.6225722", "0.6225722", "0.6225722", "0.62176555", "0.6213904", "0.6207214", "0.61955273", "0.61865777", "0.6178656", "0.61557305", "0.61557305", "0.61470145", "0.61280435", "0.61257607", "0.6123931", "0.61226094", "0.61193866", "0.61193866", "0.61193866", "0.6116437", "0.6106989", "0.61010855", "0.60624677", "0.6051687", "0.6051687", "0.6051687", "0.6051687", "0.60481185", "0.60460186", "0.60388756", "0.6036974", "0.60292816", "0.60286427", "0.60227937", "0.6021945", "0.6019913", "0.6008902" ]
0.0
-1
encode the tree here
public String printBFSTree(){ if(root==null)return ""; String binstr=""; String valuestr=""; String codestr=""; LinkedList<HCNode> list=new LinkedList<HCNode>(); root.code=""; list.add(root); HCNode node; while(list.size()>0){ node=list.getFirst(); if(node.left==null && node.right==null){ binstr=binstr+"0"; valuestr=valuestr+((byte)node.str.charAt(0))+"\n"; codestr=codestr+node.code; }else{ binstr=binstr+"1"; } if(node.left!=null){node.left.code=node.left.parent.code+"0";list.addLast(node.left);} if(node.right!=null){node.right.code=node.right.parent.code+"1";list.addLast(node.right);} list.removeFirst(); } String res=binstr+"\n"+valuestr+codestr+"\n"; System.out.println(binstr); System.out.print(valuestr); System.out.println(codestr); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }", "public TreeNode encode(Node root) {\n return en(root);\n }", "private void encodeTree(BitOutputStore output, SymbolNode root) {\n output.appendBits(8, nLeafNodes - 1);\n SymbolNode[] path = new SymbolNode[256];\n int[] pathBranch = new int[256];\n path[0] = root;\n pathBranch[0] = 0;\n int depth = 1;\n while (depth > 0) {\n int index = depth - 1;\n SymbolNode pNode = path[index];\n int pBranch = pathBranch[index];\n // pBranch is set as follows:\n // 0 we've just arrived at the node and have not yet\n // identified whether it is a branch or a leaf.\n // we have not yet traversed any of its children\n //\n // 1 we traversed down the left branch and need to traverse\n // down the right\n //\n // 2 we have traversed both branches and are on our way up\n\n switch (pBranch) {\n case 0:\n // we've just pushed the node on the stack and have not yet\n // identified whether it is a leaf or a branch.\n if (pNode.isLeaf) {\n output.appendBit(1); // terminal\n output.appendBits(8, pNode.symbol);\n BitOutputStore bitpath = encodePath(depth, path);\n pNode.nBitsInCode = bitpath.getEncodedTextLength();\n pNode.code = bitpath.getEncodedText();\n // pop the stack\n depth--;\n index--;\n // pro-forma, clear the stack variables\n pathBranch[depth] = 0;\n path[depth] = null;\n\n } else {\n output.appendBit(0); // non-terminal\n pathBranch[index] = 1;\n pathBranch[depth] = 0;\n path[depth] = pNode.left;\n depth++;\n }\n break;\n case 1:\n pathBranch[index] = 2;\n pathBranch[depth] = 0;\n path[depth] = pNode.right;\n depth++;\n break;\n case 2:\n // we're on our way up\n pathBranch[index] = 0;\n path[index] = null;\n depth--;\n break;\n default:\n // error condition, won't happen\n throw new IllegalStateException(\"Internal error encoding tree\");\n }\n }\n }", "public TreeNode encode(Node root) {\n if (root == null) {\n return null;\n }\n TreeNode head = new TreeNode(root.val);\n head.left = en(root.children);\n return head;\n }", "public TreeNode encode(Node root) {\n\t\t\tif (root == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTreeNode head = new TreeNode(root.val);\n\t\t\thead.left = en(root.children);\n\t\t\treturn head;\n\t\t}", "private void writeTree() throws IOException {\n\t\ttry (final BufferedWriter writer = Files.newBufferedWriter(destinationFile, CHARSET)) {\n\t\t\tfinal char[] treeString = new char[512];\n\t\t\tint treeStringLength = 0;\n\t\t\tfor (final CharacterCode cur : sortedCodes) {\n\t\t\t\ttreeString[treeStringLength++] = cur.getChar();\n\t\t\t\ttreeString[treeStringLength++] = (char) cur.getCode().length();\n\t\t\t}\n\t\t\tif (treeStringLength > 0xff) { //tree length will not always be less than 255, we have to write it on two bytes\n\t\t\t\tfinal int msb = (treeStringLength & 0xff00) >> Byte.SIZE;\n\t\t\t\ttreeStringLength &= 0x00ff;\n\t\t\t\twriter.write(msb);\n\t\t\t} else {\n\t\t\t\twriter.write(0);\n\t\t\t}\n\t\t\twriter.write(treeStringLength);\n\t\t\twriter.write(treeString, 0, treeStringLength);\n\t\t}\n\t}", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "public void encodeTreeHelper(HuffmanNode node, StringBuilder builder){\n if(node.getLeft() == null && node.getRight()== null && !node.getCharAt().equals(null))\n encodedTable.put(node.getCharAt(),builder.toString());\n else{\n encodeTreeHelper(node.getLeft(), builder.append(\"0\"));\n encodeTreeHelper(node.getRight(), builder.append(\"1\"));\n }\n \n if(builder.length()>0)\n builder.deleteCharAt(builder.length()-1);\n }", "public String serialize(TreeNode root) {\n ArrayList<Integer> buffer = new ArrayList<>();\n serialize(root, buffer);\n int[] ints = buffer.stream().mapToInt(i -> i).toArray();\n ByteBuffer byteBuf = ByteBuffer.allocate(ints.length * 4);\n IntBuffer intBuf = byteBuf.order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n intBuf.put(ints);\n String result = Base64.getEncoder().encodeToString(byteBuf.array());\n //System.out.println(result);\n return result;\n }", "public static void main(String[] args) {\n\n\n\t\tArrayList<Node> N = new ArrayList<Node>();\n\t\t\n\t\t/*\n\t\t * ##### Encoding Model 2 ###### \n\t\t */\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the privilege nodes\n\t\t */\n\t\tfor(int i=1; i<7; i++)\n\t\t{\n\t\t\tN.add(new Node(\"p\"+i, 1));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the exploit nodes\t\t \n\t\t */\n\t\tfor(int i=1; i<8; i++)\n\t\t{\n\t\t\tN.add(new Node(\"e\"+i, 2));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Encoding the child nodes\n\t\t */\n\t\tfor(int i=1; i<12; i++)\n\t\t{\n\t\t\tN.add(new Node(\"c\"+i, 0));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Assigning the children and parent(s) for each node according to model 2\n\t\t */\n\t\t\n\t\tArrayList<Node> nil = new ArrayList<Node>();\n\t\t\n\t\tN.get(0).setParents(nil);\n\t\tN.get(0).addChild(N.get(6));\n\t\t\n\t\tN.get(6).addParent(N.get(0));\n\t\tN.get(6).addChild(N.get(1));\n\t\tN.get(6).addChild(N.get(13));\n\t\tN.get(6).addChild(N.get(14));\n\t\t\n\t\tN.get(1).addParent(N.get(6));\n\t\tN.get(1).addChild(N.get(7));\n\t\tN.get(1).addChild(N.get(8));\n\t\t\n\t\tN.get(7).addParent(N.get(1));\n\t\tN.get(7).addChild(N.get(15));\n\t\tN.get(7).addChild(N.get(2));\n\t\t\n\t\tN.get(2).addParent(N.get(7));\n\t\tN.get(2).addChild(N.get(10));\t\t\n\t\t\n\t\tN.get(8).addParent(N.get(1));\n\t\tN.get(8).addChild(N.get(16));\n\t\tN.get(8).addChild(N.get(3));\n\t\t\n\t\tN.get(3).addParent(N.get(8));\n\t\tN.get(3).addChild(N.get(9));\n\t\t\n\t\tN.get(10).addParent(N.get(2));\n\t\tN.get(10).addChild(N.get(5));\n\t\tN.get(10).addChild(N.get(19));\n\t\tN.get(10).addChild(N.get(20));\n\t\t\n\t\tN.get(9).addParent(N.get(3));\n\t\tN.get(9).addChild(N.get(4));\n\t\tN.get(9).addChild(N.get(17));\n\t\tN.get(9).addChild(N.get(18));\n\t\t\n\t\tN.get(4).addParent(N.get(9));\n\t\tN.get(4).addChild(N.get(12));\n\t\t\n\t\tN.get(5).addParent(N.get(10));\n\t\tN.get(5).addChild(N.get(11));\n\t\t\n\t\tN.get(12).addParent(N.get(4));\n\t\tN.get(12).addChild(N.get(22));\n\t\tN.get(12).addChild(N.get(23));\n\t\t\n\t\tN.get(11).addParent(N.get(5));\n\t\tN.get(11).addChild(N.get(21));\n\t\tN.get(11).addChild(N.get(23));\n\t\t\n\t\tN.get(13).addParent(N.get(6));\n\t\tN.get(14).addParent(N.get(6));\n\t\tN.get(15).addParent(N.get(7));\n\t\tN.get(16).addParent(N.get(8));\n\t\tN.get(17).addParent(N.get(9));\n\t\tN.get(18).addParent(N.get(9));\n\t\tN.get(19).addParent(N.get(10));\n\t\tN.get(20).addParent(N.get(10));\n\t\tN.get(21).addParent(N.get(11));\n\t\tN.get(22).addParent(N.get(12));\n\t\tN.get(23).addParent(N.get(11));\n\t\tN.get(23).addParent(N.get(12));\n\t\t\n\t\t\n\t\t/*\n\t\t * Encoding the C,I,A values for each node\n\t\t */\n\t\t\n\t\tN.get(0).setImpacts(4, 4, 4);\n\t\tN.get(1).setImpacts(1, 2, 3);\n\t\tN.get(2).setImpacts(2, 2, 1);\n\t\tN.get(3).setImpacts(1, 2, 1);\n\t\tN.get(4).setImpacts(1, 1, 1);\n\t\tN.get(5).setImpacts(3, 2, 3);\n\t\tN.get(13).setImpacts(3,3,3);\n\t\tN.get(14).setImpacts(3,3,3);\n\t\tN.get(15).setImpacts(3,3,3);\n\t\tN.get(16).setImpacts(3,3,3);\n\t\tN.get(17).setImpacts(3,3,3);\n\t\tN.get(18).setImpacts(3,3,3);\n\t\tN.get(19).setImpacts(3,3,3);\n\t\tN.get(20).setImpacts(3,3,3);\n\t\tN.get(21).setImpacts(3,3,3);\n\t\tN.get(22).setImpacts(3,3,3);\n\t\tN.get(23).setImpacts(2,2,1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t * This block helps see the setup of the whole tree. \n\t\t * Comment out if not required to see the parent children relationship of each node.\n\t\t */\n\t\t\n\t\tfor(int i=0; i<24; i++)\n\t\t{\n\t\t\tSystem.out.println(\"\\n\\n\" + N.get(i).getName() + \" < C=\" + N.get(i).getImpactC() + \", I=\" + N.get(i).getImpactI() + \", A=\" + N.get(i).getImpactA() + \" >\" );\n\t\t\tSystem.out.println(\"Parents: \");\n\t\t\tfor(int j=0; j<N.get(i).getParents().size(); j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getParents().get(j).getName() + \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\nChildren: \");\n\t\t\tfor(int k=0; k<N.get(i).getChildren().size(); k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(N.get(i).getChildren().get(k).getName() + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Calling the method which will perform the C,I,A impact analysis \n\t\t */\n\t\t\n\t\t//Node n = new Node(); //Commented out as extended Main to Node and declared impactAnalysis() as static \n\t\t\n\t\tImpactAnalyzer ia = new ImpactAnalyzer();\n\t\tia.analyze(2, 2, 1, N);\n\t\t\n\t\t\n\t\t\n\t}", "public String treeJSON() {\n\t\ttry{\r\n\t\tList trees = this.getTransedTrees();\r\n\t\tString result = this.treeJSON(trees);\r\n\t\treturn result;\r\n\t\t}catch(Exception e){\r\n\t\t\tlog.info(\">>>>faceye error in method:treeJSON() is\"+e.toString());\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "public String serialize(TreeNode root) {\n StringBuffer rst = preorderTraversal(root, new StringBuffer());\n return rst.toString();\n\n }", "private static void buildNewEncodingTableUtil(Node root , Map<Character,String> newTable , List<Character> path) {\n\t\t\n\t\tif(root!=null) {\n\t\t\t\n\t\t\tif(root.left==null && root.right==null) {//Leaf.. Put the sequence into the map.\n\t\t\t\t\n\t\t\t\tString encoding = path.stream().map(e->e.toString()).collect(Collectors.joining()); //Good stuff\n//\t\t\t\tSystem.out.println(\"--encoding : \" + encoding);\n\t\t\t\tnewTable.put(root.data, encoding);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpath.add('0');\n\t\t\t\tbuildNewEncodingTableUtil(root.left, newTable, path);\n\t\t\t\tpath.remove(path.size()-1);\n\t\t\t\tpath.add('1');\n\t\t\t\tbuildNewEncodingTableUtil(root.right, newTable, path);\n\t\t\t\tpath.remove(path.size()-1);\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "@Override\r\n\tpublic void buildTree() {\r\n\t\t\r\n\t\t// root level \r\n\t\trootNode = new TreeNode<String>(\"\");\r\n\t\t\r\n\t\t//first level\r\n\t\tinsert(\".\", \"e\");\r\n\t\tinsert(\"-\", \"t\");\r\n\t\t\r\n\t\t//second level\r\n\t\t\r\n\t\tinsert(\". .\", \"i\");\r\n\t\tinsert(\".-\", \"a\");\r\n\t\tinsert(\"-.\", \"n\"); \r\n\t\tinsert(\"--\", \"m\");\r\n\t\t\r\n\t\t//third level\r\n\t\tinsert(\"...\", \"s\");\r\n\t\tinsert(\"..-\", \"u\");\r\n\t\tinsert(\".-.\", \"r\");\r\n\t\tinsert(\".--\", \"w\");\r\n\t\tinsert(\"-..\", \"d\");\r\n\t\tinsert(\"-.-\", \"k\");\r\n\t\tinsert(\"--.\", \"g\");\r\n\t\tinsert(\"---\", \"o\");\r\n\t\t\r\n\t\t//fourth level\r\n\t\tinsert(\"....\", \"h\");\r\n\t\tinsert(\"...-\", \"v\");\r\n\t\tinsert(\"..-.\", \"f\");\r\n\t\tinsert(\".-..\", \"l\");\r\n\t\tinsert(\".--.\", \"p\");\r\n\t\tinsert(\".---\", \"j\");\r\n\t\tinsert(\"-...\", \"b\");\r\n\t\tinsert(\"-..-\", \"x\");\r\n\t\tinsert(\"-.-.\", \"c\");\r\n\t\tinsert(\"-.--\", \"y\");\r\n\t\tinsert(\"--..\", \"z\");\r\n\t\tinsert(\"--.-\", \"q\");\r\n\t\t\r\n\t}", "public TreeNode encode(Node root) {\n if (root == null) return null;\n TreeNode node = new TreeNode(root.val);\n List<Node> children = root.children;\n TreeNode tmp = node;\n if (!children.isEmpty()) {\n for (int i = 0; i < children.size(); i++) {\n if (i == 0) {\n node.left = encode(children.get(0));\n tmp = node.left;\n } else {\n tmp.right = encode(children.get(i));\n tmp = tmp.right;\n }\n }\n }\n return node;\n }", "private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public String serialize(TreeNode root) {\n StringBuilder ans = new StringBuilder();\n preorder(root, ans);\n return ans.toString();\n }", "private void serialize(TreeNode root, StringBuilder sb) {\r\n\r\n // **** end / base condition ****\r\n if (root == null)\r\n return;\r\n\r\n // **** append node to string builder ****\r\n sb.append(root.val + \" \");\r\n\r\n // **** traverse left subtree ****\r\n serialize(root.left, sb);\r\n\r\n // **** traverse right subtree ****\r\n serialize(root.right, sb);\r\n }", "public String serialize(TreeNode root) {\n return preOrderToString(root);\n }", "public void encodeData() {\n frequencyTable = new FrequencyTableBuilder(inputPath).buildFrequencyTable();\n huffmanTree = new Tree(new HuffmanTreeBuilder(new FrequencyTableBuilder(inputPath).buildFrequencyTable()).buildTree());\n codeTable = new CodeTableBuilder(huffmanTree).buildCodeTable();\n encodeMessage();\n print();\n }", "public String serialize(TreeNode root) {\n if(root == null)\n return \"N\";\n else\n return root.val + \" \"+ serialize(root.left) + \" \"+ serialize(root.right);\n \n }", "public String serialize(TreeNode root) {\n if(root==null)\n return \"#\";\n return String.valueOf(root.val)+\"|\"+serialize(root.left)+\"|\"+serialize(root.right);\n }", "public String serialize(TreeNode root) {\n \n \tif(root == null) {\n \t\treturn \"\";\n \t}\n \tif(root.left == null && root.right == null) {\n \t\treturn \"\" + root.val;\n \t}\n \tString s = serialize(root.left);\n \ts = \"(\" + s + \")\" + \"(\" + root.val + \")\";\n \ts += \"(\" + serialize(root.right) + \")\";\n \treturn s;\n \t\n }", "public String serialize(TreeNode root) {\n if (root == null) {\n return \"X\";\n }\n return \"(\" + serialize(root.left) + \")\" + root.val + \"(\" + serialize(root.right) + \")\";\n }", "public void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "public Node encode(Object obj) {\n Node node = null;\n\n if (obj != null) {\n String name = mxCodecRegistry.getName(obj);\n mxObjectCodec enc = mxCodecRegistry.getCodec(name);\n\n if (enc != null) {\n node = enc.encode(this, obj);\n }\n else {\n if (obj instanceof Node) {\n node = ((Node)obj).cloneNode(true);\n }\n else {\n System.err.println(\"No codec for \" + name);\n }\n }\n }\n\n return node;\n }", "public String serialize(TreeNode root) {\n if (root == null) {\n \treturn \"#\";\n }\n \n return \"\" + root.val + \" \" + serialize(root.left) + \" \" + serialize(root.right);\n }", "private static void serializeHelper(TreeNode root, StringBuilder res){\n if (root == null){\n res.append(\"null,\");\n return;\n }\n res.append(Integer.toString(root.val));\n res.append(\",\");\n serializeHelper(root.left, res);\n serializeHelper(root.right, res);\n }", "public CodeTree toCodeTree() {\n List<Node> nodes = new ArrayList<Node>();\n for (int i = max(codeLengths); i >= 0; i--) { // Descend through code lengths\n List<Node> newNodes = new ArrayList<Node>();\n\n // Add leaves for symbols with positive code length i\n if (i > 0) {\n for (int j = 0; j < codeLengths.length; j++) {\n if (codeLengths[j] == i)\n newNodes.add(new Leaf(j)); //Isidedame ASCII reiksmes ilgiausio kodo\n }\n }\n\n // Merge pairs of nodes from the previous deeper layer\n for (int j = 0; j < nodes.size(); j += 2) {\n newNodes.add(new InternalNode(nodes.get(j), nodes.get(j + 1))); //Sujungia lapus i InternalNodes\n }\n nodes = newNodes;\n }\n return new CodeTree((InternalNode)nodes.get(0), codeLengths.length);\n }", "public void dumpTree() {\n\t\tsendMessage(\"/g_dumpTree\", new Object[] { 0, 0 });\n\t}", "public String serialize(TreeNode root) {\n // write your code here\n StringBuilder sb = new StringBuilder();\n ArrayList<TreeNode> queue = new ArrayList<TreeNode>();\n if (root == null) {\n sb.append(\"{}\");\n return sb.toString();\n }\n queue.add(root);\n TreeNode node;\n for(int i = 0; i < queue.size(); i++){\n \tnode = queue.get(i);\n \tif(node != null){\n \t\tqueue.add(node.left);\n \t\tqueue.add(node.right);\n \t}\n }\n while (queue.get(queue.size() - 1) == null) {\n queue.remove(queue.size() - 1);\n }\n\n sb.append(\"{\");\n sb.append(queue.get(0).val);\n for(int i = 1; i < queue.size(); i++){\n \tif (queue.get(i) == null) {\n \t\tsb.append(\",#\");\n \t} else {\n \t\tsb.append(\",\" + queue.get(i).val);\n \t}\n }\n sb.append(\"}\");\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tpreOrderSerialization(root, sb);\n\t\treturn sb.toString();\n\t}", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n visit(root, sb);\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n visit(root, sb);\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n visit(root, sb);\n return sb.toString();\n }", "@Override public void accept(JannotTreeVisitor v)\n{\n v.visitBinary(this);\n}", "public String serialize(TreeNode root) {\n String res = \"\";\n return serializeCore(root,res);\n }", "public String serialize(TreeNode root) {\n StringBuilder res = mySeri(root, new StringBuilder());\n return res.toString();\n }", "public MorseCodeTree()\r\n\t{\r\n\t\tbuildTree();\r\n\t}", "public String serialize(TreeNode root) {\r\n\r\n // **** initialization ****\r\n StringBuilder sb = new StringBuilder();\r\n\r\n // **** recursive call (implements DFS) ****\r\n serialize(root, sb);\r\n\r\n // **** return trimmed string ****\r\n return sb.toString().trim();\r\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n if (root==null) return \"#\";\n sb.append(String.valueOf(root.val));\n String left = serialize(root.left);\n String right = serialize(root.right);\n sb.append(\",\").append(left).append(\",\").append(right);\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildTree(sb, root);\n return sb.toString();\n }", "private void buildBinaryTree() {\n log.info(\"Constructing priority queue\");\n Huffman huffman = new Huffman(cache.vocabWords());\n huffman.build();\n\n log.info(\"Built tree\");\n\n }", "BitOutputStore encodePath(int depth, SymbolNode[] path) {\n BitOutputStore bitpath = new BitOutputStore();\n for (int i = 1; i < depth; i++) {\n SymbolNode node = path[i];\n bitpath.appendBit(node.bit);\n }\n return bitpath;\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n TreeNode x = root;\n Deque<TreeNode> stack = new LinkedList<>();\n while (x != null || !stack.isEmpty()) {\n if (x != null) {\n sb.append(x.val);\n sb.append(' ');\n stack.push(x);\n x = x.left;\n } else {\n sb.append(\"null \");\n x = stack.pop();\n x = x.right;\n }\n }\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serialize(root,sb);\n return sb.toString();\n }", "public void buildClassTree() {\n\t\twriter.writeClassTree();\n\t}", "public interface INode {\n INode[] children();\n INode getParent();\n void setParent(INode parent);\n INode copySubTree();\n INode copyWholeTree();\n String getNodeChar();\n void setChildren(INode[] newKids);\n void setNodeChar(String c);\n INode getRoot();\n boolean isRoot();\n Bit getBit();\n void setBit(Bit bit);\n void tellChildAboutParent();\n INode addBrackets();\n INode removeBrackets();\n String toPlainText();\n}", "public static void main(String a[]) {\n TreeNode root = new TreeNode(1,\n new TreeNode(2,\n null,\n new TreeNode(4, null, null)),\n new TreeNode(3, null, null));\n StringBuffer sb = new StringBuffer();\n tree2str(root, sb);\n System.out.println(sb.toString());\n }", "private void writeTree(QuestionNode current,PrintStream output){\n if (current != null) {\n //assign type, 'Q' or 'A'\n String type = \"\";\n if (current.left == null && current.right == null){\n type = \"A:\";\n } else {\n type = \"Q:\";\n } \n //print data of tree node\n output.println(type);\n output.println(current.data);\n //print left branch\n writeTree(current.left,output);\n //print right branch\n writeTree(current.right,output); \n }\n }", "public String serialize(TreeNode root) {\r\n StringBuilder sb = new StringBuilder();\r\n buildString(root, sb);\r\n return sb.toString();\r\n }", "public String serialize(TreeNode root) {\n StringBuilder stringBuilder = new StringBuilder();\n buildString(root, stringBuilder);\n return stringBuilder.toString();\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n buildString(root, sb);\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n if (root==null){\n return \"[]\";\n }\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n List<Integer> res = new ArrayList<Integer>();\n queue.add(root);\n int num=0;\n while (queue.size() > 0) {\n TreeNode p=queue.poll();\n if (p==null){\n // System.out.println(\"null\");\n res.add(null);\n continue;\n }\n // System.out.println(p.val);\n res.add(p.val);\n num=res.size();\n queue.offer(p.left);\n queue.offer(p.right);\n }\n res=res.subList(0, num);\n System.out.println(res.toString());\n return res.toString().replaceAll(\" \", \"\");\n }", "public String serialize(TreeNode root) {\n StringBuilder builder = new StringBuilder();\n serialize(root, builder);\n return builder.toString();\n }", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "public String serialize(TreeNode root) {\n if (root == null) return \"\";\n \n //BFS, level order\n StringBuilder sb = new StringBuilder();\n Queue<TreeNode> q = new LinkedList<>();\n q.offer(root);\n while(!q.isEmpty()) {\n root = q.poll();\n if (root == null) sb.append(\"null \");\n else {\n sb.append(root.val + \" \");\n q.offer(root.left);\n q.offer(root.right);\n }\n }\n \n return sb.toString();\n }", "public String serialize(TreeNode root) {\n if (root==null){\n return \"\";\n }\n StringBuilder str = new StringBuilder();\n serializeRec(str,root);\n str.deleteCharAt(str.length()-1);\n return str.toString();\n }", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n serHelper(root, sb);\n return sb.toString().trim(); \n }", "public String toString() {\n return tree.toString();\n }", "public void encodeCell(mxICell cell, Node node, boolean includeChildren) {\n node.appendChild(encode(cell));\n\n if (includeChildren) {\n int childCount = cell.getChildCount();\n\n for (int i = 0; i < childCount; i++) {\n encodeCell(cell.getChildAt(i), node, includeChildren);\n }\n }\n }", "public String serialize(TreeNode root) {\n\t\tStringBuilder preorder = new StringBuilder(), inorder = new StringBuilder();\n\t\tinorder(root, inorder);\n\t\tpreorder(root, preorder);\n\t\tStringBuilder serialize = new StringBuilder();\n\t\tserialize.append(preorder);\n\t\tserialize.append(\":\");\n\t\tserialize.append(inorder);\n\t\treturn serialize.toString();\n\t}", "public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}", "public static String printTree()\n {\n \tString tree = \"\";\n ArrayList<String> letters = converter.toArrayList();\n for(int i = 0; i < letters.size(); i++)\n {\n tree += letters.get(i);\n if(i + 1 < letters.size())\n \t tree += \" \";\n }\n \n return tree;\n }", "public void treeOrder ()\n {\n treeOrder (root, 0);\n }", "public String serialize(TreeNode root) {\n if (root == null) return \"\";\n\n StringBuilder sb = postOrder(root, new StringBuilder());\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }", "public void setEncodedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "public String serialize(TreeNode root) {\n Queue<TreeNode> queue=new LinkedList<>();\n queue.add(root);\n StringBuilder str=new StringBuilder(\"[\");\n while(!queue.isEmpty()){\n TreeNode node=queue.poll();\n if(node==null){\n str.append(\"null,\");\n }else{\n str.append(node.val).append(\",\");\n queue.add(node.left);\n queue.add(node.right);\n }\n }\n str.setLength(str.length()-1);\n str.append(\"]\");\n return str.toString();\n }", "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n\n preOrderSerialize(root, sb);\n\n // remove last delimiter from output\n sb.setLength(sb.length() - 1);\n return sb.toString();\n }", "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n serialize(root, sb);\n return sb.toString();\n }", "public void addEncodedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ENCODEDBY, value);\r\n\t}", "@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }", "@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tpreOrderTraverse(expression.root, 1, sb);\n\t\t\treturn sb.toString();\n\t\t}", "public String serialize(TreeNode root) {\n StringBuilder sb = new StringBuilder();\n build_string(root, sb);\n return String.format(\"[%s]\", sb.substring(0, sb.length() - 1).toString());\n }", "public String serialize(TreeNode root) {\n if (root == null) return \"\";\n Queue<TreeNode> qu = new LinkedList<>();\n StringBuilder sb = new StringBuilder();\n qu.offer(root);\n sb.append(root.val);\n sb.append(' ');\n while (!qu.isEmpty()) {\n TreeNode x = qu.poll();\n if (x.left == null) sb.append(\"null \");\n else {\n qu.offer(x.left);\n sb.append(x.left.val);\n sb.append(' ');\n }\n if (x.right == null) sb.append(\"null \");\n else {\n qu.offer(x.right);\n sb.append(x.right.val);\n sb.append(' ');\n }\n }\n return sb.toString();\n }", "public String serialize(Node root) {\n List<String> childString = new ArrayList<>();\n for (Node node : root.children) {\n childString.add(serialize(node));\n }\n return \"(\" + root.val + String.join(\"\", childString) + \")\";\n }", "public HuffmanTree() {\r\n\t\tsuper();\r\n\t}", "private static void writeTrie(Node x, BufferedOutputStream out) {\n if (x.isLeaf()) {\n BinaryStdOut.write(true);\n BinaryStdOut.write(x.ch, 8);\n return;\n }\n BinaryStdOut.write(false);\n writeTrie(x.left);\n writeTrie(x.right);\n }", "public String serialize(TreeNode root) {\n if(root == null) return \"#\";\n return root.val + \",\" + serialize(root.left) + \",\" + serialize(root.right);\n }", "public String serialize(TreeNode root) {\n return serialize(root, \"\");\n }", "public String toString() {\n return toString(root) + \" \";//call helper method for in-order traversal representation\n }", "public String encode(String text) {\n\t\t// TODO fill this in.\n\t\tString binaryCode = \"\";\n\n\t\tchar[] array = text.toCharArray();\n\n\t\tfor(char c : chars.keySet()){\n\t\t\tString code = findPath(c, root, \"\");\n\t\t\tcodeMap.put(c, code);\n\t\t\tSystem.out.println(c + \" \" + code);\t\t\t\t\t\t\t// print char codes\n\t\t}\n\n\t\tfor(char t : array){\n\t\t\tString charCode = codeMap.get(t);\n\t\t\tbinaryCode = binaryCode + charCode;\n\t\t}\n\n\t\treturn binaryCode;\n\t}", "public static void main(String[] args) {\n\t\tTreeNode node1 = new TreeNode(1);\r\n\t\tTreeNode node2 = new TreeNode(2);\r\n\t\tTreeNode node3 = new TreeNode(3);\r\n\t\tTreeNode node4 = new TreeNode(4);\r\n\t\tTreeNode node5 = new TreeNode(5);\r\n\t\tTreeNode node6 = new TreeNode(6);\r\n\t\tnode1.left=node2;\r\n\t\tnode1.right=node3;\r\n\t\tnode2.left=node4;\r\n\t\tnode3.left=node5;\r\n\t\tnode3.right=node6;\r\n\t\tSolution s=new Solution();\r\n\t\tString res=s.Serialize(node1);\r\n\t\tSystem.out.println(res);\r\n\t\t\r\n\r\n \r\n\t}", "private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }", "public String serialize(TreeNode root) {\n StringBuilder s = new StringBuilder();\n s.append('[');\n if (root == null) {\n s.append(']');\n return s.toString();\n }\n Queue<TreeNode> q =new LinkedList<>();\n q.add(root);\n boolean now=true,next=false;\n while(!q.isEmpty()){\n int size = q.size();\n while (size-- != 0) {\n TreeNode p = q.poll();\n if (p!=null){\n s.append(p.val+\",\");\n q.add(p.left);\n q.add(p.right);\n if (p.left != null||p.right!=null) {\n next=true;\n }\n } else {\n if (now){\n s.append(\"null,\");\n }\n }\n }\n now=next;\n next=false;\n }\n s.append(\"]\");\n return s.toString();\n }", "public void getDecodedMessage(String encoding){\n\n String output = \"\";\n Node temp = this.root;\n for(int i = 0;i<encoding.length();i++){\n\n if(encoding.charAt(i) == '0'){\n temp = temp.left;\n\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root;\n }\n }\n else\n {\n temp = temp.right;\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root; \n }\n\n }\n }\n }", "public HIRTree(){\r\n\t\t\r\n\t}", "public String serialize(TreeNode root) {\n\n if (root == null)\n return \"\";\n\n StringBuffer stringBuffer = new StringBuffer();\n Queue<TreeNode> nodeQueue = new LinkedBlockingQueue<TreeNode>();\n nodeQueue.offer(root);\n TreeNode nullNode = new TreeNode(Integer.MIN_VALUE);\n\n while (!nodeQueue.isEmpty()) {\n TreeNode node = nodeQueue.poll();\n if (node != null && !node.equals(nullNode)) {\n stringBuffer.append(node.val + \",\");\n\n\n if (node.left != null || node.right != null) {\n if (node.left != null) {\n nodeQueue.offer(node.left);\n } else {\n nodeQueue.offer(nullNode);\n //stringBuffer.append(\"null,\");\n }\n\n if (node.right != null) {\n nodeQueue.offer(node.right);\n } else {\n nodeQueue.offer(nullNode);\n // stringBuffer.append(\"null,\");\n }\n }\n } else if (node.equals(nullNode)){\n stringBuffer.append(\"null,\");\n }\n }\n\n stringBuffer.setLength(stringBuffer.length()-1);\n return stringBuffer.toString();\n }", "public String serialize(TreeNode root) {\n return root == null ? \"null\" : root.val + \" \" + serialize(root.left) + \" \" + serialize(root.right);\n }", "private void getTreeShape() {\n int treeSizeInBytes = (int) (Math.ceil(treeSize / (double) Byte.SIZE));\n // converting tree shape in bytes to the bitset;\n BitSet bs = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, bufferPosition + treeSizeInBytes));\n bufferPosition += treeSizeInBytes;\n\n int treeLeavesAmount = 0;\n for (int i = 0; i < treeSize; i++) {\n boolean bit = bs.get(i);\n if (!bit) {\n treeLeavesAmount += 1;\n }\n treeShape.add(bit);\n }\n\n // adding tree leaves to the linked list;\n for (int i = bufferPosition; i < bufferPosition + treeLeavesAmount; i++) {\n treeLeaves.add(buffer.get(i));\n }\n // increasing buffer position for the amount of leaves(unique bytes);\n bufferPosition = bufferPosition + treeLeavesAmount;\n }", "@Override\r\n\tpublic String encode() {\n\t\treturn null;\r\n\t}", "public String serialize(Node15 root) {\n\t if(root == null) return \"\";\n\t serializeT(root);\n\t return sb.toString();\n\t }", "@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }", "public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String> nodeF = new Node<String>(\"F\", null, null);\n Node<String> nodeG = new Node<String>(\"G\", null, null);\n root.leftChild = nodeB;\n root.rightChild = nodeC;\n nodeB.leftChild = nodeD;\n nodeB.rightChild = nodeE;\n nodeC.leftChild = nodeF;\n nodeC.rightChild = nodeG;\n\n }", "public String serialize(TreeNode root) {\n if (root == null) return null;\n\n StringBuilder sb = new StringBuilder();\n serializePreorder(root, sb);\n\n return sb.substring(0, sb.length() - 1);\n }", "public void tree()\n\t{\n\t\tIterable<Position<FileElement>> toPrint = fileSystem.PreOrder();\n\t\tfor (Position<FileElement> p : toPrint)\n\t\t{\n\t\t\tint depth = fileSystem.getDepth(p);\n\t\t\tfor (int i = 0; i < depth; i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println(p.getValue());\n\t\t}\n\t}", "public String serialize(TreeNode root) {\n if(root == null){\n return \"\";\n }\n Queue<TreeNode> curList = new LinkedList<TreeNode>();\n Queue<TreeNode> nextList = new LinkedList<TreeNode>();\n StringBuilder sb = new StringBuilder();\n curList.add(root);\n while(curList.size() != 0){\n while(curList.size() != 0){\n \tTreeNode curNode = curList.poll();\n if(curNode == null){\n sb.append(\",null\");\n }\n else{\n \tif(sb.length() != 0)\n \t\tsb.append(',');\n sb.append(String.valueOf(curNode.val));\n nextList.add(curNode.left);\n nextList.add(curNode.right);\n }\n }\n curList = nextList;\n }\n return sb.toString();\n }", "public void serializeT(Node15 root) {\n\t sb.append(root.val).append(\",\");\n\t sb.append(\"#\").append(String.valueOf(root.children.size())).append(\",\");\n\t for(Node15 curr : root.children){\n\t serializeT(curr);\n\t }\n\t return;\n\t }", "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n Queue<TreeNode> queue = new LinkedList<>();\n StringBuilder builder = new StringBuilder();\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n if (node == null) {\n builder.append(\"X,\");\n } else {\n builder.append(node.val + \",\");\n queue.offer(node.left);\n queue.offer(node.right);\n }\n }\n return builder.toString();\n }" ]
[ "0.8675427", "0.7457237", "0.6877707", "0.67909175", "0.6712324", "0.6634619", "0.6506185", "0.64333487", "0.6331456", "0.62390345", "0.6222097", "0.6218176", "0.6204431", "0.6194309", "0.6188243", "0.6151778", "0.61329055", "0.6124505", "0.6056437", "0.6043162", "0.60382485", "0.6011216", "0.60001445", "0.5991116", "0.5937915", "0.59204257", "0.5897922", "0.5883123", "0.58579487", "0.5848977", "0.584634", "0.58311146", "0.58198756", "0.5815866", "0.5815866", "0.5815866", "0.58084965", "0.58061254", "0.5792067", "0.57916456", "0.5785772", "0.5756516", "0.57353103", "0.57252353", "0.57209617", "0.57141453", "0.57121915", "0.5711663", "0.5706181", "0.5702423", "0.56932205", "0.56873626", "0.56675726", "0.56667215", "0.5651612", "0.56475824", "0.5644591", "0.5643282", "0.5631808", "0.5619486", "0.56178564", "0.5605199", "0.5601314", "0.5592411", "0.55914325", "0.55892265", "0.55874497", "0.5582716", "0.5576302", "0.55612314", "0.55534434", "0.5544171", "0.55363244", "0.5529823", "0.5520682", "0.55198675", "0.5514385", "0.5510186", "0.55032885", "0.54961586", "0.54918784", "0.54916793", "0.5488798", "0.5482808", "0.54768836", "0.5476355", "0.5475647", "0.5468921", "0.54658246", "0.54652035", "0.54537064", "0.5449025", "0.544561", "0.5442615", "0.5432091", "0.5417233", "0.54058003", "0.5405703", "0.5404571", "0.539325" ]
0.61200607
18
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_mpesa, container, false); buttons = new ArrayList<Button>(); for(int id : BUTTON_IDS){ Button button = (Button) view.findViewById(id); button.setOnClickListener(myListener); buttons.add(button); } return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
do something when the button is clicked
public void onClick(View v) { switch (v.getId()) { case R.id.send_money: Toast.makeText(getActivity().getApplicationContext(), "Send Money Button", Toast.LENGTH_SHORT).show(); Fragment sendMoneyFragment = new SendMoneyFragment(); FragmentTransaction transaction = getFragmentManager().beginTransaction(); transaction.replace(R.id.main_activity, sendMoneyFragment); transaction.addToBackStack(null); transaction.commit(); break; case R.id.withdraw_cash: Toast.makeText(getActivity().getApplicationContext(), "Withdraw Cash Button", Toast.LENGTH_SHORT).show(); break; case R.id.buy_airtime: Toast.makeText(getActivity().getApplicationContext(), "Buy Airtime Button", Toast.LENGTH_SHORT).show(); break; case R.id.m_shwari: Toast.makeText(getActivity().getApplicationContext(), "M-Shwari Button", Toast.LENGTH_SHORT).show(); break; case R.id.lipa_na_mpesa: Toast.makeText(getActivity().getApplicationContext(), "Lipa na MPESA Button", Toast.LENGTH_SHORT).show(); break; case R.id.my_account: Toast.makeText(getActivity().getApplicationContext(), "My Account Button", Toast.LENGTH_SHORT).show(); break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonClicked();", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "void onClick();", "@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void onClicked();", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "public void onButtonAPressed();", "public void settingBtnClick() {\n\t}", "public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}", "public void testing() {\n System.out.println(\"button pressed!\");\n }", "void viewButton_actionPerformed(ActionEvent e) {\n doView();\n }", "public void clickYes ();", "public void actionButton(String text);", "private void button1MouseClicked(MouseEvent e) {\n\t}", "public void submit_intsatpos(View button) {\n }", "void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }", "@Override\n\tpublic void onClick() {\n\t\t\n\t}", "void okButtonClicked();", "private void ViewActionPerformed(ActionEvent e) {\n\t}", "public void actionPerformed(ActionEvent e) {\n \n // YOUR CODE HERE\n\n }", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick() {\n\r\n\t\t\t\t}", "public void sButton() {\n\n\n\n }", "public abstract void buttonPressed();", "private void button1MouseClicked(MouseEvent e) {\n }", "void buttonPressed(ButtonType type);", "void mainButtonPressed();", "void enablButtonListener();", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Button 1\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tgeti();\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}", "@Override\n\tpublic void onClick(View p1)\n\t{\n\t\tswitch(p1.getId()){\n\t\t\tcase R.id.btn_look:\n\t\t\t\tlook();\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_save:\n\t\t\t\tsave();\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void devBtnActionPerformed(ActionEvent evt) {\n }", "@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t}", "@Override\n public void onClick() {\n }", "@Override\n public void buttonClick(ClickEvent event) {\n \tgetUI().getNavigator().navigateTo(NAME + \"/\" + contenView);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "String handleButtonPress(Button button);", "public abstract void executeRunButton();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "public void buttonShowComplete(ActionEvent actionEvent) {\n }", "void clickSomewhereElse();", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "public void click() {\n System.out.println(\"Click\");\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tmCurriculumVitaeInterface.onComputer();\n\t\t\t\t\t\t}", "@Override\n public void onClick() {\n }", "public void act() \n {\n checkClicked();\n }", "@Override\n\t\tpublic void onClick(Widget sender) {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getSource().equals(btnQuayLai)){\n btnquaylaiclick();}\n }", "public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }", "public void buttonClickHandler (ActionEvent evt) {\n\t\tButton clickedButton = (Button) evt.getTarget();\n\t\tString buttonLabel = clickedButton.getText();\n\t\t\n\t\tswitch(buttonLabel) {\n\t\t\tcase(\"Instructions\"): openInstructionsWindow(); break;\n\t\t\tcase(\"About\"): openAboutWindow(); break;\n\t\t\tcase(\"Quit\"): GameScreenController.quitWindow(); break;\n\t\t}\t\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}", "public void onClick(ClickEvent event) {\r\n System.out.println(\"Submit Button geklickt\");\r\n handleEvent();\r\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}", "abstract void botonAyuda_actionPerformed(ActionEvent e);", "@Override\r\n public void onClick(ClickEvent event) {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n myFirstLabel.setText(\"You just clicked a button!\");\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstart_click(e);\r\n\t\t\t}", "public abstract void executeBagButton();", "void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }", "@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }", "protected abstract void pressedOKButton( );", "public void clickedButton(View view) {\n\n switch (view.getId()) {\n case R.id.contactBook:\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n break;\n case R.id.message:\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n break;\n case R.id.fav_contacts:\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n break;\n case R.id.lastCall:\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n break;\n case R.id.microphone:\n SpeechRecognitionHelper.run(this);\n break;\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n myButtonActionPerformed(arg0);\n }", "public void click() {\n\t\tif(toggles) {\n\t\t\tvalue = (value == 0) ? 1 : 0;\t// flip toggle value\n\t\t}\n\t\tupdateStore();\n\t\tif(delegate != null) delegate.uiButtonClicked(this);\t// deprecated\n\t}", "public void button_clicked(View v) {\n mCallback.onButtonClicked(v);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\trb.performClick();\n\t\t\t\t\t}", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void onClick() {\n\t\tSystem.out.println(\"전화를 겁니다\");\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\tnew RelatorioFuncView().iniciaGui2();\t\n\t\t\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}", "public void onButtonBPressed();", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}", "private void button1ActionPerformed(ActionEvent e) {\n }" ]
[ "0.83658314", "0.7859669", "0.75064087", "0.7495098", "0.7488581", "0.74452615", "0.7248752", "0.7246329", "0.7236938", "0.72196186", "0.7205128", "0.7188473", "0.717184", "0.7171007", "0.7167208", "0.7153844", "0.7143459", "0.7132352", "0.7095667", "0.70913684", "0.70835173", "0.7059778", "0.7051456", "0.70280766", "0.70280766", "0.70115215", "0.7010478", "0.69945323", "0.6985407", "0.69746053", "0.69581187", "0.69490683", "0.6944036", "0.6936285", "0.69259685", "0.69259685", "0.6912596", "0.6911882", "0.69090956", "0.690497", "0.6904248", "0.69030243", "0.6894952", "0.687701", "0.6870759", "0.6870548", "0.6870548", "0.6870548", "0.6870548", "0.68699616", "0.68699616", "0.68699616", "0.68696994", "0.686886", "0.6862382", "0.6860687", "0.6857299", "0.68525875", "0.6852409", "0.68515664", "0.6845503", "0.6844603", "0.6835203", "0.6832558", "0.6832558", "0.6832558", "0.6832558", "0.6830527", "0.6829393", "0.68219054", "0.68077", "0.68014276", "0.68014276", "0.67980146", "0.67899305", "0.67835605", "0.67835605", "0.67835605", "0.6780153", "0.6780018", "0.6779499", "0.6777175", "0.67720383", "0.6771549", "0.6763608", "0.6761901", "0.6761426", "0.67610043", "0.6758207", "0.67529166", "0.6751836", "0.67484826", "0.6745224", "0.67424697", "0.6733212", "0.67315876", "0.67269576", "0.67248124", "0.6717065", "0.6715366", "0.67105633" ]
0.0
-1
TODO Autogenerated method stub
@Override protected List<AppEntry> doInBackground(Void... params) { List<PackageInfo> apps = getPackageManager() .getInstalledPackages(0); if (apps == null) { apps = new ArrayList<PackageInfo>(); } // Create corresponding array of entries and load their labels. List<AppEntry> entries = new ArrayList<AppEntry>(); for (int i = 0; i < apps.size(); i++) { AppEntry entry = new AppEntry(SoftwareUninstallActivity.this, apps.get(i)); entry.packageName=apps.get(i).packageName; entry.loadLabel(SoftwareUninstallActivity.this); entry.alpha = getAlpha(TextUtil.converterToFirstSpell(entry .getLabel())); if ((entry.getIsUser()||((entry.mInfo.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)!= 0)) && !entry.getPackageName().contains( Constants.PACKAGENAME_NAME)) { entries.add(entry); } } // Sort the list. Collections.sort(entries, ALPHA_COMPARATOR); return entries; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override protected void onPostExecute(List<AppEntry> result) { super.onPostExecute(result); if (result == null || result.size() == 0) { iconTitleSort.setVisibility(View.GONE); moreUninstallBtn.setEnabled(false); moreUninstallBtn.setText(getString(R.string.unstallmush)); showNoResultView(); return; } iconTitleSort.setVisibility(View.GONE); loading.setVisibility(View.GONE); mApps.clear(); Collections.sort(result, ALPHA_COMPARATOR); mApps.addAll(result); for (int i = 0; i < mApps.size(); i++) { try { queryPacakgeSize(mApps.get(i).mInfo.packageName); } catch (Exception e) { } } try { Thread.sleep(1000); }catch(Exception e) {} mAdapter.notifyDataSetChanged(); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public View getView(int arg0, View arg1, ViewGroup arg2) { final AppEntry entry = (AppEntry) getItem(arg0); ViewHolder holder; if (arg1 == null) { holder = new ViewHolder(); arg1 = inflater.inflate(R.layout.app_uninstall_item_layout, null); holder.appIcon = (ImageView) arg1 .findViewById(R.id.uninstall_app_icon); holder.appName = (TextView) arg1 .findViewById(R.id.uninstall_app_packagename); holder.appInfo = (TextView) arg1 .findViewById(R.id.unistall_app_info); holder.appUninstallBtn = (LinearLayout) arg1 .findViewById(R.id.icon_btn_uninstall); holder.imgCheck = (ImageView) arg1.findViewById(R.id.img_check); holder.tvAlpha = (TextView) arg1.findViewById(R.id.tv_alpha); holder.driverLine = arg1.findViewById(R.id.driver_line_view); holder.installphone=(TextView) arg1.findViewById(R.id.installphone); holder.installsd=(TextView) arg1.findViewById(R.id.installsd); holder.bestone_appsize=(TextView) arg1.findViewById(R.id.bestone_appsize); holder.bestone_btn_uninstall=(Button) arg1.findViewById(R.id.bestone_btn_uninstall); holder.uninstallitembg=(LinearLayout) arg1.findViewById(R.id.uninstallitembg); arg1.setTag(holder); } else { holder = (ViewHolder) arg1.getTag(); } /*add by zengxiao for:修改应用卸载*/ if ((entry.mInfo.applicationInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) { holder.installphone.setVisibility(View.GONE); holder.installsd.setVisibility(View.VISIBLE); } else{ holder.installsd.setVisibility(View.GONE); holder.installphone.setVisibility(View.VISIBLE); } if(entry.userTime!=null&&!(entry.userTime.equals(""))) { holder.appInfo.setText(entry.userTime); } /* holder.installwhere=(TextView) arg1.findViewById(R.id.installwhere); holder.bestone_appsize=(TextView) arg1.findViewById(R.id.bestone_appsize);*/ if(entry.packgeSize!=0) { DecimalFormat decimalFormat=new DecimalFormat(".00");//构造方法的字符格式这里如果小数不足2位,会以0补足. String p=decimalFormat.format(entry.packgeSize);//format 返回的是字符串 holder.bestone_appsize.setText(SoftwareUninstallActivity.this.getString(R.string.allusene)+p+"M"); } holder.bestone_btn_uninstall.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { showShortToast(getString(R.string.unstallnow)); PackageUtil.uninstallApp(MyApplication.getInstance(), entry.getPackageName(), "", false); } }); /*add end*/ holder.imgCheck.setSelected(entry.isSelected); holder.appIcon.setBackgroundDrawable(entry.getIcon()); holder.appName.setText(entry.getLabel()); /*holder.appInfo.setText(getString(R.string.version_soft) + entry.getVersionName());*/ /*holder.appUninstallBtn.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { showShortToast(getString(R.string.unstallnow)); PackageUtil.uninstallApp(MyApplication.getInstance(), entry.getPackageName(), "", false); //uninstallByPName(entry.getPackageName(), entry.getLabel()); } });*/ holder.uninstallitembg.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { runApp(entry); } }); String currentAlpha = entry.alpha; String priviewAlpha = (arg0 - 1) >= 0 ? mApps.get(arg0 - 1).alpha : " "; String nextAlpha = (arg0 + 1) <= mApps.size() - 1 ? mApps .get(arg0 + 1).alpha : ""; /*if (!priviewAlpha.equals(currentAlpha)) { holder.tvAlpha.setVisibility(View.VISIBLE); holder.tvAlpha.setText(currentAlpha); } else { holder.tvAlpha.setVisibility(View.GONE); }*/ holder.tvAlpha.setVisibility(View.GONE); /*if (nextAlpha.equals(currentAlpha)) { holder.driverLine.setVisibility(View.VISIBLE); } else { */ holder.driverLine.setVisibility(View.GONE); /*}*/ holder.imgCheck.setVisibility(View.GONE); holder.appUninstallBtn.setVisibility(View.GONE); switch (sort_type) { // 按名称排序 case 1: holder.appInfo.setText(getString(R.string.version_soft) + entry.getVersionName()); holder.appUninstallBtn.setVisibility(View.VISIBLE); break; // 按大小排序 case 2: holder.driverLine.setVisibility(View.VISIBLE); holder.tvAlpha.setVisibility(View.GONE); holder.appInfo.setText(Util.bytes2kb(entry.getSize())); break; // 按日期排序 case 3: holder.driverLine.setVisibility(View.VISIBLE); holder.tvAlpha.setVisibility(View.GONE); holder.appInfo.setText(DateUtil .getFormatShortTime(entry.mApkFile.lastModified())); break; case 4: holder.imgCheck.setVisibility(View.VISIBLE); holder.appUninstallBtn.setVisibility(View.VISIBLE); break; default: holder.appInfo.setText(getString(R.string.version_soft) + entry.getVersionName()); break; } return arg1; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int compare(Object arg0, Object arg1) { AppEntry entry1 = (AppEntry) arg0; AppEntry entry2 = (AppEntry) arg1; long result = entry1.getSize() - entry2.getSize(); if (result > 0) { return -1; } else if (result == 0) { return 0; } else if (result < 0) { return 1; } return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int compare(Object arg0, Object arg1) { AppEntry entry1 = (AppEntry) arg0; AppEntry entry2 = (AppEntry) arg1; long result = entry1.mApkFile.lastModified() - entry2.mApkFile.lastModified(); if (result > 0) { return -1; } else if (result == 0) { return 0; } else if (result < 0) { return 1; } return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int compare(Object arg0, Object arg1) { AppEntry entry1 = (AppEntry) arg0; AppEntry entry2 = (AppEntry) arg1; long result = entry1.getStartCount() - entry2.getStartCount(); if (result > 0) { return -1; } else if (result == 0) { return 0; } else if (result < 0) { return 1; } return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void networkIsOk() { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void installedSucess(String packageName) { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ [Count Letters] Create a method that will accept a String and print how many times each characters is found in the String Ex: Input: "apple tree" Output: a 1 p 2 l 1 e 3 1 (space char) t 1 r 1
public static void main(String[] args) { countLetters("apple tree"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int doCount(String s){\r\n\t\tint count = 0;\r\n\t\tint i;\r\n\t\tfor(i = 0; i < s.length(); i++){\r\n\t\t\tif ( s.charAt(i) == Letter )\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a word:\");\n String word = scan.next();\n System.out.println(\"Enter character:\");\n char character = scan.next().charAt(0);\n\n int count=0; //count frequency of character\n for (int i =0; i<word.length(); i++) {\n char each = word.charAt(i); //each character by given string word\n\n if (each == character) { //if each character in str is matching with ch\n count++; //count increase the frequency of ch by 1\n\n }\n }\n System.out.println(count);\n\n System.out.println(\"===========================\");\n\n\n\n }", "public static int howManyLetters (String s)\n {\n if (s.length()==0) //stop condition - the end case, if the string is empty\n return 0;\n int isc=( s.charAt(s.length()-1)>='a'&&s.charAt(s.length()-1)<='z'||\n s.charAt(s.length()-1)>='A'&& s.charAt(s.length()-1)<='Z')? 1: 0; //checks whether the current character is a letter\n return isc+howManyLetters(s.substring(0,s.length()-1)); //return the amount of letters (by re-call the method again)\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int T = scan.nextInt();\n scan.nextLine();\n for(int i = 0 ; i < T ; i++){\n int count = 0;\n String text = scan.nextLine();\n char[] letters = text.toCharArray();\n\n if(letters.length > 0){\n char character = letters[0];\n\n for(int j = 1 ; j < letters.length ; j++){\n\n if(character == letters[j]){\n count++;\n }else{\n character = letters[j];\n }\n }\n }\n System.out.println(count);\n }\n scan.close();\n }", "@Override //old methd for letter count\n public Integer letterCount(String inputString) {\n char[] characterArray = inputString.toCharArray();\n Map<Character, Integer> wordFrequencyMap = new HashMap<Character, Integer>();\n\n for (char character : characterArray) {\n if (wordFrequencyMap.containsKey(character)) {\n\n Integer wordCount = (Integer) wordFrequencyMap.get(character);\n wordFrequencyMap.put(character, wordCount + 1);\n\n } else {\n wordFrequencyMap.put(character, 1);\n\n }\n }\n return null; //iterateWordCount(wordFrequencyMap);\n }", "private static void charCount(String str) {\n\t\t\n\t\tHashMap<Character, Integer> mp = new HashMap<Character, Integer>();\n\t\t\n\t\tchar[] cr=str.toCharArray();\n\t\t\n\t\tSystem.out.println(cr);\n\t\t\n\t\tfor(char c: cr) {\n\t\t\t\n\t\t\tif(mp.containsKey(c)) {\n\t\t\t\tmp.put(c, mp.get(c)+1);\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tmp.put(c, 1);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tfor(Map.Entry<Character, Integer> ent: mp.entrySet()) {\n\t\t\tSystem.out.println(ent.getKey() + \" \" + ent.getValue());\n\t\t}\n\t\t\n\t}", "public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n Function c = new Function();\n System.out.print(c.LetterCount(s.nextLine())); \n }", "int getLettersCount();", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"enter a string\");\n\t\tString str=sc.nextLine();\n\t\tint count=0;\n\t\tchar ar[]=str.toCharArray();\n\t\tfor(char c:ar) {\n\t\t\tcount++;\n\t\t}\nSystem.out.println(count);\n\t}", "public void countOfLetters()\n {\n Scanner sc = new Scanner(System.in);\n //Ask an user to enter a string\n System.out.print(\"Enter a string: \");\n //Read next line as string and assign it value to String str\n String str = sc.nextLine();\n\n //Create a new int array with 26 elements\n int []Letters = new int[26];\n\n //For each index in str\n for(int i = 0; i < str.length(); i++)\n {\n //Get current character\n char c = str.toLowerCase().charAt(i);\n //Get char as int\n int val = (int)c;\n //If char is letter\n if(val >= 97 && val <= 122)\n {\n //Increment a value at position of this letter\n Letters[c-'a']++;\n }\n }\n //Get sum of the array\n int Sum = Arrays.stream(Letters).sum();\n //For each index in Letters\n for(int i = 0; i<Letters.length; i++)\n {\n //If value of current position > 0 then print count of this letter at given string and its percentage\n if(Letters[i] > 0)\n {\n System.out.printf(\"The count of `%c` is %x, the percentage is %f \\n\", (char)97+i, Letters[i], (double)Letters[i]/Sum);\n }\n }\n\n }", "public static void main(String[] args) throws IOException {\n\n String file = \"C:/Java Projects/java-web-dev-exercises/src/exercises/CountingCharsSentence.txt\";\n Path path = Paths.get(file);\n List<String> lines = Files.readAllLines(path);\n Object[] string = lines.toArray();\n String string2 = Arrays.toString(string);\n\n String[] wordsInString = string2.toLowerCase().split(\"\\\\W+\");\n String rejoinedString = String.join(\"\", wordsInString);\n char[] charactersInString = rejoinedString.toCharArray();\n\n HashMap<Character, Integer> letterMap = new HashMap<>();\n\n\n for (char letter : charactersInString) {\n if (!letterMap.containsKey(letter)) {\n int letterCount = 1;\n letterMap.put(letter, letterCount);\n } else if (letterMap.containsKey(letter)) {\n letterMap.put(letter, letterMap.get(letter) + 1);\n }\n }\n\n\n System.out.println(letterMap);\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s = \"asdfasdfafk asd234asda\";\n\t //Map<Character, Integer> charMap = new HashMap<Character, Integer>();\n\t \n\t Map<Character,Integer> map = new HashMap<Character,Integer>();\n\t for (int i = 0; i < s.length(); i++) {\n\t char c = s.charAt(i);\n\t System.out.println(c);\n\t //if (Character.isAlphabetic(c)) {\n\t if (map.containsKey(c)) {\n\t int cnt = map.get(c);\n\t System.out.println(cnt);\n\t map.put(c,++cnt);\n\t } else {\n\t map.put(c, 1);\n\t }\n\t \n\t }\n\t // }\n\t System.out.println(map);\n\t \n\t \n\t /* char[] arr = str.toCharArray();\n\t System.out.println(arr);\n\t \n\n\t\t\n\t\tfor (char value: arr) {\n\t\t \n\t\t if (Character.isAlphabetic(value)) { \n\t\t\t if (charMap.containsKey(value)) {\n\t\t charMap.put(value, charMap.get(value) + 1);\n\t\t \n\t\t } \n\t\t\t else { charMap.put(value, 1); \n\t\t } \n\t\t\t } \n\t\t }\n\t\t \n\t\t System.out.println(charMap);*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t \n \t}", "int[] countLetters(String str) {\n int[] countArr = new int['z'-'a'+1];\n Arrays.fill(countArr, 0);\n\n for (int i = 0; i < str.length(); ++i) {\n char c = str.charAt(i);\n if (!Character.isLetter(c)) {\n continue;\n }\n\n if (c >= 'a' && c <= 'z') {\n countArr[c - 'a']++;\n }\n }\n\n return countArr;\n }", "public static int count(String str, char a) {\r\n\t\tint counter = 0;\r\n\t\tchar b = ' ';\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tb = str.toLowerCase().charAt(i);\t// string prebaciti u mala slova\r\n\t\t\tif (b == a) {\r\n\t\t\t\tcounter++;\t\t\t// brojac ponavljanja karaktera\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tString str=s.nextLine();\r\n\t\tint count=0;\r\n\t\tchar ch[]=str.toCharArray();\r\n\t\tfor(char c:ch)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(count);\r\n\t}", "public static void main(String[] args) \n{\nScanner scan=new Scanner(System.in);\n \nSystem.out.println(\"Please Enter the String here\");\n \n// It will accept String from user and will store in variable\nString str1=scan.next();\n \nSystem.out.println(\"enter the letter to count\");\n \n// It will accept char from user and will store in variable\nString str2=scan.next();\n \n// Now from Second String get the value using charAt method\nchar cha = str2.charAt(0);\n \n// take count variable\nint count=0;\n \n// Run a for loop that will run based on String length\nfor(int i=0;i<=str1.length()-1;i++)\n{\n \n// This will check if match found\nif(str1.charAt(i)==cha)\n \n{\n \n// It will increment the counter\ncount++;\n \n}\n \n}\n \n// Finally print the count\nSystem.out.println(count);\n \n}", "public static int main(String[] args) {\n\n System.out.println(\"Input the string: \");\n\n Scanner scn = new Scanner(System.in);\n\n String word = scn.nextLine();\n\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' || word.charAt(i) == 'e' || word.charAt(i) == 'i' ||\n word.charAt(i) == 'o' || word.charAt(i) == 'u' || word.charAt(i) == 'A' ||\n word.charAt(i) == 'E' || word.charAt(i) == 'I' || word.charAt(i) == 'O' || word.charAt(i) == 'U') {\n count++;\n }\n }\n return count;\n\n }", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter a string: \");\n\t\tString s=in.nextLine();\n\t\tSystem.out.print(\"Please enter the character to find: \");\n\t\tchar c=in.nextLine().charAt(0);\n\t\tSystem.out.print(countChar(s,c));\n\t\tin.close();\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Im a Java Developer\";\r\n\t\tSystem.out.println(str);\r\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the character for which you want to find occurrance\");\r\n\t\tchar c = s.next().charAt(0);\r\n\t\tint count = 0;\r\n\t\tfor(int i=0;i<str.length();i++){\r\n\t\t\tif (str.charAt(i) == c ){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Number of occurrances are : \"+count);\r\n\t}", "include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}", "public static int countChar(String s){\n return s.length();\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter String :\");\n\t\tString str = sc.nextLine();\n\t\tint cnt = 0;\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n for (int i =0;i<str.length();i++)\n {\n \tif (map.containsKey(str.charAt(i)))\n \t{\n \t\tint count = map.get(str.charAt(i));\n \t\tcount++;\n \t\tmap.put(str.charAt(i), count);\n \t}\n \telse\n \t{\n \t\tmap.put(str.charAt(i), 1);\n \t}\n \n }\n for (Map.Entry<Character,Integer> entry : map.entrySet())\n {\n \tif (entry.getValue()>1 && entry.getKey()!=' ')\n \t{\n \t\t\n \t \n \t\tSystem.out.println(entry.getKey() + \" \" +entry.getValue());\n \t}\n }\n \n }", "static int countCharacters(String[] words, String chars) {\n int ans = 0;\n int[] letters = new int[26];\n char[] arr = chars.toCharArray();\n for (char a : arr) {\n letters[a-'a']++;\n }\n for (String s : words) {\n char[] charArray = s.toCharArray();\n int[] temp = new int[26];\n int i = 0;\n for (;i<charArray.length;i++) {\n if (letters[charArray[i]-'a'] > 0) {\n letters[charArray[i]-'a']--;\n temp[charArray[i]-'a']++;\n } else {\n break;\n }\n }\n if (i == charArray.length) {\n ans += s.length();\n }\n i=0;\n for (;i<temp.length;i++) {\n letters[i] += temp[i];\n }\n }\n return ans;\n }", "private static int countOccurrences(String input, char c) {\n int count = 0;\n for (int i = 0; i < input.length(); i++) {\n if (input.charAt(i) == c) {\n count++;\n }\n }\n return count;\n }", "public static void main(String[] args) {\n HashMap<Character, Integer> finalChar = new HashMap<>();\n int charCount = 1;\n\n String str = \"If the product of two terms is zero then common sense says at least one of the two terms has to be zero to start with. \" +\n \"So if you move all the terms over to one side, \" +\n \"you can put the quadratics into a form that can be factored allowing that side of the equation to equal zero. \" +\n \"Once you’ve done that, it’s pretty straightforward from there.\";\n\n // convert String to char[] array\n char[] charInString = str.toCharArray();\n\n // iterate over charInString[] array using enhanced for loop\n for (char charName : charInString) {\n\n if (finalChar.containsKey(charName)) {\n finalChar.put(charName, finalChar.get(charName) + 1);\n } else {\n finalChar.put(charName, 1);\n }\n\n }\n System.out.println(finalChar);\n }", "public static void getOccuringChar(String inPutString) {\n HashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();\n /* converting given string to char Array*/\n char[] strArray = inPutString.toCharArray();\n /*Checking each char in strArray*/\n for (char c : strArray) {\n if (charCountMap.containsKey(c)) {\n //If char 'c' is present in charCountMap, incrementing it's count by 1\n charCountMap.put(c, charCountMap.get(c) + 1);\n } else {\n /*If char 'c' is not present in charCountMap,putting 'c' into charCountMap with 1 as it's value\n */\n charCountMap.put(c, 1);\n }\n }\n /*Printing input String*/\n System.out.println(\"The frequency of Character is \" + charCountMap);\n }", "public static void main(String[] args) {\n\t\tString s = \"Mahesh\";\r\n\t\tchar[] arr = s.toCharArray();\r\n\t\tint count = 0;\r\n\t\tfor(char s1: arr) {\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\t\tint index = 0;\r\n\t\ttry {\r\n\t\t\twhile(true) {\r\n\t\t\t\ts.charAt(index);\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(index);\r\n\t}", "public static void main(String[] args) {\n\t\tString sentence = \"I think it's fair to say practice can be heplful in learning. \"\r\n\t\t\t\t+ \"Just about anything it can be true.\";\r\n\t\tchar myChar = 'a';\r\n\t\tint counter = 0;\r\n\t\t\r\n\t\tfor(int i=0; i<sentence.length(); i++)\r\n\t\t{\t//if you find the char value, count it in the if block\r\n\t\t\tif(sentence.charAt(i)==myChar)\r\n\t\t\t{\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Total number of occurences of 'a' is \"+counter);\r\n\t}", "public static int char_count(String y, char c){\r\n\tint count = 0;\r\n\tfor(int i = 0; i < y.length(); i++){\r\n\t\tif(y.charAt(i) == c){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t}\r\n\treturn count;\r\n}", "public static int frequency(String str, char ch){\n//will return frequency of char from the string\n int count = 0; //to save the frequency of char\n/*each character is a char : and need to compare it with str.\nevery time it matches we add frequency to count*/\n\n for(char each : str.toCharArray() ){\n if(each == ch){//every time this is true, count will increase to 1\n count++;\n }\n }\n //return the frequency of one character from the string\n return count;\n }", "public static void main(String[] args) {\n String res= freqAlphabets( \"10#11#12\");\n System.out.println(res);\n }", "private static int[] countLetters (String msg) {\n int[] counts = new int[26];\n for (char c : msg.toCharArray()) {\n char cuc = Character.toUpperCase(c);\n if (Character.isAlphabetic(cuc)) counts[ALPHABET.indexOf(cuc)]++;\n }\n \n return counts;\n }", "@Test\n public void charCount() {\n final int expectedEight = 8;\n final int expectedFour = 4;\n\n CharCount charCounter = new CharCount();\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'z'));\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'Z'));\n assertEquals(expectedFour, charCounter.characterCounter(\"FIZZBUZZ\", 'z'));\n assertEquals(0, charCounter.characterCounter(\"TEdff fdjfj 223\", '1'));\n assertEquals(expectedFour, charCounter.characterCounter(\"TE00df0f f0djfj 223\", '0'));\n assertEquals(0, charCounter.characterCounter(\"RRuyt 111000AAdda\", (char) 0));\n }", "static void getCharCountArray(String str) {\n for (int i = 0; i < str.length(); i++)\n count[str.charAt(i)]++;\n }", "public static void main(String[] args) {\n\t\tString str = \"Hello Dude Umd\";\n\t\tchar ch[] = {'a', 'e', 'i', 'o', 'u', 'A', 'E','I' ,'O', 'U'};\n\t\tchar ch2[] = str.toCharArray();\n\t\t\n\t\tint count = 0;\n\t\t\n\t\tint space = 0;\n\t\tfor(int i = 0; i <ch2.length; i ++){\n\t\t\tif(ch2[i]==32){\n\t\t\t\tspace++;\n\t\t\t}\n\t\t\tfor(int j = 0; j <ch.length; j++){\n\t\t\t\tif(ch[j] == ch2[i]){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Length of String: \" + str.length());\n\t\tSystem.out.println(\"Vowels: \" +count);\n\t\tSystem.out.println(\"Consonants: \" + (str.length()-(count+space)));\n\t\tSystem.out.println(\"Space are \" + space);\n\n\t}", "void countCharByCategory(String inputstr) {\n\n\t\tint digitcount = 0;\n\t\tint lowercasecount = 0;\n\t\tint uppercasecount = 0;\n\t\tint specialcharcount = 0;\n\n\t\tfor (int i = 0; i < inputstr.length(); i++) {\n\n\t\t\tif (Character.isLowerCase(inputstr.charAt(i)))\n\t\t\t\tlowercasecount++;\n\t\t\telse if (Character.isUpperCase(inputstr.charAt(i)))\n\t\t\t\tuppercasecount++;\n\n\t\t\telse if (Character.isDigit(inputstr.charAt(i)))\n\t\t\t\tdigitcount++;\n\t\t\telse\n\t\t\t\tspecialcharcount++;\n\t\t}\n\t\tSystem.out.println(\"Total Digits: \" + digitcount + \"\\nTotal letters: \" + (lowercasecount+uppercasecount) + \"\\nTotal Uppercase: \"\n\t\t\t\t+ uppercasecount + \"\\nTotal lowercase: \" + lowercasecount + \"\\nTotal Special character: \"\n\t\t\t\t+ specialcharcount);\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the String\");\n\t\tScanner input=new Scanner(System.in);\n\t\tString inputstr= input.nextLine();\n\t\tint counti=0,countu=0,countl=0;\n\t\tfor (int i=0;i<inputstr.length();i++) {\n\t\t\tchar ch =inputstr.charAt(i);\n\t\t\tif (ch>='0' && ch <='9') {\n\t\t\t\tcounti++;\n\t\t\t}\n\t\t\telse if (ch>='a' && ch <='z') {\n\t\t\t\tcountl++;\n\t\t\t}\n\t\t\telse if (ch>='A' && ch <='Z') {\n\t\t\t\tcountu++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tint total=counti+countu+countl;\n\t\tSystem.out.println(\"The total number of uppercase ,lowercase and integer is->\"+total);\n\t}", "public static void main(String[] args) {\n String word;\n Scanner in = new Scanner(System.in);\n int count = 0;\n\n System.out.println(\"Enter the string\");\n word = in.nextLine().toLowerCase().replaceAll(\"[^a-z]\", \"\");\n\n for (int i = 0;i<word.length();i++)\n {\n if (word.charAt(i)=='a'||word.charAt(i)=='e'||word.charAt(i)=='i'\n ||word.charAt(i)=='o'||word.charAt(i)=='u'||word.charAt(i)=='y')\n {\n count++;\n System.out.println(word.charAt(i));\n }\n }\n System.out.println(\"The number of vowels is: \"+count);\n\n }", "int[] buildFrequencyTable(String s)\n{\n int[] table = new int [Character.getNumericValue('z') - Character.getNumericValue('a') + 1];\n for (char c : s.toCharArray())\n {\n int x = getCharNumber(c);\n if (x != -1) table[x]++;\n }\n return table;\n}", "public static Map<Character, Integer> findDuplicateCharactersInAString(final String input){\n\n Map<Character, Integer> charCountMap= null;\n if(input !=null && input.length() > 0)\n {\n if(input.length() ==1){\n return charCountMap;\n }\n charCountMap = new LinkedHashMap<Character, Integer>();\n String inputString = input;\n // In case if the program need not consider capital and small letters,\n // if want to consider comment out below line\n inputString = inputString.toLowerCase();\n char [] inputChars = inputString.toCharArray();\n\n for(Character c : inputChars) {\n\n if (charCountMap.containsKey(c)) {\n charCountMap.put(c, charCountMap.get(c) + 1);\n } else {\n charCountMap.put(c, 1);\n }\n }\n }\n else{\n throw new IllegalArgumentException(\"Invalid input\");\n }\n return charCountMap;\n }", "public int [] getCharCount(String str){\n\t\tint CHAR_ARRAY = 26;\n\t\tint [] count = new int [CHAR_ARRAY];\n\t\tfor(char c: str.toCharArray()){\n\t\t\tcount[c-'a']++;\n\t\t}\n\t\treturn count;\n\t}", "public static void main(String[] args) {\n\t\tString str = \"welcome to chennai\";\r\n\t\tchar search='e';\r\n\t\tint count=0;\r\n\t\tchar ch[]=str.toCharArray();\r\n\t\tint len=ch.length;\r\n\t\tfor(int i=0;i<len;i++)\r\n\t\t{\r\n\t\t\tif(search==(ch[i]))\r\n\t\t\t{\r\n\t\t\t\tcount=count+1;\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\r\n\r\n\t}", "public static void main(String[] args){\n\t\tString str=\"Automation\";\r\n\t\tint count=0;\r\n\t\tchar[] ch=str.toCharArray();//ch={w,3,S,c,h,o,o,l,s}\r\n\t\tSystem.out.println(ch);\r\n\t\tfor(int i=0; i<ch.length-1; i++){\r\n\t\tfor(int j=i+1; j<=ch.length-1; j++){\r\n\t\t\tif(ch[i]==ch[j]){\r\n\t\t\t\tSystem.out.print(\"Duplicate chars are : \" +ch[i]);\r\n\t\t\t\tSystem.out.println();\r\n\t\t\r\n\t\tcount++;\r\n\t\t\r\n\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\t\r\n\t\tSystem.out.println(\"The no of duplicate chars are: \" +count);\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n int vowels = 0;\n int consonats = 0;\n int result = 0;\n for (int i = 0; i < s.length(); i++){\n if (isVowel(s.charAt(i))) {\n vowels++;\n consonats = 0;\n } else {\n vowels = 0;\n consonats++;\n }\n if (vowels == 3){\n result++;\n vowels = 1;\n }\n if (consonats == 3){\n result++;\n consonats = 1;\n }\n }\n System.out.println(result);\n }", "public static int duplicateCount(String text) {\n \r\n int count=0; \r\n \r\n \r\n \r\n int l=text.length(); int index=0; String s1=\"\"; char [] c= new\r\n char [text.length()] ; for (int i=0;i <text.length();i++) {\r\n c[i]=text.toLowerCase().charAt(index++);\r\n \r\n System.out.println(\"Character at c[\"+i+\"] is\"+c[i]);\r\n \r\n }\r\n \r\n System.out.println(\"Character array is \"+Arrays.toString(c));\r\n \r\n int charSize=c.length; int index2=1;\r\n \r\n HashMap h =new HashMap();\r\n for (int i=0;i<charSize;i++)\r\n {\r\n for(int j=i+1;j<charSize;j++)\r\n {\r\n if (c[i]==c[j])\r\n {\r\n count++;\r\n //s1=s1+c[j];\r\n \r\n h.put(c[j],count);\r\n }\r\n }\r\n }\r\n \r\n \r\n System.out.println(h);\r\n \r\n int hsize= h.size();\r\n \r\n return hsize;\r\n }", "public static void main(String[] args) {\n\r\n\t\tString str = \"learning automation is fun\";\r\n\t\tstr = str.replace(\" \", \"\");\r\n\t\tchar letters[] = str.toCharArray();\r\n\t\t\r\n\t\tfor(int i = 0;i<letters.length;i++) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor(int j=0;j<letters.length;j++) {\r\n\t\t\t\t\r\n\t\t\t\tif (j<i&&(letters[j]==letters[i])) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(letters[i]==letters[j]) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (count>0)\r\n\t\t\tSystem.out.println(\"Occurrence of \"+letters[i]+\" is \"+count);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the string\");\r\n\t\tString a = s.nextLine().toLowerCase();\r\n\t\tint count = 0;\r\n\t\tfor (int i = 0; i < a.length(); i++) {\r\n\t\t\tif (a.charAt(i) == 'a' || a.charAt(i) == 'e' || a.charAt(i) == 'i' || a.charAt(i) == 'o'\r\n\t\t\t\t\t|| a.charAt(i) == 'u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t}System.out.println(count);\r\n\t}", "String LetterCount(String str) {\n String strr1[]=str.split(\" \");\n String strr[]= strr1;\n String strt=\"\";\n int count=0;\n int count1=0;\n int maxi=0;\n \n for(int i=0; i<strr.length; i++){\n char[] crr=strr[i].toCharArray();\n java.util.Arrays.sort(crr);\n strt=new String(crr);\n for(int j=0; j<strt.length()-1; j++){\n while(strt.charAt(j)==strt.charAt(j+1) && j<strt.length()-2){\n count++;\n j++;\n }\n }\n if(count>count1){\n count1=count;\n maxi=i;\n }\n count=0;\n }\n return strr1[maxi];\n \n }", "public void getOccuringChar() \n\t\t {\n\t\t \tint count[] = new int[MAX_CHAR]; \n\t\t \t \n\t\t int len = str.length(); \n\t\t \n\t\t // Initialize count array index \n\t\t for (int i = 0; i < len; i++) \n\t\t count[str.charAt(i)]++; \n\t\t \n\t\t // Create an array of given String size \n\t\t char ch[] = new char[str.length()]; \n\t\t for (int i = 0; i < len; i++) { \n\t\t ch[i] = str.charAt(i); \n\t\t int find = 0; \n\t\t for (int j = 0; j <= i; j++) { \n\t\t \n\t\t // If any matches found \n\t\t if (str.charAt(i) == ch[j]) \n\t\t find++; \n\t\t } \n\t\t \n\t\t if (find == 1) \n\t\t System.out.println(\"Number of Occurrence of \" + \n\t\t str.charAt(i) + \" is:\" + count[str.charAt(i)]); \n\t\t } \n\t\t }", "public static void main(String[] args) {\n\t\tString s=\"HeLL)) 123@ _HI ;P\";\n\t\tint aleph=0,upper=0,lower=0,digit=0,alphanum=0,white=0,special=0;\n\t\t\n\t\t\n\t\tfor(int i = 0; i< s.length(); i++) {\n\t\t\tchar c=s.charAt(i);\n\t\t\tif(Character.isAlphabetic(c)) {\n\t\t\t\taleph++;\n\t\t\t}\n\t\t\tif(Character.isUpperCase(c)) {\n\t\t\t\tupper++;\n\t\t\t}\n\t\t\tif(Character.isLowerCase(c)) {\n\t\t\t\tlower++;\n\t\t\t}\n\t\t\tif(Character.isDigit(c)) {\n\t\t\t\tdigit++;\n\t\t\t}\n\t\t\tif(Character.isLetterOrDigit(c)) {\n\t\t\t\talphanum++;\n\t\t\t}\n\t\t\tif(Character.isWhitespace(c)) {\n\t\t\t\twhite++;\n\t\t\t}\n\t\t\tif(!Character.isLetterOrDigit(c) && !Character.isWhitespace(c)){\n\t\t\t\tspecial++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"Alpha count: \" + aleph);\n\t\tSystem.out.println(\"upper count: \" + upper);\n\t\tSystem.out.println(\"lower count: \" + lower);\n\t\tSystem.out.println(\"digit count: \" + digit);\n\t\tSystem.out.println(\"alphanum count: \" + alphanum);\n\t\tSystem.out.println(\"white count: \" + white);\n\t\tSystem.out.println(\"special count: \" + special);\n\t}", "public static int countABC(String str) {\n int x = 0;\n char[] chars = str.toCharArray();\n for (char c : chars) {\n if (c == 'a' || c == 'b' || c == 'c') {\n x += 1;\n }\n }\n return x;\n }", "public static int getAndCountNameLetters(Scanner scnr) {\n\n // FIXME: Use the Scanner parameter instead of creating one every time\n String name = \"\";\n\n if (scnr.hasNext()) {\n name = scnr.next();\n }\n\n return name.length();\n }", "public int count(String word);", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\tString phrase = sc.nextLine();\r\n\t\tchar caract = sc.nextLine().charAt(0);\r\n\r\n\t\tint length = phrase.length();\r\n\t\tint sum = 0;\r\n\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\r\n\t\t\tif ((phrase.charAt(i) == caract))\r\n\t\t\t\tsum = sum + 1;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(sum);\r\n\t}", "public static int countABC(String str) {\n int count = 0;\n for (int i = 0; i < str.length(); i++) {\n if (str.charAt(i) == 'a'){\n count++;\n }\n else if(str.charAt(i) == 'b'){\n count++;\n }\n else if(str.charAt(i) == 'c'){\n count++;\n\n }\n }\n return count;\n }", "public static void main(String[] args) {\n\t\tchar[] characters = { 'a', 'b', 'a', 'c', 'd', 'b' };\n\t\t/*\n\t\t * calling the method countChars\n\t\t * @param characters[]\n\t\t */\n\t\tMap<Character, Integer> countCharacters = countChars(characters);\n\t\t/*\n\t\t * displaying the hashMap\n\t\t */\n\t\tSystem.out.println(countCharacters);\n\t}", "private HashMap<Character, Integer> countAllLetters(String word) {\n WordToolbox otherWord = new WordToolbox(word.toLowerCase());\r\n HashMap<Character, Integer> mapOfWord = new HashMap<>();\r\n for (int i = 0; i < word.length(); i++) {\r\n mapOfWord.put(word.toLowerCase().charAt(i), otherWord.countHowMany(word.toLowerCase().charAt(i)));\r\n }\r\n return mapOfWord;\r\n }", "public static void main(String[] args) {\n\n String s = \"Java Programming Java oops\";\n\n int fullLenght = s.length();\n\n int lengthWithoutas = s.replace(\"a\", \"\").length();\n\n int numOfas = fullLenght - lengthWithoutas;\n\n System.out.println(\"Number of a's in the string = \" + numOfas);\n\n\n }", "public static int[] countChar(String str) {\n\t\tint[] charSet = new int[256];\n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tcharSet[str.charAt(i)]++;\n\t\t}\n\t\treturn charSet;\n\t}", "private static int countOccurrences(String amount, char c) {\n int cnt = 0;\n for(int i = 0; i < amount.length(); i++){\n if(amount.charAt(i) == c){\n cnt++;\n }\n }\n return cnt;\n }", "public static int numOfChars(String str, char ch) {\n\t\tint count = 0; \n\t\tfor(int i = 0; i < str.length(); i++) {\n\t\t\tif(str.charAt(i) == ch)\n\t\t\t\tcount += 1;\n\t\t\t\t\n\t\t}\n\t\treturn count;\n\t}", "public static Map<Character,Integer> countFreq(String string){\n\n\n\n Map<Character,Integer> results = new HashMap<Character,Integer>();\n for (int i = 0; i < string.length(); i++) {\n Character temp = string.charAt(i);\n Integer count;\n// System.out.println(temp);\n if (results.containsKey(temp)){\n count=results.get(temp);\n count++;\n results.replace(temp,count);\n }\n else\n results.put(temp,1);\n\n }\n\n return results;\n }", "public static void main(String[] args)\n {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter a string\");\n String input = scan.nextLine();\n int aCount = 0, eCount = 0, iCount = 0, oCount = 0, uCount = 0, \n nonVowel = 0;\n\n for (int count = 0; count < input.length(); count++)\n {\n char letter = input.charAt(count);\n switch ( letter )\n {\n case 'a':\n aCount++;\n break;\n\n case 'e':\n eCount++;\n break;\n\n case 'i':\n iCount++;\n break;\n\n case 'o':\n oCount++;\n break;\n\n case 'u':\n uCount++;\n break;\n\n case ' ':\n break;\n\n default:\n nonVowel++;\n }\n }\n System.out.println(\"There are: \" + aCount + \" a's, \\t\" + eCount \n + \" e's, \\t \" + iCount + \" i's, \\t\" + oCount \n + \" o's, \\t\" + uCount + \" u's.\");\n System.out.println(\"There are \" + nonVowel + \" non-vowel letters.\");\n }", "private List<Tuple> charCountMap(Tuple input) {\n \n String[] words = input.snd().replaceAll(\"[^a-zA-Z ]\", \"\").toLowerCase().split(\"\\\\s+\");\n \n List<Tuple> output = new ArrayList<Tuple>();\n \n for(String word : words) {\n Integer chars = word.length();\n output.add(new Tuple(chars.toString(),\"1\"));\n }\n \n lolligag();\n \n //<charCount, 1>, <charCount, 1> ...\n return output;\n }", "@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}", "public static void main(String[] args) {\n Bag<Character> bag = new CharacterCount().findCharacterCount(\"Hello World.\");\n bag.uniqueSet().stream().forEach(ch -> {System.out.println(ch + \"-\" + bag.getCount(ch));});\n }", "static int charOccurrenceCount(String s, char c, int startIndex) {\n\t\tif(startIndex == s.length()) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tif(s.charAt(startIndex) == c) {\n\t\t\t\treturn 1 + charOccurrenceCount(s, c, startIndex + 1);\n\t\t\t} else {\n\t\t\t\treturn charOccurrenceCount(s, c, startIndex + 1);\n\t\t\t}\n\t\t}\n\t}", "public int strCount(String str, String sub) {\n//Solution to problem coming soon\n}", "public static void main(String args[]){\n String str = \"aabcadceklmeb\";\n\n HashMap<Character, Integer> map = new HashMap<>();\n\n\n for(int i = 0; i < str.length();i++){\n if(!map.containsKey(str.charAt(i))){\n map.put(str.charAt(i), 1);\n }else{\n int value = map.get(str.charAt(i));\n value++;\n map.put(str.charAt(i), value);\n }\n }\n\n for( char c : map.keySet()){\n if(map.get(c) == 2){\n System.out.println(c);\n }\n }\n \n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter String::\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString str = sc.next().toLowerCase();\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<str.length();i++) {\r\n\t\t\tif(str.charAt(i)=='a' || str.charAt(i)=='e' || str.charAt(i)=='i' ||str.charAt(i)=='o' || str.charAt(i)=='u') {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"No of vovels:: \"+count);\r\n\r\n\t}", "static int countCharacters2(String[] words, String chars) {\n int count = 0;\n int[] seen = new int[26];\n //Count char of Chars String\n for (char c : chars.toCharArray())\n seen[c - 'a']++;\n // Comparing each word in words\n for (String word : words) {\n // simple making copy of seen arr\n int[] tSeen = Arrays.copyOf(seen, seen.length);\n int Tcount = 0;\n for (char c : word.toCharArray()) {\n if (tSeen[c - 'a'] > 0) {\n tSeen[c - 'a']--;\n Tcount++;\n }\n }\n if (Tcount == word.length())\n count += Tcount;\n }\n return count;\n }", "public static void main(String[] args) {\n\t\tString s=\"Ravi Ranjan\";\r\n\t\tchar[] ch=s.toCharArray();\r\n\t\tint count=0;\r\n\t\t\r\n\t\tfor(char c:ch)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\tSystem.out.println(count);\r\n\t\t\r\n\t\t// String length conut with out length method\r\n\t\tString name=\"Vikash\";\r\n\t\tString[] str=name.split(\"\");\r\n\t\tint numcount=0;\r\n\t\tfor(String str1:str)\r\n\t\t{\r\n\t\t\tnumcount++;\r\n\t\t}\r\n\t\tSystem.out.println(numcount);\r\n\t\t\r\n\t\t// String words conut with out length method\r\n\t\tString names=\"Ravi Ranjan Kumar\";\r\n\t\tString[] w=names.split(\" \");\r\n\t\tint wcount=0;\r\n\t\tfor(String st:w)\r\n\t\t{\r\n\t\t\twcount++;\r\n\t\t}\r\n\t\tSystem.out.println(wcount);\r\n\t\t\r\n\r\n\t}", "public void countWordLengthsWithIsLettermethod(FileResource resource, int[] counts) {\r\n for (String word : resource.words()) {\r\n String trim = word.trim();\r\n int wordSize = trim.length();\r\n char firstChar = trim.charAt(0);\r\n char endChar = trim.charAt(trim.length()-1);\r\n if (!Character.isLetter(firstChar) && !Character.isLetter(endChar)) {\r\n wordSize -= 2;\r\n } else \r\n if (!Character.isLetter(firstChar) || !Character.isLetter(endChar)) {\r\n wordSize -= 1;\r\n }\r\n if(wordSize>=counts.length) {\r\n counts[counts.length-1] += 1; \r\n } else\r\n //right algorithm\r\n if( wordSize> 0 && counts[wordSize] != 0 ) {\r\n counts[wordSize] += 1;\r\n \r\n } else if ( wordSize> 0) {\r\n counts[wordSize] = 1;\r\n }\r\n }\r\n \r\n //test\r\n for(int i : counts) {\r\n System.out.println(i);\r\n }\r\n }", "public static int numOccurrences(String testString, char ch) {\n \tif(testString==null) return 0;\n\t\tint numOccurrences = 0;\n\t\tchar [] chars = testString.toCharArray();\n\t\tint len = chars.length;\n\t\tfor(int i = 0; i < len; ++i) {\n\t\t\tif(chars[i] == ch) {\n\t\t\t\t++numOccurrences;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn numOccurrences; \t\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter a string of characters: \");\r\n\t\tString s = input.nextLine();\r\n\t\tchar[] chars = s.toCharArray();\r\n\t\t\r\n\t\t// display uppercase characters\r\n\t\tSystem.out.println(\"There are \" + count(chars) + \" uppercase characters.\");\r\n\t}", "public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String str=sc.nextLine();\n int len=str.length();\n int stat[]=new int[26];\n for(int i=0;i<len;i++)\n {\n if((str.charAt(i)>='a') && ( str.charAt(i)<='z'))\n {\n int offset=str.charAt(i) - 'a';\n stat[offset]++; \n }\n if((str.charAt(i)>='A') && ( str.charAt(i)<='Z'))\n {\n int offset=str.charAt(i) - 'A';\n stat[offset]++; \n }\n }\n for(int i=0;i<26;i++)\n {\n \n if( stat[i]==0)\n {\n char ch=(char)('a'+i);\n System.out.print(ch+\" \");\n \n \n \n }\n }\n}", "public static void main(String[] args) {\n\n\t\tString str = \"Better Butter\";\n\t\t// char[] chararray=s.toCharArray();\n\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n\n\t\t// if(hm.containsKey(s.charAt(index)))\n\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\n\t\t\tif (map.containsKey(str.charAt(i))) {\n\n\t\t\t\tif (str.charAt(i) == '\\0') {\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tint count = map.get(str.charAt(i));\n\t\t\t\tmap.put(str.charAt(i), ++count);\n\t\t\t\tSystem.out.println(map);\n\t\t\t} else {\n\t\t\t\tmap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(map);\n\t}", "public static int Sentence(String name) {\n int count = 0;\n\n char space = ' ';\n\n for (int a = 0; a < name.length(); a++) {\n if (name.charAt(a) == space) {\n count = count + 1;\n\n\n }\n\n\n }\n\n return count + 1;\n }", "private static int characterCount(String expr, Character c) {\n\t\tint count = 0;\n\t\tfor(Character ch : expr.toCharArray()) if(ch == c) count ++;\n\t\treturn count;\n\t}", "public static void main(String[] args) {\n \n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n String[] p = new String[n];\n int[] counter = new int[n];\n for(int i = 0; i<n;i++ ){\n \tp[i] = input.next();\n \t\n \tint j = 0;\n \twhile(j<p[i].length()){\n \t\tint t =1;\n \t\tif(j + t < p[i].length()){\n \t\twhile(p[i].charAt(j) == p[i].charAt(j+t) ){\n \t\t\tt++;\n \t\t\tcounter[i]++;\n \t\t\tif(j+t >= p[i].length())\n \t\t\t\tbreak;\n \t\t\t\n \t\t}\n \t\t}\n \t\tj = j+t;\n \t\t\n \t\t\n \t\t\n \t}\n }\n \n for(int i= 0; i<n;i++){\n\t System.out.println(counter[i]);\n }\n \n \n \n input.close();\n }", "static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }", "public static void main(String[] args) {\n\n\t\tString str=\"I love Florida @@***\";\n\t\t\n\t\tString[] array=str.split(\" \");\n\t\t\n\t\t\n\t\tSystem.out.println(str.replaceAll(\"[A-Za-z]\", \"\").length());\n\t\t\n\t\tSystem.out.println(array.length);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner sc =new Scanner(System.in);\n\t\tString str=sc.nextLine();\n\t\tint sum=0;\n\t\tint count[]=new int[256];\n\t\tint i; \n for (i = 0; i < str.length(); i++) {\n if(str.charAt(i)!=' ') { \n count[(int)str.charAt(i)]++;\n }\n }\n int n = i; \n for (i = 0; i < n; i++) {\n if (count[(int)str.charAt(i)] == 1) {\n \tsum=sum+str.charAt(i);\n }\n }\n\t\tSystem.out.println(sum);\n\t}", "private static Map<Character, Integer> countChars(char[] characters) {\n\t\t/**\n\t\t * creating hashMap called map for storing the character along with count\n\t\t */\n\t\tMap<Character, Integer> map = new HashMap<>();\n\t\t/**\n\t\t * using for as outerloop to take each character for checking\n\t\t */\n\t\tfor (int i = 0; i < characters.length; i++) {\n\t\t\t/**\n\t\t\t * declaring count variable to keep count of repeated characters\n\t\t\t */\n\t\t\tint count = 0;\n\t\t\t/**\n\t\t\t * inner loop for checking the character with particular character\n\t\t\t */\n\t\t\tfor (int j = 0; j < characters.length; j++) {\n\t\t\t\t/**\n\t\t\t\t * if both the character are equal increment the count\n\t\t\t\t */\n\t\t\t\tif (characters[i] == characters[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/**\n\t\t\t * checking if the character already exists in map to remove duplicates\n\t\t\t */\n\t\t\tif (!(map.containsKey(characters[i]))) {\n\t\t\t\t/**\n\t\t\t\t * adding the character and the character count into the map\n\t\t\t\t */\n\t\t\t\tmap.put(characters[i], count);\n\n\t\t\t}\n\t\t}\n\t\t/**\n\t\t * returning the map\n\t\t */\n\t\treturn map;\n\t}", "public static void main(String[] args) {\n\t\tString Input = \"1. It is Work from Home Not Work for Home\";\r\n\t\tint digit=0, upper=0, lower=0, space=0;\r\n\t\tchar[] c = Input.toCharArray();\r\n\t\tfor (char ch : c) {\r\n\t\tswitch(Character.getType(ch)) {\r\n\t\tcase 9:\r\n\t\t\tdigit++;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tspace++;\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tupper++;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tlower++;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Numbers : \"+digit);\r\n\t\tSystem.out.println(\"Uppercase : \"+upper);\r\n\t\tSystem.out.println(\"Lowercase : \"+lower);\r\n\t\tSystem.out.println(\"Space : \"+space);\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString character = \"fsdkjfklsdjfksdlkjdsfoweiopriewfklsdkfldksaflkdsafldkfsieoirwpoiroewofkdsfksldkf\";\n\t\tMap<Character,Integer> map = new HashMap<Character, Integer>();\n\t\tmap = countChars(character);\n\t\tSortMap(map);\n\t}", "public static int countCharacters(char[] characters, char c) {\r\n\t\tint n = 0;//before counting, the number of counts is 0\r\n\t\tfor(int i=0; i<characters.length; i++) {\r\n\t\t\tif(characters[i]==c) {\r\n\t\t\t\tn++;//while there's a character c in a row/column/diagonal, counts plus 1\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn n;//after running the loop, return the number of counts\r\n\t}", "public int symbols(String senha){\n Pattern exp = Pattern.compile(\"([^a-zA-Z\\\\d\\\\s]+)\");\n Matcher matcher = exp.matcher(senha);\n int i = 0;\n while (matcher.find())\n i += matcher.group().length();\n return i;\n }", "public int getLettersCount() {\n return letters_.size();\n }", "static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }", "public static void main(String[] args) \r\n\t{\n\t\tString str=\"pizzapan\";\r\n\t\t//int c=0;\r\n\t\t\r\n\t\tHashMap<Character,Integer> hm=new HashMap<>();\r\n\t\t\r\n\t\tchar s[]=str.toCharArray();\r\n\t\t\r\n\t\t//for(int i=0;i<=s.length;i++)\r\n\t\t\r\n\t\tfor(char var:s)\r\n\t\t{\r\n\t\t\t//c++;\r\n\t\t\tif(hm.containsKey(var))\r\n\t\t\t{\r\n\t\t\t\t//System.out.println( hm.get(var));\r\n\t\t\t\thm.put(var, hm.get(var)+1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\thm.put(var, 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(hm);\r\n\t\t\r\n\t\tSet<Entry<Character, Integer>>en=hm.entrySet();\r\n\t\t\r\n\t\tIterator<Entry<Character, Integer>>itr=en.iterator();\r\n\t\twhile(itr.hasNext())\r\n\t\t{\r\n\t\t\r\n\t\t\tMap.Entry<Character, Integer> data=itr.next();\r\n\t\t\tchar ch=data.getKey();\r\n\t\t\tint occ=data.getValue();\r\n\t\t\tSystem.out.println(ch+\" \"+occ);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString s=\"A\";\n\t\tint l=s.length();\n\t\tint c=0;\n\t\tfor(int i=0;i<l;i++){\n\t\t\tc=(int) (c+(s.charAt(s.length()-i-1)-'A'+1)*Math.pow(26, i));\n\t\t\tSystem.out.println(c);\n\n\t\t}\n\t\t//System.out.println(c);\n\t}", "static int countVowelConsonantSolution1(String str) {\n int result = 0;\n for(int i=0; i<str.length(); i++) {\n char letter = str.toLowerCase().charAt(i);\n\n if(letter>= 'a' && letter <= 'z'){\n if(letter == 'a' || letter == 'e' || letter == 'u' || letter == 'i' || letter == 'o'){\n result += 1;\n }else {\n result += 2;\n }\n }\n\n }\n return result;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n System.out.println(\"Please enter a sentence:\");\n String sentence = sc.nextLine();\n System.out.println(numberOfWords(sentence));\n\n\n }", "public static int [] countChar(String str) {\n char data [] = str.toCharArray();\n \n int count [] = new int [2];\n \n for (int i = 0; i < data.length; i++) {\n if (data[i] == 'n' || data[i] == 'N')\n count[0]++;\n if (data[i] == 'm' || data[i] == 'M')\n count[1]++;\n }\n return count;\n }", "public long numberOfSubstrings(String s) {\n int[] letterCounts = new int[26];\n long substringCount = 0;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n int letterCount = ++letterCounts[c - 'a'];\n substringCount += letterCount;\n }\n return substringCount;\n }", "public static Character findLength(String str) {\n\n List<Character> list = new ArrayList<>();\n for (Character c : str.toCharArray()) {\n list.add(c);\n }\n\n Character result = '\\0';\n for (Character c : list) {\n if (Collections.frequency(list, c) == 1) {\n result = c;\n break;\n }\n }\n\n return result;\n }", "static long repeatedString(String s, long n) {\n long l=s.length();\n long k=n/l;\n long r=n%l;\n long count=0;\n long count1=0;\n char ch[]=s.toCharArray();\n for(int t=0;t<ch.length;t++){\n if(ch[t]=='a')\n count1++;\n }\n for(int t=0;t<r;t++){\n if(ch[t]=='a')\n count++;\n }\n return k*count1+count;\n\n }", "public int getLettersCount() {\n return letters_.size();\n }", "public static void main (String [] args) {\n WordCount wordCount2 = new WordCount();\r\n \r\n int count = 0;\r\n //creates an new scanner\r\n Scanner input = new Scanner(System.in);\r\n //gets the sentence and splits it at the spaces into an array\r\n String sentence = getSentence (input);\r\n String [] words = sentence.split(\" \");\r\n //parsing through the array and changes the counter\r\n for (int i = 0; i < words.length; i++){\r\n if (words[i].charAt(0) == 'a' || words[i].charAt(0) == 'A') {\r\n count = wordCount2.decrementCounter(count);\r\n } else {\r\n count = wordCount2.incrementCounter(count);\r\n }\r\n \r\n \r\n }\r\n //outputs the results \r\n System.out.println (\"There are \" + count + \" words in this sentence.\"); \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }" ]
[ "0.75777596", "0.74562865", "0.7315787", "0.72316974", "0.7191794", "0.7158773", "0.7096132", "0.7092095", "0.709041", "0.70475245", "0.70271844", "0.6905302", "0.68853664", "0.68799746", "0.6869122", "0.6848112", "0.6838469", "0.6837204", "0.6819288", "0.6804097", "0.67959285", "0.6777156", "0.6761326", "0.67420626", "0.6738637", "0.67306674", "0.67286193", "0.6723662", "0.6720751", "0.67176527", "0.6691865", "0.6670574", "0.6629416", "0.6625736", "0.6611037", "0.66054076", "0.6604476", "0.6598429", "0.65912116", "0.65772647", "0.652746", "0.6515837", "0.6502306", "0.65017366", "0.6497114", "0.64910555", "0.64906156", "0.64810306", "0.6480877", "0.6463416", "0.64610785", "0.64609706", "0.64599687", "0.6431201", "0.64151525", "0.6406837", "0.6389236", "0.6384122", "0.6368741", "0.63668716", "0.63549227", "0.6345184", "0.63449425", "0.6343423", "0.634273", "0.6338997", "0.633471", "0.6332121", "0.63287276", "0.6322406", "0.63124853", "0.63077533", "0.63015497", "0.62977284", "0.6293194", "0.62804705", "0.62665266", "0.6263945", "0.62631434", "0.6261631", "0.6255425", "0.6253501", "0.6243662", "0.6239266", "0.6236932", "0.62352526", "0.62252414", "0.62228227", "0.6212811", "0.6210279", "0.620065", "0.617565", "0.6169358", "0.616791", "0.6141107", "0.6136732", "0.61325014", "0.61264855", "0.61227256", "0.61193496" ]
0.64605427
52
TODO Autogenerated method stub
@Override public int insertCustomer(Customer customer) throws BillingServicesDownException { return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public long insertPostPaidAccount(int customerID, PostpaidAccount account) { return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean updatePostPaidAccount(int customerID, PostpaidAccount account) { return false; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int insertMonthlybill(int customerID, long mobileNo, Bill bill) { return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public int insertPlan(Plan plan) throws PlanDetailsNotFoundException { return 0; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean deletePostPaidAccount(int customerID, long mobileNo) { return false; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Bill getMonthlyBill(int customerID, long mobileNo, String billMonth) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Bill> getCustomerPostPaidAccountAllBills(int customerID, long mobileNo) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<PostpaidAccount> getCustomerPostPaidAccounts(int customerID) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Customer getCustomer(int customerID) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Customer> getAllCustomers() { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Plan> getAllPlans() { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Plan getPlan(int planID) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public PostpaidAccount getCustomerPostPaidAccount(int customerID, long mobileNo) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public Plan getPlanDetails(int customerID, long mobileNo) { 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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean deleteCustomer(int customerID) { return false; }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
/ This is the method that is called by the Quartz job scheduler.
@Override @Transactional protected void executeInternal(JobExecutionContext context) throws JobExecutionException { if (batchProcessEnabled()) { StringBuilder builder = new StringBuilder(); // The cron job runs as this user UserSession userSession = new UserSession(user); GlobalVariables.setUserSession(userSession); try { List<ReportTrackingNotificationDetails> results = reportTrackingNotificationService.runReportTrackingNotifications(); buildMessage(builder, results); } catch (Exception e) { LOG.error("Error running report tracking notification service.", e); builder.append("Message: Error running report tracking notification service. See log for more details. ").append(e.getMessage()); } String message = builder.toString(); LOG.info(message); String recipient = getRecipient(); // Send notification only if recipient has been set in the param if (StringUtils.isNotEmpty(recipient)) { kcNotificationService.sendNotification(CONTEXT_NAME, SUBJECT, message, Collections.singletonList(recipient)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scheduleJob() {\n\n }", "protected void beforeJobExecution() {\n\t}", "protected void afterJobExecution() {\n\t}", "public void scheduleJobs();", "@Override\n public void reportScheduler() {\n }", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "public void execute(JobExecutionContext context) throws JobExecutionException {\n \tSystem.out.println(\"This is a scheduled job for HRIS using Quartz 2.2.1 running every 10 minutes\");\n \tSystem.out.println(\"Change QuartzListener class to change schedule of execution\");\n \t\n \t/*\n \ttry {\n\t\t\t\tloanEntryList = loanEntryService.getAllActiveLoanEntry();\n\t\t\t\tfor (LoanEntry le: loanEntryList) {\n\t\t\t\t\tSystem.out.println(\"LoanEntry: \" + le.getEmpId());\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(\"Exception encountered when trying to get all active loan entry..\");\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Exception encountered when trying to get all active loan entry..\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t*/ \n \n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\r\n\tpublic void doAfterJob() {\n\r\n\t}", "@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "@Override\n\t\t\tpublic void beforeJob(JobExecution jobExecution) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void beforeJob(JobExecution arg0) {\n\t\t\n\t}", "void schedule(ScheduledJob job);", "protected abstract void scheduler_init();", "void deschedule(ScheduledJob job);", "public abstract void schedule();", "public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\t\n\t\tint scheduler_id=(Integer)context.getJobDetail().getJobDataMap().get(\"scheduler_id\");\t\t\n \tString taskuid=(String)context.getJobDetail().getJobDataMap().get(\"taskuid\");\n \tString invoked_by=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_INVOKED_BY);\n \tString updatedtime=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_UPDATED_TIME);\n \tNumber trigger_row_id=(Number)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_TRIGGER_ROW_ID);\n \t//System.out.println(\"ScheduledTaskJob.execute() 2be removed later:taskuid:\"+taskuid+\" scheduler_id:\"+scheduler_id);\n \t\n \t\n \t\n \ttry{\n \t\t\n\t \t//Map data=getSchedulerData(scheduler_id);\n \t\tSchedulerDB sdb=SchedulerDB.getSchedulerDB();\n \t\tMap data=null;\n \t\tString inject_code=null;\n \t\ttry{\n \t\t\tsdb.connectDB();\n \t\t\tdata=sdb.getScheduler(scheduler_id); \n \t\t\tif(trigger_row_id!=null){\n \t\t\t\tMap trig=sdb.getOneRowTriggerData(trigger_row_id.longValue());\n \t\t\t\tinject_code=(String)trig.get(\"inject_code\");\n \t\t\t}\n \t\t}catch(Exception e){\n \t\t\tthrow e;\n \t\t}finally {\n \t\t\tsdb.closeDB();\n \t\t}\n \t\t\n \t\tif(data.get(\"deleted\")!=null && ((Number)data.get(\"deleted\")).intValue()==1){\n \t\t\tthrow new Exception(\"Deleted Task can't be executed\");\n \t\t}\n \t\t\n \t\tlog.debug(\"trigger_row_id:\"+trigger_row_id+\" inject_code:\"+inject_code);\n\t \t\n\t \tScheduledTask task=new ScheduledTaskFactory().getTask(taskuid);\n\t \tif(task==null) {\n\t \t\tthrow new Exception(\"Task Group not found for the task:\"+scheduler_id);\n\t \t}\n\t \tStackFrame sframe=new StackFrame(task,data);\n\t \tif(invoked_by!=null && !invoked_by.equals(\"\")) {\n\t \t\tsframe.setInvokedby(invoked_by);\n\t \t}else{\n\t \t\tif(updatedtime!=null){\n\t \t\t\tsframe.setInvokedby(\"Scheduler (\"+updatedtime+\")\");\n\t \t\t}else{\n\t \t\t\tsframe.setInvokedby(\"Scheduler\");\n\t \t\t}\n\t \t}\n\t\t\t\n\t\t\tif(context.getTrigger().getPreviousFireTime()!=null){\n\t\t\t\tsframe.setTrigger_time(context.getTrigger().getPreviousFireTime().getTime());\n\t\t\t}else{\n\t\t\t\tsframe.setTrigger_time(new Date().getTime());\n\t\t\t}\n\t\t\t\n\t\t\tif(context.getTrigger().getNextFireTime()!=null){\n\t\t\t\tsframe.setNexttrigger_time(context.getTrigger().getNextFireTime().getTime());\n\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\tif(Config.getValue(\"load_balancing_server\")!=null && Config.getValue(\"load_balancing_server\").equals(P2PService.getComputerName())){\n\t\t\t\tLoadBalancingQueueItem li=new LoadBalancingQueueItem();\n\t\t\t\tli.setSf(sframe);\n\t\t\t\tInteger id=(Integer)data.get(\"id\");\n\t\t\t\tli.setInject_code(inject_code);\n\t\t\t\tli.setSchedulerid(id);\n\t\t\t\tLoadBalancingQueue.getDefault().add(li);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/*ScheduledTaskQueue.add(sframe);*/\n\t\t\t}\n\t\t\t\n\t\t\tlog.debug(\"adding task to queue: task:\"+data.get(\"name\"));\n \t}catch(Exception e){\n \t\te.printStackTrace(); \t\t\n \t\t//ClientErrorMgmt.reportError(e, \"Error while triggering task\");\n \t} \n\t\t \n\t\t//String status=null;\n\t\t//try{\t\t\n\t\t\t//task.execute();\n\t\t\t//status=task.EXCECUTION_SUCCESS;\n\t\t//}catch(Exception e){\n\t\t//\tstatus=task.EXCECUTION_FAIL;\t\t\t\n\t\t//\tClientErrorMgmt.reportError(e, null);\n\t\t//}finally{\n\t\t//\ttry{\n\t\t//\t\taddLog(sdate,data,status);\n\t\t//\t}catch(Exception e){\n\t\t//\t\tClientErrorMgmt.reportError(e, null);\n\t\t//\t}\t\t\t\n\t\t//}\n\t\t\n \t\n \t\n\t}", "@Override\n\tpublic void execute(JobExecutionContext arg0) throws JobExecutionException {\n\t\t new SchoolMsgService().writeIntoSchoolMsg_ReceivedStu();\n//\t\t System.out.println(\"just test: \" + new Date());\n\t}", "@Override\npublic void run() {\n\tCalendar oFecha = Calendar.getInstance();\n \n\tint minuto = 25;\n\t\n\tSystem.out.println(\n\t\t\toFecha.getTime().toLocaleString() + \n\t\t\t\" MinJob trigged by scheduler - \" + minuto );\n\t\n\ttry {\n\t\tSystem.out.println(Configuracion.getInstance().getProperty(\"clave\") );\n\t} catch(Exception e) {\n\t\te.printStackTrace();\n\t}\n\t\n\tif (oFecha.get(Calendar.MINUTE) == minuto)\t\n\t\tHourlyJob.realizarBackup();\n \n }", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\n public void execute(JobExecutionContext context) {\n\n JobDataMap dataMap = context.getJobDetail().getJobDataMap();\n\n Long dataSourceId = dataMap.getLong(DataVinesConstants.DATASOURCE_ID);\n\n LocalDateTime scheduleTime = DateUtils.date2LocalDateTime(context.getScheduledFireTime());\n LocalDateTime fireTime = DateUtils.date2LocalDateTime(context.getFireTime());\n\n logger.info(\"scheduled fire time :{}, fire time :{}, dataSource id :{}\", scheduleTime, fireTime, dataSourceId);\n logger.info(\"scheduled start work , dataSource id :{} \", dataSourceId);\n\n CatalogMetaDataFetchTaskService catalogMetaDataFetchTaskService = getJobExternalService().getCatalogTaskService();\n CatalogRefresh catalogRefresh = new CatalogRefresh();\n catalogRefresh.setDatasourceId(dataSourceId);\n\n DataSource dataSource = getJobExternalService().getDataSourceService().getDataSourceById(dataSourceId);\n if (dataSource == null) {\n logger.warn(\"dataSource {} is null\", dataSourceId);\n return;\n }\n\n catalogMetaDataFetchTaskService.refreshCatalog(catalogRefresh);\n }", "@Override\n public void beforeJob(JobExecution jobExecution) {\n super.beforeJob(jobExecution);\n }", "public schedulerJob() {\n }", "void cronScheduledProcesses();", "protected abstract String scheduler_next();", "public void doExecute(JobExecutionContext context) {\n\t\tSimpleDateFormat format=new SimpleDateFormat(\"yyyy-MM-dd\");\n String endDate=DateHelper.upDate(new Date(), DateHelper.CONST_PARSE_DATETIME).substring(0, 10);\n String beginDate=\"\";\n Map timeMap=null;\n List gsclist=DbUp.upTable(\"gc_subordinate_count\").dataQuery(\"create_time\", \" create_time desc \",\"\", null,0,1);\n if(gsclist!=null&&gsclist.size()>0){\n \ttimeMap=(Map) gsclist.get(0);\n }\n\n if(timeMap==null||timeMap.get(\"create_time\")==null){\n \tMap map=DbUp.upTable(\"gc_member_relation\").dataQuery(\"create_time\", \" create_time \", \"\", null,0,1).get(0);\n \tif(map!=null&&map.get(\"create_time\")!=null){\n \t\tbeginDate=map.get(\"create_time\").toString();\n \t\t\n \t}\n }\n else{\n \tbeginDate=timeMap.get(\"create_time\").toString();\n \tCalendar begin=Calendar.getInstance();\n \t\ttry {\n\t\t\t\tbegin.setTime(format.parse(beginDate));\n\t\t\t} catch (ParseException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n \t\tbegin.add(Calendar.DAY_OF_MONTH, 1);\n \t\tbeginDate=DateHelper.upDate(begin.getTime());\n }\n beginDate=beginDate.substring(0, 10);\n \n Calendar start = Calendar.getInstance();\n Calendar end = Calendar.getInstance();\n try {\n\t\t\tstart.setTime(format.parse(beginDate));\n\t\t\tend.setTime(format.parse(endDate));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n while(start.before(end))\n {\n \tMDataMap mDataMap=new MDataMap();\n \tString dateString=DateHelper.upDate(start.getTime()).substring(0,10);\n \tmDataMap.put(\"dateString\", dateString);\n \tList<MDataMap> list=DbUp.upTable(\"gc_member_relation\").queryAll(\"parent_code,count(parent_code) as number \", \"\", \" left(create_time,10)=:dateString group by parent_code\", mDataMap);\n for(MDataMap map:list){\n \tDbUp.upTable(\"gc_subordinate_count\").insert(\"date\",dateString,\"account_code\",map.get(\"parent_code\"),\n \t\t\t\"number\",map.get(\"number\"),\"create_time\",FormatHelper.upDateTime());\n }\n \tstart.add(Calendar.DAY_OF_MONTH,1);\n }\n\t}", "public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);\n // Extras, work duration.\n PersistableBundle extras = new PersistableBundle();\n extras.putLong(WORK_DURATION_KEY, Long.valueOf(1) * 1000);\n extras.putString(\"gsonData\", gsonDataa);\n extras.putInt(\"servicetype\", 1);\n builder.setExtras(extras);\n // Schedule job\n Log.d(TAG, \"Scheduling job\");\n JobScheduler tm = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n tm.schedule(builder.build());\n\n }\n\n\n\n }", "public void generateSchedule(){\n\t\t\n\t}", "private void scheduleJob() {\n Log.d(TAG, \"Long lived task is done.\");\n }", "@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}", "public void run() {\n\t\tlog.info(\"Weekly Scheduled Asset Report Job starting >> isMasterInstance:{} and isAuthorInstance:{}.\", isMasterInstance, isAuthorInstance);\r\n\t\tSession session = null;\r\n\t\t\r\n if (isMasterInstance && isAuthorInstance) {\r\n \r\n \tif(sendWeeklyReport) {\r\n\t\t try {\r\n\t\t\t\t\t session = getSession();\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t //TODO- \r\n\t\t\t\t\t String lowerBoundDate = \"2014-06-19\";\r\n\t\t\t\t\t String upperBoundDate = \"2014-06-26\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t String dateRange = lowerBoundDate + \" - \" + upperBoundDate;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t String templatePath = MISReportConstant.REPORT_EMAIL_TEMPLATE;\r\n\t\t\t\t\t Map<String, String> emailParams = MISReportUtil.buildEmailParams(reportType, reportFrequency, dateRange);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t DataSource reportDatasource = generateReport.generateReport(lowerBoundDate, upperBoundDate, reportType, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t //Get the UserGroup name for the reporType\t\t\r\n\t\t\t\t\t String userGroup = userManagement.getUserGroup(reportType);\r\n\t\t\t\t\t\r\n\t\t\t\t\t String[] authors = userManagement.getAllUsersOfGroup(userGroup, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t for(String authorID: authors) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailParams.put(MISReportConstant.FIRST_NAME, userManagement.getUserName(authorID, session));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailService.sendEmail(templatePath, emailParams, session, reportDatasource, userManagement.getEmailAddress(authorID, session));\r\n\t\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\t log.error(\"[Exception]\",e);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif(session.isLive())\r\n\t\t\t\t\t\tsession.logout();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t log.info(\"Weekly Asset Report Job finished sending {} reports\", reportType);\r\n \t}\r\n \telse {\r\n \t\tlog.info(\"Weekly Asset Report Job not executed>> Enable it from the AEM Felix console to execute\");\r\n \t}\r\n }\r\n \r\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "@Override\n\tvoid startWork() {\n\t\t\n\t}", "private void workOnQueue() {\n }", "protected void onQueued() {}", "public static void main(String[] args) {\n\t SimpleDateFormat DateFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\"); \n\t Date d = new Date(); \n\t String returnstr = DateFormat.format(d); \n\t \n\t QuartzPush job = new QuartzPush(); \n\t String job_name =\"11\"; \n\t try {\n\t\t\t\tSystem.out.println(\"★★★★★★★★★★★ \"+\"The QuartzPush Strat,Date is \" +returnstr +\" ★★★★★★★★★★★\");\n\t\t\t\tClass jobClass = Class.forName(\"com.tinytree.job.QuartzPush\");\n\t\t\t\tMap<String ,Object> map = new HashMap<>();\n\t\t\t\tmap.put(\"name\",\"testname\");\n\t\t\t\tmap.put(\"jobName\",\"testname\");\n\t\t\t\tmap.put(\"jobGroup\",\"group\");\n\t\t\t\tmap.put(\"group\",\"group\");\n\t\t\t\tmap.put(\"jobClass\",\"com.tinytree.job.QuartzPush\");\n\t\t\t\t//String cronExpression = \"0 37 16 ? * *\";\n\t\t\t\tString cronExpression = \"0/10 * * * * ?\";//\"0 37 16 ? * *\"\n\t\t\t\tmap.put(\"cronExpression\",cronExpression);\n\n\t QuartzManager.addJob(map);\n\n\t \n\t } catch (Exception e) { \n\t e.printStackTrace(); \n\t } \n\t }", "public Scheduler getScheduler()\r\n/* 30: */ {\r\n/* 31: 73 */ return this.scheduler;\r\n/* 32: */ }", "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "public void runHistoricalBatch(SchedulerJobInfo jobInfo) {\n\n\t\tlog.info(\"Running Historical batch for jobId:\" + jobInfo.getId());\n\n\t\ttry {\n\t\t\tschedulerService.startJobNow(jobInfo);\n\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Historical job scheduler failed dew to\" + e.getMessage());\n\t\t}\n\n\t}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected void runEachDay() {\n \n }", "@Override\n public void taskStarting() {\n\n }", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public void execute(JobExecutionContext context) {\n\t\t\n\t\tProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();\n\t\t\n\t\tCalendar now = Calendar.getInstance();\n\t\t\n\t\tList<SchedulerItem> schedulerItems = this.getAllSchedule();\n\t\t\n\t\tfor (final SchedulerItem item : schedulerItems) {\n\t\t\t\n\t\t\tif (!(item.getStartDate().getTime() <= now.getTimeInMillis())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tProcessManagerRemote pm = null;\n\t\t\tProcessInstance instance = null;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpm = pmfb.getProcessManager();\n\t\t\t\ttry {\n\t\t\t\t\tinstance = pm.getProcessInstance(item.getInstanceId());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean isError = true;\n\t\t\t\t\n\t\t\t\tif (instance != null) {\n\t\t\t\t\tActivity act = instance.getProcessDefinition().getActivity(item.getTracingTag());\n\n\t\t\t\t\tif (act != null && act instanceof WaitActivity) {\n\t\t\t\t\t\tString status = act.getStatus(instance);\n\t\t\t\t\t\tif (Activity.STATUS_RUNNING.equals(status) || Activity.STATUS_TIMEOUT.equals(status)) {\n\n\t\t\t\t\t\t\tinstance.getProcessTransactionContext().addTransactionListener(new TransactionListener() {\n\n\t\t\t\t\t\t\t\tpublic void beforeRollback(TransactionContext tx) throws Exception {\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic void beforeCommit(TransactionContext tx) throws Exception {\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic void afterRollback(TransactionContext tx) throws Exception {\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tpublic void afterCommit(TransactionContext tx) throws Exception {\n\t\t\t\t\t\t\t\t\tdeleteSchedule(item.getIdx());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tact.fireComplete(instance);\n\t\t\t\t\t\t\tisError = false;\n\n\t\t\t\t\t\t} else if (Activity.STATUS_FAULT.equals(status)\n\t\t\t\t\t\t\t\t|| Activity.STATUS_READY.equals(status) \n\t\t\t\t\t\t\t\t|| Activity.STATUS_STOPPED.equals(status) || Activity.STATUS_CANCELLED.equals(status) ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (isError) {\n\t\t\t\t\tdeleteSchedule(item.getIdx());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpm.applyChanges();\t\n\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry {\n\t\t\t\t\tpm.cancelChanges();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t} finally{\n\t\t\t\ttry {\n\t\t\t\t\tpm.remove();\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (RemoveException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"scheduler WaitJob execute() end...\");\n\t}", "@Override\n public void run() {\n schedule();\n }", "abstract public void computeSchedule();", "public void finalizeJob() {\n // override to implement\n }", "public abstract void maintenanceSchedule() ;", "@Override\r\n\tpublic void executer() {\n\t}", "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }", "public RunProcDefJob() {\n\t}", "@Test\n\t@Ignore\n\tpublic void testScheduler() {\n\t\torg.springframework.scheduling.support.CronTrigger trigger = new CronTrigger(\"0 0 0 * * *\");\n\t\tCalendar today = Calendar.getInstance();\n\t\ttoday.add(Calendar.DAY_OF_MONTH, -1);\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss z\");\n\t\tfinal Date yesterday = today.getTime();\n\t\tString lastMessage = (sdf.format(yesterday)) + \" : [Yesterday]\";\n\t\tlog.debug(lastMessage);\n\t\tDate nextExecution = trigger.nextExecutionTime(\n\t\t\t\tnew TriggerContext() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Date lastScheduledExecutionTime() {\n\t\t\t\t\t\treturn yesterday;\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Date lastActualExecutionTime() {\n\t\t\t\t\t\treturn yesterday;\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Date lastCompletionTime() {\n\t\t\t\t\t\treturn yesterday;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tString nextMessage = sdf.format(nextExecution) + \" : [Execution] \";\n\t\tlog.debug(nextMessage);\n\t}", "@Override\n\tfinal public void execute(ICustomContext context) {\n\n\t\tfinal Job job = initializeJob(context);\n\t\tconfigureJob(job);\n\n\t\t// Callback\n\t\tbeforeJobExecution();\n\n\t\t// Job is run\n\t\tjob.schedule();\n\t}", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "void loadJobDetails() {\n if (!enabled.get()) {\n LOGGER.info(\"Skip loading scheduled jobs\");\n return;\n }\n loadJobsInCurrentChunk()\n .filter(j -> !scheduler.scheduled(j.getId()).isPresent())//not consider already scheduled jobs\n .flatMapRsPublisher(t -> ErrorHandling.skipErrorPublisher(scheduler::schedule, t))\n .forEach(a -> LOGGER.debug(\"Loaded and scheduled job {}\", a))\n .run()\n .whenComplete((v, t) -> Optional.ofNullable(t)\n .map(ex -> {\n LOGGER.error(\"Error Loading scheduled jobs!\", ex);\n return null;\n })\n .orElseGet(() -> {\n LOGGER.info(\"Loading scheduled jobs completed !\");\n return null;\n }));\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "@Override\n\tpublic void execute(JobExecutionContext arg0) throws JobExecutionException {\n\t\tCommonJdbcDao commonDao = (CommonJdbcDao)arg0.getJobDetail().getJobDataMap().get(\"CommonJdbcDao\");\n\t\tScriptManager.getScriptManager().loadInnerServers(commonDao);\n\t\tScriptManager.getScriptManager().loadAccount(commonDao);\n\t\tSystem.out.println(\"CronTriggerJob = \" + System.currentTimeMillis());\n\t}", "public void execute(JobExecutionContext context) {\n sendSevenDaysExpiringEmails();\n sendOneDayExpiringEmails();\n sendOneDayExpiredEmails();\n }", "public AutomaticJob() {\r\n \r\n }", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void date()\n {\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "public GetJobs() {\r\n\t\tsuper();\r\n\t}", "abstract void doJob();", "JobResponse refresh();", "private void scheduleOrExecuteJob() {\n try {\n for (TaskScheduler entry : this.schedulers.values()) {\n StandardTaskScheduler scheduler = (StandardTaskScheduler) entry;\n // Maybe other thread close&remove scheduler at the same time\n synchronized (scheduler) {\n this.scheduleOrExecuteJobForGraph(scheduler);\n }\n }\n } catch (Throwable e) {\n LOG.error(\"Exception occurred when schedule job\", e);\n }\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n\tpublic void completed() {\n\t\tSystem.out.println(\"Message Completed: \" + toString());\n\t\tscheduler.putResourceIdle();\n\t\ttry {\n\t\t\tscheduler.applyScheduling();\n\t\t} catch (Exception e) {\n\t\t\t// this should be logged or on a GUI show a dialog of the error\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "public void update(Schedule arg0) {\n\t\t\n\t}", "public abstract void processJob() throws Exception;", "@Override\n\tpublic void myWork() {\n\t\t\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "private void registerCallHomeJob() {\n String callHomeQuarzExpression = CallHomeJob.buildRandomQuartzExp();\n TaskBase callHomeJob = TaskUtils.createCronTask(\n CallHomeJob.class,\n callHomeQuarzExpression\n );\n log.debug(\"Scheduling CallHomeJob to run at '{}'\", callHomeQuarzExpression);\n taskService.startTask(callHomeJob, false);\n }", "public void scheduleJob(JobInfo t) {\n Log.d(TAG, \"Scheduling job\");\n try {\n JobScheduler tm = (JobScheduler) appContext.getSystemService(appContext.JOB_SCHEDULER_SERVICE);\n tm.schedule(t);\n int i = 0;\n } catch (Exception e) {\n e.printStackTrace();\n int i = 0;\n }\n }", "void completeJob();", "private static void scheduleJob(Context context, JobInfo job) {\n JobScheduler jobScheduler =\n (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);\n int result = jobScheduler.schedule(job);\n Assert.assertEquals(JobScheduler.RESULT_SUCCESS, result);\n if (DEBUG) {\n Log.d(TAG, \"Scheduling result is \" + result);\n }\n }", "void cronTrimActivityQueue();", "@Scheduled(cron = \"0 * * * * *\")\r\n\tpublic void run() {\r\n\r\n\t\tString[] emailArray = new String[emailRecipientList.size()];\r\n\t\temailArray = emailRecipientList.toArray(emailArray);\r\n\t\tLOGGER.debug(\"Sending a email to \" + emailArray);\r\n //Current time\r\n\t\tLocalDateTime now = LocalDateTime.now();\r\n\t\t//Current time - 1 hour\r\n\t\tLocalDateTime after = LocalDateTime.now().minusHours(1);\r\n\r\n\t\tTimestamp dateCreatedBefore = Timestamp.valueOf(now);\r\n\t\tTimestamp dateCreatedAfter = Timestamp.valueOf(after);\r\n\t\t// Search for file id's added for the last hour \r\n\t\tList<Long> ids = infoDataService.searchFileId(null, null, \r\n\t\t\t\tdateCreatedBefore, dateCreatedAfter, null, null,null);\r\n\t\t// Create a email body \r\n\t\tStringBuffer emailBody =new StringBuffer();\r\n\t\temailBody.append(\"New Files Uploaded:\");\r\n for(Long id : ids) {\r\n \ttry {\r\n \t FileInfo metaData = infoDataService.findRecordById(id);\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"*******************************************************\");\r\n \t emailBody.append(System.lineSeparator());\r\n \t emailBody.append(\"ID:\"+metaData.getId());\r\n \t emailBody.append(\", ORIGINAL NAME: \"+metaData.getFileName());\r\n \t Long size = metaData.getSize()/1000;\r\n \t emailBody.append(\", SIZE (KB):\"+size);\r\n \t emailBody.append((metaData.getPublicAccess())?\", PUBLIC ACCESS: true\":\" , PUBLIC ACCESS: false\");\r\n \t emailBody.append(\", TIME UPLOADED:\"+metaData.getUploadedTs().toLocalDateTime());\r\n \t emailBody.append(System.lineSeparator());\r\n \t}\r\n \tcatch(Exception e) {\r\n \t\temailBody.append(Utilities.NO_DATA_FOR_ID+id); \t\t\r\n \t}\r\n }\r\n // Sending a scheduled email \r\n SimpleMailMessage msg = new SimpleMailMessage();\r\n\t\tmsg.setTo(emailArray);\r\n\t\tmsg.setSubject(Utilities.SCHEDULER_SUBJECT);\r\n\t\tmsg.setText(emailBody.toString());\r\n\t\tmsg.setFrom(emailSender);\r\n\r\n\t\t// TODO\r\n\t\t// Uncomment the next line after adding a correct credentials to the\r\n\t\t// application.properies file\r\n\t\t// javaMailSender.send(msg);\r\n\r\n\t}", "private static \tvoid schedule(IMirror mirror) throws SchedulerException, ParseException {\n\n String mirrorID = \"none\";\n\t\ttry {\n\t\t\tmirrorID = mirror.getMirrorID();\n\t \n\t\t} catch (ConfigException e) {\n\t\t\tlogger.error(\"At this point the mirror must have a mirrorID which it has not: \" + e.getMessage());\n\t\t}\n\t\t\n\t\tString jobNameAKAMirrorID = mirrorID;\n\t\tString downloaderGroupName = DOWNLOADER;\n\t\tString diffGeneratorGroupName = DIFF_GENERATOR;\n\t\tString deltaGeneratorGroupName = DELTA_GENERATOR;\n\t\t\n\t\t/*\n\t\t * DELTA job\n\t\t */\n\t\tJobDetail deltaJobDetail = new JobDetail(jobNameAKAMirrorID,\n\t\t\t\t\t\t\t\tdeltaGeneratorGroupName, // default group\n\t\t\t\t\t\t\t\tDOMDeltaGeneratorJob.class); // the diff job\n\t\t\n\t\t/*\n\t\t * DIFF job\n\t\t */\n\t\tJobDetail diffJobDetail = new JobDetail(jobNameAKAMirrorID,\n\t\t\t\t\t\t\t\tdiffGeneratorGroupName, // default group\n\t\t\t\t\t\t\t\tDOMDiffGeneratorJob.class); // the diff job\n\t\t\n\t\t/*\n\t\t * DOWNLOADER job\n\t\t * This job is the point of entry in the workflow.\n\t\t * It needs to know about the 2 jobs which are next (see above).\n\t\t */\n\t\tJobDetail jobDetail = new JobDetail(jobNameAKAMirrorID, downloaderGroupName,\n\t\t\t\t\t\t\t\t\tDownloaderJob.class); // the job\n\t\t\n\t\tjobDetail.getJobDataMap().put(MIRROR, mirror);\n\t\tjobDetail.getJobDataMap().put(DELTA_GENERATOR, deltaJobDetail);\n\t\tjobDetail.getJobDataMap().put(DIFF_GENERATOR, diffJobDetail);\n\t\t\n\t\tCronTrigger trigger = new CronTrigger(\"CronTrigger for \" + mirror,\n\t\t\t\t\t\t\t\t\tdownloaderGroupName, jobNameAKAMirrorID, downloaderGroupName,\n\t\t\t\t\t\t\t\t\tmirror.getCronExpression() );\n\t\t// TODO remove below!\n\t\t//Trigger trigger = TriggerUtils.makeMinutelyTrigger(intervalHours);\n\t\t//Trigger trigger = TriggerUtils.makeHourlyTrigger(intervalHours);\n\t\ttrigger.setStartTime(new java.util.Date());\n\t\ttrigger.setName(\"Download Job for \" + mirror);\n\t\tsched.scheduleJob(jobDetail, trigger);\n\t\t\n\t\tlogger.info(\"Scheduled job for \" + mirror \n\t\t\t\t+ \" with cron expression '\" + mirror.getCronExpression() + \"'\");\n\t\t\n\t}", "@Before\n public void setup() throws SchedulerException {\n quartzScheduler.clear();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@PostConstruct\n\tpublic void scheduleAllJobs() {\n\t\tschedulerService.startAllActiveSchedulers();\n\t}", "void doIt() throws RBEConfigObjectException, IOException\n\t{\n\t\t// Create a schedules\n\t\tSchedules schedules = new Schedules();\n\n\t\t// add a schedule that include a period for 8:00am to 6:00pm every Monday\n\t\taddMondayOnly(schedules);\n\n\t\t// Save it to a file\n\t\tsave(schedules, SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\n\t\t// load the schedules from and check if it is equals to the original.\n\t\tSchedules schedulesLoaded = load(SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\t\tif (!schedules.equals(schedulesLoaded))\n\t\t\tprintln(\"Error saving schedules to file!\");\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "public void jobToBeExecuted(JobExecutionContext jobExecutionContext) {}", "public void afterPropertiesSet()\r\n/* 40: */ throws SchedulerException\r\n/* 41: */ {\r\n/* 42: 82 */ if (this.scheduler == null) {\r\n/* 43: 83 */ if (this.schedulerName != null) {\r\n/* 44: 84 */ this.scheduler = findScheduler(this.schedulerName);\r\n/* 45: */ } else {\r\n/* 46: 87 */ throw new IllegalStateException(\"No Scheduler specified\");\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: 90 */ registerListeners();\r\n/* 50: 91 */ registerJobsAndTriggers();\r\n/* 51: */ }", "@Override\n protected Scheduler createScheduler() {\n return new JLScheduler(this) {\n @Override\n public List<Goal> goals(Job job) {\n List<Goal> goals= super.goals(job);\n Goal endGoal = goals.get(goals.size()-1);\n if (!(endGoal.name().equals(\"End\"))) {\n throw new IllegalStateException(\"Last goal is not an End goal?\");\n }\n endGoal.addPrereq(new IRGoal(job, fSourceLoader));\n return goals;\n }\n };\n }", "@Override\n public Void run() throws Exception {\n Callable<Job> jobCreator = ReflectionUtils.newInstance(jobConfig.getJobCreator(), jobConfiguration);\n Job job = jobCreator.call();\n job.submit();\n\n // Blocking mode is only for testing\n if(waitForCompletition) {\n job.waitForCompletion(true);\n }\n\n // And generate event with further job details\n EventRecord event = getContext().createEventRecord(\"job-created\", 1);\n Map<String, Field> eventMap = ImmutableMap.of(\n \"tracking-url\", Field.create(job.getTrackingURL()),\n \"job-id\", Field.create(job.getJobID().toString())\n );\n event.set(Field.create(eventMap));\n getContext().toEvent(event);\n return null;\n }", "@Override\n public void fetchScheduled(RuleKey ruleKey) {\n }", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}" ]
[ "0.7717622", "0.708888", "0.68397045", "0.6826991", "0.6800894", "0.6701451", "0.66516364", "0.6628389", "0.6572815", "0.65024674", "0.64904445", "0.6487265", "0.63693374", "0.6355847", "0.6355789", "0.6321376", "0.63020897", "0.6300967", "0.6289399", "0.62771094", "0.625231", "0.62219167", "0.61775553", "0.6107697", "0.61063534", "0.61017144", "0.6096015", "0.6083602", "0.6071016", "0.60627055", "0.6052462", "0.6042756", "0.604091", "0.60398537", "0.60398537", "0.6026532", "0.6021774", "0.6021428", "0.6017737", "0.6015469", "0.60150826", "0.6009094", "0.59773475", "0.5975267", "0.5972912", "0.5970831", "0.5938832", "0.59378153", "0.5874572", "0.5861879", "0.586183", "0.5851125", "0.584722", "0.5842877", "0.5840535", "0.58336943", "0.58324236", "0.5804186", "0.58035076", "0.5800518", "0.5796459", "0.5796188", "0.57894796", "0.57870054", "0.5786858", "0.5782014", "0.57780486", "0.5775911", "0.57745045", "0.5772625", "0.57669246", "0.5763811", "0.57541597", "0.57538867", "0.57435054", "0.5736259", "0.57334495", "0.5720779", "0.5718825", "0.5697271", "0.5694074", "0.56907773", "0.56905174", "0.5686451", "0.56846005", "0.5672994", "0.56715477", "0.56715477", "0.56715477", "0.5670465", "0.56654745", "0.5663394", "0.5661326", "0.5657054", "0.56534564", "0.56466734", "0.56431663", "0.5640817", "0.56399363", "0.56337374" ]
0.57530624
74
This method gets the recipient specified in the parameter.
protected String getRecipient() { return parameterService.getParameterValueAsString(AwardDocument.class, Constants.REPORT_TRACKING_NOTIFICATIONS_BATCH_RECIPIENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRecipient()\n {\n return recipient;\n }", "public String getRecipient() {\n\t\treturn recipient;\n\t}", "public java.lang.String getRecipient() {\n return recipient;\n }", "public Object getRecipient() {\n\t\treturn this.recipient;\n\t}", "public Recipient getRecipient() {\n return recipient;\n }", "public final Player getRecipient() {\n return recipient;\n }", "JsonObject fetchRecipient(String recipientToken);", "public String recipientId() {\n return recipientId;\n }", "public static String getRecipient(final Bundle bundle) {\n return bundle.getString(Constants.BUNDLE_STRING_RECIPIENT, null);\n }", "public String getRecipient(int i) {\n return recipients.get(i);\n }", "public int getRecipientId() {\r\n\t\treturn recipientId;\r\n\t}", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public ReceiverIdentifier getRecipient() {\n\n // Get the recipient of the missive document\n return this.missiveHeader.getRcv();\n }", "public static String getRecipientEmail() {\n return recipientEmail;\n }", "public TriggerRecipient getRecipient () {\n return this.recipient;\n }", "@java.lang.Override\n public long getRecipientId() {\n return recipientId_;\n }", "public RecipientResponse getRecipient(String recipientId){\n return client.get(buildUrl(recipientId), RecipientResponse.class);\n }", "public void setRecipient(String recipient)\n {\n this.recipient = recipient;\n }", "@Override\n public void recipient(String recipient) {\n }", "public java.lang.Object getRecipientEmailAddress() {\n return recipientEmailAddress;\n }", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "@Override\n public String toString() {\n return \"Recipient: \" + recipients[0] + \"; Type: \" + type;\n }", "public COSString getRecipientStringAt(int i)\n {\n COSArray array = (COSArray)encryptionDictionary.getItem(COSName.getPDFName(\"Recipients\"));\n return (COSString)array.get(i);\n }", "String getSender();", "String getTo();", "public void setRecipient(java.lang.String recipient) {\n this.recipient = recipient;\n }", "public void setRecipient(String recipient){\n this.recipients = new String[1];\n recipients[0] = recipient;\n }", "public static String logRecipient(Recipient recipient) {\n return String.format(RECIPIENT, recipient.getType(), recipient.getID(), recipient.getUserName(), \"xxx\");\n }", "java.lang.String getSenderId();", "java.lang.String getParticipant();", "public void setRecipient(Object recipient) {\n\t\tthis.recipient = recipient;\n\t}", "protected String getTargetAccountFromRecipients(MimeMessage emailMessage) throws MessagingException {\r\n\t\tAddress[] addresses = emailMessage.getAllRecipients();\r\n\t\tString targetAccount = null;\r\n\t\tfor (Address add : addresses) {\r\n\t\t\tif (add.toString().contains(\"appspotmail\")) {\r\n\t\t\t\tString emailAddress = add.toString();\r\n\t\t\t\tlog.info(\"appspotmail email address found: \" + emailAddress);\r\n\t\t\t\tint atIndex = emailAddress.indexOf('@');\r\n\t\t\t\tint startIndex = emailAddress.lastIndexOf('<');\r\n\t\t\t\ttargetAccount = emailAddress.substring(startIndex+1, atIndex) + \"@gmail.com\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn targetAccount;\r\n\t}", "public java.lang.String getRecipientDn() {\r\n return recipientDn;\r\n }", "public java.lang.Object getRecipientDisplayName() {\n return recipientDisplayName;\n }", "String getResponsible();", "protected String getTo()\n {\n Object[] msgOptions =\n {\n \"Standard\", \"Broadcast\"\n };\n\n int n = JOptionPane.showOptionDialog(null,\n \"What message type are you sending?\",\n \"Send Message\",\n JOptionPane.DEFAULT_OPTION,\n JOptionPane.INFORMATION_MESSAGE, null,\n msgOptions, msgOptions[0]);\n\n String handle = \"\";\n\n if (n == 0)\n {\n List<String> contacts = new ArrayList();\n agent.getContacts().forEach((c) ->\n {\n contacts.add(c);\n });\n\n while (handle.isEmpty())\n {\n handle = JOptionPane.showInputDialog(null, \"Current Contacts\\n\" + contacts + \"\\n\\nWho would you like to message?\", \"Send Message\");\n if (handle == null)\n {\n setVisible(false);\n //Doesn't error now, but immediately exiting program isn't useful\n System.exit(0);\n }\n if (!handle.matches(\"^[^\\\\d\\\\s]+$\"))\n {\n handle = \"\";\n }\n }\n }\n else\n {\n handle = \"all\";\n }\n\n return handle;\n }", "@Override\n\tpublic String getAdres() {\n\t\tString pName= ctx.getCallerPrincipal().getName();\n\t\tPerson p=userEJB.findPerson(pName);\n\t\tString w=p.getAddress();\n\t\treturn w;\n\t}", "java.lang.String getSenderName();", "private List<Recipient> findRecipients(String profile) {\n //return service.findRecipient(profile);\n return null;\n }", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.MessageDestinationType getTo();", "String getCustomerEmail(String bookingRef);", "public Reply recipient(String recipientText) throws ThingsException, InterruptedException;", "String getUserMail();", "public void addRecipient(String recipient) {\n\t\tthis.recipient = recipient;\n\t}", "String getFrom();", "String getFrom();", "String getFrom();", "String getFrom();", "@Override\n\tprotected UserTO getTo() {\n\t\treturn userTO;\n\t}", "public Guid getInvoiceRecipientId() {\r\n return invoiceRecipientId;\r\n }", "INotificationTraveller getSender();", "List<Worker<?, ?>> getRecipients() {\n\t\tList<Worker<?, ?>> retval = Collections.unmodifiableList(recipients);\n\t\treturn retval;\n\t}", "public String getTo()\r\n {\r\n return to;\r\n }", "private static PluginMessageRecipient getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? Bukkit.getServer() : Remain.getOnlinePlayers().iterator().next();\n\t}", "public String[] getRecipients() {\n return recipients;\n }", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "java.lang.String getEmail();", "public APIgetRecipientsRequest getRecipients() {\n return new APIgetRecipientsRequest();\n }", "String getUserMainEmail( int nUserId );", "Object getFrom();", "public String getTo() {\n return to;\n }", "String getReceiver();", "public String getEmailMessage(Agent agent);", "String getEmail();", "String getEmail();", "String getEmail();", "String getEmail();", "String getEmail();", "public String getSender ()\r\n\t{\r\n\t\treturn sender;\r\n\t}", "public String[] getRecipients() {\n\t\treturn recipients;\n\t}", "public String getFamilyPerson(String familyId);", "TrackerNotificationRecipients getTrackerNotificationRecipients(final Integer id);", "public V getTo()\n\t{\n\t\treturn to;\n\t}", "@Override\n\tpublic java.lang.String getPersonalEmail() {\n\t\treturn _candidate.getPersonalEmail();\n\t}", "public String getFromEMail() {\n return fromEMail;\n }", "java.lang.String getTelefon();", "public Object getDestination() {\n/* 339 */ return this.peer.getTarget();\n/* */ }", "private Message createMessageToSingleRecipient (Session session, String recipient, String subject, String message, String attachment, String fromAddress) {\r\n\t\t\r\n\t\tMessage msg = null;\r\n\t\tString addressToStr = \"\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmsg = new MimeMessage(session);\r\n\t\t\tInternetAddress addressTo = new InternetAddress(recipient);\r\n\t\t\tmsg.setRecipient(Message.RecipientType.TO, addressTo);\r\n\r\n\t\t\t//\r\n\t\t\tInternetAddress fromInternetAddress = new InternetAddress(fromAddress);\r\n\t\t\tmsg.setFrom(fromInternetAddress); \r\n\t\t\t//\r\n\t\t\t\r\n\t\t\tlogger.info(\"Destinatario: \" + recipient + \"| \" + addressToStr);\r\n\t\t\tbuildMessage(subject, message, attachment, msg);\r\n\t\t} catch (MessagingException exception) {\r\n\t\t\tlogger.error(\"Huvo un error tratando de crear el mensaje del email. Causa: {} / {}\", exception.getClass().toString(), exception.getMessage());\r\n\t\t}\r\n\t\treturn msg;\r\n\t}", "User getPassedUser();", "java.lang.String getDelegateSuggestedSignerEmail();", "public Player getOtherPlayer(Player player) {\n return (sender == player) ? recipient : sender;\n }", "Observable<String> messageBodyRecipientTextViewText();", "kr.pik.message.Profile.Contact getContact();", "String getEmail(int type);", "@Override\n\tpublic List<String> getMessages(EmailAddress recipient) throws MessageEngineException {\n\t\treturn null;\n\t}", "private String getPlayerMail() {\n EditText mail = (EditText) findViewById(R.id.mail_edittext_view);\n return mail.getText().toString();\n }", "protected void getRecipientNumber(TargetForm aForm, HttpServletRequest req) {\n\t\tTargetDao targetDao = (TargetDao) getBean(\"TargetDao\");\n\t\tTarget target = (Target) getBean(\"Target\");\n\t\tRecipientDao recipientDao = (RecipientDao) getBean(\"RecipientDao\");\n\t\t\n\t\ttarget = targetDao.getTarget(aForm.getTargetID(), aForm.getCompanyID(req));\n\t\tint numOfRecipients = recipientDao.sumOfRecipients(aForm.getCompanyID(req), target.getTargetSQL());\n\t\t\n\t\taForm.setNumOfRecipients(numOfRecipients);\n\t\t\n\t}", "public Builder setRecipientId(long value) {\n\n recipientId_ = value;\n bitField0_ |= 0x00000080;\n onChanged();\n return this;\n }", "public String getExternalRecipients(String serviceProviderCode, Long alertID) throws AAException, RemoteException;", "public Name\r\ngetMailbox() {\r\n\treturn getSingleName();\r\n}", "public String getSender() {\n return this.sender;\n }" ]
[ "0.7631702", "0.7553002", "0.74412906", "0.7431889", "0.7312859", "0.725811", "0.69515204", "0.6770197", "0.67508006", "0.66803944", "0.6506918", "0.64969057", "0.6451424", "0.64376646", "0.64224726", "0.64094514", "0.6269544", "0.6180941", "0.60661", "0.60509574", "0.60190886", "0.60190886", "0.60190886", "0.60190886", "0.60190886", "0.60190886", "0.5999532", "0.5982118", "0.5964557", "0.5951352", "0.591957", "0.5890933", "0.5888925", "0.5834263", "0.5757861", "0.5749898", "0.573558", "0.56903446", "0.56896853", "0.5626423", "0.55687624", "0.5544537", "0.5517418", "0.550395", "0.54932696", "0.5419321", "0.54085594", "0.5407481", "0.5405382", "0.5378983", "0.5378983", "0.5378983", "0.5378983", "0.5378952", "0.53578436", "0.5333501", "0.5321927", "0.531339", "0.53060436", "0.5304884", "0.53024805", "0.53024805", "0.53024805", "0.53024805", "0.53024805", "0.53024805", "0.5302066", "0.5285374", "0.5280327", "0.5259473", "0.52244824", "0.5223676", "0.5222931", "0.5222931", "0.5222931", "0.5222931", "0.5222931", "0.5221458", "0.52035475", "0.5173245", "0.51419044", "0.5132956", "0.51285607", "0.5122328", "0.5120141", "0.5116542", "0.51137596", "0.5108835", "0.5096486", "0.5096252", "0.50835556", "0.5076552", "0.5071155", "0.5063282", "0.504797", "0.5045018", "0.5040216", "0.5037673", "0.5022354", "0.501827" ]
0.72559536
6
This is injected into the scheduler context by spring.
public void setParameterService(ParameterService parameterService) { this.parameterService = parameterService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "protected abstract void scheduler_init();", "@Autowired\n public ScheduledTask(IsTimeProducer producer, IsTimeService isTimeService) {\n this.producer = producer;\n this.isTimeService = isTimeService;\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "ScheduledExecutorService getScheduler() {\n return scheduler;\n }", "public Scheduler getScheduler()\r\n/* 30: */ {\r\n/* 31: 73 */ return this.scheduler;\r\n/* 32: */ }", "public void setScheduler(RunnerScheduler scheduler) {\n this.scheduler = scheduler;\n }", "public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}", "@PostConstruct\n public void init() {\n threadPoolTaskScheduler.scheduleWithFixedDelay(this::process, Instant.now(), Duration.ofSeconds(30));\n }", "@Autowired\n public QuartzController(QuartzService quartzService) {\n this.quartzService = quartzService;\n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "@Override\n\tpublic void afterSpringLoad(AfterSpringLoadSupplierExtensionContext context) throws Exception {\n\t\tcontext.addThreadSynchroniser(() -> new SpringDataThreadSynchroniser());\n\t}", "@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }", "@Bean\n public ThreadPoolTaskScheduler iotTaskScheduler(){\n ThreadPoolTaskScheduler threadPoolTaskScheduler\n = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(10);\n threadPoolTaskScheduler.setThreadNamePrefix(\n \"iotTaskScheduler\");\n return threadPoolTaskScheduler;\n }", "SchedulersFactory getSchedulersFactory();", "@Bean\n\tpublic SchedulerFactoryBean schedulerFactoryBean() throws ParseException {\n\t\tSchedulerFactoryBean scheduler = new SchedulerFactoryBean();\n\t\tList<Trigger> lsTrigger =new ArrayList<Trigger>();\n\n\t\t//se habilita trigger de searchCandidatesJob\n\t\tif(searchCandidatesStart){\n\t\t\tlsTrigger.add(searchCandidatesTaskTrigger().getObject());\n\t\t}\n\t\t\n\t\t//se habilita trigger de syncDocsJob\n\t\t/*if(syncDocsStart){\n\t\t\tlsTrigger.add(syncDocsTaskTrigger().getObject());\n\t\t}*/\n\t\t\n\t\t//se habilita trigger de reminConfirmInscripJob\n\t\tif(sendReminderConfirmInscripStart){\n\t\t\tlsTrigger.add(reminConfirmInscripTrigger().getObject());\n\t\t}\n\t\t\n\t\t//se habilita trigger de reminPublicationJob\n\t\tif(sendReminderPublicationStart){\n\t\t\tlsTrigger.add(reminPublicationTrigger().getObject());\n\t\t}\n\t\t\n\t\t//Si se activo al menos un Trigger\n\t\tif(lsTrigger.size() > 0){\n\t\t\tscheduler.setTriggers(lsTrigger.toArray(new Trigger[lsTrigger.size()]));\n\t\t}\n\t\treturn scheduler;\n\t}", "public void afterPropertiesSet()\r\n/* 40: */ throws SchedulerException\r\n/* 41: */ {\r\n/* 42: 82 */ if (this.scheduler == null) {\r\n/* 43: 83 */ if (this.schedulerName != null) {\r\n/* 44: 84 */ this.scheduler = findScheduler(this.schedulerName);\r\n/* 45: */ } else {\r\n/* 46: 87 */ throw new IllegalStateException(\"No Scheduler specified\");\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: 90 */ registerListeners();\r\n/* 50: 91 */ registerJobsAndTriggers();\r\n/* 51: */ }", "@Override\n public void onContextCreated() {\n HeartbeatJob.updateBinaryServiceClusterChanges(serversService);\n registersHeartbeatJob();\n registerCallHomeJob();\n }", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "public interface SchedulerProvider {\n\n Scheduler io();\n\n Scheduler ui();\n}", "public schedulerJob() {\n }", "private JobScheduler getScheduler(Context context) {\n if (scheduler == null) {\n scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);\n }\n\n return scheduler;\n }", "protected Spring() {}", "@Autowired\n public QuartzDAOService(JdbcTemplate jdbcTemplate) {\n super();\n super.setJdbcTemplate(jdbcTemplate);\n }", "public synchronized Scheduler getScheduler() { return this.scheduler; }", "@PostConstruct\n public void postConstruct() {\n execService = Executors.newScheduledThreadPool(1);\n scheduledFuture = execService.scheduleAtFixedRate(this, 0, PUSH_REPEAT_DELAY, TimeUnit.MILLISECONDS);\n }", "@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }", "@PostConstruct\n public void init() {\n interval = AppConfiguration.CONFIG.getStationInfoInterval();\n }", "@Override\n public void init(Object data)\n {\n // Rely on injection\n if (schedulerService == null)\n {\n log.error(\"You can not use the SchedulerTool unless you enable \"\n +\"the Scheduler Service!!!!\");\n }\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "public Scheduler getScheduler() {\n\t\treturn scheduler;\n\t}", "@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}", "public static SchedulerService get() {\n return SINGLETON;\n }", "@PostConstruct\n\tpublic void scheduleAllJobs() {\n\t\tschedulerService.startAllActiveSchedulers();\n\t}", "@PostConstruct\n public void setUpTasks() {\n final Iterable<Task> findAll = taskService.findAll();\n if (findAll != null) {\n findAll.forEach(task -> {\n\n final RunnableTask runnableTask = new RunnableTask(task.getId(), runTaskService);\n\n if (task.getCronExpression() != null) {\n log.info(\"Adding cron schedule for {} : {}\", task.getId(), task.getCronExpression());\n threadPoolTaskScheduler.schedule(runnableTask, new CronTrigger(task.getCronExpression()));\n }\n else if (task.getDelayPeriod() > 0) {\n log.info(\"Adding periodic schedule for {} : {}\", task.getId(), task.getDelayPeriod());\n threadPoolTaskScheduler.schedule(runnableTask, new PeriodicTrigger(task.getDelayPeriod()));\n }\n else {\n log.error(\"Invalid task {}\", task.getId());\n }\n\n });\n }\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tscheduler.shutdownNow();\n\t}", "@Override\n public void execute(JobExecutionContext context) {\n\n JobDataMap dataMap = context.getJobDetail().getJobDataMap();\n\n Long dataSourceId = dataMap.getLong(DataVinesConstants.DATASOURCE_ID);\n\n LocalDateTime scheduleTime = DateUtils.date2LocalDateTime(context.getScheduledFireTime());\n LocalDateTime fireTime = DateUtils.date2LocalDateTime(context.getFireTime());\n\n logger.info(\"scheduled fire time :{}, fire time :{}, dataSource id :{}\", scheduleTime, fireTime, dataSourceId);\n logger.info(\"scheduled start work , dataSource id :{} \", dataSourceId);\n\n CatalogMetaDataFetchTaskService catalogMetaDataFetchTaskService = getJobExternalService().getCatalogTaskService();\n CatalogRefresh catalogRefresh = new CatalogRefresh();\n catalogRefresh.setDatasourceId(dataSourceId);\n\n DataSource dataSource = getJobExternalService().getDataSourceService().getDataSourceById(dataSourceId);\n if (dataSource == null) {\n logger.warn(\"dataSource {} is null\", dataSourceId);\n return;\n }\n\n catalogMetaDataFetchTaskService.refreshCatalog(catalogRefresh);\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "public RequestUrlHandler() {\n // requestService = SpringContextHolder.getBean(ScfRequestService.class);\n }", "public Scheduler()\n {\n this.id = \"\"+ hashCode();\n register();\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "public CronJobTrigger() {\n init();\n }", "@Bean\n\tpublic JobDetailFactoryBean reminderPublicationJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(ReminderPublicationJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"reminderServicePub\", appContext.getBean(\"reminderService\") );\n\t\tmap.put(\"adminServicePub\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"reminderPublicationJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}", "public interface RxSchedulerProvider {\n\n\n Scheduler backgroundThread();\n\n Scheduler io();\n\n Scheduler compute();\n\n Scheduler androidThread();\n\n Scheduler internet();\n\n}", "private JobScheduler() {\n // empty\n }", "@PostConstruct\n public void startWatch() throws Exception {\n LOGGER.info(\"START WATCH.\");\n Runnable task = new Runnable() {\n @Override\n public void run() {\n saveCurrencyListToDb();\n }\n };\n saveScheduleManagement(task, LocalTime.of(timePointHour, timePointMinute), period, TimeUnit.HOURS);\n }", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "public interface SchedulerProvider {\r\n\r\n Scheduler computation();\r\n\r\n Scheduler io();\r\n\r\n Scheduler ui();\r\n}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "public interface JobScheduleService {\n void addJobScheduleHistory(JobContext jobInfo, ScheduleStatusEnum scheduleStatus);\n}", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@Override\n public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {\n final ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(scheduledTaskPoolSize);\n threadPoolTaskScheduler.setThreadNamePrefix(scheduledTaskThreadPrefix);\n threadPoolTaskScheduler.initialize();\n scheduledTaskRegistrar.setTaskScheduler(threadPoolTaskScheduler);\n }", "JavaFxScheduler() {\n }", "public interface SchedulerProvider {\n\n Scheduler ui();\n\n Scheduler computation();\n\n Scheduler io();\n\n}", "private void scheduleJob() {\n\n }", "public static NamingScheduledTaskContext createNamingScheduledTaskContext(){\r\n\t\treturn new NamingScheduledTaskContext();\r\n\t}", "public EnergySchedulingFactoryImpl() {\n\t\tsuper();\n\t}", "public PriorityScheduler() {\n }", "@Before\n public void setup() throws SchedulerException {\n quartzScheduler.clear();\n }", "public SeamCronExtension() {\n log.debug(\"Initiailised SeamCronExtension\");\n }", "@Override\n public void reportScheduler() {\n }", "public interface SchedulerService {\n\n /**\n * Schedule cron jobs.\n */\n void scheduleCronJobs() throws WorkflowException;\n\n}", "public interface ScheduledBillService {\n\tpublic void scheduleTaskWithCronExpression();\n}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void beforeJobExecution() {\n\t}", "public PriorityScheduler() {\n\t}", "public void setScheduler(ElevatorsScheduler scheduler) {\n this.scheduler = scheduler;\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@ServiceInit\n public void init() {\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "public interface AppScheduler {\n Scheduler getNewThread();\n Scheduler getMainThread();\n}", "public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}", "public String getSchedulerName() {\n return schedulerName;\n }", "@Override\n public void configure() throws Exception {\n from(\"timer:new-order?delay=0s&period=10s\")\n .bean(\"orderService\", \"generateOrder\")\n .toF(\"jpa:%s\", Order.class.getName())\n .log(\"Inserted new order ${body.id}\");\n\n // A second route polls the database for new orders and processes them\n fromF(\"jpa:%s?consumeDelete=false&consumer.transacted=true&joinTransaction=true&consumer.namedQuery=pendingOrders\", Order.class.getName())\n .process(exchange -> {\n Order order = exchange.getIn().getBody(Order.class);\n order.setStatus(\"PROCESSED\");\n })\n .toF(\"jpa:%s\", Order.class.getName())\n .log(\"Processed order #id ${body.id} with ${body.amount} copies of the «${body.description}» book\");\n }", "@PostConstruct\n public void initTriggerEvaluateRunning() {\n this.triggerRepository.findAll().forEach(trigger -> {\n if (trigger.getEvaluateRunningDate() != null) {\n var unlocked = trigger.toBuilder().evaluateRunningDate(null).build();\n this.triggerRepository.save(unlocked);\n }\n });\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "void schedule(ScheduledJob job);", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@Override\r\n\tpublic IScheduler getForcedScheduler() {\n\t\treturn null;\r\n\t}", "public void setSchedulerName(String schedulerName)\r\n/* 20: */ {\r\n/* 21: 58 */ this.schedulerName = schedulerName;\r\n/* 22: */ }", "@Override\n public void autonomousPeriodic() {\n \n }", "@Override\n public void autonomousPeriodic() {\n\n }", "public Scheduler(String scheduler_name) {\n super();\n this.scheduler_name = scheduler_name;\n this.task_set = null;\n }", "public final void init(TaskSet task_set) {\n if (this.task_set != null)\n throw new IllegalStateException(\"cannot initialize a scheduler twice\");\n\n this.task_set = task_set;\n this.scheduler_init();\n }", "@Override\n public void init(String planQueuePath,\n ReservationSchedulerConfiguration conf) {\n }", "@Override\n\tfinal public void execute(ICustomContext context) {\n\n\t\tfinal Job job = initializeJob(context);\n\t\tconfigureJob(job);\n\n\t\t// Callback\n\t\tbeforeJobExecution();\n\n\t\t// Job is run\n\t\tjob.schedule();\n\t}", "@PostConstruct\n public void init() {\n prevBatchTime = transients.now();\n }", "@Override\r\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tCptedController.getInstance();\r\n\t}", "public static void enablePeriodicalRun(Context context) {\n\t}", "public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\t\n\t\tint scheduler_id=(Integer)context.getJobDetail().getJobDataMap().get(\"scheduler_id\");\t\t\n \tString taskuid=(String)context.getJobDetail().getJobDataMap().get(\"taskuid\");\n \tString invoked_by=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_INVOKED_BY);\n \tString updatedtime=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_UPDATED_TIME);\n \tNumber trigger_row_id=(Number)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_TRIGGER_ROW_ID);\n \t//System.out.println(\"ScheduledTaskJob.execute() 2be removed later:taskuid:\"+taskuid+\" scheduler_id:\"+scheduler_id);\n \t\n \t\n \t\n \ttry{\n \t\t\n\t \t//Map data=getSchedulerData(scheduler_id);\n \t\tSchedulerDB sdb=SchedulerDB.getSchedulerDB();\n \t\tMap data=null;\n \t\tString inject_code=null;\n \t\ttry{\n \t\t\tsdb.connectDB();\n \t\t\tdata=sdb.getScheduler(scheduler_id); \n \t\t\tif(trigger_row_id!=null){\n \t\t\t\tMap trig=sdb.getOneRowTriggerData(trigger_row_id.longValue());\n \t\t\t\tinject_code=(String)trig.get(\"inject_code\");\n \t\t\t}\n \t\t}catch(Exception e){\n \t\t\tthrow e;\n \t\t}finally {\n \t\t\tsdb.closeDB();\n \t\t}\n \t\t\n \t\tif(data.get(\"deleted\")!=null && ((Number)data.get(\"deleted\")).intValue()==1){\n \t\t\tthrow new Exception(\"Deleted Task can't be executed\");\n \t\t}\n \t\t\n \t\tlog.debug(\"trigger_row_id:\"+trigger_row_id+\" inject_code:\"+inject_code);\n\t \t\n\t \tScheduledTask task=new ScheduledTaskFactory().getTask(taskuid);\n\t \tif(task==null) {\n\t \t\tthrow new Exception(\"Task Group not found for the task:\"+scheduler_id);\n\t \t}\n\t \tStackFrame sframe=new StackFrame(task,data);\n\t \tif(invoked_by!=null && !invoked_by.equals(\"\")) {\n\t \t\tsframe.setInvokedby(invoked_by);\n\t \t}else{\n\t \t\tif(updatedtime!=null){\n\t \t\t\tsframe.setInvokedby(\"Scheduler (\"+updatedtime+\")\");\n\t \t\t}else{\n\t \t\t\tsframe.setInvokedby(\"Scheduler\");\n\t \t\t}\n\t \t}\n\t\t\t\n\t\t\tif(context.getTrigger().getPreviousFireTime()!=null){\n\t\t\t\tsframe.setTrigger_time(context.getTrigger().getPreviousFireTime().getTime());\n\t\t\t}else{\n\t\t\t\tsframe.setTrigger_time(new Date().getTime());\n\t\t\t}\n\t\t\t\n\t\t\tif(context.getTrigger().getNextFireTime()!=null){\n\t\t\t\tsframe.setNexttrigger_time(context.getTrigger().getNextFireTime().getTime());\n\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\tif(Config.getValue(\"load_balancing_server\")!=null && Config.getValue(\"load_balancing_server\").equals(P2PService.getComputerName())){\n\t\t\t\tLoadBalancingQueueItem li=new LoadBalancingQueueItem();\n\t\t\t\tli.setSf(sframe);\n\t\t\t\tInteger id=(Integer)data.get(\"id\");\n\t\t\t\tli.setInject_code(inject_code);\n\t\t\t\tli.setSchedulerid(id);\n\t\t\t\tLoadBalancingQueue.getDefault().add(li);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/*ScheduledTaskQueue.add(sframe);*/\n\t\t\t}\n\t\t\t\n\t\t\tlog.debug(\"adding task to queue: task:\"+data.get(\"name\"));\n \t}catch(Exception e){\n \t\te.printStackTrace(); \t\t\n \t\t//ClientErrorMgmt.reportError(e, \"Error while triggering task\");\n \t} \n\t\t \n\t\t//String status=null;\n\t\t//try{\t\t\n\t\t\t//task.execute();\n\t\t\t//status=task.EXCECUTION_SUCCESS;\n\t\t//}catch(Exception e){\n\t\t//\tstatus=task.EXCECUTION_FAIL;\t\t\t\n\t\t//\tClientErrorMgmt.reportError(e, null);\n\t\t//}finally{\n\t\t//\ttry{\n\t\t//\t\taddLog(sdate,data,status);\n\t\t//\t}catch(Exception e){\n\t\t//\t\tClientErrorMgmt.reportError(e, null);\n\t\t//\t}\t\t\t\n\t\t//}\n\t\t\n \t\n \t\n\t}", "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "public WNMSDataScheduler(){\n\t\tthis.wdl = new DataLogger(EnumSet.noneOf(LogAppType.class),slog);\n\t\tthis.df = new SimpleDateFormat(DATE_FORMAT);\n\t\tthis.tf = new SimpleDateFormat(TIME_FORMAT);\n\t\tthis.jobs = new HashMap<String,ConversionJob>();\n\t\tthis.trigs = new HashMap<String,Trigger>();\n\t\tthis.ears = new HashMap<String,ConversionListener>();\n\t\tthis.cprops = new ArrayList<ConfigProperties>();\n\t\tthis.jobscheduler = new ConversionJobScheduler();\n\t\tthis.poller = new ConfigPoller(CONF_DIR,new ArrayList<ConfigProperties>());\n\t}", "public String getSchedulerName() {\r\n return this.schedulerName;\r\n }", "@Override\n\t\t\tpublic void beforeJob(JobExecution jobExecution) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.66755366", "0.65800333", "0.6366038", "0.6301895", "0.6259235", "0.61835134", "0.6085371", "0.60642123", "0.60530174", "0.5984281", "0.5959146", "0.594175", "0.59187984", "0.59062856", "0.58850694", "0.5884177", "0.5874423", "0.5848627", "0.5844489", "0.5832178", "0.5825479", "0.58007574", "0.57999057", "0.57790774", "0.5775545", "0.57547295", "0.57382965", "0.5737289", "0.57325566", "0.57194906", "0.5704676", "0.567644", "0.56662464", "0.56519127", "0.5622476", "0.5622252", "0.56195015", "0.56194746", "0.5603587", "0.56019115", "0.55951566", "0.5592577", "0.556934", "0.55653113", "0.55566937", "0.55503166", "0.5532907", "0.5532907", "0.5532907", "0.5520208", "0.55059105", "0.55057466", "0.5497967", "0.54975224", "0.54965645", "0.54905033", "0.5490373", "0.5488093", "0.5466008", "0.54649526", "0.5455115", "0.54451644", "0.5439439", "0.54393333", "0.54322404", "0.5427405", "0.54189634", "0.5409685", "0.5389923", "0.5386414", "0.5371327", "0.5360746", "0.53602237", "0.53480613", "0.5345968", "0.53427655", "0.53355277", "0.5305572", "0.52986467", "0.5296186", "0.5296186", "0.5296186", "0.5296186", "0.5295937", "0.52911526", "0.52871686", "0.5286489", "0.5284792", "0.5282958", "0.5280999", "0.52795714", "0.5274324", "0.5269742", "0.52659804", "0.5265898", "0.52603376", "0.52581257", "0.5255218", "0.5251832", "0.52441895", "0.52438575" ]
0.0
-1
This is injected into the scheduler context by spring.
public void setKcNotificationService(KcNotificationService kcNotificationService) { this.kcNotificationService = kcNotificationService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected Scheduler scheduler() {\n return scheduler;\n }", "protected abstract void scheduler_init();", "@Autowired\n public ScheduledTask(IsTimeProducer producer, IsTimeService isTimeService) {\n this.producer = producer;\n this.isTimeService = isTimeService;\n }", "public void setScheduler(Scheduler scheduler)\r\n/* 25: */ {\r\n/* 26: 65 */ this.scheduler = scheduler;\r\n/* 27: */ }", "ScheduledExecutorService getScheduler() {\n return scheduler;\n }", "public Scheduler getScheduler()\r\n/* 30: */ {\r\n/* 31: 73 */ return this.scheduler;\r\n/* 32: */ }", "public void setScheduler(RunnerScheduler scheduler) {\n this.scheduler = scheduler;\n }", "public interface SchedulerProvider {\n Scheduler background();\n Scheduler ui();\n}", "@PostConstruct\n public void init() {\n threadPoolTaskScheduler.scheduleWithFixedDelay(this::process, Instant.now(), Duration.ofSeconds(30));\n }", "@Autowired\n public QuartzController(QuartzService quartzService) {\n this.quartzService = quartzService;\n }", "public void init(){\n\t\t//this.lock = new ReentrantLock();\n\t\t//jobscheduler.setLock(this.lock);\n\t\tthis.poller.inspect();\n\t\tschedule(this.poller.refresh());\t\t\t\t\n\t}", "@Override\n\tpublic void afterSpringLoad(AfterSpringLoadSupplierExtensionContext context) throws Exception {\n\t\tcontext.addThreadSynchroniser(() -> new SpringDataThreadSynchroniser());\n\t}", "@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }", "@Bean\n public ThreadPoolTaskScheduler iotTaskScheduler(){\n ThreadPoolTaskScheduler threadPoolTaskScheduler\n = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(10);\n threadPoolTaskScheduler.setThreadNamePrefix(\n \"iotTaskScheduler\");\n return threadPoolTaskScheduler;\n }", "SchedulersFactory getSchedulersFactory();", "@Bean\n\tpublic SchedulerFactoryBean schedulerFactoryBean() throws ParseException {\n\t\tSchedulerFactoryBean scheduler = new SchedulerFactoryBean();\n\t\tList<Trigger> lsTrigger =new ArrayList<Trigger>();\n\n\t\t//se habilita trigger de searchCandidatesJob\n\t\tif(searchCandidatesStart){\n\t\t\tlsTrigger.add(searchCandidatesTaskTrigger().getObject());\n\t\t}\n\t\t\n\t\t//se habilita trigger de syncDocsJob\n\t\t/*if(syncDocsStart){\n\t\t\tlsTrigger.add(syncDocsTaskTrigger().getObject());\n\t\t}*/\n\t\t\n\t\t//se habilita trigger de reminConfirmInscripJob\n\t\tif(sendReminderConfirmInscripStart){\n\t\t\tlsTrigger.add(reminConfirmInscripTrigger().getObject());\n\t\t}\n\t\t\n\t\t//se habilita trigger de reminPublicationJob\n\t\tif(sendReminderPublicationStart){\n\t\t\tlsTrigger.add(reminPublicationTrigger().getObject());\n\t\t}\n\t\t\n\t\t//Si se activo al menos un Trigger\n\t\tif(lsTrigger.size() > 0){\n\t\t\tscheduler.setTriggers(lsTrigger.toArray(new Trigger[lsTrigger.size()]));\n\t\t}\n\t\treturn scheduler;\n\t}", "public void afterPropertiesSet()\r\n/* 40: */ throws SchedulerException\r\n/* 41: */ {\r\n/* 42: 82 */ if (this.scheduler == null) {\r\n/* 43: 83 */ if (this.schedulerName != null) {\r\n/* 44: 84 */ this.scheduler = findScheduler(this.schedulerName);\r\n/* 45: */ } else {\r\n/* 46: 87 */ throw new IllegalStateException(\"No Scheduler specified\");\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: 90 */ registerListeners();\r\n/* 50: 91 */ registerJobsAndTriggers();\r\n/* 51: */ }", "@Override\n public void onContextCreated() {\n HeartbeatJob.updateBinaryServiceClusterChanges(serversService);\n registersHeartbeatJob();\n registerCallHomeJob();\n }", "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "public interface SchedulerProvider {\n\n Scheduler io();\n\n Scheduler ui();\n}", "public schedulerJob() {\n }", "private JobScheduler getScheduler(Context context) {\n if (scheduler == null) {\n scheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);\n }\n\n return scheduler;\n }", "protected Spring() {}", "@Autowired\n public QuartzDAOService(JdbcTemplate jdbcTemplate) {\n super();\n super.setJdbcTemplate(jdbcTemplate);\n }", "public synchronized Scheduler getScheduler() { return this.scheduler; }", "@PostConstruct\n public void postConstruct() {\n execService = Executors.newScheduledThreadPool(1);\n scheduledFuture = execService.scheduleAtFixedRate(this, 0, PUSH_REPEAT_DELAY, TimeUnit.MILLISECONDS);\n }", "@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }", "@PostConstruct\n public void init() {\n interval = AppConfiguration.CONFIG.getStationInfoInterval();\n }", "@Override\n public void init(Object data)\n {\n // Rely on injection\n if (schedulerService == null)\n {\n log.error(\"You can not use the SchedulerTool unless you enable \"\n +\"the Scheduler Service!!!!\");\n }\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.DAYS);\n }", "public Scheduler getScheduler() {\n\t\treturn scheduler;\n\t}", "@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}", "public static SchedulerService get() {\n return SINGLETON;\n }", "@PostConstruct\n\tpublic void scheduleAllJobs() {\n\t\tschedulerService.startAllActiveSchedulers();\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tscheduler.shutdownNow();\n\t}", "@PostConstruct\n public void setUpTasks() {\n final Iterable<Task> findAll = taskService.findAll();\n if (findAll != null) {\n findAll.forEach(task -> {\n\n final RunnableTask runnableTask = new RunnableTask(task.getId(), runTaskService);\n\n if (task.getCronExpression() != null) {\n log.info(\"Adding cron schedule for {} : {}\", task.getId(), task.getCronExpression());\n threadPoolTaskScheduler.schedule(runnableTask, new CronTrigger(task.getCronExpression()));\n }\n else if (task.getDelayPeriod() > 0) {\n log.info(\"Adding periodic schedule for {} : {}\", task.getId(), task.getDelayPeriod());\n threadPoolTaskScheduler.schedule(runnableTask, new PeriodicTrigger(task.getDelayPeriod()));\n }\n else {\n log.error(\"Invalid task {}\", task.getId());\n }\n\n });\n }\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void execute(JobExecutionContext context) {\n\n JobDataMap dataMap = context.getJobDetail().getJobDataMap();\n\n Long dataSourceId = dataMap.getLong(DataVinesConstants.DATASOURCE_ID);\n\n LocalDateTime scheduleTime = DateUtils.date2LocalDateTime(context.getScheduledFireTime());\n LocalDateTime fireTime = DateUtils.date2LocalDateTime(context.getFireTime());\n\n logger.info(\"scheduled fire time :{}, fire time :{}, dataSource id :{}\", scheduleTime, fireTime, dataSourceId);\n logger.info(\"scheduled start work , dataSource id :{} \", dataSourceId);\n\n CatalogMetaDataFetchTaskService catalogMetaDataFetchTaskService = getJobExternalService().getCatalogTaskService();\n CatalogRefresh catalogRefresh = new CatalogRefresh();\n catalogRefresh.setDatasourceId(dataSourceId);\n\n DataSource dataSource = getJobExternalService().getDataSourceService().getDataSourceById(dataSourceId);\n if (dataSource == null) {\n logger.warn(\"dataSource {} is null\", dataSourceId);\n return;\n }\n\n catalogMetaDataFetchTaskService.refreshCatalog(catalogRefresh);\n }", "public RequestUrlHandler() {\n // requestService = SpringContextHolder.getBean(ScfRequestService.class);\n }", "public Scheduler()\n {\n this.id = \"\"+ hashCode();\n register();\n }", "@Override\n protected Scheduler scheduler() {\n return Scheduler.newFixedRateSchedule(0, 1, TimeUnit.SECONDS);\n }", "public CronJobTrigger() {\n init();\n }", "@Bean\n\tpublic JobDetailFactoryBean reminderPublicationJob(){\n\t\tJobDetailFactoryBean factory = new JobDetailFactoryBean();\n\t\tfactory.setJobClass(ReminderPublicationJob.class);\n\t\tMap<String,Object> map = new HashMap<String,Object>();\n\t\tmap.put(\"reminderServicePub\", appContext.getBean(\"reminderService\") );\n\t\tmap.put(\"adminServicePub\", appContext.getBean(\"adminService\") );\n\t\tfactory.setJobDataAsMap(map);\n\t\tfactory.setName(\"reminderPublicationJob\");\n\t\tfactory.setDurability(true);\n\t\treturn factory;\n\t}", "public interface RxSchedulerProvider {\n\n\n Scheduler backgroundThread();\n\n Scheduler io();\n\n Scheduler compute();\n\n Scheduler androidThread();\n\n Scheduler internet();\n\n}", "private JobScheduler() {\n // empty\n }", "@PostConstruct\n public void startWatch() throws Exception {\n LOGGER.info(\"START WATCH.\");\n Runnable task = new Runnable() {\n @Override\n public void run() {\n saveCurrencyListToDb();\n }\n };\n saveScheduleManagement(task, LocalTime.of(timePointHour, timePointMinute), period, TimeUnit.HOURS);\n }", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "public interface PostExecutionThread {\n Scheduler getScheduler();\n}", "@Override\r\n public void init() throws Exception {\r\n context = SpringApplication.run(getClass(), savedArgs);\r\n context.getAutowireCapableBeanFactory().autowireBean(this);\r\n }", "public interface SchedulerProvider {\r\n\r\n Scheduler computation();\r\n\r\n Scheduler io();\r\n\r\n Scheduler ui();\r\n}", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public interface JobScheduleService {\n void addJobScheduleHistory(JobContext jobInfo, ScheduleStatusEnum scheduleStatus);\n}", "@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@Override\n public void configureTasks(ScheduledTaskRegistrar scheduledTaskRegistrar) {\n final ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();\n threadPoolTaskScheduler.setPoolSize(scheduledTaskPoolSize);\n threadPoolTaskScheduler.setThreadNamePrefix(scheduledTaskThreadPrefix);\n threadPoolTaskScheduler.initialize();\n scheduledTaskRegistrar.setTaskScheduler(threadPoolTaskScheduler);\n }", "JavaFxScheduler() {\n }", "public interface SchedulerProvider {\n\n Scheduler ui();\n\n Scheduler computation();\n\n Scheduler io();\n\n}", "private void scheduleJob() {\n\n }", "public static NamingScheduledTaskContext createNamingScheduledTaskContext(){\r\n\t\treturn new NamingScheduledTaskContext();\r\n\t}", "public EnergySchedulingFactoryImpl() {\n\t\tsuper();\n\t}", "public PriorityScheduler() {\n }", "public SeamCronExtension() {\n log.debug(\"Initiailised SeamCronExtension\");\n }", "@Before\n public void setup() throws SchedulerException {\n quartzScheduler.clear();\n }", "@Override\n public void reportScheduler() {\n }", "public interface SchedulerService {\n\n /**\n * Schedule cron jobs.\n */\n void scheduleCronJobs() throws WorkflowException;\n\n}", "public interface ScheduledBillService {\n\tpublic void scheduleTaskWithCronExpression();\n}", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "protected void beforeJobExecution() {\n\t}", "public PriorityScheduler() {\n\t}", "public void setScheduler(ElevatorsScheduler scheduler) {\n this.scheduler = scheduler;\n }", "@ServiceInit\n public void init() {\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "public interface AppScheduler {\n Scheduler getNewThread();\n Scheduler getMainThread();\n}", "public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}", "public String getSchedulerName() {\n return schedulerName;\n }", "@Override\n public void configure() throws Exception {\n from(\"timer:new-order?delay=0s&period=10s\")\n .bean(\"orderService\", \"generateOrder\")\n .toF(\"jpa:%s\", Order.class.getName())\n .log(\"Inserted new order ${body.id}\");\n\n // A second route polls the database for new orders and processes them\n fromF(\"jpa:%s?consumeDelete=false&consumer.transacted=true&joinTransaction=true&consumer.namedQuery=pendingOrders\", Order.class.getName())\n .process(exchange -> {\n Order order = exchange.getIn().getBody(Order.class);\n order.setStatus(\"PROCESSED\");\n })\n .toF(\"jpa:%s\", Order.class.getName())\n .log(\"Processed order #id ${body.id} with ${body.amount} copies of the «${body.description}» book\");\n }", "@PostConstruct\n public void initTriggerEvaluateRunning() {\n this.triggerRepository.findAll().forEach(trigger -> {\n if (trigger.getEvaluateRunningDate() != null) {\n var unlocked = trigger.toBuilder().evaluateRunningDate(null).build();\n this.triggerRepository.save(unlocked);\n }\n });\n }", "void schedule(ScheduledJob job);", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "public void setSchedulerName(String schedulerName)\r\n/* 20: */ {\r\n/* 21: 58 */ this.schedulerName = schedulerName;\r\n/* 22: */ }", "@Override\r\n\tpublic IScheduler getForcedScheduler() {\n\t\treturn null;\r\n\t}", "@Override\n public void autonomousPeriodic() {\n \n }", "@Override\n public void autonomousPeriodic() {\n\n }", "public Scheduler(String scheduler_name) {\n super();\n this.scheduler_name = scheduler_name;\n this.task_set = null;\n }", "public final void init(TaskSet task_set) {\n if (this.task_set != null)\n throw new IllegalStateException(\"cannot initialize a scheduler twice\");\n\n this.task_set = task_set;\n this.scheduler_init();\n }", "@Override\n public void init(String planQueuePath,\n ReservationSchedulerConfiguration conf) {\n }", "@Override\n\tfinal public void execute(ICustomContext context) {\n\n\t\tfinal Job job = initializeJob(context);\n\t\tconfigureJob(job);\n\n\t\t// Callback\n\t\tbeforeJobExecution();\n\n\t\t// Job is run\n\t\tjob.schedule();\n\t}", "@Override\r\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tCptedController.getInstance();\r\n\t}", "@PostConstruct\n public void init() {\n prevBatchTime = transients.now();\n }", "public static void enablePeriodicalRun(Context context) {\n\t}", "public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\t\n\t\tint scheduler_id=(Integer)context.getJobDetail().getJobDataMap().get(\"scheduler_id\");\t\t\n \tString taskuid=(String)context.getJobDetail().getJobDataMap().get(\"taskuid\");\n \tString invoked_by=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_INVOKED_BY);\n \tString updatedtime=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_UPDATED_TIME);\n \tNumber trigger_row_id=(Number)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_TRIGGER_ROW_ID);\n \t//System.out.println(\"ScheduledTaskJob.execute() 2be removed later:taskuid:\"+taskuid+\" scheduler_id:\"+scheduler_id);\n \t\n \t\n \t\n \ttry{\n \t\t\n\t \t//Map data=getSchedulerData(scheduler_id);\n \t\tSchedulerDB sdb=SchedulerDB.getSchedulerDB();\n \t\tMap data=null;\n \t\tString inject_code=null;\n \t\ttry{\n \t\t\tsdb.connectDB();\n \t\t\tdata=sdb.getScheduler(scheduler_id); \n \t\t\tif(trigger_row_id!=null){\n \t\t\t\tMap trig=sdb.getOneRowTriggerData(trigger_row_id.longValue());\n \t\t\t\tinject_code=(String)trig.get(\"inject_code\");\n \t\t\t}\n \t\t}catch(Exception e){\n \t\t\tthrow e;\n \t\t}finally {\n \t\t\tsdb.closeDB();\n \t\t}\n \t\t\n \t\tif(data.get(\"deleted\")!=null && ((Number)data.get(\"deleted\")).intValue()==1){\n \t\t\tthrow new Exception(\"Deleted Task can't be executed\");\n \t\t}\n \t\t\n \t\tlog.debug(\"trigger_row_id:\"+trigger_row_id+\" inject_code:\"+inject_code);\n\t \t\n\t \tScheduledTask task=new ScheduledTaskFactory().getTask(taskuid);\n\t \tif(task==null) {\n\t \t\tthrow new Exception(\"Task Group not found for the task:\"+scheduler_id);\n\t \t}\n\t \tStackFrame sframe=new StackFrame(task,data);\n\t \tif(invoked_by!=null && !invoked_by.equals(\"\")) {\n\t \t\tsframe.setInvokedby(invoked_by);\n\t \t}else{\n\t \t\tif(updatedtime!=null){\n\t \t\t\tsframe.setInvokedby(\"Scheduler (\"+updatedtime+\")\");\n\t \t\t}else{\n\t \t\t\tsframe.setInvokedby(\"Scheduler\");\n\t \t\t}\n\t \t}\n\t\t\t\n\t\t\tif(context.getTrigger().getPreviousFireTime()!=null){\n\t\t\t\tsframe.setTrigger_time(context.getTrigger().getPreviousFireTime().getTime());\n\t\t\t}else{\n\t\t\t\tsframe.setTrigger_time(new Date().getTime());\n\t\t\t}\n\t\t\t\n\t\t\tif(context.getTrigger().getNextFireTime()!=null){\n\t\t\t\tsframe.setNexttrigger_time(context.getTrigger().getNextFireTime().getTime());\n\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\tif(Config.getValue(\"load_balancing_server\")!=null && Config.getValue(\"load_balancing_server\").equals(P2PService.getComputerName())){\n\t\t\t\tLoadBalancingQueueItem li=new LoadBalancingQueueItem();\n\t\t\t\tli.setSf(sframe);\n\t\t\t\tInteger id=(Integer)data.get(\"id\");\n\t\t\t\tli.setInject_code(inject_code);\n\t\t\t\tli.setSchedulerid(id);\n\t\t\t\tLoadBalancingQueue.getDefault().add(li);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/*ScheduledTaskQueue.add(sframe);*/\n\t\t\t}\n\t\t\t\n\t\t\tlog.debug(\"adding task to queue: task:\"+data.get(\"name\"));\n \t}catch(Exception e){\n \t\te.printStackTrace(); \t\t\n \t\t//ClientErrorMgmt.reportError(e, \"Error while triggering task\");\n \t} \n\t\t \n\t\t//String status=null;\n\t\t//try{\t\t\n\t\t\t//task.execute();\n\t\t\t//status=task.EXCECUTION_SUCCESS;\n\t\t//}catch(Exception e){\n\t\t//\tstatus=task.EXCECUTION_FAIL;\t\t\t\n\t\t//\tClientErrorMgmt.reportError(e, null);\n\t\t//}finally{\n\t\t//\ttry{\n\t\t//\t\taddLog(sdate,data,status);\n\t\t//\t}catch(Exception e){\n\t\t//\t\tClientErrorMgmt.reportError(e, null);\n\t\t//\t}\t\t\t\n\t\t//}\n\t\t\n \t\n \t\n\t}", "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "public WNMSDataScheduler(){\n\t\tthis.wdl = new DataLogger(EnumSet.noneOf(LogAppType.class),slog);\n\t\tthis.df = new SimpleDateFormat(DATE_FORMAT);\n\t\tthis.tf = new SimpleDateFormat(TIME_FORMAT);\n\t\tthis.jobs = new HashMap<String,ConversionJob>();\n\t\tthis.trigs = new HashMap<String,Trigger>();\n\t\tthis.ears = new HashMap<String,ConversionListener>();\n\t\tthis.cprops = new ArrayList<ConfigProperties>();\n\t\tthis.jobscheduler = new ConversionJobScheduler();\n\t\tthis.poller = new ConfigPoller(CONF_DIR,new ArrayList<ConfigProperties>());\n\t}", "public String getSchedulerName() {\r\n return this.schedulerName;\r\n }", "private Object readResolve() throws ObjectStreamException {\n return ctx.grid().scheduler();\n }" ]
[ "0.6674294", "0.65795815", "0.6364875", "0.6301345", "0.625817", "0.61828864", "0.6084726", "0.60647833", "0.6052376", "0.5983859", "0.595917", "0.5940951", "0.59175307", "0.59051543", "0.5885042", "0.5883742", "0.5873262", "0.58484006", "0.58431053", "0.58323854", "0.58248055", "0.5801258", "0.5799196", "0.57791483", "0.5775151", "0.5753576", "0.57386106", "0.5737193", "0.5733404", "0.5717994", "0.57040423", "0.56758976", "0.5666246", "0.56511116", "0.5620926", "0.56207925", "0.5618094", "0.56180775", "0.56048566", "0.56010705", "0.5593565", "0.55918705", "0.55694914", "0.5565931", "0.5556196", "0.55487424", "0.5532917", "0.5532917", "0.5532917", "0.5519764", "0.5505933", "0.55043554", "0.54974556", "0.5497315", "0.5496485", "0.5489755", "0.5488887", "0.5488224", "0.5464841", "0.54646087", "0.5454553", "0.544471", "0.5438581", "0.54381657", "0.54303366", "0.5426905", "0.541896", "0.5408244", "0.5388582", "0.5386019", "0.53711134", "0.5360044", "0.53593856", "0.53467286", "0.5345933", "0.5341845", "0.5335129", "0.5304489", "0.5297077", "0.52950317", "0.52947515", "0.52947515", "0.52947515", "0.52947515", "0.529029", "0.52865493", "0.5286267", "0.5283336", "0.5281539", "0.5280871", "0.52788186", "0.52737916", "0.5268469", "0.5265386", "0.52644557", "0.5258796", "0.52572984", "0.52552754", "0.52523726", "0.5243824", "0.52426094" ]
0.0
-1
/ cacheManager.getCacheNames().forEach(cacheName > Objects.requireNonNull(cacheManager.getCache(cacheName)).clear()); Post p = postRepository.findPostById(1L); checkQueryCount(1);
@Test public void getPostByIdTest() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}", "public void post() {\n//\t\tif(!supercachequery){\n//\t\t\thandlePostReset();\n//\t\t}\n//\t\tsupercachequery = false;\n\t}", "public void cacheableQuery() throws HibException;", "public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }", "@Test(expected = NoResultException.class)\r\n public void updatePosts(){\r\n\r\n Post post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 3000l)\r\n .getSingleResult();\r\n \r\n post.setDescription(\"TRASHED ELECTRONICS ARE PILING UP ACROSS ASIA\");\r\n post.setLikes(500);\r\n \r\n \r\n entityTransaction.begin();\r\n entityManager.createNamedQuery(\"Post.updateDescriptionAndLikesByPostId\", Post.class)\r\n .setParameter(\"value1\", post.getDescription())\r\n .setParameter(\"value2\", post.getLikes())\r\n .setParameter(\"value3\", post.getPostId())\r\n .executeUpdate();\r\n entityManager.refresh(post);\r\n entityTransaction.commit();\r\n\r\n post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 300l)\r\n .getSingleResult(); \r\n assertNotNull(post); \r\n }", "@Test(expected = NoResultException.class)\r\n public void deletePost(){\r\n\r\n Post post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 3000l)\r\n .getSingleResult(); \r\n\r\n \r\n assertNotNull(post);\r\n \r\n entityTransaction.begin();\r\n assertTrue(post.getLikes() > 2);\r\n entityManager.remove(post);\r\n entityTransaction.commit();\r\n \r\n post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", post.getUserId())\r\n .getSingleResult(); \r\n assertNull(post);\r\n \r\n }", "@Test\r\n public void testGetUUIDItemTypeFromCache() {\n assertEquals(new Long(1), queries.getUUIDItemTypeId(\"patient\"));\r\n getSimpleJdbcTemplate().update(\"delete from uuid_item_type where xml_name like 'patient'\");\r\n //make sure the entry is not in the database\r\n assertEquals(0, (getSimpleJdbcTemplate().queryForList(\" select * from uuid_item_type where xml_name like 'patient'\")).size());\r\n // Read it from cache\r\n assertEquals(new Long(1), queries.getUUIDItemTypeId(\"patient\"));\r\n }", "@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void clearCache() {\n }", "@Transactional\n@Repository\n@RepositoryDefinition(domainClass = SvnUser.class, idClass = Integer.class)\npublic interface SvnUserRepository extends JpaRepository<SvnUser, Integer> {\n\n @Cacheable(value=\"svnUser\", key=\"#p0\")\n SvnUser findOne(Integer id);\n\n @Cacheable(value=\"svnUser\", key=\"#p0\")\n List<SvnUser> findAll();\n\n boolean exists(Integer id);\n\n @CacheEvict(value=\"svnUser\", key=\"#p0.id\")\n SvnUser save(SvnUser svnUser);\n\n}", "@Repository\npublic interface PostRepository extends CrudRepository<Post, Long> {\n @Lock(LockModeType.PESSIMISTIC_WRITE)\n Post findByIdAndVisibleIsTrue(Long id);\n}", "public void runTest() throws PersistenceException, SQLException {\n testExpireCache(BY_OBJECT_IDENTITY);\n testExpireCache(BY_TYPE_OR_CLASS);\n }", "@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }", "@Override\n public boolean isCaching() {\n return false;\n }", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "@Override\n public Boolean exists(Key<?> key)\n {\n return session.getCache().contains(key) || queryCache.exists(key);\n }", "@Test\n @Ignore\n public void testReadAllCached() {\n System.out.println(\"readAllCached\");\n Identifier id = null;\n IndexDaoImpl instance = null;\n List<Index> expResult = null;\n List<Index> result = instance.readAllCached(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.singleton(Integer.valueOf(1))));\n }\n });\n }", "@Test(expected = IndexOutOfBoundsException.class)\r\n public void fetchAllPosts(){\r\n \r\n List<Post> listOfPosts = entityManager.createNamedQuery(\"Post.fetchAllRecords\").getResultList();\r\n \r\n assertTrue(\"Size is always greater than 0.\", listOfPosts.size() > 0);\r\n assertNotNull(\"List object is not null\", listOfPosts);\r\n assertEquals(\"Size should be 3\", listOfPosts.size(),3);\r\n \r\n assertEquals(\"PEOPLE ARE BAD AT TAKING OVER FROM AUTONOMOUS CARS.\", listOfPosts.get(5));\r\n \r\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "public static void clearCache() {\n getPersistence().clearCache();\n }", "@Test\n public void testCoh3710()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run() { getNamedCache(getCacheName0()).clear(); }\n });\n }", "@Override\n\tprotected String getQueryCacheName() {\n\t\treturn null;\n\t}", "@Dao\npublic interface PostDao {\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void insertPost(iPost iPosts);\n\n @Update\n void updatePost(iPost iPost);\n\n @Delete\n void deletePost(iPost iPost);\n\n @Query(\"SELECT * FROM iPost\")\n List<iPost> getAllPosts();\n\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n List<iPost> findPostsByThread(final int threadId);\n\n @Transaction\n @Query(\"SELECT * FROM iPost WHERE idThread=:threadId\")\n Single<List<PostsHelper>> getPostsFromThread(String threadId);\n}", "public void cleanCaches() {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n Set<String> used = new HashSet<>();\n // Get list of queries used by graphs\n for (GraphConfig graph : workspace.graphs) {\n graph.accept(new GraphVisitor() {\n\n @Override\n public void visit(HistogramConfig graph) {\n try {\n used.add(DatabaseQueryFactory.generateSQL(graph.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n\n @Override\n public void visit(LineGraphConfig graph) {\n for (LineConfig line : graph.lines) {\n try {\n used.add(DatabaseQueryFactory.generateSQL(line.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n }\n });\n }\n // Get list of queries used by statistics\n for (StatisticConfig statistic : workspace.statistics) {\n for (Metric metric : Metric.getStatisticTypes()) {\n statistic.query.metric = metric;\n try {\n used.add(DatabaseQueryFactory.generateSQL(statistic.query));\n } catch (Exception e) {\n // just do nothing if it's broken\n }\n }\n statistic.query.metric = null;\n }\n\n // Remove any cache that is not used\n Iterator<String> itrCaches = workspace.caches.keySet().iterator();\n while (itrCaches.hasNext()) {\n String cache = itrCaches.next();\n if (!used.contains(cache)) {\n itrCaches.remove();\n }\n }\n }", "@Test\n public void testCoh3710_get()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertNull(getNamedCache(getCacheName0()).get(Integer.valueOf(1)));\n }\n });\n }", "@Cacheable(\"lastRunInfo\")\n private GeobatchRunInfo getLastRunInfoCache(String id) {\n List<GeobatchRunInfo> search = search(id);\n \n return search != null && !search.isEmpty() ? search.get(0) : null;\n }", "@After\r\n public void tearDown(){\r\n \r\n Post post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 1l)\r\n .getSingleResult();\r\n \r\n assertNotNull(post);\r\n \r\n entityTransaction.begin();\r\n entityManager.remove(post);\r\n entityTransaction.commit();\r\n\r\n entityManager.close();\r\n }", "@Test\n public void cachedContractor_whenDeleted_shouldNotBeAvailableInCache() {\n personService.deletePerson(\"17a36637-04d4-4357-9c6b-10a755dbbcdd\");\n assertEquals(Optional.empty(), Optional.ofNullable(cacheManager.getCache(\"person2\"))\n .map(cache -> cache.get(\"17a36637-04d4-4357-9c6b-10a755dbbcdd\", Person.class)));\n }", "List<Link> findLinkByCache();", "void clearCache();", "void clearCache();", "@Test(expected = NullPointerException.class)\r\n public void fetchPostUsingFind() {\r\n //sunny day assert\r\n Post post = entityManager.find(Post.class, 2l);\r\n\r\n LOGGER.info(post.toString());\r\n //sunny day asserts\r\n assertNotNull(post);\r\n assertSame(\"Likes are same\", 15, post.getLikes());\r\n\r\n //rainy day test\r\n post = entityManager.find(Post.class, 25l);\r\n LOGGER.info(post.toString());\r\n }", "public interface QueryCache {\n IQ get(InputQuery inputQuery);\n\n void put(InputQuery inputQuery, IQ executableQuery);\n\n void clear();\n}", "long getCacheMisses();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\texecutorService.execute(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tagentResourceQuotas.remove(agentId);\n\t\t\t\t\t\tagentResourceUsages.remove(agentId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsynchronized (DefaultResourceAllocator.this) {\n\t\t\t\t\t\t\tfor (QueryCache cache: queryCaches.values())\n\t\t\t\t\t\t\t\tcache.result.remove(agentId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t}", "@Override\n\tpublic void cacheResult(List<Answer> answers) {\n\t\tfor (Answer answer : answers) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, AnswerImpl.class,\n\t\t\t\t\tanswer.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(answer);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tanswer.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic final void beforeExecutions() throws CacheException {\n\t\tif ( persister.hasCache() ) {\n\t\t\tfinal CollectionRegionAccessStrategy cache = persister.getCacheAccessStrategy();\n\t\t\tfinal Object ck = cache.generateCacheKey(\n\t\t\t\t\tkey,\n\t\t\t\t\tpersister,\n\t\t\t\t\tsession.getFactory(),\n\t\t\t\t\tsession.getTenantIdentifier()\n\t\t\t);\n\t\t\tfinal SoftLock lock = cache.lockItem( session, ck, null );\n\t\t\t// the old behavior used key as opposed to getKey()\n\t\t\tafterTransactionProcess = new CacheCleanupProcess( key, persister, lock );\n\t\t}\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}", "public void clearCache();", "public interface PostRepository extends CrudRepository<Post, Long> {\n}", "int getCacheConcurrency();", "@AllowFailure(message=\"OPENJPA-1179 2.0 doesn't allow 'all' as in previous releases\")\n public void testMultiEMCachingAll() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"all\");\n runMultiEMCaching(props);\n }", "@Test\n public void testCoh3710_containsKey()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertFalse(getNamedCache(getCacheName0()).containsKey(Integer.valueOf(1)));\n }\n });\n }", "long getCacheHits();", "public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}", "public abstract void clearCache();", "public void cacheResult(ua.org.gostroy.guestbook.model.Entry3 entry3);", "boolean isCached(int userId);", "public void setCached() {\n }", "public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}", "private void invalidateCache() {\n\t}", "@Test\n public void testFilter() throws Exception {\n for (int i=0; i<10; i++) {\n assertJQ(req(\"q\",\"*:* \"+ i, \"fq\",\"filter(just_to_clear_the_cache) filter(id:10000\" + i + \") filter(id:10001\" + i + \")\")\n ,\"/response/numFound==0\"\n );\n }\n assertU(adoc(\"id\",\"777\"));\n delI(\"777\");\n assertU(commit()); // arg... commit no longer \"commits\" unless there has been a change.\n\n\n final SolrInfoMBean filterCacheStats\n = h.getCore().getInfoRegistry().get(\"filterCache\");\n assertNotNull(filterCacheStats);\n final SolrInfoMBean queryCacheStats\n = h.getCore().getInfoRegistry().get(\"queryResultCache\");\n\n assertNotNull(queryCacheStats);\n\n\n long inserts = (Long) filterCacheStats.getStatistics().get(\"inserts\");\n long hits = (Long) filterCacheStats.getStatistics().get(\"hits\");\n\n assertJQ(req(\"q\",\"doesnotexist filter(id:1) filter(qqq_s:X) filter(abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n inserts+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n assertJQ(req(\"q\",\"doesnotexist2 filter(id:1) filter(qqq_s:X) filter(abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // make sure normal \"fq\" parameters also hit the cache the same way\n assertJQ(req(\"q\",\"doesnotexist3\", \"fq\",\"id:1\", \"fq\", \"qqq_s:X\", \"fq\", \"abcdefg\")\n ,\"/response/numFound==0\"\n );\n\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // try a query deeply nested in a FQ\n assertJQ(req(\"q\",\"*:* doesnotexist4\", \"fq\",\"(id:* +(filter(id:1) filter(qqq_s:X) filter(abcdefg)) )\")\n ,\"/response/numFound==2\"\n );\n\n inserts+=1; // +1 for top level fq\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // retry the complex FQ and make sure hashCode/equals works as expected w/ filter queries\n assertJQ(req(\"q\",\"*:* doesnotexist5\", \"fq\",\"(id:* +(filter(id:1) filter(qqq_s:X) filter(abcdefg)) )\")\n ,\"/response/numFound==2\"\n );\n\n hits+=1; // top-level fq should have been found.\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n\n // try nested filter with multiple top-level args (i.e. a boolean query)\n assertJQ(req(\"q\",\"*:* +filter(id:1 filter(qqq_s:X) abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n hits+=1; // the inner filter\n inserts+=1; // the outer filter\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // test the score for a filter, and that default score is 0\n assertJQ(req(\"q\",\"+filter(*:*) +filter(id:1)\", \"fl\",\"id,score\", \"sort\",\"id asc\")\n ,\"/response/docs/[0]/score==0.0\"\n );\n\n assertJQ(req(\"q\",\"+filter(*:*)^=10 +filter(id:1)\", \"fl\",\"id,score\", \"sort\",\"id asc\")\n ,\"/response/docs/[0]/score==10.0\" \n );\n\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Second Level Query Cache With configuration With Address 05\")\n public void testSecondLevelQueryCacheWithConfigurationWithAddress05()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress05> address2List = null;\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n query.setCacheable(true);\n\n address2List = query.list();\n\n System.out.println(\"Address 1 : \" + address2List.size());\n\n// transaction.commit(); // second level cash enabled for CacheConcurrencyStrategy.READ_WRITE\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try{\n System.out.println(\"Session Start\");\n\n CriteriaBuilder criteriaBuilder = session.getCriteriaBuilder();\n CriteriaQuery<SBAddress05> criteriaQuery = criteriaBuilder.createQuery(SBAddress05.class);\n Root<SBAddress05> root = criteriaQuery.from(SBAddress05.class);\n\n criteriaQuery.select(root);\n\n Query query = session.createQuery(criteriaQuery);\n query.setCacheable(true);\n\n address2List = query.list();\n\n System.out.println(\"Address 2 : \" + address2List.size());\n\n// transaction.commit(); // second level cash enabled for CacheConcurrencyStrategy.READ_WRITE\n System.out.println(\"Session Closed\");\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n }", "@Override\r\n\tpublic void cacheResult(List<Share> shares) {\r\n\t\tfor (Share share : shares) {\r\n\t\t\tif (entityCache.getResult(ShareModelImpl.ENTITY_CACHE_ENABLED,\r\n\t\t\t\t\t\tShareImpl.class, share.getPrimaryKey()) == null) {\r\n\t\t\t\tcacheResult(share);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tshare.resetOriginalValues();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void pruneExpiredQueries()\n {\n if (expirationQueue.size() <= maxQueryHistory) {\n return;\n }\n\n int count = 0;\n // we're willing to keep full info for up to maxQueryHistory queries\n for (QueryExecution query : expirationQueue) {\n if (expirationQueue.size() - count <= maxQueryHistory) {\n break;\n }\n query.pruneInfo();\n count++;\n }\n }", "int getCachedCount();", "@Transactional\npublic interface PostDao extends CrudRepository<Post, Long> {\n\n Post findById(Long id);\n\n}", "@SuppressWarnings(\"unchecked\")\n\tprivate static void secondLevelCacheWithPropertySetWithQueryCacheDisabled() {\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(Session session = HbUtil.getSession()) {\n\t\t\tList<Book> list = session.createQuery(\"from Book b where b.subject=:p_subject\")\n\t\t\t\t\t\t.setParameter(\"p_subject\", \"C\")\n\t\t\t\t\t\t// .setCacheable(true)\n\t\t\t\t\t\t.getResultList();\n\t\t\tfor (Book b : list) \n\t\t\t\tSystem.out.println(b);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface PostService {\n Post save(Post unsavedPost);\n void delete(long id);\n Post findOne(long id);\n Page<Post> getPosts(String name, boolean enabled, int page, int size);\n boolean isExists(long id);\n}", "@Test\n public void testCoh3710_isEmpty()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertTrue(getNamedCache(getCacheName0()).isEmpty());\n }\n });\n }", "@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }", "public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }", "public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }", "@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}", "public interface MongoDBCache<K, V> {\n /**\n * Size of the cache\n *\n * @return size\n */\n int size();\n\n /**\n * Purge all data from cache\n */\n void clear();\n\n /**\n * Remove the entry which has the same key of the parameter\n *\n * @param key\n * @return the removed cache entry\n */\n boolean remove(byte[] key);\n\n /**\n * Get a cache entry which has the same key of the parameter\n *\n * @param key\n * @return\n */\n MongoDBEntry<K, V> get(byte[] key);\n\n /**\n * Verify if the cache contains the key passed on parameter\n *\n * @param key\n * @return true if there is some entry, false if there is not\n */\n boolean containsKey(byte[] key);\n\n /**\n * Since mongo doesn't support actual paging results,\n * we have to sort and do a less than on the last id.\n *\n * @param lastKey\n * @return\n */\n List<MongoDBEntry<K, V>> getPagedEntries(byte[] lastKey);\n\n /**\n * This method must remove all data which are expired. <br/>\n * What means delete all entries that have the expiryTime parameter less than the current date.\n */\n List<MongoDBEntry<K, V>> removeExpiredData(byte[] lastKey);\n\n /**\n * Put an entry to the cache\n *\n * @param entry\n */\n void put(MongoDBEntry<K, V> entry);\n\n void start() throws Exception;\n\n /***\n *\n */\n void stop();\n}", "@CacheConfig(cacheNames = \"items\")\npublic interface ItemsRepository extends JpaRepository<Item, Integer>, JpaSpecificationExecutor<Item> {\n\n\t/**\n\t * Gets a {@link List} of upgraded {@link Item} boots from Boots of Speed found only on the specified\n\t * {@link GameMap}.\n\t *\n\t * @param mapId the {@link GameMap}'s ID\n\t * @return a {@link List} of upgraded {@link Item} boots\n\t * @see <a href=\"http://leagueoflegends.wikia.com/wiki/Boots_of_Speed\">Boots of Speed</a>\n\t * @see <a href=\"http://leagueoflegends.wikia.com/wiki/Advanced_item\">Advanced Items</a>\n\t */\n\t@Query(\"\"\"\n select distinct i\n from Item i\n join i.from f\n join i.maps m\n where i.id <> 1001\n and f in ('1001')\n and (\n key(m) = :mapId\n and m = true\n )\n \"\"\")\n\t@Cacheable(key = \"{#root.methodName, #mapId}\", unless = \"#result.isEmpty()\")\n\tList<Item> boots(@Param(\"mapId\") int mapId);\n\n\t/**\n\t * Gets a {@link List} of Trinket {@link Item}s found only on the specified {@link GameMap}.\n\t * If the map is the Twisted Treeline, the Arcane Sweeper is returned.\n\t * If the map is the Summoner's Rift, then non Snax Trinkets are returned.\n\t * If the map is the Howling Abyss, the Poro Snax Trinket.\n\t *\n\t * @param mapId the {@link GameMap}'s ID\n\t * @return a {@link List} of Trinket {@link Item}s\n\t * @see <a href=\"http://leagueoflegends.wikia.com/wiki/Trinket\">Trinket</a>\n\t */\n\t@Query(\"\"\"\n select distinct i\n from Item i\n join i.maps m\n left join i.tags t\n where i.gold.total = 0\n and i.requiredChampion is null\n and key(m) = :mapId\n and m = true\n and (\n :mapId = 10\n and i.gold.purchasable = false\n and i.name = 'Arcane Sweeper'\n )\n or (\n :mapId = 11\n and t in ('Trinket')\n and i.gold.purchasable = true\n and i.gold.sell = 0\n and i.name not like '%Snax%'\n )\n or (\n :mapId = 12\n and i.gold.purchasable = false\n and i.name = 'Poro-Snax'\n )\n \"\"\")\n\t@Cacheable(key = \"{#root.methodName, #mapId}\", unless = \"#result.isEmpty()\")\n\tList<Item> trinkets(@Param(\"mapId\") int mapId);\n\n\t/**\n\t * Gets a {@link List} of {@link Item}s eligible for the troll build. That is, all purchasable (excluding items like\n\t * Muramana or Seraph's Embrace - they are non purchasable), non-consumable, and fully upgraded items found only on\n\t * the specified {@link GameMap}. This excludes boots, potions, Trinkets, items not requiring a particular champion,\n\t * items not requiring an ally champion, jungle related items, and Doran's items.\n\t *\n\t * @param mapId the {@link GameMap}'s ID\n\t * @return a {@link List} of {@link Item}s eligible for the troll build\n\t */\n\t@Query(\"\"\"\n select i\n from Item i\n left join i.into i_into\n join i.maps m\n where i.name is not null\n and i.description is not null\n and i.gold.purchasable = true\n and i.consumed is null\n and (\n i.group is null\n or i.group <> 'FlaskGroup'\n )\n and i_into is null\n and key(m) = :mapId\n and m = true\n and i.id <> 1001\n and i.description not like '%Move Speed%'\n and (\n i.name not like '%Potion%'\n and i.description not like '%Potion%'\n )\n and (\n i.name not like '%Trinket%'\n and i.description not like '%Trinket%'\n )\n and i.requiredAlly is null\n and i.requiredChampion is null\n and i.name not like 'Doran%'\n \"\"\")\n\t@Cacheable(key = \"{#root.methodName, #mapId}\", unless = \"#result.isEmpty()\")\n\tList<Item> forTrollBuild(@Param(\"mapId\") int mapId);\n\n\t@Cacheable(unless = \"#result.isEmpty()\")\n\t@Override\n\tList<Item> findAll();\n\n\t@CacheEvict(allEntries = true)\n\t@Override\n\t<S extends Item> List<S> saveAll(Iterable<S> entities);\n\n\t@CacheEvict(allEntries = true)\n\t@Override\n\t<S extends Item> S save(S entity);\n\n\t@Cacheable(unless = \"#result == null\")\n\t@Override\n\tOptional<Item> findById(Integer integer);\n\n\t@CacheEvict(allEntries = true)\n\t@Override\n\tvoid deleteById(Integer integer);\n\n\t@CacheEvict(allEntries = true)\n\t@Override\n\tvoid deleteAll(Iterable<? extends Item> entities);\n\n\t@CacheEvict(allEntries = true)\n\t@Override\n\tvoid deleteAll();\n\n\t@Cacheable(key = \"{#spec.example.probe, #sort}\", unless = \"#result.isEmpty()\")\n\t@Override\n\tList<Item> findAll(Specification<Item> spec, Sort sort);\n\n}", "@Test\n public void clear() {\n cache.put(1, \"a\");\n cache.put(2, \"b\");\n changesOf(0, 0, 2, 0);\n cache.clear();\n changesOf(0, 0, 0, 0);\n }", "@Scheduled(fixedRate = 30 * 60 * 1000)\n public void clearStaleCache(){\n\n }", "@Test\n public void testCoh3710_size()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(0, getNamedCache(getCacheName0()).size());\n }\n });\n }", "private void invalidateCache(final EntityResultQueryModel<UserSession> q) {\n stream(from(q).with(fetchAll(UserSession.class)).model())\n .forEach(session -> cache.invalidate(findAuthenticator(session)));\n }", "public static void clearCache(){\n cache.clear();\n cache2.clear();\n }", "public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }", "public void dereferenceCache() {\n this.cache = null;\n }", "public interface PermissionService {\n\n @Caching()\n public SysPermission findByUrl(String url);\n\n}", "@Transactional\npublic interface SubmissionPostRepository extends PostRepository<SubmissionPost> {\n\n SubmissionPost findByTitle(String title);\n\n List<SubmissionPost> findAllByUsersWhoLiked(User user);\n\n List<SubmissionPost> findByTags(String Tag);\n}", "public interface CategoryRepository extends CacheableJpaRepository<Category, Long> {\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n Category findByCode(String code);\n\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n List<Category> findByType(Category.CategoryType type);\n\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n List<Category> findByGroupName(String groupName, Sort sort);\n\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n List<Category> findByFilterOrder(Integer filterOrder);\n\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n Category findFirstByOrderByFilterOrderDesc();\n\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n List<Category> findByTypeNotLike(Category.CategoryType categoryType, Sort filterOrder);\n\n @QueryHints({@QueryHint(name = \"org.hibernate.cacheable\", value = \"true\")})\n List<Category> findAllByCodeIn(List<String> code);\n\n @Query(value=\"SELECT GREATEST(created, modified) AS tableModifed FROM category ORDER BY tableModifed DESC NULLS LAST LIMIT 1\", nativeQuery = true)\n Date getTableModified();\n}", "Optional<Post> getPost(String postId) throws Exception;", "private static boolean canCacheQuery(QueryInfo queryInfo) {\n return !queryInfo.hasAggregates()\n && !queryInfo.hasDistinct()\n && !queryInfo.hasGroupBy()\n && !queryInfo.hasLimit()\n && !queryInfo.hasTop()\n && !queryInfo.hasOffset()\n && !queryInfo.hasDCount()\n && !queryInfo.hasOrderBy();\n }", "@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n queue.add(co);\n }\n }\n }\n }\n\n }", "@Repository\npublic interface UserRepository extends JpaRepository<User, Long> {\n\n String USERS_BY_LOGIN_CACHE = \"usersByLogin\";\n\n String USERS_BY_EMAIL_CACHE = \"usersByEmail\";\n\n Optional<User> findOneByActivationKey(String activationKey);\n\n List<User> findAllByActivatedIsFalseAndCreatedDateBefore(Instant dateTime);\n\n Optional<User> findOneByResetKey(String resetKey);\n\n Optional<User> findOneByEmailIgnoreCase(String email);\n\n Optional<User> findOneByLogin(String login);\n\n Optional<User> findById(Long id);\n\n @EntityGraph(attributePaths = \"authorities\")\n Optional<User> findOneWithAuthoritiesById(Long id);\n\n @EntityGraph(attributePaths = \"authorities\")\n @Cacheable(cacheNames = USERS_BY_LOGIN_CACHE)\n Optional<User> findOneWithAuthoritiesByLogin(@Param(\"login\") String login);\n\n @EntityGraph(attributePaths = \"authorities\")\n @Query(\"SELECT u FROM com.ostaszewski.article_sharing_app.domain.User u WHERE LOWER(u.login) LIKE ?1\")\n Optional<User> findOneWithAuthoritiesByLoginToAuthenticate(@Param(\"login\") String login);\n\n @EntityGraph(attributePaths = \"authorities\")\n @Cacheable(cacheNames = USERS_BY_EMAIL_CACHE)\n Optional<User> findOneWithAuthoritiesByEmail(String email);\n\n Page<User> findAllByLoginNot(Pageable pageable, String login);\n\n @Query(\n value = \"SELECT u FROM jhi_user u, invites i, user_invites ui WHERE invites.friend_id = ?1 AND ui.invite_id = i.id\",\n nativeQuery = true)\n List<User> findAllUserInvitesFromOthers(@Param(\"id\") Long id);\n\n\n @Query(\n \"SELECT DISTINCT NEW com.ostaszewski.article_sharing_app.service.dto.MessageDTO(m.id, m.content, m.creationDate, m.receiver.id, m.read) \" +\n \"FROM com.ostaszewski.article_sharing_app.domain.User u \" +\n \"INNER JOIN u.userMessages m \" +\n \"WHERE u.id = ?1 \" +\n \"AND m.receiver.id = ?2\"\n )\n List<MessageDTO> findUserMessages(@Param(\"senderId\") Long senderId, @Param(\"receiverId\") Long receiverId);\n\n}" ]
[ "0.65561897", "0.5851529", "0.5808006", "0.57679015", "0.56953835", "0.5671581", "0.5540532", "0.55129665", "0.54827917", "0.5481612", "0.5458367", "0.54300845", "0.5411966", "0.5411415", "0.53909624", "0.5377423", "0.5352111", "0.5351597", "0.5338818", "0.5308444", "0.5308444", "0.5308444", "0.53067833", "0.5298928", "0.52964246", "0.5291563", "0.52648026", "0.52612376", "0.5260244", "0.5258474", "0.5256794", "0.5254028", "0.5254028", "0.52522826", "0.5251299", "0.52505594", "0.52472454", "0.5241399", "0.5235519", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.5223119", "0.52221", "0.5221566", "0.52178746", "0.5207077", "0.51957726", "0.5193792", "0.5187083", "0.51835555", "0.51825035", "0.5175302", "0.51715577", "0.51615644", "0.51467025", "0.51435596", "0.51409423", "0.51111424", "0.51044214", "0.5103466", "0.5099474", "0.50976175", "0.5077889", "0.50712895", "0.5066984", "0.50651914", "0.5056274", "0.50553304", "0.50541335", "0.5046436", "0.5045947", "0.5039686", "0.5039592", "0.5036286", "0.50356424", "0.5031964", "0.50147176", "0.5012629", "0.50063384", "0.5003988", "0.49972036", "0.49940088", "0.49935156", "0.49775872" ]
0.0
-1
may need to override
public void setNumberOfHoursWorked(int numberOfHoursWorked) { this.numberOfHoursWorked = numberOfHoursWorked; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\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\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void init() {\n // to override and use this method\n }", "@Override\n public void render() { super.render(); }", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n\tpublic void e() {\n\n\t}" ]
[ "0.7142692", "0.70272136", "0.6938805", "0.68538165", "0.67534226", "0.67534226", "0.6748199", "0.6741946", "0.6731815", "0.6671965", "0.6671965", "0.6628651", "0.66197634", "0.6588615", "0.65416163", "0.65363556", "0.65198046", "0.6478572", "0.64718515", "0.64578056", "0.6432277", "0.638679", "0.6385588", "0.6362948", "0.6355833", "0.63503027", "0.6331208", "0.6325511", "0.631085", "0.62819666", "0.6280133", "0.6279112", "0.62286776", "0.62261045", "0.62261045", "0.62211734", "0.621013", "0.6205117", "0.6189348", "0.6170268", "0.61668974", "0.616254", "0.616254", "0.616254", "0.616254", "0.616254", "0.616254", "0.6155945", "0.6150071", "0.6143744", "0.6139133", "0.61333865", "0.60917634", "0.60725284", "0.60725284", "0.6069965", "0.6063921", "0.6052775", "0.60517955", "0.60514736", "0.60496825", "0.60476047", "0.60411817", "0.6036027", "0.6029941", "0.60285264", "0.60268813", "0.60227895", "0.60160935", "0.6013376", "0.60121274", "0.60121274", "0.60121274", "0.5992462", "0.5992364", "0.5983103", "0.59823596", "0.59815454", "0.59726673", "0.5969549", "0.59672284", "0.59672284", "0.59671885", "0.59671885", "0.59671885", "0.59671885", "0.59671885", "0.59671885", "0.5964462", "0.5964462", "0.5964462", "0.5964462", "0.5964462", "0.5961434", "0.5959533", "0.5959533", "0.5953188", "0.59470165", "0.5936206", "0.5936206", "0.5919436" ]
0.0
-1
Instantiates a new employee exception.
public EmployeeException(String message, Throwable cause) { super(message, cause); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EmployeeNotFoundException() {\n super();\n }", "public EmployeeException(String message) {\n\t\tsuper(message);\n\t}", "public EmployeeNotFoundException(String message) {\n super(message);\n }", "public Employee() throws OutOfRangeException { //default constructors have no parameters\n\t\t//must create a default constructor, if a subclass is created\n\t\tthis(\"\",\"\",10.0f,40);\n\t\temployeeCount++;\n\t}", "public Employee() {\n\t\tsuper();\n\t}", "public Employee() {\n\n\t}", "public Employee() {\n this.isActivated = false;\n this.salt = CryptographicHelper.getInstance().generateRandomString(32);\n\n this.address = new Address();\n this.reports = new ArrayList<>();\n }", "Employee() {\n\t}", "public Employee() {}", "public Employee() {\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee() {\t}", "@Override\n public void setEmployees() throws EmployeeCreationException {\n\n }", "public Employee() {\n \n }", "public Employee() {\n\t\tSystem.out.println(\"Employee Contructor Called...\");\n\t}", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n }", "public Employee(int eId, String first, String last, String email, String hireYear,\r\n\t\t\tString position){\r\n\t\tthis.employeeId = eId;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.hireYear = hireYear;\r\n\t\tthis.role = position;\r\n\t\t\r\n\t}", "public Employee(){\r\n }", "public EmployeeRecord(){}", "public Employee(int eId, String first, String last, String email, String hireYear,\r\n\t\t\tString position, int departmentId, int groupId)\r\n\t{\r\n\t\tthis.employeeId = eId;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.hireYear = hireYear;\r\n\t\tthis.role = position;\r\n\t\tthis.departmentId = departmentId;\r\n\t\tthis.groupId = groupId;\r\n\t}", "public Employee(int eId, String first, String last, String email, String hireYear,\r\n\t\t\tString position, int departmentId)\r\n\t{\r\n\t\tthis.employeeId = eId;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.hireYear = hireYear;\r\n\t\tthis.role = position;\r\n\t\tthis.departmentId = departmentId;\r\n\r\n\t}", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "public Employee(String employeeName, PositionTitle position, boolean salary, double payRate, int employeeShift,\n String startDate, double hrsIn) {\n // ////////////// construct Employees\n this.employeeName = employeeName;\n this.position = position;\n this.salary = salary;\n this.payRate = payRate;\n this.employeeShift = employeeShift;\n this.startDate = startDate;\n this.hrsIn = hrsIn;\n\n }", "public Employee(int employeeId, String employeeName, String employeeAddress) {\r\n\t\r\n\t\tthis.employeeId = employeeId;\r\n\t\tthis.employeeName = employeeName;\r\n\t\tthis.employeeAddress = employeeAddress;\r\n\t}", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "public Employee(String id) {\n super(id);\n }", "public Employee(String employeeId, String name) {\n this.employeeId = employeeId;\n this.name = name; // TODO fill in code here\n }", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Employee(EmployeeDto e) {\n\t\tthis.id = e.getId();\n\t\tthis.firstName = e.getFirstName();\n this.lastName = e.getLastName();\n\t\tthis.dateOfBirth = e.getDateOfBirth();\n\t\tthis.gender = e.getGender();\n\t\tthis.startDate = e.getStartDate();\n\t\tthis.endDate = e.getEndDate();\n\t\tthis.position = e.getPosition();\n this.monthlySalary = e.getMonthlySalary();\n this.hourSalary = e.getHourSalary();\n this.area = e.getArea();\n this.createdAt = e.getCreatedAt();\n this.modifiedAt = e.getModifiedAt();\n\t}", "Employee(String firstName, String lastName, String role) {\n\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.role = role;\n\t}", "@Override\n\tpublic Employee createEmployee() {\n\t\treturn new Manager(name, age);\n\t}", "public InvalidEmployeeDetailsException(String exception) {\r\n super(exception);\r\n }", "public Exception() {\n\tsuper();\n }", "public SalesEmployee(){\n\t\tfirstName = \"unassigned\";\n\t\tlastName = \"unassigned\";\n\t\tppsNumber = \"unassigned\";\n\t\tbikeEmployeeNumber++;\n\t}", "public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }", "public Employee() {\n employeeID = genID.incrementAndGet();\n }", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "public PriceModelException() {\n\n }", "public Employee(String employeeFirstName, String employeeLastName, \r\n String employeeEmail, long employeePhoneNumber, \r\n String employeeStatus, double employeeSalary) {\r\n this.employeeFirstName = employeeFirstName;\r\n this.employeeLastName = employeeLastName;\r\n this.employeeEmail = employeeEmail;\r\n this.employeePhoneNumber = employeePhoneNumber;\r\n this.employeeStatus = employeeStatus;\r\n this.dateHired = new Date();\r\n this.employeeAddress = new Address();\r\n this.employeeSalary = employeeSalary;\r\n }", "public EmailException()\n {\n super();\n }", "Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }", "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public Employee(String firstName, String lastName, Date birthDate, \n Date hireDate, Address Address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthDate = birthDate;\n this.hireDate = hireDate;\n this.Address = Address;\n }", "public Employee(String name, int id) {\n super(name, id);\n position = \"None\";\n salary = 0.0;\n }", "public Employe() {\r\n this(NOM_BIDON, null);\r\n }", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public EmployeeTransition() {\n this.id = new UUID(0, 0);\n this.f_name = StringUtils.EMPTY;\n this.l_name = StringUtils.EMPTY;\n this.employeeid = \"-1\";\n this.active = StringUtils.EMPTY;\n this.role = StringUtils.EMPTY;\n this.manager = StringUtils.EMPTY;\n this.password = StringUtils.EMPTY;\n this.createdOn = new Date();\n }", "public EmployeesImpl() {\r\n }", "public EmployeeTransition(Employee employee) {\n this.id = employee.getId();\n this.f_name = employee.getFname();\n this.l_name = employee.getLname();\n this.employeeid = employee.getEmployeeid();\n this.active = employee.getActive();\n this.role = employee.getRole();\n this.manager = employee.getManager();\n this.password = employee.getPassword();\n this.createdOn = employee.getCreatedOn();\n }", "public Employee createNewEmployee(String name) {\n Employee newEmployee = new Employee(DumbDB.employeeCounter++, name, NO_DEPARTMENT_ID);\n getAllEmployees().add(newEmployee);\n return newEmployee;\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String mobileNumber, String emailId, List<Address> address,\n List<Project> project) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.mobileNumber = mobileNumber;\n this.emailId = emailId;\n this.address = address;\n this.project = project;\n }", "public EmployeeDTO createEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;", "public ScheduleException() {\r\n }", "Employee(String name, String profile, int id, String regime) {\n super(name, profile, id);\n this.regime = regime;\n }", "private Employee addEmployee(int id, String name, String address) {\r\n\t\treturn new Employee(id, name, address);\r\n\t}", "public Employee(String fName, String lName, int ID) {\n this.FName = fName;\n this.LName = lName;\n this.ID = ID;\n }", "public Employee(String code, Name name, Address address, String[] emails){\n super(code, address);\n this.emails = emails;\n this.name = name;\n }", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "Employee(String empId, String name, int roleId, double basic, double allowancePercentage, double hra){\r\n\t\tthis.empId = empId;\r\n\t\tthis.name = name;\r\n\t\tthis.role.setRoleId(roleId);\r\n\t\tthis.basic = basic;\r\n\t\tthis.allowancePercentage = allowancePercentage;\r\n\t\tthis.hra = hra;\r\n\t}", "public andrewNamespace.xsdconfig.EmployeeDocument.Employee addNewEmployee()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee target = null;\r\n target = (andrewNamespace.xsdconfig.EmployeeDocument.Employee)get_store().add_element_user(EMPLOYEE$0);\r\n return target;\r\n }\r\n }", "public Employee(int emp_no, Date birth_date, String first_name, String last_name, String gender, Date hire_date) {\n this.emp_no = emp_no;\n this.birth_date = birth_date;\n this.first_name = first_name;\n this.last_name = last_name;\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F;\n this.hire_date = hire_date;\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String emailId, String mobileNumber) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.emailId = emailId;\n this.mobileNumber = mobileNumber;\n }", "Employee(String employeeName, double employeeSalary, int employeeAge) {\n\t\tthis.employeeName = employeeName;\n\t\tthis.employeeSalary = employeeSalary;\n\t\tthis.employeeAge = employeeAge;\n\t}", "public Employee(String name, String email, Address address, String phoneNumber, GenderEnum genderEnum) {\n this();\n this.name = name;\n this.email = email;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.gender = genderEnum;\n }", "public EmployeeArrivalEvent(int arrival, Employee employee) {\n super(arrival, employee);\n }", "public void createEmployee(Employee newEmployee) {\n\t\tif(false == this.employee.contains(newEmployee)) {\n\t\t\tthis.employee.add(newEmployee);\n\t\t}\n\t}", "private Employee(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "Employee(String name, String password, String username, String email) {\n this.name = name;\n this.username = username;\n this.email = email;\n this.password = password;\n\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String mobileNumber, String emailId, List<Address> address) {\n this.name = name;\n this.id = id;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.address = address;\n this.mobileNumber = mobileNumber;\n this.emailId = emailId;\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public Employee(String nom, int number )\n\t{\n\t\tName = nom;\n\t\tthis.Number = number;\n\t}", "public Employee(String firstName, String lastName) {\n\t\tsuper();\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t}", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public Employe(String nomEmploye) {\r\n\t\tsuper();\r\n\t\tthis.nomEmploye = nomEmploye;\r\n\t}", "public Employee(int id, String first, String last, String email,\r\n\t\t\tString role, String username, String password)\r\n\t{\r\n\t\tthis.employeeId = id;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.role = role;\r\n\t\tthis.username = username;\r\n\t\tthis.password= password;\r\n\t}", "public OfferingException() {\n }", "public Manager(Employee[] employees) {\n\t\tsuper();\n\t\tthis.employees = employees;\n\t}", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public Employee(String firstName, String lastName, int age, Address address, int id, String ssn) {\n\t\tsuper(firstName, lastName, age, ssn, address);\n\t\tthis.id = id;\n\t}", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "public Employee hireEmployee(int GasStationID, String Name, String SSN, Double salary, String department, EmployeePosition employeePosition, Date startDate) throws SQLException {\n Employee newHire = new Employee(GasStationID, Name, SSN, salary, department, employeePosition, startDate);\n newHire.create();\n return newHire;\n }", "public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public EmployeePackage(NetworkType type, String employee, String businessId) {\n super(type);\n this.employeeId = employee;\n this.businessId = businessId;\n }", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "private Employee(String name, String city, String id,int salary) {\n\t\tthis.name = name;\n\t\tthis.city = city;\n\t\tthis.id = id;\n\t\tthis.salary = salary;\n\t}", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "public EANAlreadyExists() {\n }", "public static Employee getEmployee(Node node) {\n Employee employee = new Employee();\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element e = (Element) node;\n employee.setId(e.getElementsByTagName(\"id\").item(0).getChildNodes().item(0).getTextContent());\n employee.setName(e.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getTextContent());\n employee.setSex(Integer.parseInt(e.getElementsByTagName(\"sex\").item(0).getChildNodes().item(0).getNodeValue()));\n employee.setDateOfBirth(e.getElementsByTagName(\"dateOfBirth\").item(0).getChildNodes().item(0).getTextContent());\n employee.setAddress(e.getElementsByTagName(\"address\").item(0).getChildNodes().item(0).getTextContent());\n employee.setIdDepartment(e.getElementsByTagName(\"idDepartment\").item(0).getChildNodes().item(0).getTextContent());\n employee.setSalary(Double.parseDouble(e.getElementsByTagName(\"salary\").item(0).getChildNodes().item(0).getNodeValue()));\n }\n return employee;\n }", "private static void newEmployee(UserType employeeType) {\n\n\t\tString username = null, password;\n\n\t\tboolean valid = false;\n\n\t\t// make sure that the username is not already taken\n\t\twhile (!valid) {\n\t\t\tSystem.out.print(\"What username would you like for your account? \");\n\t\t\tusername = input.nextLine();\n\t\t\tif (nameIsTaken(username, customerList)) {\n\t\t\t\tSystem.out.println(\"Sorry but that username has already been taken.\");\n\t\t\t} else\n\t\t\t\tvalid = true;\n\t\t}\n\t\t// set valid to false after each entry\n\t\tvalid = false;\n\n\t\tSystem.out.print(\"What password would you like for your account? \");\n\t\tpassword = input.nextLine();\n\n\t\tEmployee e = new Employee(username, password);\n\n\t\te.setType(employeeType);\n\t\temployeeList.add(e);\n\t\tcurrentUser = e;\n\t\twriteObject(employeeFile, employeeList);\n\t\temployeeDao.create(e);\n\t}", "public Employee(int id, String firstName, String lastName, String company) {\n this(firstName, lastName, company);\n\n this.id = id;\n }", "public Employee(String username,String password,String firstname,String lastname,Date DoB,\n String contactNamber,String email,float salary,String positionStatus,String name,\n String buildingName, String street, Integer buildingNo, String area,\n String city, String country, String postcode){\n\n super(username, password,firstname, lastname,DoB, contactNamber, email,\n name, buildingName, street, buildingNo, area, city, country, postcode);\n setSalary(salary);\n setPositionStatus(positionStatus);\n }", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}" ]
[ "0.7367144", "0.71579933", "0.6887157", "0.67881775", "0.6740532", "0.6657479", "0.66497946", "0.6639458", "0.6621409", "0.6620874", "0.6548688", "0.6548688", "0.6541368", "0.65201646", "0.65157974", "0.65113306", "0.6484944", "0.6484944", "0.6484944", "0.6470545", "0.6375328", "0.63531476", "0.63443863", "0.6341917", "0.6315981", "0.62714624", "0.62574387", "0.6224847", "0.62032497", "0.61811656", "0.6161769", "0.61449075", "0.61050445", "0.61043054", "0.6103326", "0.60742414", "0.607301", "0.60687", "0.6063917", "0.60565907", "0.6051914", "0.6047471", "0.60353607", "0.6028773", "0.60138094", "0.6002118", "0.59987634", "0.5982751", "0.5981267", "0.5957845", "0.59541184", "0.5953088", "0.59099126", "0.58695275", "0.5867255", "0.5856475", "0.5854554", "0.5847496", "0.58379775", "0.5832853", "0.58302903", "0.5828349", "0.5819062", "0.5797693", "0.579534", "0.57949954", "0.57917374", "0.5775627", "0.57748866", "0.57737696", "0.577143", "0.57622224", "0.57499033", "0.57410055", "0.57391375", "0.5727086", "0.5706964", "0.57002103", "0.56983626", "0.56933", "0.5668362", "0.56653005", "0.56640476", "0.56441516", "0.56439275", "0.563518", "0.5633112", "0.56306034", "0.5624096", "0.5623006", "0.5621374", "0.5619311", "0.5617438", "0.56146455", "0.5597342", "0.55853736", "0.5576312", "0.5573723", "0.55693424", "0.55654806" ]
0.66298735
8
Instantiates a new employee exception.
public EmployeeException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EmployeeNotFoundException() {\n super();\n }", "public EmployeeNotFoundException(String message) {\n super(message);\n }", "public Employee() throws OutOfRangeException { //default constructors have no parameters\n\t\t//must create a default constructor, if a subclass is created\n\t\tthis(\"\",\"\",10.0f,40);\n\t\temployeeCount++;\n\t}", "public Employee() {\n\t\tsuper();\n\t}", "public Employee() {\n\n\t}", "public Employee() {\n this.isActivated = false;\n this.salt = CryptographicHelper.getInstance().generateRandomString(32);\n\n this.address = new Address();\n this.reports = new ArrayList<>();\n }", "Employee() {\n\t}", "public EmployeeException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}", "public Employee() {}", "public Employee() {\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee(){\n\t\t\n\t}", "public Employee() {\t}", "@Override\n public void setEmployees() throws EmployeeCreationException {\n\n }", "public Employee() {\n \n }", "public Employee() {\n\t\tSystem.out.println(\"Employee Contructor Called...\");\n\t}", "public Employee() {\n }", "public Employee() {\n }", "public Employee() {\n }", "public Employee(int eId, String first, String last, String email, String hireYear,\r\n\t\t\tString position){\r\n\t\tthis.employeeId = eId;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.hireYear = hireYear;\r\n\t\tthis.role = position;\r\n\t\t\r\n\t}", "public Employee(){\r\n }", "public EmployeeRecord(){}", "public Employee(int eId, String first, String last, String email, String hireYear,\r\n\t\t\tString position, int departmentId, int groupId)\r\n\t{\r\n\t\tthis.employeeId = eId;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.hireYear = hireYear;\r\n\t\tthis.role = position;\r\n\t\tthis.departmentId = departmentId;\r\n\t\tthis.groupId = groupId;\r\n\t}", "public Employee(int eId, String first, String last, String email, String hireYear,\r\n\t\t\tString position, int departmentId)\r\n\t{\r\n\t\tthis.employeeId = eId;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.hireYear = hireYear;\r\n\t\tthis.role = position;\r\n\t\tthis.departmentId = departmentId;\r\n\r\n\t}", "@Override\n\tpublic void createEmployee(Employee e) {\n\t\t\n\t}", "public Employee(String employeeName, PositionTitle position, boolean salary, double payRate, int employeeShift,\n String startDate, double hrsIn) {\n // ////////////// construct Employees\n this.employeeName = employeeName;\n this.position = position;\n this.salary = salary;\n this.payRate = payRate;\n this.employeeShift = employeeShift;\n this.startDate = startDate;\n this.hrsIn = hrsIn;\n\n }", "public Employee(int employeeId, String employeeName, String employeeAddress) {\r\n\t\r\n\t\tthis.employeeId = employeeId;\r\n\t\tthis.employeeName = employeeName;\r\n\t\tthis.employeeAddress = employeeAddress;\r\n\t}", "public Employee(){\n this.employeeName = new String();\n this.employeeSalary = null;\n this.employeeProjectList = new ArrayList<String>();\n this.employeeDepartmentLead = new String();\n }", "public Employee(String id) {\n super(id);\n }", "public Employee(String employeeId, String name) {\n this.employeeId = employeeId;\n this.name = name; // TODO fill in code here\n }", "public Employee(String name){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = 0;\r\n\t}", "public Employee(String nama, int usia) {\r\n // Constructor digunakan untuk inisialisasi value, yang di inisiate saat melakukan instantiation\r\n this.nama = nama;\r\n this.usia = usia;\r\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public Employee(EmployeeDto e) {\n\t\tthis.id = e.getId();\n\t\tthis.firstName = e.getFirstName();\n this.lastName = e.getLastName();\n\t\tthis.dateOfBirth = e.getDateOfBirth();\n\t\tthis.gender = e.getGender();\n\t\tthis.startDate = e.getStartDate();\n\t\tthis.endDate = e.getEndDate();\n\t\tthis.position = e.getPosition();\n this.monthlySalary = e.getMonthlySalary();\n this.hourSalary = e.getHourSalary();\n this.area = e.getArea();\n this.createdAt = e.getCreatedAt();\n this.modifiedAt = e.getModifiedAt();\n\t}", "Employee(String firstName, String lastName, String role) {\n\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.role = role;\n\t}", "@Override\n\tpublic Employee createEmployee() {\n\t\treturn new Manager(name, age);\n\t}", "public InvalidEmployeeDetailsException(String exception) {\r\n super(exception);\r\n }", "public Exception() {\n\tsuper();\n }", "public SalesEmployee(){\n\t\tfirstName = \"unassigned\";\n\t\tlastName = \"unassigned\";\n\t\tppsNumber = \"unassigned\";\n\t\tbikeEmployeeNumber++;\n\t}", "public Employee(String proffesion) {\n\n this.name = rnd.randomCharName(8);\n this.surname = rnd.randomCharName(7);\n this.hourSalary = rnd.randomNumber(75,100);\n this.profession = proffesion;\n this.workingHour = WORKING_HOURS;\n this.moneyEarned = 0;\n this.moneyEarned = 0;\n this.isAbleTowork = true; \n }", "public Employee() {\n employeeID = genID.incrementAndGet();\n }", "public Employee () {\r\n lName = \"NO LAST NAME\";\r\n fName = \"NO FIRST NAME\";\r\n empID = \"NO EMPLOYEE ID\";\r\n salary = -1;\r\n }", "public PriceModelException() {\n\n }", "public Employee(String employeeFirstName, String employeeLastName, \r\n String employeeEmail, long employeePhoneNumber, \r\n String employeeStatus, double employeeSalary) {\r\n this.employeeFirstName = employeeFirstName;\r\n this.employeeLastName = employeeLastName;\r\n this.employeeEmail = employeeEmail;\r\n this.employeePhoneNumber = employeePhoneNumber;\r\n this.employeeStatus = employeeStatus;\r\n this.dateHired = new Date();\r\n this.employeeAddress = new Address();\r\n this.employeeSalary = employeeSalary;\r\n }", "public EmailException()\n {\n super();\n }", "Employee(int id, String name, String birthDate, int eage, double esalary){\r\n ID=id; \r\n NAME=name; \r\n BIRTHDATE=birthDate; \r\n age=eage; \r\n salary=esalary; \r\n }", "public void createemployee(Employeee em) {\n\t\temployeerepo.save(em);\n\t}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public Employee(String firstName, String lastName, Date birthDate, \n Date hireDate, Address Address) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthDate = birthDate;\n this.hireDate = hireDate;\n this.Address = Address;\n }", "public Employee(String name, int id) {\n super(name, id);\n position = \"None\";\n salary = 0.0;\n }", "public Employe() {\r\n this(NOM_BIDON, null);\r\n }", "public Employee(String Name) {\r\n this.Name = Name;\r\n }", "public EmployeeTransition() {\n this.id = new UUID(0, 0);\n this.f_name = StringUtils.EMPTY;\n this.l_name = StringUtils.EMPTY;\n this.employeeid = \"-1\";\n this.active = StringUtils.EMPTY;\n this.role = StringUtils.EMPTY;\n this.manager = StringUtils.EMPTY;\n this.password = StringUtils.EMPTY;\n this.createdOn = new Date();\n }", "public EmployeesImpl() {\r\n }", "public EmployeeTransition(Employee employee) {\n this.id = employee.getId();\n this.f_name = employee.getFname();\n this.l_name = employee.getLname();\n this.employeeid = employee.getEmployeeid();\n this.active = employee.getActive();\n this.role = employee.getRole();\n this.manager = employee.getManager();\n this.password = employee.getPassword();\n this.createdOn = employee.getCreatedOn();\n }", "public Employee createNewEmployee(String name) {\n Employee newEmployee = new Employee(DumbDB.employeeCounter++, name, NO_DEPARTMENT_ID);\n getAllEmployees().add(newEmployee);\n return newEmployee;\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String mobileNumber, String emailId, List<Address> address,\n List<Project> project) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.mobileNumber = mobileNumber;\n this.emailId = emailId;\n this.address = address;\n this.project = project;\n }", "public EmployeeDTO createEmployee(final EmployeeDTO createEmployeeDTO) throws ApplicationCustomException;", "public ScheduleException() {\r\n }", "Employee(String name, String profile, int id, String regime) {\n super(name, profile, id);\n this.regime = regime;\n }", "private Employee addEmployee(int id, String name, String address) {\r\n\t\treturn new Employee(id, name, address);\r\n\t}", "public Employee(String fName, String lName, int ID) {\n this.FName = fName;\n this.LName = lName;\n this.ID = ID;\n }", "public Employee(String code, Name name, Address address, String[] emails){\n super(code, address);\n this.emails = emails;\n this.name = name;\n }", "public Employee(String name, int id, String position, double salary) { \n super(name, id);\n this.position = position;\n this.salary = salary;\n }", "Employee(String empId, String name, int roleId, double basic, double allowancePercentage, double hra){\r\n\t\tthis.empId = empId;\r\n\t\tthis.name = name;\r\n\t\tthis.role.setRoleId(roleId);\r\n\t\tthis.basic = basic;\r\n\t\tthis.allowancePercentage = allowancePercentage;\r\n\t\tthis.hra = hra;\r\n\t}", "public andrewNamespace.xsdconfig.EmployeeDocument.Employee addNewEmployee()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n andrewNamespace.xsdconfig.EmployeeDocument.Employee target = null;\r\n target = (andrewNamespace.xsdconfig.EmployeeDocument.Employee)get_store().add_element_user(EMPLOYEE$0);\r\n return target;\r\n }\r\n }", "public Employee(int emp_no, Date birth_date, String first_name, String last_name, String gender, Date hire_date) {\n this.emp_no = emp_no;\n this.birth_date = birth_date;\n this.first_name = first_name;\n this.last_name = last_name;\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F;\n this.hire_date = hire_date;\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String emailId, String mobileNumber) {\n this.id = id;\n this.name = name;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.emailId = emailId;\n this.mobileNumber = mobileNumber;\n }", "Employee(String employeeName, double employeeSalary, int employeeAge) {\n\t\tthis.employeeName = employeeName;\n\t\tthis.employeeSalary = employeeSalary;\n\t\tthis.employeeAge = employeeAge;\n\t}", "public Employee(String name, String email, Address address, String phoneNumber, GenderEnum genderEnum) {\n this();\n this.name = name;\n this.email = email;\n this.address = address;\n this.phoneNumber = phoneNumber;\n this.gender = genderEnum;\n }", "public EmployeeArrivalEvent(int arrival, Employee employee) {\n super(arrival, employee);\n }", "public void createEmployee(Employee newEmployee) {\n\t\tif(false == this.employee.contains(newEmployee)) {\n\t\t\tthis.employee.add(newEmployee);\n\t\t}\n\t}", "private Employee(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "Employee(String name, String password, String username, String email) {\n this.name = name;\n this.username = username;\n this.email = email;\n this.password = password;\n\n }", "public Employee(int id, String name, double salary, Date dateOfBirth,\n String mobileNumber, String emailId, List<Address> address) {\n this.name = name;\n this.id = id;\n this.salary = salary;\n this.dateOfBirth = dateOfBirth;\n this.address = address;\n this.mobileNumber = mobileNumber;\n this.emailId = emailId;\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public Employee(String nom, int number )\n\t{\n\t\tName = nom;\n\t\tthis.Number = number;\n\t}", "public Employee(String firstName, String lastName) {\n\t\tsuper();\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t}", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public Employe(String nomEmploye) {\r\n\t\tsuper();\r\n\t\tthis.nomEmploye = nomEmploye;\r\n\t}", "public Employee(int id, String first, String last, String email,\r\n\t\t\tString role, String username, String password)\r\n\t{\r\n\t\tthis.employeeId = id;\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.email = email;\r\n\t\tthis.role = role;\r\n\t\tthis.username = username;\r\n\t\tthis.password= password;\r\n\t}", "public OfferingException() {\n }", "public Manager(Employee[] employees) {\n\t\tsuper();\n\t\tthis.employees = employees;\n\t}", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public Employee(String firstName, String lastName, int age, Address address, int id, String ssn) {\n\t\tsuper(firstName, lastName, age, ssn, address);\n\t\tthis.id = id;\n\t}", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "public Employee hireEmployee(int GasStationID, String Name, String SSN, Double salary, String department, EmployeePosition employeePosition, Date startDate) throws SQLException {\n Employee newHire = new Employee(GasStationID, Name, SSN, salary, department, employeePosition, startDate);\n newHire.create();\n return newHire;\n }", "public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public EmployeePackage(NetworkType type, String employee, String businessId) {\n super(type);\n this.employeeId = employee;\n this.businessId = businessId;\n }", "public Employee(String n, double s)\n {\n name = n;\n salary = s;\n }", "private Employee(String name, String city, String id,int salary) {\n\t\tthis.name = name;\n\t\tthis.city = city;\n\t\tthis.id = id;\n\t\tthis.salary = salary;\n\t}", "public Employee(String name, double salary){\r\n\t\tthis.employeeName = name;\r\n\t\tthis.salary = salary;\r\n\t}", "public EANAlreadyExists() {\n }", "public static Employee getEmployee(Node node) {\n Employee employee = new Employee();\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element e = (Element) node;\n employee.setId(e.getElementsByTagName(\"id\").item(0).getChildNodes().item(0).getTextContent());\n employee.setName(e.getElementsByTagName(\"name\").item(0).getChildNodes().item(0).getTextContent());\n employee.setSex(Integer.parseInt(e.getElementsByTagName(\"sex\").item(0).getChildNodes().item(0).getNodeValue()));\n employee.setDateOfBirth(e.getElementsByTagName(\"dateOfBirth\").item(0).getChildNodes().item(0).getTextContent());\n employee.setAddress(e.getElementsByTagName(\"address\").item(0).getChildNodes().item(0).getTextContent());\n employee.setIdDepartment(e.getElementsByTagName(\"idDepartment\").item(0).getChildNodes().item(0).getTextContent());\n employee.setSalary(Double.parseDouble(e.getElementsByTagName(\"salary\").item(0).getChildNodes().item(0).getNodeValue()));\n }\n return employee;\n }", "private static void newEmployee(UserType employeeType) {\n\n\t\tString username = null, password;\n\n\t\tboolean valid = false;\n\n\t\t// make sure that the username is not already taken\n\t\twhile (!valid) {\n\t\t\tSystem.out.print(\"What username would you like for your account? \");\n\t\t\tusername = input.nextLine();\n\t\t\tif (nameIsTaken(username, customerList)) {\n\t\t\t\tSystem.out.println(\"Sorry but that username has already been taken.\");\n\t\t\t} else\n\t\t\t\tvalid = true;\n\t\t}\n\t\t// set valid to false after each entry\n\t\tvalid = false;\n\n\t\tSystem.out.print(\"What password would you like for your account? \");\n\t\tpassword = input.nextLine();\n\n\t\tEmployee e = new Employee(username, password);\n\n\t\te.setType(employeeType);\n\t\temployeeList.add(e);\n\t\tcurrentUser = e;\n\t\twriteObject(employeeFile, employeeList);\n\t\temployeeDao.create(e);\n\t}", "public Employee(int id, String firstName, String lastName, String company) {\n this(firstName, lastName, company);\n\n this.id = id;\n }", "public Employee(String username,String password,String firstname,String lastname,Date DoB,\n String contactNamber,String email,float salary,String positionStatus,String name,\n String buildingName, String street, Integer buildingNo, String area,\n String city, String country, String postcode){\n\n super(username, password,firstname, lastname,DoB, contactNamber, email,\n name, buildingName, street, buildingNo, area, city, country, postcode);\n setSalary(salary);\n setPositionStatus(positionStatus);\n }", "public Employee(String inName, double inSalary)\n\t{\n\t\tname = inName;\n\t\tsalary = inSalary;\n\t}" ]
[ "0.7367144", "0.6887157", "0.67881775", "0.6740532", "0.6657479", "0.66497946", "0.6639458", "0.66298735", "0.6621409", "0.6620874", "0.6548688", "0.6548688", "0.6541368", "0.65201646", "0.65157974", "0.65113306", "0.6484944", "0.6484944", "0.6484944", "0.6470545", "0.6375328", "0.63531476", "0.63443863", "0.6341917", "0.6315981", "0.62714624", "0.62574387", "0.6224847", "0.62032497", "0.61811656", "0.6161769", "0.61449075", "0.61050445", "0.61043054", "0.6103326", "0.60742414", "0.607301", "0.60687", "0.6063917", "0.60565907", "0.6051914", "0.6047471", "0.60353607", "0.6028773", "0.60138094", "0.6002118", "0.59987634", "0.5982751", "0.5981267", "0.5957845", "0.59541184", "0.5953088", "0.59099126", "0.58695275", "0.5867255", "0.5856475", "0.5854554", "0.5847496", "0.58379775", "0.5832853", "0.58302903", "0.5828349", "0.5819062", "0.5797693", "0.579534", "0.57949954", "0.57917374", "0.5775627", "0.57748866", "0.57737696", "0.577143", "0.57622224", "0.57499033", "0.57410055", "0.57391375", "0.5727086", "0.5706964", "0.57002103", "0.56983626", "0.56933", "0.5668362", "0.56653005", "0.56640476", "0.56441516", "0.56439275", "0.563518", "0.5633112", "0.56306034", "0.5624096", "0.5623006", "0.5621374", "0.5619311", "0.5617438", "0.56146455", "0.5597342", "0.55853736", "0.5576312", "0.5573723", "0.55693424", "0.55654806" ]
0.71579933
1
minimal constructor Property accessors
public int getHzyf() { return this.hzyf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Property() {}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public Property()\r\n {\r\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "private ReadProperty()\r\n {\r\n\r\n }", "private PropertySingleton(){}", "private PropertyHolder() {\n }", "public Propuestas() {}", "public Properties(){\n\n }", "private void __sep__Constructors__() {}", "Property createProperty();", "private StaticProperty() {}", "private PropertySetFactory() {}", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "public EntityPropertyBean() {}", "private void addConstructors() {\n\t\tthis.rootBindingClass.getConstructor().body.line(\"super({}.class);\\n\", this.name.getTypeWithoutGenerics());\n\t\tGMethod constructor = this.rootBindingClass.getConstructor(this.name.get() + \" value\");\n\t\tconstructor.body.line(\"super({}.class);\", this.name.getTypeWithoutGenerics());\n\t\tconstructor.body.line(\"this.set(value);\");\n\t}", "public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}", "private PropertiesGetter() {\n // do nothing\n }", "private DiffProperty() {\n\t\t// No implementation\n\t}", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "private PropertyReaderConverter() {\n // empty\n }", "public Property(String name) {\n super(SOME, NONE);\n this.name = name;\n }", "protected NodeProperties() {\r\n }", "public Pojo1110110(){\r\n\t}", "private DatabaseValidationProperties() {}", "public Constructor(){\n\t\t\n\t}", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "private GetProperty(Builder builder) {\n super(builder);\n }", "Constructor() {\r\n\t\t \r\n\t }", "private mxPropertiesManager()\n\t{\n\t}", "PropertyCallExp createPropertyCallExp();", "public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}", "public CustomerPolicyProperties() {\n }", "public DPropertyElement() {\n super(null, null);\n }", "public Clade() {}", "private PropertiesUtils() {}", "@Test\n\tpublic static void testConstructorAndGetters() {\n\t\tMetalDTO m = new MetalDTO(1, 2, 3, 4.0, \"Name\", 3.7, 8.4);\n\t\tassertEquals(m.getAtomicMass(), 4.0, 0.01);\n\t\tassertEquals(m.getAtomicNumber(), 2);\n\t\tassertEquals(m.getDissolvedBy(), 3);\n\t\tassertEquals(m.getID(), 1);\n\t\tassertEquals(m.getName(), \"Name\");\n\t\tassertEquals(m.getMoles(), 3.7, 0.01);\n\t\tassertEquals(m.getMolesOfAcidToDissolve(), 8.4, 0.01);\n\t}", "private Value() {\n\t}", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "@Test\n public void testConstructorSetCorrect() {\n String name = \"A modifier\";\n int cost = 10;\n\n Modifier m = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n\n assertEquals(name, m.getName());\n assertEquals(cost, m.getCost());\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public Member() {}", "public PropertyCriteria() {\n\t\tsuper();\n\t}", "public Property(Property p) {\r\n\t\tpositive = Arrays.copyOf(p.positive, p.positive.length);\r\n\t\tnegative = Arrays.copyOf(p.negative, p.negative.length);\r\n\t\tstop = Arrays.copyOf(p.stop, p.stop.length);\r\n\t\tscoringmethod = p.scoringmethod;\r\n\t\tmindistance = p.mindistance;\r\n\t}", "public void init(Properties props) ;", "private SomePojoClass(String name) {\n this.name = name;\n }", "private TerminalProperties() {\n this(new TerminalPropertiesBuilder());\n }", "public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }", "public Customer()\n{\n this.firstName = \"noFName\";\n this.lastName = \"noLName\";\n this.address = \"noAddress\";\n this.phoneNumber = 0;\n this.emailAddress = \"noEmail\";\n \n}", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "public Identity()\n {\n super( Fields.ARGS );\n }", "public DimensionProperties() {\n }", "public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}", "public\n YutilProperties()\n {\n super(new Properties());\n }", "public SpotPropertyManager() {\r\n\t\tsuper();\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public Person(){\r\n\t\tsuper();\r\n\t}", "defaultConstructor(){}", "@Test\n\tpublic static void testConstructorAndGetters() {\n\n\t\tCompoundMadeOfElement comp = new CompoundMadeOfElement(1, 2, 5);\n\t\tassertEquals(comp.getCompoundID(), 1);\n\t\tassertEquals(comp.getElementID(), 2);\n\t\tassertEquals(comp.getElementQuantity(), 5);\n\t}", "public AbstractWorkspacebaseproperty()\n {\n }", "public ACLPropertyList() {\n try {\n jbInit();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }", "protected Product() {\n\t\t\n\t}", "Member() {}", "private TypicalPersons() {}", "private TypicalPersons() {}", "public Person() {\n\t\t\n\t}", "public KeyVaultProperties() {\n }", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "@Test\n public void constructorSetsEmptyExtra()\n {\n //act\n ProductInfo actual = new ProductInfo();\n\n //assert\n assertEquals(\"\", Deencapsulation.getField(actual, \"extra\"));\n }", "public PropertySellerDetailDTO() {\n\n\t}", "public Car(){\n\t\t\n\t}", "public Product() {}", "private PropertiesHelper() {\n throw new AssertionError(\"Cannot instantiate this class\");\n }", "public Product() { }", "public Product() { }", "@SuppressWarnings(\"unused\")\n public Coordinate() {}", "public Customer() {\n name = \"N.A.\";\n surname = \"N.A.\";\n address = \"N.A.\";\n email = \"N.A.\";\n }", "public Person()\n {\n this.name = \"John Doe\";\n this.address = \"1234 Somewhere Dr.\";\n this.phoneNumber = \"309-555-1234\";\n this.emailAddress = \"[email protected]\";\n }", "public ManagedHsmProperties() {\n }", "public Component() {\n }", "public CarAccessBean () {\n super();\n }", "public Person() {}", "public CyanSus() {\n\n }", "public Basic() {}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "@Override\r\n\tpublic void init() {}", "protected Product()\n\t{\n\t}", "private ConfigProperties() {\n\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "@Override // opcional\n public void init(){\n\n }", "private SingleObject(){}", "public Customer(){\n\t \n }", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "void DefaultConstructor(){}", "private PropertiesUtilis() {\n throw new UnsupportedOperationException(\"PropertiesUtilis instantiation\" + \n \"not allowed !\");\n }", "protected Coord() {\n\t}", "public ApplicationDefinitionProperties() {\n }", "public PSRelation()\n {\n }", "public Property(Property p) {\n\t\tcity=p.getCity();\n\t\towner=p.getOwner();\n\t\tpropertyName=p.getPropertyName();\n\t\trentAmount=p.getRentAmount();\n\t\tplot= new Plot(p.plot);\n\t}" ]
[ "0.74686545", "0.74367213", "0.7281006", "0.7136653", "0.6926654", "0.6882652", "0.6849157", "0.6786413", "0.6771434", "0.66613394", "0.6620948", "0.65479887", "0.6496338", "0.6463016", "0.64617693", "0.64386296", "0.64373887", "0.6426554", "0.64101714", "0.6312031", "0.62916094", "0.6288971", "0.62811744", "0.6273717", "0.6273671", "0.6243263", "0.6208743", "0.61881274", "0.6157479", "0.6154333", "0.61527395", "0.6118869", "0.61051005", "0.607036", "0.6069332", "0.60671127", "0.6059106", "0.6053696", "0.60502243", "0.6018952", "0.60176206", "0.60151446", "0.6012915", "0.600816", "0.5969928", "0.5965508", "0.59600514", "0.5941426", "0.5927167", "0.5926295", "0.5924241", "0.59197956", "0.5912542", "0.59077644", "0.5900192", "0.589697", "0.5893553", "0.58922654", "0.5888481", "0.5883528", "0.5877626", "0.5867849", "0.5866224", "0.5865471", "0.58584136", "0.58584136", "0.5857439", "0.58573365", "0.5855049", "0.5853635", "0.5852404", "0.5851928", "0.58479905", "0.5843442", "0.58422595", "0.58422595", "0.58343774", "0.58316684", "0.58295417", "0.5826015", "0.5825246", "0.58233345", "0.5821119", "0.58188325", "0.5813586", "0.5800256", "0.57925284", "0.57919365", "0.5790638", "0.57885015", "0.5782057", "0.57803786", "0.5780222", "0.5779114", "0.5778746", "0.57759017", "0.5773101", "0.57707125", "0.57636064", "0.57605785", "0.57580256" ]
0.0
-1
/ / / / / /
TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat) { /* 64 */ this.m_pattern = pat; /* 65 */ this.m_template = template; /* 66 */ this.m_stepPattern = pattern; /* 67 */ this.m_targetString = this.m_stepPattern.getTargetString(); /* 68 */ this.m_wild = this.m_targetString.equals("*"); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int rightChild(int i){return 2*i+2;}", "public void gored() {\n\t\t\n\t}", "double passer();", "public abstract String division();", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void sharpen();", "void sharpen();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "static void pyramid(){\n\t}", "int getWidth() {return width;}", "Operations operations();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double volume(){\n return width*height*depth;\n }", "@Override\n public void bfs() {\n\n }", "void mo33732Px();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public void stg() {\n\n\t}", "public void skystonePos4() {\n }", "public int generateRoshambo(){\n ;]\n\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void getTile_B8();", "int width();", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "Parallelogram(){\n length = width = height = 0;\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public double getWidth() {\n return this.size * 2.0; \n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "void walk() {\n\t\t\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void SubRect(){\n\t\n}", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public Integer getWidth(){return this.width;}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "void ringBell() {\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\r\n public void draw()\r\n {\n\r\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "void block(Directions dir);", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "@Override\n\tpublic void draw3() {\n\n\t}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "double seBlesser();", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public void skystonePos2() {\n }", "double volume() {\n\treturn width*height*depth;\n}", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "double getNewWidth();", "public int upright();", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "public void skystonePos3() {\n }", "public void leerPlanesDietas();", "long getWidth();", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void snare();", "public void strength1(float x, float y){\n noStroke();\n fill(80);\n rect(x+7,y,66,6);\n bezier(x+7,y,x,y+1,x,y+5,x+7,y+6);\n bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6);\n rect(x+7,y+1,13,3);//1st blue ba\n bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4);\n}", "public void skystonePos5() {\n }", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}" ]
[ "0.5472371", "0.5383522", "0.52979374", "0.5293668", "0.5211566", "0.51842105", "0.5161626", "0.51377255", "0.5100369", "0.5067393", "0.5064298", "0.50376177", "0.49875325", "0.49361488", "0.49140826", "0.49058613", "0.49058613", "0.48946288", "0.48945552", "0.48931476", "0.48904693", "0.48880374", "0.48798734", "0.48695773", "0.48647928", "0.48638737", "0.48618442", "0.48618138", "0.48505476", "0.48302734", "0.48278588", "0.48275942", "0.48218134", "0.48208144", "0.48172593", "0.4813516", "0.48124653", "0.4811937", "0.4811937", "0.48115787", "0.4811212", "0.48030958", "0.47998473", "0.4795484", "0.47894648", "0.47886366", "0.47878242", "0.47855106", "0.4777816", "0.47706896", "0.47695553", "0.4766223", "0.47616836", "0.4760893", "0.47604054", "0.47590306", "0.47488394", "0.4736708", "0.47364867", "0.47344264", "0.47324577", "0.47303045", "0.47301307", "0.47227973", "0.4722473", "0.4719981", "0.47176844", "0.47143498", "0.4712692", "0.47071925", "0.47001678", "0.46935824", "0.46934032", "0.46931094", "0.46875677", "0.46873635", "0.4686461", "0.46827722", "0.46827722", "0.46827522", "0.46788132", "0.46628743", "0.46617907", "0.46604863", "0.4657533", "0.46526098", "0.46518275", "0.46497184", "0.46489906", "0.46484554", "0.46466392", "0.46466392", "0.46454313", "0.46434125", "0.46428928", "0.46424708", "0.4639808", "0.46373105", "0.46368903", "0.46341428", "0.46330282" ]
0.0
-1
/ / / / / / / / / / /
public Object clone() throws CloneNotSupportedException { /* 81 */ TemplateSubPatternAssociation tspa = (TemplateSubPatternAssociation)super.clone(); /* */ /* */ /* 84 */ tspa.m_next = null; /* */ /* 86 */ return tspa; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.size * 2.0; \n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void getTile_B8();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public String ring();", "int width();", "public void gored() {\n\t\t\n\t}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public abstract String division();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\n public void bfs() {\n\n }", "long getWidth();", "double getNewWidth();", "static int getNumPatterns() { return 64; }", "public int my_leaf_count();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo33732Px();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "double seBlesser();", "int getTribeSize();", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public double getPerimiter(){return (2*height +2*width);}", "public int getWidth(){\n return width;\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public String getRing();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void SubRect(){\n\t\n}", "public abstract double getBaseWidth();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "static void pyramid(){\n\t}", "public static int size_parent() {\n return (8 / 8);\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int expand();", "public abstract int getSpotsNeeded();", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "long getMid();", "long getMid();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "int depth();", "int depth();", "String directsTo();", "int getSpriteArraySize();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int getWidth1();", "public String getRingback();", "void sharpen();", "void sharpen();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5539566", "0.5443216", "0.52041054", "0.51819956", "0.5094696", "0.50600076", "0.50546855", "0.5044382", "0.5027", "0.50127006", "0.501204", "0.5011419", "0.5003489", "0.49992156", "0.49968395", "0.4985262", "0.49802333", "0.49799347", "0.49673638", "0.49581978", "0.4911662", "0.49102637", "0.48979324", "0.48764208", "0.48716363", "0.48665753", "0.4843674", "0.48419464", "0.48417434", "0.48366538", "0.48327547", "0.48261344", "0.4821535", "0.4815944", "0.48108542", "0.4805923", "0.4805435", "0.48035234", "0.47946835", "0.4792527", "0.47876805", "0.4782839", "0.47795832", "0.47716063", "0.47688985", "0.47665486", "0.4762838", "0.47574255", "0.47534284", "0.47525635", "0.47515813", "0.47497395", "0.47491625", "0.47469398", "0.47461006", "0.4742548", "0.47348055", "0.47326624", "0.4731638", "0.47280052", "0.47273138", "0.47270128", "0.47226608", "0.47142863", "0.4710261", "0.47074398", "0.470504", "0.47028714", "0.46963775", "0.4696207", "0.4696064", "0.46952328", "0.46875802", "0.46875802", "0.46873128", "0.46868363", "0.46865276", "0.46860248", "0.46860248", "0.46833462", "0.46829584", "0.46815568", "0.46792087", "0.46751192", "0.46714664", "0.4669237", "0.466823", "0.46666652", "0.46666652", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967" ]
0.0
-1
/ / / / / / / / /
public final String getTargetString() { /* 97 */ return this.m_targetString; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / /
public void setTargetString(String key) { /* 108 */ this.m_targetString = key; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / / /
boolean matchMode(QName m1) { /* 120 */ return matchModes(m1, this.m_template.getMode()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "double passer();", "int getWidth() {return width;}", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "public String ring();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void gored() {\n\t\t\n\t}", "public void getTile_B8();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public String toString(){ return \"DIV\";}", "int width();", "public abstract String division();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "@Override\n public void bfs() {\n\n }", "public int getEdgeCount() \n {\n return 3;\n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\npublic void processDirection() {\n\t\n}", "double getNewWidth();", "long getWidth();", "public int generateRoshambo(){\n ;]\n\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double volume(){\n return width*height*depth;\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int my_leaf_count();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "Operations operations();", "static int getNumPatterns() { return 64; }", "void mo33732Px();", "public double getPerimiter(){return (2*height +2*width);}", "double seBlesser();", "public void SubRect(){\n\t\n}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public int getWidth(){\n return width;\n }", "static void pyramid(){\n\t}", "public void leerPlanesDietas();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public String getRing();", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "void walk() {\n\t\t\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "int getTribeSize();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "public abstract double getBaseWidth();", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "void sharpen();", "void sharpen();", "double getPerimeter(){\n return 2*height+width;\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "int expand();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static int size_parent() {\n return (8 / 8);\n }", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "String directsTo();", "int depth();", "int depth();", "int getWidth1();", "public abstract int getSpotsNeeded();", "public int upright();", "public void stg() {\n\n\t}", "int getR();", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "public String getRingback();", "double getWidth();", "double getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5540896", "0.5446543", "0.5227331", "0.52141076", "0.5111389", "0.50963986", "0.50654864", "0.5038032", "0.50336593", "0.501189", "0.50033337", "0.5002645", "0.4999724", "0.4997505", "0.49938273", "0.4988672", "0.4982446", "0.49785286", "0.4967535", "0.49578318", "0.4915642", "0.49043542", "0.4896837", "0.48817068", "0.48615584", "0.48489416", "0.4838888", "0.48292333", "0.48239383", "0.48229367", "0.48212478", "0.48193154", "0.48124096", "0.48111546", "0.4806745", "0.4804178", "0.48025957", "0.47942734", "0.4787015", "0.47851548", "0.47835702", "0.47725245", "0.47664967", "0.476185", "0.4760751", "0.47598377", "0.4759025", "0.4757917", "0.47506076", "0.47504088", "0.47497043", "0.47486544", "0.4747894", "0.4746228", "0.4741946", "0.47376034", "0.47327974", "0.47300422", "0.4727591", "0.47272107", "0.47263286", "0.47261053", "0.47214398", "0.47212386", "0.47205597", "0.47184741", "0.47169027", "0.47127956", "0.47109538", "0.47052673", "0.47015747", "0.47015747", "0.47005445", "0.46963036", "0.46961927", "0.46945545", "0.46940103", "0.46804753", "0.4678816", "0.46784258", "0.4676913", "0.46759227", "0.46728146", "0.46719387", "0.46686554", "0.46686554", "0.4666156", "0.46614605", "0.46611053", "0.466004", "0.46565068", "0.46531367", "0.4652937", "0.4652573", "0.4652573", "0.46524948", "0.46524948", "0.46524948", "0.46524948", "0.46524948", "0.46524948" ]
0.0
-1
/ / / / / / / / / / /
private boolean matchModes(QName m1, QName m2) { /* 133 */ return ((null == m1 && null == m2) || (null != m1 && null != m2 && m1.equals(m2))); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.size * 2.0; \n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void getTile_B8();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public String ring();", "int width();", "public void gored() {\n\t\t\n\t}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public abstract String division();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\n public void bfs() {\n\n }", "long getWidth();", "double getNewWidth();", "static int getNumPatterns() { return 64; }", "public int my_leaf_count();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo33732Px();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "double seBlesser();", "int getTribeSize();", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public double getPerimiter(){return (2*height +2*width);}", "public int getWidth(){\n return width;\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public String getRing();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void SubRect(){\n\t\n}", "public abstract double getBaseWidth();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "static void pyramid(){\n\t}", "public static int size_parent() {\n return (8 / 8);\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int expand();", "public abstract int getSpotsNeeded();", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "long getMid();", "long getMid();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "int depth();", "int depth();", "String directsTo();", "int getSpriteArraySize();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int getWidth1();", "public String getRingback();", "void sharpen();", "void sharpen();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5539566", "0.5443216", "0.52041054", "0.51819956", "0.5094696", "0.50600076", "0.50546855", "0.5044382", "0.5027", "0.50127006", "0.501204", "0.5011419", "0.5003489", "0.49992156", "0.49968395", "0.4985262", "0.49802333", "0.49799347", "0.49673638", "0.49581978", "0.4911662", "0.49102637", "0.48979324", "0.48764208", "0.48716363", "0.48665753", "0.4843674", "0.48419464", "0.48417434", "0.48366538", "0.48327547", "0.48261344", "0.4821535", "0.4815944", "0.48108542", "0.4805923", "0.4805435", "0.48035234", "0.47946835", "0.4792527", "0.47876805", "0.4782839", "0.47795832", "0.47716063", "0.47688985", "0.47665486", "0.4762838", "0.47574255", "0.47534284", "0.47525635", "0.47515813", "0.47497395", "0.47491625", "0.47469398", "0.47461006", "0.4742548", "0.47348055", "0.47326624", "0.4731638", "0.47280052", "0.47273138", "0.47270128", "0.47226608", "0.47142863", "0.4710261", "0.47074398", "0.470504", "0.47028714", "0.46963775", "0.4696207", "0.4696064", "0.46952328", "0.46875802", "0.46875802", "0.46873128", "0.46868363", "0.46865276", "0.46860248", "0.46860248", "0.46833462", "0.46829584", "0.46815568", "0.46792087", "0.46751192", "0.46714664", "0.4669237", "0.466823", "0.46666652", "0.46666652", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967", "0.46650967" ]
0.0
-1
/ / / / / / / / / / / / / / / / /
public boolean matches(XPathContext xctxt, int targetNode, QName mode) throws TransformerException { /* 152 */ double score = this.m_stepPattern.getMatchScore(xctxt, targetNode); /* */ /* 154 */ return (Double.NEGATIVE_INFINITY != score && matchModes(mode, this.m_template.getMode())); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "int getWidth() {return width;}", "static int getNumPatterns() { return 64; }", "int width();", "public abstract void bepaalGrootte();", "public void divide() {\n\t\t\n\t}", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "private int rightChild(int i){return 2*i+2;}", "public void gored() {\n\t\t\n\t}", "int getTribeSize();", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public int getEdgeCount() \n {\n return 3;\n }", "void mo33732Px();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "long getWidth();", "public String ring();", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "double seBlesser();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "public double getWidth() { return _width<0? -_width : _width; }", "double getNewWidth();", "public int generateRoshambo(){\n ;]\n\n }", "public String toString(){ return \"DIV\";}", "public abstract int getSpotsNeeded();", "public static int size_parent() {\n return (8 / 8);\n }", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "public int my_leaf_count();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "int getSize ();", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "@Override\n public void bfs() {\n\n }", "int getSpriteArraySize();", "long getMid();", "long getMid();", "public static int size_parentId() {\n return (16 / 8);\n }", "public int getTakeSpace() {\n return 0;\n }", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract String division();", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "int expand();", "public void skystonePos4() {\n }", "public void leerPlanesDietas();", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int getWidth(){\n return width;\n }", "@Override\npublic void processDirection() {\n\t\n}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public abstract double getBaseWidth();", "@Override\n\tprotected void interr() {\n\t}", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int length() { return 1+maxidx; }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public int getWidth()\n {return width;}", "public String getRing();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "Operations operations();", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "private void poetries() {\n\n\t}", "public void method_4270() {}", "public static int offset_parent() {\n return (40 / 8);\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "int align();", "int depth();", "int depth();", "public double getPerimiter(){return (2*height +2*width);}", "double volume(){\n return width*height*depth;\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public String getRingback();", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "public int width();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "String directsTo();", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public double width() { return _width; }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }", "Parallelogram(){\n length = width = height = 0;\n }", "public void Exterior() {\n\t\t\r\n\t}", "static int size_of_inx(String passed){\n\t\treturn 1;\n\t}", "int getWidth()\n {\n return width;\n }", "static int size_of_xra(String passed){\n\t\treturn 1;\n\t}", "public int get_resource_distance() {\n return 1;\r\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5398624", "0.5302166", "0.50988036", "0.50856084", "0.50632095", "0.505399", "0.50325966", "0.5016769", "0.49988022", "0.49945837", "0.49838054", "0.49793383", "0.49702466", "0.4950869", "0.4929731", "0.49185315", "0.4905335", "0.49045703", "0.49035764", "0.48944765", "0.48881772", "0.48841313", "0.48697373", "0.48662102", "0.4859132", "0.48571044", "0.48566234", "0.48479423", "0.48443612", "0.48427612", "0.48377773", "0.48328573", "0.48282477", "0.4820829", "0.4818008", "0.4811484", "0.48112682", "0.48014867", "0.47940284", "0.4791919", "0.47814164", "0.47804675", "0.47804675", "0.4775813", "0.47685337", "0.47678813", "0.47635207", "0.4763394", "0.47630307", "0.47621614", "0.4758771", "0.47562164", "0.47521442", "0.4743488", "0.4742876", "0.4736554", "0.4731526", "0.47295758", "0.4725888", "0.4724361", "0.4723426", "0.4716053", "0.47099674", "0.47095725", "0.47046798", "0.4700592", "0.4700235", "0.4700144", "0.46979344", "0.46940005", "0.46891275", "0.4686902", "0.4686528", "0.46803764", "0.46798548", "0.46798548", "0.46737376", "0.46736604", "0.46706793", "0.46694884", "0.4667834", "0.4666972", "0.46658915", "0.46651667", "0.46623358", "0.46619323", "0.4661325", "0.4660259", "0.46581724", "0.46574423", "0.46535093", "0.46533716", "0.46520585", "0.4649601", "0.46495068", "0.4648742", "0.463668", "0.463668", "0.463668", "0.463668", "0.463668" ]
0.0
-1
/ / / / / / / / /
public final boolean isWild() { /* 165 */ return this.m_wild; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / /
public final StepPattern getStepPattern() { /* 176 */ return this.m_stepPattern; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / /
public final String getPattern() { /* 187 */ return this.m_pattern; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "double passer();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public int my_leaf_count();", "public void skystonePos4() {\n }", "void walk() {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double seBlesser();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531012", "0.5437856", "0.5252561", "0.5240695", "0.51507", "0.5129348", "0.5067813", "0.5067072", "0.5021906", "0.5012433", "0.5008661", "0.500449", "0.50002986", "0.49955428", "0.49727803", "0.49698842", "0.49680573", "0.49589744", "0.493792", "0.49357998", "0.492819", "0.4884194", "0.48737973", "0.48714766", "0.48526376", "0.48432842", "0.48315883", "0.4827754", "0.48257586", "0.480864", "0.48056486", "0.48052716", "0.48043883", "0.4803479", "0.47988275", "0.47971472", "0.4794168", "0.47920167", "0.47884524", "0.478413", "0.4775027", "0.4773942", "0.47730315", "0.47689658", "0.4767127", "0.47623295", "0.47563165", "0.4754174", "0.47513115", "0.47472385", "0.4742968", "0.4742052", "0.47415745", "0.47412434", "0.47412434", "0.47364768", "0.47359967", "0.47346354", "0.47335127", "0.47326928", "0.47314084", "0.47307664", "0.47299278", "0.47294044", "0.4728379", "0.4726582", "0.4723637", "0.4723365", "0.47150046", "0.4705691", "0.47031748", "0.47029963", "0.47023994", "0.46973228", "0.46970987", "0.46896163", "0.46894115", "0.46894115", "0.46853727", "0.46781927", "0.4675353", "0.46736303", "0.4669731", "0.46688825", "0.46645993", "0.46634874", "0.46633077", "0.46615297", "0.46585166", "0.46579018", "0.4655887", "0.46495435", "0.4648819", "0.4648027", "0.46468076", "0.46442878", "0.46442878", "0.46430585", "0.46425277", "0.46393806", "0.46393806" ]
0.0
-1
/ / / / / / / / /
public int getDocOrderPos() { /* 198 */ return this.m_template.getUid(); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / /
public final int getImportLevel() { /* 209 */ return this.m_template.getStylesheetComposed().getImportCountComposed(); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / / /
public final ElemTemplate getTemplate() { /* 220 */ return this.m_template; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public int generateRoshambo(){\n ;]\n\n }", "Operations operations();", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "static void pyramid(){\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public int my_leaf_count();", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void skystonePos4() {\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void walk() {\n\t\t\n\t}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "double seBlesser();", "void sharpen();", "void sharpen();", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public void leerPlanesDietas();", "public String getRing();", "static int getNumPatterns() { return 64; }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "double getWidth();", "double getWidth();" ]
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.49287266", "0.4884688", "0.4874051", "0.4871873", "0.48511675", "0.48435977", "0.48318782", "0.48268357", "0.48253223", "0.48089546", "0.4805502", "0.48046046", "0.4803564", "0.48035362", "0.47987092", "0.47966656", "0.47941628", "0.47918317", "0.4789212", "0.4783637", "0.47747543", "0.4774159", "0.47730577", "0.47666246", "0.47664872", "0.47615", "0.4755131", "0.47543177", "0.47509375", "0.47481856", "0.47429588", "0.47421312", "0.47413164", "0.47407025", "0.47407025", "0.47362685", "0.47353023", "0.47351807", "0.47331676", "0.47328842", "0.47319365", "0.4729934", "0.47290468", "0.47287467", "0.47275317", "0.47259426", "0.47239763", "0.4723621", "0.4715134", "0.47056246", "0.47034666", "0.47034577", "0.4701833", "0.46977103", "0.46967983", "0.46885592", "0.46881223", "0.46881223", "0.4685835", "0.4677769", "0.46758488", "0.46741006", "0.46703368", "0.46684504", "0.4664061", "0.4664013", "0.46639267", "0.46607205", "0.4659042", "0.46581274", "0.4656714", "0.46495056", "0.464903", "0.4648408", "0.46467063", "0.4643833", "0.4643833", "0.46426296", "0.46422264", "0.4639917", "0.4639917" ]
0.0
-1
/ / / / / / / /
public final TemplateSubPatternAssociation getNext() { /* 230 */ return this.m_next; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double passer();", "public String ring();", "public void gored() {\n\t\t\n\t}", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "int getWidth() {return width;}", "public String toString(){ return \"DIV\";}", "public abstract String division();", "public void getTile_B8();", "public double getWidth() {\n return this.size * 2.0; \n }", "public Integer getWidth(){return this.width;}", "int width();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "@Override\n public void bfs() {\n\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "double volume(){\n return width*height*depth;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "Operations operations();", "public double getWidth() { return _width<0? -_width : _width; }", "public int generateRoshambo(){\n ;]\n\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "static void pyramid(){\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "public void SubRect(){\n\t\n}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "void sharpen();", "void sharpen();", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "void mo33732Px();", "void walk() {\n\t\t\n\t}", "public void skystonePos4() {\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "double getNewWidth();", "Parallelogram(){\n length = width = height = 0;\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "double getPerimeter(){\n return 2*height+width;\n }", "public int getEdgeCount() \n {\n return 3;\n }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public void stg() {\n\n\t}", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double seBlesser();", "public void leerPlanesDietas();", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public int my_leaf_count();", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public String getRing();", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public int getWidth(){\n return width;\n }", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "static int getNumPatterns() { return 64; }", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "public abstract double getBaseWidth();", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int upright();", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "void block(Directions dir);", "@Override\r\n public void draw()\r\n {\n\r\n }", "int getWidth1();", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "int expand();", "int getR();", "private int right(int parent) {\n\t\treturn parent*2+2;\n\t}", "public void snare();" ]
[ "0.55048823", "0.5413075", "0.5298015", "0.52379996", "0.5205496", "0.51480424", "0.5101674", "0.5076514", "0.5037376", "0.50321674", "0.5009592", "0.498159", "0.49813378", "0.497832", "0.4973623", "0.4962841", "0.4937309", "0.49288675", "0.49036264", "0.4893208", "0.4878872", "0.486023", "0.48546878", "0.48474306", "0.4843786", "0.4843597", "0.48404554", "0.4828573", "0.48274475", "0.48219448", "0.48183352", "0.48035783", "0.48026597", "0.48024082", "0.48010957", "0.47977605", "0.47963956", "0.47898334", "0.47896647", "0.47896647", "0.47895992", "0.4779191", "0.47783852", "0.4774972", "0.4772322", "0.47666243", "0.4766516", "0.47659966", "0.47643757", "0.4759398", "0.4758365", "0.47569305", "0.47497272", "0.47480056", "0.47479713", "0.4741745", "0.47414282", "0.47396216", "0.47332615", "0.47332615", "0.4730555", "0.47282982", "0.47245604", "0.47213167", "0.4720495", "0.47192472", "0.47116497", "0.4710941", "0.47098854", "0.47097144", "0.47078505", "0.47062895", "0.46959555", "0.46922386", "0.46900117", "0.4689764", "0.46894056", "0.4689377", "0.4686405", "0.46843585", "0.4674956", "0.46731538", "0.4672369", "0.46682325", "0.4665395", "0.46646914", "0.46625108", "0.4657444", "0.46537265", "0.46518642", "0.46471432", "0.46463698", "0.46434096", "0.46425372", "0.46412522", "0.4640808", "0.46407127", "0.4638794", "0.46371377", "0.46312422", "0.46296054" ]
0.0
-1
/ / / / / / / / / / / /
public void setNext(TemplateSubPatternAssociation mp) { /* 244 */ this.m_next = mp; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth(){return this.width;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "int width();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "public abstract String division();", "public double getWidth() { return _width<0? -_width : _width; }", "static int getNumPatterns() { return 64; }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "double getNewWidth();", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public int my_leaf_count();", "@Override\n public void bfs() {\n\n }", "public int generateRoshambo(){\n ;]\n\n }", "int getTribeSize();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "void mo33732Px();", "double seBlesser();", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "double volume(){\n return width*height*depth;\n }", "public int getWidth(){\n return width;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public void leerPlanesDietas();", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public static int size_parent() {\n return (8 / 8);\n }", "Operations operations();", "public double getPerimiter(){return (2*height +2*width);}", "public String getRing();", "public void skystonePos4() {\n }", "public abstract int getSpotsNeeded();", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public abstract double getBaseWidth();", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "int expand();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "long getMid();", "long getMid();", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int getSpriteArraySize();", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public int getWidth()\n {return width;}", "static void pyramid(){\n\t}", "public void SubRect(){\n\t\n}", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "Parallelogram(){\n length = width = height = 0;\n }", "int depth();", "int depth();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "String directsTo();", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public String getRingback();", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "@Override\n\tprotected void interr() {\n\t}", "int getWidth1();" ]
[ "0.5528792", "0.54315263", "0.51737124", "0.5150286", "0.5077775", "0.5064908", "0.50597715", "0.5045933", "0.5037415", "0.5019393", "0.50050676", "0.50032693", "0.499702", "0.49949083", "0.49852678", "0.4973753", "0.4970428", "0.49669605", "0.49542087", "0.4945966", "0.4921133", "0.49079603", "0.4884644", "0.4879366", "0.48769364", "0.48760977", "0.48618412", "0.4857062", "0.4856107", "0.4848026", "0.48381364", "0.4837923", "0.48339877", "0.48231202", "0.48226285", "0.48105136", "0.4810298", "0.48000357", "0.47999635", "0.47987804", "0.47920895", "0.4786291", "0.47706842", "0.47685736", "0.47684807", "0.4768041", "0.47676992", "0.47632176", "0.4761828", "0.4761766", "0.47591394", "0.47565237", "0.47525048", "0.4752376", "0.47481483", "0.4744625", "0.4740494", "0.47396293", "0.4731915", "0.47255778", "0.47226188", "0.4720667", "0.47175038", "0.47175038", "0.47165227", "0.47134835", "0.47109672", "0.47085458", "0.47068602", "0.470273", "0.4697842", "0.4696386", "0.46950635", "0.46950635", "0.46914726", "0.46891877", "0.468772", "0.46854112", "0.4684771", "0.4678754", "0.46776247", "0.46760088", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46705312", "0.46702778", "0.46682474" ]
0.0
-1
/ Setters y Getters
@XmlElementWrapper(name = "dayList") @XmlElement(name = "Day") public List<Day> getDayList() { return dayList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "public void setdat()\n {\n }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void assignment() {\n\n\t\t\t}", "@Override\n public void get() {}", "@Override\n protected void getExras() {\n }", "public void setAge(int age) { this.age = age; }", "String setValue();", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "private void setData() {\n\n }", "public void get() {\n }", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public void setX(int x) { this.x=x; }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void setData() {\n\n\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public int getAge() {return age;}", "public int getArmadura(){return armadura;}", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Test\n\tpublic void testSet() {\n\t}", "public void setPrice(double price){this.price=price;}", "@Override\n protected void updateProperties() {\n }", "@Override\npublic void setAttributes() {\n\t\n}", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public void setRes(){\r\n \r\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public int getSet() {\n return set;\n }", "double sety(double y) {\nreturn this.y;\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setName(String name){this.name=name;}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public void setupProperties() {\n // left empty for subclass to override\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public void asetaTeksti(){\n }", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public int getlife(){\r\n return life;\r\n}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "private ReadProperty()\r\n {\r\n\r\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "void setParameters() {\n\t\t\n\t}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void setAge(int age);", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "public void setAge(int age) { \n\t\t this.age = age; \n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public int getAge(){\n return age;\n }", "public void setName(String name){this.name = name;}", "private void initValues() {\n \n }", "public int getx(){\r\n return z;\r\n}", "private void setUserData(){\n }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "@Override\n\tpublic void initializeValues() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public int getSpeed(){return this.speed;}", "public void Ordenamiento() {\n\n\t}", "@Override\n\tpublic void setTest() {\n\t}", "public int getAge()\r\n {\r\n return age;\r\n }", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "private stendhal() {\n\t}" ]
[ "0.7020426", "0.67157125", "0.63871664", "0.6307094", "0.62661564", "0.62476534", "0.62307864", "0.62133265", "0.61609685", "0.6158854", "0.6125408", "0.6091679", "0.6066274", "0.60376126", "0.5984823", "0.59796107", "0.59441704", "0.5922768", "0.59135556", "0.5910823", "0.5903276", "0.5882213", "0.5878038", "0.58759385", "0.58703756", "0.5867691", "0.58632076", "0.5855474", "0.5839101", "0.5837445", "0.58336884", "0.5827173", "0.5820139", "0.5819518", "0.5815786", "0.5815072", "0.58132136", "0.57986", "0.5798311", "0.5795646", "0.5792446", "0.5789048", "0.5785737", "0.5779972", "0.5778484", "0.57653725", "0.5762714", "0.57605135", "0.5757372", "0.5747204", "0.5744467", "0.5724576", "0.5724095", "0.57141423", "0.570887", "0.5703391", "0.5703391", "0.57032293", "0.5696077", "0.5688596", "0.56870127", "0.568542", "0.5681639", "0.568128", "0.568128", "0.568128", "0.568128", "0.568128", "0.568128", "0.56729317", "0.56729317", "0.566926", "0.5665762", "0.56646895", "0.5659184", "0.5657624", "0.5657624", "0.5654358", "0.5653911", "0.56529355", "0.56502795", "0.56493497", "0.56485784", "0.56480426", "0.56473774", "0.564385", "0.5640246", "0.56321114", "0.5630668", "0.56219953", "0.56140167", "0.5613532", "0.5611132", "0.5607227", "0.5604206", "0.5601787", "0.55998963", "0.55962545", "0.55887324", "0.5586416", "0.55833805" ]
0.0
-1
Interfaccia per algoritmi di ordinamento generici.
public interface SortingAlgorithm<E extends Comparable<E>> { /** * Ordina una lista di elementi in accordo all'ordinamento totale naturale * definito nella classe degli elementi. * * @param l * la lista da ordinare (dovrebbe essere una ArrayList) * @return un oggetto contentente la lista ordinata e il numero di * operazioni di comparazione effettuate dall'algoritmo. */ public SortingAlgorithmResult<E> sort(List<E> l); /** * Restituisce il nome dell'algoritmo di ordinamento. * * @return il nome dell'algoritmo */ public String getName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void trataAltera();", "@Override\n\tpublic void trabajar() {\n\n\t}", "public interface TypeGlazingEAO extends GenericEAO<TypeGlazing, Integer> {\n\n /**\n * Find Glazing Types order by Identification Id\n *\n * @return List<TypeGlazing>\n * @throws openjanela.model.eao.genericEAO.GenericPersistenceEAOException,\n * Exception\n */\n public List<TypeGlazing> findAllOrderById() throws GenericPersistenceEAOException;\n\n}", "public interface GenericDAO<T extends BaseEntity, K extends Number> {\r\n\r\n\t/**\r\n\t * inserir\r\n\t * @param entidade\r\n\t */\r\n void inserir(T entidade);\r\n\r\n /**\r\n * atualizar\r\n * @param entidade\r\n * @return\r\n */\r\n T atualizar(T entidade);\r\n\r\n /**\r\n * deletar\r\n * @param id\r\n */\r\n void deletar(K id);\r\n\r\n /**\r\n * buscarPorId\r\n * @param id\r\n * @return\r\n */\r\n T buscarPorId(K id);\r\n \r\n /**\r\n * buscarTodos\r\n * @return\r\n */\r\n List<T> buscarTodos();\r\n \r\n /**\r\n * buscaPorNome\r\n * @param nomeEntidade\r\n * @return\r\n */\r\n T buscaPorNome(String nomeEntidade);\r\n\r\n /**\r\n * contar\r\n * @return\r\n */\r\n int contar();\r\n \r\n /**\r\n * retorna todos os resultados de entidades que tem o atributo nome\r\n * @return\r\n */\r\n List<T> buscarTodosComNomeLower();\r\n\r\n}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\n public void alRechazarOperacion() {\n }", "protected abstract Order getOrder( int O_W_ID, int O_D_ID, Integer NO_O_ID, int O_CARRIER_ID );", "public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProduto(long valor);\n\t\n\t\n\tpublic long getIdModeloProdutoRa();\n\tpublic void setIdModeloProdutoRa(long valor);\n\t\n\t\n\tpublic long getIdProdutoRa();\n\tpublic void setIdProdutoRa(long valor);\n\t\n\t\n}", "public void Ordenamiento() {\n\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "public void generTirarDados() {\n\r\n\t}", "@Override\r\n\tpublic <T> EktParam creatParam(T t) {\n\t\todo = (ODO) t;\r\n\t\todo.setEktSql(null);\r\n\t\tif (EKTIO.getInstance().ektSwitch()) {\r\n\t\t\t\r\n\t\t\tReg reg = ektParam.getReg();\r\n\t\t\tPat pat = ektParam.getPat();\r\n\t\t\t\r\n\t\t\tTParm orderOldParm = ektParam.getOrderOldParm();\r\n\t\t\tTParm orderParm = ektParam.getOrderParm();\r\n\r\n\t\t\tif (odo == null) {\r\n\t\t\t\todoMainControl.messageBox(\"E0115\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tektParam.setOpType(\"\");\r\n\t\t\t\r\n\t\t\tTParm unParm = new TParm();\r\n\t\t\tif (orderOldParm == null) {\r\n\t\t\t\todoMainControl.messageBox(\"没有需要操作的医嘱\");\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}\r\n\t\t\tif(orderParm.getValue(\"OP_FLG\").length()>0 && orderParm.getInt(\"OP_FLG\")==5){\r\n\t\t\t\todoMainControl.messageBox(\"没有需要操作的医嘱\");\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTParm updateParm=orderParm.getParm(\"updateParm\");\r\n\t\t\t//TODO\r\n\t\t\tboolean unFlg = odoMainControl.updateOrderParm(updateParm, orderOldParm, unParm);\r\n\t\t\tTParm parm = new TParm();\r\n\t\t\t isDelOrder = false;// 执行删除医嘱\r\n\t\t\t//boolean exeDelOrder = false;// 执行删除医嘱\r\n\t\t\tString delFlg=orderParm.getValue(\"DEL_FLG\");\r\n\t\t\t// 如果出现所有医嘱删除也会出现IS_NEW = false 状态 所有需要在执行方法时先查询当前所有医嘱\r\n\t\t\t// 校验是否发送删除检验检查接口\r\n\t\t\tif(delFlg.equals(\"Y\")){\r\n\t\t\t\tisDelOrder = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\torderParm.setData(\"BUSINESS_TYPE\", \"ODO\");\r\n\t\t\tparm.setData(\"CASE_NO\",reg.caseNo());\r\n\t\t\torderParm.setData(\"REGION_CODE\", Operator.getRegion());\r\n\t\t\torderParm.setData(\"MR_NO\", pat.getMrNo());\r\n\t\t\torderParm.setData(\"NAME\", pat.getName());\r\n\t\t\torderParm.setData(\"IDNO\", pat.getIdNo());\r\n\t\t\torderParm.setData(\"SEX\", pat.getSexCode() != null\r\n\t\t\t\t\t&& pat.getSexCode().equals(\"1\") ? \"男\" : \"女\");\r\n\t\t\t// 送医疗卡,返回医疗卡的回传值\r\n\t\t\torderParm.setData(\"INS_FLG\", \"N\");// 医保卡操作\r\n\t\t\torderParm.setData(\"UN_FLG\", unFlg ? \"Y\" : \"N\");// 医生修改的医嘱超过医疗卡金额执行的操作\r\n\t\t\torderParm.setData(\"unParm\", unParm.getData());// 获得执行修改的医嘱\r\n\t\t\tif (null != orderOldParm.getValue(\"OPBEKTFEE_FLG\")\r\n\t\t\t\t\t&& orderOldParm.getValue(\"OPBEKTFEE_FLG\").equals(\"Y\")) {\r\n\t\t\t\torderParm.setData(\"OPBEKTFEE_FLG\", \"Y\");\r\n\t\t\t}\r\n\t\t\t//直接收费操作如果有修改的收费医嘱 不能执行取消操作\r\n\t\t\tif(null == orderOldParm.getValue(\"OPBEKTFEE_FLG\")\r\n\t\t\t\t\t|| orderOldParm.getValue(\"OPBEKTFEE_FLG\").length()<=0){\r\n\t\t\t\tif(unFlg)\r\n\t\t\t\t\torderParm.setData(\"OPBEKTFEE_FLG\", \"Y\");\r\n\t\t\t}\r\n\t\t\tif (odoMainControl.resultData.getCount(\"CASE_NO\")>0) {//====pangben 2014-1-20 建行卡校验\r\n\t\t\t\todoMainControl.messageBox(\"P0001\");\r\n//\t\t\t\tparm.setData(\"OP_TYPE\", 5);\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}else{\r\n\t\t\t\todoMainControl.ektReadParm = EKTIO.getInstance().TXreadEKT();\r\n\t\t\t\tif (null == odoMainControl.ektReadParm || odoMainControl.ektReadParm.getErrCode() < 0\r\n\t\t\t\t\t\t|| null == odoMainControl.ektReadParm.getValue(\"MR_NO\")) {\r\n\t\t\t\t\todoMainControl.messageBox(\"医疗卡读卡有误。\");\r\n\t\t\t\t\todoMainControl.setValue(\"LBL_EKT_MESSAGE\", \"未读卡\");//====pangben 2013-5-3添加读卡\r\n\t\t\t\t\todoMainControl.ekt_lable.setForeground(red);//======yanjing 2013-06-14设置读卡颜色\r\n\t\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\t\treturn ektParam;\r\n\t\t\t\t}else{\r\n\t\t\t\t\todoMainControl.setValue(\"LBL_EKT_MESSAGE\", \"已读卡\");//====pangben 2013-5-3添加读卡\r\n\t\t\t\t\todoMainControl.ekt_lable.setForeground(green);//======yanjing 2013-06-14设置读卡颜色\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (!odoMainControl.ektReadParm.getValue(\"MR_NO\").equals(odoMainControl.getValue(\"MR_NO\"))) {\r\n\t\t\t\todoMainControl.messageBox(\"病患信息不符,此医疗卡病患名称为:\"\r\n\t\t\t\t\t\t+ odoMainControl.ektReadParm.getValue(\"PAT_NAME\"));\r\n\t\t\t\todoMainControl.ektReadParm = null;\r\n\t\t\t\tektParam.setOpType(\"5\");\r\n\t\t\t\treturn ektParam;\r\n\t\t\t}\r\n\t\t\tint type=0;\r\n\t\t\t//parm.setData(\"BILL_FLG\", \"Y\");\r\n\t\t\torderParm.setData(\"ektParm\", odoMainControl.ektReadParm.getData()); // 医疗卡数据\r\n\t\t\t\r\n\t\t\t\tboolean isNull = true;\r\n\t\t\t\tOpdOrder opdOrder = odo.getOpdOrder();\r\n\t\t\t\tString lastFilter = opdOrder.getFilter();\r\n\t\t\t\topdOrder.setFilter(\"\");\r\n\t\t\t\topdOrder.filter();\r\n\t\t\t\tfor (int i = 0; i < opdOrder.rowCount(); i++) {\r\n\t\t\t\t\tif(opdOrder.getItemString(i, \"ORDER_CODE\").length() > 0){\r\n\t\t\t\t\t\tisNull = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\topdOrder.setFilter(lastFilter);\r\n\t\t\t\topdOrder.filter();\r\n\t\t\t\r\n\t\t\tektParam.setNull(isNull);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t} else {\r\n\t\t\todoMainControl.messageBox_(\"医疗卡接口未开启\");\r\n\t\t\treturn null;\r\n\t\t\t\r\n\r\n\t\t}\r\n\t\r\n\t\t\r\n\t\treturn ektParam;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void ordina(int[] valori) {\n\t\t\n\t}", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "@Override\r\n\tpublic void updateTipoTramite(TipoTramite tipoTramite) {\n\t\t\r\n\t}", "public interface SistemaArqOperations \r\n{\r\n int list_Arq (String nome, String[] aq, String p);\r\n String[] att_clientes ();\r\n String[] get_Arq (int a);\r\n void set_Arq (String[] aq, int idd);\r\n String get_path (int a);\r\n int qtd_clientes ();\r\n}", "@Override\r\n\tpublic void atacar(int dir) {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public NodoDoble(NodoDoble<E> anterior, E elemento, NodoDoble<E> siguiente){//a ver si no te da problema el nodo por no estar especigicando su tipo... puesto que esta clase es genérica y aquí estas creando uno sin saber, asi que creo que debería de especificarselo\n contenido = elemento;\n nodoSiguiente = siguiente;\n nodoAnterior = anterior;\n }", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public interface Ordinal {\r\n\t\r\n\tpublic Integer getOrdinal();\r\n\tpublic void setOrdinal(Integer ordinal);\r\n\t\r\n\tpublic Integer getId();\r\n\t\r\n\r\n\t/**\r\n\t * Compares two objects by their ordinal value, smaller values are first in order.\r\n\t * If the ordinal value is equal and objects are of different classes,\r\n\t * compares by lexicographic order of simple class name.\r\n\t * @param <T> a class that implements Ordinal interface.\r\n\t * @return comparator with a method for comparing by ordinal value. \r\n\t */\r\n\tpublic static <T extends Ordinal> Comparator<T> ordinalComparator() {\r\n\t\treturn new Comparator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(T o1, T o2) {\r\n\t\t\t\tint result = o1.getOrdinal()-o2.getOrdinal();\r\n\t\t\t\tif(result == 0) {\r\n\t\t\t\t\tresult = o1.getClass().getSimpleName().compareTo(o2.getClass().getSimpleName());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn result;\r\n\t\t\t}};\r\n\t\t\r\n\t}\r\n\t\r\n\t/**\r\n\t * Helper function for setting default ordinal values, when not set.\r\n\t * If one all the ordinal values are null, will set according to received order.\r\n\t * @param array of objects with ordinal field to set.\r\n\t */\r\n\tpublic static void setOrdinals(Ordinal[] array) {\r\n\t\tif(Arrays.stream(array).allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<array.length; i++) {\r\n\t\t\t\tarray[i].setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Helper function for setting default ordinal values, when not set.\r\n\t * If one all the ordinal values are null, will set according to received order.\r\n\t * @param list of objects with ordinal field to set.\r\n\t */\r\n\tpublic static <E extends Ordinal> void setOrdinals(List<E> list) {\r\n\t\tif(list != null && list.stream().allMatch(o -> o.getOrdinal() == null)) {\r\n\t\t\tfor(int i=0; i<list.size(); i++) {\r\n\t\t\t\tlist.get(i).setOrdinal(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}", "public void metodoInstanciaArbitrariaDeUnTipo2() {\n\t\tString[] lista= {\"cielo\",\"agua\",\"papa\",\"carpintero\",\"taza\",\"ciencia\",\"dedo\",\"mamut\",\"telefono\",\"computadora\",\"maniqui\",\"zapato\"};\n\t\tList<String> palabras=Arrays.asList(lista);\n\t\tpalabras.forEach(String::length);// \n\t\t//forEach recibe un consumidor de solo un parametro, es decir puede ser de la siguiente forma: (palabra)->{}\n\t\t//Pero tambien puede recibir un metodo referencia, en este caso, por ejemplo recibe el metodo length, pero el metodo length se opera sobre una instancia de String.\n\t\t//la firma del metodo length es: public int length() , es decir no recibe parametros, es operado sobre la instanacia del objeto.\n\t\t\n\t\t//Otro caso de referencia arbitraria seria\n\t\tArrays.sort(lista, String::compareToIgnoreCase);\n\t\t//Donde el segundo parametro es un Comparator, en este caso el metodo compareToIgnoreCase es un metodo de instancia, y recibe como parametro otro String para compararse \n\t\t//sobre la instancia del mismo.\n\t\t//definicion del Comparator: int compare(T o1, T o2);\n\t\t//definicion del compareToIgnoreCase: public int compareToIgnoreCase(String str)\n\t\t//La definicion compareToIgnoreCase esta muy cerca de Comparator pero el primero parametro es una instancia y el segundo parametro otra instancia. \n\t}", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "private void executeRicercaAccertamentoPerOrdinativo() {\n \tif (model.getGestioneOrdinativoStep1Model().getAnnoAccertamento() == null || model.getGestioneOrdinativoStep1Model().getNumeroAccertamento() == null) {\n\n \t\tif(!sonoInAggiornamento()){\n \t\t\t\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamento(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamentoOriginale(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(0);\n\n \t\t\tRicercaAccertamentiSubAccertamenti request= new RicercaAccertamentiSubAccertamenti();\n \t\t\trequest.setEnte(sessionHandler.getEnte());\n \t\t\trequest.setRichiedente(sessionHandler.getRichiedente());\n\n\n \t\t\tParametroRicercaAccSubAcc param= new ParametroRicercaAccSubAcc();\n \t\t\tparam.setAnnoEsercizio(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setAnnoAccertamento(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setDisponibilitaAdIncassare(true);\n\n \t\t\t// Capitolo\n \t\t\tif (model.getGestioneOrdinativoStep1Model().getCapitolo() != null) {\n \t\t\t\tparam.setNumeroCapitolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getNumCapitolo());\n \t\t\t\tparam.setNumeroArticolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getArticolo());\n \t\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb()){\n \t\t\t\t\tparam.setNumeroUEB(model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb().intValue());\n \t\t\t\t}\n \t\t\t}\n\n\n \t\t\tparam.setCodiceDebitore(model.getGestioneOrdinativoStep1Model().getSoggetto().getCodCreditore());\n \t\t\tparam.setIsRicercaDaAccertamento(false);\n \t\t\trequest.setParametroRicercaAccSubAcc(param);\n\n\n \t\t\taddNumAndPageSize(request, \"listaAccertamentoOrdinativoId\");\n\n \t\t\tRicercaAccertamentiSubAccertamentiResponse response= movimentoGestionService.ricercaAccertamentiSubAccertamentiPerOrdinativoIncasso(request);\n\n \t\t\tif(response.isFallimento() || !response.getErrori().isEmpty()){\n\n \t\t\t\t//setto gli errori cosi che siano segnalati lato app!\n \t\t\t\taddErrori(response.getErrori());\n\n \t\t\t}else{\n\n \t\t\t\tif (response.getListaAccertamenti() != null && response.getListaAccertamenti().size() > 0) {\n \t\t\t\t\tfor (Accertamento currentAccetamento : response.getListaAccertamenti()) {\n \t\t\t\t\t\taddAccertamentiESubAccertamentiInUnicaLista(currentAccetamento);\n \t\t\t\t\t}\n\n \t\t\t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(response.getNumRisultati());\n \t\t\t\t\t\n \t\t\t\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()==null || model.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==0){\n \t\t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t}\n \t\t\t}\n\n \t\t}\n \t}\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public interface IHorarioService extends ICRUD<Horario, Integer> {\n\n}", "private ClassInstance checkDerivedOrdInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass,\r\n boolean useCompactEnumDerivedInstances, SourceRange position) throws UnableToResolveForeignEntityException { \r\n \r\n if (!typeClass.getName().equals(CAL_Prelude.TypeClasses.Ord)) {\r\n throw new IllegalStateException();\r\n } \r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo();\r\n if (foreignTypeInfo != null) {\r\n \r\n // Foreign types\r\n \r\n // CAL has primitive ops for the Ord methods for each primitive Java type\r\n Class<?> foreignType = foreignTypeInfo.getForeignType(); \r\n if(foreignType.isPrimitive()) {\r\n \r\n if(foreignType == boolean.class) {\r\n \r\n // The Boolean Ord instance is derived, so its instance functions will have \r\n // standard internal names rather than standard primitive names\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] { \r\n ClassInstance.makeInternalInstanceMethodName(\"lessThan\", CAL_Prelude.TypeConstructors.Boolean),\r\n ClassInstance.makeInternalInstanceMethodName(\"lessThanEquals\", CAL_Prelude.TypeConstructors.Boolean),\r\n ClassInstance.makeInternalInstanceMethodName(\"greaterThanEquals\", CAL_Prelude.TypeConstructors.Boolean),\r\n ClassInstance.makeInternalInstanceMethodName(\"greaterThan\", CAL_Prelude.TypeConstructors.Boolean),\r\n ClassInstance.makeInternalInstanceMethodName(\"compare\", CAL_Prelude.TypeConstructors.Boolean),\r\n ClassInstance.makeInternalInstanceMethodName(\"max\", CAL_Prelude.TypeConstructors.Boolean),\r\n ClassInstance.makeInternalInstanceMethodName(\"min\", CAL_Prelude.TypeConstructors.Boolean)\r\n },\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n \r\n // The Ord instance functions for the non-boolean primitive types are named in a standard way,\r\n // so we can generate the name of each method based on the name of the type.\r\n String foreignTypeName = foreignType.getName();\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] { \r\n makePrimitiveInstanceMethodName(\"lessThan\", foreignTypeName),\r\n makePrimitiveInstanceMethodName(\"lessThanEquals\", foreignTypeName),\r\n makePrimitiveInstanceMethodName(\"greaterThanEquals\", foreignTypeName),\r\n makePrimitiveInstanceMethodName(\"greaterThan\", foreignTypeName),\r\n makePrimitiveInstanceMethodName(\"compare\", foreignTypeName),\r\n makePrimitiveInstanceMethodName(\"max\", foreignTypeName),\r\n makePrimitiveInstanceMethodName(\"min\", foreignTypeName)\r\n },\r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n // For foreign types that represent non-primitive Java types (reference types),\r\n // we delegate to the methods of the Comparable interface.\r\n } else {\r\n \r\n // Foreign reference types must implement Comparable to have derived Ord instances\r\n if(!Comparable.class.isAssignableFrom(foreignTypeInfo.getForeignType())) {\r\n throw new IllegalStateException(\"Foreign reference types can only derive an Ord instance if they implement Comparable\");\r\n }\r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] { \r\n CAL_Prelude_internal.Functions.lessThanComparable,\r\n CAL_Prelude_internal.Functions.lessThanEqualsComparable,\r\n CAL_Prelude_internal.Functions.greaterThanEqualsComparable, \r\n CAL_Prelude_internal.Functions.greaterThanComparable,\r\n CAL_Prelude_internal.Functions.compareComparable,\r\n CAL_Prelude_internal.Functions.maxComparable,\r\n CAL_Prelude_internal.Functions.minComparable\r\n },\r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // Non-foreign types\r\n \r\n if (useCompactEnumDerivedInstances){\r\n return\r\n new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[]{\r\n CAL_Prelude_internal.Functions.lessThanInt, \r\n CAL_Prelude_internal.Functions.lessThanEqualsInt,\r\n CAL_Prelude_internal.Functions.greaterThanEqualsInt,\r\n CAL_Prelude_internal.Functions.greaterThanInt,\r\n CAL_Prelude_internal.Functions.compareInt,\r\n CAL_Prelude_internal.Functions.maxInt,\r\n CAL_Prelude_internal.Functions.minInt},\r\n InstanceStyle.DERIVING); \r\n \r\n } else { \r\n \r\n TypeExpr booleanType = compiler.getTypeChecker().getTypeConstants().getBooleanType();\r\n TypeExpr lessThanTypeExpr = TypeExpr.makeFunType(instanceType, TypeExpr.makeFunType(instanceType, booleanType));\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeLessThanInstanceFunction(typeCons), lessThanTypeExpr, position);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeLessThanEqualsInstanceFunction(typeCons), lessThanTypeExpr, position);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeGreaterThanEqualsInstanceFunction(typeCons), lessThanTypeExpr, position);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeGreaterThanInstanceFunction(typeCons), lessThanTypeExpr, position);\r\n \r\n //this uses the fact that Prelude.Ordering is a public class, and all modules must import the Prelude.\r\n final TypeConstructor orderingTypeCons =\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_Prelude.TypeConstructors.Ordering);\r\n \r\n TypeExpr compareTypeExpr = TypeExpr.makeFunType(instanceType, TypeExpr.makeFunType(instanceType, TypeExpr.makeNonParametricType(orderingTypeCons)));\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeCompareInstanceFunction(typeCons), compareTypeExpr, position);\r\n \r\n TypeExpr maxTypeExpr = TypeExpr.makeFunType(instanceType, TypeExpr.makeFunType(instanceType, instanceType));\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeMaxInstanceFunction(typeCons), maxTypeExpr, position);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeMinInstanceFunction(typeCons), maxTypeExpr, position);\r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n } \r\n \r\n }", "public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }", "public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }", "@Override\n\tpublic int compareTo(TaxaConhecimentoDto o) {\n\t\treturn valor.compareTo(o.getValor());\n\t}", "public interface BaseService<Kiruvchi, Chiquvchi, ID> {\n\n //Create Entity\n ApiResponse addEntity(Kiruvchi kiruvchi);\n\n //Get Page<Entity>\n Page<Chiquvchi> getEntiyPageBySort(Optional<Integer> page, Optional<Integer> size, Optional<String> sortBy);\n\n //Get by id Optional<Entity> Sababi Http Status kodini tog'ri jo'natish uchun\n Optional<Chiquvchi> getEntityById(ID id);\n\n //Update Entity by id\n ApiResponse editState(ID id, Kiruvchi kiruvchi);\n\n //Delete Entity by id\n ApiResponse deleteEntityById(Integer id);\n}", "Position_changerOrdonnee createPosition_changerOrdonnee();", "protected void generar() {\n generar(1, 1);\n }", "private void ordenarItems(Criterio criOrd) {\r\n // Ordenación > Desactivación Filtro\r\n desactivarFiltro(false);\r\n\r\n // Registra Criterio Ordenación\r\n this.criOrd = criOrd;\r\n\r\n // Ordenación Colección\r\n Collections.sort(CARRITO, new ComparadorItem(criOrd));\r\n\r\n // Mensaje\r\n System.out.printf(\"Items ordenados por %s%n\", criOrd.getNombre());\r\n\r\n // Pausa\r\n UtilesEntrada.hacerPausa();\r\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public interface IStrategy<T extends Object> {\n\n static final String BITCOIN_BASE64 = \"1NwaKCqfb532vVRFmBAixPbGQJhTfwpbzk\";\n static final String BITCOIN = \"BITCOIN\";\n SimpleDateFormat SDF_DDMMYYYY_HHMMSS = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n SimpleDateFormat SDF_DDMMYYYY = new SimpleDateFormat(\"yyyy/MM/dd\");\n\n\n LinkedList<T> getObjects(String dados);\n}", "@Override\n public boolean insertar(T dato){\n //Si el arbol se encuentra vacio\n if (esVacio()) {\n super.setRaiz(new NodoBin<T>(dato));\n return (true);\n } \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n // Si el dato es menor a la raiz\n if (cmp < 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setIzq(super.getRaiz().getIzq());\n n.setDer(super.getRaiz());\n super.getRaiz().setIzq(null);\n super.setRaiz(n);\n return (true);\n }\n // Si el dato es mayor a la raiz\n else if (cmp > 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setDer(super.getRaiz().getDer());\n n.setIzq(super.getRaiz());\n super.getRaiz().setDer(null);\n super.setRaiz(n);\n return (true);\n }\n return (false);\n }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "private void rearrangeGeneric(){\n for (int i = rear; i > 0; i++) {\n if (arr1[i].compareTo(arr1[i-1]) == 1){\n /*\n In this if condition the crr is a calling object and the parameter passing into the\n compareTo method is argument methods\n\n --> compareTo() will return 1, if calling object is bigger then argument object\n --> compareTo() will return 0, if both objects are same\n --> compareTo() will return -1, if calling object is smaller then argument object\n */\n\n //Now perform swapping\n E temp = arr1[i];\n arr1[i] = arr1[i-1];\n arr1[i-1] = temp;\n }\n }\n }", "private Arbol <T> borrarOrden(T dato)\n\t{\n\t T datoaux;\n\t Arbol <T> retorno=this;\n\t Arbol <T> aborrar, candidato, antecesor;\n\n\t if (!vacio()) {\n\t if (dato.compareTo(this.datoRaiz)<0){\t\t// dato<datoRaiz\n\t\t \tif (hIzq != null) \n\t \t\thIzq = hIzq.borrarOrden(dato);\n\t }\n\t\t\telse\n\t if (dato.compareTo(this.datoRaiz)>0) {\t// dato>datoRaiz\n\t\t\t \tif (hDer != null) \n\t \t hDer = hDer.borrarOrden(dato);\n\t }\n\t\t\t\telse {\n\t aborrar=this;\n\t if ((hDer==null)&&(hIzq==null)) { /*si es hoja*/\n\t retorno=null;\n\t }\n\t else {\n\t if (hDer==null) { /*Solo hijo izquierdo*/\n\t aborrar=hIzq;\n\t datoaux=this.datoRaiz;\n\t datoRaiz=hIzq.getRaiz();\n\t hIzq.datoRaiz = datoaux;\n\t hIzq=hIzq.getHijoIzq();\n\t hDer=aborrar.getHijoDer();\n\n\t retorno=this;\n\t }\n\t else\n\t if (hIzq==null) { /*Solo hijo derecho*/\n\t aborrar=hDer;\n\t datoaux=datoRaiz;\n\t datoRaiz=hDer.getRaiz();\n\t hDer.datoRaiz = datoaux;\n\t hDer=hDer.getHijoDer();\n\t hIzq=aborrar.getHijoIzq();\n\n\t retorno=this;\n\t }\n\t else { /* Tiene dos hijos */\n\t candidato = this.getHijoIzq();\n\t antecesor = this;\n\t while (candidato.getHijoDer()!=null) {\n\t antecesor = candidato;\n\t candidato = candidato.getHijoDer();\n\t }\n\n\t /*Intercambio de datos de candidato*/\n\t datoaux = datoRaiz;\n\t datoRaiz = candidato.getRaiz();\n\t candidato.datoRaiz=datoaux;\n\t aborrar = candidato;\n\t if (antecesor==this)\n\t hIzq=candidato.getHijoIzq();\n\t else\n\t antecesor.hDer=candidato.getHijoIzq();\n\t } //Eliminar solo ese nodo, no todo el subarbol\n\t aborrar.hIzq=null;\n\t aborrar.hDer=null;\n\t }\n\t }\n\t }\n\t return retorno;\n\t}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public interface OrdenSalidaEAO extends GenericEAO<OrdenSalida, Integer> {\n\n /**\n * Obtener numero de salida consecutivo\n * @return long\n * @throws GenericPersistenceEAOException, Exception\n */\n public long obtenerNoSalida() throws GenericPersistenceEAOException;\n\n /**\n * Obtener ordenes de salida por estados\n * @param estados, List\n * @return List\n * @throws GenericPersistenceEAOException, Exception\n */\n\n public List<OrdenSalida> findByEstados(List<Integer> estados, Date fechaDesde, Date fechaHasta, Integer idAlmacen) throws GenericPersistenceEAOException;\n\n /**\n * Buscar ordenes de salida por rango de fechas\n * @param fechaInicio, Date\n * @param fechaFin, Date\n * @return List\n * @throws GenericPersistenceEAOException, Exception\n */\n public List<OrdenSalida> findByFechas(Date fechaInicio, Date fechaFin) throws GenericPersistenceEAOException;\n}", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "@Override\r\n\tpublic void comparo(Persona p1, Persona p2) {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Test\n\tpublic void testComenzar() {\n\t\tl.agregar(0, 0);\n\t\tl.comenzar();\n\t\tassertEquals((int)(new Integer(0)), l.elemento());\n\t\t\n\t\t//Probando con dos elementos\n\t\tl.agregar(1, 1);\n\t\tl.comenzar();\n\t\tassertEquals((int)(new Integer(0)), l.elemento());\n\t\t\n\t\t//Probando de agregar un elemento al principio\n\t\tl.agregar(2, 0);\n\t\tl.comenzar();\n\t\tassertEquals((int)(new Integer(2)), l.elemento());\n\t\t\n\t\t\n\t}", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "@Override\n\tpublic void aumenta(int i) {\n\t\t\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public void ergebnis(TrefferTyp ergebnisTyp, Koordinate position) {}", "@Override\r\n\tpublic void inserOrder(Good_ordVO good_ordVO, List<PointgoodsVO> list) {\n\t\t\r\n\t}", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "private ExtendedOperations(){}", "public interface Dao <Entidade extends EntityBase, Chave extends Serializable> {\n\n /**\n * Obter um elemento atraves da chave primaria\n * @param chave\n * @return Entidade\n */\n Entidade obter(Chave chave);\n\n /**\n * Incluir um novo elemento na tabela\n * @param entidade\n */\n void incluir(Entidade entidade);\n\n /**\n * Alterar um elemento na tabela\n * @param entidade\n */\n void alterar(Entidade entidade);\n\n /**\n * Excluir um elemento na tabela\n * @param chave\n */\n void excluir(Chave chave);\n\n /**\n * Listar todos os elementos da tabela\n * @return List<Entidade>\n */\n List<Entidade> listarTodos();\n}", "@Override\r\n\tpublic void solicitarTipoTransaccion() {\n\t\tSystem.out.println(\"Escoger tipo de transaccion\");\r\n\t\t\r\n\t}", "@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }", "@Override\n\tprotected String getIdTipoOperacion() {\n\t\treturn null;\n\t}", "public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucursal();\r\n\t\r\n\tpublic Long getDocumento();\r\n\t\r\n\tpublic Date getFecha();\r\n\t\r\n\tpublic double getKilosCalculados();\r\n\t\r\n\tpublic double getCantidad();\r\n\t\r\n\tpublic double getFactor();\r\n\t\r\n\tpublic String getTipoDocto();\r\n\t\r\n\tpublic BigDecimal getCostoFlete();\t\r\n\r\n\tpublic void setCostoFlete(BigDecimal costoFlete);\r\n\t\r\n\tpublic BigDecimal getImporteDelFlete();\r\n\r\n\tpublic AnalisisDeFlete getAnalisisFlete();\r\n\r\n\tpublic void setAnalisisFlete(AnalisisDeFlete analisisFlete);\r\n\t\r\n\tpublic void actualizarCosto();\r\n\r\n}", "@Override\n\tvoid postarComentario() {\n\n\t}", "public OrdVORowImpl() {\r\n }", "@Override\n\tpublic void anular() {\n\n\t}", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "private void setTipo() {\n if (getNumElementos() <= 0) {\n restartCelda();\n } else if (getNumElementos() > 1) { // Queda más de un elemento\n this.setTipoCelda(Juego.TVARIOS);\n } else { // Si queda solo un tipo de elemento, miramos si es un CR, edificio o un personaje\n if (this.contRecurso != null) {\n this.setTipoCelda(this.contRecurso.getTipo());\n } else if (this.edificio != null) {\n this.setTipoCelda(this.edificio.getTipo());\n } else if (!this.getPersonajes().isEmpty()) {\n this.setTipoCelda(this.getPersonajes().get(0).getTipo());\n }\n }\n }", "public interface DossierOperations\n{\n\t/* constants */\n\t/* operations */\n\tint id();\n\tjava.lang.String nom();\n\tjava.lang.String noPermis();\n\tjava.lang.String noPlaque();\n\tjava.lang.String prenom();\n\tint niveau();\n\tint[] getListeInfraction();\n\tint[] getListeReaction();\n\tvoid ajouterReactionAListe(int idReaction);\n\tvoid ajouterInfractionAListe(int idInfraction);\n\tjava.lang.String _toString();\n}", "protected void sequence_TypeGeneric(ISerializationContext context, TypeGeneric semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public OrdVORowImpl() {\n }", "public interface trans_ArqOperations \r\n{\r\n byte[] envia_Arq (String fName);\r\n void set_clienteSA (String parth, int id);\r\n}", "public interface EntidadBase extends EntidadOrdenada {\n enum tipo {\n seccion, informacion\n }\n\n SeccionBase getSeccionBase();\n\n void setSeccionBase(SeccionBase seccionBase);\n\n tipo getTipoEntidad();\n}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public Generador(Generic generic) {\r\n this.generic = generic;\r\n this.Num_Atributes = this.generic.getClass().getDeclaredFields().length;\r\n this.SuperDeclaredFields = this.generic.getClass().getSuperclass().getDeclaredFields();\r\n this.DeclaredFields = this.generic.getClass().getDeclaredFields();\r\n }", "private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\t\t\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}", "@Override\n\tprotected void createOtherOrbits()\n\t{\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "public ValorPorUnidadLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess = new ValorPorUnidadDataAccess();\r\n\t\t\t\r\n\t\t\tthis.valorporunidads= new ArrayList<ValorPorUnidad>();\r\n\t\t\tthis.valorporunidad= new ValorPorUnidad();\r\n\t\t\t\r\n\t\t\tthis.valorporunidadObject=new Object();\r\n\t\t\tthis.valorporunidadsObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.valorporunidadDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "@Override\r\n\tpublic <T> IDataEnumeration<T> enumeration(String sql, String specific, String sort, int batch, List<IJoin> joins, List<IRefiner> refiners, boolean raw) throws Exception{\r\n\t\treturn new DataEnumeration<T>(this,sql,specific,sort, batch, joins, refiners, raw);\r\n\t}", "public abstract void zze(Object obj, T t);", "@Override\n\tpublic int compareTo(Object obj) {\n\t\tif (!(obj instanceof MpGestionEnvio))\n\t\t\tthrow new ClassCastException(\"Valor invalido\");\n\t\tMpGestionEnvio tmp = (MpGestionEnvio) obj;\n\t\treturn (this.id.compareTo(tmp.id));\n\t}", "@Override\n\tpublic void tipoComunicacao() {\n\t\tSystem.out.println(super.getNome() + \" se comunica miando.\");\n\t}", "@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}", "public int compareTo(Object o)\n\t{\n\t\tif(!(o instanceof TransactionSerialEntity))\n\t\t\treturn 1; //Khong bang\n\n\t\tTransactionSerialEntity other = (TransactionSerialEntity)o;\n\n\t\tif(this.getVector() == null && other.getVector() == null)\n\t\t\treturn 0; //Neu ca 2 doi tuong la rong thi bang\n\t\tif(this.getVector() == null || other.getVector() == null)\n\t\t\treturn 1; //Neu 1 trong 2 cai rong thi khong bang\n\t\tif(this.getVector().size() != other.getVector().size())\n\t\t\treturn 1; //Neu size khac nhau thi khong bang\n\t\tfor(int i = 0; i < this.getVector().size(); i++)\n\t\t{\n\t\t\tObject objA = this.getVector().get(i);\n\t\t\tObject objB = other.getVector().get(i);\n\n\t\t\tif (objA == null && objB == null)\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tif (objA == null || objB == null)\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif(!this.getVector().elementAt(i).equals(other.getVector().elementAt(i)))\n\t\t\t\treturn 1; //Moi gia tri trong vector khac nhau thi khong bang\n\t\t}\n\t\treturn 0; //Bang\n\t}", "@Override\n\tpublic int compareTo(OrderManagement arg0) {\n\t\tint id = ((OrderManagement) arg0).getId();\n\t\treturn this.id - id;\n\t}", "@VTID(10)\r\n int getOrder();", "@Override\r\n \tpublic int compareTo(BaseAmount<Q> o) {\n \t\treturn 0;\r\n \t}", "@Override\r\n\tpublic OrderVO getOrderByID(Integer ono) throws Exception {\n\t\treturn sqlSession.selectOne(namespaceOrder+\".getOneOrderByOrderID\",ono);\r\n\t}", "public interface IArticuloLeyMercadoGestor {\n\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado CODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @param userId\n\t * @throws SICException\n\t */\n\tvoid codificarArticuloLeyMercado(Integer codigoCompania, String codigoArticulo, String userId) throws SICException;\n\t\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado DESCODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @param userId\n\t * @param codigoCausal\n\t * @param valorCausal\n\t * @throws SICException\n\t */\n\tvoid descodificarArticuloLeyMercado(Integer codigoCompania, String codigoArticulo, String userId, Integer codigoCausal, String valorCausal) throws SICException;\n\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado REACTIVADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @param userId\n\t * @throws SICException\n\t */\n\tvoid reactivarArticuloLeyMercado(Integer codigoCompania, String codigoArticulo, String userId) throws SICException;\n\t\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado CODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param articuloLeyMercadoDTO entidad que representa la informacion de Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado del articulo\n\t * @throws SICException\n\t */\n\tvoid codificarArticuloLeyMercado(ArticuloLeyMercadoDTO articuloLeyMercadoDTO) throws SICException;\t\n\n\t/**\n\t * M\\u00E9todo que permite registrar un art\\u00EDculo con estado DESCODIFICADO seg\\u00FAn la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param articuloLeyMercadoDTO entidad que representa la informacion de Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado del articulo\n\t * @throws SICException\n\t */\n\tvoid descodificarArticuloLeyMercado(ArticuloLeyMercadoDTO articuloLeyMercadoDTO) throws SICException;\n\t\n\t/**\n\t * Metodo que permite obtener la informacion actual de Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado del articulo\n\t * @author mgranda\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @return\n\t * @throws SICException\n\t */\n\tArticuloLeyMercadoDTO obtenerArticuloLeyMercado(Integer codigoCompania, String codigoArticulo) throws SICException;\n\n\t/**\n\t * Metodo que permite obtener la informacion historica de estados del articulo segun la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @author mgranda\n\t * @param first\n\t * @param pageSize\n\t * @param sortField\n\t * @param filters\n\t * @return\n\t * @throws SICException\n\t */\n\tList<ArticuloBitacoraLeyMercadoDTO> obtenerHistoricoLeyMercado(int first, int pageSize, String sortField, Map<String, String> filters) throws SICException;\n\t\n\t/**\n\t * Metodo que permite obtener el total de la informacion historica de estados del articulo segun la Ley Org\\u00E1nica de Regulaci\\u00F3n y Control del Poder de Mercado\n\t * @param codigoCompania\n\t * @param codigoArticulo\n\t * @return\n\t * @throws SICException\n\t */\n\tLong obtenerTotalHistoricoLeyMercado(Integer codigoCompania, String codigoArticulo) throws SICException;\n}", "public interface Tradable {\n\n /**\n * Get method returns the product symbol (IBM, GOOG).\n *\n * @return product symbol\n */\n String getProduct();\n\n /**\n * Get method returns the price of the tradable.\n *\n * @return price object\n * @throws Exception\n */\n Price getPrice() throws Exception;\n\n /**\n * Get method returns the original volume (quantity) of the tradable.\n *\n * @return volume of tradable\n */\n int getOriginalVolume();\n\n /**\n * Get method returns the remaining volume of the tradable.\n *\n * @return remaining volume\n */\n int getRemainingVolume();\n\n /**\n * Get method returns the canceled volume of the tradable.\n *\n * @return canceled volume\n */\n int getCancelledVolume();\n\n /**\n * Set method sets the tradable canceled quantity to the value passed in.\n *\n * @param newCancelledVolume\n * @throws Exception\n */\n void setCancelledVolume(int newCancelledVolume) throws Exception;\n\n /**\n * Set method sets the tradable remaining quantity to the value passed in.\n *\n * @param newRemainingVolume\n * @throws Exception\n */\n void setRemainingVolume(int newRemainingVolume) throws Exception;\n\n /**\n * Get method returns the user id associated with the tradable.\n *\n * @return user id\n */\n String getUser();\n\n /**\n * Get method returns the \"side\" (BUY/SELL) of the tradable.\n *\n * @return side of book\n */\n BookSide getSide();\n\n /**\n * Is quote method returns true if the tradable is part of a quote, returns\n * false if not.\n *\n * @return boolean if quote\n */\n boolean isQuote();\n\n /**\n * Get method returns the tradable \"id\" or system id.\n *\n * @return id of tradable\n */\n String getId();\n}", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "@Override\r\n\tpublic <T> IDataEnumeration<T> enumeration(final Class<T> c, String specific, String text, String sort, int batch, List<IJoin> joins, List<IRefiner> refiners) throws Exception{\r\n\t\treturn new DataEnumeration<T>(this,c,specific,text, sort, batch, \"\", joins,refiners,false);\r\n\t}" ]
[ "0.57157385", "0.5595794", "0.55601746", "0.54665804", "0.5465062", "0.5465062", "0.5464256", "0.5396355", "0.53584415", "0.52947325", "0.5271805", "0.52446616", "0.52362645", "0.5230509", "0.51632124", "0.5144657", "0.5112555", "0.5083241", "0.50760823", "0.50728595", "0.5063151", "0.504959", "0.50219625", "0.5017551", "0.5007446", "0.50017685", "0.5000403", "0.4985234", "0.49843848", "0.49757418", "0.49733824", "0.49731904", "0.4972736", "0.49720562", "0.49720562", "0.49635968", "0.49523526", "0.49519", "0.49463663", "0.49341524", "0.49292025", "0.49273238", "0.49190828", "0.49127954", "0.49125677", "0.49062002", "0.4905475", "0.4905273", "0.4903883", "0.49031094", "0.49021876", "0.4900099", "0.4891533", "0.48820052", "0.4879437", "0.48719034", "0.48701108", "0.48578304", "0.4857058", "0.4849893", "0.48440772", "0.4842729", "0.4842539", "0.48373944", "0.48340964", "0.4820069", "0.48177353", "0.4815662", "0.48156098", "0.48063746", "0.4804762", "0.47968012", "0.47946778", "0.4794296", "0.47896567", "0.4788595", "0.47884893", "0.47882304", "0.4786506", "0.4780399", "0.4779718", "0.47779477", "0.47777486", "0.47776836", "0.4768495", "0.47631446", "0.47627386", "0.476265", "0.4756995", "0.475169", "0.4747957", "0.47441515", "0.47403127", "0.4735825", "0.47354832", "0.47345215", "0.47318655", "0.47259048", "0.47255573", "0.4724957" ]
0.4893779
52
Ordina una lista di elementi in accordo all'ordinamento totale naturale definito nella classe degli elementi.
public SortingAlgorithmResult<E> sort(List<E> l);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }", "public void liste()\n {\n Collections.sort(listOrder, new Comparator<Order>() {\n @Override\n public int compare(Order o1, Order o2) {\n return o1.getStart() - o2.getStart(); // use your logic, Luke\n }\n });\n System.out.println(\"LISTE DES ORDRES\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"ID\", \"DEBUT\", \"DUREE\", \"PRIX\\n\");\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n for(int i = 0; i< listOrder.size(); i++) {\n Order order = listOrder.get(i);\n afficherOrdre(order);\n }\n System.out.format(\"%8s %8s %5s %13s\", \"--------\", \"-------\", \"-----\", \"----------\\n\");\n }", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public ExperimentList orderExperiments(){ // tum experimentlari sirala\r\n Node last = head;\r\n Node last2 = head;\r\n ExperimentList ordered = new ExperimentList();\r\n Node min = new Node(new Experiment());\r\n min.data.accuracy = 9999999;\r\n float min2 = -9999999;\r\n int count = -1;\r\n while(last != null){ // genel dongu\r\n int count_in = 0;\r\n while(last2 != null){ // her eleman icin dongu\r\n if( min.data.accuracy > last2.data.accuracy && last2.data.accuracy >= min2){\r\n if( last2.data.accuracy != min2 || count_in >= count){\r\n min = last2; // min se ve kullanilmamissa ekle\r\n count_in++;\r\n }\r\n }\r\n last2 = last2.next;\r\n }\r\n count = count_in;\r\n Experiment temp = new Experiment(min.data);\r\n ordered.addExpList(temp);\r\n min2 = min.data.accuracy;\r\n min = new Node(new Experiment());\r\n min.data.accuracy = 9999999;\r\n last = last.next;\r\n last2 = head;\r\n }\r\n return ordered;\r\n }", "public void popularDoctores(){\n doctores = new ArrayList<>();\r\n doctores.add(new Doctor(22, \"Victor\", \"Gonzalez\", \"Romero\"));\r\n doctores.add(new Doctor(38, \"Jose\", \"Ramirez\", \"Bagarin\"));\r\n doctores.add(new Doctor(15, \"Patricio\", \"Arellano\", \"Vega\"));\r\n }", "private Lista<T> organizar( Lista<T> lista )\r\n {\r\n for( int i = 0; i < lista.darLongitud( ); i++ )\r\n {\r\n for( int j = 0; j < lista.darLongitud( ) - i - 1; j++ )\r\n {\r\n\r\n // Si elemento en la posición j es mayor al elemento en la posición j+1\r\n // se intercambian\r\n if( lista.darElemento( j ).compareTo( lista.darElemento( j + 1 ) ) > 0 )\r\n {\r\n T temp = lista.darElemento( j );\r\n lista.asignar( lista.darElemento( j + 1 ), j );\r\n lista.asignar( temp, j + 1 );\r\n }\r\n }\r\n }\r\n return lista;\r\n }", "long getNombreElements();", "public List<String>top10Utilizadores() {\n Map<String,List<String>> utilizadorEncomendas = new HashMap<String,List<String>>();\n \n for(Encomenda e : this.encomendas.values()) {\n if(!utilizadorEncomendas.containsKey(e.getCodigoUtilizador())) {\n utilizadorEncomendas.put(e.getCodigoUtilizador(), new ArrayList<>());\n }\n utilizadorEncomendas.get(e.getCodigoUtilizador()).add(e.getCodigoEncomenda());\n }\n \n // a partir do primeiro map criar um segundo com codigo de utilizador e numero de encomendas\n // a razao de ser um double é porque o mesmo comparator é também utilizado no metodo List<String>top10Transportadores()\n Map<String,Double> utilizadoresNumeroEncs = new HashMap<>();\n \n Iterator<Map.Entry<String, List<String>>> itr = utilizadorEncomendas.entrySet().iterator(); \n \n while(itr.hasNext()) { \n Map.Entry<String, List<String>> entry = itr.next(); \n utilizadoresNumeroEncs.put(entry.getKey(), Double.valueOf(entry.getValue().size()));\n }\n \n MapStringDoubleComparator comparator = new MapStringDoubleComparator(utilizadoresNumeroEncs);\n \n // criar map ordenado (descending)\n TreeMap<String, Double> utilizadorNumeroEncsOrdenado = new TreeMap<String, Double>(comparator);\n \n utilizadorNumeroEncsOrdenado.putAll(utilizadoresNumeroEncs);\n \n // retornar a lista de codigos de utilizadores pretendida\n return utilizadorNumeroEncsOrdenado.keySet()\n .stream()\n .limit(10)\n .collect(Collectors.toList()); \n }", "public ListaDE() {\n\n\t\tprimero = ultimo = null;\n\t\ttotal = 0;\n\n\t}", "public List<WebElement> getTestmonialsCount() {\n\t\treturn driver.findElements(By.xpath(\"//td[@class='sorting_1']\"));\n\t\t//return driver.findElements((By.xpath(\"//tbody//tr\"));\n\t}", "private void ordenaLista(List<AgrupamentoTipoBean> valoresMap) {\n\t\tCollections.sort(valoresMap, new Comparator<AgrupamentoTipoBean>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic int compare(AgrupamentoTipoBean o1, AgrupamentoTipoBean o2) {\n\t\t\t\treturn o1.getQuantidade() > o2.getQuantidade() ? -1 : +1;\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }", "public Listado() {\n initComponents();\n\n for (int i=0;i<tbl_listado.getRowCount();i++)\n {\n Float precio = (Float)tbl_listado.getModel().getValueAt(i, 1);\n double iva = precio*0.12;\n tbl_listado.getModel().setValueAt(iva,i,4);\n }\n }", "public static void Agrupar() {\n\t\tArrayList<ArrayList<Double>> distancias_centroids = new ArrayList<ArrayList<Double>>();\n\t\tfor (int i=0;i<centroids.size();i++) {\n\t\t\tArrayList<Double> distancias= new ArrayList<Double>();\n\t\t\tfor (int j=0;j<petalas.size();j++) {\n\t\t\t\tdouble x1= centroids.get(i).petal_length;\n\t\t\t\tdouble x2= petalas.get(j).petal_length;\n\t\t\t\tdouble y1= centroids.get(i).petal_width;\n\t\t\t\tdouble y2= petalas.get(j).petal_width;\n\t\t\t\tdouble cateto1= x1-x2;\n\t\t\t\tdouble cateto2= y1-y2;\n\t\t\t\tdouble hipotenusa = Math.sqrt(cateto1*cateto1+cateto2*cateto2);\n\t\t\t\tdistancias.add(hipotenusa);\n\t\t\t\t/*\n\t\t\t\tSystem.out.println(\"cateto1: \"+cateto1);\n\t\t\t\tSystem.out.println(\"cateto2: \"+cateto2);\n\t\t\t\tSystem.out.println(\"hipotenusa: \"+hipotenusa);\n\t\t\t\t*/\n\t\t\t\t\t\t\t}\n\t\t\t\n\t\t\tdistancias_centroids.add(distancias);\t\t\t\n\t\t}\n\t\t/*\n\t\tSystem.out.println(\"Distancias Centroids:\");\n\t\tfor (int i=0;i<distancias_centroids.size();i++) {\n\t\t\tSystem.out.println(\"Centroid \"+i);\n\t\t\tfor (int j=0;j<distancias_centroids.get(i).size();j++) {\n\t\t\t\tSystem.out.println(distancias_centroids.get(i).get(j));\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t//Para qual centroid pertece cada ponto\n\t\tArrayList<ArrayList<Petala>> pontos_de_cada_centroid = new ArrayList<ArrayList<Petala>>();\n\t\tfor (int i=0;i<centroids.size();i++) {\n\t\t\tArrayList<Petala> p = new ArrayList<Petala>();\n\t\t\tpontos_de_cada_centroid.add(p); \n\t\t}\n\t\tfor (int i=0;i<petalas.size();i++) {\n\t\t\tdouble menor =100;\n\t\t\tint centroid_menor=0;\n\t\t\tfor (int j=0;j<centroids.size();j++) {\n\t\t\t\tif (distancias_centroids.get(j).get(i)<menor) {\n\t\t\t\t\tmenor = distancias_centroids.get(j).get(i);\n\t\t\t\t\tcentroid_menor=j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpontos_de_cada_centroid.get(centroid_menor).add(petalas.get(i));\n\t\t}\n\t\t/*\n\t\tfor (int i=0;i<pontos_de_cada_centroid.size();i++) {\n\t\t\tSystem.out.println(\"Centroid \"+i);\n\t\t\tSystem.out.println(\"Petalas: \");\n\t\t\tSystem.out.println(pontos_de_cada_centroid.get(i));\n\t\t}\n\t\t*/\n\t\t//Novos centroids\n\t\tArrayList<Petala> novos_centroids = new ArrayList<Petala>();\n\t\tfor (int i=0;i<pontos_de_cada_centroid.size();i++) {\n\t\t\tdouble soma_x=0;\n\t\t\tdouble soma_y=0;\n\t\t\tfor (int j=0;j<pontos_de_cada_centroid.get(i).size();j++) {\n\t\t\t\tsoma_x+=pontos_de_cada_centroid.get(i).get(j).petal_length;\n\t\t\t\tsoma_y+=pontos_de_cada_centroid.get(i).get(j).petal_width;\n\t\t\t}\n\t\t\tdouble novo_x=soma_x/pontos_de_cada_centroid.get(i).size();\n\t\t\tdouble novo_y=soma_y/pontos_de_cada_centroid.get(i).size();\n\t\t\tPetala novo_centroid = new Petala(novo_x,novo_y);\n\t\t\tnovos_centroids.add(novo_centroid);\n \t\t}\n\t\t\n\t\t//Gravar Geracao\n\t\tArrayList<Petala> gc= new ArrayList<Petala>();\n\t\tfor (int i=0;i<centroids.size();i++) {\n\t\t\tgc.add(centroids.get(i));\n\t\t}\n\t\tGeracao geracao = new Geracao(gc,pontos_de_cada_centroid);\n\t\tgeracoes.add(geracao);\n\t\t//Condicao de Parada\n\t\tboolean terminou = true;\n\t\tfor (int i=0; i<centroids.size();i++) {\n\t\t\tif (centroids.get(i).petal_length!=novos_centroids.get(i).petal_length) {\n\t\t\t\tterminou = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (centroids.get(i).petal_width!=novos_centroids.get(i).petal_width) {\n\t\t\t\tterminou = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (terminou) {\n\t\t\t/*\n\t\t\tSystem.out.println(\"Novos centroids:\");\n\t\t\tSystem.out.println(novos_centroids);\n\t\t\t\n\t\t\tSystem.out.println(\"FIM!\");\n\t\t*/\n\t\t}else {\n\t\t\tcentroids.clear();\n\t\t\tfor (int i=0;i<novos_centroids.size();i++) {\n\t\t\t\tcentroids.add(novos_centroids.get(i));\n\t\t\t}\n\t\tgeracao_atual++;\n\t\t\tAgrupar();\n\t\t}\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public ArrayList<String> mostraLlistaDiscret(){\n ArrayList<String> tauleta = new ArrayList<>();\n int p = 0;\n System.out.print(\"num atribs disc de 0: \"+list.getAtribs().get(0).getAtribsDisc().size());\n ArrayList<Atribut> disc = new ArrayList<Atribut>();\n\n for (int i=0; i<list.getAtribs().size(); i++){\n if (list.getAtribs().get(i).getDiscret()) disc.add(list.getAtribs().get(i));\n }\n\n\n String aux = \"\";\n for (int i=0; i<disc.size(); i++){\n for (int k=0; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += disc.get(i).getAtribsDisc().get(k).getNom() + \"\\t\";\n }\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = \"\";\n for (int i = 0; i < disc.size(); i++) {\n int f = 0;\n if (!disc.get(i).getShowDefault()) f++;\n for (int k=f; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += String.valueOf(disc.get(i).getAtribsDisc().get(k).getCasos().get(j)) + \"\\t\";\n }\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public TrazAqui(){\n this.utilizadores = new TreeMap<>();\n this.encomendas = new TreeMap<>();\n this.utilizador = null;\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void orderByAscendantPrice() {\n\t\ttry {\n\t\t\t// Display the order list\n\t\t\tdiv_Order.click();\n\n\t\t\t// Select option order by ascendant price\n\t\t\ta_AscendantOption.click();\n\n\t\t\tList<WebElement> articleList = driver.findElements(by_ResultsArticles);\n\t\t\tDouble previousTotalArticle = null;\n\t\t\tfor (WebElement article : articleList) {\n\t\t\t\tDouble priceArticle;\n\t\t\t\tDouble totalArticle;\n\t\t\t\tString name = article.findElement(By.tagName(\"h3\")).getText();\n\t\t\t\tString price = article.findElement(By.xpath(\"ul/li[@class='lvprice prc']/span\")).getText();\n\n\t\t\t\tString shipping = null;\n\t\t\t\tDouble shippingArticle = 0.0;\n\t\t\t\tif (checkShippingElementExist(article)) {\n\t\t\t\t\tshipping = article.findElement(By.xpath(\"ul/li[@class='lvshipping']//span[@class='fee']\"))\n\t\t\t\t\t\t\t.getText();\n\t\t\t\t\tshippingArticle = getPriceNumber(shipping);\n\t\t\t\t}\n\n\t\t\t\tpriceArticle = getPriceNumber(price);\n\t\t\t\ttotalArticle = priceArticle + shippingArticle;\n\n\t\t\t\t// Assertions\n\t\t\t\tif (previousTotalArticle != null) {\n\t\t\t\t\tassertTrue(previousTotalArticle <= totalArticle);\n\t\t\t\t} else {\n\t\t\t\t\tassertTrue(0 < totalArticle);\n\t\t\t\t}\n\n\t\t\t\t// Print the first five results\n\t\t\t\tString infoArticle = String.format(\"The article %s has a total price of $%s\", name,\n\t\t\t\t\t\ttotalArticle.toString());\n\t\t\t\tSystem.out.println(infoArticle);\n\n\t\t\t\tpreviousTotalArticle = totalArticle;\n\t\t\t}\n\t\t} catch (Exception | AssertionError e) {\n\t\t\tString errorMessage = String.format(\"An error ocurred while ordering by ascendant price\", e.getMessage());\n\t\t\tthrow new Error(errorMessage);\n\t\t}\n\t}", "public void sortiereTabelleSpiele() {\n sortListe.sort(new Comparator<Spiel>() {\n @Override\n public int compare(Spiel o1, Spiel o2) {\n /*int a=0,b=0;\n if(o1.getStatus()==0)\n {\n a-=100000;\n }\n if(o2.getStatus()==0)\n {\n b-=100000;\n }*/\n return o1.getZeitplanNummer() - o2.getZeitplanNummer();\n }\n });\n tabelle_spiele.setItems(sortListe);\n }", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "public static void main(String[] args) {\n//\t\tcrearNodos(cantNodos);\n//\t\tlista.extractFront();\n//\t\tlista.extractLast();\n//\t\tlista.insertLast(33);\n//\t\tlista.imprimir();\n//\t\t//System.out.print(lista.get(0));\n//\t\t\n//\t\tIterator<Integer> it1 = lista.iterator();\n//\t\t\twhile(it1.hasNext()) {\n//\t\t\t\tint valor = it1.next();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n//\t\tMyIterator<Integer> it2 = lista.iteratorReverse();\n//\t\t\twhile(it2.hasNext()) {\n//\t\t\t\tint valor = it2.back();\n//\t\t\t\tSystem.out.println(valor);\n//\t\t\t}\n\n\t\tlistaDeso1.insertFront(4);\n\t\tlistaDeso1.insertFront(2);\n\t\tlistaDeso1.insertFront(13);\n\t\tlistaDeso1.insertFront(7);\n\t\tlistaDeso1.insertFront(6);\n\n\t\tlistaDeso2.insertFront(9);\n\t\tlistaDeso2.insertFront(4);\n\t\tlistaDeso2.insertFront(6);\n\t\tlistaDeso2.insertFront(5);\n\t\tlistaDeso2.insertFront(13);\n\n//\t\tlistaOrde1.insertFront(2);\n//\t\tlistaOrde1.insertFront(4);\n//\t\tlistaOrde1.insertFront(6);\n//\t\tlistaOrde1.insertFront(8);\n//\t\tlistaOrde1.insertFront(11);\n//\t\t\n//\t\tlistaOrde2.insertFront(1);\n//\t\tlistaOrde2.insertFront(4);\n//\t\tlistaOrde2.insertFront(9);\n//\t\tlistaOrde2.insertFront(11);\n//\t\tlistaOrde2.insertFront(15);\n\t\t\n\t\tEje6<Integer> ord = new Eje6<Integer>();\n\t\t\n\t\tlista=ord.ambasDeso(listaDeso1, listaDeso2);\n\t}", "private void posicionePosicoes() {\n\t\tGroupLayout gl = new GroupLayout(this);\n\n\t\tgl.setAutoCreateContainerGaps(true);\n\t\tgl.setAutoCreateGaps(true);\n\n\t\tsetLayout(gl);\n\n\t\t// Horizontal\n\t\t{\n\t\t\tSequentialGroup sgDados = gl.createSequentialGroup();\n\t\t\tSequentialGroup sgProgresso = gl.createSequentialGroup();\n\n\t\t\tParallelGroup pg = gl.createParallelGroup(Alignment.LEADING);\n\n\t\t\tsgDados.addComponent(lQntDados).addComponent(tfQntDados)\n\t\t\t\t\t.addComponent(btCadastrar).addComponent(barraProgresso);\n\t\t\tsgProgresso.addComponent(lresultado).addComponent(tfResultado);\n\t\t\tpg.addGroup(sgDados).addGroup(sgProgresso);\n\t\t\tgl.setHorizontalGroup(pg);\n\n\t\t}\n\n\t\t// Vertical\n\t\t{\n\t\t\tParallelGroup pgDados = gl.createParallelGroup(Alignment.CENTER);\n\t\t\tParallelGroup pgResultado = gl\n\t\t\t\t\t.createParallelGroup(Alignment.LEADING);\n\n\t\t\tSequentialGroup sg = gl.createSequentialGroup();\n\n\t\t\tpgDados.addComponent(lQntDados).addComponent(tfQntDados)\n\t\t\t\t\t.addComponent(btCadastrar).addComponent(barraProgresso);\n\t\t\tpgResultado.addComponent(lresultado).addComponent(tfResultado);\n\n\t\t\tsg.addGroup(pgDados).addGroup(pgResultado);\n\n\t\t\tgl.setVerticalGroup(sg);\n\n\t\t}\n\n\t}", "public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public void menorEmQuantidade(){\n qtadePorNum.sort(new Matriz.PairValueComparator());\n }", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public formAnalisis() {\n initComponents();\n// List<Double> testData = IntStream.range(1, 100)\n// .mapToDouble(d -> d)\n// .collect(ArrayList::new, ArrayList::add, ArrayList::addAll);\n// deskriptif stat = new deskriptif();\n// stat.setNameDesc(\"foo\");\n// list1.add(stat);\n// testData.forEach((v) -> stat.addValue(v)); \n }", "public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }", "@Test\r\n\tpublic void testAddAllInt() {\r\n\t\tDoubleList sample = new DoubleList(new Munitions(2, 4, \"ferrum\"));\r\n\t\tsample.add(new Munitions(10, 5, \"ferrum\"));\r\n\t\tsample.addAll(1, list);\r\n\t\tAssert.assertEquals(17, sample.size());\r\n\t\tAssert.assertTrue(sample.get(0).equals(new Munitions(2, 4, \"ferrum\")));\r\n\t\tAssert.assertTrue(sample.get(1).equals(list.get(0)));\r\n\t\tAssert.assertTrue(sample.get(16).equals(new Munitions(10, 5, \"ferrum\")));\r\n\t}", "public ArrayList<Float> leerMapaDesdeBaseDeDatos() {\n listaNumeros.add(2.0f);\r\n listaNumeros.add(3.0f);\r\n listaNumeros.add(4.0f);\r\n listaNumeros.add(5.0f);\r\n listaNumeros.add(1.0f);\r\n return listaNumeros;\r\n }", "public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }", "public VistaDenunciaA() {\n initComponents();\n listaDenuncias=new LinkedList<>();\n mostrarDenuncias1();\n }", "public List<Tipo> getTiposOrdenadosNumerosEventosDecrescente() {\n\t\tList<Tipo> listaOrdenada = new ArrayList<Tipo>();\n\n\t\ttry {\n\t\t\tverificaTiposOrdenados(listaOrdenada);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERRO] Arquivo não encontrado no caminho: '\" + ARQUIVO_CSV + \"'\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERRO] Erro ao ler arquivo csv.\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tfechaBuffer();\n\t\t}\n\t\treturn listaOrdenada;\n\t}", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public Cromosoma(ArrayList<Integer> itinerario,int horaAcumulada) {\n\t\tthis._gen = itinerario;\n this._horaAcumulada = horaAcumulada;\n\t\tthis.aptitud = calcularAptitud(itinerario,horaAcumulada);\n }", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "@Override\n\tpublic ArrayList<Elezione> listaElezioni() {\n\t\tArrayList<Elezione> listaElezioni = caricaElezioni();\n\t\treturn listaElezioni;\n\t}", "@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}", "int getTotalElements();", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public void wczytaj() {\n\t\tTowar t=new Towar();\n\t\tString nazwa;\n\t\tDouble ilosc;\n\t\tDouble cena;\n\t\tDouble wartosc;\n\t\tScanner odczyt=new Scanner(System.in);\n\t\tSystem.out.println(\"Ile towarow chcesz dodac\");\n\t\tint n=odczyt.nextInt();\n\t\tlista=new ArrayList<Towar>(n);\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tSystem.out.println(\"Podaj nazwe\");\n\t\t\tnazwa=odczyt.next();\t\t\t \n\t\t\tSystem.out.println(\"Podaj ilosc\");\n\t\t\tilosc=odczyt.nextDouble();\t\t\t \n\t\t\tSystem.out.println(\"Podaj cene\");\n\t\t\tcena=odczyt.nextDouble();\t\t\t \n\t\t\tSystem.out.println(\"Podaj wartosc\");\n\t\t\twartosc=odczyt.nextDouble();\n\t\t\tt=new Towar(nazwa,ilosc,cena,wartosc);\n\t\t\tlista.add(t);\n\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Empleado>listaEmpleados = new ArrayList<Empleado>();\n\t\t//listaEmpleados.ensureCapacity(12); //USAMOS ESTE MÉTODO PARA NO CONSUMIR MÁS MEMORIA QUE 12 ELEMENTOS DEL ARRAYLIST\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\tlistaEmpleados.add(new Empleado(\"Giru\", 10,2000));\n\t\tlistaEmpleados.add(new Empleado(\"Bra\", 17,2800));\n\t\tlistaEmpleados.add(new Empleado(\"Pan\", 15,2500));\n\t\t//PARA ELEGIR LA POSICIÓN DONDE QUEREMOS INCLUIR ELEMENTO.\n\t\tlistaEmpleados.set(5,new Empleado(\"Androide18\", 10,2000));\n\t\t\n\t\t//CORTAMOS EL EXCESO DE MEMORIA QUE ESTÁ SIN USAR\n\t\t//listaEmpleados.trimToSize();\n\t\t\n\t\t//PARA IMPRIMIR UN ELEMENTO DE ARRAYLIST EN ESPECIAL\n\t\tSystem.out.println(listaEmpleados.get(4).dameEmpleados());\n\t\t\n\t\t//IMPRIMIMOS EL TAMAÑO DEL ARRAYLIST\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\t\n\t\t/*//BUCLE FOR-EACH\n\t\tSystem.out.println(\"Elementos: \" + listaEmpleados.size());\n\t\tfor(Empleado x : listaEmpleados) {\n\t\t\tSystem.out.println(x.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t/*//BUCLE FOR\n\t\tfor(int i=0;i<listaEmpleados.size();i++) {\n\t\t\t//ALAMCENAMOS EN \"e\" LOS ELEMENTOS DEL ARRAYLIST\n\t\t\tEmpleado e =listaEmpleados.get(i); \n\t\t\tSystem.out.println(e.dameEmpleados());\n\t\t}*/\n\t\t\n\t\t//GUARDAMOS LA INFORMACIÓN DEL ARRAYLIST EN UN ARRAY CONVENSIONAL Y LO RECORREMOS\n\t\t//CREAMOS ARRAY Y LE DAMOS LA LONGITUD DEL ARRAYLIST:\n\t\tEmpleado arrayEmpleados[]= new Empleado[listaEmpleados.size()];\n\t\t//COPIAMOS LA INFORMACIÓN EN EL ARRAY CONVENSIONAL:\n\t\tlistaEmpleados.toArray(arrayEmpleados);\n\t\t//RECORREMOS\n\t\tfor(int i=0;i<arrayEmpleados.length;i++) {\n\t\t\tSystem.out.println(arrayEmpleados[i].dameEmpleados());\n\t\t}\n\t}", "public void limpaPontos() {\n\t\tthis.pontos = new ArrayList<Point>();\n\t}", "public ArrayList<Elezione> caricaElezioni() {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Elezione> map = db.getTreeMap(\"elezione\");\n\t\t\tArrayList<Elezione> elezioni = new ArrayList<Elezione>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\telezioni.add(map.get(key));\n\t\t\t}\n\t\t\treturn elezioni;\n\t\t}", "private void viewList() {\n ToDoList highPriority = new ToDoList(\"high priority\");\n ToDoList midPriority = new ToDoList(\"mid priority\");\n ToDoList lowPriority = new ToDoList(\"high priority\");\n\n for (int i = 0; i < toDoList.getSize(); i++) {\n if (toDoList.getItemAtIndex(i + 1).getCategory().equals(Categories.HIGHPRIORITY)) {\n highPriority.insert(toDoList.getItemAtIndex(i + 1));\n }\n\n if (toDoList.getItemAtIndex(i + 1).getCategory().equals(Categories.MIDPRIORITY)) {\n midPriority.insert(toDoList.getItemAtIndex(i + 1));\n }\n\n if (toDoList.getItemAtIndex(i + 1).getCategory().equals(Categories.LOWPRIORITY)) {\n lowPriority.insert(toDoList.getItemAtIndex(i + 1));\n }\n }\n\n System.out.println(\"HIGH PRIORITY: \");\n display(highPriority);\n System.out.println(\"MID PRIORITY: \");\n display(midPriority);\n System.out.println(\"LOW PRIORITY: \");\n display(lowPriority);\n displayUrgent(toDoList);\n }", "public void mostrarTareasNumeradas(){\n int numeroPosicion = 1;\n for (String tarea : tareas){\n System.out.println(numeroPosicion + \". \" + tarea);\n numeroPosicion = numeroPosicion + 1;\n }\n }", "public void affichageList(List<Integer> list) {\n\t\tint nbrCols = list.size(); \n\t\tprocessusGP.setMaxWidth(list.size()*50);\n\t\t\n\t\taddColsRows(processusGP, nbrCols, 0);\n\t\t// Add grid\n\t\tfor(int i=0; i<nbrCols; i++) {\n\t\t\tPane pane = new Pane(); \n\t\t\tpane.setStyle(\"-fx-border-color: black; -fx-border-width: 1 1 1 1;\");\n\t\t\tprocessusGP.add(pane, i, 0);\n\t\t}\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i<list.size();i++) {\n\t\t\tInteger p = list.get(i); \n\t\t\tLabel label = new Label(\"\" + p);\n\t\t\tprocessusGP.add(label, i, 0);\n\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\t\t}\n\n\t}", "private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }", "public Alumno(String nombre,int edad)\n {\n this.nombre = nombre;\n this.edad = edad;\n numClase = inicialVal;\n inicialVal++;\n notas = new ArrayListInt();\n }", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public static void ITdistances()\n\t{\n\t\t//System.err.println(\"Position\");\n\n\t\tclade = clad[k];\n\n\t\tclade.tipDistance = 0;\n\t\tclade.intDistance = 0;\n\t\tclade.tipDisNested = 0;\n\t\tclade.intDisNested = 0;\n\t\tclade.indTipClades = 0;\n\t\tclade.indIntClades = 0;\n\n\n\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t{ \n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (clade.Position[i] == tip)\n\t\t\t\t\tclade.indTipClades += clade.rowTotal[i];\n\t\t\t\telse\n\t\t\t\t\tclade.indIntClades += clade.rowTotal[i];\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\t// weigthing within class\n\t\t\t\tclade.tipDistance += clade.Position[i] * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.tipDisNested += clade.Position[i] * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\tclade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\t\n\t\t\t\t\n\t\t\t\t// unweighted\n\t\t\t\t//clade.tipDistance += clade.Position[i] * clade.Dc[i] / (double) clade.check;\n\t\t\t\t//clade.tipDisNested += clade.Position[i] * clade.Dn[i] / (double) clade.check;\n\t\t\t\t//clade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] / (double) (clade.numSubClades - clade.check);\n\t\t\t\t//clade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] / (double) (clade.numSubClades - clade.check);\t\n\t\t\t}\n\n\t\t clade.tipIntDistance = clade.intDistance - clade.tipDistance;\n\t\t clade.tipIntDisNested = clade.intDisNested - clade.tipDisNested;\n\t\t if(verbose){\n\t\t\tlogfile.println(\"\\nIT \" + clade.cladeName + \" indTipClades = \" + clade.indTipClades\n\t\t\t\t+ \" indIntClades + \" + clade.indIntClades);\n\t\t\tlogfile.println(\"\\nITc \" + clade.cladeName + \" meanInt = \" + clade.intDistance\n\t\t\t\t+ \" meanTip = \" + clade.tipDistance);\n\t\t\tlogfile.println(\"ITn \" + clade.cladeName + \" meanInt = \" + clade.intDisNested\n\t\t\t\t+ \" meanTip = \" + clade.tipDisNested);\n\t\t }\n\t\t}\n\n\t\t//System.err.println(\"IT clade \" + clade.cladeName + \" meanInt = \" + clade.intDistance + \" meanTip = \" + clade.tipDistance);\n\n\t}", "public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public void llenarOpciones(ArrayList<String> mezcales,ArrayList<String> porcentajes,ArrayList<String> tipos){\n for (String p : porcentajes) {\n alcohol.addItem(p + \"%\");\n }\n for (String t : tipos) {\n tipo.addItem(t);\n }\n String nombreMezcales[] = new String[mezcales.size()];\n for (int i = 0; i < mezcales.size(); i++) {\n nombreMezcales[i] = mezcales.get(i);\n }\n eleccion.setTextos(nombreMezcales);\n revalidate();\n }", "public void ordenaArray(){\t\t\n\t\tCollections.sort(anos, new Comparator<Integer>(){\n\t\t\t@Override\n\t\t\tpublic int compare(Integer ano1, Integer ano2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn ano1.compareTo(ano2);\n\t\t\t}\n\t\t});\n\t}", "public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}", "private void computeElementstatistics(Elements eles, String nameElement, Map<String,Boolean> option) throws Exception{\t\n\t\tif(eles.size() == 0)\n\t\t\treturn;\n\t\tdouble nbAnchor, nbList, nbTable, nbImg, nbImgAnchor, nbPTag, nbDescendants;\t\t\n\t\tList<Double> nbAnchorEle = new ArrayList<>();\n\t\tList<Double> nbListEle = new ArrayList<>();\n\t\tList<Double> nbTableEle = new ArrayList<>();\n\t\tList<Double> nbImgEle = new ArrayList<>();\n\t\tList<Double> nbImgAnchorEle = new ArrayList<>();\n\t\tList<Double> nbPTagEle = new ArrayList<>();\n\t\tList<Double> nbDescendantsEle = new ArrayList<>();\n\t\tfor(Element div : eles){\n\t\t\tnbAnchor = 0;\n\t\t\tnbList = 0;\n\t\t\tnbTable = 0;\n\t\t\tnbImg = 0;\n\t\t\tnbImgAnchor = 0;\n\t\t\tnbPTag = 0;\n\t\t\tnbDescendants = 0;\n\t\t\tfor(Element tag : div.getAllElements()){\n\t\t\t\tnbDescendants += 1;\n\t\t\t\tif(tag.tagName().equals(\"a\"))\n\t\t\t\t\tnbAnchor += 1;\n\t\t\t\telse if(option.containsKey(\"list\") && option.get(\"list\") && (tag.tagName().equals(\"ul\") || tag.tagName().equals(\"li\")))\n\t\t\t\t\tnbList += 1;\n\t\t\t\telse if(option.containsKey(\"table\") && option.get(\"table\") &&\n\t\t\t\t\t\t(tag.tagName().equals(\"table\") || tag.tagName().equals(\"tr\") || tag.tagName().equals(\"td\")))\n\t\t\t\t\tnbTable += 1;\n\t\t\t\telse if(tag.tagName().equals(\"img\")){\n\t\t\t\t\tif(tag.parent().tagName().equals(\"a\"))\n\t\t\t\t\t\tnbImgAnchor += 1;\n\t\t\t\t\telse\n\t\t\t\t\t\tnbImg += 1;\n\t\t\t\t}\n\t\t\t\telse if(option.containsKey(\"p\") && option.get(\"p\") && (tag.tagName().equals(\"p\")))\n\t\t\t\t\tnbPTag += 1;\n\t\t\t}\n\t\t\tnbAnchorEle.add(nbAnchor);\t\t\t\n\t\t\tnbListEle.add(nbList);\n\t\t\tnbTableEle.add(nbTable);\n\t\t\tnbImgEle.add(nbImg);\n\t\t\tnbImgAnchorEle.add(nbImgAnchor);\n\t\t\tnbPTagEle.add(nbPTag);\n\t\t\tnbDescendantsEle.add(nbDescendants);\n\t\t}\n\t\tHashtable<String, List<Double>> eleStat = new Hashtable<String, List<Double>>();\n\t\teleStat.put(\"anchor_by_\" + nameElement, nbAnchorEle);\n\t\tif(option.containsKey(\"list\") && option.get(\"list\"))\n\t\t\teleStat.put(\"list_by_\" + nameElement, nbListEle);\n\t\tif(option.containsKey(\"table\") && option.get(\"table\"))\n\t\t\teleStat.put(\"table_by_\" + nameElement, nbTableEle);\n\t\teleStat.put(\"img_by_\" + nameElement, nbImgEle);\n\t\teleStat.put(\"img_anchor_by_\" + nameElement, nbImgAnchorEle);\n\t\tif(option.containsKey(\"p\") && option.get(\"p\"))\n\t\t\teleStat.put(\"tag_p_by_\" + nameElement, nbPTagEle);\n\t\teleStat.put(\"descendants_by_\" + nameElement, nbDescendantsEle);\n\t\tList<String> averageName = Arrays.asList(\"__mean\",\"__std\",\"__2nd_skew_coef\");\n\t\tList<String> bigName = Arrays.asList(\"__highest\",\"__2nd_highest\",\"__3rd_highest\");\n\t\tfor(String name : eleStat.keySet()){\n\t\t\tList<Double> average = ClassificationGeneralFunctions.getAverageSkewness(eleStat.get(name));\n\t\t\tList<Double> highestElements = ClassificationGeneralFunctions.getHighestElementStatistics(eleStat.get(name), average.get(0));\t\t\t\n\t\t\tfor(int i = 0; i < averageName.size(); i++){\n\t\t\t\thtmlStatistics.put(name + averageName.get(i), average.get(i));\n\t\t\t}\n\t\t\tfor(int i = 0; i < bigName.size(); i++){\n\t\t\t\thtmlStatistics.put(name + bigName.get(i), highestElements.get(i));\n\t\t\t}\n\t\t}\n\t}", "public void arbolize() {\n //generando arbol desde nodos\n while (this.size > 1) {\n NodoCaracter smallest, smaller, ncAux;\n int aux;\n smallest = new NodoCaracter(inicio);\n smaller = new NodoCaracter(inicio.siguiente);\n aux = smallest.getFreq() + smaller.getFreq();\n this.eliminaInicio();\n this.eliminaInicio();\n ncAux = new NodoCaracter(aux, smallest, smaller);\n insertaOrdenado(ncAux);\n }\n \n //transferencia de nodo(s) a arbol\n System.out.println(\"Arbol generado\");\n System.out.println(inicio.getFreq() + \" es la frecuencia total sumada\");\n }", "public void agregarElementos(List<NodoRuta> nodoNuevo) {\n if(nodoNuevo != null){\n nodos.addAll(nodoNuevo);\n fireIntervalAdded(this, nodos.size()-nodoNuevo.size(), nodos.size());\n }\n }", "public List<TipoIva> getList() {\n\t\tQuery q = em.createQuery(\"SELECT i FROM TipoIva i ORDER BY i.nombre\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<TipoIva> lista = q.getResultList();\n\t\tfor (TipoIva ti : lista) ti.getTramosTiposIva().size();\n\t\treturn lista;\n\t}", "public ListaDependente() {\n initComponents();\n carregarTabela();\n }", "@Test\n public void testItem_Ordering() {\n OasisList<Integer> baseList = new SegmentedOasisList<>(2, 2);\n\n List<Integer> expResult = Arrays.asList(1, 2, 6, 8);\n baseList.addAll(expResult);\n\n for (int i = 0; i < expResult.size(); i++) {\n assertEquals(expResult.get(i), baseList.get(i));\n }\n }", "public int getCouts(){\r\n\t\treturn listeEleves.size();\r\n\t}", "private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }", "public int getAtracciones(){\n return atracciones.size(); \n }", "public void afficher() {\n\t\tfor(int i=0;i<this.taille;i++) {\n\t\t\tfor (int j=0;j<this.taille;j++) {\n\t\t\t\tSystem.out.print(grille.get(i).get(j).getTypeOccupation()+\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}\n\t}", "public Liste(){\n\t\tsuper();\n\t\tthis.liste = new int[this.BASE_LENGTH];\n\t\tthis.nb = 0;\n\t}", "static String classificacao(ArrayList<Musica> musicas, Musica proxima, int k){\n String classeResultado = \"\";\n\n int qtdeMusicas = musicas.size();\n //System.out.println(\"Quantidade de musicas \" + qtdeMusicas);\n double distAmostra[] = new double[qtdeMusicas];\n int vetorOrdenado[] = new int[qtdeMusicas];\n\n for(int i=0; i<qtdeMusicas;i++){\n double dist = distancia(musicas.get(i), proxima);\n distAmostra[i] = dist; \n } \n System.out.println(\"ANTES\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n selectionSort(distAmostra,vetorOrdenado);\n \n System.out.println(\"DEPOIS\");\n for(int i = 0; i < distAmostra.length; i++){\n System.out.println(distAmostra[i]);\n }\n \n int contadorDeClasse[] = new int[6];\n int vizinhos = 0;\n for(int i=0; i < distAmostra.length; i++){\n if(vizinhos > k){\n break;\n }\n \n String classe = musicas.get(vetorOrdenado[i]).getClasse();\n //System.out.println(\"musica classe \" + classe); //Para Teste\n\n switch (classe) {\n case \"rap\":\n contadorDeClasse[0]++;\n break;\n case \"axe\":\n contadorDeClasse[1]++;\n break;\n case \"sertanejo\":\n contadorDeClasse[2]++;\n break;\n case \"samba\":\n contadorDeClasse[3]++;\n break;\n case \"forro\":\n contadorDeClasse[4]++;\n break;\n case \"bossa_nova\":\n contadorDeClasse[5]++;\n break; \n }\n vizinhos++;\n } \n /*\n for(int i = 0; i < contadorDeClasse.length; i++){\n System.out.println(contadorDeClasse[i]);\n }\n */\n int maior = 0;\n int indiceMaior = -1;\n for (int i = 0; i < contadorDeClasse.length; i++) {\n if (contadorDeClasse[i] > maior) {\n maior = contadorDeClasse[i];\n indiceMaior = i;\n }\n }\n \n switch (indiceMaior) {\n case 0:\n classeResultado = \"rap\";\n break;\n case 1:\n classeResultado = \"axe\";\n break;\n case 2:\n classeResultado = \"sertanejo\";\n break;\n case 3:\n classeResultado = \"samba\";\n break;\n case 4:\n classeResultado = \"forro\";\n break;\n case 5:\n classeResultado = \"bossa_nova\";\n break; \n }\n return classeResultado;\n }", "public Tirage getTirage(List<ObjetArchiver> listeTirages) {\n\tTirage tirageCorrespondant = new Tirage();\n\t/*\n\t * On calcule l'occurence de chaque numéro et chaque étoile depuis listeTirage\n\t */\n\t// On créer une liste d'occurance pour les étoiles et numéros\n\tList<StatNombre> listeOcNumeros = OccuranceData.getListeStatNumerosEnum();\n\tList<StatNombre> listeOcEtoiles = OccuranceData.getListeStatEtoilesEnum();\n\n\t// On met à jour les occurances de la liste de tirages\n\tfor (ObjetArchiver objetArchiver : listeTirages) {\n\t for (Numero numero : objetArchiver.getNumeros()) {\n\t\tfor (StatNombre statNumero : listeOcNumeros) {\n\t\t if (numero.getNumero() == statNumero.getNombre()) {\n\t\t\tstatNumero.setOccurence(statNumero.getOccurence() + 1);\n\t\t }\n\t\t}\n\t }\n\t for (Etoile etoile : objetArchiver.getEtoiles()) {\n\t\tfor (StatNombre statEtoile : listeOcEtoiles) {\n\t\t if (etoile.getEtoile() == statEtoile.getNombre()) {\n\t\t\tstatEtoile.setOccurence(statEtoile.getOccurence() + 1);\n\t\t }\n\t\t}\n\t }\n\t}\n\n\t// On range dans l'ordre croissant les occurences\n\tCollections.sort(listeOcNumeros, (o1, o2) -> o1.getOccurence().compareTo(o2.getOccurence()));\n\tCollections.sort(listeOcEtoiles, (o1, o2) -> o1.getOccurence().compareTo(o2.getOccurence()));\n\n\t// On prend les 15 dernières occurences de listeOcNumeros\n\tList<Numero> combinaisonNumeros = new ArrayList<>();\n\tList<Etoile> combinaisonEtoiles = new ArrayList<>();\n\tFloat precision = 0F;\n\tFloat precisionNumeros = 0F;\n\tFloat precisionEtoiles = 0F;\n\tInteger listeTiragesSize = listeTirages.size();\n\t// On prend les 5 deniers occurences de listeOcNumros\n\tfor (int i = 1; i <= 15; i++) {\n\t Numero numero = new Numero((listeOcNumeros.get(listeOcNumeros.size() - i)).getNombre());\n\t combinaisonNumeros.add(numero);\n\t // On recupère l'occurence de i\n\t Integer ocCourante = listeOcNumeros.get(listeOcNumeros.size() - i).getOccurence();\n\t /*\n\t * On ajoute le rapport (occurence courante/au nombre de tirage) à la précision\n\t * précédente ce qui revient à faire la moyenne des ratios d'occurence\n\t * (occurence/nb de tirage)\n\t */\n\t precisionNumeros += Float.valueOf((float) ocCourante / (float) listeTiragesSize);\n\t precisionNumeros = precisionNumeros / 2;\n\t}\n\t// On prend les 4 denières occurences de listeOcEtoiles\n\tfor (int i = 1; i <= 4; i++) {\n\t Etoile etoile = new Etoile((listeOcEtoiles.get(listeOcEtoiles.size() - i)).getNombre());\n\t combinaisonEtoiles.add(etoile);\n\t // On recupère l'occurence de i\n\t Integer ocCourante = listeOcEtoiles.get(listeOcEtoiles.size() - i).getOccurence();\n\t /*\n\t * On ajoute le rapport (occurence courante/au nombre de tirage) à la précision\n\t * précédente ce qui revient à faire la moyenne des ratios d'occurence\n\t * (occurence/nb de tirage)\n\t */\n\t precisionEtoiles += Float.valueOf((float) ocCourante / (float) listeTiragesSize);\n\t precisionEtoiles = precisionEtoiles / 2;\n\t}\n\n\t// On recupère la precision du tirage (moyenne des deux precision)\n\tprecision = 100 * (precisionNumeros + precisionEtoiles) / 2;\n\n\ttirageCorrespondant.setPrecision(precision);\n\ttirageCorrespondant.setNumeros(combinaisonNumeros);\n\ttirageCorrespondant.setEtoiles(combinaisonEtoiles);\n\n\treturn tirageCorrespondant;\n }", "private void insertar(ArrayList<Estado> hijos) {\r\n\t\tfor (Estado p : hijos) { // Añado hijos a nodos abiertos\r\n\t\t\tabiertos.add(p);\r\n\t\t\tif (abiertos.size() > estados_abiertos)\r\n\t\t\t\testados_abiertos = abiertos.size(); // Variable para contar el numero maximo de estados abiertos\r\n\t\t}\r\n\t}", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "private void dibujarPuntos() {\r\n for (int x = 0; x < 6; x++) {\r\n for (int y = 0; y < 6; y++) {\r\n panelTablero[x][y].add(obtenerIcono(partida.getTablero()\r\n .getTablero()[x][y].getColor()));\r\n }\r\n }\r\n }", "public static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "private List<ItemListaIntegracaoDTO> montarListaInstituicaoDTO(List<InstituicaoCooperativaSCIDTO> lista) {\n\t\tList<ItemListaIntegracaoDTO> listaVO = new ArrayList<ItemListaIntegracaoDTO>();\n\n\t\tfor(InstituicaoCooperativaSCIDTO instituicao:lista){\n\t\t\tItemListaIntegracaoDTO item = new ItemListaIntegracaoDTO(instituicao.getNumCooperativa().toString(), instituicao.getNumCooperativa() + \" - \" + instituicao.getNome());\n\t\t\tlistaVO.add(item);\n\t\t}\n\t\t\n\t\tCollections.sort(listaVO, new Comparator<ItemListaIntegracaoDTO>() {\n\t\t\tpublic int compare(ItemListaIntegracaoDTO o1, ItemListaIntegracaoDTO o2){\n\t\t\t\t\treturn o1.getCodListaItem().compareTo(o2.getCodListaItem());\n\t\t\t\t} \n\t\t});\n\t\t\n\t\treturn listaVO;\t\t\n\t}", "public TelaSorteio() {\n initComponents();\n }", "public List<Integer> getSortedPriceOfAllUnit(String unitSize){\r\n\t\tList<Integer> allUnitPrice=new ArrayList<Integer>();\r\n\t\tList<CateredWebElement> allUnitElements=new ArrayList<CateredWebElement>();\r\n\t\tString[] singleSizePrices;\r\n\t\t\r\n\t\tswitch(unitSize){\r\n\t\tcase \"Small\":\r\n\t\tallUnitElements=webAppDriver.findAllElementsByXpath(lbAllSmallPricesXpath);\r\n\t\tsingleSizePrices=new String[allUnitElements.size()];\r\n\t\tfor (int i=0;i<allUnitElements.size();i++){\r\n\t\t\tsingleSizePrices[i]=allUnitElements.get(i).getText().replace(\"$\", \"\");\r\n\t\t\tsingleSizePrices[i]=singleSizePrices[i].replace(\"/mo.\", \"\").trim();\r\n\t\t\tallUnitPrice.add(Integer.parseInt(singleSizePrices[i]));\t\t\t\r\n\t\t}\r\n\t\tCollections.sort(allUnitPrice);\r\n\t\treturn allUnitPrice;\r\n\t\tcase \"Medium\":\r\n\t\t\tallUnitElements=webAppDriver.findAllElementsByXpath(lbAllMediumPricesXpath);\r\n\t\t\tsingleSizePrices=new String[allUnitElements.size()];\r\n\t\t\tfor (int i=0;i<allUnitElements.size();i++){\r\n\t\t\t\tsingleSizePrices[i]=allUnitElements.get(i).getText().replace(\"$\", \"\");\r\n\t\t\t\tsingleSizePrices[i]=singleSizePrices[i].replace(\"/mo.\", \"\").trim();\r\n\t\t\t\tallUnitPrice.add(Integer.parseInt(singleSizePrices[i]));\t\r\n\t\t\t}\r\n\t\t\tCollections.sort(allUnitPrice);\r\n\t\t\treturn allUnitPrice;\r\n\t\tcase \"Large\":\r\n\t\t\tallUnitElements=webAppDriver.findAllElementsByXpath(lbAllLargePricesXpath);\r\n\t\t\tsingleSizePrices=new String[allUnitElements.size()];\r\n\t\t\tfor (int i=0;i<allUnitElements.size();i++){\r\n\t\t\t\tsingleSizePrices[i]=allUnitElements.get(i).getText().replace(\"$\", \"\");\r\n\t\t\t\tsingleSizePrices[i]=singleSizePrices[i].replace(\"/mo.\", \"\").trim();\r\n\t\t\t\tallUnitPrice.add(Integer.parseInt(singleSizePrices[i]));\t\r\n\t\t\t}\r\n\t\t\tCollections.sort(allUnitPrice);\r\n\t\t\treturn allUnitPrice;\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(allUnitPrice);\r\n\t\treturn allUnitPrice;\r\n\t}", "public static void main(String[] args) {\n ArrayList<Persona> cola = new ArrayList<>();\r\n \r\n generarCola(cola);\r\n \r\n //Creamos variables que nos seran útiles\r\n double recaudacion;\r\n double recaudacionTotal=0;\r\n Persona espectadorActual;\r\n int edadActual;\r\n int contadorPersonas=0;\r\n \r\n //Creamos el iterator\r\n Iterator<Persona> it=cola.iterator();\r\n \r\n \r\n //Recorremos la cola\r\n while(it.hasNext()){\r\n \r\n espectadorActual=it.next();\r\n \r\n //\"Atendemos\" al espectador para que pague\r\n edadActual=espectadorActual.getEdad();\r\n \r\n //Comprobamosla edad\r\n if(edadActual>=5 && edadActual<=10) { \r\n \trecaudacion=1; \r\n } else if(edadActual>=11 && edadActual<=17) {\r\n \trecaudacion=2.5;\r\n } else {\r\n \trecaudacion=3.5;\r\n }\r\n contadorPersonas++;\r\n recaudacionTotal+=recaudacion;\r\n \r\n System.out.println(\"Una persona de \"+edadActual+\" años se le ha cobrado \" +recaudacion+ \" euros\");\r\n \r\n }\r\n \r\n //Mostramos el resultado\r\n System.out.println(\"La recaudación es de \"+recaudacionTotal+\" euros y han venido \"+contadorPersonas);\r\n \r\n }", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "private void utvidtabellen() {\n\t\tCD[] hjelpeTab;\n\t\tif (cdTabell.length == 0) {\n\t\t\thjelpeTab = new CD[1];\n\t\t\tmaksAntall = 1;\n\t\t} else {\n\t\t\thjelpeTab = new CD[(int) Math.ceil(cdTabell.length * 1.1)];\n\t\t\tmaksAntall = hjelpeTab.length;\n\t\t}\n\t\tfor (int i = 0; i < cdTabell.length; i++) {\n\t\t\thjelpeTab[i] = cdTabell[i];\n\t\t}\n\t\tcdTabell = hjelpeTab;\n\t}", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "private ArrayList<ParCharProb> calcularProbabilidadLista(ArrayList<ParCharProb> lista) {\n\t\tdouble cantidadElementos = 0;\r\n\t\tParCharProb par;\r\n\t\tIterator<ParCharProb> it = lista.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tpar = it.next();\r\n\t\t\tcantidadElementos += par.getFrecuencia();\r\n\t\t}\r\n\t\t\r\n\t\tit = lista.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tpar = it.next();\r\n\t\t\tpar.setProbabilidad((double) par.getFrecuencia()/(double) cantidadElementos);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public void nombre(ArrayList<Alumno> lista)\n {\n int flag = 1, cont = 0, tam2 = 0, cont2 = 0;\n int tam = lista.size();\n \n for (int i = 0; i < tam; i++)\n {\n if (flag == 1)\n {\n Bloque1I.add(lista.get(i).getNombre());\n Bloque1.add(lista.get(i));\n cont++;\n cont2++;\n }\n if (flag == -1)\n {\n Bloque2I.add(lista.get(i).getNombre());\n Bloque2.add(lista.get(i));\n cont++;\n cont2++;\n }\n\n if (cont == n || ((validador == 1) && (cont2+1 > tam2)))\n {\n validador = 0;\n if (flag == 1)\n {\n int size = Bloque1.size();\n Sort.sort(Bloque1, Bloque1I);\n for (int j = 0; j < size; j++)\n {\n F1.add(Bloque1.get(j));\n F1I.add(Bloque1I.get(j));\n }\n Bloque1.clear();\n Bloque1I.clear();\n if(cont2+n > tam)\n {\n validador = 1;\n tam2 = tam-cont2;\n cont2 = 0;\n }\n }\n else\n {\n int size = Bloque2.size();\n Sort.sort(Bloque2, Bloque2I);\n for (int j = 0; j < size; j++)\n {\n F2.add(Bloque2.get(j));\n F2I.add(Bloque2I.get(j));\n }\n Bloque2.clear();\n Bloque2I.clear();\n if(cont2 + n > tam)\n {\n validador = 1;\n tam2 = tam-cont2;\n cont2 = 0;\n }\n }\n flag = flag * (-1);\n cont = 0;\n }\n }\n \n F0 = intercalacion.intercalar(F1, F2, F1I, F2I, n, tam);\n \n devolverArchivo(F0);\n }", "public static void precioMenor(ArrayList<Equipo> equi) {\n int menorEqui = 0;\n double precioMenorEqui = 2000;\n\n for (int i = 0; i < equi.size(); i++) {\n if (equi.get(i).getPrecio() < precioMenorEqui) {\n precioMenorEqui = equi.get(i).getPrecio();\n menorEqui = equi.indexOf(equi.get(i));\n\n }\n\n }\n System.out.println(\"Equipo con menor precio: \" + equi.get(menorEqui).getNombre() + \" \" + equi.get(menorEqui).getPrecio() + \"€\");\n }", "public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}", "public ListaPalabras() {\n\n //pos=0;\n }", "public Materia getMateriaPractico()throws ParseException{\n Element tabla3=doc.getElementsByClass(\"display\").get(2);\n Elements elementostPractico=tabla3.select(\"td:nth-of-type(2)\");\n \n Profesor profesorPractico=new Profesor(elementostPractico.get(0).text());\n int paraleloPractico=Integer.parseInt(elementostPractico.get(1).text());\n String capacidadMaxima=elementostPractico.get(2).text();\n Materia materiaPractico=new Materia\n (nombreMateria,paraleloPractico,profesorPractico);//materia\n \n \n //Selecciona a la 4ta tabla con la informacion de las clases\n //del paralelo practico, se crea y se llena un arreglo con las clases\n Element tabla4=doc.getElementsByClass(\"display\").get(3);\n Elements clasesPractico=tabla4.select(\"tr\");\n ArrayList<Clase> clasePractico=new ArrayList<>();//arreglo de clases\n for(Element e:clasesPractico.subList(1, clasesPractico.size())){\n //System.out.println(e);\n Elements campos=e.select(\"td\");\n Dias dia=Dias.valueOf(campos.get(0).text().toUpperCase());\n Date horai=dateFormatClases.parse(campos.get(1).text());\n Date horaf=dateFormatClases.parse(campos.get(2).text());\n String aula=campos.get(3).text();\n String aulaDetalle=campos.get(4).text();\n Clase clase=new Clase(dia, horai, horaf,aula,aulaDetalle);\n //System.out.println(clase);\n clasePractico.add(clase);\n }\n \n //seteo el arreglo de clases del practico en la materiaPractico\n materiaPractico.setClases(clasePractico);\n return materiaPractico;\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public StatCognomiListe(LinkedHashMap<String, Integer> mappaCognomi) {\n this.mappaCognomi = mappaCognomi;\n doInit();\n }" ]
[ "0.5907655", "0.5852471", "0.58359015", "0.5771404", "0.5711248", "0.563101", "0.56099045", "0.5600545", "0.5600048", "0.55881166", "0.558467", "0.55687183", "0.55402416", "0.54650307", "0.54302484", "0.5403265", "0.5399219", "0.5362965", "0.5355122", "0.5335795", "0.5324586", "0.531254", "0.5292598", "0.5285086", "0.52785206", "0.526", "0.5250425", "0.5242129", "0.5222586", "0.5219036", "0.5209528", "0.51951015", "0.51946944", "0.51842743", "0.51835304", "0.5169015", "0.51668185", "0.5144314", "0.5143865", "0.5141744", "0.51401687", "0.5137439", "0.51358527", "0.5135708", "0.51353353", "0.5129429", "0.5129276", "0.51239663", "0.51220286", "0.51170367", "0.5108714", "0.5108359", "0.51036954", "0.5101768", "0.5101491", "0.5094795", "0.5094788", "0.50881714", "0.5088145", "0.5085906", "0.50828874", "0.5056549", "0.5042361", "0.5036136", "0.5032843", "0.50267315", "0.5021986", "0.50219697", "0.50209874", "0.50208735", "0.50181156", "0.5016113", "0.50138795", "0.50098485", "0.50054497", "0.5003459", "0.5000938", "0.49991915", "0.49927786", "0.49852425", "0.49811152", "0.49807197", "0.49791655", "0.49766007", "0.4975158", "0.49724925", "0.49704823", "0.4968258", "0.49641475", "0.49578068", "0.4956267", "0.4954495", "0.4951626", "0.49493355", "0.49491486", "0.4944877", "0.4941846", "0.49414387", "0.49399993", "0.4935462", "0.49353114" ]
0.0
-1
Restituisce il nome dell'algoritmo di ordinamento.
public String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}", "String getUltimoNome();", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "@AutoEscape\n\tpublic String getNomDistrito();", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "@Override\r\n\tpublic String getNomeRisorsa() {\r\n\t\treturn Costanti.FXML_GESTISCI_CLIENTI;\r\n\t}", "@Override\n\t@Field(offset=149, length=30, paddingChar=' ', align=Align.RIGHT)\n\tpublic String getNomeSacado() {\n\t\treturn super.getNomeSacado();\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getName() {\n return aao.getName();\n }", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "String getNome();", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}", "String getName() ;", "public String getCognomeNome() {\n\t\treturn this.cognome + \" \" + this.nome;\n\t}", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "Ris(String nome) {\n this.nome = nome;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Apart N°\"+Nombre;\n\t}", "public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }", "public String getNomeAluno() {\n\t\treturn nomeAluno;\n\t}", "public String name() {\n return celestialName;\n }", "public String nome() {\n\t\treturn this.nome;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn this.nome;\r\n\t}", "public String getAutorizacion_Nombre_Entidad() {\n return autorizacion_Nombre_Entidad;\n }", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "public String getName()\r\n {\n return \"arctan\";\r\n }", "public String getNome(){\n return preferencias.getString(CHAVE_NOME, null);\n }", "public String getName()\r\n {\n return \"tan\";\r\n }", "public String getNomeAzienda() {\r\n\t\treturn nomeAzienda;\r\n\t}", "int getOriginName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "@AutoEscape\n\tpublic String getNomDepartamento();", "public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}", "public char getName(){\n\t\treturn tipo;\n\t}", "public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6728339", "0.66102767", "0.64710903", "0.6453866", "0.64126885", "0.6410898", "0.63409406", "0.6263942", "0.623793", "0.616396", "0.615927", "0.61446583", "0.61446583", "0.61199105", "0.60642207", "0.6061231", "0.60591507", "0.6051871", "0.6044711", "0.6036502", "0.601644", "0.6011839", "0.5996312", "0.598378", "0.5977285", "0.596511", "0.59524536", "0.59464324", "0.59410936", "0.59401524", "0.5934972", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59286237", "0.59105355", "0.58918214", "0.5887521", "0.58708686", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887", "0.58663887" ]
0.0
-1
Created by Joao on 30/05/2017.
public interface TeamUserService extends CrudService<TeamUser, Long> { List<User> findByTeam(Team team); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\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\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void m50366E() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void getExras() {\n }", "protected boolean func_70814_o() { return true; }", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "private void init() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void kk12() {\n\n\t}", "@Override\n public void init() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n protected void initialize() \n {\n \n }", "public void mo6081a() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo12930a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "private void strin() {\n\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public final void mo91715d() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "protected void mo6255a() {\n }" ]
[ "0.58895564", "0.57470304", "0.57108057", "0.5689024", "0.56780344", "0.5606828", "0.56059647", "0.56006855", "0.56006855", "0.55951446", "0.55637646", "0.55606085", "0.55542", "0.55245245", "0.55096453", "0.54910195", "0.54658353", "0.5448216", "0.54396904", "0.5439398", "0.54391915", "0.5438174", "0.54335284", "0.5432715", "0.54218733", "0.5417304", "0.53766274", "0.5374627", "0.53715044", "0.53715044", "0.53715044", "0.53715044", "0.53715044", "0.53644276", "0.53622407", "0.5354696", "0.5354351", "0.53467983", "0.5343833", "0.53315324", "0.53293073", "0.53293073", "0.53189105", "0.53189105", "0.5296234", "0.5296234", "0.5296234", "0.5296234", "0.5296234", "0.5296234", "0.5285705", "0.5283795", "0.5280873", "0.5280873", "0.5280873", "0.5280873", "0.5280873", "0.5280873", "0.5280873", "0.5275656", "0.5271376", "0.52658963", "0.5259716", "0.52483267", "0.52441233", "0.52441233", "0.52441233", "0.5240352", "0.52345574", "0.52345574", "0.52345574", "0.52340895", "0.5230752", "0.5230752", "0.5230752", "0.52307034", "0.52302194", "0.52301216", "0.5228754", "0.5225242", "0.5224725", "0.52201396", "0.5215869", "0.5215869", "0.52076447", "0.51970273", "0.5187992", "0.5185239", "0.5180585", "0.5180243", "0.5172734", "0.51713604", "0.5169842", "0.51641923", "0.5158603", "0.5148466", "0.5141858", "0.51412493", "0.5139414", "0.5139224", "0.51303774" ]
0.0
-1
Instantiates a new User.
public User() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User() {\n log.debug(\"Create a User object\");\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "User createUser();", "public User() {}", "public User() {}", "public User() {}", "public User(){}", "public User(){}", "public User(){}", "public User() { }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "public User() {\r\n \r\n }", "public User() {\n }", "public User() {\r\n\t}", "public User() {\r\n }", "User()\n\t{\n\n\t}", "public User() {\r\n\r\n\t}", "public User() {\n\t}", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\n\t}", "public User() {\n\n }", "public User()\n\t{\n\t}", "public User() {\n super();\n }", "public User() {\n super();\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}", "User createUser(UserCreationModel user);", "public void createUser(User user);", "public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }", "public DbUser() {\r\n\t}", "protected User() {}", "protected User() {}", "public User(){\n }", "public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public void createUser(User user) {\n\n\t}", "public static createNewUser newInstance() {\n createNewUser fragment = new createNewUser();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "User createUser(User user);", "public User(){\n\n }", "public User(){\n this(null, null);\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public void newUser(User user);", "private User() {}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}", "public User() throws InvalidUserDataException {\n this(DEFAULT_ID, DEFAULT_PASSWORD, DEFAULT_FIRST_NAME, \n DEFAULT_LAST_NAME, DEFAULT_EMAIL_ADDRESS, new Date(), \n new Date(), DEFAULT_TYPE, DEFAULT_ENABLED_STATUS);\n }", "protected User() {\n }", "public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }", "public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }", "User create(User user);", "private User() {\n }", "public User(String uId, String email, String password) \n\t{\n\t\tthis.userId = uId;\n\t\tthis.accDetails = AccountDetails.create(uId,email,password);\n this.credit = Credit.create(uId);\n }", "public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }", "public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }", "public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}", "public JpaUser() {\n }", "UserCreateResponse createUser(UserCreateRequest request);", "public UserProfile() {}", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public User() {\n\tsuper();\n}", "User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public UserBuilder() {\n this.user = new User();\n }", "@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "public UserAccount() {\n\n\t}", "public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }", "public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }", "public UserModel() throws IOException {\n userManager = new UserManager();\n }", "public User createUser(UserDTO userDto) {\n User user = new User();\n user.setLogin(userDto.getLogin());\n user.setFirstName(userDto.getFirstName());\n user.setLastName(userDto.getLastName());\n user.setEmail(userDto.getEmail());\n if (userDto.getLangKey() == null) {\n user.setLangKey(\"en\"); // default language\n } else {\n user.setLangKey(userDto.getLangKey());\n }\n String encryptedPassword = passwordEncoder.encode(RandomUtil.generatePassword());\n user.setPassword(encryptedPassword);\n user.setResetKey(RandomUtil.generateResetKey());\n user.setResetDate(ZonedDateTime.now());\n user.setActivated(false);\n\n user.setRoles(getUserRoles(userDto));\n userRepository.save(user);\n log.debug(\"Created Information for User: {}\", user);\n return user;\n }", "public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}", "public UserAccount() {\n }", "public User(String firstName, String lastName, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }", "private void createUser(final String email, final String password) {\n\n }", "public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}", "public User() {\n this.username = \"test\";\n }", "public UserManager() {\n }", "public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }", "public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}", "public Users() {}", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "public AppUser() {\r\n\t\tsuper();\r\n\t}" ]
[ "0.7582088", "0.73480594", "0.7273225", "0.7200439", "0.71821743", "0.71821743", "0.71821743", "0.71243304", "0.71243304", "0.71243304", "0.711101", "0.71006274", "0.707437", "0.70445484", "0.70134807", "0.70035017", "0.6995122", "0.6994287", "0.6974036", "0.69645983", "0.69595885", "0.69595885", "0.69595885", "0.6958612", "0.69316727", "0.69066805", "0.6905054", "0.6905054", "0.68684435", "0.68493235", "0.68088025", "0.68073004", "0.6801815", "0.6782993", "0.67817426", "0.67817426", "0.67659324", "0.6757833", "0.6753429", "0.6751958", "0.67298645", "0.6716966", "0.6696123", "0.6690816", "0.6689577", "0.66872203", "0.66758394", "0.6652559", "0.66393614", "0.6637278", "0.6622515", "0.6613412", "0.6612878", "0.66108733", "0.66041833", "0.65853554", "0.6569846", "0.6538645", "0.65385073", "0.65357715", "0.6517077", "0.64981276", "0.64933026", "0.6487315", "0.6486772", "0.6478756", "0.6472035", "0.6467129", "0.6462921", "0.64621407", "0.64589614", "0.645698", "0.6455436", "0.6454449", "0.64539886", "0.6452546", "0.6445076", "0.6444465", "0.64360875", "0.643585", "0.64346457", "0.6431079", "0.6423939", "0.6423929", "0.6415369", "0.6414354", "0.64077675", "0.63974744" ]
0.69751424
27
Instantiates a new User.
public User(String userName, String firstName, String lastName, String location, int admin, String league) { this.userName = userName; this.firstName = firstName; this.lastName = lastName; this.location = location; this.admin = admin; this.league = league; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User() {\n log.debug(\"Create a User object\");\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"[email protected]\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "User createUser();", "public User() {}", "public User() {}", "public User() {}", "public User(){}", "public User(){}", "public User(){}", "public User() { }", "private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }", "public User() {\r\n \r\n }", "public User() {\n }", "public User() {\r\n\t}", "public User() {\r\n }", "User()\n\t{\n\n\t}", "public User() {\r\n\r\n\t}", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n }", "public User() {\n\t}", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\t\tsuper();\n\t}", "public User() {\n\n\t}", "public User() {\n\n }", "public User()\n\t{\n\t}", "public User() {\n super();\n }", "public User() {\n super();\n }", "public User() {\n\t\tsuper(AppEntityCodes.USER);\n\t}", "public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}", "User createUser(UserCreationModel user);", "public void createUser(User user);", "public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }", "public DbUser() {\r\n\t}", "protected User() {}", "protected User() {}", "public User(){\n }", "public User(String name) {\n this(UUID.randomUUID().toString(), name, String.format(\"User account for %s\", name) );\n }", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public void createUser(User user) {\n\n\t}", "public static createNewUser newInstance() {\n createNewUser fragment = new createNewUser();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "User createUser(User user);", "public User(){\n\n }", "public User(){\n this(null, null);\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "public void newUser(User user);", "private User() {}", "public IdentifiedUser createNewUser() {\n\t\treturn new Gamer();\n\t}", "public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}", "public User() throws InvalidUserDataException {\n this(DEFAULT_ID, DEFAULT_PASSWORD, DEFAULT_FIRST_NAME, \n DEFAULT_LAST_NAME, DEFAULT_EMAIL_ADDRESS, new Date(), \n new Date(), DEFAULT_TYPE, DEFAULT_ENABLED_STATUS);\n }", "protected User() {\n }", "public User(String username, String password) {\n this.userID = UUID.randomUUID();\n this.username = username;\n this.password = password;\n this.isTechAgent = false;\n }", "public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }", "User create(User user);", "private User() {\n }", "public User(String uId, String email, String password) \n\t{\n\t\tthis.userId = uId;\n\t\tthis.accDetails = AccountDetails.create(uId,email,password);\n this.credit = Credit.create(uId);\n }", "public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }", "private User createWithParameters(Map<String, String> userParameters) {\n User user = new User();\n String passHashed = BCrypt.hashpw(userParameters.get(PASSWORD_PARAMETER_NAME), BCrypt.gensalt());\n user.setUsername(userParameters.get(USERNAME_PARAMETER_NAME));\n user.setPassword(passHashed);\n user.setFirstName(userParameters.get(FIRST_NAME_PARAMETER_NAME));\n user.setLastName(userParameters.get(LAST_NAME_PARAMETER_NAME));\n user.setEmail(userParameters.get(EMAIL_PARAMETER_NAME));\n user.setPhone(userParameters.get(PHONE_PARAMETER_NAME));\n user.setAddress(userParameters.get(ADDRESS_PARAMETER_NAME));\n user.setAccount(BigDecimal.ZERO);\n user.setInitDate(LocalDate.now());\n user.setBlockedUntil(LocalDate.now());\n user.setRole(User.Role.USER);\n return user;\n }", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "public User(String firstName, String lastName, Long userid, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userid = userid;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }", "public static User createUser(Integer userId, String firstName, String lastName,\r\n\t\t\tString email, String userName, String companyName) {\r\n\t\tUser user = new User();\r\n\t\tif (userId != null) {\r\n\t\t\tuser.setUserId(userId);\r\n\t\t}\r\n\t\tuser.setFirstName(firstName);\r\n\t\tuser.setLastName(lastName);\r\n\t\tuser.setEmail(email);\r\n\t\tuser.setUserName(userName);\r\n\t\tuser.setCompanyName(companyName); \r\n\t\treturn user;\r\n\t}", "public JpaUser() {\n }", "UserCreateResponse createUser(UserCreateRequest request);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "public UserProfile() {}", "public User() {\n\tsuper();\n}", "User(String userID, String password, String firstName, String lastName) {\n this.userID = userID;\n this.password = password;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public UserBuilder() {\n this.user = new User();\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Override\n public User createFromParcel(Parcel in) {\n return new User(in);\n }", "public UserAccount() {\n\n\t}", "public static User newInstance(String account, String password, String name, boolean isFemale) {\n User user = new User();\n user.account = account;\n user.password = password;\n user.name = name;\n user.isFemale = isFemale;\n user.createdDateTime = DateTimeUtil.getCurrentDateTime(); // Automatically generates the date & time.\n return user;\n }", "public User createUser(UserDTO userDto) {\n User user = new User();\n user.setLogin(userDto.getLogin());\n user.setFirstName(userDto.getFirstName());\n user.setLastName(userDto.getLastName());\n user.setEmail(userDto.getEmail());\n if (userDto.getLangKey() == null) {\n user.setLangKey(\"en\"); // default language\n } else {\n user.setLangKey(userDto.getLangKey());\n }\n String encryptedPassword = passwordEncoder.encode(RandomUtil.generatePassword());\n user.setPassword(encryptedPassword);\n user.setResetKey(RandomUtil.generateResetKey());\n user.setResetDate(ZonedDateTime.now());\n user.setActivated(false);\n\n user.setRoles(getUserRoles(userDto));\n userRepository.save(user);\n log.debug(\"Created Information for User: {}\", user);\n return user;\n }", "public User() {\r\n // TODO - implement User.User\r\n throw new UnsupportedOperationException();\r\n }", "public UserModel() throws IOException {\n userManager = new UserManager();\n }", "public User(Long id) {\n\t\tsuper(id, AppEntityCodes.USER);\n\t}", "public UserAccount() {\n }", "public User(String firstName, String lastName, String email, String password, String userName) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.password = password;\n this.userName = userName;\n\n createContributorPrivilege();\n }", "private void createUser(final String email, final String password) {\n\n }", "public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}", "public User() {\n this.username = \"test\";\n }", "public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }", "public UserManager() {\n }", "public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}", "public Users() {}", "protected User(){\n this.username = null;\n this.password = null;\n this.accessLevel = null;\n this.name = DEFAULT_NAME;\n this.telephone = DEFAULT_TELEPHONE;\n this.email = DEFAULT_EMAIL;\n }", "public AppUser() {\r\n\t\tsuper();\r\n\t}" ]
[ "0.75807", "0.73489875", "0.7275648", "0.72022533", "0.71809304", "0.71809304", "0.71809304", "0.7122721", "0.7122721", "0.7122721", "0.71099246", "0.7100796", "0.70734364", "0.70437044", "0.70120513", "0.70024514", "0.6994129", "0.6992871", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.69740427", "0.6972503", "0.6966685", "0.6958361", "0.6958361", "0.6958361", "0.69571465", "0.6930704", "0.69053215", "0.69036746", "0.69036746", "0.6868547", "0.6850084", "0.68100643", "0.68089813", "0.6803531", "0.67830217", "0.6780967", "0.6780967", "0.6764498", "0.675978", "0.67568386", "0.6754055", "0.6728102", "0.67183715", "0.6694819", "0.66895634", "0.6688581", "0.6687169", "0.66743934", "0.6652873", "0.6640685", "0.66393083", "0.66217995", "0.6614513", "0.6614281", "0.66110355", "0.66028196", "0.6587491", "0.65716153", "0.6540023", "0.653877", "0.6537919", "0.6518841", "0.64984846", "0.6495472", "0.6488183", "0.64871097", "0.6477146", "0.64740723", "0.6466316", "0.6464565", "0.6461961", "0.6461352", "0.6456988", "0.64564306", "0.6455225", "0.64550227", "0.6454417", "0.64459515", "0.6444767", "0.6438954", "0.6438525", "0.64354765", "0.6431775", "0.64265585", "0.642507", "0.64161795", "0.6413695", "0.6409449", "0.63978505" ]
0.0
-1
Konstruktor der Klasse Spielfeld. Setzt die Steine.
public Spielfeld() { mulden = new int[14]; setSteine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void sendeSpielfeld();", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public SlanjePoruke() {\n }", "public Empfänger() {\t\t\t\t\t// std. Konstruktor\r\n\t\t}", "protected abstract void setSpl();", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "private void setupSpalteSaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSaz.setCellValueFactory(new PropertyValueFactory<>(\"saz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public SuperS()\r\n {\r\n setStep(0,0,0,0,0);\r\n }", "private void setupSpalteSez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSez.setCellValueFactory(new PropertyValueFactory<>(\"sez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public KI(Spieler spieler, Spiel spiel){\r\n\t\tif (spieler == null) throw new RuntimeException(\"Spieler muss vorhanden sein!\");\t\r\n\t\tthis.spieler = spieler;\r\n\r\n\t\tif(spiel==null) throw new RuntimeException (\"Spiel sollte vorhanden sein\");\r\n\t\tthis.spiel=spiel;\r\n\r\n\t\thatUeberlauf=false;\r\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "public SPIEL() \n {\n this( 800 , 600 , false , false , false );\n }", "private UsineJoueur() {}", "public HandlePiaoSvlt() {\n\t\tsuper();\n\t}", "public Empleado(String n, int ed, float es, float s){\r\n super(n, ed, es);\r\n this.sueldo=s;\r\n System.out.println(\"Constructor Empleado\");\r\n \r\n }", "public MijnKlasse()\r\n\t\t{\r\n\t\t\tmijnMethode();\r\n\t\t}", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public Husdjurshotell(){}", "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public VotacaoSegundoDia() {\n\n\t}", "public Pasien() {\r\n }", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public JSFOla() {\n }", "public Stupide(Plateau p) {\r\n\t\tsuper(p);\r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "protected FanisamBato(){\n\t}", "@Override\r\n public void salir() {\n }", "public SisRol() {\n\t}", "private stendhal() {\n\t}", "public Sierpinski() {\n super(\"Sierpinski gasket\");\n \n this.resize(area_size, area_size);\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public StokEkle() {\n initComponents();\n \n }", "public ListSemental() {\n }", "protected AusschreibungMapper() {\r\n\t}", "public Stagiaire() {\n initComponents();\n }", "public ZafCon34(ZafParSis obj) {\n try{\n initComponents();\n //Inicializar objetos.\n this.objParSis=obj;\n jfrThis = this;\n objParSis=(ZafParSis)obj.clone();\n objUti=new ZafUtil();\n objTooBar=new MiToolBar(this);\n panTooBar.add(objTooBar);//llama a la barra de botones\n\n if (!configurarFrm())\n exitForm();\n }\n catch (CloneNotSupportedException e)\n {\n this.setTitle(this.getTitle() + \" [ERROR]\");\n }\n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public MaschinenVerwaltung() {\r\n setMaschinenListe();\r\n setEinKopfMaschinenListe();\r\n setZweiBisAchtKopfMaschine();\r\n setZehnUndMehrKopfMaschine();\r\n }", "@Override\n public void perish() {\n \n }", "public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }", "@Test\r\n public void testSetSamochod() {\r\n System.out.println(\"setSamochod\");\r\n Samochod samochod = null;\r\n Faktura instance = new Faktura();\r\n instance.setSamochod(samochod);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "protected Asignatura()\r\n\t{}", "public Sloth() {\n\t\tsuper.setSpeciesWeight(15.00);\n\t\tsuper.setSpeciesDamage(18.00);\n\t\tsuper.setSpeciesName(\"Sloth\");\n\t}", "public Plato(){\n\t\t\n\t}", "SPX(Object obj) {\n super();\n\n this.obj = obj;\n\n }", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "public CSSTidier() {\n\t}", "public SimulasiBean() {\n this.crane = \"L\";\n this.tipePelayaran = \"d\";\n indonesianNumberConverter = new IndonesianNumberConverter();\n }", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "public SPIEL( int breite , int hoehe , boolean punkteLinks , boolean punkteRechts , boolean maus ) \n {\n //Zaehler fuer Tick, Tack, ...\n zaehler = 0;\n anzeige = new AnzeigeE( breite , hoehe );\n //animationsManager = AnimationsManager.getAnimationsManager();\n \n //Punkteanzeige\n anzeige.punkteLinksSichtbarSetzen( punkteLinks );\n anzeige.punkteRechtsSichtbarSetzen( punkteRechts );\n \n //Maus ggf. aktivieren\n if ( maus ) \n {\n anzeige.klickReagierbarAnmelden( this , true );\n }\n \n //Tastatur\n anzeige.tastenReagierbarAnmelden( this );\n \n //Ticker\n //Alle 500 Millisekunden (=Jede halbe Sekunde) ein Tick\n //anzeige.tickerAnmelden(this, 500); \n }", "public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }", "public QLNhanVien(){\n \n }", "public ZafCxP04(ZafParSis obj)\n {\n try\n {\n initComponents();\n //Inicializar objetos.\n objParSis=(ZafParSis)obj.clone();\n }\n catch (CloneNotSupportedException e)\n {\n this.setTitle(this.getTitle() + \" [ERROR]\");\n }\n }", "public Sistema(){\r\n\t\t\r\n\t}", "public abstract Koordinate schuss();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public SgaexpedbultoImpl()\n {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public Sandwich()\n\t{super();\n \n\t\t\n\t}", "public SiacTRecapitoSoggetto() {\n\t}", "private DittaAutonoleggio(){\n \n }", "public void asetaTeksti(){\n }", "@Test\r\n public void testSetPracownik() {\r\n System.out.println(\"setPracownik\");\r\n Pracownik pracownik = null;\r\n Faktura instance = new Faktura();\r\n instance.setPracownik(pracownik);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public Sku() {\n\t}", "protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "protected AbstractSourclet() {\n super();\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public Tmio1Sitio() {\r\n\t}", "public RuimteFiguur() {\n kleur = \"zwart\";\n }", "public SPIEL( int breite , int hoehe ) \n {\n this( breite , hoehe , false , false , false );\n }", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "private void setupSpalteFez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteFez.setCellValueFactory(new PropertyValueFactory<>(\"fez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteFez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteFez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setFez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public Spiel(TerraSnowSpleef plugin) {\r\n this.plugin = plugin;\r\n joinCountdown = false;\r\n startCountdown = false;\r\n spiel = false;\r\n sf = new Spielfeld(plugin);\r\n spielerSet = new HashSet<>();\r\n }", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public void validerSaisie();", "public TelaSobre() {\n initComponents();\n }", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "public Spieler(String name) {\n\t\tthis.name = name;\n\t}", "public TebakNusantara()\n {\n }", "public Dipendente() {\r\n\t\tsetnMat();\r\n\t}", "public SPOR() {\n initComponents();\n }", "Schueler createSchueler();", "public Kullanici() {}", "public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}", "public Despeje55__() {\r\n\r\n\t\tsuper.setInicio(55);\r\n\t\tsuper.setFin(0);\r\n\t}" ]
[ "0.6581531", "0.6575579", "0.65322566", "0.6522076", "0.6288308", "0.62546784", "0.61661184", "0.616154", "0.6143748", "0.61410624", "0.60995746", "0.6093225", "0.6072358", "0.6063975", "0.60032433", "0.5999229", "0.59986794", "0.5960182", "0.59499866", "0.59167856", "0.59114397", "0.59077257", "0.5899177", "0.58920175", "0.58848095", "0.5859053", "0.5856847", "0.5856688", "0.5854675", "0.585462", "0.5844833", "0.58425266", "0.5839958", "0.5839784", "0.58369786", "0.582678", "0.58189344", "0.58168685", "0.5803118", "0.5799057", "0.5795405", "0.57882065", "0.57758886", "0.57698905", "0.5767559", "0.57611245", "0.5754745", "0.57363147", "0.5734223", "0.57169163", "0.5716472", "0.5712377", "0.5711684", "0.5705249", "0.57044065", "0.5699874", "0.569885", "0.5697882", "0.5694114", "0.5692348", "0.5688909", "0.56882054", "0.5683716", "0.56791323", "0.5673301", "0.5664352", "0.56559163", "0.5653704", "0.56534475", "0.5652194", "0.56416845", "0.5639142", "0.5635601", "0.5634139", "0.56292546", "0.5629008", "0.56283456", "0.5622745", "0.5621286", "0.5612616", "0.5604487", "0.5602048", "0.56017417", "0.55919", "0.5584065", "0.5583667", "0.5582938", "0.5579314", "0.5576554", "0.5575813", "0.557288", "0.5567373", "0.55626273", "0.5559233", "0.5556204", "0.5554429", "0.55481315", "0.554581", "0.5545232", "0.55414385" ]
0.65724856
2
Privater Konstruktor des Spielfeldes.
private Spielfeld(int[] mulden) { this.mulden = mulden; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}", "public PrivilagePart() {\n initComponents();\n \n \n }", "private stendhal() {\n\t}", "public void sendeSpielfeld();", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public Menu_perfilKey() {\n\t}", "public pemilihandokter() {\n initComponents();\n }", "public PrivacySettingsWeb() {\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}", "@Override\n public void perish() {\n \n }", "public Propiedad(){\n\t}", "private QuadradoPerfeito() {\n }", "public Kreditkarte(){\n\t\n\t}", "private DittaAutonoleggio(){\n \n }", "private ObiWanKenobi(){\n }", "public Providers(){\r\n\t\tsuper();\r\n\t}", "private PerksFactory() {\n\n\t}", "Petunia() {\r\n\t\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "@Override\n protected void prot() {\n }", "public DesigningSec() {\n initComponents();\n }", "public SistemskiKontroler() {\r\n\t\ttabla = new Tabla(10, 10, 10);\r\n\t\tlista = SOUcitajIzFajla.izvrsi(\"data/lista\");\r\n\t}", "public SlanjePoruke() {\n }", "private ControleurAcceuil(){ }", "private Public() {\n super(\"public\", null);\n }", "public MijnKlasse()\r\n\t\t{\r\n\t\t\tmijnMethode();\r\n\t\t}", "private SingletonLectorPropiedades() {\n\t}", "public Kullanici() {}", "public Methods() { // ini adalah sebuah construktor kosong tidak ada parameternya\n System.out.println(\"Ini adalah Sebuah construktor \");\n }", "public PlatzVerkaufsWerkzeug()\r\n\t{\r\n\t\t_ui = new PlatzVerkaufsWerkzeugUI();\r\n\t\tregistriereUIAktionen();\r\n\t\t// Am Anfang wird keine Vorstellung angezeigt:\r\n\t\tsetVorstellung(null);\r\n//\t\t_auswahl = new Map<Platz, Boolean>; Alternative mit Map\r\n\t}", "private UsineJoueur() {}", "public ProduktController() {\r\n }", "private Security() { }", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}", "private Aspirations() {}", "private IngenicoDisplay(){\n\n }", "private UserPrefernce(){\r\n\t\t\r\n\t}", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "protected RespostaFormularioPreenchido() {\n // for ORM\n }", "public AntrianPasien() {\r\n\r\n }", "@Override\n public String getDeskripsi() {\n return deskripsi;\n }", "@Override\n public String getDeskripsi() {\n return deskripsi;\n }", "private DarthSidious(){\n }", "protected Approche() {\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public ProfitDistribTpViewImpl() {\n }", "public PkBrp(){\n \t\n }", "protected Product() {\n\t\t\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "public Sitedoc2SplaceKey() {\n\tsuper();\n}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public DataPresensiAdmin() {\n initComponents();\n }", "public Pitonyak_09_02() {\r\n }", "private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}", "protected Doodler() {\n\t}", "@Generated\n public Secciones() {\n }", "public Registracija() {\n servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();\n konf = (Konfiguracija) servletContext.getAttribute(\"Konfig\");\n bpkonf = (BP_Konfiguracija) servletContext.getAttribute(\"BP_Konfig\");\n }", "private Pools() {\n super();\n }", "public SecurityMB() {\n }", "public Plato(){\n\t\t\n\t}", "public Pasien() {\r\n }", "private RepositorioOrdemServicoHBM() {\n\n\t}", "@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}", "public void setPrivado(Boolean privado) {\n this.privado = privado;\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.697 -0500\", hash_original_method = \"311A54F6C4195C76C43F2FC2F7A3A3E0\", hash_generated_method = \"CC6CEBA9DCDFB3B56E2148C7707A4E32\")\n \nprivate Phones() {}", "@Override\n public String IDTipoHabitacion() {\n // TODO Auto-generated method stub\n return \"Habitacion Privada\";\n }", "private TMCourse() {\n\t}", "String privacyPolicy();", "public abstract String tiposervicio();", "public EditPolicy() {\r\n super();\r\n }", "public ControllerProtagonista() {\n\t}", "public void display() {\n System.out.println(\"This is a private inner class.\");\n }", "public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }", "protected Provider() {}", "public void asetaTeksti(){\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "@RequestMapping(value = \"/admin/privatePage\", method = RequestMethod.GET)\n\tpublic String privatePage() {\n\t\treturn \"privatePage\";\n\t}", "public HarvesterAdminForm() {\n\n\t\tsetShSet(\"split\");\n\n\t\tprtln(\"HarvesterAdminForm() \");\n\n\t}", "public KorisniciREST() {\n }", "private PowerSubsystem() {\n mPdp = new PowerDistributionPanel(0);\n addChild(\"PowerDistributionPanel\",mPdp);\n }", "protected ProvinciaList() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public SiacTRecapitoSoggetto() {\n\t}", "public serieCap() {\n initComponents();\n \n }", "public ListSemental() {\n }", "private SpTreeMan() {\n }", "public JLabel etykietaWyswietlaniaPunktow()\n\t{\n\t\treturn wyswietleniePunktow;\n\t}", "public VotacaoSegundoDia() {\n\n\t}", "@Override\n public void pub() {\n // can only be public\n }", "private SecureController()\n\t{\n\t\tField field;\n\t\ttry\n\t\t{\n\t\t\tfield = Class.forName(\"javax.crypto.JceSecurity\").getDeclaredField(\n\t\t\t\t\t\"isRestricted\");\n\t\t\tfield.setAccessible(true);\n\t\t\tfield.set(null, java.lang.Boolean.FALSE);\n\t\t}\n\t\tcatch (NoSuchFieldException | SecurityException\n\t\t\t\t| ClassNotFoundException | IllegalArgumentException\n\t\t\t\t| IllegalAccessException e)\n\t\t{\n\t\t\tlogger.fatal(\"security load failed: \" + e.getMessage());\n\t\t}\n\t}", "private ServiceDisplay() {\n\t\tthis.idisplays = new ArrayList<IDisplay>();\n\t\tthis.idisplays.add(DisplayPorConsola.getInstancia());\n\t}", "private PTypeRefSkel() {}", "public ViewKorisnik() {\n initComponents();\n obrada = new ObradaKorisnik();\n }" ]
[ "0.6935308", "0.6434366", "0.6241144", "0.6102547", "0.6088953", "0.5944941", "0.59238297", "0.58627915", "0.58513427", "0.5759277", "0.5742405", "0.57243776", "0.57239646", "0.5722535", "0.57157165", "0.5710385", "0.57021415", "0.56926984", "0.56782335", "0.56707424", "0.5652314", "0.56271386", "0.561208", "0.55778205", "0.55748826", "0.55627036", "0.555575", "0.5547277", "0.54931587", "0.5487673", "0.5482878", "0.5476968", "0.54640377", "0.54554874", "0.5445213", "0.5434882", "0.5405878", "0.5403524", "0.53987247", "0.5393644", "0.5378479", "0.5371223", "0.5344981", "0.5333639", "0.5295325", "0.5293761", "0.5280444", "0.5280444", "0.5267206", "0.5261126", "0.52597386", "0.52545625", "0.5249227", "0.5246022", "0.5244567", "0.5243727", "0.5241446", "0.523978", "0.5232342", "0.5231393", "0.52138174", "0.5204429", "0.5203057", "0.5200689", "0.51847124", "0.5183877", "0.5182753", "0.51809067", "0.5180688", "0.5170472", "0.5169881", "0.51652867", "0.51631236", "0.51585037", "0.5158498", "0.51500535", "0.5148154", "0.5147794", "0.51476777", "0.5143631", "0.51417685", "0.5138173", "0.5132514", "0.51288694", "0.51273555", "0.5125664", "0.5121578", "0.5118975", "0.5117557", "0.51163983", "0.51159865", "0.51102835", "0.5108059", "0.5107515", "0.5106288", "0.5104616", "0.51043177", "0.50989294", "0.5096061", "0.5094396", "0.5093975" ]
0.0
-1
Gibt die Steine zu einer Mulde zurueck.
public int getSteine(int mulde) { int steineInMulde = mulden[mulde]; mulden[mulde] = 0; return steineInMulde; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "private void mul() {\n\n\t}", "abstract void mulS();", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "public void multiply() {\n\t\t\n\t}", "Sum getMultiplier();", "public Scalar mul(Scalar s) {\n\t\treturn new RealScalar(getValue() * ((RealScalar)s).getValue());\n\t}", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "Double getMultiplier();", "@Override\n\tpublic void mul(double dx, double dy) {\n\t\t\n\t}", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "public double getMultiplier() {\r\n return multiplier;\r\n }", "public double masse () {return this.volume()*this.element.masseVolumique();}", "@Override\n public Float mul(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs*rhs;\n\treturn res;\n }", "@Override\npublic void mul(int a, int b) {\n\t\n}", "public T mul(T first, T second);", "public float getSMultiplier(){\n\t\treturn this.SMultiplier;\n\t}", "public int getMultiplier() {\n return multiplier;\n }", "public double getMultiplier() {\n\t\t\tint currentWidth = Display.getWidth();\n\t\t\treturn currentWidth / (double) width;\n\t\t}", "public void setzeStein(int mulde) {\n\t\tmulden[mulde] +=1;\n\t}", "@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }", "public void mul()\n\t{\n\t\t\n\t\tSystem.out.println(\"Hey I am in base class********** and addition is 2500\");\n\t}", "Point mult (double s);", "public static double multi() {\n System.out.println(\"Enter multiplier\");\n double a = getNumber();\n System.out.println(\"Enter multiplicand\");\n double b = getNumber();\n\n return a * b;\n }", "@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }", "public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }", "public final void mult (double s) throws ArithmeticException {\n\t\tif (((mksa&_abs)!=0) && (s != 1)) throw new \t// On a date\n\t\tArithmeticException(\"****Unit.mult on a date!\");\n\t\tvalue *= s;\n\t\t// Offset not changed.\n\t}", "public final void mult (Unit unit) throws ArithmeticException {\n\t\tlong u = mksa ; double r = factor; double v = value; double o = offset;\n\t\t/* dump(\"mult:this \"); unit.dump(\"mult:unit\"); */\n\t\tif (((mksa&_abs)!=0) && (unit.factor != 1)) throw\t// On a date\n\t\tnew ArithmeticException(\"****Unit.mult on a date!\");\n\t\tif (((mksa|unit.mksa)&_log) != 0) {\n\t\t\tif ((mksa == underScore) && (factor == 1.)) ;\n\t\t\telse if ((unit.mksa == underScore) && (unit.factor == 1.)) ;\n\t\t\telse throw new ArithmeticException\n\t\t\t(\"****Unit: can't multiply logs: \" + symbol + \" x \" + unit.symbol);\n\t\t}\n\t\t/* As soon as there is an operation, the offset is ignored \n\t\t * except if one of the factors is unity.\n\t\t */\n\t\tif ((offset!=0) || (unit.offset!=0)) {\n\t\t\tif (mksa == underScore) offset = unit.offset;\n\t\t\telse if (unit.mksa == underScore) ;\n\t\t\telse offset = 0;\n\t\t}\n\t\tv *= unit.value; \n\t\tr *= unit.factor;\n\t\tu += unit.mksa; u -= underScore;\n\t\tif ((u&0x0c80808080808080L) != 0) throw new ArithmeticException\n\t\t(\"****too large powers in: \" + symbol + \" x \" + unit.symbol);\n\t\tmksa = u;\n\t\tfactor = r;\n\t\tvalue = v;\n\t\t/* Decision for the new symbol */\n\t\tif ((symbol != null) && (unit.symbol != null)) {\n\t\t\tif ((unit.mksa == underScore) && (unit.factor == 1)) return;\t// No unit ...\n\t\t\tif (( mksa == underScore) && ( factor == 1)) symbol = unit.symbol;\n\t\t\telse if ((symbol.equals(unit.symbol)) && (factor == unit.factor))\n\t\t\t\tsymbol = toExpr(symbol) + \"2\" ;\n\t\t\telse symbol = toExpr(symbol) + \".\" + toExpr(unit.symbol) ;\n\t\t}\n\t}", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}", "Point mult (double s, Point result);", "void multiply(double value);", "public AncientEgyptianMultiplication( ) {\r\n }", "public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "@Override\n\tpublic void\n\tscalarMult( double value )\n\t{\n\t\tdata[0] *= value;\n\t\tdata[1] *= value;\n\t\tdata[2] *= value;\n\t}", "public double getMultiplier() {\n return genericModifier.getMultiplier();\n }", "public LMUL() {\n super(InstructionOpCodes.LMUL, 1);\n }", "@Override\n\t\tprotected int computeValue() {\n\t\t\treturn squareSide.get() * squareSide.get(); //return squared value\n\t\t}", "public float squared(){\r\n\t\treturn this.dottedWith( this );\r\n\t}", "@Override\n\tpublic IVector nScalarMultiply(double number){\n\t\treturn this.copy().scalarMultiply(number);\n\t}", "public void enfoncerMult() {\n\t\ttry {\n\t\t\tthis.op = new Mult();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "Multiply createMultiply();", "public void mul(Complex c){\n\t\tdouble tempRe = re*c.getRe() - im*c.getIm();\n\t\tim = im*c.getRe() + re*c.getIm();\n\t\tre = tempRe;\n\t}", "public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}", "public double getFactor() {\n return ((double) multiplier) / ((double) divisor);\n }", "public Number getQtyMulPrice() {\n return (Number)getAttributeInternal(QTYMULPRICE);\n }", "public int getSteineAufSpielfeld() {\n\t\tint steineAufDemSpielfeld = 0;\n\t\tfor (int i = 0; i<mulden.length;i++) {\n\t\t\tsteineAufDemSpielfeld += mulden[i];\n\t\t}\n\t\t\n\t\treturn steineAufDemSpielfeld;\n\t}", "@Override\r\n\tpublic void multLocal(float var) {\n\t}", "public int scale(int original);", "public void scale(double s);", "public float getPowerMultiplier() { return 0.5F; }", "@Override\n\tpublic double mangeViande() {\n\t\treturn quantiteViande*this.getPoids();\n\t}", "private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public double nextDouble() {\r\n\r\n\t\t//System.out.println(\"cur v\"+curVal);\r\n\t\tcurVal = (long) Math.pow(curVal, 2);\r\n\t\t//System.out.println(\"sq \"+curVal);\r\n\t\t\r\n\t\tLong l = new Long(curVal);\r\n\t\tStringBuffer sb = new StringBuffer(l.toString());\r\n\t\twhile(sb.length() < size){\t\t\t\r\n\t\t\tsb.append(\"7\");\r\n\t\t}\r\n\t\tint zeros = sb.indexOf(\"00\");\t\t\r\n\t\tString s = sb.toString();\r\n\t\tif(-1 != zeros){\r\n\t\t\ts = s.replace('0', '3');\t\t\r\n\t\t}\r\n\t\t//System.out.println(\"padded \"+s);\r\n\t\t\r\n\t\tint start = (s.length() - size) / 2;\t\t\r\n\t\t//System.out.println(\"start \"+start+\" start+s \"+(start+size));\r\n\t\tcurVal = Long.parseLong(s.substring(start, start+size));\r\n\t\t//System.out.println(\"next \"+curVal);\r\n\t\t\r\n\t\treturn (double)curVal/sizeMax;\r\n\t}", "public int mult()\r\n\t{\r\n\t\tint a=10;\r\n\t\tint b=20;\r\n\t\tint c = a*b;\r\n\t\treturn(c);\r\n\t}", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public static double mul(double a, double b){\r\n\t\treturn a*b;\r\n\t}", "public double nextDouble() {\n\tdouble result = (d1 - 1.0) / (POW3_33 - 1.0);\n\tnextIterate();\n\treturn result;\n }", "public double getProduct()\n {\n return first * second;\n }", "public int getAnzahlSteine(int mulde) {\n\t\treturn mulden[mulde];\n\t}", "@Override\n\tpublic int mult(int val1, int val2) {\n\t\treturn val1 * val2;\n\t}", "private static int multAndDivFixer(int size){\n return size;\n }", "public Inatnum multiply(Inatnum a) {\n Inatnum zero = new zeronatnum(); // we need a new zero natural number for our res\n Inatnum res = zero;// this is our res value where we store our information, it needs to start at 0\n //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1)\n for(int i = this.getVal(); i>0;i--) {// setting our i value to our this and if its greater than zero decrement by 1\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()\n\t\t\tres = res.add(a);//now we save our res value as the previous res value plus a. we do this as many times as we are multiplying by. So if it is 3 times\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()-1) \n \t\t\t//i-- => i = this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1) \n\t\t\t // 4 then we are adding 4 3 times\n }\n\t\t\t //INV: i<0 && i-1 < this.getval() ==> i ==0 && res = a^i ==> i=this.getval()\n //Termination Argument: i starts at this.getval(), i decrements each time through the loop\n\t\t\t\t\t\t return res;// we need to return our res value that holds our current value.\n }", "public void visitFMUL(FMUL o){\n\t\tif (stack().peek() != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'float', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'float', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "public void multiply(Rational s) {\n\tnumerator *= s.numerator;\n\tdenominator *= s.denominator;\n }", "@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}", "public Fraction multiply(Fraction multiplier)\n {\n int newDenominator = (this.getDenominator() * multiplier.getDenominator());\n int newNumerator = (this.getNumerator() * multiplier.getNumerator());\n \n Fraction newFraction = new Fraction(newNumerator, newDenominator);\n return newFraction;\n }", "public void multiply(CubieCube multiplier) {\n multiplyTheCorners(multiplier);\n multiplyTheEdges(multiplier);\n }", "float getScaler();", "public final double getScaler()\n { \n return Math.pow(10, m_Scaler);\n }", "public static float mw2pu(float mw) {return mw/100F;}", "@Override\n\tpublic void visit(MultiplyNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam cei doi fii\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tInteger i, j;\n\t\t/**\n\t\t * salvam si inmultim valorile rezulate in urma evaluarii celor 2 fii si\n\t\t * setam valoarea corespunzatoare in nodul curent\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\tInteger n = i * j;\n\n\t\tnode.setName(n.toString());\n\t}", "public Complex scale(int s) {\n return new Complex(re * s, im * s);\n }", "Expression multExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = powerExpression();\r\n\t\twhile(isKind(OP_TIMES, OP_DIV, OP_MOD)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = powerExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "double getStep() {\n\t\t\treturn scale;\n\t\t}", "@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;\n\t}", "public float sizeMultiplier();", "@ZenCodeType.Operator(ZenCodeType.OperatorType.MUL)\n default IData mul(IData other) {\n \n return notSupportedOperator(OperatorType.MUL);\n }", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public T magnitudeSquared();", "public StatementParse mulDivTransform(StatementParse node) {\n // This function is called on _every_ multiply and divide node.\n StatementParse node1 = node.getChildren().get(0);\n StatementParse node2 = node.getChildren().get(1);\n if (!(node1 instanceof IntegerParse) || !(node2 instanceof IntegerParse)){\n return node;\n }\n int value1 = ((IntegerParse) node1).getValue();\n int value2 = ((IntegerParse) node2).getValue();\n int result;\n if (node.getName().equals(\"*\")){\n result = value1 * value2;\n } else{ // div node\n if (value2 == 0) return node;\n result = value1 / value2;\n }\n\n IntegerParse newNode = new IntegerParse(result);\n if (node.isNegative()) newNode.setNegative(true);\n return newNode;\n }", "@Override\r\n\tpublic vec3 mult(float var) {\n\t\treturn null;\r\n\t}", "public double getUIMultiplier() {\n\treturn multiplier;\n}", "public final void mMUL() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.MUL;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:5: ( 'mul' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:7: 'mul'\n\t\t\t{\n\t\t\t\tthis.match(\"mul\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "public <V extends Number> FluentExp<V> times (SQLExpression<V> expr)\n {\n return new Mul<V>(this, expr);\n }", "private static native double mul(int n);", "void scale(double factor);", "private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}", "private void m76767e() {\n m76765c();\n this.f61649f -= this.f61648e;\n if (this.f61649f < 0) {\n this.f61649f = 0;\n }\n m76768f();\n }", "public void multiply(MyDouble val) {\n this.setValue(this.getValue() * val.getValue());\n }", "IVec3 mult(float k);", "public void multiply(Object mulValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, mulValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() * getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() * getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}", "public Node power()\r\n\t{\r\n\t\tNode fact = factor();\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.POW)\r\n\t\t{\t\t\t\r\n\t\t\tNode pow = power();\r\n\t\t\tif(pow!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Pow(fact,pow);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn fact;\r\n\t}", "@JsonIgnore\r\n public Double priceReduction() {\n if (wasPrice == null || nowPrice == null)\r\n return 0D;\r\n\r\n return wasPrice - nowPrice;\r\n }", "public double mag() {\n return Math.sqrt(mag2());\n }", "public abstract double mo9740e();", "@Override\n public InterpreterValue mul(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() * ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() * ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '*' is not defined for type double and \" + v.getName());\n\n }", "public Vector2f mul(float scalar) {\n return mul(new Vector2f(scalar, scalar));\n }" ]
[ "0.7052875", "0.685361", "0.65150213", "0.64873725", "0.63976645", "0.63380826", "0.63064253", "0.6296527", "0.6287508", "0.6238625", "0.62061155", "0.6115373", "0.6056062", "0.60095906", "0.6005621", "0.59961665", "0.5955792", "0.595057", "0.5942077", "0.59272826", "0.5870537", "0.586621", "0.5861559", "0.5859626", "0.58459634", "0.5827322", "0.5822887", "0.57909024", "0.5778846", "0.57579887", "0.575163", "0.57499444", "0.57351714", "0.57024", "0.5701491", "0.5700337", "0.5687249", "0.5665862", "0.5645024", "0.5633704", "0.5626059", "0.5620769", "0.56098586", "0.56088966", "0.5605567", "0.56010807", "0.56010234", "0.55984515", "0.55951774", "0.55809784", "0.5580646", "0.55513066", "0.5549131", "0.55487424", "0.55369574", "0.5533732", "0.55249155", "0.5524911", "0.55138016", "0.55129427", "0.5510334", "0.5510174", "0.5498819", "0.5497458", "0.54946166", "0.5493446", "0.5492739", "0.5492225", "0.5482272", "0.5473302", "0.5470816", "0.54685634", "0.5467371", "0.5457038", "0.54546386", "0.5446563", "0.54424375", "0.54386914", "0.5438231", "0.54357904", "0.54309386", "0.5430713", "0.5429781", "0.5428954", "0.54284286", "0.54271597", "0.5425732", "0.5425702", "0.54236144", "0.54038906", "0.54036754", "0.53981024", "0.5394984", "0.5385782", "0.53856754", "0.53679514", "0.5366634", "0.53638643", "0.53617835", "0.5353988" ]
0.57779247
29
Setzt die Steine in die einzelnen Mulden.
private void setSteine() { for(int i = 0; i<mulden.length; i++) { mulden[i] = 5; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setzeStein(int mulde) {\n\t\tmulden[mulde] +=1;\n\t}", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}", "public void setSueldo(double sueldo) {\n this.sueldo = sueldo;\n }", "public void set(float signal);", "public void setzeEigenenStein(int spielzug){\t\t\n\t\t//Setze eigenen Stein\n\t\tfor(int i=0; i<6; i++) {\n\t\t\tif(spielfeld[spielzug][i].equals(\"_\")){\n\t\t\t\tspielfeld[spielzug][i] = eigenerStein;\n\t\t\t\teigenerPunkt.setLocation(spielzug, i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}", "public void setSueldo(float sueldo) {\n\t\tif (sueldo > 0) {\n\t\t\tfloat oldValue = this.sueldo;\n\t\t\ttry {\n\t\t\t\tthis.sueldo = sueldo;\n\t\t\t\tchangeSupport.firePropertyChange(\"sueldo\", oldValue, this.sueldo);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthis.sueldo = oldValue;\n\t\t\t\tSystem.out.println(e.getMessage()); // Imprimir el mensaje mandado desde PanelEmpleado\n\t\t\t}\n\t\t}\n\t}", "public int getSteine(int mulde) {\n\t\tint steineInMulde = mulden[mulde];\n\t\tmulden[mulde] = 0;\n\t\treturn steineInMulde;\n\t}", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "public int getSteineAufSpielfeld() {\n\t\tint steineAufDemSpielfeld = 0;\n\t\tfor (int i = 0; i<mulden.length;i++) {\n\t\t\tsteineAufDemSpielfeld += mulden[i];\n\t\t}\n\t\t\n\t\treturn steineAufDemSpielfeld;\n\t}", "@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}", "public void setJine(float f) {\n\n }", "public void setKredietLimiet(double kredietlimiet) {\n // method body omitted\n this.kredietlimiet = kredietlimiet;\n }", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "public void set(double d);", "public abstract void setMontant(Double unMontant);", "public void setSueldoMensual(double sueldoMensual) {\n sueldoMensual = sueldoMensual;\n }", "public Solute (double MWA)\n\t\t\t{\n\t\t\t\tthis.MWA=MWA;\t\n\t\t\t}", "public void setSecondExtreme(double se){\r\n secondExtreme = se;\r\n }", "public void setWavelength(float wavelength) {\n/* 61 */ this.wavelength = wavelength;\n/* */ }", "public void set(double val);", "public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}", "public void setMach(float Mach);", "@Test\n\tpublic void testSetSessieDuur(){\n\t\tdouble expResult = 5;\n\t\tinstance.setSessieDuur(5);\n\t\tassertTrue(expResult == instance.getSessieDuur());\n\t}", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "public void setCurrentSpecialPower(int curS) {\n currentSpecialPower = curS;\n }", "void setSalario(double salario);", "public Milstein(SDE sde) {\n this.sde = sde;\n }", "public void setPreco(Double preco);", "public void verzinsen(double zinssatz){\n stand = stand-(stand*zinssatz);\n }", "public void skalierung(){\n double scale = Double.parseDouble(skalierung_textfield.getText());\n scale = scale/100;\n\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n t1.getTetraeder()[0].setPoint(A[0]*scale,A[1]*scale,A[2]*scale);\n t1.getTetraeder()[1].setPoint(B[0]*scale,B[1]*scale,B[2]*scale);\n t1.getTetraeder()[2].setPoint(C[0]*scale,C[1]*scale,C[2]*scale);\n t1.getTetraeder()[3].setPoint(D[0]*scale,D[1]*scale,D[2]*scale);\n\n redraw();\n }", "public void setNose(EditableScaledParametrisedSphere nose) {\n\t\tremoveSceneObject(this.nose);\n\t\t\n\t\t// ... and add the new one\n\t\tthis.nose = nose;\n\t\taddSceneObject(nose);\n\t}", "public void setValue(double val) {\r\n\t\tthis.worth = val;\r\n\t}", "public void setSetpoint(double setpoint);", "public void setLow(double value){low = value;}", "public final void setStepSize( long micros )\n {\n if ( ( micros < 1L ) && ( micros != -1L ) )\n throw new IllegalArgumentException( \"micros must be -1 or greater then 0\" );\n \n this.stepMicros = micros;\n }", "public void setSpeed(double multiplier);", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public void setStueck(int stueckNeu) {\r\n\t\tstueck = stueckNeu;\r\n\t}", "public void setzeGegnerStein(int gegnerZug){\t\n\t\t//Falls eigener Agent startet wird -1 uebergeben\n\t\tif(gegnerZug >= 0){\t\t\t\t\n\t\t\tfor(int i=0; i<6; i++) {\n\t\t\t\tif(spielfeld[gegnerZug][i].equals(\"_\")){\n\t\t\t\t\tspielfeld[gegnerZug][i] = gegnerStein;\n\t\t\t\t\tgegnerPunkt.setLocation(gegnerZug, i);\n\t\t\t\t\tbreak;\n\t\t\t\t} //end if\n\t\t\t} //end for\t\t\t\t\n\t\t} \t\t\n\t}", "public abstract void set( int i, int j, double value ) throws JWaveException;", "public void setStone(int stoneIn){\r\n\t\tstone = stoneIn;\r\n\t}", "public void setSMultiplier(float SMultiplier){\n\t\tthis.SMultiplier = SMultiplier;\n\t}", "public void setA(double a){\n this.a=a;\n }", "public abstract void setValue(double fltValue);", "public void setKilometraza(double value) {\r\n this.kilometraza = value;\r\n }", "public void setTaux(final float newTaux) {\r\n\tthis.taux = newTaux;\r\n}", "public void setQtyMulPrice(Number value) {\n setAttributeInternal(QTYMULPRICE, value);\n }", "void setValue(double value);", "private void setSilicateMinError (float silicateMin, Exception e, int error) {\n this.silicateMin = silicateMin;\n silicateMinErrorMessage = e.toString();\n silicateMinError = error;\n }", "public void setIanswr(Float ianswr) {\r\n this.ianswr = ianswr;\r\n }", "public void setMultiplier(int newValue) {\n multiplier = newValue;\n }", "public final void mult (double s) throws ArithmeticException {\n\t\tif (((mksa&_abs)!=0) && (s != 1)) throw new \t// On a date\n\t\tArithmeticException(\"****Unit.mult on a date!\");\n\t\tvalue *= s;\n\t\t// Offset not changed.\n\t}", "public void setToScale(double Sx, double Sy, double Sz) {\r\n\t\tthis.M11 = Sx;\r\n\t\tthis.M22 = Sy;\r\n\t\tthis.M33 = Sz;\r\n\t\tthis.M44 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t}", "public void setWert(double value) {\r\n this.wert = value;\r\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "void setStaStart(double staStart);", "public void setElement(E e){\r\n\t\trotulo = e;\r\n\t}", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "public double getSueldo() {\n return sueldo;\n }", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public void setW1 (float value) {\r\n w1 = value;\r\n }", "public double getSueldoMensual() {\n return sueldoMensual;\n }", "public double masse () {return this.volume()*this.element.masseVolumique();}", "@Override\r\n\tpublic void setCurrent(double iCurrent) {\n\r\n\t}", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public void besetze(int spalte, int spieler)\n\t{\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\t_spalte0 = spieler;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t_spalte1 = spieler;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\t_spalte2 = spieler;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t}", "public void setXmultiplier(double setx)\n {\n xmultiplier = setx;\n }", "@Test\n public void testSetInteres() {\n System.out.println(\"setInteres\");\n double interes = 0.0;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setInteres(interes);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "public int getAnzahlSteine(int mulde) {\n\t\treturn mulden[mulde];\n\t}", "public void setFactor(Double factor);", "public void mo25064i() {\n if (this.f16593M == 1) {\n this.f16593M = 2;\n }\n }", "public void setW(double w) {\n this.w = w;\n }", "public void setEnergy(double energy) { this.energy = energy; }", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "@Override\n public void setPower(double power) {\n\n }", "void setExtremeSpikeIncrease(VariableAmount increase);", "public void scale(double s);", "public final void setIdentity() {\n \t\n this.m00 = 1.0F;\n this.m01 = 0.0F;\n this.m02 = 0.0F;\n this.m10 = 0.0F;\n this.m11 = 1.0F;\n this.m12 = 0.0F;\n this.m20 = 0.0F;\n this.m21 = 0.0F;\n this.m22 = 1.0F;\n }", "public void setShineDamper(float shineDamper) {\r\n\t\tthis.shineDamper = shineDamper;\r\n\t}", "public void setSizeE(long s){\n\t\tthis.sizeE = s;\n\t}", "public void setValue(double newvalue){\n value = newvalue;\n }", "public float getSMultiplier(){\n\t\treturn this.SMultiplier;\n\t}", "public void doubleSpeed()\r\n {\r\n \tthis.speed= speed-125;\r\n \tgrafico.setVelocidad(speed);\r\n }", "public void mo13884e(int i) {\n this.f5085k = i;\n }", "public void setX(Double x);", "public void setFloat() {\n \t\tthis.leftMotor.stop();\n \t\tthis.rightMotor.stop();\n \t\tthis.leftMotor.flt(true);\n \t\tthis.rightMotor.flt(true);\n \t}", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "public final void set (Unit u) {\t\t// Just copy the instance\n\t\tmksa = u.mksa ;\n\t\tsymbol = u.symbol ;\n\t\tvalue = u.value ;\n\t\tfactor = u.factor ;\n\t\toffset = u.offset ;\n\t}", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public Scientific() {\n initComponents();\n }", "void setScale(ScaleSelector sensor, int scaleNo);", "private void setSoilMoisture() {\r\n\t\tfinal Random r = new Random();\r\n\t\tthis.soilMoisture = MINMOISTURE + (MAXMOISTURE - MINMOISTURE) * r.nextDouble();\r\n\t}", "@Override\n\tpublic void volume() {\n\t\tsolido.volume = (solido.areaBase * altura) / 3;\n\t}", "public void setSt(int newVal) {\n setSt(new Integer(newVal));\n }", "protected abstract void setValue(Entity e,FloatTrait t,float value);", "public void\nsetShininessElt(float value )\n\n{\n this.coinstate.shininess = value;\n}", "@Test\n public void testSetNumSoin() {\n \n assertNull(soin3.getNumSoin());\n soin3.setNumSoin(\"200\");\n assertNotNull(soin3.getNumSoin());\n assertEquals(\"200\", soin3.getNumSoin());\n \n }", "public void setSignal(double signal) {_signal = signal;}", "public void setValue(double value) {\n this.value = value; \n }" ]
[ "0.69888824", "0.6133527", "0.60320103", "0.6026747", "0.5963726", "0.592148", "0.5892577", "0.5860897", "0.5854807", "0.5845092", "0.58030075", "0.58014196", "0.5788279", "0.5759054", "0.57012695", "0.5689946", "0.56524724", "0.56454414", "0.5607909", "0.552257", "0.5505477", "0.5494223", "0.5468484", "0.5460004", "0.5452809", "0.54379815", "0.5435616", "0.5402862", "0.5401688", "0.5345454", "0.5341917", "0.5341869", "0.5339792", "0.5333592", "0.5332931", "0.53262174", "0.5325068", "0.5323803", "0.5284116", "0.52830875", "0.5281886", "0.5270097", "0.5265276", "0.526089", "0.52533835", "0.52530175", "0.52440655", "0.52324975", "0.5212628", "0.5211977", "0.51988524", "0.5195187", "0.5190585", "0.519006", "0.5182395", "0.5180365", "0.51755", "0.5169319", "0.5166012", "0.5164528", "0.5161456", "0.5161407", "0.5157484", "0.5153552", "0.5151726", "0.5151709", "0.5147506", "0.51437503", "0.51348203", "0.5133285", "0.5130146", "0.5128131", "0.51270723", "0.51120204", "0.510202", "0.50983125", "0.50959826", "0.508625", "0.5074545", "0.5071889", "0.5071753", "0.5056821", "0.5049555", "0.5048725", "0.50486857", "0.5035752", "0.5035046", "0.5033154", "0.50213397", "0.50188917", "0.50163436", "0.501609", "0.5014716", "0.5014371", "0.5011899", "0.5008958", "0.5008286", "0.5004259", "0.5002053", "0.5001724" ]
0.76147175
0
Setzt einen Stein in eine Mulde.
public void setzeStein(int mulde) { mulden[mulde] +=1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}", "public void setKredietLimiet(double kredietlimiet) {\n // method body omitted\n this.kredietlimiet = kredietlimiet;\n }", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "public void set(float signal);", "public abstract void setMontant(Double unMontant);", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}", "public void set(double d);", "public void setzeEigenenStein(int spielzug){\t\t\n\t\t//Setze eigenen Stein\n\t\tfor(int i=0; i<6; i++) {\n\t\t\tif(spielfeld[spielzug][i].equals(\"_\")){\n\t\t\t\tspielfeld[spielzug][i] = eigenerStein;\n\t\t\t\teigenerPunkt.setLocation(spielzug, i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\t\n\t}", "public void setSueldo(float sueldo) {\n\t\tif (sueldo > 0) {\n\t\t\tfloat oldValue = this.sueldo;\n\t\t\ttry {\n\t\t\t\tthis.sueldo = sueldo;\n\t\t\t\tchangeSupport.firePropertyChange(\"sueldo\", oldValue, this.sueldo);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthis.sueldo = oldValue;\n\t\t\t\tSystem.out.println(e.getMessage()); // Imprimir el mensaje mandado desde PanelEmpleado\n\t\t\t}\n\t\t}\n\t}", "public void setSueldo(double sueldo) {\n this.sueldo = sueldo;\n }", "public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}", "public void set(double val);", "public void setPreco(Double preco);", "private void setSilicateMinError (float silicateMin, Exception e, int error) {\n this.silicateMin = silicateMin;\n silicateMinErrorMessage = e.toString();\n silicateMinError = error;\n }", "@Test\n\tpublic void testSetSessieDuur(){\n\t\tdouble expResult = 5;\n\t\tinstance.setSessieDuur(5);\n\t\tassertTrue(expResult == instance.getSessieDuur());\n\t}", "public void setQtyMulPrice(Number value) {\n setAttributeInternal(QTYMULPRICE, value);\n }", "public void setNose(EditableScaledParametrisedSphere nose) {\n\t\tremoveSceneObject(this.nose);\n\t\t\n\t\t// ... and add the new one\n\t\tthis.nose = nose;\n\t\taddSceneObject(nose);\n\t}", "public void setElement(E e){\r\n\t\trotulo = e;\r\n\t}", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "public void setXmultiplier(double setx)\n {\n xmultiplier = setx;\n }", "public void setMultiplier(int newValue) {\n multiplier = newValue;\n }", "public void setSMultiplier(float SMultiplier){\n\t\tthis.SMultiplier = SMultiplier;\n\t}", "public void setLargeur(int largeur) {\r\n this.largeur = largeur;\r\n }", "void setSalario(double salario);", "public final void set (Unit u) {\t\t// Just copy the instance\n\t\tmksa = u.mksa ;\n\t\tsymbol = u.symbol ;\n\t\tvalue = u.value ;\n\t\tfactor = u.factor ;\n\t\toffset = u.offset ;\n\t}", "@Setteri\n public void asetaTunniste(int tunniste)throws IllegalArgumentException{\n if(tunniste>0){\n this.tunniste = tunniste;\n }\n else\n throw new IllegalArgumentException();\n }", "public void setMach(float Mach);", "void setScale(ScaleSelector sensor, int scaleNo);", "public SetFinshMarkFromMes(final String multiplier) {\r\n this.multiplier =multiplier;\r\n }", "public void setJine(float f) {\n\n }", "public void setSecondExtreme(double se){\r\n secondExtreme = se;\r\n }", "private void setNitrateMinError (float nitrateMin, Exception e, int error) {\n this.nitrateMin = nitrateMin;\n nitrateMinErrorMessage = e.toString();\n nitrateMinError = error;\n }", "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public void setTaux(final float newTaux) {\r\n\tthis.taux = newTaux;\r\n}", "public void setSueldoMensual(double sueldoMensual) {\n sueldoMensual = sueldoMensual;\n }", "public void besetze(int spalte, int spieler)\n\t{\n\t\tswitch (spalte)\n\t\t{\n\t\tcase 0:\n\t\t\t_spalte0 = spieler;\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\t_spalte1 = spieler;\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\t_spalte2 = spieler;\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(String.valueOf(spalte));\n\t\t}\n\t}", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}", "public void setSoul(int soul) {\n \t\tthis.soul = soul;\n \t}", "public void setLow(double value){low = value;}", "public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }", "public Solute (double MWA)\n\t\t\t{\n\t\t\t\tthis.MWA=MWA;\t\n\t\t\t}", "public void setFactor(Double factor);", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public void setSpeed(double multiplier);", "public void setStone(int stoneIn){\r\n\t\tstone = stoneIn;\r\n\t}", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "public int getSteine(int mulde) {\n\t\tint steineInMulde = mulden[mulde];\n\t\tmulden[mulde] = 0;\n\t\treturn steineInMulde;\n\t}", "public final void set () {\t\n\t\tsymbol = null;\t\n\t\tmksa = underScore; factor = 1;\n\t\tvalue = 0./0.;\t\t\t// NaN\n\t\toffset = 0.;\n\t}", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public int setSilicateMin(String silicateMin) {\n try {\n setSilicateMin(new Float(silicateMin).floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public void setSetpoint(double setpoint);", "public void setWavelength(float wavelength) {\n/* 61 */ this.wavelength = wavelength;\n/* */ }", "@Test\n public void testSetNumSoin() {\n \n assertNull(soin3.getNumSoin());\n soin3.setNumSoin(\"200\");\n assertNotNull(soin3.getNumSoin());\n assertEquals(\"200\", soin3.getNumSoin());\n \n }", "private Spielfeld(int[] mulden) {\n\t\tthis.mulden = mulden;\n\t}", "void setMinValue();", "public void setKiloWatts(int kiloWatts){\n\tthis.kiloWatts=kiloWatts;\n}", "public abstract void set( int i, int j, double value ) throws JWaveException;", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "public void setKilometraza(double value) {\r\n this.kilometraza = value;\r\n }", "public void seteSix(Integer eSix) {\n this.eSix = eSix;\n }", "public Element set(Element value) {\n if (value instanceof SymmetricLongZrElement)\n this.value = ((SymmetricLongZrElement) value).value;\n else\n this.value = value.toBigInteger().longValue();\n// return this;\n return mod();\n }", "public Milstein(SDE sde) {\n this.sde = sde;\n }", "public void setImag(double imag) {this.imag = imag;}", "public void setStueck(int stueckNeu) {\r\n\t\tstueck = stueckNeu;\r\n\t}", "public void setCurrentSpecialPower(int curS) {\n currentSpecialPower = curS;\n }", "public void setPower(double pow) {\n \tthis.powerIn = pow;\n }", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "@Test\n public void testSetGetEinheit() {\n \n String einheit = \"einheit\";\n messtyp.setEinheit(einheit);\n assertEquals(messtyp.getEinheit(), \"einheit\");\n }", "public float setaMulta(int tempo){\n float multa_aux = valor_multa;\n for(int clk = 0; clk < tempo; clk++){\n multa_aux *= 1.1;\n }\n return multa_aux;\n }", "public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "public void setGivenNum(double input) {\n givenNum = input;\n }", "public void setNumerator(int num)\r\n {\r\n this.numerator = num;\r\n }", "public void mo25064i() {\n if (this.f16593M == 1) {\n this.f16593M = 2;\n }\n }", "public void setA(double a){\n this.a=a;\n }", "public void setKoernerImMaul(int n)\n {\n koernerImMaul=n;\n }", "public Sablier(Piste piste, Moto moto){\n this.min=min;\n this.sec=sec;\n this.piste=piste;\n this.moto=moto;\n }", "public void setMprice(int value) {\r\n this.mprice = value;\r\n }", "private void setMultipliers(double healthMultiplier, double dmgMultiplier, double speedMultiplier, double jmpHeightMultiplier) {\n\n // Health multiplier : set to 1 if input is below 1.\n if (healthMultiplier < 1) {\n this.healthMultiplier = 1;\n } else {\n this.healthMultiplier = healthMultiplier;\n }\n\n // Attack damage multiplier : set to 1 if input is below 1.\n if (dmgMultiplier < 1) {\n this.dmgMultiplier = 1;\n } else {\n this.dmgMultiplier = dmgMultiplier;\n }\n\n // Move speed multiplier : set to 1 if input is below 1.\n if (speedMultiplier < 1) {\n this.speedMultiplier = 1;\n } else {\n this.speedMultiplier = speedMultiplier;\n }\n\n // Jump height multiplier : set to 1 if input is below 1.\n if (jmpHeightMultiplier < 1) {\n this.jmpHeightMultiplier = 1;\n } else {\n this.jmpHeightMultiplier = jmpHeightMultiplier;\n }\n }", "public void setEi(Integer ei) {\n this.ei = ei;\n }", "public abstract double set\r\n ( DataID dID // input\r\n , double value // input\r\n );", "public void setUnit(Unit u)\r\n {\r\n display.setUnit(u);\r\n selectedIndex = -1;\r\n }", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "public final void setMile(Double mile) {\n this.mile = mile;\n }", "public void setWood(int woodIn){\r\n\t\twood = woodIn;\r\n\t}", "@Override\n\tpublic void set(Medicamento novo) {\n\t\t\n\n\t\t\tcon = ConexaoSingleton.getInstance();\n\t\t\ttry {\n\t\t\t\tpst = con.prepareStatement(\"INSERT INTO Medicamento (nome,mg) VALUES (?,?)\");\n\t\t\t\tpst.setString(1, novo.getDesc());\n\t\t\t\tpst.setDouble(2, novo.getmg());\n\t\t\t\tpst.execute();\n\t\t\t}catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t}", "public void setzeGegnerStein(int gegnerZug){\t\n\t\t//Falls eigener Agent startet wird -1 uebergeben\n\t\tif(gegnerZug >= 0){\t\t\t\t\n\t\t\tfor(int i=0; i<6; i++) {\n\t\t\t\tif(spielfeld[gegnerZug][i].equals(\"_\")){\n\t\t\t\t\tspielfeld[gegnerZug][i] = gegnerStein;\n\t\t\t\t\tgegnerPunkt.setLocation(gegnerZug, i);\n\t\t\t\t\tbreak;\n\t\t\t\t} //end if\n\t\t\t} //end for\t\t\t\t\n\t\t} \t\t\n\t}", "protected void setTimeInMagma(double timeinmagma){\n\t\tassert(timeinmagma >= 0);\n\t\tthis.time_in_magma = timeinmagma;\n\t}", "public final void setIdentity() {\n \t\n this.m00 = 1.0F;\n this.m01 = 0.0F;\n this.m02 = 0.0F;\n this.m10 = 0.0F;\n this.m11 = 1.0F;\n this.m12 = 0.0F;\n this.m20 = 0.0F;\n this.m21 = 0.0F;\n this.m22 = 1.0F;\n }", "public void verzinsen(double zinssatz){\n stand = stand-(stand*zinssatz);\n }", "public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "@Test\n\tpublic void testSetLimitX() {\n\t\tPlateauImpl.setPlateau(\"5 5\");\n\t\tassertEquals(5, PlateauImpl.getLimitX());\n\t\tPlateauImpl.setLimitX(3);\n\t\tassertEquals(3, PlateauImpl.getLimitX());\n\t}", "void setExtremeSpikeIncrease(VariableAmount increase);", "protected void setManusia(T Manusia){\r\n this.Manusia = Manusia;\r\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "void setValue(double value);", "public void setToScale(double Sx, double Sy, double Sz) {\r\n\t\tthis.M11 = Sx;\r\n\t\tthis.M22 = Sy;\r\n\t\tthis.M33 = Sz;\r\n\t\tthis.M44 = 1;\r\n\t\tthis.M12 = 0;\r\n\t\tthis.M13 = 0;\r\n\t\tthis.M14 = 0;\r\n\t\tthis.M21 = 0;\r\n\t\tthis.M23 = 0;\r\n\t\tthis.M24 = 0;\r\n\t\tthis.M31 = 0;\r\n\t\tthis.M32 = 0;\r\n\t\tthis.M34 = 0;\r\n\t\tthis.M41 = 0;\r\n\t\tthis.M42 = 0;\r\n\t\tthis.M43 = 0;\r\n\t}" ]
[ "0.6677645", "0.6193271", "0.61443895", "0.5981527", "0.5883582", "0.58803064", "0.5867364", "0.5843471", "0.5760785", "0.5726883", "0.56334436", "0.5628543", "0.56180704", "0.56028813", "0.55654985", "0.5547384", "0.5542777", "0.5531672", "0.55280095", "0.5527271", "0.5496217", "0.5467503", "0.5457236", "0.5454509", "0.5446691", "0.54460955", "0.5415537", "0.54145914", "0.540626", "0.5404674", "0.53997505", "0.53936327", "0.53770196", "0.53701687", "0.5361953", "0.53513557", "0.53431964", "0.5340524", "0.5328133", "0.5324601", "0.5322522", "0.5317405", "0.5317298", "0.5308601", "0.52976245", "0.5283047", "0.52653277", "0.52638304", "0.5262055", "0.52588475", "0.5252666", "0.5249335", "0.5247931", "0.5247269", "0.5244545", "0.52434915", "0.524143", "0.5231242", "0.5217002", "0.521506", "0.5214616", "0.52127343", "0.51987445", "0.51955616", "0.5193636", "0.51856875", "0.5179934", "0.5179636", "0.51787305", "0.5165271", "0.5163635", "0.5163172", "0.51606584", "0.51520133", "0.51464903", "0.5136496", "0.5126438", "0.5125159", "0.51245725", "0.51134527", "0.5112225", "0.5111111", "0.51090956", "0.51046455", "0.51045203", "0.51029235", "0.5098688", "0.50950795", "0.5091385", "0.50912184", "0.50825614", "0.5077551", "0.5076398", "0.5065469", "0.5064291", "0.5060465", "0.505838", "0.50583506", "0.50563693", "0.5053223" ]
0.7137864
0
Gibt die Anzahl der Steine innerhalb einer uebergebenen Mulde zurueck.
public int getAnzahlSteine(int mulde) { return mulden[mulde]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "Sum getMultiplier();", "private void mul() {\n\n\t}", "Double getMultiplier();", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "public double getMultiplier() {\n\t\t\tint currentWidth = Display.getWidth();\n\t\t\treturn currentWidth / (double) width;\n\t\t}", "public double getMultiplier() {\r\n return multiplier;\r\n }", "public int getMultiplier() {\n return multiplier;\n }", "public int getSizeMultipler() {\n return (int) Math.ceil(numberOfWordsOriginal / Parameters.SIZE_MULTIPLIER);\n }", "public float sizeMultiplier();", "public static int size_sum_e() {\n return (32 / 8);\n }", "public void multiply() {\n\t\t\n\t}", "public int[] getMulden() {\n\t\treturn mulden;\n\t}", "private static int multAndDivFixer(int size){\n return size;\n }", "public double getFactor() {\n return ((double) multiplier) / ((double) divisor);\n }", "@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }", "public double masse () {return this.volume()*this.element.masseVolumique();}", "abstract void mulS();", "public int getSteineAufSpielfeld() {\n\t\tint steineAufDemSpielfeld = 0;\n\t\tfor (int i = 0; i<mulden.length;i++) {\n\t\t\tsteineAufDemSpielfeld += mulden[i];\n\t\t}\n\t\t\n\t\treturn steineAufDemSpielfeld;\n\t}", "public double getMultiplier() {\n return genericModifier.getMultiplier();\n }", "public int rollMult(){\r\n\t\treturn dieClass.rollMultiplier();\r\n\t}", "public void setzeStein(int mulde) {\n\t\tmulden[mulde] +=1;\n\t}", "public double nextDouble() {\r\n\r\n\t\t//System.out.println(\"cur v\"+curVal);\r\n\t\tcurVal = (long) Math.pow(curVal, 2);\r\n\t\t//System.out.println(\"sq \"+curVal);\r\n\t\t\r\n\t\tLong l = new Long(curVal);\r\n\t\tStringBuffer sb = new StringBuffer(l.toString());\r\n\t\twhile(sb.length() < size){\t\t\t\r\n\t\t\tsb.append(\"7\");\r\n\t\t}\r\n\t\tint zeros = sb.indexOf(\"00\");\t\t\r\n\t\tString s = sb.toString();\r\n\t\tif(-1 != zeros){\r\n\t\t\ts = s.replace('0', '3');\t\t\r\n\t\t}\r\n\t\t//System.out.println(\"padded \"+s);\r\n\t\t\r\n\t\tint start = (s.length() - size) / 2;\t\t\r\n\t\t//System.out.println(\"start \"+start+\" start+s \"+(start+size));\r\n\t\tcurVal = Long.parseLong(s.substring(start, start+size));\r\n\t\t//System.out.println(\"next \"+curVal);\r\n\t\t\r\n\t\treturn (double)curVal/sizeMax;\r\n\t}", "public void mul()\n\t{\n\t\t\n\t\tSystem.out.println(\"Hey I am in base class********** and addition is 2500\");\n\t}", "@Override\n\tpublic void mul(double dx, double dy) {\n\t\t\n\t}", "public int Suma(){\r\n for (int i = 0; i < 9; i++) {\r\n mult = convert()[i] * arregloCo[i];\r\n // Si la suma e mayor o igual a 10 se le resta 9\r\n if (mult >= 10){\r\n mult = mult - 9;\r\n }\r\n suma = suma + mult;\r\n }\r\n return suma;\r\n }", "@Override\n\tpublic double mangeViande() {\n\t\treturn quantiteViande*this.getPoids();\n\t}", "public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "public Scalar mul(Scalar s) {\n\t\treturn new RealScalar(getValue() * ((RealScalar)s).getValue());\n\t}", "public Inatnum multiply(Inatnum a) {\n Inatnum zero = new zeronatnum(); // we need a new zero natural number for our res\n Inatnum res = zero;// this is our res value where we store our information, it needs to start at 0\n //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1)\n for(int i = this.getVal(); i>0;i--) {// setting our i value to our this and if its greater than zero decrement by 1\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()\n\t\t\tres = res.add(a);//now we save our res value as the previous res value plus a. we do this as many times as we are multiplying by. So if it is 3 times\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()-1) \n \t\t\t//i-- => i = this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1) \n\t\t\t // 4 then we are adding 4 3 times\n }\n\t\t\t //INV: i<0 && i-1 < this.getval() ==> i ==0 && res = a^i ==> i=this.getval()\n //Termination Argument: i starts at this.getval(), i decrements each time through the loop\n\t\t\t\t\t\t return res;// we need to return our res value that holds our current value.\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "int getRatioQuantity();", "public double mag() {\n return Math.sqrt(mag2());\n }", "public static double cubicMetreToMillilitres(double num) { return (num*Math.exp(6)); }", "public AncientEgyptianMultiplication( ) {\r\n }", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "public static double multi() {\n System.out.println(\"Enter multiplier\");\n double a = getNumber();\n System.out.println(\"Enter multiplicand\");\n double b = getNumber();\n\n return a * b;\n }", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}", "@Override\r\n\t\tpublic int cube() {\n\t\t\treturn width*width*width;\r\n\t\t}", "public long getDenominator();", "public Number getQtyMulPrice() {\n return (Number)getAttributeInternal(QTYMULPRICE);\n }", "static void multiplier() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 * nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" * \" + nb2 + \" = \" + resultat);\n\t}", "public final double getScaler()\n { \n return Math.pow(10, m_Scaler);\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }", "public float getPowerMultiplier() { return 0.5F; }", "public int getSingles() {\n return h-(d+t+hr);\n }", "@Override\npublic void mul(int a, int b) {\n\t\n}", "double getStep() {\n\t\t\treturn scale;\n\t\t}", "float getCpMultiplier();", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "public short getUnitsPerEm() throws PDFNetException {\n/* 843 */ return GetUnitsPerEm(this.a);\n/* */ }", "public double berechneVolumen() {\n\t\treturn laenge * breite * hoehe;\n\t}", "public int getBlockSize() { return (int)Math.sqrt(this.size); }", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public static int size_sum_a() {\n return (32 / 8);\n }", "private static native double mul(int n);", "public int scale(int original);", "@JsonIgnore\r\n public Double priceReduction() {\n if (wasPrice == null || nowPrice == null)\r\n return 0D;\r\n\r\n return wasPrice - nowPrice;\r\n }", "@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}", "private static double mediana(List<Double> valores){\n\t\tdouble mediana;\n\t\tif(valores.size()%2==0){\n\t\t\tmediana = (valores.get(valores.size()/2) + valores.get(valores.size()/2-1))/2;\n\t\t}else{\n\t\t\tmediana = valores.get(valores.size()/2);\n\t\t}\n\t\treturn mediana;\n\t}", "public int getFactor() { return this.factor; }", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "public long getNumerator();", "public static double feetPerSecondToCentiMetresPerSecond(double num) { return (num*30.48); }", "public static int sizeBits_sum_e() {\n return 32;\n }", "public int getDenominator() { \n return denominator; \n }", "private Spielfeld(int[] mulden) {\n\t\tthis.mulden = mulden;\n\t}", "public double calcularPerimetro() {\n\t\treturn 2 * (base + altura);\n\t}", "public double modulusSquared() { \n\t\tdouble result = this.getReal()*this.getReal()+this.getImag()*this.getImag();\t\n\t\treturn result;\n\t}", "public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }", "public LMUL() {\n super(InstructionOpCodes.LMUL, 1);\n }", "public int getUnits()\n {\n return m_cCurUnits;\n }", "public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "private int getDoubleSize() {\n int oddNewSize = (sizeArray * 2) + 1;\n return primes.getNextPrime(oddNewSize);\n }", "int getWrongScale();", "@Override\r\n\tpublic double getPregasCutaneas() {\r\n\r\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic double mangeLegumes() {\n\t\treturn quantiteLegumes*this.getPoids();\n\t}", "public static void main(String args[]) {\n\t\tBigDecimal start = new BigDecimal(\"2658455991569831744654692615953842176\");\n//\t\tBigDecimal start = new BigDecimal(\"8128\");\n//\t\tBigDecimal dd = start.divide(next, 0);\n//\t\tSystem.out.println(dd);\n\t\t\n\t\tList<BigDecimal> fs = new PerfectNumber().factor2(start, 10, null);\n\t\tBigDecimal multiply = new BigDecimal(1);\n\t\tBigDecimal sum = new BigDecimal(0);\n\t\tfor (BigDecimal d : fs) {\n\t\t\tSystem.out.println(d);\n\t\t\tmultiply = multiply.multiply(d);\n\t\t\tsum = sum.add(d);\n\t\t}\n\t\tSystem.out.println(\"sum = \" + sum);\n\t\tSystem.out.println(\"multiply = \" + multiply);\n\t}", "public float getSMultiplier(){\n\t\treturn this.SMultiplier;\n\t}", "public double getSd() {\n\t\tif (n <= 1)\n\t\t\treturn Double.NaN;\n\t\treturn Math.sqrt(s / (n - 1));\n\t}", "public double media(){\n double soma=0;\n for (int i = 0; i < lista.size(); i++) {\n soma+=lista.get(i).getMedia();\n }\n return soma/lista.size();\n }", "private int quantizeKurtosis(double spectralKurtosis) {\n\t\treturn (int) (spectralKurtosis / 100) + 1;\n\t}", "public final void mult (double s) throws ArithmeticException {\n\t\tif (((mksa&_abs)!=0) && (s != 1)) throw new \t// On a date\n\t\tArithmeticException(\"****Unit.mult on a date!\");\n\t\tvalue *= s;\n\t\t// Offset not changed.\n\t}", "public static double fluidOuncesToMillilitres(double num) { return (num*29.574); }", "public static int buggyMultiplyThrough(List<Integer> numbers) {\n return numbers.stream().reduce(5, (acc, x) -> x * acc);\n }", "public double getSquareLength() {\n return r * r + i * i;\n }", "public double peri() {\n\t\treturn 2*(width+length);\n\t}", "public float lengthSquared ( );", "public static double getFactorIO() {\n return (moreFactorIO_ - lessFactorIO_) / 2;\n }", "public double imcD(){\n\t\treturn weight/(height*height);\r\n\t}", "public int getScale() {\r\n return scale;\r\n }", "public int getNumerator()\r\n {\r\n return numerator;\r\n }", "static void productoEscalarMatriz() {\r\n\r\n System.out.println(\"PRODUCTO ESCALAR X MATRIZ \\n\");\r\n setup(false);\r\n String valor = inputDialog(\"Inserte un escalar\", \"Escalar\", JOptionPane.INFORMATION_MESSAGE);\r\n int escalar = Integer.parseInt(valor);\r\n matrizA.productoEscalarMatriz(escalar);\r\n messageDialog(\"La matriz resultante al multiplicar por el escalar \" + escalar + \", es: \\n\" + matrizA.datosMatrizNumeros(), \"Producto escalar\", 3);\r\n\r\n }", "@Override\n\tpublic double nextDouble() {\n\t\t\n\t\tdouble sum = 0;\n\t\t\n\t\tfor(int i = 0 ; i < 4 ; i++ )\n\t\t{\n\t\t\tsum+= e.nextDouble();\n\t\t}\n\t\t\n\t\treturn sum;\n\n\t}", "public static int p_mult(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"please put the how many numbers you want to multiply:\");\n int v_mult_numbers = keyboard.nextInt();\n int v_total_mult= 0;\n for (int i=1; i<=v_mult_numbers;i=i+1){\n System.out.println(\"please input the \"+i+\" number: \");\n int v_mult_num = keyboard.nextInt();\n v_total_mult= v_total_mult*v_mult_num;\n }\n return v_total_mult;\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}" ]
[ "0.6612502", "0.6514843", "0.6150228", "0.60679823", "0.60452205", "0.59778327", "0.59441286", "0.5921085", "0.5881295", "0.58225775", "0.57257915", "0.571477", "0.5687842", "0.5665055", "0.565099", "0.56463176", "0.564271", "0.5636543", "0.5633635", "0.55711854", "0.5467157", "0.5412182", "0.54103076", "0.53959936", "0.5395321", "0.5378179", "0.53608143", "0.5330016", "0.53293616", "0.53283674", "0.53139806", "0.5298734", "0.5297366", "0.52703136", "0.52608234", "0.52481776", "0.5243287", "0.52406245", "0.5237652", "0.5220105", "0.52088934", "0.52078104", "0.5205367", "0.5201496", "0.51982635", "0.5191257", "0.51911116", "0.5188213", "0.51819146", "0.5180352", "0.5169902", "0.5164794", "0.51615864", "0.5158197", "0.51529986", "0.51508856", "0.51456976", "0.5145333", "0.5142045", "0.51383615", "0.51367646", "0.51303685", "0.51268387", "0.5126151", "0.51247895", "0.51244915", "0.5124036", "0.51128703", "0.5107314", "0.5098562", "0.5098348", "0.50980264", "0.5094", "0.5090533", "0.5082034", "0.50777644", "0.50719696", "0.5065812", "0.5064898", "0.5062893", "0.50605816", "0.5058618", "0.5053232", "0.5052277", "0.50495553", "0.5049223", "0.5047391", "0.5038756", "0.50383425", "0.5036625", "0.503483", "0.503129", "0.50297827", "0.50224227", "0.5022324", "0.5013618", "0.50129294", "0.50128025", "0.5010623", "0.5010147" ]
0.62366104
2
Gibt alle Mulden als intArray zurueck.
public int[] getMulden() { return mulden; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int[] processArray(int[] numberArray) {\n for (int i : numberArray) {\n for (int j = 0; j < numberArray.length; j++) {\n// some nonsense calculation to make the CPU tick a bit\n numberArray[j] *= i;\n }\n }\n return numberArray;\n }", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "static int[] modifiedArrayWithoutDivision(int[] original) {\n\t\tint[] newArr = new int[original.length];\n\t\tint tempProduct = 1;\n\t\t\n\t\t// For each index in new array\n\t\tfor (int i = 0; i < newArr.length; i++) {\n\t\t\t// For each int in original array\n\t\t\tfor (int j = 0; j < original.length; j++) {\n\t\t\t\t// If not the current index, multiply number by tempProduct\n\t\t\t\tif (j != i) {\n\t\t\t\t\ttempProduct *= original[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewArr[i] = tempProduct; // Store product in current array index\n\t\t\ttempProduct = 1; // Reset product\n\t\t}\n\t\treturn newArr;\n\t}", "private static int[] multiply(int[] x, int[] y, int[] z)\n {\n int i = z.length;\n\n if (i < 1)\n {\n return x;\n }\n\n int xBase = x.length - y.length;\n\n for (;;)\n {\n long a = z[--i] & IMASK;\n long val = 0;\n\n for (int j = y.length - 1; j >= 0; j--)\n {\n val += a * (y[j] & IMASK) + (x[xBase + j] & IMASK);\n\n x[xBase + j] = (int)val;\n\n val >>>= 32;\n }\n\n --xBase;\n\n if (i < 1)\n {\n if (xBase >= 0)\n {\n x[xBase] = (int)val;\n }\n break;\n }\n\n x[xBase] = (int)val;\n }\n\n return x;\n }", "private int[] multiply(int[] x, int[] y, int[] z)\n {\n for (int i = z.length - 1; i >= 0; i--)\n {\n long a = z[i] & IMASK;\n long value = 0;\n\n for (int j = y.length - 1; j >= 0; j--)\n {\n value += a * (y[j] & IMASK) + (x[i + j + 1] & IMASK);\n\n x[i + j + 1] = (int)value;\n\n value >>>= 32;\n }\n\n x[i] = (int)value;\n }\n\n return x;\n }", "private void mul() {\n\n\t}", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "static int[] modifiedArrayWithDivision(int[] original) {\n\t\tint[] newArr = new int[original.length];\n\t\tint totalProduct = 1;\n\t\t\n\t\t// Get the product of all numbers in array\n\t\tfor (int i = 0; i < original.length; i++) {\n\t\t\ttotalProduct *= original[i];\n\t\t}\n\t\t\n\t\t// Divide product by int at index to determine final array\n\t\tfor (int i = 0; i < newArr.length; i++) {\n\t\t\tnewArr[i] = totalProduct / original[i];\n\t\t}\n\t\t\n\t\treturn newArr;\n\t}", "@Override\n public IntType multiplyToInt(IntType multiplicand) {\n int intMultiplier = this.asInt().getValue();\n int intMultiplicand = multiplicand.getValue();\n return TypeFactory.getIntType(intMultiplicand * intMultiplier);\n }", "public int[] squareArrayValues(int[] arr){\n for(int i = 0; i < arr.length; i++){\n arr[i] = arr[i] * arr[i];\n }\n return arr;\n }", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "@Override\npublic void mul(int a, int b) {\n\t\n}", "static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }", "@Test\n public void testMultiplyAll() {\n System.out.println(\"multiplyAll\");\n int multiplier = 0;\n int[] numbers = null;\n int[] expResult = null;\n int[] result = ArrayExerciseB.multiplyAll(multiplier, numbers);\n assertArrayEquals(expResult, result);\n }", "@Test\n public void testFactor_intArr_intArr() {\n System.out.println(\"factor\");\n int[] number = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n int[] weighting = new int[]{2, 1, 2, 1, 2, 1, 2, 1, 2};\n AbstractMethod instance = new AbstractMethodImpl();\n int[] expResult = new int[]{0, 1, 4, 3, 8, 5, 12, 7, 16, 9};\n int[] result = instance.factor(number, weighting);\n assertArrayEquals(expResult, result);\n\n }", "@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}", "@Override\r\n\tpublic int multi(int x, int y) {\n\t\treturn x * y;\r\n\t}", "public static final int m64616b(@C6003d int[] iArr, @C6003d C6085q<? super Integer, ? super Integer, ? super Integer, Integer> qVar) {\n C14445h0.m62478f(iArr, \"$receiver\");\n C14445h0.m62478f(qVar, \"operation\");\n int s = m65309s(iArr);\n if (s >= 0) {\n int i = iArr[s];\n for (int i2 = s - 1; i2 >= 0; i2--) {\n i = ((Number) qVar.mo24963b(Integer.valueOf(i2), Integer.valueOf(iArr[i2]), Integer.valueOf(i))).intValue();\n }\n return i;\n }\n throw new UnsupportedOperationException(\"Empty array can't be reduced.\");\n }", "static Integer[] maximumProductOfAllEntriesButOne_ExceptI(Integer array[]) {\n Integer result[] = new Integer[array.length];\n result[0] = 1;\n\n for (int i = 1; i < array.length; i++) {\n result[i] = array[i - 1] * result[i - 1];\n }\n\n Integer suffix = 1;\n\n for (int i = array.length - 2; i >= 0; i--) {\n suffix *= array[i + 1];\n result[i] *= suffix;\n }\n\n return result;\n }", "void mo12207a(int[] iArr);", "public static int[][] multiply(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n int[] tempRow = new int[x.length];\n int[] tempCol = new int[x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n //make 2 array then multiple respective number and add them up\n for (int k = 0; k < x.length; k++) {\n tempRow[k] = x[i][k];\n }\n for (int k = 0; k < x.length; k++) {\n tempCol[k] = y[k][j];\n }\n for (int k = 0; k < x.length; k++) {\n result[i][j] += tempRow[k]*tempCol[k];\n }\n }\n }\n return result;\n }", "static int mulAdd(int[] out, int[] in, int offset, int len, int k) {\n long kLong = k & LONG_MASK;\n long carry = 0;\n\n offset = out.length-offset - 1;\n for (int j=len-1; j >= 0; j--) {\n long product = (in[j] & LONG_MASK) * kLong +\n (out[offset] & LONG_MASK) + carry;\n out[offset--] = (int)product;\n carry = product >>> 32;\n }\n return (int)carry;\n }", "private static int[] square(int[] w, int[] x)\n {\n // Note: this method allows w to be only (2 * x.Length - 1) words if result will fit\n// if (w.length != 2 * x.length)\n// {\n// throw new IllegalArgumentException(\"no I don't think so...\");\n// }\n\n long c;\n\n int wBase = w.length - 1;\n\n for (int i = x.length - 1; i != 0; --i)\n {\n long v = x[i] & IMASK;\n\n c = v * v + (w[wBase] & IMASK);\n w[wBase] = (int)c;\n c >>>= 32;\n\n for (int j = i - 1; j >= 0; --j)\n {\n long prod = v * (x[j] & IMASK);\n\n c += (w[--wBase] & IMASK) + ((prod << 1) & IMASK);\n w[wBase] = (int)c;\n c = (c >>> 32) + (prod >>> 31);\n }\n\n c += w[--wBase] & IMASK;\n w[wBase] = (int)c;\n\n if (--wBase >= 0)\n {\n w[wBase] = (int)(c >> 32);\n }\n wBase += i;\n }\n\n c = x[0] & IMASK;\n\n c = c * c + (w[wBase] & IMASK);\n w[wBase] = (int)c;\n\n if (--wBase >= 0)\n {\n w[wBase] += (int)(c >> 32);\n }\n\n return w;\n }", "private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }", "public void setArray(int[] paramArrayOfInt)\n/* */ {\n/* 758 */ if (paramArrayOfInt == null) {\n/* 759 */ setNullArray();\n/* */ }\n/* */ else {\n/* 762 */ setArrayGeneric(paramArrayOfInt.length);\n/* */ \n/* 764 */ this.elements = new Object[this.length];\n/* */ \n/* 766 */ for (int i = 0; i < this.length; i++) {\n/* 767 */ this.elements[i] = Integer.valueOf(paramArrayOfInt[i]);\n/* */ }\n/* */ }\n/* */ }", "abstract void mulS();", "private static native double mul(int n);", "public static final int m64995e(@C6003d int[] iArr, @C6003d C6084p<? super Integer, ? super Integer, Integer> pVar) {\n C14445h0.m62478f(iArr, \"$receiver\");\n C14445h0.m62478f(pVar, \"operation\");\n int s = m65309s(iArr);\n if (s >= 0) {\n int i = s - 1;\n int i2 = iArr[s];\n while (i >= 0) {\n int i3 = i - 1;\n i2 = ((Number) pVar.mo24962d(Integer.valueOf(iArr[i]), Integer.valueOf(i2))).intValue();\n i = i3;\n }\n return i2;\n }\n throw new UnsupportedOperationException(\"Empty array can't be reduced.\");\n }", "private static int[] getSquersArray(int[] nums) {\n\t\tint[] seqNums = new int[nums.length];\n\t\tint i = 0;\n\t\tfor (int num : nums) {\n\t\t\tseqNums[i] = num * num;\n\t\t\ti++;\n\t\t}\n\t\treturn seqNums;\n\t}", "public int convertValues(int[] valueArray, int[][] matrixCID){\n\t\tint value = cidToLength(valueArray[0], matrixCID);\n\t\tfor(int i = 1; i < valueArray.length; i++){\n\t\t\tif(valueArray[i] != 0){\n\t\t\t\tvalue -= cidToLength(valueArray[i], matrixCID); //removes the CID lengths the code clone contains\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}", "public static void multiply(int[] n1, int d, int[] result) {\n\t\tint[]n2 = new int[n1.length];\n\t\tn2[n2.length-1] = d;\n\t\tmultiply (n2, n1, result);\n\t}", "public HugeUInt multiply(int arg) {\r\n HugeUInt result = new HugeUInt(this);\r\n int cur = 0;\r\n for (int i = 0; i < getSize(); i++) {\r\n int m = array[i] * arg + cur;\r\n cur = m / 10;\r\n result.array[i] = m % 10;\r\n }\r\n int[] tmp = new int[10];\r\n int ctr = 0;\r\n while (cur > 0) {\r\n tmp[ctr] = cur % 10;\r\n cur /= 10;\r\n ctr++;\r\n }\r\n int[] mult = new int[ctr+getSize()];\r\n if(ctr > 0){\r\n \tfor(int i = 0;i<getSize();i++){\r\n \t\tmult[i] = result.array[i];\r\n \t}\r\n \tfor(int i = 0;i<ctr;i++){\r\n \t\tmult[i+getSize()] = tmp[i];\r\n \t}\r\n \tresult.array = mult;\r\n }\r\n result.trim();\r\n return result;\r\n }", "public abstract ArrayList<Object> calculateTransform(ArrayList<Integer> arr);", "public int[][][] testIntArray(int[][][] in) throws java.rmi.RemoteException {\n for (int i=0; i < in.length; i++) {\n int[][] array2 = in[i];\n if (array2 != null)\n for (int j=0; j < array2.length; j++) {\n int[] array3 = array2[j];\n if (array3 != null)\n for (int k=0; k <array3.length; k++) {\n if (array3[k] == i + 10*j + 100*k)\n array3[k] += 1000;\n }\n }\n }\n return in;\n }", "int product(int[] nums) {\n int total = 1;\n for (int n: nums) {\n total = total * n;\n }\n return total; \n }", "public MHKEncryption_Array(){\n\t\t\tBigInteger wgenerator = new BigInteger(\"2\");\n\t\t\twsum = BigInteger.ZERO;\n\t\t\tfor(int i = 0;i < 640;i++){\n\t\t\t\twgenerator = wgenerator.multiply(new BigInteger(\"2\")).subtract(BigInteger.ONE); \n\t\t\t\tw[i] = wgenerator;\n\t\t\t\twsum = wsum.add(wgenerator);\n\t\t\t}\n\t}", "private int[] inc(int[] a)\n {\n int tI = a.length - 1;\n long m = 0;\n\n m = (((long)a[tI]) & IMASK) + 1L;\n a[tI--] = (int)m;\n m >>>= 32;\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }", "private int[] inc(int[] a)\n {\n int tI = a.length - 1;\n long m = 0;\n\n m = (((long)a[tI]) & IMASK) + 1L;\n a[tI--] = (int)m;\n m >>>= 32;\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }", "public void multiply() {\n\t\t\n\t}", "@Override\r\n\tpublic int mulNo(int a, int b) {\n\t\treturn a*b;\r\n\t}", "int[] toArray();", "public static int[] mul(int[][] in, int[] vec) {\n int[] out = new int[vec.length];\n\n for (int i = 0; i < NEURONS_COUNT; i++) {\n for (int j = 0; j < NEURONS_COUNT; j++) {\n out[i] += in[i][j] * vec[j];\n }\n }\n\n return out;\n }", "public static int[] rightElementsProducts(int[] arr) {\n\t\tint[] rightElementsProductsArr = new int[arr.length];\n\t\tint product = 1;\n\t\tfor(int i = arr.length-1; i >=0; i--) {\n\t\t\tproduct = product * arr[i];\n\t\t\trightElementsProductsArr[i] = product;\n\t\t}\n\t\treturn rightElementsProductsArr;\n\t}", "public int multi(Integer x, Integer y) {\n\t\treturn x*y;\n\t}", "public static int[] volteaArrayInt(int array[]) {\n int aux[] = new int[array.length];\n int cont = aux.length;\n for (int n : array) {\n aux[--cont] = n;\n }\n return aux;\n }", "@Override\n\tpublic int mult(int val1, int val2) {\n\t\treturn val1 * val2;\n\t}", "private int[] process(int[] ip)\n\t{\n\t\tint[] result = new int[ip.length];\n\t\t//first multiply all numbers\n\t\tint x = ip[0];\n\t\tfor(int i=0; i<ip.length; i++)\n\t\t{\n\t\t\tx = x*ip[i];\n\t\t}\n\t\t\n\t\tfor(int i=0;i<ip.length; i++)\n\t\t{\n\t\t\tresult[i] = x / ip[i];\n\t\t}\n\t\treturn result;\n\t}", "public static final int m64252L(@C6003d int[] iArr) {\n C14445h0.m62478f(iArr, \"$receiver\");\n int i = 0;\n for (int i2 : iArr) {\n i += i2;\n }\n return i;\n }", "public abstract int[] toIntArray();", "public static final int[] get_MULTIPLY(){\n\t\treturn get_MINUS();\n\t}", "public static void times (int[] n1, int[] n2, int[] result) {\n\t\tint pos = result.length-1;\n\n\t\t// clear all values....\n\t\tfor (int i = 0; i < result.length; i++) { result[i] = 0; }\n\n\t\tfor (int m = n1.length-1; m>=0; m--) {\n\t\t\tint iPos = pos - (n1.length-1 - m);\n\t\t\tint iPosSubOne = iPos-1;\n\t\t\tif (n1[m] == 0) {\n\t\t\t\tcontinue; // skip zero multiplier! Won't affect total.\n\t\t\t}\n\n\t\t\tfor (int n = n2.length-1; n>=0; n--, iPos--,iPosSubOne--) {\n\t\t\t\tint prod = n1[m]*n2[n];\n\t\t\t\t\n\t\t\t\t// GENERATED-BEGIN\n\t\t\t\tswitch (prod) {\n\t\t\t\tcase 0: break;\n\t\t\t\tcase 1: result[iPos] += 1;break;\n\t\t\t\tcase 2: result[iPos] += 2;break;\n\t\t\t\tcase 3: result[iPos] += 3;break;\n\t\t\t\tcase 4: result[iPos] += 4;break;\n\t\t\t\tcase 5: result[iPos] += 5;break;\n\t\t\t\tcase 6: result[iPos] += 6;break;\n\t\t\t\tcase 7: result[iPos] += 7;break;\n\t\t\t\tcase 8: result[iPos] += 8;break;\n\t\t\t\tcase 9: result[iPos] += 9;break;\n\t\t\t\tcase 10: result[iPosSubOne] += 1;break;\n\t\t\t\tcase 11: result[iPos] += 1;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 12: result[iPos] += 2;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 13: result[iPos] += 3;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 14: result[iPos] += 4;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 15: result[iPos] += 5;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 16: result[iPos] += 6;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 17: result[iPos] += 7;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 18: result[iPos] += 8;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 19: result[iPos] += 9;result[iPosSubOne] += 1;break;\n\t\t\t\tcase 20: result[iPosSubOne] += 2;break;\n\t\t\t\tcase 21: result[iPos] += 1;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 22: result[iPos] += 2;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 23: result[iPos] += 3;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 24: result[iPos] += 4;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 25: result[iPos] += 5;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 26: result[iPos] += 6;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 27: result[iPos] += 7;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 28: result[iPos] += 8;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 29: result[iPos] += 9;result[iPosSubOne] += 2;break;\n\t\t\t\tcase 30: result[iPosSubOne] += 3;break;\n\t\t\t\tcase 31: result[iPos] += 1;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 32: result[iPos] += 2;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 33: result[iPos] += 3;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 34: result[iPos] += 4;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 35: result[iPos] += 5;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 36: result[iPos] += 6;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 37: result[iPos] += 7;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 38: result[iPos] += 8;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 39: result[iPos] += 9;result[iPosSubOne] += 3;break;\n\t\t\t\tcase 40: result[iPosSubOne] += 4;break;\n\t\t\t\tcase 41: result[iPos] += 1;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 42: result[iPos] += 2;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 43: result[iPos] += 3;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 44: result[iPos] += 4;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 45: result[iPos] += 5;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 46: result[iPos] += 6;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 47: result[iPos] += 7;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 48: result[iPos] += 8;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 49: result[iPos] += 9;result[iPosSubOne] += 4;break;\n\t\t\t\tcase 50: result[iPosSubOne] += 5;break;\n\t\t\t\tcase 51: result[iPos] += 1;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 52: result[iPos] += 2;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 53: result[iPos] += 3;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 54: result[iPos] += 4;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 55: result[iPos] += 5;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 56: result[iPos] += 6;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 57: result[iPos] += 7;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 58: result[iPos] += 8;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 59: result[iPos] += 9;result[iPosSubOne] += 5;break;\n\t\t\t\tcase 60: result[iPosSubOne] += 6;break;\n\t\t\t\tcase 61: result[iPos] += 1;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 62: result[iPos] += 2;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 63: result[iPos] += 3;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 64: result[iPos] += 4;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 65: result[iPos] += 5;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 66: result[iPos] += 6;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 67: result[iPos] += 7;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 68: result[iPos] += 8;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 69: result[iPos] += 9;result[iPosSubOne] += 6;break;\n\t\t\t\tcase 70: result[iPosSubOne] += 7;break;\n\t\t\t\tcase 71: result[iPos] += 1;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 72: result[iPos] += 2;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 73: result[iPos] += 3;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 74: result[iPos] += 4;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 75: result[iPos] += 5;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 76: result[iPos] += 6;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 77: result[iPos] += 7;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 78: result[iPos] += 8;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 79: result[iPos] += 9;result[iPosSubOne] += 7;break;\n\t\t\t\tcase 80: result[iPosSubOne] += 8;break;\n\t\t\t\tcase 81: result[iPos] += 1;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 82: result[iPos] += 2;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 83: result[iPos] += 3;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 84: result[iPos] += 4;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 85: result[iPos] += 5;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 86: result[iPos] += 6;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 87: result[iPos] += 7;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 88: result[iPos] += 8;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 89: result[iPos] += 9;result[iPosSubOne] += 8;break;\n\t\t\t\tcase 90: result[iPosSubOne] += 9;break;\n\t\t\t\tcase 91: result[iPos] += 1;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 92: result[iPos] += 2;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 93: result[iPos] += 3;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 94: result[iPos] += 4;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 95: result[iPos] += 5;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 96: result[iPos] += 6;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 97: result[iPos] += 7;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 98: result[iPos] += 8;result[iPosSubOne] += 9;break;\n\t\t\t\tcase 99: result[iPos] += 9;result[iPosSubOne] += 9;break;\n\t\t\t\t};\n\t\t\t\tswitch (result[iPos]) {\n\t\t\t\tcase 0: break; \n\t\t\t\tcase 1: break; \n\t\t\t\tcase 2: break; \n\t\t\t\tcase 3: break; \n\t\t\t\tcase 4: break; \n\t\t\t\tcase 5: break; \n\t\t\t\tcase 6: break; \n\t\t\t\tcase 7: break; \n\t\t\t\tcase 8: break; \n\t\t\t\tcase 9: break; \n\t\t\t\tcase 10: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 11: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 12: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 13: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 14: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 15: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 16: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 17: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 18: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 19: result[iPosSubOne] += 1; result[iPos] -= 10; break; \n\t\t\t\tcase 20: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 21: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 22: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 23: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 24: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 25: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 26: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 27: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 28: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 29: result[iPosSubOne] += 2; result[iPos] -= 20; break; \n\t\t\t\tcase 30: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 31: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 32: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 33: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 34: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 35: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 36: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 37: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 38: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 39: result[iPosSubOne] += 3; result[iPos] -= 30; break; \n\t\t\t\tcase 40: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 41: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 42: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 43: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 44: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 45: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 46: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 47: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 48: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 49: result[iPosSubOne] += 4; result[iPos] -= 40; break; \n\t\t\t\tcase 50: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 51: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 52: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 53: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 54: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 55: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 56: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 57: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 58: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 59: result[iPosSubOne] += 5; result[iPos] -= 50; break; \n\t\t\t\tcase 60: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 61: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 62: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 63: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 64: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 65: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 66: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 67: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 68: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 69: result[iPosSubOne] += 6; result[iPos] -= 60; break; \n\t\t\t\tcase 70: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 71: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 72: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 73: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 74: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 75: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 76: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 77: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 78: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 79: result[iPosSubOne] += 7; result[iPos] -= 70; break; \n\t\t\t\tcase 80: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 81: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 82: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 83: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 84: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 85: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 86: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 87: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 88: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 89: result[iPosSubOne] += 8; result[iPos] -= 80; break; \n\t\t\t\tcase 90: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 91: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 92: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 93: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 94: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 95: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 96: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 97: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 98: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\tcase 99: result[iPosSubOne] += 9; result[iPos] -= 90; break; \n\t\t\t\t};\n\t\t\t\t\n\t\t\t\t// GENERATED-END\n\t\t\t}\n\t\t}\n\t}", "public int mul(int i,int j){\n\t\treturn i*j;\n\t}", "public static final int m64920d(@C6003d int[] iArr, @C6003d C6084p<? super Integer, ? super Integer, Integer> pVar) {\n C14445h0.m62478f(iArr, \"$receiver\");\n C14445h0.m62478f(pVar, \"operation\");\n int i = 1;\n if (!(iArr.length == 0)) {\n int i2 = iArr[0];\n int s = m65309s(iArr);\n if (1 <= s) {\n while (true) {\n i2 = ((Number) pVar.mo24962d(Integer.valueOf(i2), Integer.valueOf(iArr[i]))).intValue();\n if (i == s) {\n break;\n }\n i++;\n }\n }\n return i2;\n }\n throw new UnsupportedOperationException(\"Empty array can't be reduced.\");\n }", "private Spielfeld(int[] mulden) {\n\t\tthis.mulden = mulden;\n\t}", "public static final int m64339a(@C6003d int[] iArr, @C6003d C6085q<? super Integer, ? super Integer, ? super Integer, Integer> qVar) {\n C14445h0.m62478f(iArr, \"$receiver\");\n C14445h0.m62478f(qVar, \"operation\");\n int i = 1;\n if (!(iArr.length == 0)) {\n int i2 = iArr[0];\n int s = m65309s(iArr);\n if (1 <= s) {\n while (true) {\n i2 = ((Number) qVar.mo24963b(Integer.valueOf(i), Integer.valueOf(i2), Integer.valueOf(iArr[i]))).intValue();\n if (i == s) {\n break;\n }\n i++;\n }\n }\n return i2;\n }\n throw new UnsupportedOperationException(\"Empty array can't be reduced.\");\n }", "private int[] productExceptSelfByMath(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n int[] preMul = new int[len];\n int[] sufMul = new int[len];\n\n // head and tail\n preMul[0] = 1;\n sufMul[len - 1] = 1;\n // prefix multiply\n for(int i = 1; i < len; i++){\n preMul[i] = preMul[i - 1] * nums[i - 1];\n }\n // suffix multiply\n for(int i = len -2; i >= 0; i--){\n sufMul[i] = sufMul[i + 1] * nums[i + 1];\n }\n // cross\n for(int i = 0; i < len; i++){\n ret[i] = preMul[i] * sufMul[i];\n }\n\n return ret;\n }", "private int[] multiplyToLen(int[] x, int xlen, int[] y, int ylen, int[] z) {\n int xstart = xlen - 1;\n int ystart = ylen - 1;\n\n if (z == null || z.length < (xlen+ ylen))\n z = new int[xlen+ylen];\n\n long carry = 0;\n for (int j=ystart, k=ystart+1+xstart; j >= 0; j--, k--) {\n long product = (y[j] & LONG_MASK) *\n (x[xstart] & LONG_MASK) + carry;\n z[k] = (int)product;\n carry = product >>> 32;\n }\n z[xstart] = (int)carry;\n\n for (int i = xstart-1; i >= 0; i--) {\n carry = 0;\n for (int j=ystart, k=ystart+1+i; j >= 0; j--, k--) {\n long product = (y[j] & LONG_MASK) *\n (x[i] & LONG_MASK) +\n (z[k] & LONG_MASK) + carry;\n z[k] = (int)product;\n carry = product >>> 32;\n }\n z[i] = (int)carry;\n }\n return z;\n }", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "public static void multiply(int[] n1, int[] n2, int[] result) {\n\t\tint pos = result.length-1;\n\t\t// clear all values....\n\t\tfor (int i = 0; i < result.length; i++) {result[i] = 0; }\n\t\t\n\t\tint off;\n\t\tfor (int m = n1.length-1; m>=0; m--) {\n\t\t\toff = n1.length-1 - m;\n\t\t\tif (n1[m] == 0) {\n\t\t\t\tcontinue; // skip zero multiplier! Won't affect total.\n\t\t\t}\n\t\t\tfor (int n = n2.length-1; n>=0; n--) {\n\t\t\t\tint prod = n1[m]*n2[n];\n\t\t\t\t\n\t\t\t\tresult[pos-off] += prod % 10;\n\t\t\t\tif (result[pos-off] > 9) { // carry internally\n\t\t\t\t\tdo {\n\t\t\t\t\t\tresult[pos-off] -= 10;\n\t\t\t\t\t\tresult[pos-off-1]++;\n\t\t\t\t\t} while (result[pos-off] > 9);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (prod > 9) {\n\t\t\t\t\tresult[pos-off-1] += prod / 10; // deal with carry sum later\n\t\t\t\t}\n\t\t\t\toff++;\n\t\t\t}\n\t\t}\n\t}", "public static void toPower(int size, int power){\nsize = 4;\npower = 2;\n\nInteger powerArray[] = new Integer[size];\nfor (int i = 0; i < size; i++){\n powerArray[i] = (int)Math.pow(i, power);\n}\nSystem.out.println(Arrays.toString(powerArray));\n }", "public interface IntegerArray {\n\t\n\tInteger[] convertIntToIntegerArray(int[] array);\t\n\t\n\t/**\n\t * Concatenates array1 and array2\n\t * @param array1 Array of Integers\n\t * @param array2 Array of Integers\n\t * @return Integer[] New array of Integers containing the elements of array1 plus the elements of array2\n\t */\n\tInteger[] concatArrays(Integer[] array1, Integer[] array2);\n\t\n\t/**\n\t * Returns a new array with no null elements\n\t * @param array Array of Integers with null values\n\t * @return Integer[] New array of Integers with no null values. If the original array contains x\n\t * null values, the new array dimension is reference.length-x. If the original array does not contain\n\t * null values, the new array returned contains the same values as the original one.\n\t */\n\tInteger[] removeNullElements(Integer[] array);\n\n}", "public int getNum(int[] num) {\n int val = 0;\n for (int i = 0; i < num.length; i++) {\n val *= 2;\n val += num[i];\n }\n return val;\n }", "public native int[] __intArrayMethod( long __swiftObject, int[] arg );", "public long product() {\n\t\tlong result = 1;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult *= theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "public int[][] toInt() {\r\n\t\tint dim=this.getDimensión();\r\n\t\tint convertida [][]=new int[dim][dim];\r\n\t\tfor(int i=0; i<dim; i++) {\r\n\t\t\tfor(int j=0; j<dim; j++) {\r\n\t\t\t\tconvertida[i][j]=this.getCuadrícula()[i][j].getValor();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn convertida;\r\n\t}", "public static int lonelyInteger(int[] array)\n {\n int result = 0;\n \n for (int val : array)\n {\n // because there is only 1, xor will produce the unique result. \n result ^= val;\n }\n \n return result;\n }", "public int mul(int i, int j) {\n\t\treturn i*j;\r\n\t}", "public static final <R> R m64385a(@C6003d int[] iArr, R r, @C6003d C6085q<? super Integer, ? super R, ? super Integer, ? extends R> qVar) {\n C14445h0.m62478f(iArr, \"$receiver\");\n C14445h0.m62478f(qVar, \"operation\");\n int i = 0;\n for (int i2 : iArr) {\n Integer valueOf = Integer.valueOf(i);\n i++;\n r = qVar.mo24963b(valueOf, r, Integer.valueOf(i2));\n }\n return r;\n }", "public static BigFraction[][] multiply(BigFraction[][] A, BigFraction c) {\n int m = A.length;\n int n = A[0].length;\n BigFraction[][] B = new BigFraction[n][m];\n for (int j = 0; j < n; j++)\n for (int i = 0; i < m; i++)\n B[i][j] = c.multiply(A[i][j]);\n return B;\n }", "int[][] multiple(int size) {\n\t\t size++; // наверняка пользователь захочет получить таблицу до того номера ВКЛЮЧИТЕЛЬНО, который укажет во входных параметрах\n\t\t int[][] mult = new int[size][size]; \n\t\t for (int i = 0; i < size; i++) {\n\t\t\t for (int j = 0; j < size; j++) {\n\t\t\t\t mult[i][j] = i * j;\n\t\t\t }\n\t\t }\n\t\t return mult;\n\t }", "private static int[] doubleToInt(double[] s, int[] d) {\n // for (int i = 0; i < d.length; i++) {\n // d[i] = s[i];\n // }\n // return d;\n for (int i=0; i < s.length; i++) {\n d[i] = (int) s[i];\n }\n return d;\n }", "@Test\n public void testEstimateCmilestoning_IIntArray_int()\n {\n IIntArray traj = null;\n int lag = 0;\n MarkovModelUtilities instance = new MarkovModelUtilities();\n IDoubleArray expResult = null;\n IDoubleArray result = instance.estimateCmilestoning(traj, lag);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int[] productExceptSelf(int[] nums) {\n\t\tint[] res = new int[nums.length];\n\t\tres[0] = 1;\n\t\tfor (int i = 1; i < nums.length; i++) {\n\t\t\tres[i] = res[i - 1] * nums[i - 1];\n\t\t}\n\t\tint right = 1;\n\t\tfor (int i = nums.length - 1; i >= 0; i--) {\n\t\t\tres[i] *= right;\n\t\t\tright *= nums[i];\n\t\t}\n\t\treturn res;\n\t}", "public IntArrayProcessor(int[] array)\n {\n integers = array;\n }", "public static int simpleArraySum() { //(List<Integer> ar)\n \n Integer []ar = {1,2,3}; \n\n Integer sum =0;\n for(Integer i : ar){\n sum +=i;\n }\n return sum; \n }", "public static short[][] scalarMultiply(short a, short[][] b, short n) {\n short[][] product = new short[b.length][b[0].length];\n for (int i = 0; i < b.length; i++) {\n for (int j = 0; j < b[0].length; j++) {\n product[i][j] = Arithmetic.reducedProduct(a, b[i][j], n);\n }\n } \n return product;\n }", "public static List<Integer> multiply(List<Integer> a1, List<Integer> a2) {\n if (a1.size() == 1 && a1.get(0) == 0\n || a2.size() == 1 && a2.get(0) == 0) {return Arrays.asList(0);}\n\n Integer[] arr = new Integer[a1.size() + a2.size()];\n Arrays.fill(arr, 0);\n List<Integer> res = Arrays.asList(arr);\n List<Integer> res2 = new ArrayList<>();\n\n Collections.reverse(a1);\n Collections.reverse(a2);\n\n for (int i = 0; i < a1.size(); i++) {\n for (int j = 0; j < a2.size(); j++) {\n res.set(i + j, res.get(i + j) + a1.get(i) * a2.get(i));\n res.set(i + j + 1, res.get(i + j + 1) + res.get(i + j) / 10);\n res.set(i + j, res.get(i + j) % 10);\n }\n }\n\n Collections.reverse(res);\n\n for (int i = 0; i < res.size(); i++) {\n if (res.get(i) != 0) {\n res2.add(res.get(i));\n }\n }\n\n return res2;\n }", "int[] mo56159c();", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default int[] asIntArray() {\n \n return notSupportedCast(\"int[]\");\n }", "private void m14716a(int[] iArr, C3072b1 b1Var, int i) {\n int i2 = b1Var.f10973d;\n int i3 = this.f10966u;\n int i4 = i2 / i3;\n int i5 = b1Var.f10971b / i3;\n int i6 = b1Var.f10972c / i3;\n int i7 = b1Var.f10970a / i3;\n int i8 = this.f10968w;\n int i9 = (i5 * i8) + i7;\n int i10 = (i4 * i8) + i9;\n while (i9 < i10) {\n int i11 = i9 + i6;\n for (int i12 = i9; i12 < i11; i12++) {\n iArr[i12] = i;\n }\n i9 += this.f10968w;\n }\n }", "int[] mo56160d();", "int[] mo12208a(int i);", "public Inatnum multiply(Inatnum a) {\n Inatnum zero = new zeronatnum(); // we need a new zero natural number for our res\n Inatnum res = zero;// this is our res value where we store our information, it needs to start at 0\n //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1)\n for(int i = this.getVal(); i>0;i--) {// setting our i value to our this and if its greater than zero decrement by 1\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()\n\t\t\tres = res.add(a);//now we save our res value as the previous res value plus a. we do this as many times as we are multiplying by. So if it is 3 times\n //INV: i>0 && i <= this.getval() && res = a^i ==> i=this.getval()-(this.getval()-1) \n \t\t\t//i-- => i = this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()-1-1)\n \t\t\t //INV: i>0 && i-1 <= this.getval() && res = a^(i) ==> i=this.getval()-(this.getval()z-1) \n\t\t\t // 4 then we are adding 4 3 times\n }\n\t\t\t //INV: i<0 && i-1 < this.getval() ==> i ==0 && res = a^i ==> i=this.getval()\n //Termination Argument: i starts at this.getval(), i decrements each time through the loop\n\t\t\t\t\t\t return res;// we need to return our res value that holds our current value.\n }", "private int[] productExceptSelfByMathAndConstantSpace(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n // prefix\n ret[0] = 1;\n for(int i = 1; i < len; i++){\n ret[i] = ret[i - 1] * nums[i - 1];\n }\n\n // right to keep the suffix product of i, and ret[i](product) = ret[i](prefix) * right(suffix); and then update right.\n int right = 1; // keep right value of ret[i]\n for(int i = len - 1; i >= 0; i--){\n ret[i] = right * ret[i]; // prefix prdocut of i(ret[i] for current i) * suffix product of i(right, actaully is 'i + 1' for current i)\n right = right * nums[i]; // suffix product of i(actually suffix product of \"i+1\" when right is used.)\n }\n\n return ret;\n }", "void patchArray(long array[][], long scale)\n {\n // patch all numbers up by 100 to keep the order but to rid the negative\n // numbers\n for (int i = 0; i < array.length; i++)\n {\n array[i][0] += scale;\n array[i][1] += scale;\n }\n }", "public void testArray() {\n\t\t\n\t\tint[] arr = new int[5];\n\t\t\n\t\t/*arr[0]=10;\n\t\tarr[1]=20;\n\t\tarr[2]=30;\n\t\tarr[3]=40;\n\t\tarr[4]=50;*/\n\t\t\n\t\tint sum=0;\n\t\t\n\t\tfor(int i=0;i<arr.length;i++) {\n\t\t\tarr[i]=10*(i+1);\n\t\t\tsum+=arr[i];\n\t\t\tSystem.out.println(\"arr[\"+i+\"] = \"+arr[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"sum = \"+sum);\n\t}", "public static List<Integer> productOfElementsWithoutDivision(List<Integer> inputs) {\n // Put inputs to a linked hash map with key == index\n Map<Integer, Integer> mapInputs = inputs.stream()\n .collect(LinkedHashMap::new, (map, ch) -> map.put(map.size(), ch) , Map::putAll);\n Set<Map.Entry<Integer, Integer>> setEntries = mapInputs.entrySet();\n return setEntries.stream().map(entry ->\n setEntries.stream()\n // Filter the map to exclude current value and multiple other inputs\n .filter(calculatedEntry -> !calculatedEntry.getKey().equals(entry.getKey()))\n .map(Map.Entry::getValue)\n .reduce(1, (currentProduct, nextValue) -> currentProduct * nextValue)\n ).collect(Collectors.toList());\n }", "public void mo6077a(int... iArr) {\n int i = 1;\n this.f2341d = Integer.TYPE;\n int length = iArr.length;\n C0934b[] c0934bArr = new C0934b[Math.max(length, 2)];\n if (length == 1) {\n c0934bArr[0] = new C0934b();\n c0934bArr[1] = (C0934b) C0932g.m2566a(1.0f, iArr[0]);\n } else {\n c0934bArr[0] = (C0934b) C0932g.m2566a(0.0f, iArr[0]);\n while (i < length) {\n c0934bArr[i] = (C0934b) C0932g.m2566a(((float) i) / ((float) (length - 1)), iArr[i]);\n i++;\n }\n }\n this.f2342e = new C0931f(c0934bArr);\n }", "private static BigInteger valueOf(int val[]) {\n return (val[0] > 0 ? new BigInteger(val, 1) : new BigInteger(val));\n }", "private int[] transformHelper(double[][] tranformationMat, int[] rGB) {\n int[] rGBNew = new int[3];\n for (int i = 0; i < rGB.length; i++) {\n for (int j = 0; j < tranformationMat[0].length; j++) { // tranformationMat size\n rGBNew[i] += tranformationMat[i][j] * rGB[j];\n }\n }\n\n return rGBNew;\n }", "Sum getMultiplier();", "public void MatrixChainMultiply(int[] p) {\n n = p.length - 1;\t// how many matrices are in the chain\n m = new int[n + 1][n + 1];\t// overallocate m, so that we don't use index 0\n s = new int[n + 1][n + 1];\t// same for s\n matrixChainOrder(p);\t// run the dynamic-programming algorithm\n }", "public String multiply(String num1, String num2) {\n int[] n1 = new int[num1.length()];\r\n for(int i = 0; i < num1.length(); i++) {\r\n \tn1[i] = num1.charAt(i) - '0';\r\n }\r\n int[] n2 = new int[num2.length()];\r\n for(int i = 0; i < num2.length(); i++) {\r\n \tn2[i] = num2.charAt(i) - '0';\r\n }\r\n //the result\r\n int[] result = new int[num1.length() + num2.length()];\r\n \r\n //multiple two large numbers\r\n for(int i = n2.length - 1; i >=0; i--) {\r\n \t//the starting point in the result array\r\n \tint v2 = n2[i];\r\n \tint startPoint = result.length - 1 - (n2.length - 1 - i);\r\n \tint carrier = 0;\r\n \tfor(int j = n1.length - 1; j >= 0; j--) {\r\n \t\tint index = startPoint - (n1.length - 1 - j);\r\n \t\tint v1 = n1[j];\r\n \t\t\r\n// \t\tSystem.out.println(\"i: \" + i + \": \" + v2 + \", j: \" + j + \": \" + v1 + \", carrier: \" + carrier);\r\n \t\t\r\n \t\tint finalValue = v1*v2 + carrier + result[index];\r\n \t\tcarrier = finalValue/10;\r\n \t\tresult[index] = finalValue % 10;\r\n \t\t//update the last\r\n \t\tif(j == 0) {\r\n \t\t\tif(carrier > 0) {\r\n \t\t\t\tresult[index - 1] = carrier; //XXX note, need to write to the array cell\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n// \tthis.printArray(result);\r\n }\r\n \r\n //convert to the result\r\n StringBuilder sb = new StringBuilder();\r\n boolean zero = true;\r\n for(int i : result) {\r\n \tif(i != 0 && zero) {\r\n \t\tzero = false;\r\n \t}\r\n \tif(!zero) {\r\n \t sb.append(i);\r\n \t}\r\n }\r\n if(sb.length() == 0) {\r\n \tsb.append(\"0\"); //all ZERO\r\n }\r\n return sb.toString();\r\n }", "public static void main(String args[])\n {\n int[] original = {1,2,3,4,5};\n int[] temp1 = new int[original.length]; //this array will hold the first product\n int[] temp2 = new int[original.length]; //this array will hold the second product\n temp1[0] = 1;\n temp2[original.length-1] = 1;\n for(int i=1;i<temp1.length;i++)\n {\n temp1[i] = temp1[i-1]*original[i-1];\n }\n for(int i=original.length-2;i>=0;i--)\n {\n temp2[i] = temp2[i+1]*original[i+1];\n }\n for(int i=0;i<original.length;i++)\n {\n original[i] = temp1[i]*temp2[i];\n System.out.print(original[i] + \" \");\n }\n }", "static public int[] expandArrayInt(int[] f) {\n\t\treturn expandArray(f);\n\t}", "public int[] getAsInts() {\n if (data instanceof int[]) {\n return (int[])data;\n } else if (data instanceof char[]){\n char[] cdata = (char[])data;\n int[] idata = new int[cdata.length];\n for (int i = 0; i < cdata.length; i++) {\n idata[i] = (int)(cdata[i] & 0xffff);\n }\n return idata;\n } else if (data instanceof short[]){\n short[] sdata = (short[])data;\n int[] idata = new int[sdata.length];\n for (int i = 0; i < sdata.length; i++) {\n idata[i] = (int)sdata[i];\n }\n return idata;\n } else {\n throw new ClassCastException(\n \"Data not char[], short[], or int[]!\");\n }\n }", "private static int[] multRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<multCon.length; row++)\n\t\t\tfor(int col=0; col<multCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(multCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "abstract int multiplication(int num1, int num2);", "public static int[] getProductArray(int[] arr, int[] leftElementsProductsArr, int[] rightElementsProductsArr) {\n\t\tint[] output = new int[arr.length];\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tint leftElement = i > 0 ? leftElementsProductsArr[i-1] : 1;\n\t\t\tint rightElement = i < arr.length-1 ? rightElementsProductsArr[i+1] : 1;\n\t\t\t\n\t\t\tint product = leftElement * rightElement;\n\t\t\toutput[i] = product;\n\t\t}\n\t\treturn output;\n\t}", "public int inputArray(int[] num) {\n\t\treturn sumEvenIndexes(num);\n\t}" ]
[ "0.6341461", "0.6286253", "0.6238899", "0.6108424", "0.60564667", "0.5990105", "0.59889865", "0.57805055", "0.5764005", "0.5761612", "0.5754743", "0.57288855", "0.57029814", "0.5670288", "0.56392556", "0.56309617", "0.5630331", "0.56279635", "0.5601417", "0.55803305", "0.55652755", "0.5560499", "0.5541303", "0.5533895", "0.5527781", "0.5519704", "0.5519336", "0.5515212", "0.5475788", "0.5464676", "0.54638743", "0.5453767", "0.5450001", "0.543098", "0.541458", "0.54070884", "0.5400265", "0.5400265", "0.53790325", "0.5377698", "0.53775144", "0.53757185", "0.5372325", "0.53629047", "0.5356328", "0.5353563", "0.53435916", "0.53375787", "0.5336575", "0.5334325", "0.5326348", "0.5324314", "0.53217965", "0.5315837", "0.53154844", "0.53084296", "0.5287766", "0.5283819", "0.52819616", "0.5281811", "0.5281347", "0.52707607", "0.52299404", "0.5218879", "0.52141446", "0.5198829", "0.5174721", "0.51734614", "0.517147", "0.516529", "0.51652694", "0.51644915", "0.51610625", "0.51583225", "0.5153812", "0.5152859", "0.51526123", "0.51517355", "0.5144785", "0.51390123", "0.51384383", "0.5131167", "0.51280254", "0.5127781", "0.51276374", "0.5108362", "0.5102887", "0.5098386", "0.5094219", "0.508847", "0.50879484", "0.5085799", "0.5084506", "0.5080279", "0.50777775", "0.5069464", "0.5065528", "0.50607497", "0.5056096", "0.5049337" ]
0.5923126
7
Gibt die Anzahl aller Steine auf dem Spielfeld zurueck.
public int getSteineAufSpielfeld() { int steineAufDemSpielfeld = 0; for (int i = 0; i<mulden.length;i++) { steineAufDemSpielfeld += mulden[i]; } return steineAufDemSpielfeld; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "int getNumberOfInfantry();", "public static int getNbSemestres() {\n\t\treturn nbSemestres;\n\t}", "public int AnzahlWerkstoffe()\n {\n if (liste.size() == 1)\n {\n System.out.println(\"Die Datenbank enthält \" + liste.size() + \" Werkstoff.\"); \n }\n else \n {\n System.out.println(\"Die Datenbank enthält \" + liste.size() + \" Werkstoffe.\");\n }\n return (int)liste.size();\n }", "public int anzahlRundenziel() {\n // TODO: eine Seite aufsetzen mit Informationen zur Datenbank\n // TODO: Anzahl der Einträge pro Tabelle\n int nReturn = 0;\n final Cursor c = mDb.getReadableDatabase().rawQuery(\n \"select count(*) from \" + RundenZielTbl.TABLE_NAME,\n null);\n if (!c.moveToFirst()) {\n Log.d(TAG, \"anzahlRundenziel(): Kein Rundenziel gespeichert\");\n nReturn = 0;\n } else {\n nReturn = c.getInt(0);\n }\n c.close();\n return nReturn;\n }", "public int size() {\r\n\t\treturn geheim.length;\r\n\t}", "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "public int getHandKarteCount(){\n return getHandKarte().size();\n }", "public int getSpineInstanceCount() {\n if (spineInstanceList == null) {\n return 0;\n }\n return spineInstanceList.size();\n }", "public void zugInWerkstatt() {\n werkstatt++;\n }", "int nbLignes();", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public int countInversion(){\r\n\t\tsetInversiones(0);\r\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\r\n\t\treturn getInversiones();\r\n\t}", "int getNumberOfStonesLeftToPlace();", "@Override\r\n\t\tpublic int count() {\n\t\t\treturn 0;\r\n\t\t}", "public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}", "public int countInversion(){\n\t\tsetInversiones(0);\n\t\tnumeros = countStep(numeros, 0, numeros.size()-1);\n\t\treturn getInversiones();\n\t}", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "int getBlockNumbersCount();", "public int totalNum(){\n return wp.size();\n }", "public int getTotalSPEntries() {\n\t\tList<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\treturn list.size();\n\t}", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public int getNunFigli() {\n\t\tint numFigli = 0;\n\t\tfor (Nodo_m_ario figlio : figli) {\n\t\t\tif (figlio != null) {\n\t\t\t\tnumFigli += 1;\n\t\t\t}\n\t\t}\n\t\treturn numFigli;\n\t}", "public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}", "public int getNSteps() {\n //if (mCovered == null) {\n //return 0;\n //}\n return mCovered.length;\n }", "private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }", "public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }", "int getAmountSlimes(){\n\t\treturn getSlimes().size(); \n\t}", "protected int getWoodCount() {\n\t\treturn ent.getItemCount(Block.wood.blockID);\n\t}", "public int getArmySize() {\n \t\treturn soldiers;\n \t}", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}", "public int getNrDuengerVorhanden(){\r\n\t\treturn this.modelData.getPresentFertiliser().size();\r\n\t}", "public int getSlotCount() { \n return getSlotCount0();\n }", "public int getStoneCount()\n {\n return stoneCount;\n }", "public int obtenerNumeroFilas() {\n\t\treturn matriz.size();\n\t}", "private int numberOfStudents() {\n int sum = 0;\n for (int student : this.studentList) {\n sum += student;\n }\n return sum;\n }", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public int numeroHojas(){\n\t int N=0, ni=0, nd=0;\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) ni = aux.numeroHojas();\n\t if ((aux=getHijoDer())!=null) nd = aux.numeroHojas();\n\t if ((aux=getHijoDer())==null && (aux=getHijoIzq())==null)N = 1;\n\t else N = ni + nd;\n\t }\n\t\treturn N;\n\t}", "int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }", "public static int getNrAtoms(Structure s){\n \n int nrAtoms = 0;\n \n Iterator<Group> iter = new GroupIterator(s);\n \n while ( iter.hasNext()){\n Group g = (Group) iter.next();\n nrAtoms += g.size();\n }\n \n return nrAtoms;\n }", "final int getAndClearStealCount() {\n int sc = stealCount;\n stealCount = 0;\n return sc;\n }", "public int getNumMarkers() {\n if ( dofs == null ) return 0;\n return dofs[0].length/3;\n }", "public int countToMark() {\n\t\tint count = 0;\n\t\tint i = elementCount - 1;\n\t\twhile (i > 0 && !(elementData[i] instanceof PSMark)) {\n\t\t\ti--;\n\t\t\tcount++;\n\t\t}\n\t\treturn (elementData[i] instanceof PSMark) ? count : -1;\n\t}", "public int getNumStones() {\n return this.numStones;\n }", "public int getNumPens(){\n return this.mFarm.getNumPens();\n }", "@Override\n public int size(){\n return sizeHelper(this.first);\n }", "int getBlockNumsCount();", "int getBlockNumsCount();", "public int size() {\n \t\n \tint i = 0;\n \t\n \twhile(this.front != null) {\n \t\ti = i+1;\n \t\tthis.front = this.front.next; \n \t}\n \t\n \treturn i;\n \t\n }", "public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}", "public int getSpeciesAmount() {\r\n\t\treturn species.size();\r\n\t}", "public static int getNos() {\n\t\treturn numberOfStudents;\n\t}", "public int getNeighBorCount(){\n\t\treturn serventList.size(); \n\t}", "public int antalSager() {\n int antalSager = 0;\n for (int i = 0; i < sager.size(); i++) {\n for (int j = 0; j < sager.get(i).size(); j++) {\n antalSager += 1;\n }\n }\n return antalSager;\n }", "private int size() {\n\t\treturn cerraduras.size();\n\t}", "public int ardiveis() {\n\t\tint result = 0;\n\t\tfor (EstadoAmbiente[] linha : this.quadricula) {\n\t\t\tfor (EstadoAmbiente ea : linha) {\n\t\t\t\tif(ea == EstadoAmbiente.CASA || ea == EstadoAmbiente.TERRENO){\n\t\t\t\t\tresult++;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "int numOfBlocks() {\n return ni * nj * nk;\n }", "@Override\n public int size() {//por Niveles\n if (this.esArbolVacio()) {\n return 0; //Arbol Vacio\n }\n int cantidadDeNodos = 0;\n Queue<NodoBinario<T>> colaDeNodos = new LinkedList<>();\n colaDeNodos.offer(raiz);\n while (!colaDeNodos.isEmpty()) {\n NodoBinario<T> nodoActual = colaDeNodos.poll();\n cantidadDeNodos++;\n if (!nodoActual.esHijoIzquiedoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoIzquierdo());\n }\n if (!nodoActual.esHijoDerechoVacio()) {\n colaDeNodos.offer(nodoActual.getHijoDerecho());\n }\n }\n return cantidadDeNodos; //Lista con los datos(En el orden de este recorrido)\n }", "public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}", "public int listAmount() {\n return count;\n }", "public int count() throws TrippiException {\n try {\n int n = 0;\n while (hasNext()) {\n next();\n n++;\n }\n return n;\n } finally {\n close();\n }\n }", "public int getElfCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "int getBlocksAmount();", "@Override\n\tpublic int kyungsangcount() throws Exception {\n\t\treturn dao.kyungsangcount();\n\t}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "public static int size_sum_e() {\n return (32 / 8);\n }", "public int computeNbEtudiant() {\n\t\treturn 0;\n\t}", "public static int offset_count() {\n return (16 / 8);\n }", "public static int size_counter() {\n return (32 / 8);\n }", "int count() {\n return index.capacity() / 24;\n }", "public int getVeinCount() {\n return veinCount;\n }", "public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }", "public int size(){\n\t\tListMapEntry temp = first;\n\t\tint c=0;\n\t\twhile(temp!=null){\n\t\t\tc++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t\treturn c;\n\t}", "public int getAnzahl() {\r\n\t\treturn anzahl;\r\n\t}", "public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "@Override\n\tpublic int size() {\n\t\treturn top + 1;\n\t}", "Long getNumberOfElement();", "public int calculerKgsNourritureParJour(){\r\n\t\treturn noms.size() * 10;\r\n\t}", "@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}", "public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }", "public int RollCount() {\n\t\treturn 0;\r\n\t}", "public int NbreObjets(){\n\t\treturn this.nombre_objets;\n\t}", "default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int getCyclomaticNumber() {\n\t\treturn (this.getKrawedzie().size() - this.getWierzcholki().size() + this.iloscSpojnychSkladowych());\n\t}", "public int getUnitCount() {\n return _elements.length;\n }", "public int wuerfeln() {\n\t\tletzterWurf = Wuerfel.werfen();\n\t\thatBereitsGewuerfelt = true;\n\t\treturn (letzterWurf);\n\t}", "public int count() {\n\t\t\tassert wellFormed() : \"invariant false on entry to count()\";\n\n\t\t\tint count = 0;\n\t\t\tfor(Card p = this.first; p != null; p = p.next) {\n\t\t\t\t++count;\n\t\t\t}\n\n\t\t\treturn count; // TODO\n\t\t}", "public long gesamtGewinn() {\n long gewinn = 0 - gesamtKosten();\n for (int i = 0; i < neueLinien; i++) {\n gewinn = gewinn + linien[i].gewinn();\n }\n return gewinn;\n }" ]
[ "0.66627496", "0.6520338", "0.6458303", "0.6347817", "0.6277622", "0.626695", "0.6237064", "0.62237567", "0.6218818", "0.62179524", "0.6183113", "0.6180642", "0.61744076", "0.61300105", "0.61201346", "0.61108327", "0.610759", "0.60984683", "0.60836256", "0.6053277", "0.6036915", "0.60254836", "0.6017154", "0.6014672", "0.6008837", "0.6005193", "0.5995506", "0.5956697", "0.59516746", "0.5932511", "0.5931491", "0.59312767", "0.5928872", "0.5928872", "0.5928872", "0.5928872", "0.5927551", "0.59273267", "0.5926669", "0.5923309", "0.5921258", "0.59139496", "0.5911333", "0.58980715", "0.58970535", "0.5894104", "0.5880476", "0.5879122", "0.5878414", "0.58688045", "0.5853096", "0.5850634", "0.5847849", "0.5839955", "0.5839955", "0.5837774", "0.5834626", "0.5827273", "0.5824996", "0.58213276", "0.5810272", "0.580247", "0.58012855", "0.5792354", "0.57895726", "0.5785576", "0.5785455", "0.5784932", "0.5783733", "0.57806855", "0.57714397", "0.57667583", "0.5764817", "0.5764212", "0.57641625", "0.5762014", "0.57583493", "0.5755666", "0.57548815", "0.57537174", "0.57501656", "0.57415533", "0.57399845", "0.57222724", "0.5721422", "0.57195926", "0.5716649", "0.5713826", "0.571057", "0.5709409", "0.5708201", "0.5708144", "0.57073396", "0.57068026", "0.5703608", "0.5700947", "0.5695874", "0.5695449", "0.5693707", "0.5693042" ]
0.66090024
1
Hilfsmethode, um die Mulde gegenueber auszu machen.
public int getIndexGegenueber(int index) { index -= 13; if(index < 0) index*= (-1); return index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "private void mul() {\n\n\t}", "abstract void mulS();", "@Override\npublic void mul(int a, int b) {\n\t\n}", "public void multiply() {\n\t\t\n\t}", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "@Override\n public Float mul(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs*rhs;\n\treturn res;\n }", "@Override\n\tpublic void mul(double dx, double dy) {\n\t\t\n\t}", "@ZenCodeType.Operator(ZenCodeType.OperatorType.MUL)\n default IData mul(IData other) {\n \n return notSupportedOperator(OperatorType.MUL);\n }", "public T mul(T first, T second);", "public int[] getMulden() {\n\t\treturn mulden;\n\t}", "public double getMultiplier() {\r\n return multiplier;\r\n }", "Double getMultiplier();", "Sum getMultiplier();", "public int getMultiplier() {\n return multiplier;\n }", "public final void mMUL() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.MUL;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:5: ( 'mul' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:708:7: 'mul'\n\t\t\t{\n\t\t\t\tthis.match(\"mul\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "Multiply createMultiply();", "public void mul()\n\t{\n\t\t\n\t\tSystem.out.println(\"Hey I am in base class********** and addition is 2500\");\n\t}", "public Scalar mul(Scalar s) {\n\t\treturn new RealScalar(getValue() * ((RealScalar)s).getValue());\n\t}", "public LMUL() {\n super(InstructionOpCodes.LMUL, 1);\n }", "@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}", "public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }", "public T magnitudeSquared();", "public double getMultiplier() {\n return genericModifier.getMultiplier();\n }", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "public double getUIMultiplier() {\n\treturn multiplier;\n}", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"MULT\";\n\t}", "public AncientEgyptianMultiplication( ) {\r\n }", "public double getFactor() {\n return ((double) multiplier) / ((double) divisor);\n }", "public int mul(int i,int j){\n\t\treturn i*j;\n\t}", "@Override\n public void outMulExp(MulExp node){\n Type lexpType = this.mCurrentST.getExpType(node.getLExp());\n Type rexpType = this.mCurrentST.getExpType(node.getRExp());\n if(lexpType == Type.BYTE && rexpType == Type.BYTE){\n mPrintWriter.println(\"pop r18\");\n mPrintWriter.println(\"pop r22\");\n mPrintWriter.println(\"mov r24, r18\");\n mPrintWriter.println(\"mov r26, r22\");\n mPrintWriter.println(\"muls r24, r26\");\n mPrintWriter.println(\"push r1\");\n mPrintWriter.println(\"push r0\");\n\n mPrintWriter.println(\"eor r0,r0\");\n mPrintWriter.println(\"eor r1,r1\");\n }\n }", "public void mul(Complex c){\n\t\tdouble tempRe = re*c.getRe() - im*c.getIm();\n\t\tim = im*c.getRe() + re*c.getIm();\n\t\tre = tempRe;\n\t}", "public Fraction multiply(Fraction multiplier)\n {\n int newDenominator = (this.getDenominator() * multiplier.getDenominator());\n int newNumerator = (this.getNumerator() * multiplier.getNumerator());\n \n Fraction newFraction = new Fraction(newNumerator, newDenominator);\n return newFraction;\n }", "public final void mul(float scalar) {\n\tm00 *= scalar; m01 *= scalar; m02 *= scalar;\n\tm10 *= scalar; m11 *= scalar; m12 *= scalar;\n\tm20 *= scalar; m21 *= scalar; m22 *= scalar;\n }", "public Number getQtyMulPrice() {\n return (Number)getAttributeInternal(QTYMULPRICE);\n }", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public Fraction mul(Fraction f) {\n return new Fraction(this.numerator * f.getNumerator(), this.denominator * f.getDenominator());\n }", "abstract int multiplication(int num1, int num2);", "@Override\n\tpublic double multiply(double in1, double in2) {\n\t\treturn 0;\n\t}", "public void visitFMUL(FMUL o){\n\t\tif (stack().peek() != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'float', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.FLOAT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'float', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}", "public abstract float mo9744i();", "public double getHmag()\n\t{\n\t\tVectorN h = this.getH();\n\t\tdouble out = h.mag();\n\t\treturn out;\n\t}", "public int mul(int i, int j) {\n\t\treturn i*j;\r\n\t}", "public double module() {\n return getMagnitude();\n }", "@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}", "public StatementParse mulDivTransform(StatementParse node) {\n // This function is called on _every_ multiply and divide node.\n StatementParse node1 = node.getChildren().get(0);\n StatementParse node2 = node.getChildren().get(1);\n if (!(node1 instanceof IntegerParse) || !(node2 instanceof IntegerParse)){\n return node;\n }\n int value1 = ((IntegerParse) node1).getValue();\n int value2 = ((IntegerParse) node2).getValue();\n int result;\n if (node.getName().equals(\"*\")){\n result = value1 * value2;\n } else{ // div node\n if (value2 == 0) return node;\n result = value1 / value2;\n }\n\n IntegerParse newNode = new IntegerParse(result);\n if (node.isNegative()) newNode.setNegative(true);\n return newNode;\n }", "public void mul_(JType value) {\n TH.THTensor_(mul)(this, this, value);\n }", "public ComplexNumber mul(ComplexNumber c) {\n\t\tdouble real = getReal() * c.getReal();\n\t\treal -= getImaginary() * c.getImaginary();\n\n\t\tdouble imaginary = getReal() * c.getImaginary();\n\t\timaginary += c.getReal() * getImaginary();\n\n\t\treturn new ComplexNumber(real, imaginary);\n\t}", "IVec3 mult(float k);", "public int producto(){\r\n return x*y;\r\n }", "public double getMagnitude() {\n\t\treturn Math.sqrt(imaginary * imaginary + real * real);\n\t}", "public double mag() {\n return Math.sqrt(mag2());\n }", "public static double mul(double a, double b){\r\n\t\treturn a*b;\r\n\t}", "public T magnitude();", "public double getM() {\r\n return m;\r\n }", "public double getProduct()\n {\n return first * second;\n }", "public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public double mo642h() {\n return this.f485a;\n }", "public Fraction mul(Fraction newFraction) {\n\t\tint newNumerator = numerator * newFraction.getNumerator();\n\t\tint newDenominator = denominator * newFraction.getDenominator();\n\t\tint gcd = gcd(newNumerator, newDenominator);\n\t\tnewNumerator /= gcd;\n\t\tnewDenominator /= gcd;\n\t\treturn new Fraction(newNumerator, newDenominator);\n\t}", "public float getSMultiplier(){\n\t\treturn this.SMultiplier;\n\t}", "private Spielfeld(int[] mulden) {\n\t\tthis.mulden = mulden;\n\t}", "public double masse () {return this.volume()*this.element.masseVolumique();}", "public static double multi() {\n System.out.println(\"Enter multiplier\");\n double a = getNumber();\n System.out.println(\"Enter multiplicand\");\n double b = getNumber();\n\n return a * b;\n }", "IVec3 mult(IVec3 v);", "public float sizeMultiplier();", "public double getMultiplier() {\n\t\t\tint currentWidth = Display.getWidth();\n\t\t\treturn currentWidth / (double) width;\n\t\t}", "public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }", "public double getMagnitude() {\n\t\treturn Math.sqrt(real * real + imaginary * imaginary);\n\t}", "public abstract double mo9740e();", "float getMagnitude();", "public Double getFactor();", "private static int multAndDivFixer(int size){\n return size;\n }", "@Override\n public Value64 read() {\n int s = input0.read().intValue();\n int t = input1.read().intValue();\n long d = 0;\n switch (mduOp.read().byteValue()) {\n case AluOp.Multiply:\n d = s * t;\n break;\n case AluOp.Divide:\n d = s / t;\n break;\n }\n return new Value64(d);\n }", "private static native double mul(int n);", "public abstract Vector4fc mul(float x, float y, float z, float w);", "public abstract double calcular();", "public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }", "public abstract double getFractionMultiplier();", "MulOrDiv createMulOrDiv();", "public double mod() \n\t{\n if (x!=0 || y!=0) {\n return Math.sqrt(x*x+y*y); //distance formular\n } else {\n return 0.0D;\n }\n }", "public Complex multiply(Complex param) {\r\n\t\tMyDouble r1r2 = this.getReal().multiply(param.getReal());\r\n\t\tMyDouble r1i2 = this.getReal().multiply(param.getImag());\r\n\t\tMyDouble i1r2 = this.getImag().multiply(param.getReal());\r\n\t\tMyDouble i1i2 = this.getImag().multiply(param.getImag());\r\n\t\tMyDouble prodImg = MyDouble.zero.subtract(i1i2);\r\n\t\tMyDouble sum1 = r1r2.add(prodImg);\r\n\t\tMyDouble sum2 = r1i2.add(i1r2);\r\n\t\tComplex multiplyed = new Complex(sum1, sum2);\r\n\t\treturn multiplyed;\r\n\t}", "@Override\n public InterpreterValue mul(InterpreterValue v) {\n\n // If the given value is a IntegerValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof IntegerValue) return new DoubleValue(getValue() * ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue create a new DoubleValue from\n // the multiplication-result\n if(v instanceof DoubleValue) return new DoubleValue(getValue() * ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '*' is not defined for type double and \" + v.getName());\n\n }", "float getScaler();", "@Override\r\n\tpublic int mulNo(int a, int b) {\n\t\treturn a*b;\r\n\t}", "@Override\n\tpublic double multiply(double a, double b) {\n\t\treturn (a*b);\n\t}", "public double method_888() {\n return this.field_667;\n }", "public interface IMul {\n Var mul(Var var);\n\n}", "@Override\r\n\tpublic void multLocal(float var) {\n\t}", "BaseNumber multiply(BaseNumber operand);", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "int mul( int a , int b)\n {\n double c,d;\n \tif (a==0)\n\t c=65536;\n\tif(b==0)\n\t d=65536;\n c=(double)a;\n d=(double)b;\n a= (int)((c*d)%65537);\n return a;\n }", "public void enfoncerMult() {\n\t\ttry {\n\t\t\tthis.op = new Mult();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "public double getMedia()\n {\n return ( suma / cantidad );\n }", "public Node power()\r\n\t{\r\n\t\tNode fact = factor();\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.POW)\r\n\t\t{\t\t\t\r\n\t\t\tNode pow = power();\r\n\t\t\tif(pow!=null)\r\n\t\t\t{\r\n\t\t\t\treturn new Pow(fact,pow);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn fact;\r\n\t}", "protected void sequence_MathDivmulOperation(ISerializationContext context, MathDivmulOperation semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "LengthScalarMultiply createLengthScalarMultiply();", "public abstract long mo9748m();", "public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}", "public void multiply(Object mulValue) {\r\n\r\n\t\tNumberOperation operator = new NumberOperation(this.value, mulValue) {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic Number doAnOperation() {\r\n\t\t\t\tTypeEnum typeOfResult = getFinalType();\r\n\t\t\t\tif(typeOfResult == TypeEnum.TYPE_INTEGER) {\r\n\t\t\t\t\treturn getO1().intValue() * getO2().intValue();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn getO1().doubleValue() * getO2().doubleValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\tthis.value = operator.doAnOperation();\r\n\t}", "public int getScale(){\n return scale;\n }" ]
[ "0.6960307", "0.6932207", "0.65104175", "0.6405704", "0.6280973", "0.62546563", "0.6204372", "0.61325556", "0.60446125", "0.60054374", "0.599015", "0.5971402", "0.5893589", "0.58840764", "0.5866493", "0.5859857", "0.58426684", "0.58305895", "0.5793975", "0.57866055", "0.57767445", "0.5773622", "0.5696812", "0.5696334", "0.5687873", "0.56625587", "0.5637995", "0.5632228", "0.558348", "0.556245", "0.5548472", "0.55133224", "0.54966444", "0.54938155", "0.546102", "0.5453286", "0.5445586", "0.54258084", "0.5422596", "0.54028356", "0.54013175", "0.5399556", "0.5395725", "0.5393242", "0.538483", "0.5373512", "0.53651243", "0.53623194", "0.53597564", "0.5359607", "0.5351453", "0.5346774", "0.5341643", "0.5332572", "0.5332229", "0.53244716", "0.53199714", "0.5315874", "0.5312861", "0.5310961", "0.5302187", "0.5298051", "0.52927846", "0.5291314", "0.5290974", "0.52900416", "0.52881813", "0.5282317", "0.52758056", "0.5275407", "0.5268338", "0.52602357", "0.52538157", "0.52535295", "0.525267", "0.525264", "0.5250605", "0.52479625", "0.52435845", "0.52428657", "0.52427685", "0.5232475", "0.5231722", "0.5228913", "0.52227473", "0.5219561", "0.521239", "0.5209071", "0.52048206", "0.52016795", "0.5196265", "0.51949424", "0.5194098", "0.5187339", "0.51861554", "0.5184983", "0.51796246", "0.5179024", "0.51757056", "0.5168778", "0.5168026" ]
0.0
-1
Schafft eine Kopie des Spielfeldes.
@Override public Spielfeld clone() { int[] mulden = new int[this.getMulden().length]; for(int i = 0; i < this.getMulden().length; i++) { mulden[i] = this.getMulden()[i]; } return new Spielfeld(mulden); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielfeld();", "private void poetries() {\n\n\t}", "public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }", "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}", "public KI(String spielerwahl){\n\t\teigenerStein = spielerwahl;\n\t\t\n\t\tswitch (spielerwahl) {\n\t\tcase \"o\":\n\t\t\tgegnerStein = \"x\";\n\t\t\tbreak;\n\t\tcase\"x\":\n\t\t\tgegnerStein = \"o\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Ungueltige Spielerwahl.\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\thatAngefangen = gegnerStein;\n\t\t\n\t\tfor(int i=0; i<7; i++) { //initialisiert spielfeld\n\t\t\tfor(int j=0; j<6; j++){\t\t\t\t\n\t\t\t\tspielfeld[i][j] = \"_\";\n\t\t\t}\n\t\t\tmoeglicheZuege[i] = -1; //initialisiert die moeglichen zuege\n\t\t}\n\t\t\n\t}", "public void sendeSpielerWeg(String spieler);", "public SpielfeldZeile()\n\t{\n\t _spalte0 = 0;\n\t _spalte1 = 0;\n\t _spalte2 = 0;\n\t}", "public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}", "public KI(Spieler spieler, Spiel spiel){\r\n\t\tif (spieler == null) throw new RuntimeException(\"Spieler muss vorhanden sein!\");\t\r\n\t\tthis.spieler = spieler;\r\n\r\n\t\tif(spiel==null) throw new RuntimeException (\"Spiel sollte vorhanden sein\");\r\n\t\tthis.spiel=spiel;\r\n\r\n\t\thatUeberlauf=false;\r\n\t}", "public Spielflaeche getSpielflaeche() {return spielflaeche;}", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public void sendeNeuerSpieler(String spieler);", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.put(\"pink\", pink);\n liste.put(\"orange\", orange);\n liste.put(\"rot\", rot);\n liste.put(\"gelb\", gelb);\n liste.put(\"grün\", grün);\n liste.put(\"duneklblau\", dunkelblau);\n liste.put(\"bahnhoefe\", bahnhoefe);\n liste.put(\"werke\", werke);\n felderInBesitz = new ArrayList<>();\n\n }", "public void kjop() {\r\n System.out.println(\"Skriv inn hvem som skal kjope\");\r\n String eier = scan.nextLine().toLowerCase();\r\n\r\n if (personListe.containsKey(eier)) {\r\n System.out.println(\"Skriv inn tittelen paa DVD'en du vil kjope\");\r\n String tittel = scan.nextLine().toLowerCase();\r\n\r\n if (!dvdListe.containsKey(tittel)) {\r\n DVD dvd = new DVD(tittel, personListe.get(eier));\r\n personListe.get(eier).leggTilDVD(dvd);\r\n dvdListe.put(tittel, dvd);\r\n }\r\n\r\n else {\r\n System.out.println(\"Denne DVD'en eksisterer alt.\");\r\n }\r\n }\r\n\r\n else {\r\n System.out.println(\"Denne personen finnes ikke\");\r\n }\r\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void ende() {\r\n\t\tSystem.out.println(dasSpiel.getSieger().getName() + \" hat gewonnen\"); \r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public Farbe letztesKamel();", "public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }", "@Before\r\n\tpublic void erstelleSUT() {\n\t\tSpiel spiel = new Spiel();\r\n\r\n\t\t// Für jeden Spieler eine Unternehmenskette, damit eine\r\n\t\t// Konkurrenzsituation entsteht\r\n\t\tukette = new Unternehmenskette(\"KetteNummer1\");\r\n\t\tukette1 = new Unternehmenskette(\"KetteNummer2\");\r\n\t\t// Es werden für Unternehmenskette ein Report erstellt. Pro Runde\r\n\t\t// brauchen wir eigentlich ein Report für jede Kette.\r\n\t\tReport report = new Report(1, ukette);\r\n\t\tReport report1 = new Report(1, ukette1);\r\n\t\tukette.hinzufuegenReport(report);\r\n\t\tukette1.hinzufuegenReport(report1);\r\n\t\t// Dem Spiel werden die Unternehmensketten zugeordnet\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette);\r\n\t\tspiel.hinzufuegenUnternehmenskette(ukette1);\r\n\t\t// Ein Standort, an dem die Ketten konkurrieren sollen, wird angelegt\r\n\r\n\t\t// für den Kunden:\r\n\t\t// Praeferenz für ALLE ist Qualität\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tstandort = new Standort(Standorttyp.Standort1);\r\n\t\tfil1 = new Filiale(standort, ukette);\r\n\t\tfil1.setzeMitarbeiter(1);\r\n\t\tfil1.initialisierenKapazitaet();\r\n\t\tfil2 = new Filiale(standort, ukette1);\r\n\t\tfil2.setzeMitarbeiter(1);\r\n\t\tfil2.initialisierenKapazitaet();\r\n\t\tZufall.setzeTestmodus(false);\r\n\t\tstandort.beeinflussenKunden(ukette, 1);\r\n\t\tstandort.beeinflussenKunden(ukette1, 1);\r\n\t\tZufall.setzeTestmodus(true);\r\n\t\tZufall.setzeTestZufallszahl(2);\r\n\t\tZufall.setzeTestQualitaet(0.4);\r\n\t\tProdukt p1 = new Produkt(Produkttyp.TEE, 20);\r\n\t\tProdukt p2 = new Produkt(Produkttyp.KUCHEN, 10);\r\n\t\tp1.setzePreis(1);\r\n\t\tp1.setzeQualitaet(0.56);\r\n\t\tp2.setzePreis(1.2);\r\n\t\tp2.setzeQualitaet(0.6);\r\n\t\tukette.holeLager().einlagern(p1);\r\n\t\tukette.holeLager().einlagern(p2);\r\n\t\tp1.setzePreis(0.8);\r\n\t\tp1.setzeQualitaet(0.5);\r\n\t\tukette1.holeLager().einlagern(p1);\r\n\t\t// Kette1 bietet Kaffee (P:1; Q:0.56) und Kuchen (P:1.2; Q:0.6) an\r\n\t\t// Kette2 bietet Kaffe (P:0.8, Q:0.5) an.\r\n\t}", "public void pleitegeierSperren() {\n kontoMap.values().stream()\n .filter(konto -> konto.getKontostand() < 0)\n .forEach(Konto::sperren);\n }", "@Override\n public void perish() {\n \n }", "@Override\n public void popuniPodatke() {\n }", "public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }", "public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}", "public void mieteZahlen(BesitzrechtFeld feld) {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n Spieler spieler = feld.getSpieler();\n boolean einzahlen = einzahlen(feld.getMiete());\n if (!einzahlen) {\n MonopolyMap.spielerVerloren(spielfigur);\n } else {\n System.out.println(\"Du musst an \" + feld.getSpieler().getSpielfigur() + \" Miete in Höhe von \" + feld.getMiete() + \" zahlen (\" + feld.getFeldname() + \")\");\n spieler.auszahlen(feld.getMiete());\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "public Pont ertesit(Pont innenlep, Szereplo sz);", "@Override\n\tpublic void verkaufen() {\n\t}", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "public abstract Koordinate schuss();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }", "public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}", "public void ausgeben() {\n\t\tSystem.out.println(this);\n\t\tIterator<Pruefungsleistung> iter = pruefungsleistungen.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void obrisiPredmet(String sp) {\n\t\tGlavniProzor.getControllerProfesor().obrisiPredmetKodSvihProf(sp);\t\t\n\t\t\n\t\t//Potom kod svih studenata :\n\t\tGlavniProzor.getControllerStudent().obrisiPredmetKodSvihStud(sp);\n\t\t\n\t\t//Potom iz konacne liste : \n\t\tfor(Predmet p : listaPredmeta) {\n\t\t\tif(p.getSifPred().equals(sp)) {\n\t\t\t\tlistaPredmeta.remove(p);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void getK_Gelisir(){\n K_Gelistir();\r\n }", "public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}", "public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}", "public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}", "private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}", "public void skrivUtSpiller() {\r\n\t\tSystem.out.println(\"Spiller \" + id + \": \" + navn + \", har \" + poengsum + \" poeng\");\r\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "public void skystonePos2() {\n }", "public Speler schuifGangkaartIn(int positie, int richting)\n {\n positie = positie - 1;\n Gangkaart oudeKaart;\n switch (richting)\n {\n case 1:\n for (int rij = 0; rij < gangkaarten.length; rij++)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 2:\n for (int rij = gangkaarten.length - 1; rij >= 0; rij--)\n {\n oudeKaart = gangkaarten[positie][rij];\n gangkaarten[positie][rij] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 3:\n for (int kolom = 0; kolom < gangkaarten.length; kolom++)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n case 4:\n for (int kolom = gangkaarten.length - 1; kolom >= 0; kolom--)\n {\n oudeKaart = gangkaarten[kolom][positie];\n gangkaarten[kolom][positie] = vrijeGangkaart;\n vrijeGangkaart = oudeKaart;\n }\n break;\n }\n Speler speler = null;\n if (vrijeGangkaart.getSpeler() != null)\n {\n int[] pos = {-1,-1};\n speler = vrijeGangkaart.getSpeler();\n vrijeGangkaart.setSpeler(null);\n switch(richting)\n {\n case 1: pos[0] = positie;\n pos[1] = 0;\n speler.setPositie(pos);\n gangkaarten[positie][0].setSpeler(speler);\n break;\n case 2: pos[0] = positie;\n pos[1] = 6;\n speler.setPositie(pos);\n gangkaarten[positie][6].setSpeler(speler);\n break;\n case 3: pos[0] = 0;\n pos[1] = positie;\n gangkaarten[0][positie].setSpeler(speler);\n break;\n case 4: pos[0] = 6;\n pos[1] = positie;\n speler.setPositie(pos);\n gangkaarten[6][positie].setSpeler(speler);\n break;\n }\n }\n return speler;\n\n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void HandelKlas() {\n\t\tSystem.out.println(\"HandelKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Handel(Plansza.getRzemieslnikNaPlanszy());\n\t\tPlansza.getNiewolnikNaPLanszy().Handel(Plansza.getArystokrataNaPlanszy());\n\t\t\n\t\tPlansza.getRzemieslnikNaPlanszy().Handel(Plansza.getNiewolnikNaPLanszy());\n\t\tPlansza.getRzemieslnikNaPlanszy().Handel(Plansza.getArystokrataNaPlanszy());\n\t\t\n\t\tPlansza.getArystokrataNaPlanszy().Handel(Plansza.getNiewolnikNaPLanszy());\n\t\tPlansza.getArystokrataNaPlanszy().Handel(Plansza.getRzemieslnikNaPlanszy());\n\t}", "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void skystonePos6() {\n }", "public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }", "private void kk12() {\n\n\t}", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }", "private void remplirPrestaraireData() {\n\t}", "public abstract String dohvatiKontakt();", "TipeLayanan(String deskripsi)\r\n {\r\n this.deskripsi = deskripsi;\r\n }", "void novyVrchol(String klic){\n\t\tVrchol pom = new Vrchol(klic,'B');\n\t\t\n\t\tvrchP[pocet] = pom;\n\t\tpocet++;\n\t\n\t}", "@Override\r\n\tpublic int getGela_kop() {\n\t\treturn super.getGela_kop();\r\n\t}", "@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}", "@Override\n public void popuniPolja(OpstaDomenskaKlasa odk) {\n if (odk instanceof NekretninaZaIzdavanje) {\n nekretnina.popuniPolja(odk);\n nekretnina.setVisible(true);\n SwingUtilities.getWindowAncestor(this).pack();\n SwingUtilities.getWindowAncestor(this).setLocationRelativeTo(null);\n if (!txtBrojMeseci.getText().trim().equals(\"\")) {\n double kirija;\n try {\n kirija = nekretnina.vratiCenu();\n txtUkupnoZaUplatu.setText(kirija * Integer.parseInt(txtBrojMeseci.getText().trim()) + \"\");\n } catch (Exception ex) {\n }\n }\n } else if (odk instanceof Klijent) {\n klijent.popuniPolja(odk);\n klijent.setVisible(true);\n SwingUtilities.getWindowAncestor(this).pack();\n SwingUtilities.getWindowAncestor(this).setLocationRelativeTo(null);\n } else if (odk instanceof UgovorOZakupuNekretnine) {\n UgovorOZakupuNekretnine ugovor = (UgovorOZakupuNekretnine) odk;\n txtIDUgovora.setText(ugovor.getIdUgovoraOZakupu() + \"\");\n txtMestoSklapanja.setText(ugovor.getMestoSklapanja());\n txtUkupnoZaUplatu.setText(ugovor.getUkupnoZaUplatu() + \"\");\n GregorianCalendar gc = new GregorianCalendar();\n gc.setTime(ugovor.getDatumDo());\n cmbDatumDo.setEnabled(true);\n cmbDatumDo.setSelectedDate(gc);\n cmbDatumDo.setEnabled(false);\n gc.setTime(ugovor.getDatumOd());\n cmbDatumOd.setSelectedDate(gc);\n gc.setTime(ugovor.getDatumSklapanja());\n cmbDatumSklapanja.setSelectedDate(gc);\n nekretnina.popuniPolja(ugovor.getNekretnina());\n klijent.popuniPolja(ugovor.getKlijent());\n\n LocalDate d1 = LocalDate.of(cmbDatumOd.getSelectedDate().get(Calendar.YEAR), cmbDatumOd.getSelectedDate().get(Calendar.MONTH) + 1, cmbDatumOd.getSelectedDate().get(Calendar.DAY_OF_MONTH));\n cmbDatumDo.setEnabled(true);\n LocalDate d2 = LocalDate.of(cmbDatumDo.getSelectedDate().get(Calendar.YEAR), cmbDatumDo.getSelectedDate().get(Calendar.MONTH) + 1, cmbDatumDo.getSelectedDate().get(Calendar.DAY_OF_MONTH));\n cmbDatumDo.setEnabled(false);\n Period diff = Period.between(d1, d2);\n\n txtBrojMeseci.setText(diff.getMonths() + \"\");\n }\n }", "public void skystonePos4() {\n }", "public Spieler(String name, FarbEnum farbe,KI ki) {\n\t\tthis.setName(name);\n\t\tthis.setFarbe(farbe);\n\t\tthis.setKi(ki);\n\t\twuerfel = new Wuerfel();\n\t\t\n\t\tfigurlist = new ArrayList<Spielfigur>();\n\t\thinzufuegen();\n\t}", "public void validerSaisie();", "public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}", "@Test\n\tpublic void kaempfeTest() {\n\t\t\n\t\tSc1.kaempfe(Su3);\n\t\tassertEquals(true, Sc1.getIstBesiegt());\n\t\tassertEquals(false, Su3.getIstBesiegt());\n\n\t\tSu1.kaempfe(Sc2);\n\t\tassertEquals(false, Sc2.getIstBesiegt());\n\t\tassertEquals(true, Su1.getIstBesiegt());\n\t}", "public String getOpmerkingen() {\n\t\treturn opmerkingen;\n\t}", "@Override\r\n\tpublic int getErreserba_kop() {\n\t\treturn super.getErreserba_kop();\r\n\t}", "public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }", "public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}", "boolean sprawdz_przegrana(){\n for(int i=0;i<figura_jakas.getWspolzedne_figorki().size();i++)\n if(sprawdz_kolizje_z_innymi_klockami(0))\n return true;\n return false;\n }", "public void addSteinZuSpielFeld(Stein pStein, int spielerIndex)\n {\n if (!checkLegbarkeit(pStein))\n return;\n //System.out.println(\"QuirkelSpiel: \"+(System.currentTimeMillis() - start) + \" ms for Legbarkeitscheck!\");\n\n\n\n if (aktiveZeile ==null && aktiveSpalte ==null){\n aktiveZeile = pStein.gibZeile();\n aktiveSpalte = pStein.gibSpalte();\n }\n else if (aktiveZeile!=null && aktiveSpalte!=null){\n if (pStein.gibZeile()!=aktiveZeile && pStein.gibSpalte()!=aktiveSpalte) //Stein muss in gleiche Zeile oder Spalte gelegt werden\n return;\n else if (pStein.gibZeile()==aktiveZeile)\n aktiveSpalte = null;\n else\n aktiveZeile =null;\n }\n else if (aktiveZeile!=null){\n if (pStein.gibZeile()!=aktiveZeile) //Stein muss in die gleiche Zeile gelegt werden\n return;\n }\n else\n if (pStein.gibSpalte()!=aktiveSpalte) //Stein muss in die gleiche Spalte gelegt werden\n return;\n\n if (aktiveFarbe ==null && aktivesSymbol ==null){\n aktiveFarbe = pStein.gibFarbString();\n aktivesSymbol = pStein.gibSymbolString();\n }\n else if (aktiveFarbe!=null && aktivesSymbol!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe) && !pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol oder gleiche Farbe haben\n return;\n else if (pStein.gibFarbString().equals(aktiveFarbe))\n aktivesSymbol = null;\n else\n aktiveFarbe =null;\n }\n else if (aktiveFarbe!=null){\n if (!pStein.gibFarbString().equals(aktiveFarbe)) //Stein muss gleiche Farbe haben\n return;\n }\n else\n if (!pStein.gibSymbolString().equals(aktivesSymbol)) //Stein muss gleiches Symbol haben\n return;\n\n\n spielfeld.append(pStein); // legt ihn auf das Spielfeld\n symbolMap.get(pStein.gibSymbol()).add(pStein);\n farbenMap.get(pStein.gibSymbol()).add(pStein);\n\n int punkte=0;\n int zwischenPunkte =horizontalePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n zwischenPunkte =senkrechtePunkte(pStein);\n if (zwischenPunkte==6)\n zwischenPunkte+=6;//Qwirkle\n punkte+=zwischenPunkte;\n\n if (punkte==0)\n punkte = 1; //gib auf alle Faelle einen Punkt\n\n while (spielerRing.getContent().gibIndex()!=spielerIndex)\n spielerRing.next();\n\n Spieler spieler = this.spielerRing.getContent();\n spieler.legeStein(pStein,punkte);\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + pStein.toString() + \" gelegt.\");\n System.out.println(\"QwirkleSpiel: \"+\"Spieler \" + spieler.gibIndex() + \" hat \" + punkte + \" Punkte bekommen.\");\n\n\n //Wiederauffuellen in der gleichen Runde, wenn alle Steine abgelegt worden sind\n if (spieler.gibAnzahlSteine()==0 && beutel.gibAnzahl()>0){\n while (spieler.gibAnzahlSteine()<6 && beutel.gibAnzahl()>0){\n spieler.addStein(beutel.gibStein());\n }\n }\n\n }", "private UsineJoueur() {}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public e o() {\r\n return k();\r\n }", "public Monopoly() {\n\t\tsuper();\n\t\tthis.spieler = new Spielerverwaltung();\n\t\tthis.logik = new Spielverwaltung(spieler,this);\n\t\tpmLaden = new PersistenzLaden();\n\t\tpmSpeichern = new PersistenzSpeichern();\n\t}", "public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}", "@SuppressWarnings(\"unused\")\n private RundenZielSpeicher() {\n Log.d(TAG, \"RundenzielSpeicher unused.\");\n }", "@Override\n\tpublic void loese(Schiebepuzzle p) {\n\t\tPoint endPos = new Point(0,0);\n\t\twhile(!p.getLocationOfField(1).equals(endPos)) {\n\t\t\tArrayList<Integer> temp = new ArrayList<>();\n\t\t\tfor(int i = 1; i <= p.maxElement(); i++) {\n\t\t\t\tif(p.istVerschiebar(i)) {\n\t\t\t\t\ttemp.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tint index = randInt(temp.size() - 1);\n\t\t\tp.schiebe(temp.get(index));\n\t\t}\t\t\n\t}", "public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void Ordenamiento() {\n\n\t}", "public void sauvegarderPointPartie (){\n\t\t\n\t\tint menage = (Integer) pointPartieEnCours.get(THEMES.MENAGE);\n\t\tint maths = (Integer) pointPartieEnCours.get(THEMES.MATHS);\n\t\tint francais = (Integer) pointPartieEnCours.get(THEMES.FRANCAIS);\n\t\t\n\t\tmenage += (Integer) level.get(THEMES.MENAGE);\n\t\tmaths += (Integer) level.get(THEMES.MATHS);\n\t\tfrancais += (Integer) level.get(THEMES.FRANCAIS);\n\t\t\n\t\tlevel.remove(THEMES.MENAGE); \n\t\tlevel.remove(THEMES.MATHS); \n\t\tlevel.remove(THEMES.FRANCAIS); \n\t\t\n\t\t\n\t\tlevel.put(THEMES.MENAGE ,menage); \n\t\tlevel.put(THEMES.MATHS ,maths); \n\t\tlevel.put(THEMES.FRANCAIS ,francais); \n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void stopPlaceingShips() {\n\t\tSystem.out.println(\"[DEBUG] Schiffe setzen [ENDE]\");\n\t\tthis.setzeSchiffe = false;\n\t}", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "@Override\n protected void getExras() {\n }" ]
[ "0.65815604", "0.6551597", "0.6340039", "0.6325419", "0.6167528", "0.6116564", "0.59575033", "0.59242415", "0.5911807", "0.59057724", "0.5900764", "0.58669984", "0.58634603", "0.5833859", "0.5788484", "0.5783549", "0.5744462", "0.5735179", "0.57049906", "0.569848", "0.56928766", "0.5687351", "0.568294", "0.56807244", "0.5673169", "0.5670599", "0.56673014", "0.565864", "0.5649618", "0.56486756", "0.56433994", "0.5628382", "0.5625797", "0.5621816", "0.562052", "0.5611367", "0.56079084", "0.5597448", "0.5588252", "0.557863", "0.5578521", "0.5557131", "0.55462396", "0.55422556", "0.5523263", "0.55087304", "0.5492574", "0.5483401", "0.5473107", "0.54728127", "0.54653865", "0.54632765", "0.54451776", "0.54425675", "0.5441898", "0.5434744", "0.54239255", "0.54155666", "0.5406628", "0.5401107", "0.5395521", "0.53772414", "0.5366609", "0.5362839", "0.53562105", "0.5355219", "0.5347468", "0.5338345", "0.5337933", "0.5313606", "0.5312171", "0.531002", "0.53061557", "0.52968735", "0.52942675", "0.5293458", "0.52899736", "0.5289181", "0.52876276", "0.5285268", "0.52825433", "0.5280805", "0.5274611", "0.5265325", "0.5264248", "0.5257338", "0.52546966", "0.52530724", "0.52420026", "0.5240157", "0.52313447", "0.5226442", "0.5221806", "0.5221359", "0.5217586", "0.52158153", "0.5213156", "0.5209716", "0.5206282", "0.5204514", "0.52014905" ]
0.0
-1
tim vi tri cua ( node.id = id) trong mang
private int findPosition(int id) { for (int i = 0; i < numOfNode; i++) { if (node[i].id == id) { return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNode2();", "private void parseId(Node node) {\r\n if (switchTest) return;\r\n skipTrace = true;\r\n parse(node.ref());\r\n }", "void nodeCreate( long id );", "String getIdNode1();", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public String getId() {\n return _node_id;\n }", "boolean usedByNode(Long id);", "public Node(final String id) {\n super();\n this.id = id;\n }", "N getNode(int id);", "public Depot (String id, int node){\r\n this.id=id;\r\n this.node=node;\r\n }", "public NodeId getId() {\n return id;\n }", "public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}", "NodeId getNodeId();", "@Override\n\tpublic Node getNodeById(String id) {\n\t\treturn (Node) hibernatedao.queryData(\"from Node n where n.id = \"+id, Node.class);\n\t}", "public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}", "public Node returnNodeById(Id id){\n\t\tif(id.indice >= listOfNodes.size()) return null;\n\t\tNode n = listOfNodes.elementAt(id.indice);\n\t\tif(n == null) return null;\n\t\tId nid = n.getId();\n\t\tif(nid.indice != id.indice || nid.unique != id.unique) return null; \n\t\treturn n;\n\t}", "private Node getNodeById(int objId){\n return dungeonPane.lookup(\"#\" + Integer.toString(objId));\n }", "public String getId(Node node) {\n String id = \"\";\n if (node instanceof AIdExp) {\n AIdExp idNode = (AIdExp) node;\n id = idNode.getId().getText();\n }\n\treturn id;\n }", "public Node (int id, float x ,float y) {\n\tthis.id = id;\n\tthis.x = x;\n\tthis.y = y;\n\telements = new ArrayList();\n\tu = 0.0;\n\tv = 0.0;\n }", "public void relate(HNode id, Object o);", "RenderedOp getNode(Long id) throws RemoteException;", "public String getID() {\r\n\t\treturn this.idNode;\r\n\t}", "public ParseTreeNode visit(IdentifierNode id) {\n return null;\n }", "private CommunicationLink getNodeById(Integer id)\n {\n if (allNodes.size() == 0)\n {\n return null;\n }\n try\n {\n return allNodes.get(id);\n } catch (Exception e)\n {\n return null;\n }\n }", "private Node findNode(Graph g, int id){\r\n for(Node n : g.getListNodes()){\r\n if (n.getId() == id){\r\n return n;\r\n }\r\n }\r\n return null;\r\n }", "Node(int newId)\n {\n connectedNodes = new ArrayList<Node>();\n id = newId;\n weight = 0;\n }", "void addId(String root);", "boolean handlesNodeId(String id);", "String getChildId();", "io.dstore.values.IntegerValue getTreeNodeId();", "private Node searchNode(int id) {\n\t\tNode node = searchRec(root,id);\n\t\treturn node;\n\t}", "public void createNewId(String id)\n { \n IDNode node=new IDNode(id);\n idReferences.put(id,node);\n }", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "public NetworkNode getNetworkNode(Integer id);", "NodeRecord nodeLoadLight( long id );", "public synchronized void sendID(int id, int x, int y){\n LinkedList<Node> returnPath = new LinkedList<Node>();\n returnPath.add(this);\n LinkedList<Node> path = pathsToBaseStation.getFirst();\n Node nextNode = path.getFirst();\n while(!liveNeighbors.contains(nextNode)){\n pathsToBaseStation.removeFirst();\n if(pathsToBaseStation.size()>=1) {\n path = pathsToBaseStation.getFirst();\n nextNode = path.getFirst();\n }\n }\n path.removeFirst();\n nextNode.passID(id,x,y,path,returnPath);\n }", "public void passIDFromQueue(int id, int x, int y\n , LinkedList<Node> path, LinkedList<Node> returnPath){\n if(path.size()==0){\n path.addFirst(this);\n Node node = returnPath.removeFirst();\n node.returnID(id,x,y,true,path,returnPath);\n return;\n }\n Node nextNode = path.getFirst();\n if(!liveNeighbors.contains(nextNode)){\n pathsToBaseStation.remove(path);\n path.addFirst(this);\n Node node = returnPath.removeFirst();\n node.returnID(id,x,y,false,path,returnPath);\n return;\n }\n path.removeFirst();\n returnPath.addFirst(this);\n nextNode.passID(id,x,y,path,returnPath);\n }", "Node(long id, String label) {\n this.id = id;\n this.label = label;\n\n inEdges = new HashMap<>();\n outEdges = new HashMap<>();\n }", "public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}", "id(int id, id id, int id) {}", "public static Node findNodeById(ConcurrentHashMap<String, Node> idIndex, String id, Logger logger) {\n\t\tNode foundNode = idIndex.get(id);\n\n\t\tif (foundNode == null) {\n\t\t\tlogger.warning(\"WARNING: COULD NOT FIND NODE WITH ID = \" + id + \". HREF IGNORED...\");\n\t\t\treturn null;\n\t\t}\n\n\t\treturn foundNode;\n\n\t\t// ArrayList<Node> foundNodes = new ArrayList<Node>();\n\t\t//\n\t\t// Iterator<Entry<String, Node>> it = idIndex.entrySet().iterator();\n\t\t// while (it.hasNext()) {\n\t\t// Map.Entry<String, Node> pair = (Map.Entry<String, Node>) it.next();\n\t\t//\n\t\t// if (pair.getKey().equals(id)) {\n\t\t// foundNodes.add(pair.getValue());\n\t\t// it.remove();\n\t\t// break;\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // for (Node n : idIndex.query(\"id\", id)) {\n\t\t// // foundNodes.add(n);\n\t\t// // }\n\t\t//\n\t\t// switch (foundNodes.size()) {\n\t\t// case 0:\n\t\t// logger.warning(\"WARNING: COULD NOT FIND NODE WITH ID = \" + id);\n\t\t// return null;\n\t\t// case 1:\n\t\t// return foundNodes.get(0);\n\t\t// case 2:\n\t\t// if (foundNodes.get(0).getId() < foundNodes.get(1).getId()) {\n\t\t// if (isOld) {\n\t\t// return foundNodes.get(0);\n\t\t// }\n\t\t// return foundNodes.get(1);\n\t\t// } else {\n\t\t// if (isOld) {\n\t\t// return foundNodes.get(1);\n\t\t// }\n\t\t// return foundNodes.get(0);\n\t\t// }\n\t\t// default:\n\t\t// logger.warning(\"WARNING: MULTIPLE NODES HAVE THE SAME ID = \" + id);\n\t\t// return null;\n\t\t// }\n\t}", "public Node getTB(String id,Node parent){\n try{\n HashMap hash= (HashMap)client.execute(\"getResource\", new Object[]{id});\n String path = hash.get(\"path\").toString();\n String name = path.split(\"/\")[path.split(\"/\").length-1];\n byte type = 1;\n if(path.indexOf(\"/\")==-1){\n type = 0;\n }\n Node node = new Node(id,path,name,parent,null,type);\n Object[] children = (Object[])hash.get(\"children\");\n for(Object o:children){\n node.addChild(o.toString(), null);\n }\n HashMap meta = (HashMap)hash.get(\"meta\");\n if(meta!=null&&meta.size()!=0){\n Set keys = meta.keySet();\n Iterator iter = keys.iterator();\n while(iter.hasNext()){\n String n = iter.next().toString();\n if(n.equals(\"_epnames_\"+RunnerRepository.user)){\n node.setEPs(meta.get(n).toString());\n continue;\n }\n node.addProperty(n, meta.get(n).toString());\n }\n }\n return node;\n }catch(Exception e){\n System.out.println(\"requested id: \"+id);\n try{System.out.println(\"server respons: \"+client.execute(\"getResource\", new Object[]{id}));}\n catch(Exception ex){ex.printStackTrace();}\n e.printStackTrace();\n return null;\n }\n }", "private void removeNodeById(Integer id)\n {\n if (allNodes.size() == 0)\n {\n return;\n }\n nodeIds.remove(id);\n CommunicationLink removedNode = allNodes.remove(id);\n removedNode.close();\n }", "boolean addNode(long idNum, String label);", "public UUID originatingNodeId();", "public UUID nodeId();", "private int root(int i) {\n while(id[i]!=i){\n i = id[i];\n }\n return i;\n }", "entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();", "entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();", "public int getAD_WF_Node_ID();", "@Override\n\tpublic boolean equals(Object obj) {\n\tif (this.id == ((Node<?>) obj).getId()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "private int root(int i){\n\t\twhile ( i != id[i].getVertexLabel())\n\t\t\ti = id[i].getVertexLabel();\n\t\treturn i;\n\t}", "public static int numberOfNodes() { return current_id; }", "public void put_node_id(long node_id, long number) {\n ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].putLong((int) (number * POINTER_LENGTH % ptr_parts_size[0]), node_id);\n }", "public int getId(){\r\n return localId;\r\n }", "@Override\n\tpublic void llenarPorId(Object id) {\n\t\t\n\t}", "public void setPosition(String id, int x, int y)\n {\n IDNode node=(IDNode)idReferences.get(id);\n node.setPosition(x,y); \n }", "String getIdEdge();", "public node(String ID) {\n\t\t// TODO Auto-generated constructor stub\n\t\tname = ID;\n\t\tcomment_centrality = -1;\n\t\tlike_centrality = -1;\n\t}", "public static Node forId(int object) {\n\t\t\treturn nodes.get(object);\n\t\t}", "void id(int id, id id, int id) {}", "public void delete(int id) { \n\t\tint save = findPosition(id);\n\t\t\n\t\tif (save == numOfNode - 1) {\n\t\t\tnode [save] = null;\n\t\t\tnumOfNode--;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// dich dan cac node vao\n\t\tfor (int i = save; i < numOfNode - 1; i++) {\n\t\t\tnode[i] = node[i + 1];\n\t\t}\n\t\t\n\t\tnode[numOfNode - 1] = null;\n\t\tnumOfNode--;\n\t}", "public void setFun(IdUse node) {\n setChild(node, 0);\n }", "public int getNodeID() {\n return nodeID;\n }", "@Override\n\tpublic List<Integer> getMapRelationsNodeForOneMap(int map_id) {\n\t\tResultSet resultSet = null;\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tString selectAllNodes = \"select distinct(newMap.id) from ((select node.id from maprelations,node \"\n\t\t\t\t\t+ \"where node.map_id = ? and maprelations.node_from=node.id) union \"\n\t\t\t\t\t+ \"(select node.id from maprelations,node where node.map_id = ? and \"\n\t\t\t\t\t+ \"maprelations.node_to =node.id)) as newMap;\";\n\t\t\tpstmt = conn.prepareStatement(selectAllNodes);\n\t\t\t// TODO: potential danger..\n\t\t\tpstmt.setInt(1, map_id);\n\t\t\tpstmt.setInt(2, map_id);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tres.add(resultSet.getInt(\"id\"));\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException se) {\n\t\t\tSystem.out.println(\"fail to connect database..\");\n\t\t\tse.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t\tJdbcConnect.connClose();\n\t\t}\n\t\treturn null;\n\t}", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "private SSNode(int id) {\r\n _id = id;\r\n _pv = Integer.MAX_VALUE;\r\n _bv = Integer.MAX_VALUE;\r\n _pv2 = Integer.MAX_VALUE;\r\n _bv2 = Integer.MAX_VALUE;\r\n }", "@Override\n public String getNodeId() throws IOException {\n return getFirstLineOfFile(nodeIdPath);\n }", "void setNode(int nodeId, double lat, double lon, double ele);", "public synchronized void passID(int id, int x, int y\n , LinkedList<Node> path, LinkedList<Node> returnPath){\n LinkedList<Object> list = new LinkedList<>();\n list.addLast(id);\n list.addLast(x);\n list.addLast(y);\n list.addLast(null);\n list.addLast(path);\n list.addLast(returnPath);\n //System.out.println(list);\n queue.add(list);\n }", "public String getNodeId() {\r\n return nodeId;\r\n }", "@Override\n\tpublic void setUniqueId(int id) {}", "public long create_node(Node node)\r\n\t\t{ \r\n\t\t long id = 0; //id de la tabla user (único) \r\n\r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t id = (Long)sesion.save(node); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "private void toggleNode(final int id)\n throws IllegalArgumentException {\n if (id == mSourceNode || id == mDestinationNode) {\n throw new IllegalArgumentException();\n }\n Node node = mGraph.getNode(id);\n\n // Toggle mGraph state\n if (node.hasAttribute(\"ui.hide\")) {\n node.removeAttribute(\"ui.hide\");\n } else {\n node.addAttribute(\"ui.hide\");\n }\n\n // Toggle Node_GUI state\n Node_GUI listNode = mNodeList.get(id);\n listNode.isOffline ^= true;\n }", "public void setTiag_id(java.lang.Long newTiag_id);", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "private boolean itsRepeated(BTreeNode<T> currentNode, I id) {\n\n for (int i = 0; i < 5; i++) {\n if (currentNode.getKey(i) != null) {\n if (comparator.compare(currentNode.getKey(i), id) == 0) {\n return true;\n }\n }\n }\n\n return false;\n }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public Node(int id, double xCoord, double yCoord) {\n\t\tthis.id = id;\n\t\tthis.xCoord = xCoord;\n\t\tthis.yCoord = yCoord;\n\t\tthis.onRoute = false;\n\t\tthis.angle = 0;\n\t}", "public long wsadd_node(NodeWS node)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\t Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number());\r\n\t\t\t\t \r\n\t\t\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t\t\t \r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t \r\n\t\t\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+node.getName_company()+\"'\").uniqueResult();\r\n\t\t\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t\t\t x.addNodo(nodeC);\r\n\t\t\t\t \r\n\t\t\t\t\t nodeC.setCompany(x);\r\n\t\t\t\t \r\n\t\t\t\t //sesion.update(compx);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t\t\t tx.commit(); \r\n\t\t\t\t }catch(HibernateException he) \r\n\t\t\t\t { \r\n\t\t\t\t manejaExcepcion(he);\r\n\t\t\t\t throw he; \r\n\t\t\t\t }finally \r\n\t\t\t\t { \r\n\t\t\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+node.getNode_name()+\"'\").uniqueResult();\r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return id; \r\n\t\t\t\t}" ]
[ "0.69715446", "0.6766634", "0.6738969", "0.67080355", "0.668615", "0.668615", "0.6648917", "0.6486701", "0.6477651", "0.64524007", "0.6450543", "0.6430931", "0.6417565", "0.63595575", "0.62341887", "0.62063205", "0.6198538", "0.6197518", "0.6177235", "0.6160168", "0.6153504", "0.6143842", "0.61182016", "0.60857266", "0.60542923", "0.6046326", "0.6044842", "0.6042344", "0.60257196", "0.60079867", "0.5996978", "0.5969697", "0.5953244", "0.5951693", "0.59195834", "0.5867718", "0.5829515", "0.580956", "0.5792542", "0.5791748", "0.5784913", "0.5781366", "0.5763206", "0.574855", "0.5746216", "0.57366705", "0.5734142", "0.57304335", "0.57202923", "0.57202923", "0.57164186", "0.57084394", "0.5707808", "0.57049865", "0.5700218", "0.56930536", "0.56911093", "0.5679457", "0.5675831", "0.56745255", "0.5673771", "0.5671979", "0.5646991", "0.56456035", "0.564104", "0.56396717", "0.5634624", "0.5629897", "0.5626055", "0.5624985", "0.5623871", "0.5621635", "0.56167394", "0.561366", "0.561317", "0.56114596", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.56080586", "0.5596572", "0.5596567", "0.55913943", "0.55839634", "0.5573312" ]
0.5577075
99
xoa node co id = id
public void delete(int id) { int save = findPosition(id); if (save == numOfNode - 1) { node [save] = null; numOfNode--; return; } // dich dan cac node vao for (int i = save; i < numOfNode - 1; i++) { node[i] = node[i + 1]; } node[numOfNode - 1] = null; numOfNode--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIdNode2();", "NodeId getNodeId();", "String getIdNode1();", "void nodeCreate( long id );", "public String getId() {\n return _node_id;\n }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "N getNode(int id);", "public NodeId getId() {\n return id;\n }", "public Node(final String id) {\n super();\n this.id = id;\n }", "public Node (int id, float x ,float y) {\n\tthis.id = id;\n\tthis.x = x;\n\tthis.y = y;\n\telements = new ArrayList();\n\tu = 0.0;\n\tv = 0.0;\n }", "private Node getNodeById(int objId){\n return dungeonPane.lookup(\"#\" + Integer.toString(objId));\n }", "public String getId(Node node) {\n String id = \"\";\n if (node instanceof AIdExp) {\n AIdExp idNode = (AIdExp) node;\n id = idNode.getId().getText();\n }\n\treturn id;\n }", "RenderedOp getNode(Long id) throws RemoteException;", "public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}", "public void setID(String s) {\r\n\t\tthis.idNode = s;\r\n\t}", "@Override\n\tpublic Node getNodeById(String id) {\n\t\treturn (Node) hibernatedao.queryData(\"from Node n where n.id = \"+id, Node.class);\n\t}", "public Depot (String id, int node){\r\n this.id=id;\r\n this.node=node;\r\n }", "public UUID nodeId();", "public IdentifierNode getIdentifier()throws ClassCastException;", "public void relate(HNode id, Object o);", "public String getID() {\r\n\t\treturn this.idNode;\r\n\t}", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "private void parseId(Node node) {\r\n if (switchTest) return;\r\n skipTrace = true;\r\n parse(node.ref());\r\n }", "public UUID originatingNodeId();", "boolean handlesNodeId(String id);", "boolean usedByNode(Long id);", "public Cajeros CajerosXID(int id);", "String getChildId();", "public NetworkNode getNetworkNode(Integer id);", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "public String getNodeId() {\r\n return nodeId;\r\n }", "public Node(int id, double xCoord, double yCoord) {\n\t\tthis.id = id;\n\t\tthis.xCoord = xCoord;\n\t\tthis.yCoord = yCoord;\n\t\tthis.onRoute = false;\n\t\tthis.angle = 0;\n\t}", "public static Node forId(int object) {\n\t\t\treturn nodes.get(object);\n\t\t}", "public int getAD_WF_Node_ID();", "org.apache.xmlbeans.XmlString xgetId();", "public void setPosition(String id, int x, int y)\n {\n IDNode node=(IDNode)idReferences.get(id);\n node.setPosition(x,y); \n }", "Xid createXid();", "public ParseTreeNode visit(IdentifierNode id) {\n return null;\n }", "public NodeId getNodeId() {\n return nodeId;\n }", "io.dstore.values.IntegerValue getTreeNodeId();", "public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}", "public String getIdNode() {\r\n String idNode = null;\r\n idNode = this.getParam(ESCOConstantes.ID_NODE);\r\n // Add the root element if not present\r\n if (null != idNode && !idNode.startsWith(ESCOConstantes.STEM_NAME_SEPARATOR)) {\r\n idNode = ESCOConstantes.STEM_NAME_SEPARATOR + idNode;\r\n }\r\n\r\n return idNode;\r\n }", "public IgniteUuid xid();", "private CommunicationLink getNodeById(Integer id)\n {\n if (allNodes.size() == 0)\n {\n return null;\n }\n try\n {\n return allNodes.get(id);\n } catch (Exception e)\n {\n return null;\n }\n }", "public Node returnNodeById(Id id){\n\t\tif(id.indice >= listOfNodes.size()) return null;\n\t\tNode n = listOfNodes.elementAt(id.indice);\n\t\tif(n == null) return null;\n\t\tId nid = n.getId();\n\t\tif(nid.indice != id.indice || nid.unique != id.unique) return null; \n\t\treturn n;\n\t}", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public long getNodeIndex();", "public String getNodeId() {\n return nodeId;\n }", "public String getNodeId() {\n return nodeId;\n }", "public node(String ID) {\n\t\t// TODO Auto-generated constructor stub\n\t\tname = ID;\n\t\tcomment_centrality = -1;\n\t\tlike_centrality = -1;\n\t}", "public Long getNodeId() {\n return nodeId;\n }", "void addId(String root);", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(false)\n );\n }", "Node getNode();", "public String getNodeId() {\r\n\t\treturn nodeId;\r\n\t}", "@Override\n public String getNodeId() throws IOException {\n return getFirstLineOfFile(nodeIdPath);\n }", "String getIdEdge();", "public NodeAssn(String id, NodeExpr expr) {\n\tthis.id=id;\n\tthis.expr=expr;\n }", "public void setNodeA(int x){\n this.nodeA = x;\n }", "public long wsadd_node(NodeWS node)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\t Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number());\r\n\t\t\t\t \r\n\t\t\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t\t\t \r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t \r\n\t\t\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+node.getName_company()+\"'\").uniqueResult();\r\n\t\t\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t\t\t x.addNodo(nodeC);\r\n\t\t\t\t \r\n\t\t\t\t\t nodeC.setCompany(x);\r\n\t\t\t\t \r\n\t\t\t\t //sesion.update(compx);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t\t\t tx.commit(); \r\n\t\t\t\t }catch(HibernateException he) \r\n\t\t\t\t { \r\n\t\t\t\t manejaExcepcion(he);\r\n\t\t\t\t throw he; \r\n\t\t\t\t }finally \r\n\t\t\t\t { \r\n\t\t\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+node.getNode_name()+\"'\").uniqueResult();\r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return id; \r\n\t\t\t\t}", "public String toStringID()\r\n\t{\r\n\t\treturn nodeIdString;\r\n\t}", "boolean addNode(long idNum, String label);", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();" ]
[ "0.69446695", "0.6879941", "0.67971534", "0.661087", "0.6529395", "0.6510945", "0.6510945", "0.64893574", "0.63837487", "0.63748586", "0.6373694", "0.6364769", "0.6346186", "0.6256813", "0.6218654", "0.62028617", "0.61419684", "0.6129987", "0.6128789", "0.610124", "0.60825115", "0.6076697", "0.606174", "0.60339355", "0.60026866", "0.6001415", "0.59821814", "0.5951957", "0.59352773", "0.59220845", "0.59220386", "0.5914501", "0.59108853", "0.59059614", "0.59038025", "0.58751", "0.5871321", "0.5836652", "0.58090746", "0.5799292", "0.5797626", "0.57927847", "0.5785031", "0.5777911", "0.57671344", "0.57632744", "0.5761313", "0.575832", "0.5736185", "0.5736185", "0.57266426", "0.5721886", "0.56949556", "0.56893986", "0.56831753", "0.56643146", "0.5654828", "0.5652433", "0.56451046", "0.56336844", "0.5626345", "0.5626196", "0.5623422", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495", "0.5621495" ]
0.0
-1
Constructs a Pair with the provided parameters.
public Pair(K first, V second) { this.first = first; this.second = second; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pair() {\r\n\t}", "public Pair() {\n // nothing to do here\n }", "public Pair(Pair<T,V> p){\r\n this.v1 = p.v1;\r\n this.v2 = p.v2;\r\n }", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "public Pair(T first, T second) {\r\n this.first = first;\r\n this.second = second;\r\n }", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "public Pair(T v1, V v2) {\r\n this.v1 = v1;\r\n this.v2 = v2;\r\n }", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "public Pair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Pair(S n1, S n2) {\n\t\tkey1 = n1;\n\t\tkey2 = n2;\n\t}", "public Pair(Object i, Object j)\n {\n a = i;\n b = j;\n }", "public MutablePair(Pair<K, V> pair) {\n this(pair.getKey(), pair.getValue());\n }", "public static <U, V> Pair<U, V> of(U a, V b) {\n\t\t\t// calls private constructor\n\t\t\treturn new Pair<>(a, b);\n\t\t}", "public Pair(X first, Y second) {\n this.first = first;\n this.second = second;\n }", "public Pair(int row, int col)\n {\n this.row = row;\n this.col = col;\n }", "public Pair(Card firstCard, Card secondCard){\r\n this.firstCard = firstCard;\r\n this.secondCard = secondCard;\r\n }", "public CVectorPair(double x1, double y1, double x2, double y2) {\n\tthis(new CVector(x1, y1), new CVector(x2, y2));\n }", "public static <A, B> PairImpl <A, B> create(A a, B b) {\n return new PairImpl<A, B>(a, b);\n }", "public Pair(double v1, double v2) {\n\t\t\n\t\tsuper(v1, v2);\n\t}", "public Pair(T t, U u) {\n this.t= t;\n this.u= u;\n }", "private Pair(U first, V second) {\n\t\t\tthis.first = first;\n\t\t\tthis.second = second;\n\t\t}", "public CoinsuperPair() {}", "public Pair(Object first, Object rest) {\n\t\tthis.first = first; this.rest = rest;\n\t}", "public Pair(String unparsed, K parsed)\n {\n this.unparsed = unparsed;\n this.parsed = parsed;\n }", "public OrderedPair(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }", "DictionaryPair (K someKey , V someValue) {\n this.key = someKey;\n this.value = someValue;\n }", "public Pair(final T first, final U second) {\n this.first = first;\n this.second = second;\n }", "public Pair(V vv, T tt) {\n\t\t\tthis.v = vv;\n\t\t\tthis.t = tt;\n\t\t}", "public Pair(double... values) {\n\t\t\n\t\tsuper(Arrays.copyOf(values, 2));\n\t}", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Pair(A primer, B segon) {\n this.primer = primer;\n this.segon = segon;\n }", "public ClothingPair(E left, E right) {\n super(left, right);\n }", "private Pair p(int i, int j) {\n return new Pair(i, j);\n }", "public static <K, V> MutablePair<K, V> of(Pair<K, V> pair) {\n return new MutablePair<>(pair);\n }", "public Pair(String origin_id, String destination_id){\n this.origin_id = origin_id;\n this.destination_id = destination_id;\n }", "public static <A, B> Pair<A, B> of(final @Nullable A first, final @Nullable B second) {\n return new Pair<A, B>(first, second);\n }", "public Pair(String state, double value) {\r\n\t\tthis.key = state;\r\n\t\tthis.val = value;\r\n\t}", "public TwoTuple(T value1, K value2) {\n this.value1 = value1;\n this.value2 = value2;\n }", "public Pair(Object exchange, PairType type) {\n\t\tthis.exchange = exchange;\n\t\tthis.type = type;\n\t}", "public PairImpl(F key, S value) {\n this.key = key;\n this.value = value;\n }", "Pair<T, U> build() throws IOException, ConfigurationException;", "public Pair(CardGamePlayer player, CardList cards) {\n\t\tsuper(player, cards);\n\t}", "public Pair(CardGamePlayer player, CardList cards) {\n\t\tsuper(player, cards);\n\t}", "public static <L, R> Pair<L, R> of(final L left, final R right) {\r\n return new Pair<L, R>(left, right);\r\n }", "public MutablePair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "public interface Pair<K,V> {\n public K getKey();\n public V getValue();\n}", "ParamMapEntry createParamMapEntry();", "public EntityPair(int entity1, int entity2) {\n\t \n\t this.entity1 = entity1;\n\t this.entity2 = entity2;\n }", "private Tuples() {}", "public Tuple2() {\n }", "public CertificatePair(Certificate forward, Certificate reverse)\n {\n this.forward = forward;\n this.reverse = reverse;\n }", "MapBuilder<K,V> pairInjection(Injection<OrderedPair<K,V>, byte[]> pairInjection);", "public static KeyPair createKeyPair(){\n KeyPair pair = KeyPair.random();\n System.out.println(pair.getSecretSeed());\n System.out.println(pair.getAccountId());\n return pair;\n\n }", "static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);\n }", "public static void main(String[] args) {\n\r\n\t\tInteger f = new Integer(2);\r\n\t\tInteger s = new Integer(3);\r\n\t\tDouble d = new Double(2.3);\r\n\t\tPair<Integer> pair = new Pair<Integer>(f, s);\r\n\t\tSystem.out.println(pair.toString());\r\n\t}", "KeyIdPair createKeyIdPair();", "public static <K, V> MutablePair<K, V> of(K key, V value) {\n return new MutablePair<>(key, value);\n }", "public static void main(String[] args) {\n Pair<String, Integer> pair = new Pair<String, Integer>(\"testeString\", 12);\n System.out.println(pair.getTipo1());\n System.out.println(pair.getTipo2());\n pair.setTipo1(\"TESTEAGAIN\");\n System.out.println(pair.getTipo1());\n\n }", "private XYPairs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Pair(Node s, Node d) {\n this.source = s;\n this.destination = d;\n requestGenerators = new ArrayList<RequestGenerator>();\n }", "public MutablePair(Map.Entry<K, V> entry) {\n this(entry.getKey(), entry.getValue());\n }", "@Override\n public String toString() {\n return \"Pair[\" + first + \", \" + second + \"]\";\n }", "private void fromPairs(final Object[] pairs) throws IllegalArgumentException {\n if ((pairs.length & 1) != 0) {\n throw new IllegalArgumentException(\n Errors.format(ErrorKeys.ODD_ARRAY_LENGTH_$1, pairs.length));\n }\n for (int i=0; i<pairs.length; i += 2) {\n super.put(pairs[i], pairs[i+1]);\n }\n }", "public Pair(String one, String two, double corr) {\n word1 = one;\n word2 = two;\n correlation = corr;\n }", "public KeyPair createKeyPair() {\n try {\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n keyPairGenerator.initialize(4096);\n return keyPairGenerator.generateKeyPair();\n } catch (RuntimeException | NoSuchAlgorithmException e) {\n throw new RuntimeException(\"Failed to create public/private key pair\", e);\n }\n }", "public interface Pair {\n /**\n * @return the x value from the pair\n */\n public int getX();\n\n /**\n * @return the y value from the pair\n */\n public int getY();\n\n /**\n * @param other the pair to add to this pair\n * @return a pair with the given pair's x and y values added onto this one's\n */\n public Pair add(Pair other);\n\n /**\n * @param other the pair to subtract this pair\n * @return a pair with the given pair's x and y values subtracted from this one's\n */\n public Pair subtract(Pair other);\n}", "void makeNew(int x, int y)\n\t{\n\t\tPair temp = new Pair(x,y);\n\t\tmySeq.add(temp);\n\t}", "@ConstructorProperties({\"values\"})\n public Tuple(Object... values) {\n this();\n Collections.addAll(elements, values);\n }", "PARAM createPARAM();", "public String getType() {return \"Pair\";}", "public MapNode(\n\t\tPair...\tpairs)\n\t{\n\t\t// Call alternative constructor\n\t\tthis(null, Arrays.asList(pairs));\n\t}", "CritPair createCritPair();", "public Hints(final Object key1, final Object value1,\n final Object key2, final Object value2,\n final Object... pairs)\n {\n this(key1, value1, key2, value2);\n fromPairs(pairs);\n }", "public CCA2KPABE(){\n\t\tthis.pairing = PairingFactory.getPairing(ParameterGenerator.PATH_TYPE_A_PARAMETER); \n\t}", "public KeyValuePair () {\n key = null;\n value = null;\n }", "@SafeVarargs\n\tpublic static <R> Tuple<R> construct(R... data) {\n\t\tLinkedList<R> list = new LinkedList<>();\n\t\tfor (R element : data) {\n\t\t\tlist.add(element);\n\t\t}\n\n\t\treturn new Tuple<>(list);\n\t}", "public MapNode(\n\t\tIterable<? extends Pair>\tpairs)\n\t{\n\t\t// Call alternative constructor\n\t\tthis(null, pairs);\n\t}", "@NotNull\n default GenericPair getPair() {\n return GenericPair.of(this.getLeftType(), this.getRightType());\n }", "public Node(String key, Model pair) {\n\t\tthis.key = key;\n\t\tthis.pair = pair;\n\t}", "public coOrdPair(int x, int y)\n {\n this.x = x;\n this.y = y;\n }", "public Tuple(String attrib_names [], String attrib_types [], String attrib_values []) {\n\n\ttuple_counter++;\n\tnum_attribs = attrib_types.length;\n\tmy_data = new HashMap();\n\t\n\tfor (int i = 0; i < num_attribs; i++) {\n\ttry {\n\t Class cl = Class.forName(attrib_types[i]);\n\t Constructor constructor =\n\t\tcl.getConstructor(new Class[] { String.class });\n\t my_data.put ( attrib_names[i],\n\t\t(ColumnValue) constructor.newInstance\n\t\t(new Object[] { attrib_values[i] }));\n\t}\n\tcatch (java.lang.ClassNotFoundException e)\n\t { System.out.println(e.toString()); } \n\tcatch (java.lang.NoSuchMethodException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.reflect.InvocationTargetException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.InstantiationException e)\n\t { System.out.println(e.toString()); }\n\tcatch (java.lang.IllegalAccessException e)\n\t { System.out.println(e.toString()); }\n\n\t}\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tpairdiff<String, String> p=new pairdiff<String,String>(\"ab\",\"cd\");\r\n\t\tp.setFirst(\"def\");\r\n\t\tString s=p.getFirst();\r\n\t\t//pair<int> p1=new pair<int>(1,2);//this is prrematative datatype so not allowed\r\n\t\tpairdiff<Integer,String> p1=new pairdiff<Integer,String>(1,\"temp\");\r\n\t\tpairdiff<Character,Character> p2=new pairdiff<>('a','b');\r\n\t\r\n\t\tint a=10;\r\n\t\tint b=12;\r\n\t\tint c=23;\r\n\t\tpairdiff<Integer,Integer> ip=new pairdiff<>(a,b);\r\n\t\t\r\n\t\t\r\n\tpairdiff<pairdiff<Integer,Integer>,Integer> p3=new pairdiff<>(ip,c);\t\r\n\t\r\n\tSystem.out.println(p3.getSecond());\r\n\tSystem.out.println(p3.getFirst().getFirst());\r\n\tSystem.out.println(p3.getFirst().getFirst());\r\n\t}", "public final static Distributor instance(final List<NameValue> pairs)\n {\n final List<String> references = new ArrayList<>();\n for (final NameValue parameter : pairs)\n {\n switch (parameter.name)\n {\n case Vocabulary.NEXT:\n references.add(parameter.value);\n default:\n break;\n }\n }\n final Distributor distributor = new Smart(references);\n return distributor;\n }", "public static void main(String[] args) {\n Pair p1 = new Pair(2,3);\n Pair p5 = new Pair();\n System.out.println(\"The Value of p5 = \" + p5);\n p5.first(7);\n p5.second(9);\n System.out.println(\"The Value of p5 = \" + p5);\n System.out.println(p1.first());\n System.out.println(p1.second());\n Pair p2 = new Pair(5,4);\n Pair p3 = new Pair(2,3);\n String str = new String(\"randi\");\n System.out.println(p1.equals(str));\n System.out.println(p1.equals(p3));\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n\n }", "public PrivatePublicTuple generateKeyPair() {\n try {\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom secureRandom = generateNewSecureRandom();\n keyPairGenerator.initialize(PRIVATE_KEY_LENGTH, secureRandom);\n KeyPair pair = keyPairGenerator.generateKeyPair();\n PrivateKey privateKey = pair.getPrivate();\n PublicKey publicKey = pair.getPublic();\n return new PrivatePublicTuple(getDEREncodingFromPrivateKey(privateKey), getDEREncodingFromPublicKey(publicKey));\n } catch (Exception e) {\n LOG.error(\"There was an error generating key pair: \", e);\n }\n return null;\n }", "public DtoIP4MacPair() {}", "private XYPair(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "public OAuthParameters createParameters() {\n OAuthParameters result = new OAuthParameters();\n result.consumerKey = this.consumerKey;\n result.signer = this.signer;\n return result;\n }", "public static KeyPair createKeyPair() throws InvalidKeySpecException,\n\t\t\tInvalidAlgorithmParameterException, NoSuchAlgorithmException,\n\t\t\tInvalidParameterSpecException {\n\n\t\treturn DHAlgorithm.generateKeyPair();\n }", "public IntegerPair(final int a, final int b) {\n this.first = Math.min(a, b);\n this.second = Math.max(a, b);\n }", "public static <K, V> MutablePair<K, V> of(Map.Entry<K, V> entry) {\n return new MutablePair<>(entry);\n }", "Param createParam();", "Param createParam();", "Param createParam();", "public BlockKeyValueExpression(List<KeyValuePair> keyValuePair) {\n\t\tthis.keyValuePair = Collections.unmodifiableList(keyValuePair);\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Creating \" + this.getClass().getSimpleName()\n\t\t\t\t\t+ \" with values : \" + toString());\n\t\t}\n\t}", "public TablePair(String table1, String table2) {\n this.table1 = table1;\n this.table2 = table2;\n\n // This ensures that this always has tables in the same order.\n // This allows equals and hash to work correctly.\n if (table1.compareTo(table2) > 0) {\n this.table1 = table1;\n this.table2 = table2;\n } else {\n this.table1 = table2;\n this.table2 = table1;\n }\n }" ]
[ "0.75513506", "0.7373696", "0.7331001", "0.7163044", "0.7128075", "0.71192133", "0.7022352", "0.69803786", "0.69788814", "0.6963711", "0.68575543", "0.6777858", "0.6684483", "0.6664903", "0.66450256", "0.6617661", "0.6543999", "0.65232474", "0.6492476", "0.6482652", "0.64467347", "0.64381164", "0.6399084", "0.63688403", "0.63683224", "0.6352045", "0.63243735", "0.6280939", "0.62747467", "0.62688315", "0.62654036", "0.6249856", "0.6248286", "0.6228837", "0.618019", "0.6153219", "0.6083286", "0.60777533", "0.595281", "0.59256196", "0.5923194", "0.5909675", "0.5884425", "0.5842831", "0.5842831", "0.5841016", "0.5830935", "0.58290267", "0.58272207", "0.582196", "0.5811628", "0.5804241", "0.5772639", "0.5736484", "0.5696732", "0.5693639", "0.56925267", "0.569196", "0.5690986", "0.56898683", "0.5683649", "0.5683101", "0.5676175", "0.5664552", "0.5656215", "0.5632193", "0.5616126", "0.56069684", "0.5576091", "0.5565372", "0.5548278", "0.55458575", "0.55257744", "0.5519805", "0.5519698", "0.5518006", "0.55095553", "0.55037165", "0.5500557", "0.54678434", "0.54393834", "0.5417607", "0.5416047", "0.54145366", "0.5384336", "0.53823066", "0.53564715", "0.53373414", "0.5323983", "0.5310278", "0.53071636", "0.5273128", "0.52663344", "0.52549267", "0.52509034", "0.5241367", "0.5241367", "0.5241367", "0.52319837", "0.52205974" ]
0.6921488
10
Constructs an empty Pair with both the objects set to null.
public Pair() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pair() {\n // nothing to do here\n }", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public KeyValuePair () {\n key = null;\n value = null;\n }", "public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }", "public Pair(Pair<T,V> p){\r\n this.v1 = p.v1;\r\n this.v2 = p.v2;\r\n }", "public CoinsuperPair() {}", "public Pair(Object i, Object j)\n {\n a = i;\n b = j;\n }", "public Pair(T first, T second) {\r\n this.first = first;\r\n this.second = second;\r\n }", "public static <A, B> Pair<A, B> of(final @Nullable A first, final @Nullable B second) {\n return new Pair<A, B>(first, second);\n }", "public MutablePair(Pair<K, V> pair) {\n this(pair.getKey(), pair.getValue());\n }", "public Pair(S n1, S n2) {\n\t\tkey1 = n1;\n\t\tkey2 = n2;\n\t}", "private Tuples() {}", "public static <K, V> MutablePair<K, V> of(Pair<K, V> pair) {\n return new MutablePair<>(pair);\n }", "public Pair(T v1, V v2) {\r\n this.v1 = v1;\r\n this.v2 = v2;\r\n }", "public Builder clearXYPair() {\n if (xYPairBuilder_ == null) {\n xYPair_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n xYPairBuilder_.clear();\n }\n return this;\n }", "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "public Pair(T t, U u) {\n this.t= t;\n this.u= u;\n }", "public Pair(Object first, Object rest) {\n\t\tthis.first = first; this.rest = rest;\n\t}", "Tuple (){\n\t\tleft=null;\n\t\tright=null;\n\t}", "public static <U, V> Pair<U, V> of(U a, V b) {\n\t\t\t// calls private constructor\n\t\t\treturn new Pair<>(a, b);\n\t\t}", "public Pair(K first, V second) {\r\n\t\tthis.first = first;\r\n\t\tthis.second = second;\r\n\t}", "public Pair getRandomPair() {\n Shirt shirt = getRandomShirt();\n Trouser trouser = getRandomTrouser();\n\n if (trouser != null && shirt != null)\n return new Pair(shirt, trouser);\n else {\n return null;\n }\n }", "public Pair(X first, Y second) {\n this.first = first;\n this.second = second;\n }", "private Pair(U first, V second) {\n\t\t\tthis.first = first;\n\t\t\tthis.second = second;\n\t\t}", "public Pair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "@SuppressWarnings(\"unused\")\n private MyPropertiesMapEntry() {\n this.key = null;\n this.value = null;\n }", "public void clear()\n\t{\n\t\tpairs.clear();\n\t}", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "public Pair(Card firstCard, Card secondCard){\r\n this.firstCard = firstCard;\r\n this.secondCard = secondCard;\r\n }", "public ClothingPair(E left, E right) {\n super(left, right);\n }", "public Pair(final T first, final U second) {\n this.first = first;\n this.second = second;\n }", "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "private void createNullSet()\n\t{\n\t\tm_values = null;\n\t}", "public Tuple() {\n this(new ArrayList<Object>());\n }", "public Tuple2() {\n }", "public Builder clearXYPairs() {\n if (xYPairsBuilder_ == null) {\n xYPairs_ = null;\n onChanged();\n } else {\n xYPairsBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public Pair(String origin_id, String destination_id){\n this.origin_id = origin_id;\n this.destination_id = destination_id;\n }", "public Pair(double... values) {\n\t\t\n\t\tsuper(Arrays.copyOf(values, 2));\n\t}", "public MapNode(\n\t\tIterable<? extends Pair>\tpairs)\n\t{\n\t\t// Call alternative constructor\n\t\tthis(null, pairs);\n\t}", "public StubPrivateConstructorPair() {\r\n this(null, null);\r\n }", "public Pair(double v1, double v2) {\n\t\t\n\t\tsuper(v1, v2);\n\t}", "private Tuples() {\n // prevent instantiation.\n }", "public OrderedPair(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}", "public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}", "public Pair(CardGamePlayer player, CardList cards) {\n\t\tsuper(player, cards);\n\t}", "public Pair(CardGamePlayer player, CardList cards) {\n\t\tsuper(player, cards);\n\t}", "private void fromPairs(final Object[] pairs) throws IllegalArgumentException {\n if ((pairs.length & 1) != 0) {\n throw new IllegalArgumentException(\n Errors.format(ErrorKeys.ODD_ARRAY_LENGTH_$1, pairs.length));\n }\n for (int i=0; i<pairs.length; i += 2) {\n super.put(pairs[i], pairs[i+1]);\n }\n }", "public Pair(int row, int col)\n {\n this.row = row;\n this.col = col;\n }", "default Stream<Pair<T, Long>> withTimestamp() {\n return withTimestamp(null);\n }", "public static <A, B> PairImpl <A, B> create(A a, B b) {\n return new PairImpl<A, B>(a, b);\n }", "public Pair(V vv, T tt) {\n\t\t\tthis.v = vv;\n\t\t\tthis.t = tt;\n\t\t}", "public Pair(A primer, B segon) {\n this.primer = primer;\n this.segon = segon;\n }", "public static <T, U> Multimap<T, U> nullToEmpty(@Nullable Multimap<T, U> potentiallyNull) {\n return firstNonNull(potentiallyNull, ImmutableMultimap.of());\n }", "@Override\n\t\tpublic Pair clone()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Create copy of this pair\n\t\t\t\tPair copy = (Pair)super.clone();\n\n\t\t\t\t// Create copy of value\n\t\t\t\tcopy.value = value.clone();\n\n\t\t\t\t// Return copy\n\t\t\t\treturn copy;\n\t\t\t}\n\t\t\tcatch (CloneNotSupportedException e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(\"Unexpected exception\", e);\n\t\t\t}\n\t\t}", "public MutablePair(Map.Entry<K, V> entry) {\n this(entry.getKey(), entry.getValue());\n }", "@NotNull\n default GenericPair getPair() {\n return GenericPair.of(this.getLeftType(), this.getRightType());\n }", "DictionaryPair (K someKey , V someValue) {\n this.key = someKey;\n this.value = someValue;\n }", "public CVectorPair(double x1, double y1, double x2, double y2) {\n\tthis(new CVector(x1, y1), new CVector(x2, y2));\n }", "public MapNode(\n\t\tPair...\tpairs)\n\t{\n\t\t// Call alternative constructor\n\t\tthis(null, Arrays.asList(pairs));\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o instanceof Pair) {\n Pair pair = (Pair) o;\n if (key != null ? !key.equals(pair.key) : pair.key != null) return false;\n if (value != null ? !value.equals(pair.value) : pair.value != null) return false;\n return true;\n }\n return false;\n }", "private HashNode() {\r\n key = null;\r\n value = null;\r\n }", "@ConstructorProperties({\"values\"})\n public Tuple(Object... values) {\n this();\n Collections.addAll(elements, values);\n }", "public EliminationAnswer() {\n pairs = new Vector<>();\n }", "public static <K, V> Reference2ObjectMap<K, V> emptyMap() {\n/* 178 */ return EMPTY_MAP;\n/* */ }", "public Tuple(Object... values) {\n data = Arrays.copyOf(values, values.length);\n }", "private void putOwnerAndNull() {\n\n visitInsn(DUP2_X1);\n\n //Stack = valueHigh, valueLow, owner, valueHigh, valueLow\n\n visitInsn(POP2);\n\n //Stack = valueHigh, valueLow, owner\n\n visitInsn(DUP_X2);\n\n //Stack = owner, valueHigh, valueLow, owner\n\n visitInsn(Opcodes.ACONST_NULL);\n }", "public DtoIP4MacPair() {}", "@Override\n public String toString() {\n return \"Pair[\" + first + \", \" + second + \"]\";\n }", "private Pair p(int i, int j) {\n return new Pair(i, j);\n }", "public static void main(String[] args) {\n Pair p1 = new Pair(2,3);\n Pair p5 = new Pair();\n System.out.println(\"The Value of p5 = \" + p5);\n p5.first(7);\n p5.second(9);\n System.out.println(\"The Value of p5 = \" + p5);\n System.out.println(p1.first());\n System.out.println(p1.second());\n Pair p2 = new Pair(5,4);\n Pair p3 = new Pair(2,3);\n String str = new String(\"randi\");\n System.out.println(p1.equals(str));\n System.out.println(p1.equals(p3));\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n\n }", "public static NonpositiveRequiredCapabilityMatch newEmptyMatch() {\r\n return new Mutable(null, null, null, null);\r\n }", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public static <K, V> MutablePair<K, V> of(Map.Entry<K, V> entry) {\n return new MutablePair<>(entry);\n }", "public Pair(Object exchange, PairType type) {\n\t\tthis.exchange = exchange;\n\t\tthis.type = type;\n\t}", "public Pair(String unparsed, K parsed)\n {\n this.unparsed = unparsed;\n this.parsed = parsed;\n }", "@Test\n\tpublic void getMyKeyPairsNoName() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"the only one\");\n\t\tKeyPair kp = ks.getMyKeyPair(\"blah\");\n\t\tassertNull(\"should have returned null\", kp);\n\t}", "public MutablePair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "@SuppressWarnings(\"unused\")\n\tpublic void testNullInConstructor()\n\t{\n\t\ttry\n\t\t{\n\t\t\tnew TripleKeyMap<>(null, HashMap.class, HashMap.class);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException | NullPointerException e)\n\t\t{\n\t\t\t// OK, expected\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tnew TripleKeyMap<>(HashMap.class, null, HashMap.class);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException | NullPointerException e)\n\t\t{\n\t\t\t// OK, expected\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tnew TripleKeyMap<>(HashMap.class, HashMap.class, null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException | NullPointerException e)\n\t\t{\n\t\t\t// OK, expected\n\t\t}\n\t}", "public PairRepresentation(DomainRepresentation left, DomainRepresentation right) {\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t}", "public Builder clearSymbolTuple() {\n bitField0_ = (bitField0_ & ~0x00000001);\n symbolTuple_ = getDefaultInstance().getSymbolTuple();\n onChanged();\n return this;\n }", "public MapNode(\n\t\tMap<String, AbstractNode>\tpairs)\n\t{\n\t\t// Call alternative constructor\n\t\tthis(null, pairs);\n\t}", "public CertificatePair(Certificate forward, Certificate reverse)\n {\n this.forward = forward;\n this.reverse = reverse;\n }", "@Override\r\n @GwtIncompatible\r\n public Object clone() {\r\n try {\r\n @SuppressWarnings(\"unchecked\")\r\n PairBuilder<L, R> result = (PairBuilder<L, R>)super.clone();\r\n result.self = result;\r\n return result;\r\n } catch (CloneNotSupportedException e) {\r\n throw new InternalError(e.getMessage());\r\n }\r\n }", "public Tuple()\n {\n // Creat a new tuple\n data = new byte[max_size];\n tuple_offset = 0;\n tuple_length = max_size;\n }", "public static DuplicateNameMatch newEmptyMatch() {\r\n return new Mutable(null, null);\r\n }", "public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}", "@Override\r\n\t\tpublic boolean equals(Object obj) {\n\t\t\tif (obj == null)\r\n\t\t\t\treturn false;\r\n\t\t\tif (this == obj)\r\n\t\t\t\treturn true;\r\n\t\t\tif (! (obj instanceof Pair<?, ?>))\r\n\t\t\t\treturn false;\r\n\t\t\ttry {\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tPair<E, E> other = (Pair<E, E>) obj;\r\n\t\t\t\treturn other.getFirst() == null && other.getSecond() == null;\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "@SuppressWarnings(\"unchecked\")\r\n @GwtIncompatible\r\n public PairBuilder<L, R> but() {\r\n return (PairBuilder<L, R>)clone();\r\n }", "public PairImpl(F key, S value) {\n this.key = key;\n this.value = value;\n }", "public None()\n {\n \n }", "public static <K, V> MutablePair<K, V> of(K key, V value) {\n return new MutablePair<>(key, value);\n }", "public Bond() {\n this(null, null, null, CDKConstants.STEREO_BOND_NONE);\n }", "default Empty getEmptyObject() {\n return null;\n }", "public KeyNamePair() {\r\n this.key = \"\";\r\n this.name = \"\";\r\n }", "static <V> Value<V> empty() {\n return new ImmutableValue<>((V) null);\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap() {\r\n\t\tdata = (Node<MapEntry<K, V>>[])new Node[INITIAL_SIZE];\r\n\t\tfor(int i = 0; i < data.length; i++)\t\t\t\t\t\t\t//For every element in data...\r\n\t\t\tdata[i] = new Node<MapEntry<K,V>>(new MapEntry<K,V>(null));\t//Add a head node to it.\r\n\t\t\r\n\t\t//TODO: May have to just default as null and in the put method, if the slot is null, then put a head node in it. The post-ceding code after that is logically correct!\r\n\t\r\n\t\tsize = 0;\t//Redundant but helpful to see that the size is 0\r\n\t}", "public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}", "public static void main(String[] args) {\n\r\n\t\tInteger f = new Integer(2);\r\n\t\tInteger s = new Integer(3);\r\n\t\tDouble d = new Double(2.3);\r\n\t\tPair<Integer> pair = new Pair<Integer>(f, s);\r\n\t\tSystem.out.println(pair.toString());\r\n\t}" ]
[ "0.7455613", "0.64943516", "0.63935643", "0.62150806", "0.6206548", "0.61536777", "0.6039695", "0.5955212", "0.5778813", "0.57727796", "0.5731564", "0.5685835", "0.5660453", "0.5655434", "0.56339395", "0.5629724", "0.56147987", "0.56079483", "0.5598881", "0.5585961", "0.55714583", "0.5570168", "0.55551016", "0.5531306", "0.55284727", "0.5517541", "0.54878855", "0.5484807", "0.54603183", "0.54543084", "0.54435384", "0.54072237", "0.5369844", "0.5368929", "0.53412384", "0.53215593", "0.5260076", "0.52547306", "0.5231402", "0.5209436", "0.5203646", "0.51821864", "0.5181148", "0.51772404", "0.5154338", "0.5152385", "0.5151418", "0.5151418", "0.507669", "0.507338", "0.5072361", "0.50700855", "0.5070081", "0.5068356", "0.5066627", "0.5066105", "0.50660974", "0.50508213", "0.50438356", "0.504299", "0.5028599", "0.5008861", "0.49960387", "0.49929637", "0.4976905", "0.49661615", "0.49596474", "0.49512464", "0.49423534", "0.49405038", "0.49168596", "0.4910638", "0.4905623", "0.49045974", "0.49011955", "0.48912674", "0.4887925", "0.4883206", "0.48797834", "0.48726314", "0.4863703", "0.48597595", "0.48514158", "0.48480994", "0.48248133", "0.48226774", "0.48216918", "0.48161638", "0.4811356", "0.47926375", "0.47868726", "0.47860458", "0.47851476", "0.4773106", "0.47639108", "0.47570422", "0.4748149", "0.4736854", "0.47252795", "0.47230157" ]
0.7333548
1
Gets the first object of the Pair.
public K getFirst() { return first; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }", "public T getFirst();", "public T getFirst();", "public static Object first(Object o) {\n log.finer(\"getting first of list expression: \" + o);\n validateType(o, SPair.class);\n return ((SPair)o).getCar();\n }", "public E getFirst();", "public E getFirst() {\n return peek();\n }", "public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}", "public Object getFirst()\n {\n if(first == null){\n throw new NoSuchElementException();}\n \n \n \n return first.data;\n }", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "public A getFirst() { return first; }", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "public Item getFirst();", "public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public T getFirst()\n\t{\n\t\treturn head.getData();\n\t}", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }", "@Override\n public Persona First() {\n return array.get(0);\n }", "public Object firstElement();", "public E getFirst(){\n return head.getNext().getElement();\n }", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "public V getFirst() {\n\t\t\treturn v;\n\t\t}", "private Pair getFirstOccurrence(Object o) {\n\t\tNode p;\n\t\tint k;\n\n\t\tif (o != null) {\n\t\t\tfor (k = 0, p = mHead.next; k < mSize; p = p.next, k++)\n\t\t\t\tif (o.equals(p.data))\n\t\t\t\t\treturn new Pair(p, k);\n\t\t} else {\n\t\t\tfor (k = 0, p = mHead.next; k < mSize; p = p.next, k++)\n\t\t\t\tif (p.data == null)\n\t\t\t\t\treturn new Pair(p, k);\n\t\t}\n\t\treturn new Pair(null, NOT_FOUND);\n\t}", "@Override\r\n\tpublic E getFirst() {\n\t\treturn null;\r\n\t}", "public SAMRecord getFirstPair() throws CloneNotSupportedException {\n\t\treturn (SAMRecord) crosslinkedRecord1.clone();\n\t}", "@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}", "public T getFirst() {\n return t;\n }", "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "public Pair GetHead() {\n return snake.get(head);\n }", "public Object getFirst(){\n return pattern[0];\n }", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getSecond();\r\n\t\t\t}\r\n\t\t}", "public IPoint getFirstPoint()\n {\n Object[] verticesArray = this.getVertices().toArray();\n IPoint firstPoint = (IPoint)verticesArray[0];\n\n return firstPoint;\n }", "public T getFirst()\n\t{\n\t\treturn getFirstNode().getData();\n\t}", "public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }", "public A first() {\n return first;\n }", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public T first() {\n \t\n \tT firstData = (T) this.front.data;\n \t\n \treturn firstData;\n \t\n }", "public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }", "public Position getFirst() {\n return positions[0];\n }", "@Nullable IStrongSlot first();", "@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}", "public T peek()\n {\n if (isEmpty())\n return null;\n \n return first.getData();\n }", "public T1 getFirst() {\n\t\treturn first;\n\t}", "public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}", "public int getFirst();", "T first();", "public GJPoint2D firstPoint() {\n\t\tif (this.segments.isEmpty()) \n\t\t\treturn null;\n\t\treturn this.segments.get(0).controlPoints()[0];\n\t}", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public Object firstElement() {\n return _queue.firstElement();\n }", "public WorldObject getFirstObject(){\r\n\t\treturn this.firstObject;\r\n\t}", "public GPoint getFirstPoint() {\n return(point1);\n }", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "@SafeVarargs\n private static <T> T getFirstObject(final T... objects) {\n T result = null;\n\n if ((objects != null) && (objects.length == 1)) {\n result = objects[0];\n }\n\n return result;\n }", "@Override\n\tpublic Pair getPair() {\n\t\tlock.lock();\n\t\ttry {\n\t\t\treturn new Pair(pair.getX(), pair.getY());\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\t\t\n\t}", "public process get_first() {\n\t\treturn queue.getFirst();\n\t}", "public GPoint first() {\n\t\tif (points.isEmpty()) {\n\t\t\tthrow new IllegalStateException(\"line group is empty\");\n\t\t}\n\t\treturn points.get(0);\n\t}", "public T getFirst() {\n\t\t//if the head is not empty\n\t\tif (head!= null) {\n\t\t\t//return the data in the head node of the list\n\t\t\treturn head.getData();\n\t\t}\n\t\t//otherwise return null\n\t\telse { return null; }\n\t}", "public PileupElement getFirst() { return PE1; }", "public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}", "public F first() {\n return this.first;\n }", "public String getFirst(){\n return this.first;\n }", "public T peek() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n return rb[first];\n // Return the first item. None of your instance variables should change.\n }", "public Pair get()\n {\n return this.MapItr.element;\n }", "public Object getFirst()\n {\n return ((Node)nodes.elementAt(0)).data;\n }", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "public String getFirst() {\n if(first == null) return null;\n return first.data;\n }", "public Key getFirst() {\n\t\treturn firstNode.key;\n\t}", "public SeriesInstance getInstanceFirstRep() {\n\t\tif (getInstance().isEmpty()) {\n\t\t\treturn addInstance();\n\t\t}\n\t\treturn getInstance().get(0); \n\t}", "public String getFirst(){ return this.first; }", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public int getFirst() {\n return first;\n }", "public E peekFirst();", "@NotNull\n public F getFirst() {\n return first;\n }", "public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "public Node getFirst()\n {\n return this.first;\n }", "@Override\r\n\t\tpublic V getValue() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "Position<T> first();", "public T getData() {\n return this.first;\n }", "public T first(String attr, Object value) throws SQLException {\n\t\t\n\t\tPreparedStatement stmt = statement(\"`\"+ attr + \"` = ? \",\"1\");\n\t\tstmt.setObject(1, value);\n\t\tResultSet rs = stmt.executeQuery();\n\t\tResultSetMetaData meta = rs.getMetaData();\n\t\tif(rs.first()) {\n\t\t\tT obj = null;\n\t\t\ttry {\n\t\t\t\tobj = cls().newInstance();\n\t\t\t\tobj.set_from_db(meta, rs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn obj;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }" ]
[ "0.82997435", "0.8029384", "0.8010751", "0.8010751", "0.7726141", "0.75500906", "0.74307615", "0.7330372", "0.72517294", "0.72517294", "0.7234989", "0.71006966", "0.69578236", "0.69454634", "0.6932644", "0.69196093", "0.6901577", "0.684458", "0.6840113", "0.68394846", "0.6833649", "0.6807671", "0.6791195", "0.67830783", "0.67463344", "0.6727833", "0.6727596", "0.67113614", "0.66945636", "0.6672713", "0.6661267", "0.6660708", "0.6641595", "0.6612607", "0.6591498", "0.6573361", "0.6568941", "0.656436", "0.65475607", "0.65468967", "0.6543287", "0.6527027", "0.65056896", "0.6501245", "0.649305", "0.64847946", "0.64835197", "0.64676964", "0.646656", "0.644327", "0.6439019", "0.64359385", "0.6432344", "0.6418574", "0.6418574", "0.63993746", "0.63978535", "0.6392591", "0.6390237", "0.63878655", "0.63679135", "0.6347072", "0.63380677", "0.6320163", "0.63196504", "0.62948954", "0.62933326", "0.62762535", "0.62714094", "0.62635195", "0.6259015", "0.6232219", "0.62248075", "0.62234944", "0.6215297", "0.6209438", "0.62063813", "0.62030244", "0.61860645", "0.6182589", "0.6176821", "0.61730987", "0.6162515", "0.61622673", "0.615837", "0.6142958", "0.6137868", "0.6125321", "0.6122356", "0.610931", "0.6099913", "0.6089208", "0.6079288", "0.6071525", "0.6062279", "0.6052139", "0.602623", "0.60066307", "0.5997537", "0.59956443" ]
0.70699847
12
Sets the first object of the Pair.
public void setFirst(K first) { this.first = first; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic E setFirst(E first) {\n\t\t\treturn pair.setFirst(first);\r\n\t\t}", "@Override\r\n\t\tpublic T setFirst(T first) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.setFirst(first);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tpublic E setSecond(E second) {\n\t\t\treturn pair.setSecond(second);\r\n\t\t}", "public void setFirst(Node first)\n {\n this.first = first;\n }", "public Pair(Object first, Object rest) {\n\t\tthis.first = first; this.rest = rest;\n\t}", "public void SetTo(Pair rhs) {\n this.first = rhs.first;\n this.second = rhs.second;\n }", "void setFirst(Node node) {\n this.first = node;\n }", "@Override\r\n\t\tpublic V setValue(V value) {\n\t\t\treturn pair.setSecond(value);\r\n\t\t}", "@Override\r\n\t\tpublic S setSecond(S second) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.setSecond(second);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public Pair(T first, T second) {\r\n this.first = first;\r\n this.second = second;\r\n }", "public void setFirst(V vv) {\n\t\t\tthis.v = vv;\n\t\t}", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "private Pair(U first, V second) {\n\t\t\tthis.first = first;\n\t\t\tthis.second = second;\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public void setFirst(@NotNull F first) {\n Condition.argNotNull(\"first\", first);\n this.first = first;\n }", "public Pair(final T first, final U second) {\n this.first = first;\n this.second = second;\n }", "public void setFirst(boolean first){\r\n\t\tfirstCoordinate = first;\r\n\t}", "public void setFirst(StringNode first) {\n this.first = first;\n }", "public Pair(X first, Y second) {\n this.first = first;\n this.second = second;\n }", "public Pair(K first, V second) {\r\n\t\tthis.first = first;\r\n\t\tthis.second = second;\r\n\t}", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "public void setFirsObject( WorldObject firsObject ){\r\n\t\tthis.firstObject = firsObject;\r\n\t}", "public void setFirst(List<List<Seat>> first) {\n\t\tthis.first = first;\n\t}", "public Pair(Card firstCard, Card secondCard){\r\n this.firstCard = firstCard;\r\n this.secondCard = secondCard;\r\n }", "public void setFirst(double value) {\n this.first = value;\n }", "public SAMRecord getFirstPair() throws CloneNotSupportedException {\n\t\treturn (SAMRecord) crosslinkedRecord1.clone();\n\t}", "public Pair(Pair<T,V> p){\r\n this.v1 = p.v1;\r\n this.v2 = p.v2;\r\n }", "public static native void SetFirst(long lpjFbxArrayVector2, long pElement);", "public void setSecond(V second) {\r\n\t\tthis.second = second;\r\n\t}", "public MutablePair(Pair<K, V> pair) {\n this(pair.getKey(), pair.getValue());\n }", "public final void setFirst(Node n) {\n set(n);\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "public void setFirst(boolean b) {\n first = b;\n }", "@Override\n public void setObject(Object arg0)\n {\n \n }", "public static Object first(Object o) {\n log.finer(\"getting first of list expression: \" + o);\n validateType(o, SPair.class);\n return ((SPair)o).getCar();\n }", "public void setFirstSelected(Piece s)\n {\n firstSelected = s;\n }", "public void set (Object element)\n {\n if(!isAfterNext){\n throw new IllegalStateException(); \n }\n position.data = element;\n \n \n }", "@Override\n public E set(int index, E elem) {\n\t E first = _store[index];\n\t _store[index] =elem;\n\t return first;\n }", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "public void setSecond(@NotNull S second) {\n Condition.argNotNull(\"second\", second);\n this.second = second;\n }", "public void addFirst(Object value)\n {\n if(last == null && first == null)\n {\n ListNode temp = new ListNode(value, null);\n last = temp;\n first = temp;\n }\n else\n {\n first = new ListNode(value, first);\n }\n \n }", "public GPoint getFirstPoint() {\n return(point1);\n }", "@Override\n\t\tpublic V setValue(V p1){\n\t\t\treturn p1;\n\t\t}", "public void setWhoGoesFirst(Player playerToGoFirst) {\n if(playerToGoFirst.equals(humanPlayer)) {\n firstPlayer = humanPlayer;\n secondPlayer = aiPlayer;\n } else {\n firstPlayer = aiPlayer;\n secondPlayer = humanPlayer;\n }\n turn = firstPlayer;\n }", "public void setFirstAxis(AxisModel value) {\n this.setValue(FIRST_AXIS_PROPERTY_KEY, value);\n }", "public Pair(Object i, Object j)\n {\n a = i;\n b = j;\n }", "public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }", "public T set(int i, T obj);", "void set(int index, Object element);", "protected void setFirstPlayer(TennisPlayer tennisPlayer) {\r\n this.firstPlayer = tennisPlayer;\r\n }", "public void updateFirstNode()\n {\n firstNode = (lastNode.getNext() == null) ? lastNode : lastNode.getNext();\n }", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "public void setElementAt(Object obj, int index);", "void set( couple ch)\r\n { \r\n \r\n //couple ch = itr.next();\r\n ch.g1.sethappy(ch.bucket);\r\n ch.b1.sethappy(ch.bucket);\r\n ch.happiness = ch.b1.happy + ch.g1.happy;\r\n ch.compatibility = (ch.b1.budget - ch.g1.getmaint()) + Math.abs(ch.b1.getintg() - ch.g1.getiq()) + Math.abs(ch.b1.getattr() - ch.g1.getb());\r\n // this sets the happiness n compatibility of the co \r\n \r\n }", "public boolean set(O o, int index)\r\n {\r\n if (index >= count || index < 0) return false;\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=index-1;i++)\r\n {\r\n vi = vi.getNext();\r\n }\r\n \r\n vi.setObject(o);\r\n return true;\r\n \r\n }", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "public void setObj1 (String value) {\r\n Obj1 = value;\r\n }", "@Override\n public void setBeforeFirst(Wrapper beforeFirst)\n {\n\n }", "public synchronized void edit(E object) {\n Node<E> temp = first;\n while (temp.next != null) {\n if (temp.object.equals(object)) {\n temp.object = object;\n }\n temp = temp.next;\n }\n }", "public void setObject(int i, T obj);", "public Item setFront(Item item) {\n // check if list is not empty:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to setFront, because DList is empty!\");\n // update the data of the first actual node (first itself is a sentinel node)\n Item oldValue = first.next.data;\n first.next.data = item;\n return oldValue;\n }", "public Pair(Object exchange, PairType type) {\n\t\tthis.exchange = exchange;\n\t\tthis.type = type;\n\t}", "public void setObject(XSerial obj);", "public Pair() {\n // nothing to do here\n }", "public void setOb1(CPointer<BlenderObject> ob1) throws IOException\n\t{\n\t\tlong __address = ((ob1 == null) ? 0 : ob1.getAddress());\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeLong(__io__address + 0, __address);\n\t\t} else {\n\t\t\t__io__block.writeLong(__io__address + 0, __address);\n\t\t}\n\t}", "public T set(T obj);", "@Override\r\n public boolean setFirst(F first) {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }", "public K getFirst() {\r\n\t\treturn first;\r\n\t}", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public Pair(A primer, B segon) {\n this.primer = primer;\n this.segon = segon;\n }", "public void setPair(String key, String definition){\n\t\tpair = new Model(key, definition);\n\t}", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "public void addFirst(Comparable o){\n\t\t head=new ListElement(o,head);\n\t }", "public void setObjectAtLocation(Point p, Object o);", "public Pair() {\r\n\t}", "public void setFirstRow(org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle firstRow)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(FIRSTROW$22, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().add_element_user(FIRSTROW$22);\n }\n target.set(firstRow);\n }\n }", "public void setFirstPlayer() {\n notifySetFirstPlayer(this.getCurrentTurn().getCurrentPlayer().getNickname(), onlinePlayers);\n }", "public V getFirst() {\n\t\t\treturn v;\n\t\t}", "public void setFirstNode(byte[] hash)\n {\n if (!this.isInitialized)\n {\n this.initialize();\n }\n this.firstNode = hash;\n this.firstNodeHeight = this.maxHeight;\n this.isFinished = true;\n }", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "public void setHead(T element) {\n\t\tthis.head.value = element;\n\t}", "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "protected void setFirstName(String first)\n {\n firstName = first;\n }", "public Object set (int i, Object t)\r\n {\r\n }", "public void setSecondObject( WorldObject secondObject ){\r\n\t\tthis.secondObject = secondObject;\r\n\t}", "public void addFirst(Object element)\n {\n Node newNode = new Node();\n newNode.data = element;\n newNode.next = first;\n first = newNode; \n \n }", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "public A getFirst() { return first; }", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "public void insertFirst(Student student) {\n // crate a Node\n Node node = new Node();\n node.setStudent(student);\n node.setLink(head);\n\n head = node;\n System.out.println(\"Insert First the Property successfully!!\");\n }", "public void setSelection(Pair selection);", "public SimpleSet(String name, S3Object object) throws Exception {\n\t\tInputStream objectData = object.getObjectContent();\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(objectData));\n\t\tmessage = \"Initialize Simple Membership: \" + object.getBucketName() + \" as \" + name;\n\t\tmakeSet(br);\n\t\t\n\t\tsymbols.put(name, this);\n\t}", "public T1 getFirst() {\n\t\treturn first;\n\t}", "public Pair(S n1, S n2) {\n\t\tkey1 = n1;\n\t\tkey2 = n2;\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "Object setValue(Object value) throws NullPointerException;", "public Pair(T v1, V v2) {\r\n this.v1 = v1;\r\n this.v2 = v2;\r\n }" ]
[ "0.8007546", "0.78570753", "0.65893465", "0.65508974", "0.6368076", "0.6334378", "0.6323168", "0.6295929", "0.6191446", "0.6142575", "0.6116774", "0.6085931", "0.6072179", "0.60471", "0.60163736", "0.60163736", "0.59865934", "0.59603417", "0.5932416", "0.5927382", "0.58970624", "0.5850742", "0.58212143", "0.5775902", "0.57627434", "0.5721306", "0.5681819", "0.5678622", "0.56309736", "0.5601372", "0.5563182", "0.55577546", "0.55479014", "0.55406296", "0.55306125", "0.54375345", "0.54207647", "0.54099125", "0.54006857", "0.5392705", "0.53757626", "0.5352141", "0.53508765", "0.5318277", "0.5297165", "0.5295639", "0.5275674", "0.5261471", "0.5257021", "0.5241193", "0.52217084", "0.5212181", "0.5198702", "0.5194592", "0.51812464", "0.518053", "0.51776594", "0.51688015", "0.5153635", "0.51398915", "0.5137703", "0.5131567", "0.5127928", "0.51270616", "0.5124488", "0.511888", "0.51110065", "0.5098098", "0.5088987", "0.5082736", "0.5078444", "0.50712746", "0.50645435", "0.5063468", "0.50596666", "0.50523645", "0.505178", "0.5046763", "0.5044428", "0.5043177", "0.5017409", "0.5010055", "0.5008986", "0.5002565", "0.49980012", "0.49975917", "0.49934077", "0.49887437", "0.4986171", "0.49782082", "0.49767783", "0.49701932", "0.49679297", "0.49648964", "0.49609682", "0.495629", "0.49477035", "0.494623", "0.49449238", "0.49443904" ]
0.6652547
2
Gets the second object of the Pair.
public V getSecond() { return second; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getSecond();\r\n\t\t\t}\r\n\t\t}", "public SAMRecord getSecondPair() throws CloneNotSupportedException {\n\t\treturn (SAMRecord) crosslinkedRecord2.clone();\n\t}", "public IPoint getSecondPoint()\n {\n\n Set<IPoint> vertices = this.getVertices();\n Object[] verticesArray = vertices.toArray();\n IPoint secondPoint = (IPoint)verticesArray[1];\n\n return secondPoint;\n }", "@Override\r\n\t\tpublic V getValue() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "public S second() {\n return this.second;\n }", "public DListNode2 correspondingPair(){\r\n return this.correspondingPair;\r\n }", "public T2 getSecond() {\n\t\treturn second;\n\t}", "@Override\n\tpublic Pair getPair() {\n\t\tlock.lock();\n\t\ttry {\n\t\t\treturn new Pair(pair.getX(), pair.getY());\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\t\t\n\t}", "public WorldObject getSecondObject(){\r\n\t\treturn this.secondObject;\r\n\t}", "public GPoint getSecondPoint(){\n return(point2);\n }", "public T getSecond() {\n return second;\n }", "public Integer getSecond(){\n return this.second;\n }", "public static Noun getPairNoun(final Noun noun1, final NounType nounType2) {\r\n\t\tMark mark = noun1.pairs[nounType2.num - 1];\r\n\t\tif (mark == null) return null;\r\n\t\treturn mark.noun1 == noun1 ? mark.noun2 : mark.noun1;\r\n\t}", "public PileupElement getSecond() { return PE2; }", "public Position getSecond() {\n return positions[1];\n }", "public Object getV2(){\n \treturn v2;\n }", "public Object getValue2() { return this.value2; }", "public B second() {\n return second;\n }", "public T getSecond() {\n\t\t\treturn t;\n\t\t}", "@NotNull\n default GenericPair getPair() {\n return GenericPair.of(this.getLeftType(), this.getRightType());\n }", "public Pair get()\n {\n return this.MapItr.element;\n }", "public Pair(X first, Y second) {\n this.first = first;\n this.second = second;\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public String getObj2 () {\r\n return Obj2; \r\n }", "public int getSecond() { return this.second; }", "public Player getSecondPlayer() {\n return secondPlayer;\n }", "@NotNull\n public S getSecond() {\n return second;\n }", "public B getSecond() {return second; }", "@Override\r\n public Card getSecondCard() {\r\n return this.secondCard.equals(null) ? Card.NONE : this.secondCard;\r\n }", "public Point getP2(){\n return this.p2;\n }", "public Protein getOtherProteine(Protein p) {\n\t\tif (p == p1) {\n\t\t\treturn p2;\n\t\t}\n\t\tif (p == p2) {\n\t\t\treturn p1;\n\t\t}\n\t\treturn null;\n\t}", "public java.lang.String getSecondary2() {\n return secondary2;\n }", "@Override\n public String toString() {\n return \"Pair[\" + first + \", \" + second + \"]\";\n }", "public Player getP2() {\n return p2;\n }", "public AxisModel getSecondAxis() {\n return this.getTypedValue(SECOND_AXIS_PROPERTY_KEY, null);\n }", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "public U getSecond() {\n return u;\n }", "public Object obtDupla(Object key1, Object key2) {\r\n\t\tObject value=null;\r\n\t\tHashMap<String, Double> fila = structure.get(key1);\r\n\t\tif (fila != null)\r\n\t\t\tvalue = fila.get(key2);\r\n\t\treturn value;\r\n\t}", "public Pair(T first, T second) {\r\n this.first = first;\r\n this.second = second;\r\n }", "public Point2D getPoint2() {\n return this.point2;\n }", "public T caseTuple2(Tuple2 object)\n {\n return null;\n }", "public T2 _2() {\n return _2;\n }", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public final ManagedElementList<VirtualMachine> getSecondSet() {\r\n return (ManagedElementList<VirtualMachine>) this.set2;\r\n }", "public String getType() {return \"Pair\";}", "public CVector getV2() {\n\treturn v2;\n }", "public Object get2(final C a, final C b) {\n return null;\n }", "@Override\r\n\t\tpublic hust.idc.util.pair.UnorderedPair<E> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "public Pair(K first, V second) {\r\n\t\tthis.first = first;\r\n\t\tthis.second = second;\r\n\t}", "@Override\r\n\t\tpublic Pair<S, T> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "public Result getResultOfSecondPlayer() {\r\n\t\treturn this.resultOfFirstPlayer.getOpposite();\r\n\t}", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "public SAMRecord getFirstPair() throws CloneNotSupportedException {\n\t\treturn (SAMRecord) crosslinkedRecord1.clone();\n\t}", "public ServerPlayer getP2() {\r\n\t\treturn p2;\r\n\t}", "public P2PUser getUser(NPair pair);", "public Object item2() throws InvalidNodeException {\n\t\tif (!isValidNode()) {\n\t\t\tthrow new InvalidNodeException();\n\t\t}\n\t\treturn item2;\n\t}", "public static <A, B> Pair<A, B> of(final @Nullable A first, final @Nullable B second) {\n return new Pair<A, B>(first, second);\n }", "Integer getSecond();", "public Card getPlayer2Card()\n {\n player2card = new Card(player2Hand.dequeue().toString());\n return player2card;\n \n }", "public Pair(Card firstCard, Card secondCard){\r\n this.firstCard = firstCard;\r\n this.secondCard = secondCard;\r\n }", "private Pair(U first, V second) {\n\t\t\tthis.first = first;\n\t\t\tthis.second = second;\n\t\t}", "public static <C> C SECOND(LIST<C> L) {\n C x = null;\n if ( ! isNull( L ) ) {\n x = L.list.get(2);\n }\n return x;\n }", "GraphNode secondEndpoint() \n\t {\n\t\treturn this.secondEndpoint;\n\t\t \n\t }", "public Pin getOtherPin(Pin pin) {\n if(p1.equals(pin)) {\n return p2;\n } else if(p2.equals(pin)) {\n return p1;\n }\n return null;\n }", "public PlayerColor getSecondPlayer() {\r\n return this.secondPlayer;\r\n }", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public City snd() {\n return city2;\n }", "public Point3D getPoint2() {\r\n return point2;\r\n }", "@Override\r\n\tpublic vec2 get2(String ponits) {\n\t\treturn null;\r\n\t}", "public byte getP2() {\n return this.apdu_buffer[P2];\n }", "public static Team getSecondPlace() {\n\t\tif (matches != null && matches.length > 0 && matches[0] != null)\n\t\t\treturn matches[0].getLoser();\n\t\treturn null;\n\t}", "@Basic\r\n\tpublic Position getPosition2() \r\n\t{\r\n\t\treturn this.position2;\r\n\t}", "public Pair(final T first, final U second) {\n this.first = first;\n this.second = second;\n }", "public Type getType2() {\n\t\treturn this.data.getType2();\n\t}", "private KeyPair getPrivateKeyPair() throws IOException {\n final PEMParser pemParser = new PEMParser(new StringReader(sshKey));\n final PEMKeyPair keypair = (PEMKeyPair) pemParser.readObject();\n final JcaPEMKeyConverter converter = new JcaPEMKeyConverter();\n return new KeyPair(\n converter.getPublicKey(SubjectPublicKeyInfo.getInstance(keypair.getPublicKeyInfo())),\n converter.getPrivateKey(keypair.getPrivateKeyInfo()));\n }", "public int getProperty2() {\n return property2_;\n }", "public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public String getSecondWord()\r\n {\r\n return this.aSecondWord; \r\n }", "public double getSide2() {\r\n\t\treturn side2;\r\n\t}", "public java.lang.String getValue2() {\n return this.value2;\n }", "public int getProperty2() {\n return property2_;\n }", "public interface Pairable <T>{\n public T getFirst();\n public T getSecond();\n public void changeOrder();\n}", "public Pair getRandomPair() {\n Shirt shirt = getRandomShirt();\n Trouser trouser = getRandomTrouser();\n\n if (trouser != null && shirt != null)\n return new Pair(shirt, trouser);\n else {\n return null;\n }\n }", "public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }", "public Tuple get(Key k) throws RelationException;", "public B getSongs()\n {\n return second;\n }", "public static Object first(Object o) {\n log.finer(\"getting first of list expression: \" + o);\n validateType(o, SPair.class);\n return ((SPair)o).getCar();\n }", "public Object getObject() {\n return getObject(null);\n }", "@Override\r\n\t\tpublic final E getSecond() {\n\t\t\treturn null;\r\n\t\t}", "public String getType() {\n\t\treturn \"Pair\";\n\t}", "public String getOther2() {\n return other2;\n }", "@Override\r\n\t\tpublic E setSecond(E second) {\n\t\t\treturn pair.setSecond(second);\r\n\t\t}" ]
[ "0.79754347", "0.75339293", "0.75339293", "0.74798566", "0.7207439", "0.71243435", "0.70716906", "0.7046304", "0.6865584", "0.6783638", "0.6662418", "0.6658748", "0.65893817", "0.65269464", "0.65188074", "0.6459249", "0.6403208", "0.63744926", "0.62831855", "0.62434626", "0.62394935", "0.62058204", "0.6201008", "0.6154228", "0.6102664", "0.6091316", "0.6086971", "0.6086487", "0.607107", "0.60706884", "0.6063719", "0.6047433", "0.6013137", "0.5993557", "0.5989285", "0.59824634", "0.59645677", "0.5961875", "0.5953598", "0.5951791", "0.5947443", "0.59322435", "0.5926377", "0.5887494", "0.5881845", "0.58535784", "0.5846503", "0.5846503", "0.5842019", "0.58412874", "0.58214587", "0.57978195", "0.57973826", "0.5790281", "0.57622105", "0.57560414", "0.5719807", "0.57052463", "0.5702936", "0.5699248", "0.5698893", "0.56604993", "0.565205", "0.56492645", "0.564271", "0.5629193", "0.561599", "0.56123084", "0.5597496", "0.5589731", "0.55852205", "0.55798995", "0.55653965", "0.55605686", "0.5558952", "0.5548248", "0.5540405", "0.55206656", "0.5518887", "0.55109006", "0.5509102", "0.5507701", "0.549518", "0.5492422", "0.5492422", "0.54742527", "0.54531765", "0.54508686", "0.5450779", "0.54417694", "0.54411453", "0.54297686", "0.5426797", "0.5422693", "0.54195064", "0.54117787", "0.5407927", "0.5398806", "0.53954405", "0.5378198" ]
0.6351212
18
Set the second object of the pair.
public void setSecond(V second) { this.second = second; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic E setSecond(E second) {\n\t\t\treturn pair.setSecond(second);\r\n\t\t}", "public void SetTo(Pair rhs) {\n this.first = rhs.first;\n this.second = rhs.second;\n }", "@Override\r\n\t\tpublic V setValue(V value) {\n\t\t\treturn pair.setSecond(value);\r\n\t\t}", "@Override\r\n\t\tpublic S setSecond(S second) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.setSecond(second);\r\n\t\t\t}\r\n\t\t}", "public Pair(X first, Y second) {\n this.first = first;\n this.second = second;\n }", "public Pair(K first, V second) {\r\n\t\tthis.first = first;\r\n\t\tthis.second = second;\r\n\t}", "private Pair(U first, V second) {\n\t\t\tthis.first = first;\n\t\t\tthis.second = second;\n\t\t}", "public Pair(T first, T second) {\r\n this.first = first;\r\n this.second = second;\r\n }", "public void setSecond(@NotNull S second) {\n Condition.argNotNull(\"second\", second);\n this.second = second;\n }", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "public void setValue2(Object value2) { this.value2 = value2; }", "public Pair(final T first, final U second) {\n this.first = first;\n this.second = second;\n }", "public void setSecondObject( WorldObject secondObject ){\r\n\t\tthis.secondObject = secondObject;\r\n\t}", "public void setOb2(CPointer<BlenderObject> ob2) throws IOException\n\t{\n\t\tlong __address = ((ob2 == null) ? 0 : ob2.getAddress());\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeLong(__io__address + 8, __address);\n\t\t} else {\n\t\t\t__io__block.writeLong(__io__address + 4, __address);\n\t\t}\n\t}", "public Pair(S n1, S n2) {\n\t\tkey1 = n1;\n\t\tkey2 = n2;\n\t}", "public void setObj2 (String value) {\r\n Obj2 = value;\r\n }", "public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }", "public Pair(Card firstCard, Card secondCard){\r\n this.firstCard = firstCard;\r\n this.secondCard = secondCard;\r\n }", "public Pair(Object i, Object j)\n {\n a = i;\n b = j;\n }", "public Pair(Pair<T,V> p){\r\n this.v1 = p.v1;\r\n this.v2 = p.v2;\r\n }", "public Pair(T v1, V v2) {\r\n this.v1 = v1;\r\n this.v2 = v2;\r\n }", "public EntityPair(int entity1, int entity2) {\n\t \n\t this.entity1 = entity1;\n\t this.entity2 = entity2;\n }", "@Override\r\n\t\tpublic E setFirst(E first) {\n\t\t\treturn pair.setFirst(first);\r\n\t\t}", "public Pair(Object first, Object rest) {\n\t\tthis.first = first; this.rest = rest;\n\t}", "private void setP2( Point p2 ){\n this.p2=p2;\n }", "public MutablePair(Pair<K, V> pair) {\n this(pair.getKey(), pair.getValue());\n }", "public Pair(String origin_id, String destination_id){\n this.origin_id = origin_id;\n this.destination_id = destination_id;\n }", "@Override\n\tpublic void setNode_2(java.lang.String node_2) {\n\t\t_dictData.setNode_2(node_2);\n\t}", "public OrderedPair(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public TwoTuple(T value1, K value2) {\n this.value1 = value1;\n this.value2 = value2;\n }", "public void set(String arg0, String arg1, Object arg2) {\n\t\tthis.bdb.set(arg0,arg1,arg2);\n\t}", "public void setValue(Object param1, Object param2) {\n }", "@Override\n public V setValue(V v2) {\n Object object = this.h;\n synchronized (object) {\n return this.a().setValue(v2);\n }\n }", "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "public Pair(A primer, B segon) {\n this.primer = primer;\n this.segon = segon;\n }", "public void setSecond(T tt) {\n\t\t\tthis.t = tt;\n\t\t}", "public void setSecondAxis(AxisModel value) {\n this.setValue(SECOND_AXIS_PROPERTY_KEY, value);\n }", "public void setOnt2(OntEntry ont)\r\n\t{\r\n\t\tif (ont2 != null)\r\n\t\t{\r\n\t\t\tont2.decRefs();\r\n\t\t}\r\n\t\tont2 = ont;\r\n\t\tont.incRefs();\r\n\t}", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "public void setValue2(final java.lang.String value2) {\n this.value2 = value2;\n }", "public void set(String arg0, int arg1, Object arg2) {\n\t\tthis.bdb.set(arg0,arg1,arg2);\n\t}", "public SAMRecord getSecondPair() throws CloneNotSupportedException {\n\t\treturn (SAMRecord) crosslinkedRecord2.clone();\n\t}", "public void setVertex(Object vertex2){\r\n this.vertex = vertex2;\r\n }", "public void setP2(Player p2) {\n this.p2 = p2;\n }", "public PairRepresentation(DomainRepresentation left, DomainRepresentation right) {\n\t\tthis.left = left;\n\t\tthis.right = right;\n\t}", "public Pair(Object exchange, PairType type) {\n\t\tthis.exchange = exchange;\n\t\tthis.type = type;\n\t}", "@Override\r\n\tpublic int setIndividualObjectProPerty(String individualName_1,\r\n\t\t\tString individualName_2, String relation) {\n\t\tsynchronized (token) {\r\n\t\t\treturn super.setOWLIndividualObjectProPerty(individualName_1,\r\n\t\t\t\t\tindividualName_2, relation);\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic T setFirst(T first) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.setFirst(first);\r\n\t\t\t}\r\n\t\t}", "public Pair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public void setNext(Game g2) {\n\t\tif (g2 == null) {\n\n\t\t\tthis.next = null;\n\t\t}\n\n\t\t// if the pass in game object is the same\n\t\t// name as the current object, we exit the\n\t\t// method and do nothing.\n\t\telse if (this.name.equalsIgnoreCase(g2.name.toString())) {\n\n\t\t\treturn;\n\t\t}\n\n\t\t// else we set the pass in parameter as\n\t\t// the next game object.\n\t\telse {\n\n\t\t\tthis.next = g2;\n\t\t}\n\t\t\t\t\t\t\n\t}", "void set( couple ch)\r\n { \r\n \r\n //couple ch = itr.next();\r\n ch.g1.sethappy(ch.bucket);\r\n ch.b1.sethappy(ch.bucket);\r\n ch.happiness = ch.b1.happy + ch.g1.happy;\r\n ch.compatibility = (ch.b1.budget - ch.g1.getmaint()) + Math.abs(ch.b1.getintg() - ch.g1.getiq()) + Math.abs(ch.b1.getattr() - ch.g1.getb());\r\n // this sets the happiness n compatibility of the co \r\n \r\n }", "public void setPair(String key, String definition){\n\t\tpair = new Model(key, definition);\n\t}", "public GenericData set(String var1, Object var2) {\n return this.set(var1, var2);\n }", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public Pair(double v1, double v2) {\n\t\t\n\t\tsuper(v1, v2);\n\t}", "public void setP2(ServerPlayer p2) {\r\n\t\tthis.p2 = p2;\r\n\t}", "public T set(T obj);", "@Override\n\tpublic void setStreet2(java.lang.String street2) {\n\t\t_candidate.setStreet2(street2);\n\t}", "public CVectorPair(double x1, double y1, double x2, double y2) {\n\tthis(new CVector(x1, y1), new CVector(x2, y2));\n }", "public ClothingPair(E left, E right) {\n super(left, right);\n }", "@Override\n\tpublic void setField2(boolean field2) {\n\t\t_second.setField2(field2);\n\t}", "public void setItem2(Object item) throws InvalidNodeException {\n\t\tif (!isValidNode()) {\n\t\t\tthrow new InvalidNodeException();\n\t\t}\n\t\tthis.item2 = item;\n\t}", "public void set(Vec2 v) {\r\n\t\tx = v.x;\r\n\t\ty = v.y;\r\n\t}", "public void setNome(Object nome2) {\n\t\t\n\t}", "public Vector2 Assign(Vector2 vector2){\n x = vector2.x;\n y = vector2.y;\n return this;\n }", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public boolean set(V value2) {\n Object valueToSet;\n if (value2 == null) {\n valueToSet = NULL;\n } else {\n valueToSet = value2;\n }\n if (!ATOMIC_HELPER.casValue(this, null, valueToSet)) {\n return false;\n }\n complete(this);\n return true;\n }", "public void setObjectAtLocation(Point p, Object o);", "public void setEndTwoElement(ElementStub endTwoElement)\n {\n this.endTwoElement = endTwoElement;\n }", "public void setSecondSet(String set) {\n\t\tset2 = set;\n\t\tsetsList = null;\n\t}", "public void setAttribute2(String value)\n {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setPoint2(Point3D point2) {\r\n this.point2 = point2;\r\n }", "void setP2p(int p2p);", "public Builder setProperty2(int value) {\n bitField0_ |= 0x00000010;\n property2_ = value;\n \n return this;\n }", "public abstract void set(T first, T second, Double similarity);", "protected void setSecondPlayer(TennisPlayer tennisPlayer) {\r\n this.secondPlayer = tennisPlayer;\r\n }", "public void setValue2 (String Value2);", "public void setSecond(double value) {\n this.second = value;\n }", "public setKeyValue_result(setKeyValue_result other) {\n }", "void setValue(Object object, Object value);", "public PairImpl(F key, S value) {\n this.key = key;\n this.value = value;\n }", "public void setId2(int value) {\n this.id2 = value;\n }", "public void setA2(int a2)\n {\n this.a2 = a2;\n }", "public void swap() {\n Point2D temp = this.point1;\n this.point1 = this.point2;\n this.point2 = temp;\n }", "public void setSecond(int count){\n this.second = count;\n }", "public void setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }", "public Vector2f set (Vector2f other)\n {\n return set(other.x, other.y);\n }", "public boolean Equals(Pair rhs) {\n if(this.first == rhs.first &&\n this.second == rhs.second)\n return true;\n\n return false;\n }", "public T set(int i, T obj);", "public void set(int x, int y)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public void setAttribute2(String value) {\n setAttributeInternal(ATTRIBUTE2, value);\n }", "public LinkedElement(T t2){\n//\t\tassigning value to instance variable\n\t\tt=t2;\n\t}", "private void fromPairs(final Object[] pairs) throws IllegalArgumentException {\n if ((pairs.length & 1) != 0) {\n throw new IllegalArgumentException(\n Errors.format(ErrorKeys.ODD_ARRAY_LENGTH_$1, pairs.length));\n }\n for (int i=0; i<pairs.length; i += 2) {\n super.put(pairs[i], pairs[i+1]);\n }\n }", "@Override\r\n\t\tpublic V getValue() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public void setP2Card2(Card p2Card2){\n\t\tthis.p2Card2 = p2Card2;\n\t\trepaint();\n\t}" ]
[ "0.75823706", "0.7373761", "0.71487325", "0.694071", "0.68504816", "0.6812159", "0.67649645", "0.67083323", "0.66368526", "0.65881467", "0.6587004", "0.6506903", "0.63889253", "0.6275677", "0.6207032", "0.6171973", "0.6161942", "0.6101462", "0.6037995", "0.6012549", "0.5944229", "0.5938813", "0.59311956", "0.58898157", "0.5867562", "0.5743863", "0.57017016", "0.56638694", "0.5648539", "0.5646486", "0.56418556", "0.56274074", "0.55805135", "0.5575896", "0.556606", "0.5558919", "0.5556611", "0.55421704", "0.55413413", "0.55352485", "0.55316746", "0.5526907", "0.55053985", "0.5503121", "0.5497117", "0.54862", "0.5476423", "0.5468264", "0.54394597", "0.54312706", "0.5426346", "0.5424544", "0.53993523", "0.5384877", "0.53825766", "0.53445685", "0.53331584", "0.5320355", "0.5319863", "0.5306549", "0.53012323", "0.5298752", "0.52891207", "0.52886117", "0.52769923", "0.5276446", "0.52699727", "0.52577543", "0.52505976", "0.52425045", "0.5237509", "0.52245927", "0.5222014", "0.5220787", "0.52201504", "0.5220036", "0.5217196", "0.52095944", "0.52069515", "0.5203262", "0.5202116", "0.5191331", "0.51847774", "0.5182873", "0.5182041", "0.5180057", "0.5178621", "0.51759094", "0.51724446", "0.51487213", "0.5148492", "0.5148492", "0.5148492", "0.5148492", "0.5148492", "0.5148492", "0.5148105", "0.5138915", "0.51333994", "0.5127369" ]
0.65079415
11
set the list items
public void setListItems(List<String> lit) { mItems = lit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setList(List<T> items);", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "public void setItems(){\n }", "public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLock){\n filteredList = new ArrayList<T>(items);\n originalList = null;\n updateFilteringAndSorting();\n }\n }", "public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }", "public void updateItemsList(List<Image> list) {\n\n\t\tthis.itemsList = list;\n\n\t}", "public abstract java.util.Vector setDB2ListItems();", "@Override\n\tpublic void setItems(List<WhiteListInfo> items) {\n\t\tif (adapter == null) {\n\t\t\tadapter = new WhiteListAdapter(this, items);\n\t\t\tmListView.setAdapter(adapter);\n\t\t}\n\t\telse{\n\t\t\tadapter.setList(items);\n\t\t\tadapter.notifyDataSetChanged();\n\t\t}\n\t}", "public void set(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n\n //first collapse all items\n getFastAdapter().collapse();\n\n //get sizes\n int newItemsCount = items.size();\n int previousItemsCount = mItems.size();\n int itemsBeforeThisAdapter = getFastAdapter().getItemCount(getOrder());\n\n //make sure the new items list is not a reference of the already mItems list\n if (items != mItems) {\n //remove all previous items\n if (!mItems.isEmpty()) {\n mItems.clear();\n }\n\n //add all new items to the list\n mItems.addAll(items);\n }\n\n //map the types\n mapPossibleTypes(items);\n\n //now properly notify the adapter about the changes\n if (newItemsCount > previousItemsCount) {\n if (previousItemsCount > 0) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, previousItemsCount);\n }\n getFastAdapter().notifyAdapterItemRangeInserted(itemsBeforeThisAdapter + previousItemsCount, newItemsCount - previousItemsCount);\n } else if (newItemsCount > 0 && newItemsCount < previousItemsCount) {\n getFastAdapter().notifyAdapterItemRangeChanged(itemsBeforeThisAdapter, newItemsCount);\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter + newItemsCount, previousItemsCount - newItemsCount);\n } else if (newItemsCount == 0) {\n getFastAdapter().notifyAdapterItemRangeRemoved(itemsBeforeThisAdapter, previousItemsCount);\n } else {\n getFastAdapter().notifyAdapterDataSetChanged();\n }\n }", "public void setItems(List<T> value) {\n getElement().setItems(SerDes.mirror(value).cast());\n }", "void setListData(int list, int data) {\n\t\tm_lists.setField(list, 5, data);\n\t}", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }", "public void setFoods(List<Food> list){\n foodList = list;\n notifyDataSetChanged();\n }", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "public void fillList()\n {\n for (Category item : itemsList)\n {\n item.setSelected(true);\n }\n notifyDataSetChanged();\n }", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public void setItems(List<PickerItem> items) {\n this.items = items;\n initViews();\n selectChild(-1);\n }", "public void setItems(Item items) {\n this.items = items;\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "@Test\n public void testSetListItems() {\n System.out.println(\"setListItems\");\n List listItems = null;\n DataModel instance = new DataModel();\n instance.setListItems(listItems);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setItems(ArrayList<Item> items) {\n\t\tthis.items = items;\n\t}", "@Override\n public void setItems(List<ExplanationOrReadingItem> items) {\n progressDialog.dismiss();\n mlist.setAdapter(new ExplanationOrReadingAdapter(items));\n mlist.setOnItemClickListener(this);\n }", "@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}", "public void setItems(String items)\n {\n _items = items;\n }", "public void setItemList(String item)\n {\n this.itemLinkedList.add(new Item(item));\n }", "private void setItems(ArrayList<NameId> values) {\n\t\tif (values == null || values.isEmpty()) {return;}\n\t\tint row = 0;\n\t\tCollections.sort(values);\n\t\tGrid.RowFormatter fmtRow = field.getRowFormatter();\n\t\tGrid.CellFormatter fmtCell = field.getCellFormatter();\n\t\tfield.resize(values.size(), 3);\n\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\tfor (NameId value : values) {\n\t\t\tfield.setText(row, 0, value.getName());\n\t\t\tfield.setText(row, 1, value.getId());\n\t\t\tCheckBox cb = new CheckBox();\n\t\t\tcb.addClickHandler(this);\n\t\t\tfield.setWidget(row, 2, cb);\n\t\t\tfmtCell.addStyleName(row, 1, CSS.cbtMultilistFieldNull());\n\t\t\tfmtRow.addStyleName(row++, CSS.cbtMultilistFieldValue());\n\t\t}\n\t}", "public void setRandomItems(ArrayList<RandomItem> items);", "public void setAs(ElementList<E> list) {\r\n\t\tthis.makeEmpty();\r\n\t\theader.next = list.first();\r\n\t\tlast = list.last;\r\n\t}", "private void setOnListView() {\n\t\tlist.setItems(obs);\n\t\tlist.setCellFactory(new Callback<ListView<User>, ListCell<User>>(){\n\n\t\t\t@Override\n\t\t\tpublic ListCell<User> call(ListView<User> p) {\n\t\t\t\t\n\t\t\t\tListCell<User> cell = new ListCell<User>() {\n\t\t\t\t\t\n\t\t\t\t\t@Override \n\t\t\t\t\tprotected void updateItem(User s, boolean bln) {\n\t\t\t\t\t\tsuper.updateItem(s, bln);\n\t\t\t\t\t\tif(s != null) {\n\t\t\t\t\t\t\tsetText(s.getUserName());\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t\tsetText(\"\");\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\treturn cell;\n\t\t\t}\n\t\t});\n\t}", "public void initAttributes(ObservableList<Item> items) {\n this.items = items;\n }", "@Override\r\n protected void setItems(ObservableList otherTreeItems) {\r\n setAllItems(otherTreeItems);\r\n }", "private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }", "public void setToDoListTitles() {\n\n ArrayList<String> toDoListTitlesSetter = new ArrayList<String>();\n for (int i = 0; i < myList.size(); i++) {\n toDoListTitlesSetter.add(myList.get(i).get(0));\n }\n toDoListTitlesTemp.clear();\n for(int i = 0; i < toDoListTitlesSetter.size(); i++){\n toDoListTitlesTemp.add(toDoListTitlesSetter.get(i));\n }\n\n Log.i(TAG, \"we have set the list titles\");\n }", "public void setItem(Object item, int i)\n {\n items.setElementAt(item, i);\n }", "public void setList_Base (String List_Base);", "private void modify(List listString){\n\t}", "@Override\n public void setListData() {}", "public void setItem(Item item) throws Exception {\n\t\tfor(int i = 0; i < last; ++i)\n\t\t\tif(list[i].getCode() == item.getCode()) {\n\t\t\t\tlist[i].increment(item.getCount());\n\t\t\t\treturn;\n\t\t\t}\n\t\tif(last < size)\n\t\t\tlist[last++] = item;\n\t\telse\n\t\t\tthrow new Exception(\"list full\");\n\t}", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "private void initList() {\n\n }", "public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}", "void setListProperty(Object name, List<Object> list) throws JMSException;", "public void setListProperty(List<Integer> t) {\n\n\t\t}", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }", "public static void setList(CustomerList list){\n\t\tUserInterface.list = list;\n\t}", "public void setList(DList2 list1){\r\n list = list1;\r\n }", "public void setList(LinkedBlockingQueue<Item> list) {\n Iterator it = list.iterator();\n int i = 0;\n Object[][] data = new Object[list.size()][4];\n while(it.hasNext()) {\n Item item = (Item) it.next();\n data[i][0]=item.getItem_id();\n data[i][1]= item.getItem_name();\n data[i][2]= item.getItem_price();\n data[i][3]= item.getItem_quantity();\n \n i++;\n \n \n System.out.println(\"client: adding item to gui: \" + item.getItem_name());\n }\n TableModel model = new DefaultTableModel(data, colomnNames);\n sorter = new TableRowSorter<TableModel>(model);\n \n JTable table = new JTable(model);\n table.setRowSorter(sorter);\n \n JScrollPane pane = new JScrollPane(table);\n pane.setBounds(0,100, this.getWidth(), 300);\n table.setFillsViewportHeight(true);\n add(pane);\n \n setSearch();\n \n \n System.out.println(\"client: added all items to gui\");\n this.revalidate();\n this.repaint();\n }", "private void setToDoLists(){\n\n ArrayList<String> groceries = new ArrayList<String>();\n groceries.add(\"groceries\");\n groceries.add(\"apples\");\n groceries.add(\"gogurts\");\n groceries.add(\"cereal\");\n groceries.add(\"fruit roll ups\");\n groceries.add(\"lunch meat\");\n groceries.add(\"milk\");\n groceries.add(\"something for dessert\");\n groceries.add(\"steak\");\n groceries.add(\"milksteak\");\n groceries.add(\"cookies\");\n groceries.add(\"brewzongs\");\n\n ArrayList<String> bills = new ArrayList<String>();\n bills.add(\"bills\");\n bills.add(\"car loan\");\n bills.add(\"cable\");\n bills.add(\"rent\");\n\n ArrayList<String> emails = new ArrayList<String>();\n emails.add(\"emails\");\n\n ArrayList<ArrayList<String>> tmpMyList;\n tmpMyList = new ArrayList<ArrayList<String>>();\n\n tmpMyList.add(groceries);\n tmpMyList.add(bills);\n tmpMyList.add(emails);\n\n myList = tmpMyList;\n\n }", "public void setCurrentListToBeDoneList();", "public void setList(ArrayList<Song> theSongs) {\n songs1 = theSongs;\n songsNumber = songs1.size();\n }", "private void setUpList() {\n\t\tRoomItemAdapter adapter = new RoomItemAdapter(getApplicationContext(),\n\t\t\t\trName, rRate);\n\t\tlistView.setAdapter(adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\thandleClick(position);\n\t\t\t}\n\t\t});\n\t}", "public void init(List<ClientDownloadItem> list) {\n if (list != null) {\n mItemlist.clear();\n mItemlist.addAll(list);\n Log.i(TAG, \"mItemlist.size = \" + mItemlist.size());\n notifyDataSetChanged();\n }\n }", "private void populatesetlist() {\n\t\tmyset.add(new set(\"Password\", R.drawable.passwordop, \"hello\"));\n\t\tmyset.add(new set(\"Help\", R.drawable.helpso4, \"hello\"));\n\t\tmyset.add(new set(\"About Developers\", R.drawable.aboutusop2, \"hello\"));\n\t\tmyset.add(new set(\"Home\", R.drawable.homefi, \"hello\"));\n\t}", "public void setEditList(List<StepModel> stepList){\n //Guardamos el tamaña de la lista a modificar\n int prevSize = this.stepModelList.size();\n //Limpiamos la lista\n this.stepModelList.clear();\n //Si la lista que me pasan por parámtro es nula, la inicializo a vacia\n if(stepList == null) stepList = new ArrayList<>();\n //Añado la lista que me pasan por parámetro a la lista vaciada\n this.stepModelList.addAll(stepList);\n //Notifico al adaptador que el rango de item se ha eliminado\n notifyItemRangeRemoved(0, prevSize);\n //Notifico que se ha insertado un nuevo rango de items\n notifyItemRangeInserted(0, stepList.size());\n }", "public void setListView() {\n arr = inSet.toArray(new String[inSet.size()]);\n adapter = new ArrayAdapter(SetBlock.this, android.R.layout.simple_list_item_1, arr);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n adapter.notifyDataSetChanged();\n listView.setAdapter(adapter);\n }\n });\n }", "public void setItems(List<PickerItem> items, int selectedIndex) {\n setItems(items);\n selectChild(selectedIndex);\n }", "@Override\n public void updateLists(ItemList userItemList, ItemList auctionItemList) {\n this.auctionItemList = auctionItemList;\n this.userItemList = userItemList;\n updateJList();\n }", "@RequestMapping(method=RequestMethod.PUT, value = \"/item\", produces = \"application/json\")\n public void setItems(ArrayList<Item> itemsToSet)\n {\n this.itemRepository.setItems(itemsToSet);\n }", "public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "public ListItems() {\n itemList = new ArrayList();\n }", "private void setItems(Set<T> items) {\n Assertion.isNotNull(items, \"items is required\");\n this.items = items;\n }", "public void setList(List<Integer> list) {\n this.list = list;\n }", "public void setList(DefaultListModel listModel) {\n // setting the model returns an NullPointerException that can be ignored\n try {\n recipeList.setModel(listModel);\n } catch (NullPointerException e) {\n // Do nothing\n }\n recipeList.setSelectedIndex(0);\n showSelectedRecipe();\n }", "public void setList(Collection<Group> groups) {\n\t\tthis.removeAll();\n\n\t\tif (groups == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (Group group : groups) {\n\t\t\tListitem row = new Listitem();\n\t\t\trow.setValue(group.getId());\n\t\t\tListcell nameCell = new Listcell(group.getName());\n//\t\t\tnameCell.setImage(\"/img/icon/pharmacy_16.png\");\n//\t\t\tnameCell.setStyle(\"padding-left: 10px\");\n\t\t\trow.appendChild(nameCell);\n\t\t\tthis.addRow(row);\n\t\t}\n\t\t((Listheader)this.getListhead().getFirstChild()).sort(true);\n\t}", "public void setListAdapter() {\n\t\tm_dao = new ItemDao(this.getActivity());\n\t\t\n\t\tthis.m_adapter = new EditItemListAdapter(\n\t\t\t\tthis.getActivity(),\n\t\t\t\tR.layout.row,\n\t\t\t\tm_dao.getList());\n\n\n\n\t\tsetListAdapter(this.m_adapter);\n\n\t\tthis.m_adapter.setOnEditItemClickListener(\n\t\t\t\tnew EditItemListAdapter.OnEditItemClickListener() {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Update the item status in the DB table\n\t\t\t\t\t */\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnDeselectItem(Item item) {\n\t\t\t\t\t\tif(toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.remove(item);\n\n\t\t\t\t\t}\n\n\n\t\t\t\t});\n\n\n\t\t\n\t}", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }", "public void populateList() {\n }", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "protected abstract void setValue(JList<?> list, T value, int index, boolean isSelected, boolean cellHasFocus);", "public void refresh(List<T> list) {\n this.items = list;\n notifyDataSetChanged();\n }", "public void setWeitereVerwendungszwecke(String[] list) throws RemoteException;", "public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }", "public void setArrayList(ArrayList<Chalet> arrayList) {\n this.arrayList.addAll(arrayList);\n notifyDataSetChanged();// to update the sutats\n }", "public void setList(java.util.List newAktList) {\n\t\tlist = newAktList;\n\t}", "void setData(int node_index, int element) {\n\t\tm_list_nodes.setField(node_index, 0, element);\n\t}", "private void setJList(JList list, String strs[]) {\n List<Integer> indexes = new ArrayList<Integer>(); ListModel lm = list.getModel();\n for (int i=0;i<strs.length;i++) { for (int j=0;j<lm.getSize();j++) if (strs[i].equals(\"\" + lm.getElementAt(j))) indexes.add(j); }\n int index_array[] = new int[indexes.size()]; for (int i=0;i<index_array.length;i++) index_array[i] = indexes.get(i);\n list.setSelectedIndices(index_array);\n }", "public void setItems(ObservableList<T> value) {\n\n this.getWrappedControl().setItems(value);\n }", "public void setList(String[][] items, int startIndex) {\n\t\tunselectCurrentRow();\n\n\t\t/* Insert items in rows. */\n\t\tif (startIndex + numberOfDataRows < items.length) {\n\t\t\tnumberOfUsedDataRows = numberOfDataRows;\n\t\t} else {\n\t\t\tnumberOfUsedDataRows = items.length - startIndex;\n\t\t}\n\n\t\tint row = 1;\n\n\t\tfor (int i = startIndex; i < (startIndex + numberOfUsedDataRows); i++) {\n\t\t\tfor (int j = 0; j < columnNames.length; j++) {\n\t\t\t\tgrid.setText(row, j, items[i][j]);\n\t\t\t}\n\t\t\trow++;\n\t\t}\n\n\t\t/* Clear rest of rows. */\n\t\tfor (int i = row; i <= numberOfDataRows; i++) {\n\t\t\tfor (int j = 0; j < columnNames.length; j++) {\n\t\t\t\tgrid.clearCell(i, j);\n\t\t\t}\n\t\t}\n\n\t\t/* Select first row and generate event. */\n\t\tif (numberOfUsedDataRows > 0) {\n\t\t\tselectRow(1);\n\t\t\tonCellClicked(null, 1, 0);\n\t\t}\n\n\t}", "public ItemListDTO(LinkedList<QuantifiedItemDTO> itemList) {\r\n\t\titems = itemList;\r\n\t}", "public void setData(java.util.List data) {\r\n this.data = data;\r\n }", "private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }", "public void updateJList() {\n list.setModel(toListModel(auctionItemList));\n }", "public void setCurrentItems(ArrayList<Item> currentItems) {\n this.currentItems = currentItems;\n }", "private void updateMenuItems()\r\n\t {\r\n\t\t setListAdapter(new ArrayAdapter<String>(this,\r\n\t\t android.R.layout.simple_list_item_1, home_menu));\r\n\t\t \t \r\n\t }", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "public void refershData(ArrayList<SquareLiveModel> contents) {\n\t\tlistData = contents;\n\t\tnotifyDataSetChanged();\n\t}", "public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}", "void setList(ArrayList<UserContactInfo> contactDeatailsList);", "public final void mo99820a(List<MyMediaModel> list) {\n if (C40173d.f104443a.mo99939a(this.f104225o)) {\n this.f104232v.setVisibility(8);\n } else if (C23477d.m77081a((Collection<T>) list)) {\n this.f104232v.setVisibility(8);\n } else {\n int size = list.size();\n this.f104232v.setVisibility(0);\n m128153a(size);\n int currentItem = this.f104236z.getCurrentItem();\n int i = this.f104193C;\n if (currentItem == this.f104222l) {\n i = this.f104194D;\n }\n if (size < i) {\n this.f104232v.setTextColor(getResources().getColor(R.color.a7b));\n this.f104232v.setClickable(false);\n } else {\n this.f104232v.setTextColor(getResources().getColor(R.color.a79));\n this.f104232v.setClickable(true);\n }\n this.f104218h.clear();\n this.f104218h.addAll(list);\n if (C40173d.f104443a.mo99939a(this.f104225o)) {\n this.f104232v.setVisibility(8);\n }\n }\n }", "public void setListData(List<MessageListItem> listData) {\n if (DEBUG) Timber.v(\"setListData, Size: %s\", listData == null ? \"null\" : listData.size());\n this.listData = listData;\n notifyDataSetChanged();\n }", "public void updateList(List<?> listOfObjects){\n this.radioObjects = listOfObjects;\n }", "public void setOrderList() {\n\n\t\tint index = 0;\n\t\tlistModel.clear();\n\t\tfor (Order order : driver.getOrderDB().getCustomerOrderList()) {\n\t\t\tlistModel\n\t\t\t\t\t.addElement(textAlignment(\" \" + order.getId(), \"\" + order.getDate(), \"\"\n\t\t\t\t\t\t\t+ order.getPerson().getId(), \"\"\n\t\t\t\t\t\t\t+ order.getCurrentlyLoggedInStaff().getId()));\n\t\t\t// stockList.setSelectedIndex(orderListIndex);\n\t\t\tindex++;\n\t\t}\n\t}", "private static void setValues( String name, Integer number, Item item ) {\n\t\titem.getItemProperty( \"name\" ).setValue( name );\n\t\titem.getItemProperty( \"number\" ).setValue( number );\n\t\titem.getItemProperty( \"id\" ).setValue( itemId );\n\t\titem.getItemProperty( \"id\" ).setReadOnly( true );\n\t\titemId++;\n\t}", "public void updateListView(List<Event> list) {\n this.eventsList = list;\n notifyDataSetChanged();\n }", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "public void updateListSetModel() {\n listSet.setPrototypeCellValue(\"title\" + Short.MAX_VALUE);\n listSet.setModel(new AbstractListModel() {\n @Override\n public int getSize() {\n return getListStrings().length;\n }\n\n @Override\n public Object getElementAt(int i) {\n return getListStrings()[i];\n }\n });\n }" ]
[ "0.76566213", "0.7573652", "0.7281287", "0.7188592", "0.7153816", "0.6936586", "0.69123787", "0.68200004", "0.67970866", "0.67591006", "0.6746844", "0.67063636", "0.66911256", "0.66859055", "0.66366816", "0.6630759", "0.6621985", "0.65733695", "0.65574783", "0.6540009", "0.6524662", "0.65181357", "0.65090007", "0.6497829", "0.64945817", "0.64854294", "0.6484422", "0.64758724", "0.6468044", "0.6449646", "0.64457786", "0.6424817", "0.64135146", "0.639628", "0.63693804", "0.6362529", "0.63571507", "0.6334382", "0.6311307", "0.63109297", "0.63089246", "0.6305718", "0.63018954", "0.6295193", "0.6292687", "0.6289147", "0.6285154", "0.6278511", "0.6267516", "0.6258062", "0.62503445", "0.6249455", "0.6249193", "0.624474", "0.62356406", "0.6231691", "0.6228752", "0.6224591", "0.62034446", "0.61990947", "0.6194749", "0.6190541", "0.6185107", "0.61831504", "0.6149156", "0.6143001", "0.61401284", "0.613398", "0.6132157", "0.6129443", "0.61262023", "0.611912", "0.6117949", "0.61022234", "0.6098479", "0.6097322", "0.60956156", "0.6081529", "0.60778207", "0.60771114", "0.60689837", "0.60648435", "0.6062701", "0.6061905", "0.60445285", "0.60405713", "0.60351723", "0.6031096", "0.60179144", "0.6017277", "0.60066336", "0.60024977", "0.5999044", "0.59989685", "0.59970075", "0.5990948", "0.5982994", "0.5980988", "0.5977304", "0.5962956" ]
0.7350762
2
if can all selected or not
public boolean areAllItemsSelectable() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean allAre(ISelect s){\r\n return true; \r\n }", "private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}", "public String getIsSelectedAll() {\r\n return this.stemSearch.getIsSelectedAll().toString();\r\n }", "boolean isSetMultiple();", "public void selectCheckBoxes(){\n fallSemCheckBox.setSelected(true);\n springSemCheckBox.setSelected(true);\n summerSemCheckBox.setSelected(true);\n allQtrCheckBox.setSelected(true);\n allMbaCheckBox.setSelected(true);\n allHalfCheckBox.setSelected(true);\n allCampusCheckBox.setSelected(true);\n allHolidayCheckBox.setSelected(true);\n fallSemCheckBox.setSelected(true);\n// allTraTrbCheckBox.setSelected(true);\n }", "boolean isSelected();", "boolean isSelected();", "boolean isSelected();", "public abstract boolean hasSelection();", "boolean hasStablesSelected();", "boolean applicable(Selection selection);", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "public void selectAll (){\r\n\t\tboolean noNeedNotification = (modeSelectAll && unselectedDataIds.isEmpty());\r\n\t\t\r\n\t\tunselectedDataIds.clear(); \r\n\t\tselectedDataIds.clear();\r\n\t\tmodeSelectAll = true ;\r\n\t\tif (! noNeedNotification)\r\n\t\t\tfireSelectionChangeNotification();\r\n\t}", "boolean hasAll();", "boolean hasAll();", "public abstract boolean isSelected();", "public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }", "public boolean allDaysSelected() {\n return selectedDays.size() == 7;\n }", "private void defaultSelectedFilterOption() {\n activeSelectBtn.setChecked(true);\n upcomingSelectBtn.setChecked(true);\n inProgressSelctBtn.setChecked(true);\n yettoJoinSelctBtn.setChecked(true);\n bookmarkedSelctBtn.setChecked(false);\n category1SelectBtn.setChecked(true);\n category2SelectBtn.setChecked(true);\n category3SelectBtn.setChecked(true);\n category4SelectBtn.setChecked(true);\n category5SelectBtn.setChecked(true);\n category6SelectBtn.setChecked(true);\n category7SelectBtn.setChecked(true);\n category8SelectBtn.setChecked(true);\n category9SelectBtn.setChecked(true);\n category10SelectBtn.setChecked(true);\n }", "private void checAll(Object [][] arr, boolean b){\r\n\t\tif(arr == null) return ;\r\n\t\t\r\n\t\tfor(int i =0 ; i < arr.length; i++){\r\n\t\t\tUserObject ob = (UserObject)arr[i][0];\r\n\t\t\tif(ob == null) continue;\r\n\t\t\tob.setSelected(b);\r\n\t\t}\r\n\t}", "public void cabSelectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n if (this.selectedListItems.size() == vCnt) {\n \tcabDeselectAll();\n \treturn;\n }\n \n // clear this out because it will be reset in the\n // onItemCheckedStateChanged callback\n selectedListItems.clear();\n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, true);\n }\n \n redrawListView();\n }", "boolean hasIronSelected();", "public void selectAllCheckBox(){\r\n\t\tfor (WebElement cbox : checkbox) {\r\n\t\t\tif(!cbox.isSelected()){\r\n\t\t\t\tcbox.click();\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t}", "public boolean isSelectAllOnFocusGain() {\n return selectAllOnFocusGain;\n }", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "boolean hasBracksSelected();", "public void selectAllAccessibleSelection() {\n // To be fully implemented in a future release\n }", "@FXML\n private void selectAllCheckBoxes(ActionEvent e)\n {\n if (selectAllCheckBox.isSelected())\n {\n selectCheckBoxes();\n }\n else\n {\n unSelectCheckBoxes();\n }\n \n handleCheckBoxAction(new ActionEvent());\n }", "private boolean checkSelectAll(){\n\t\tboolean ans = false;\n\t\tint i =0;//# of *\n\t\tfor(String temp : this.attrList){\n\t\t\tif(temp.equals(\"*\")){\n\t\t\t\t// ans = true;\n\t\t\t\ti++;\n\t\t\t\t// break;\n\t\t\t\tif (i==tableNames.size()) {\n\t\t\t\t\tans = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }", "public boolean isSelected();", "public boolean isSelected();", "public abstract void select(boolean select);", "public boolean isAllValues() { return this.isAll; }", "private void checkAtLeastOneRuleIsSelected() {\n\t\tsufficientRulesSelected = false;\n\t\tint checked = 0;\n\t\tControl[] controlArray = rulesGroup.getChildren();\n\n\t\tfor (Control elem : controlArray) {\n\t\t\tif (elem instanceof Button) {\n\t\t\t\tif (((Button) elem).getSelection()) {\n\t\t\t\t\tchecked++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (checked >= 1)\n\t\t\tsufficientRulesSelected = true;\n\t\tupdateFinishButton();\n\t}", "public boolean areAllAnswersCollect(){\n\t\tif(selectedA.isEmpty())\n\t\t\treturn false;\n\t\telse{\n\t\t\n\t\tfor(String Aanswer:selectedA){\n\t\t\tif(!(correctA.contains(Aanswer)))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn (selectedA.size() == correctA.size());\n\t\t}\n\t}", "boolean isCitySelected();", "public void selectAll() {\n setSelectedFurniture(this.home.getFurniture());\n }", "public Boolean getCanSelectValues() {\r\n return getAttributeAsBoolean(\"canSelectValues\");\r\n }", "static void setNotSelected(){isSelected=false;}", "public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}", "public boolean isSelected(){\r\n return selected;\r\n }", "public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }", "private boolean testMultiple(Set<Long> selectedSet, int columnId, boolean defaultflag) {\n final Cursor c = mListAdapter.getCursor();\n if (c == null || c.isClosed()) {\n return false;\n }\n c.moveToPosition(-1);\n while (c.moveToNext()) {\n long id = c.getInt(MessagesAdapter.COLUMN_ID);\n if (selectedSet.contains(Long.valueOf(id))) {\n if (c.getInt(columnId) == (defaultflag ? 1 : 0)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isSelected() { \n \treturn selection != null; \n }", "public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }", "public void selectedtoall(boolean g) {\n for (TableMaker.Person p : allProducts) {\n if (p.invitedProperty().get() != g) {\n p.invitedProperty().set(g);\n int v = p.numBerProperty().get();\n if (g) {\n TableMaker.ans[v] = 1;\n } else if (!g) {\n TableMaker.ans[v] = 0;\n } else {\n TableMaker.ans[v] = -1;\n }\n }\n\n }\n }", "public boolean isSelected() { return selected; }", "public boolean isMultiSelection()\n {\n return multiSelection;\n }", "@FXML\n public void allSelected() {\n this.populateListInterview(this.interviewer.getPendingInterviews());\n }", "protected abstract boolean isEnabledForSelection(T1 object, Vector<T2> globalSelection);", "public void selectAll ()\r\n {\r\n editor.selectAll ();\r\n }", "private boolean isAllProceduresChecked(List<IacucProtocolSpeciesStudyGroup> iacucProtocolSpeciesStudyGroups) {\n boolean allProceduresSelected = true; \n for(IacucProtocolSpeciesStudyGroup iacucProtocolSpeciesStudyGroup : iacucProtocolSpeciesStudyGroups) {\n iacucProtocolSpeciesStudyGroup.setAllProceduresSelected(true);\n for(IacucProtocolStudyGroupBean iacucProtocolStudyGroupBean : iacucProtocolSpeciesStudyGroup.getResponsibleProcedures()) {\n if(!iacucProtocolStudyGroupBean.isProcedureSelected()) {\n allProceduresSelected = false;\n iacucProtocolSpeciesStudyGroup.setAllProceduresSelected(false);\n break;\n }\n }\n }\n return allProceduresSelected;\n }", "private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}", "private void habilitaCampos() {\n for(java.util.ArrayList<JCheckBox> hijosAux: hijos)\n for(JCheckBox hijo: hijosAux)\n if(!hijo.isSelected())\n hijo.setSelected(true);\n \n }", "public boolean isSelected() \n {\n return selected;\n }", "public void setMultipleSelection(Boolean multipleSelection){\n m_multipleSelection = multipleSelection;\n }", "public void testMarkAllItemsSelectedInCategory()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelectedInCategory(17l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelectedInCategory(17l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\n\t}", "public void setSelectAll(boolean selectAll) {\n\t\tif (selectAll && isRDF()) this.selectAll = false;\r\n\t\telse this.selectAll = selectAll;\r\n\t}", "boolean isAllInview();", "boolean hasArtilleryFactorySelected();", "public void select(boolean a)\n {\n selected = a;\n }", "public boolean isSelected() {\n \t\treturn selected;\n \t}", "void showAll() { \n computers = \"\"; \n if(cbSmartphone.isSelected()) computers = \"Smartphone \"; \n if(cbTablet.isSelected()) computers += \"Tablet \"; \n if(cbNotebook.isSelected()) computers += \"Notebook \"; \n if(cbDesktop.isSelected()) computers += \"Desktop\"; \n \n selected.setText(\"Computers selected: \" + computers); \n }", "boolean hasSelectedTransport()\n {\n for(JCheckBoxMenuItem item : transportMenuItems.values())\n {\n if(item.isSelected())\n return true;\n }\n\n return false;\n }", "private boolean isAllIngredientOk(ArrayList<Boolean> listOfBool) {\n if (listOfBool.isEmpty() || listOfBool.contains(false))\n return false;\n return true;\n }", "protected void selectAll(JTextField source) {\n\t}", "public boolean isInterestedInAllItems();", "abstract public void cabMultiselectPrimaryAction();", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean hasAll() {\n return all_ != null;\n }", "public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}", "@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}", "@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}", "@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}", "private boolean isAllCardsPicked(){\n\t\t\n\t\tboolean isCardsPicked = true;\n\t\tfor ( int i = 0; i < pickedCards.length; i++ ){\n\t\t\tif(!pickedCards[i]) {\n\t\t\t\tisCardsPicked = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn isCardsPicked;\n\t}", "private boolean isAllCardsPicked(){\n\t\t\n\t\tboolean isCardsPicked = true;\n\t\tfor ( int i = 0; i < pickedCards.length; i++ ){\n\t\t\tif(!pickedCards[i]) {\n\t\t\t\tisCardsPicked = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn isCardsPicked;\n\t}", "public boolean canSelectionChange() {\n return true;\n }", "public boolean isSelectAllEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getCharCount() > 0;\n \t}", "@Override\n\t\tpublic boolean areAllItemsEnabled() {\n\t\t\treturn true;\n\t\t}", "boolean getMultiple();", "public boolean isMultiSelect() {\r\n return multiSelect;\r\n }", "public void setArrAll(boolean isArrAll) {\n\t\tthis.isArrAll = isArrAll;\n\t}", "public void enableCheckBoxes(){\n fallSemCheckBox.setDisable(false);\n springSemCheckBox.setDisable(false);\n summerSemCheckBox.setDisable(false);\n allQtrCheckBox.setDisable(false);\n allMbaCheckBox.setDisable(false);\n allHalfCheckBox.setDisable(false);\n allCampusCheckBox.setDisable(false);\n allHolidayCheckBox.setDisable(false);\n fallSemCheckBox.setDisable(false);\n// allTraTrbCheckBox.setDisable(false);\n selectAllCheckBox.setDisable(false);\n //Set selection for select all check box to true\n selectAllCheckBox.setSelected(true);\n }", "public boolean isSelectionEmpty() {\n\t\t\treturn tablecolselectmodel.isSelectionEmpty();\n\t\t}", "boolean isSetProbables();", "public void SetAllBypassBoxesSelected(boolean selected) {\n redTeamBypass1.setSelected(selected);\n redTeamBypass2.setSelected(selected);\n redTeamBypass3.setSelected(selected);\n blueTeamBypass1.setSelected(selected);\n blueTeamBypass2.setSelected(selected);\n blueTeamBypass3.setSelected(selected);\n }", "public void performSelectAll() {\n \t\ttext.selectAll();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t}", "public static Predicate<BiomeSelectionContext> all() {\n\t\treturn context -> true;\n\t}", "public boolean isSelected()\n {\n return selected;\n }", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public void setSelectAllOnFocus(boolean val)\n {\n this.selectAllOnFocus = val;\n }", "public boolean isSelectionChanged();", "public boolean isSetSldAll()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SLDALL$6) != 0;\n }\n }", "@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}", "public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}", "private boolean checkSelected() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\t\n\t\t\n\t\t\n\t\treturn (c1.isChecked() || c2.isChecked() || c3.isChecked() || \n\t\t\t\tc4.isChecked() || c5.isChecked() || c6.isChecked() || \n\t\t\t\tc061.isChecked() || c7.isChecked() || c8.isChecked() ||\n\t\t\t\tc9.isChecked() || c10.isChecked() || c11.isChecked() ||\t\n\t\t\t\tc111.isChecked() ||\tc12.isChecked() || c13.isChecked() || \n\t\t\t\tc131.isChecked() ||\tc14.isChecked() || c15.isChecked() || \n\t\t\t\tc16.isChecked() || c17.isChecked() || c18.isChecked() || \n\t\t\t\tc19.isChecked() || c20.isChecked() || c21.isChecked() || \n\t\t\t\tc22.isChecked() || c23.isChecked() || c24.isChecked() || \n\t\t\t\tc25.isChecked() || c26.isChecked() || c27.isChecked() || \n\t\t\t\tc28.isChecked() || c29.isChecked() || c291.isChecked() ||\n\t\t\t\tc30.isChecked() || c31.isChecked() || c32.isChecked() || \n\t\t\t\tc321.isChecked() || c322.isChecked());\n\t}", "public Boolean getIsselected() {\n return isselected;\n }", "public Boolean getIsselected() {\n return isselected;\n }", "public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}" ]
[ "0.7407387", "0.72285545", "0.69567436", "0.65591264", "0.6525003", "0.6502375", "0.6502375", "0.6502375", "0.6500814", "0.6491044", "0.64638996", "0.6463609", "0.64166677", "0.63306016", "0.63306016", "0.6321566", "0.63094497", "0.63094497", "0.63057184", "0.6269582", "0.6238428", "0.6165786", "0.61624783", "0.61361897", "0.6130476", "0.6121601", "0.6106178", "0.61018926", "0.60852593", "0.60654366", "0.60631484", "0.60631484", "0.6060605", "0.6058589", "0.60535", "0.60469466", "0.6046772", "0.60461545", "0.6029555", "0.60045326", "0.59687936", "0.5963626", "0.5962165", "0.5955616", "0.59555906", "0.59458923", "0.5915916", "0.5913745", "0.59085876", "0.5900112", "0.58916074", "0.586138", "0.5857838", "0.58356196", "0.58351994", "0.58316755", "0.5829694", "0.58183587", "0.58151495", "0.5811411", "0.5803948", "0.580013", "0.57956195", "0.57944727", "0.57931125", "0.57830435", "0.57736814", "0.57728535", "0.5768645", "0.5763662", "0.5763662", "0.5762828", "0.57624847", "0.57624847", "0.57624847", "0.57613343", "0.57613343", "0.57544184", "0.57529026", "0.57493794", "0.5741809", "0.57409346", "0.5716678", "0.57107276", "0.57061017", "0.57049865", "0.5677921", "0.5675365", "0.5647483", "0.5646692", "0.56453085", "0.5644752", "0.56370705", "0.5622265", "0.5607906", "0.5606007", "0.56055266", "0.56022626", "0.56022626", "0.5600983" ]
0.63632774
13
TODO Autogenerated method stub
public void notifyDataSetChanged(int position ) { mSelectPosition = position; super.notifyDataSetChanged(); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Updates the CatanModel to reflect the playing of a Monopoly card
@Override public Object execute() { CatanModel cm = null; try { cm = facade.getGameModel(authToken); cm.cardManager.playDevCard(DevCardType.MONOPOLY, ((MonopolyJSON)body).getPlayerIndex()); ResourceType resource = ResourceType.toEnum(((MonopolyJSON)body).getResource()); if(resource != null) { cm.resourceManager.useMonopolyCard(((MonopolyJSON)body).getPlayerIndex(), resource); cm.cardManager.setHasPlayedDevCard(((MonopolyJSON)body).getPlayerIndex(), true); } cm.chatManager.logAction(cm.playerManager.getPlayerName(((MonopolyJSON)body).getPlayerIndex()) + " played a monopoly card.", cm.playerManager.getPlayerName(((MonopolyJSON)body).getPlayerIndex())); } catch (ServerException | NotEnoughDevCardsException e) { e.printStackTrace(); } return cm; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void playGame(MarbleSolitaireModel model);", "protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getCards().setArtillery(cards.getArtillery());\r\n\t\tplayer.getCards().setCavalry(cards.getCavalry());\r\n\t\tplayer.getCards().setInfantry(cards.getInfantry());\r\n\t\tplayer.getCards().setJokers(cards.getJokers());\r\n\t\tMember member = player.getMember();\r\n\t\tif(score == Score.WIN) {\r\n\t\t\tmember.setScore(member.getScore() + player.getGame().getPlayers().size() - 1);\r\n\t\t\tmember.setWins(member.getWins() + 1);\r\n\t\t} else if(score == Score.LOSS) {\r\n\t\t\tmember.setScore(member.getScore() - 1);\r\n\t\t\tmember.setLosses(member.getLosses() + 1);\r\n\t\t}\r\n\t}", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "public MancalaModel() \n\t{\n\t\tplayerApits[] = new Pit[6];//going to switch to contain specific pits\n\t\tplayerBpits[] = new Pit[6];//\"\"\n\t\tcurrent = playerA;\n\t}", "public ConcentrationModel() {\r\n this.observers = new LinkedList<>();\r\n this.cards = new ArrayList<>();\r\n\r\n for ( int n = 0; n < NUM_PAIRS; ++n ) {\r\n Card card1 = new Card( n, true );\r\n Card card2 = new Card( n, true );\r\n this.cards.add( card1 );\r\n this.cards.add( card2 );\r\n }\r\n this.reset();\r\n }", "public void updateCard(Card card) {\n this.card.setValue(card);\n }", "public void updateComputerCard()\n {\n this.computerCard = highCardGame.getHand(0).inspectCard(computerCardCounter);\n }", "void playCurrentStationCard();", "public void setPlayer(Player p){\r\n playerModel=p; \r\n jEnemigoDatos.setText(p.getEnemy().getName());\r\n /*if(p.getBadConsequence()==null)\r\n jMalRolloDatos.setText(\"No\");\r\n else\r\n jMalRolloDatos.setText(\"Si\");*/\r\n if(p.isDead())\r\n jMuertoDatos.setText(\"Si\");\r\n else\r\n jMuertoDatos.setText(\"No\");\r\n \r\n jNivelDatos.setText(p.getLevels()+\"\");\r\n jCombatLevelDatos.setText(p.getCombatLevel()+\"\");\r\n jNombreDatos.setText(p.getName());\r\n if(p.canISteal())\r\n jRobarDatos.setText(\"Si\");\r\n else\r\n jRobarDatos.setText(\"No\");\r\n \r\n jNSectDatos.setText(Integer.toString(CultistPlayer.getTotalCultistPlayer()));\r\n \r\n if(playerModel.getClass() == CultistPlayer.class){\r\n jSectarioDatos.setText(\"Si\");\r\n //String text=(CultistPlayer)playerModel.getMyCultist().getGainedLevels()+\"\";\r\n //jSectarioDatos.setText(\"\"+(CultistPlayer)playerModel.getGainedLevels());\r\n \r\n }else\r\n jSectarioDatos.setText(\"No\");\r\n \r\n /*if(playerModel.getBadConsequence().isEmpty())\r\n pendingBadView1.setVisiblePending(false);\r\n else*/\r\n pendingBadView1.setVisiblePending(true);\r\n pendingBadView1.limpiar();\r\n \r\n // A continuación se actualizan sus tesoros \r\n fillTreasurePanel (jpVisibles, playerModel.getVisibleTreasures()); \r\n fillTreasurePanel (jpOcultos, playerModel.getHiddenTreasures()); \r\n btRobar.setEnabled(playerModel.canISteal());\r\n manejarBotones(true);\r\n repaint(); \r\n revalidate();\r\n }", "public void play() {\n\t\tthis.initializeTurn();\n\t\twhile(this.getAction() > 0) {\n\t\t\tint choix = RandomInt.randomInt(1,6, this.rand);\n\t\t\tif(choix == 1) {\n\t\t\t\t//add building, preference of Machine\n\t\t\t\tint max = 0;\n\t\t\t\tint maxi = 0;\n\t\t\t\tboolean find = false;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveBuildingCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) instanceof Machine) {\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t\tfind = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i).getPoint() > max && !find) {\n\t\t\t\t\t\t\tmax = this.getBoard().getFiveBuildingCards().get(i).getPoint();\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.addBuilding(this.getBoard().getFiveBuildingCards().get(maxi));\n\t\t\t\tDesignString.printBorder(\"Ouverture d'un chantier\");\n\t\t\t}\n\t\t\telse if(choix == 2 || choix == 3) {\n\t\t\t\t//add worker, preference of the lowest one\n\t\t\t\tint min = 999;\n\t\t\t\tint mini = 0;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveWorkerCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i).getCost() < min && this.getBoard().getFiveWorkerCards().get(i).getCost() >= this.getCoin()) {\n\t\t\t\t\t\t\tmin = this.getBoard().getFiveWorkerCards().get(i).getCost();\n\t\t\t\t\t\t\tmini = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(mini).getCost() >= this.getCoin()) {\n\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tDesignString.printBorder(\"Recrutement d'un ouvrier\");\n\t\t\t\t\tthis.hireWorker(this.getBoard().getFiveWorkerCards().get(mini));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(choix == 4 || choix == 5 || choix == 6) {\n\t\t\t\t//worker to building. Preference to the started building. If it can't play, preference to action to coin\n\t\t\t\tIBuilding building = null;\n\t\t\t\tIWorker worker = null;\n\t\t\t\tif(this.getWorkerCards().size() > 0) {\n\t\t\t\t\tif(this.getStartedBuilding().size() > 0) {\n\t\t\t\t\t\tchoix = RandomInt.randomInt(0,2,this.rand);\n\t\t\t\t\t\tif(choix%2 == 0) {\n\t\t\t\t\t\t\tint max = 0;\n\t\t\t\t\t\t\tint maxi = 0;\n\t\t\t\t\t\t\tfor(int i = 0; i < this.getStartedBuilding().size(); i++) {\n\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i) != null) {\n\t\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i).getWorkerOn().size() > max) {\n\t\t\t\t\t\t\t\t\t\tmax = this.getStartedBuilding().get(i).getWorkerOn().size();\n\t\t\t\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbuilding = this.getStartedBuilding().get(maxi);\n\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(this.getBuildingsCards().size() > 0) {\n\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void playMonumentCard() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void playRoadBuildingCard() {\n\t\t\r\n\t}", "public void toSetCard() {\n this.notifyTimeToSetCard(availableGods, getCurrentTurn().getCurrentPlayer());\n this.notifySetCard(availableGods, getCurrentTurn().getCurrentPlayer().getNickname(), chosenGodList);\n\n }", "@Override\n\tpublic void cardInPlay() {\n\t\tIPlayer playedOn = this.game.getOtherPlayer();\n\t\tif(!playedOn.getFaction().equals(Faction.Cultist)){\n\t\t\tplayedOn.setFaction(Faction.UNAFFILIATED);\n\t\t}\n\t\tthis.setDiscard();\n\t}", "void update(Card card) throws PersistenceCoreException;", "@Override\r\n\tpublic void update(CardApply ca) {\n\t\tcardApplyDao.update(ca);\r\n\t}", "void playMonumentCard();", "@Override\n\tpublic void update() {\n\t\tcanBuild = true;\n\t\tfor (Ship s : SceneManager.sm.currSector.ships) {\n\t\t\tif (!s.isPlayer) {\n\t\t\t\tif (s.cm.distanceTo(p.cm) < 2500) {\n\t\t\t\t\tcanBuild = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (SceneManager.sm.endSector.clear && SceneManager.sm.currSector.pos.isSame(SceneManager.sm.endSector.pos)) {\n\t\t\tSystem.out.println(\"Game WON\");\n\t\t\tthis.setActive(false);\n\t\t\tSceneManager.ws.setActive(true);\n\t\t}\n\t\tif (p.destroyed) {\n\t\t\tSystem.out.println(\"Game LOST\");\n\t\t\tthis.setActive(false);\n\t\t\tSceneManager.ls.setActive(true);\n\t\t}\n\n\t\tshipYard.update();\n\t\tstarMap.update();\n\n\t\t// TODO remove before flight: to draw where mouse is - temp\n\t\t// if (InputManager.mouse[2]) {\n\t\t// System.out.println(InputManager.mPos.toString());\n\t\t// }\n\n\t\tif (InputManager.keys[81])\n\t\t\tp.cmdRotate(false);\n\t\tif (InputManager.keys[69])\n\t\t\tp.cmdRotate(true);\n\t\tif (InputManager.keys[87])\n\t\t\tp.cmdMove(0, 1);\n\t\tif (InputManager.keys[83])\n\t\t\tp.cmdMove(2, 1);\n\t\tif (InputManager.keys[65])\n\t\t\tp.cmdMove(3, 1);\n\t\tif (InputManager.keys[68])\n\t\t\tp.cmdMove(1, 1);\n\t\tif (InputManager.keys[38]) {\n\t\t\tCamera.yOff += 10 * (1 / Camera.scale);\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t}\n\t\tif (InputManager.keys[40]) {\n\t\t\tCamera.yOff -= 10 * (1 / Camera.scale);\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t}\n\t\tif (InputManager.keys[39]) {\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t\tCamera.xOff -= 10 * (1 / Camera.scale);\n\t\t}\n\t\tif (InputManager.keys[37]) {\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t\tCamera.xOff += 10 * (1 / Camera.scale);\n\t\t}\n\n\t\t// key to go to build area - b\n\t\tif (canBuild && InputManager.keysReleased[66] || shipYard.clicked) {\n\t\t\tswtichToBuild();\n\t\t}\n\t\tif (InputManager.keysReleased[77] || starMap.clicked) {\n\t\t\tswtichToStarMap();\n\t\t}\n\t\t\n\t\t// key to select a ship - no use atm\n\t\tif (InputManager.mouse[1]) {\n\t\t\t//selected = SceneManager.sm.currSector.getClickShip();\n\t\t\t// now have a ship selected\n\t\t}\n\t\t\n\t\tif(InputManager.keysReleased[32]) {\n\t\t\tcamFocus = p.cm;\n\t\t}\n\n\t\t// key to move the camera to a ship or area\n\t\tif (InputManager.mouseReleased[2]) {\n\t\t\teyeFocused = false;\n\t\t\tif(SceneManager.sm.currSector.getClickShip() != null)\n\t\t\t{\n\t\t\t\tcamFocus = SceneManager.sm.currSector.getClickShip().cm;\n\t\t\t}else if(Camera.toScreen(eyeLoc).distanceTo(InputManager.mPos) < 40){\n\t\t\t\tcamFocus = eyeLoc;\n\t\t\t\teyeFocused = true;\n\t\t\t}else {\n\t\t\t\tcamFocus = Camera.toMap(InputManager.mPos.x, InputManager.mPos.y);\n\t\t\t}\n\t\t}\n\t\tif (partTarget != null && partTarget.health <= 0)\n\t\t\tpartTarget = null;\n\n\t\tif (partTarget == null && target != null)\n\t\t\tp.shoot(target);\n\n\t\tif (partTarget == null && target == null)\n\t\t\tp.ceaseFire();\n\n\t\tif (target != null && InputManager.mouseReleased[3] && !target.destroyed) {\n\t\t\tpartTarget = SceneManager.sm.currSector.getClickShipPart(target);\n\t\t\tp.shoot(partTarget);\n\t\t}\n\n\t\tif (InputManager.mouseReleased[3]) {\n\t\t\ttarget = SceneManager.sm.currSector.getClickShip();\n\t\t\tif (target != null && partTarget == null) {\n\t\t\t\tp.shoot(target);\n\t\t\t}\n\t\t}\n\t\tif (target != null && (target.destroyed || target.isPlayer)) {\n\t\t\ttarget = null;\n\t\t\tpartTarget = null;\n\t\t\tp.ceaseFire();\n\t\t}\n\n\t\tif (camFocus != null)\n\t\t\tCamera.focus(camFocus);\n\t\t// if(selected != null) selected.vel.print();\n\n\t\tSceneManager.sm.currSector.update();\n\t}", "void playGame(MarbleSolitaireModel model) throws IllegalArgumentException, IllegalStateException;", "@Override\r\n\tpublic void playCard() {\n\t\t\r\n\t}", "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "public void moveToNewState(int leg) {\n if (leg == 4) {\n gsm.set(new WinState(gsm));\n }else if (leg == 3) {\n boatsInOrder = boatsInOrder.subList(0,3);\n boolean gameOver = true;\n for (Boat boat: boatsInOrder) {\n if (boat == player) {\n gameOver = false;\n break;\n }\n }\n if (gameOver) {\n gsm.set(new GameOverSpeed(gsm));\n } else {\n // resets the boat attributes\n for (Boat boat:boatsInOrder) {\n boat.setPosY(0);\n boat.setHealth(100);\n boat.setFatigue(600);\n //TEAM19-START resets player speed and time penalty\n boat.setTimePenalty(0);\n boat.setTotalLegTime(0);\n boat.resetSpeed();\n //TEAM19-END\n }\n boatsInOrder.remove(player);\n gsm.set(new PlayState(gsm,boatsInOrder,player,leg + 1, DIFFICULTY));\n }\n } else {\n // resets the boat attributes\n for (Boat boat:boatsInOrder) {\n boat.setPosY(0);\n boat.setHealth(100);\n boat.setFatigue(600);\n //TEAM19-START resets player speed and time penalty\n boat.setTimePenalty(0);\n boat.setTotalLegTime(0);\n boat.resetSpeed();\n //TEAM19-END\n }\n boatsInOrder.remove(player);\n gsm.set(new PlayState(gsm,boatsInOrder,player,leg + 1, DIFFICULTY));\n }\n }", "@Override\n\tpublic void updateConseille(Conseille c) {\n\t\t\n\t}", "public void updatePlayerModel() {\n double average = 0.0;\n for (int i = 0; i < playerModelDiff1.size(); i++) {\n average += (double) playerModelDiff1.get(i);\n }\n if ( playerModelDiff1.size() > 0 )\n average = average / playerModelDiff1.size();\n playerModel[0] = average;\n\n //Update playerModel[1] - difficulty 4\n average = 0.0;\n for (int i = 0; i < playerModelDiff4.size(); i++) {\n average += (double) playerModelDiff4.get(i);\n }\n if ( playerModelDiff4.size() > 0 )\n average = average / playerModelDiff4.size();\n playerModel[1] = average;\n\n //Update playerModel[2] - difficulty 7\n average = 0.0;\n for (int i = 0; i < playerModelDiff7.size(); i++) {\n average += (double) playerModelDiff7.get(i);\n }\n if ( playerModelDiff7.size() > 0 )\n average = average / playerModelDiff7.size();\n playerModel[2] = average;\n }", "public void addCard(PlayingCard aCard);", "public void playRound(){\n this.gameState = GameController.createGameState(this.game);\n \n // Verifica se o \n if(this.gameState.isEnded()){\n var winner = this.gameState.getPlayerQttCards() == 0 ? this.game.getComputer() : this.game.getPlayer();\n\n this.gameState.setWinner(winner);\n }\n else{\n \n // Mostrando o vira, as manilhas, a quantidade de cartas dos jogadores e as cartas do jogador\n this.view.displayGame(this.gameState);\n\n var playerCardChose = this.getPlayerCardChose();\n var computerCardChose = Utils.generateRandomNumber(getGameState().getComputerQttCards());\n\n try{\n var playerCard = this.game.getPlayer().playCard(playerCardChose);\n var computerCard = this.game.getComputer().playCard(computerCardChose);\n\n var winnerCard = this.verifyBiggerCard(playerCard, computerCard);\n\n // Verificando qual `Player` ganhou e se um ganhou\n\n var hasPlayerWon = winnerCard.equals(playerCard);\n var hasComputerWon = winnerCard.equals(computerCard);\n\n var turnedCard = this.getGameState().getTurnedCard();\n\n // Aqui caso o player tenha ganhado ele recebe a carta do computador e senão ele perde a carta para o computador\n if(hasPlayerWon){\n this.game.getPlayer().earnCard(computerCard);\n this.game.getComputer().loseCard(computerCard);\n }\n else if(hasComputerWon){\n this.game.getComputer().earnCard(playerCard);\n this.game.getPlayer().loseCard(playerCard);\n }\n \n // Na hora de mostrar o vencedor eu verifico se um player venceu, se sim eu mostro vitória ou derrota para o Player\n // Se não eu mostro empate\n \n if(hasComputerWon || hasPlayerWon){\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard, hasPlayerWon);\n }\n else {\n this.view.displayRoundWinner(turnedCard, playerCard, computerCard);\n }\n\n }\n catch(Exception excp){\n this.view.displayMessageError(excp.getMessage());\n\n this.playRound();\n }\n }\n \n }", "public void update(int x,int y,Card card);", "public void playCvC() {\n isAI[0] = true;\n isAI[1] = true;\n players[0] = new AI();\n players[1] = new AI();\n playerShips[0] = players[0].getShipList();\n playerShips[1] = players[1].getShipList();\n grids[0] = new Grid();\n grids[1] = new Grid();\n currentPlayer = 0;\n playGame();\n }", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "@Override\r\n\tpublic void update(Observable o, Object arg) {\n\t\tif(((Player)o).getState().equals(\"walking\") && (Math.abs(x - ((Player) o).getLocation().x)) < 5 && Math.abs(y - ((Player) o).getLocation().y) < 5 ){ \r\n\t\t\tplayerLocation = ((Player) o).getLocation();\r\n\t\t\tstrategy = new PursuitStrategy();\r\n\t\t}\r\n\t\telse strategy = new RandomStrategy();\r\n\t}", "public void update()\n {\n scorecard.update();\n scorer.update();\n }", "@Override\n\tpublic void playCard() {\n\t\t\n\t}", "void playGame(List<K> deck, FreecellOperations<K> model, int numCascades, int numOpens,\r\n boolean shuffle);", "@Override\r\n\tpublic void playSoldierCard() {\n\t\t\r\n\t}", "public void play(){\n\n gameRounds++;\n mRound = new Round(players);\n mRound.beginRound();\n\n }", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "public TrainCard draw(){\n TrainCard card = cardDeck.get(0);\n cardDeck.remove(0);\n return card;\n }", "public void loadUpdate()\n {\n HashMap<Location, State> updated = gm.update();\n if(updated == null)\n {\n lastScore = 0;\n buttonPlay.setText(\"Nowa gra\");\n buttonPlay.setPrefWidth(100);\n tl.stop();\n nng.updateFitnessOfCurrent(score);\n if(currentPlayer.equals(\"Trening\"))\n {\n monitor.stop();\n buttonPlay.fire();\n }\n return;\n }\n clear();\n score = 0;\n for (Location l : updated.keySet())\n addToBoard(l, updated.get(l));\n\n //Tutaj powinienes chyba dac \"Czlowiek\", bo reszta funkcji jest dla sieci neuronowej\n if(currentPlayer.equals(\"Gra\"))\n return;\n //Ocenia kazdy mozliwy ruch i wybiera najlepszy wedlug sieci neuronowej\n Direction[] directions = new Direction[] {Direction.UP, Direction.DOWN, Direction.LEFT, Direction.RIGHT};\n Direction bestDirection = Direction.UP;\n NeuralNetwork decider = currentPlayer.equals(\"Trening\") ? nng.getCurrent() : nn;\n double bestEval = -10;\n for (Direction direction : directions)\n {\n if(direction.isOpposite(gm.getDirection()))\n continue;\n Location present = gm.getSnake().getLocation();\n double front = -2;\n Location inFront = null;\n try\n {\n inFront = new Location(present.getX() + direction.getX(), present.getY() + direction.getY());\n } catch (LossException e)\n {\n front = -1;\n }\n if(front == -2)\n front = stateToDouble(updated.get(inFront));\n Direction relativeLeft = Direction.getRelativeLeft(direction);\n double left = -2;\n Location toLeft = null;\n try\n {\n toLeft = new Location(present.getX() + relativeLeft.getX(), present.getY() + relativeLeft.getY());\n } catch (LossException e)\n {\n left = -1;\n }\n if(left == -2)\n left = stateToDouble(updated.get(toLeft));\n if(direction.equals(Direction.getRelativeLeft(gm.getDirection())) && !gm.getSnake().getTail().isEmpty())\n left = 0;\n Direction relativeRight = Direction.getRelativeRight(direction);\n double right = -2;\n Location toRight = null;\n try\n {\n toRight = new Location(present.getX() + relativeRight.getX(), present.getY() + relativeRight.getY());\n } catch (LossException e)\n {\n right = -1;\n }\n if(right == -2)\n right = stateToDouble(updated.get(toRight));\n if(direction.equals(Direction.getRelativeRight(gm.getDirection())) && !gm.getSnake().getTail().isEmpty())\n right = 0;\n double delta = Math.sqrt(Math.pow(present.getX() - gm.getFood().getX(), 2) + Math.pow(present.getY() - gm.getFood().getY(), 2)) - Math.sqrt(Math.pow(present.getX() + direction.getX() - gm.getFood().getX(), 2) + Math.pow(present.getY() + direction.getY() - gm.getFood().getY(), 2));\n double eval = decider.calcOutput(new double[] {delta, left, front, right});\n if(eval > bestEval)\n {\n bestEval = eval;\n bestDirection = direction;\n }\n decider.reset();\n }\n gm.setPendingDirection(bestDirection);\n }", "@Override\r\n public void update(MiniGame game){\r\n PathXDataModel data = (PathXDataModel) game.getDataModel();\r\n \r\n //Check if 10 seconds has past since activating steal\r\n if (getSpecialState().equals(PathXSpriteState.STEALING.toString())){\r\n GregorianCalendar newTime = new GregorianCalendar();\r\n long timePast = newTime.getTimeInMillis() - getSpecialTimer().getTimeInMillis();\r\n if ((timePast / 1000) >= 10){\r\n game.getGUIButtons().get(PathXConstants.STEAL_BUTTON_TYPE).setState(PathXSpriteState.VISIBLE.toString());\r\n setSpecialState(\"\");\r\n setSpecialTimer(null);\r\n }\r\n \r\n }\r\n \r\n //Check if 10 seconds has past since activating Intangibility\r\n if (getSpecialState().equals(PathXSpriteState.INTANGIBLE.toString())){\r\n GregorianCalendar newTime = new GregorianCalendar();\r\n long timePast = newTime.getTimeInMillis() - getSpecialTimer().getTimeInMillis();\r\n if ((timePast / 1000) >= 10){\r\n game.getGUIButtons().get(PathXConstants.INTANGIBILITY_BUTTON_TYPE).setState(PathXSpriteState.VISIBLE.toString());\r\n setSpecialState(\"\");\r\n setSpecialTimer(null);\r\n }\r\n \r\n }\r\n \r\n //Check if 10 seconds has past since activating God Mode\r\n if (getSpecialState().equals(PathXSpriteState.GOD_MODE.toString())){\r\n GregorianCalendar newTime = new GregorianCalendar();\r\n long timePast = newTime.getTimeInMillis() - getSpecialTimer().getTimeInMillis();\r\n if ((timePast / 1000) >= 10){\r\n game.getGUIButtons().get(PathXConstants.GOD_MODE_BUTTON_TYPE).setState(PathXSpriteState.VISIBLE.toString());\r\n setSpecialState(\"\");\r\n setSpecialTimer(null);\r\n }\r\n \r\n }\r\n\r\n if (getSpecialState().equals(PathXSpriteState.STEALING.toString())) {\r\n ArrayList<Car> otherCars = new ArrayList();\r\n otherCars.addAll(data.getCops());\r\n otherCars.addAll(data.getBandits());\r\n otherCars.addAll(data.getZombies());\r\n\r\n for (Car car : otherCars) {\r\n if (aabbsOverlap(car)) {\r\n if (!car.isStolen()) {\r\n data.getRecord().balance += 20;\r\n car.setStolen(true);\r\n }\r\n }\r\n }\r\n }\r\n \r\n super.update(game);\r\n \r\n PathXDataModel dataModel = (PathXDataModel) game.getDataModel();\r\n PathXNode safeHouse = dataModel.getNodes().get(1);\r\n if (getIntersection() == safeHouse)\r\n dataModel.endGameAsWin();\r\n }", "@Override\n public void update(Observable o, Object arg) {\n if(arg instanceof Message) {\n\n // Unpack Message\n MessageType type = ((Message) arg).getMessageType();\n int cardAffected = ((Message) arg).getCardAffected();\n\n // Handle Message\n if(type == MessageType.NEW_GAME_B_RANDOM_R_RANDOM) {\n startNewGame(true, true);\n }\n if(type == MessageType.NEW_GAME_B_NEXT_R_NEXT) {\n startNewGame(false, false);\n\n }\n if(type == MessageType.NEW_GAME_B_NEXT_R_RANDOM) {\n startNewGame(false, true);\n\n }\n if(type == MessageType.NEW_GAME_B_RANDOM_R_NEXT) {\n startNewGame(true, false);\n\n }\n if(type == MessageType.SELECT) {\n\n // Get Card object\n Card card = mGameBoard.getCard(cardAffected);\n\n // Check if Card is already revealed\n if(!card.isRevealed()) {\n\n // Flush Undo stack\n mUndoStack.clear();\n\n // Push Message onto Message stack\n mMessageStack.push(new Message(type, cardAffected));\n\n // Add Message to Message log\n mMessageLog.add(new Message(type, cardAffected));\n\n // Reveal Card (will notify Observer)\n card.revealCard();\n }\n // Otherwise do nothing\n }\n if(type == MessageType.NEXT) {\n \t\n \tString hint;\n\n // Flush Undo Stack\n mUndoStack.clear();\n \n // Tell Strategy to generate a hint\n if (mGameBoard.getCurrentTurn())\n {\n hint = Strategy.generateHint(mGameBoard.getBoard(), CardType.BLUE);\n }\n else\n {\n hint = Strategy.generateHint(mGameBoard.getBoard(), CardType.RED);\n }\n \n mOutbox.updateHint(hint);\n \n // Generate an ArrayList of Cards based on the hint\n Strategy.getHintedCards(mGameBoard.getBoard()); //ROB CODE\n\n // Check which strategy to use for the list of applicable cards\n String wordOfCardAffected;\n if(mGameBoard.getCurrentTurn()) {\n if(mBlueRandom) {\n \twordOfCardAffected = Strategy.pickRandomCard(Strategy.storedHintedCards); //ROB CODE - changed mGameBoard.getBoard() to Strategy.storedHintedCards\n }\n else {\n \twordOfCardAffected = Strategy.pickNextCard(Strategy.storedHintedCards); //ROB CODE - changed mGameBoard.getBoard() to Strategy.storedHintedCards\n }\n }\n else {\n if(mRedRandom) {\n \twordOfCardAffected = Strategy.pickRandomCard(Strategy.storedHintedCards); //ROB CODE - changed mGameBoard.getBoard() to Strategy.storedHintedCards\n }\n else {\n \twordOfCardAffected = Strategy.pickNextCard(Strategy.storedHintedCards); //ROB CODE - changed mGameBoard.getBoard() to Strategy.storedHintedCards\n }\n }\n \n //ROB CODE\n //Convert wordOfCardAffected to cardAffected for below\n if (wordOfCardAffected != Strategy.NULL_CARD_ERROR)\n {\n \tcardAffected = mGameBoard.getCardIndexOfCodeword(wordOfCardAffected);\n }\n else\n {\n \tcardAffected = -1;\n }\n //END ROB CODE\n\n // Check if Card was selected (-1 mean no more cards)\n if (cardAffected != -1) {\n // Get Card Object\n Card card = mGameBoard.getCard(cardAffected);\n\n // Flush Undo Stack\n mUndoStack.clear();\n\n // Push Message onto Message stack\n mMessageStack.push(new Message(type, cardAffected));\n\n // Add Message to Message log\n mMessageLog.add(new Message(type, cardAffected));\n\n // Reveal Card (will notify Observer)\n card.revealCard();\n }\n else {\n // Do nothing\n }\n }\n if(type == MessageType.UNDO) {\n\n if (!mMessageStack.isEmpty()) {\n // Get last Message off Message stack\n Message undoMessage = mMessageStack.pop();\n\n // Unpack Message\n MessageType undoType = undoMessage.getMessageType();\n int undoCardAffected = undoMessage.getCardAffected();\n\n // Get Card object\n Card undoCard = mGameBoard.getCard(undoCardAffected);\n\n // Push the Undo onto the Undo stack\n mUndoStack.push(new Message(undoType, undoCardAffected));\n\n // Add Message to Message log\n mMessageLog.add(new Message(undoType, undoCardAffected));\n\n // Hide Card (will notify Observer)\n undoCard.hideCard();\n }\n }\n if(type == MessageType.REDO) {\n\n if (!mUndoStack.isEmpty()) {\n // Get last Message off Undo stack\n Message redoMessage = mUndoStack.pop();\n\n // Unpack Message\n MessageType redoType = redoMessage.getMessageType();\n int redoCardAffected = redoMessage.getCardAffected();\n\n // Get Card object\n Card redoCard = mGameBoard.getCard(redoCardAffected);\n\n // Push the Redo onto the Message stack\n mMessageStack.push(new Message(redoType, redoCardAffected));\n\n // Add Message to Message log\n mMessageLog.add(new Message(redoType, redoCardAffected));\n\n // Reveal Card (will notify Observer)\n redoCard.revealCard();\n }\n }\n }\n }", "public void update() {\r\n gameObjects.update(playState);\r\n }", "public Card PlayCard() {\n\t Card ret = null;\n\t Card card;\n\t if (mCardCount > 0) {\n\t\t // To work out what card to play, see what cards can be played\n\t\t \tCard[] playableCards;\n\t\t \tplayableCards = mRules.GetPlayableCards();\n\t\t \tCard[] selectedCards;\n\t\t \tselectedCards = new Card[8];\n\t\t \tint iNumSelectableCards = 0;\n\t\t \tfor (int i = 0; i < 8; i++)\n\t\t \t\tselectedCards[i] = null;\n\t \tfor (int i = 0; i < mCardCount; i++){\n\t \t\tcard = mCard[i];\n\t \t\tswitch (card.GetSuit()){\n\t \t\tcase Card.HEARTS:\n\t \t\t\t\n\t \t\t\t// Card is a heart, can it be played?\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t// and must be played first\n\t \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n\t \n\t \t\t\t\treturn card;\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()-1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\tcase Card.DIAMONDS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.CLUBS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.SPADES:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\tbreak;\n\n\t \t\t\t\t \t\t\t\n\t \t\t}\n\t\n\t \t}\t\n\t \t\n\t \t// Now go through the selectable cards and see which is best to be played\n\t \tif (iNumSelectableCards == 0)\n\t \t\treturn ret;\n\t \t\n\t \tint iPos;\n\t \tcard = null;\n\t \tif (iNumSelectableCards == 1){\n\t\t\t \tfor (int i = 0; i < 8; i++)\n\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t \t\t\tcard = selectedCards[i];\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t\t \t\n\t \t}\n\t \telse {\n\t\t\t String sDifficulty = mRules.mView.GetSettings().getString(\"Difficulty\", \"0\");// 0 = hard, 1 = easy\n\t\t\t int iDifficulty = Integer.parseInt(sDifficulty);\n\t\t\t if (iDifficulty == EASY){\n\t\t\t \t// Get a random card from the playable ones\n\t\t\t\t\t Random generator = new Random();\n\t\t\t\t\t int randomIndex = generator.nextInt( iNumSelectableCards );\n\t\t\t\t\t int iCount = 0;\n\t\t\t\t\t \tfor (int i = 0; i < 8; i++){\n\t\t\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t\t\t \t\t\tif (iCount == randomIndex){\n\t\t\t\t\t \t\t\t\tcard = selectedCards[i];\n\t\t\t\t\t \t\t\t\tbreak;\n\t\t\t\t\t \t\t\t}\n\t\t\t\t\t \t\t\telse iCount++;\n\t\t\t\t\t \t\t}\t\n\t\t\t\t\t \t}\n\t\t\t }\n\t\t\t else {\n\t\t\t \tiPos = GetBestCard(selectedCards);\n\t\t\t \tcard = selectedCards[iPos];\n\t\t\t }\n\t \t}\n\t \t\n\t \tswitch (card.GetSuit()){\n \t\tcase Card.HEARTS:\t \t\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\t// and must be played first\n \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n \n \t\t\t\treturn card;\n \t\t\t}\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n \t\t\t\t\tplayableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\tcase Card.DIAMONDS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(8,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(6,Card.DIAMONDS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(card.GetValue()-1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(card.GetValue()+1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\t\t\n \t\tcase Card.CLUBS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(8,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.CLUBS6] = new Card(6,Card.CLUBS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n \t\t\t\t\tplayableCards[Rules.CLUBS6] = new Card(card.GetValue()-1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n \t\t\t\t\tLog.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.CLUBS);\n \t\t\t\t\tplayableCards[Rules.CLUBS8] = new Card(card.GetValue()+1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\tbreak; \n \t\tcase Card.SPADES:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(8,Card.SPADES);\n\t \t\t\t\tplayableCards[Rules.SPADES6] = new Card(6,Card.SPADES);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES6] = new Card(card.GetValue()-1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES8] = new Card(card.GetValue()+1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\tbreak;\n \t\t\t\n\t \t}\n\t \n\t }\n\t return ret;\n }", "@Override\r\n\tpublic void playMonopolyCard(ResourceType resource) {\n\t\t\r\n\t}", "void playMonopolyCard(String resource);", "@Override\n\tpublic void update(CardRule bean) {\n\n\t}", "private void updateLastCardDiscarded(){\r\n\t\tint x = 0;\r\n\t\twhile(this != game.getPlayer(x++)){} // find the nextPlayer\r\n\t\tx = x % game.getNumberOfPlayers();\r\n\t\tnextPlayer = game.getPlayer(x);\r\n\t\t\r\n\t\tif(latestRound != game.getRoundNumber()){ // if it's a new Round, reset\r\n\t\t\tpickedUpCards = new ArrayList<Card>();\r\n\t\t\tlastCardDiscarded = null;\r\n\t\t\tlatestRound = game.getRoundNumber();\r\n\t\t\t\r\n\t\t\tfor(int y = 0; y < game.getNumberOfPlayers(); y++){ // ?????\r\n\t\t\t\tif(game.getPlayer(y) != this && \r\n\t\t\t\t\t\t(getScore() >= game.getPlayer(y).getScore() || getPhase() > game.getPlayer(y).getPhase())){//????\r\n\t\t\t\t\tsetName(oldName);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetName(oldName + \"is#WINNING\"); // ?????\r\n\t\t}else if(lastCardDiscarded != null && Configuration.getTypeRequired(nextPlayer.getPhase(), 0) == Configuration.SET_PHASE){\r\n\t\t\tif(nextPlayer.drewFromDiscard())\r\n\t\t\t\tpickedUpCards.add(lastCardDiscarded); // add the card to picked up card if it was picked up \r\n\t\t}\r\n\t}", "public void changeActiveMonster(){\n //todo\n }", "Horse updateHorse(Horse horse);", "@Override\n public void update(App_Risk_Game.src.interfaces.Observable observable) {\n List<String> territories = new ArrayList<>();\n Iterator iterator = ((Board)observable).getTiles().keySet().iterator();\n while (iterator.hasNext()){\n String name = (String) iterator.next();\n territories.add(name);\n }\n CardsCollection cardsCollection = new CardsCollection(territories, 5);\n List<Player> players = PlayerCollectionTest.players;\n CardsCollection.distributeCards(players);\n for (Player p:players\n ) {\n System.out.println(p.getName());\n\n System.out.println(p.getTerritories());\n }\n Turns.turns.setCurrentPlayerID(players.get(0).getId());\n Turns.turns.setCurrent_player(players.get(0).getName());\n }", "private void doCardEffects(Card c) {\r\n\t\tcurrentPlayer.updateSkill(c.getSkill());\r\n\t\tcurrentPlayer.updateBoots(c.getBoots());\r\n\t\tcurrentPlayer.updateSwords(c.getSwords());\r\n\t\tcurrentPlayer.updateGold(c.getGold());\r\n\t\tcurrentPlayer.updateClankOnBoard(c.getClank());\r\n\t\tif (c.isTeleport()) {\r\n\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t}\r\n\t\t\r\n\t\t// Do swag effect\r\n\t\tif (currentPlayer.getSwags() > 0 && c.getClank() > 0) currentPlayer.updateSkill(c.getClank()*currentPlayer.getSwags());\r\n\t\t\r\n\t\t// Draw last (not sure if required)\r\n\t\tcurrentPlayer.draw(c.getDraw());\r\n\t\t\r\n\t\t// Calculate conditions\r\n\t\tif (c.getCondition() != null) {\r\n\t\t\tif (c.getCondition()[0].contentEquals(\"companion\")) {\r\n\t\t\t\tif (currentPlayer.hasCompanion()) {\r\n\t\t\t\t\tcurrentPlayer.draw(1);\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"artifact\")) {\r\n\t\t\t\tif (currentPlayer.has(\"Artifact\")) {\r\n\t\t\t\t\tif (c.getCondition()[1].contentEquals(\"teleport\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t\t\t\t} else if (c.getCondition()[1].contentEquals(\"skill\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateSkill(2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"crown\")) {\r\n\t\t\t\tif (currentPlayer.has(\"Crown\")) {\r\n\t\t\t\t\tif (c.getCondition()[1].contentEquals(\"heart\")) {\r\n\t\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\t} else if (c.getCondition()[1].contentEquals(\"swordboot\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateSwords(1);\r\n\t\t\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"monkeyidol\")) {\r\n\t\t\t\tif (currentPlayer.has(\"MonkeyIdol\")) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Unique Cards\r\n\t\tif (c.isUnique()) {\r\n\t\t\t// Choose cards\r\n\t\t\tif (c.getName().contentEquals(\"Shrine\") || c.getName().contentEquals(\"Dragon Shrine\") ||\r\n\t\t\t\tc.getName().contentEquals(\"Treasure Hunter\") || \r\n\t\t\t\tc.getName().contentEquals(\"Underworld Dealing\") || c.getName().contentEquals(\"Mister Whiskers\") ||\r\n\t\t\t\tc.getName().contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tmustChoose.add(c.getName());\r\n\t\t\t\tchoosePrompt();\r\n\t\t\t} else if (c.getName().endsWith(\"Master Burglar\")) {\r\n\t\t\t\tcurrentPlayer.trash(\"Burgle\");\r\n\t\t\t} else if (c.getName().contentEquals(\"Dead Run\")) {\r\n\t\t\t\tcurrentPlayer.setRunning(true);\r\n\t\t\t} else if (c.getName().contentEquals(\"Flying Carpet\")) {\r\n\t\t\t\tcurrentPlayer.setFlying(true);\r\n\t\t\t} else if (c.getName().contentEquals(\"Watcher\") || c.getName().contentEquals(\"Tattle\")) {\r\n\t\t\t\tgiveOthersClank(1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Swagger\")) {\r\n\t\t\t\tcurrentPlayer.setSwags(currentPlayer.getSwags()+1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Search\")) {\r\n\t\t\t\tcurrentPlayer.setSearches(currentPlayer.getSearches()+1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Sleight of Hand\") || c.getName().contentEquals(\"Apothecary\")) {\r\n\t\t\t\t// Including itself\r\n\t\t\t\t// If there are other cards, add discard\r\n\t\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 1) {\r\n\t\t\t\t\tmustDiscard.add(c.getName());\r\n\t\t\t\t\tdiscardPrompt();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public Card() {\n this.set('A', Suit.spades);\n }", "public Player playRoundWithAttribute(Attribute chosenAttribute) {\n\n // --- DEBUG LOG ---\n // The contents of the current cards in play\n String playerCardStrings = playersInGame.stream()\n .map(p -> String.format(\"%s's CARD:\\n\\n%s\\n\\n\", p, p.peekCard()))\n .collect(Collectors.joining());\n Logger.log(\"CARDS IN PLAY AT ROUND \" + roundNumber + \" START\", playerCardStrings);\n\n // --- DEBUG LOG ---\n // The category selected and corresponding values when a user or computer selects a category\n Logger.log(String.format(\"%s's ATTRIBUTE FOR THE ROUND:\", activePlayer),\n chosenAttribute.toString());\n\n int maxValue = 0;\n int drawMaxValue = 0;\n\n for (Player player : playersInGame) {\n // assigns top card for a player that is still in game as activeCard\n Card activeCard = player.peekCard();\n int playersAttributeValue = activeCard.getValue(chosenAttribute);\n\n if (maxValue < playersAttributeValue) {\n maxValue = playersAttributeValue;\n roundWinner = player;\n // if there is a draw, it stores it in the temporary draw value\n } else if (maxValue == playersAttributeValue) {\n drawMaxValue = maxValue;\n }\n }\n\n // if maxValue is also the drawMaxValue after going through all the values, it means that\n // there is no higher value\n if (maxValue == drawMaxValue) {\n\n // pops the card from all the players and transfers them to communal pile\n addCardsToCommunalPile();\n\n // --- DEBUG LOG ---\n // The contents of the communal pile when cards are added or removed from it\n Logger.log(\"ROUND WAS DRAWN - COMMUNAL PILE CONTENTS:\", communalPile.toString());\n\n drawRound++;\n // resets the roundWinner\n roundWinner = null;\n // returns null to controller\n\n } else {\n // increases the won round\n roundWinner.wonRound();\n winningCard = roundWinner.peekCard();\n\n // waits for the popping of the card and adds it to the communal pile\n addCardsToCommunalPile();\n\n // --- DEBUG LOG ---\n // The contents of the communal pile when cards are added to it\n Logger.log(\"ROUND WAS WON - COMMUNAL PILE CONTENTS TO BE TRANSFERED:\",\n communalPile.toString());\n\n // shuffles the communalPile\n communalPile.shuffle();\n // transfers all cards from communal pile to roundWinner\n transferCommunalPile();\n\n // --- DEBUG LOG ---\n // The contents of the communal pile when cards are removed from it\n Logger.log(\"COMMUNAL PILE AFTER TRANSFER:\", communalPile.toString());\n\n // Set the next active player\n activePlayer = roundWinner;\n\n }\n\n // --- DEBUG LOG ---\n // The contents of each deck after a round\n String playerDeckStrings = playersInGame.stream()\n .map(p -> String.format(\"%s's DECK:\\n\\n%s\\n\\n\", p, p.getDeck()))\n .collect(Collectors.joining());\n Logger.log(\"PLAYERS DECKS AT END OF THE ROUND: \", playerDeckStrings);\n\n\n // increases round number\n roundNumber++;\n\n // returns winner to the controller\n return roundWinner;\n }", "public void changePlayer(int disc){\n if (AvailableMoves(disc)==0){\n lastDiscPlayed = disc;\n\n if(disc==B){\n System.out.println(\"B player has no availabe moves!\");\n }else {\n System.out.println(\"W player has no other moves!\");\n }\n }\n }", "@Override\n public void updateView(UserInteraction userInteraction) {\n userInteraction.getGame().setPlayers(this.players);\n userInteraction.getGame().setDevelopmentCardTable(this.table);\n userInteraction.getGame().setMarket(this.market);\n userInteraction.getGame().setFaithTrack(this.faithTrack);\n if(this.players.get(1).getNickname().equals(\"Lorenzo il Magnifico\"))\n userInteraction.getGame().setGameType(GameType.SINGLEPLAYER);\n else\n userInteraction.getGame().setGameType(GameType.MULTIPLAYER);\n userInteraction.setMessage(this);\n\n this.displayAction(userInteraction);\n }", "public void changeTurn(){\r\n model.setCheckPiece(null);\r\n model.swapPlayers();\r\n }", "public void doArriveEffect(Card c) {\r\n\t\t// May change later\r\n\t\tif (c.getName().contentEquals(\"Shrine\")) {\r\n\t\t\tdragonClank += 3;\r\n\t\t\tif (dragonClank > 24) {\r\n\t\t\t\tdragonClank = 24;\r\n\t\t\t}\r\n\t\t// Overlord and Watcher so far\r\n\t\t} else {\r\n\t\t\tfor (int j = 0; j < players.size(); j++) {\r\n\t\t\t\tif (!players.get(j).isDead() && !players.get(j).isFree()) {\r\n\t\t\t\t\tplayers.get(j).updateClankOnBoard(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tupdateBoardNoImageChange();\r\n\t}", "void updatePlayer(Player player);", "void setCard(Card card) {\n this.card = card;\n }", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public Player updatePlayer(Player player);", "private void makePlay() {\n\t\teating = true;\n\t\ttama.setLayoutX(200);\n\n\t\tplay = new Sprite(6, 6, 360, 379, new Image(\"file:./res/images/basketball.png\"), 1, 1000);\n\t\tplay.setLayoutX(140);\n\t\tplay.setLayoutY(190);\n\t\tplay.setScaleX(0.5);\n\t\tplay.setScaleY(0.5);\n\t\tgrid.getChildren().addAll(play);\n\t\tPauseTransition pause = new PauseTransition(Duration.millis(1000));\n\t\tpause.setOnFinished(e -> {\n\t\t\tgrid.getChildren().remove(play);\n\t\t\ttama.setLayoutX(190);\n\t\t\teating = false;\n\t\t\tmodel.getController().playWith();\n\t\t});\n\t\tpause.play();\n\n\t}", "public void play() {\r\n _board = new Board();\r\n _command = new LoaGUI(\"Lines of Action\", this);\r\n\r\n while (true) {\r\n int playerInd = _board.turn().ordinal();\r\n if (_playing) {\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n continue;\r\n }\r\n Move next = _players[playerInd].makeMove();\r\n System.out.println(\"The move is get\");\r\n if (next != null) {\r\n assert _board.isLegal(next);\r\n _board.makeMove(next);\r\n _command.repaint();\r\n System.out.println(\"Repaint\");\r\n if (_board.gameOver()) {\r\n announceWinner();\r\n _playing = false;\r\n }\r\n }\r\n } else {\r\n try {\r\n Thread.sleep(magic2);\r\n } catch (InterruptedException ex) {\r\n return;\r\n }\r\n }\r\n }\r\n }", "public PlayingCard(){\n\t\tsuper();\n\t}", "public void play() {\n if (!isHungry()) {\n hunger += 2;\n mood += 2;\n fatigue += 3;\n\n if (!muted) {\n System.out.println(\"play\\t|\\tPlaying is fun!\");\n }\n }\n }", "public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}", "private void updateObjects(Graphics g){\n\t\tclearMhos(g);\n\t\tclearPlayer(g);\n\t\tdrawMhos(g);\n\t\tdrawPlayer(g);\n\t\tdrawFences(g);\n\t\tDraw.drawInstructions(g,smallFont);\n\t}", "private void playGame() throws IOExceptionFromController {\n for (Player player : players) {\n if (player.getGodCard().hasAlwaysActiveModifier()) game.addModifier(player.getGodCard());\n }\n while (!game.hasWinner()) {\n if (!running.get()) return;\n Player currentPlayer = players.get(game.getActivePlayer());\n for (Card modifier : game.getActiveModifiers()) {\n if (!modifier.hasAlwaysActiveModifier() && modifier.getController().getPlayer().equals(currentPlayer))\n game.removeModifier(modifier);\n }\n\n broadcastGameInfo(\"turnStart\");\n String result = playerControllers.get(game.getActivePlayer()).playTurn();\n switch (result) {\n case \"next\":\n checkWorkers();\n game.nextPlayer();\n break;\n case \"outOfMoves\":\n case \"outOfBuilds\":\n case \"outOfWorkers\":\n eliminatePlayer(currentPlayer, result);\n game.nextPlayer();\n break;\n case \"winConditionAchieved\":\n case \"godConditionAchieved\":\n setWinner(currentPlayer, result);\n break;\n default:\n logError(\"invalid turn\");\n break;\n }\n }\n gameOver();\n }", "public void abstractUpdateAI()\n {\n player.setClock(player.getClock()+1);\n \n if (player.getClock() > 15 && player.getAlive()) { \n updateAI();\n } \n }", "public void play() {\n List<String> playersData = getGameInput().getPlayersData();\n for (int id = 0; id < playersData.size() / Constants.DATAENTITY; id++) {\n getHeroes().add(getHeroFactory().getHero(\n playersData.get(id * Constants.DATAENTITY),\n Integer.parseInt(\n playersData.get(\n id * Constants.DATAENTITY\n + Constants.INDEXPOSX)),\n Integer.parseInt(\n playersData.get(\n id * Constants.DATAENTITY\n + Constants.INDEXPOSY)),\n id));\n }\n // We create the angels and add them to angels list.\n List<Integer> numOfAngels = getGameInput().getNumOfAngels();\n List<String> angelsData = getGameInput().getAngelsData();\n for (int i = 0; i < angelsData.size() / Constants.DATAENTITY; i++) {\n getAngels().add(getAngelsFactory().getAngel(\n angelsData.get(i * Constants.DATAENTITY),\n Integer.parseInt(\n angelsData.get(\n i * Constants.DATAENTITY\n + Constants.INDEXPOSX)),\n Integer.parseInt(\n angelsData.get(\n i * Constants.DATAENTITY\n + Constants.INDEXPOSY))));\n }\n\n getUtl().prepareAdmins();\n\n int angelCounter = 0; // To iterate through all angels only once.\n // We start the actual game.\n for (int i = 0; i < getMovements().size(); i++) { // For every round.\n\n getUtl().printRound(i + 1); // We start printing from round 1...\n\n for (int j = 0; j < getHeroes().size(); j++) {\n /* Apply overtime ability if the case and then hero chooses\n * strategy and moves if he is not rooted. Lastly we decrease\n * the amount of rounds that a hero must be affected by. */\n if (!getHeroes().get(j).isDead()) {\n if (getHeroes().get(j).isAffectedByAoT()) {\n getUtl().applyAoT(getHeroes().get(j));\n }\n if (!getHeroes().get(j).isRooted()) {\n getHeroes().get(j).chooseStrategy();\n getHeroes().get(j).move(getMovements().get(i).get(j));\n }\n if (getHeroes().get(j).isAffectedByAoT()) {\n getHeroes().get(j).setAffectedByAoTRounds(\n getHeroes().get(j).getAffectedByAoTRounds()\n - 1);\n }\n }\n }\n\n // Check if there are any players on the same terrain.\n for (int j = 0; j < getHeroes().size(); j++) {\n for (int k = 0; k < getHeroes().size(); k++) {\n if (k == j) {\n continue; // So a hero doesn't fight himself.\n }\n if ((getHeroes().get(j).getPosX()\n == getHeroes().get(k).getPosX())\n && (getHeroes().get(j).getPosY()\n == getHeroes().get(k).getPosY())) {\n // If they are both alive, fight.\n if (!getHeroes().get(j).isDead()\n && !getHeroes().get(k).isDead()) {\n getUtl().fight(getHeroes().get(k),\n getHeroes().get(j), getMap());\n }\n }\n }\n }\n\n // Selecting the angels that appear on round i\n for (int j = 0; j < numOfAngels.get(i); j++) {\n getUtl().spawnAngel(getAngels().get(angelCounter));\n for (int k = 0; k < getHeroes().size(); k++) {\n /* Checking if the selected angel and player k are on the\n * same terrain. */\n if (getAngels().get(angelCounter).getPosX()\n == getHeroes().get(k).getPosX()\n && (getAngels().get(angelCounter).getPosY()\n == getHeroes().get(k).getPosY())) {\n getUtl().affectHeroByAngel(\n getAngels().get(angelCounter),\n getHeroes().get(k));\n }\n }\n angelCounter++;\n }\n\n // When round is complete, everyone can fight again\n for (AbstractHero hero : getHeroes()) {\n hero.setFought(false);\n }\n getUtl().getOutput().add(\"\\n\");\n }\n printResults();\n }", "@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}", "public void updateDeck(String target){}", "@Override\n public void playGame(List<Card> deck, FreecellOperations<Card> model, int numCascades,\n int numOpens, boolean shuffle) throws IllegalArgumentException, IOException {\n if (deck == null || model == null) {\n throw new IllegalArgumentException(\"Cannot start game with empty model or deck\");\n }\n // Scanner to read input.\n Scanner sc = new Scanner(this.rd);\n // Start the game with the given parameters, return if the parameters are bad.\n try {\n model.startGame(deck, numCascades, numOpens, shuffle);\n } catch (IllegalArgumentException e) {\n ap.append(\"Could not start game.\");\n return;\n }\n while (!model.isGameOver()) {\n // initialize variables for move\n PileType source;\n int sourcePileNumber;\n int cardIndex;\n PileType destination;\n int destPileNumber;\n\n // Print the current game state\n ap.append(model.getGameState());\n ap.append(\"\\n\");\n\n // get the source pile as a string\n String sourceString = sc.next();\n\n // Check if the source pile given is valid. If not, keep re-prompting until a valid one is\n // entered\n while (!isValidPile(sourceString)) {\n ap.append(\"\\nInvalid source. Please input again.\");\n sourceString = sc.next();\n }\n\n // Quit the game if the value is Q\n if (isPileStringQuitSignal(sourceString)) {\n ap.append(\"\\nGame quit prematurely.\");\n return;\n }\n\n // Set the piletype and pilenumber variables\n source = getPileType(sourceString);\n sourcePileNumber = getPileNumber(sourceString) - 1;\n\n // Similar logic for card index\n String cardIndexString = sc.next();\n\n while (!isValidCardIndex(cardIndexString)) {\n ap.append(\"\\nInvalid card index. Please input again.\");\n cardIndexString = sc.next();\n }\n\n if (cardIndexString.equals(\"q\") || cardIndexString.equals(\"Q\")) {\n ap.append(\"\\nGame quit prematurely.\");\n return;\n }\n\n cardIndex = Integer.valueOf(cardIndexString) - 1;\n\n // Similar logic for destination pile\n String destString = sc.next();\n\n while (!isValidPile(destString)) {\n ap.append(\"\\nInvalid destination. Please input again.\");\n destString = sc.next();\n }\n\n if (isPileStringQuitSignal(destString)) {\n ap.append(\"\\nGame quit prematurely.\");\n return;\n }\n\n destination = getPileType(destString);\n destPileNumber = getPileNumber(destString) - 1;\n\n // Try to make the move with the given parameters. If not possible, prompt user to try again\n try {\n model.move(source, sourcePileNumber, cardIndex, destination, destPileNumber);\n } catch (Exception e) {\n ap.append(\"\\nInvalid move. Try again. \" + e.getMessage());\n }\n }\n\n // If game is over, print game state and message and return\n ap.append(model.getGameState());\n ap.append(\"\\nGame over.\");\n }", "void update(boolean winner);", "void play() {\n\n ArrayList<Card> cardsInMiddle = new ArrayList<>();\n\n Card[] lastCardsPlayed = new Card[numOfPlayers];\n\n //simulation of each player flipping their next card\n for (int i = 0; i < players.length; i++) {\n lastCardsPlayed[i] = players[i].getNextCard();\n cardsInMiddle.add(lastCardsPlayed[i]);\n\n }\n\n //if there's a tie\n while (tieForCards(lastCardsPlayed)) {\n //check to see if players have enough cards to continue\n //if not, then clear that players hand and game will end\n WarPlayer lessThan3Cards = tryGetPlayerWithLessThanThreeCards();\n if (lessThan3Cards != null) {\n lessThan3Cards.getHand().clear();\n return;\n }\n\n //simulation of flipping 2 extra cards\n for (int i = 0; i < players.length; i++) {\n cardsInMiddle.add(players[i].getNextCard());\n cardsInMiddle.add(players[i].getNextCard());\n\n Card lastCard = players[i].getNextCard();\n cardsInMiddle.add(lastCard);\n lastCardsPlayed[i] = lastCard;\n }\n }\n setLastCardsPlayed(lastCardsPlayed);\n\n //determining who gets all the cards played for the round\n int highestCardIndex = largestCard(lastCardsPlayed);\n players[highestCardIndex].addCards(cardsInMiddle);\n players[highestCardIndex].addPoints(cardsInMiddle.size() / numOfPlayers);\n }", "public void gameModelPlay(GameState gameState) throws InterruptedException {\r\n\t\tsetChanged();\r\n\t\tgameState.setMessage(Message.Play);\r\n\t\tnotifyObservers(gameState);\r\n\r\n\t\ttry {\r\n\t\t\tAct actToPlay = acts.get(currentAct);\r\n\t\t\tactToPlay.actStart(gameState);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Hello!!!Here it comes!!!\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// Go through each Act\r\n\t\t/*\r\n\t\t * while (currentAct < acts.size()) { Act actToPlay =\r\n\t\t * acts.get(currentAct); actToPlay.actStart(); actToPlay.actPlay();\r\n\t\t * actToPlay.actEnd(); currentAct += 1; }\r\n\t\t */\r\n\t}", "private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }", "public void update() {\n\n\t\tif (!talking) {\n\t\t\tif (pointWalking) {\n\t\t\t\tpointWalkBehavior();\n\t\t\t} else if (behavior == ACTION.STAND) {\n\n\t\t\t} else if (behavior == ACTION.ROTATE) {\n\t\t\t\trotatingBehavior();\n\t\t\t} else if (behavior == ACTION.RANDOM) {\n\t\t\t\trandomBehavior();\n\t\t\t} else if (behavior == ACTION.WANDER) {\n\t\t\t\twanderingBehavior();\n\t\t\t} else if (behavior == ACTION.PATROL) {\n\t\t\t\tpatrolBehavior();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void modelPropertyChange(final PropertyChangeEvent e) {\n \n /* Update Status Line */\n \n if (e.getPropertyName().equals(DefaultController.STATUS)) {\n String newStatus = e.getNewValue().toString();\n if (!status.getText().equals(newStatus))\n status.setText(newStatus);\n }\n \n /* Shot Missed (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER1_SHOT_MISSED) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER2_SHOT_MISSED) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n splash.play();\n \n /* Present Dialog Message */\n \n JOptionPane.showMessageDialog(this, \"Your shot was a MISS!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Shot Hit (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_SHIP_HIT) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_SHIP_HIT) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n String ship = e.getNewValue().toString();\n JOptionPane.showMessageDialog(this, \"Your shot HIT a \" + ship + \"!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Shot Hit and Sunk opponent's ship (Players 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_SHIP_SUNK) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_SHIP_SUNK) && currentPlayer == 2) ) {\n \n /* Play Sound (if sounds enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n String ship = e.getNewValue().toString();\n JOptionPane.showMessageDialog(this, \"Your shot SANK a \" + ship + \"!\");\n \n /* Switch to empty card; prompt player to begin next turn */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Player \" + otherPlayer() + \": Click \\\"OK\\\" to begin your turn ...\");\n \n /* Switch to next player; show corresponding Card */\n \n currentPlayer = otherPlayer();\n showCard((currentPlayer == 1 ? PLAYER_1 : PLAYER_2));\n \n }\n \n /* Game Over (Player 1 and 2) */\n \n else if ( (e.getPropertyName().equals(DefaultController.PLAYER2_GAME_OVER) && currentPlayer == 1) ||\n (e.getPropertyName().equals(DefaultController.PLAYER1_GAME_OVER) && currentPlayer == 2) ) {\n \n /* Play Sound (if sound is enabled) */\n \n if (soundEnabled)\n boom.play();\n \n /* Present Dialog Message */\n \n showCard(EMPTY_CARD);\n JOptionPane.showMessageDialog(this, \"Congratulations!!!!\\nPlayer \" + currentPlayer + \" won the game.\");\n \n }\n \n \n }", "@Override\n public void receiveStartGame(){\n for (AbstractCard c : AbstractDungeon.player.masterDeck.group) {\n if (c instanceof AwakenedForm) {\n ((AwakenedForm) c).updateAwakenCost();\n }\n }\n }", "@Override\n\tpublic void update(Observable obs, Object arg1) {\n\t\t\tobj = (Character)obs;\n\t\t\t/*try {\n\t\t\t\tdraw();\n\t\t\t} catch (SlickException error) {\n\t\t\t\t\n\t\t\t}*/\n\n\t}", "void updateModel() {\n updateModel(false);\n }", "public void update(){\n\t\t//Arm up (spool out cable from winch while going up)\n\t\tif(Robot.stick.getRawButton(4)){\n\t\t\ttalonArm.set(SmartDashboard.getNumber(\"Climber Arm Speed: \", 0.5));\n\t\t\twinchGroup.set(-SmartDashboard.getNumber(\"Climber Winch Speed: \", 0.25));\n\t\t}\n\t\t//Arm down\n\t\telse if(Robot.stick.getRawButton(2)){\n\t\t\ttalonArm.set(-SmartDashboard.getNumber(\"Climber Arm Speed: \", 0.5));\n\t\t}\n\t\t//Stop moving\n\t\telse{\n\t\t\ttalonArm.set(0);\n\t\t\twinchGroup.set(0);\n\t\t}\n\t\t//Climb with winch\n\t\tif(Robot.stick.getRawButton(1)){\n\t\t\twinchGroup.set(SmartDashboard.getNumber(\"Climber Winch Speed: \", 0.25));\n\t\t}\n\t}", "@Override\n public void playerAttributeChange() {\n\n Logger.info(\"HUD Presenter: playerAttributeChange\");\n view.setLives(String.valueOf(player.getLives()));\n view.setMoney(String.valueOf(player.getMoney()));\n setWaveCount();\n }", "public void newRound()\n\t{\n\t\tif(player1.getDeck().isEmpty())\n\t\t{\n\t\t\treshufflePlayer1();\n\t\t}\n\t\tif(player2.getDeck().isEmpty())\n\t\t{\n\t\t\treshufflePlayer2();\n\t\t}\n\t\t\n\t\tactivePlayerOneCard = player1.draw();\n\t\tactivePlayerTwoCard = player2.draw();\n\t}", "public void win()\r\n {\n Actor win;\r\n win=getOneObjectAtOffset(0,0,Goal.class);\r\n if (win !=null)\r\n {\r\n World myWorld=getWorld();\r\n Congrats cong=new Congrats();\r\n myWorld.addObject(cong,myWorld.getWidth()/2,myWorld.getHeight()/2); //(Greenfoot,2013) \r\n \r\n Greenfoot.stop();\r\n Greenfoot.playSound(\"finish.wav\"); //(Sound-Ideas,2014)\r\n \r\n }\r\n }", "public void update() {\n\t\tif (loading) return;\n\t\t\n\t\tinstances.clear();\n\t\tfor (int x = 0; x < Board.DIMENSION; x++) {\n\t\t\tfor (int y = 0; y < Board.DIMENSION; y++) {\n\t\t\t\tTile tile = game.getBoard().getTile(x, y);\n\t\t\t\t\n\t\t\t\tif (tile != Tile.EMPTY) {\n\t\t\t\t\tModelInstance instance = new ModelInstance(ballModel);\n\t\t\t\t\t\n\t\t\t\t\tsetTransform(instance, x, y, tile);\n\t\t\t\t\t\n\t\t\t\t\tinstances.add(instance);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void nextRound(){\n round++;\n if(round == 6){\n endGame();\n }else{\n out.println(\"###ROUND \" + round + \"###\");\n// ArrayList<Player> playerList = game.getPlayerList();\n for (Player e : playerList) {\n e.resetActions();\n }\n game.applyCards();\n }\n }", "public void AndUpdateCards() {\n String[] projection = {\n PanelingLampContract.FormEntry._ID,\n PanelingLampContract.FormEntry.COLUMN_NAME_TITLE,\n mCategory,\n mPos,\n PanelingLampContract.FormEntry.COLUMN_ACTIVE,\n PanelingLampContract.FormEntry.COLUMN_IS_STANDARD,\n PanelingLampContract.FormEntry.COLUMN_FAV,\n PanelingLampContract.FormEntry.COLUMN_PATH_THUMBNAIL,\n PanelingLampContract.FormEntry.COLUMN_POS_MOTOR_0,\n PanelingLampContract.FormEntry.COLUMN_POS_MOTOR_1,\n PanelingLampContract.FormEntry.COLUMN_POS_MOTOR_2,\n PanelingLampContract.FormEntry.COLUMN_POS_MOTOR_3,\n PanelingLampContract.FormEntry.COLUMN_POS_MOTOR_4,\n PanelingLampContract.FormEntry.COLUMN_LED_0,\n PanelingLampContract.FormEntry.COLUMN_LED_1,\n PanelingLampContract.FormEntry.COLUMN_LED_2,\n PanelingLampContract.FormEntry.COLUMN_LED_3,\n PanelingLampContract.FormEntry.COLUMN_LED_4,\n PanelingLampContract.FormEntry.COLUMN_LED_5,\n PanelingLampContract.FormEntry.COLUMN_LED_6\n };\n\n // How you want the results sorted in the resulting Cursor\n String sortOrder = mPos + \" ASC\";\n\n // Which row to update, based on the ID\n String selection = mCategory + \" LIKE ?\";\n // is true\n String v = mCategoryValue ? \"1\" : \"0\";\n String[] selectionArgs = {v};\n\n\n mCursor = mDB.query(\n PanelingLampContract.FormEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n selection, // The columns for the WHERE clause\n selectionArgs, // The values for the WHERE clause\n null, // don't group the rows\n null, // don't filter by row groups\n sortOrder // The sort order\n );\n\n mCards = CardHolder.createListfrom(mCursor, mCategory, mPos);\n notifyDataSetChanged();\n }", "private void putCurrentCard() {\n int temp = 0;\n while (true) {\n if(!(cards.get(temp) instanceof WildCard) ) {\n currentCard = cards.get(temp);\n cards.remove(temp);\n break;\n }\n temp++;\n }\n if (!(currentCard instanceof NumberCard)) {\n show();\n }\n //Reverse\n if (currentCard instanceof ReverseCard) {\n ((ReverseCard) currentCard).changeState(state);\n }\n //Skip\n if (currentCard instanceof SkipCard) {\n ((SkipCard) currentCard).changeState(state);\n }\n //Draw2\n if (currentCard instanceof Draw2Card) {\n System.out.println(\"The player was fined.\");\n for (int i = 0; i < ((Draw2Card) currentCard).getForcedCards(); i++) {\n players.get(state.getTurn()).addCard(cards.get(0));\n cards.remove(0);\n }\n state.nextTurn();\n }\n }", "public void playGame() {\n\t\t\r\n\t\t\r\n\t\twhile (!theModel.isGameOver()) {\r\n\t\t\tplayRoundOne();\r\n\t\t}\r\n\t\t\r\n\t}", "public void setCurrentCard(PunchCard current, User _model){\n model = _model;\n PunchCard tempCard = _model.findDeck(current.getCategoryName()).findCard(current.getName());\n name = tempCard.getName();\n category = tempCard.getCategoryName();\n }", "private void playTurn()\n {\n try\n {\n XMLHandler.saveGame(game, GAME_CLONE_PATH);\n }\n catch(IOException | JAXBException | SAXException ex)\n {\n // TODO... ConsoleUtils.message(\"An internal save error has occured, terminating current game\");\n gameEnded = true;\n return;\n }\n \n moveCycle();\n \n if (!game.validateGame()) \n {\n IllegalBoardPenalty();\n }\n \n String gameOverMessage = game.isGameOver();\n if (gameOverMessage != null) \n {\n //TODO: ConsoleUtils.message(gameOverMessage);\n gameEnded = true;\n }\n \n game.switchPlayer();\n }", "public void checaColision(){\r\n //checo si hubo colision con Chimpy\r\n for(Base basChimpy : lklChimpys) {\r\n //con el principal\r\n if(basChimpy.intersecta(basPrincipal)) {\r\n //aumeto score\r\n iScore += 10;\r\n \r\n //genero nueva posicion del Chimpy y la asigno\r\n Random ranAleatorio = new Random();\r\n int iPosX = ranAleatorio.nextInt(getWidth()) + getWidth();\r\n int iPosY = ranAleatorio.nextInt(iMAXALTO) * getHeight()\r\n / iMAXALTO; \r\n basChimpy.setX(iPosX);\r\n basChimpy.setY(iPosY);\r\n \r\n //reproduzco sonido\r\n socSonidoChimpy.play();\r\n \r\n }\r\n \r\n //con la pared\r\n if(basChimpy.getX() <= 0) {\r\n //genero nueva posicion del Chimpy y la asigno\r\n Random ranAleatorio = new Random();\r\n int iPosX = ranAleatorio.nextInt(getWidth()) + getWidth();\r\n int iPosY = ranAleatorio.nextInt(iMAXALTO) * getHeight()\r\n / iMAXALTO; \r\n basChimpy.setX(iPosX);\r\n basChimpy.setY(iPosY); \r\n }\r\n }\r\n \r\n //checo si hubo colision con diddy\r\n for(Base basDiddy : lklDiddys) {\r\n //con el principal\r\n if(basDiddy.intersecta(basPrincipal)) {\r\n //reproduzco sonido\r\n socSonidoDiddy.play();\r\n \r\n //quito una vida y aumento aceleracion\r\n iVidas --;\r\n iAceleracion ++;\r\n \r\n //si ya no tengo vidas activo la bandera de gameover\r\n if(iVidas <= 0) {\r\n bGameover = true;\r\n }\r\n \r\n //genero nueva posicion del Diddy y la asigno\r\n Random ranAleatorio = new Random();\r\n int iPosX = ranAleatorio.nextInt(getWidth()) - getWidth();\r\n int iPosY = ranAleatorio.nextInt(iMAXALTO) * getHeight()\r\n / iMAXALTO; \r\n basDiddy.setX(iPosX);\r\n basDiddy.setY(iPosY);\r\n }\r\n \r\n //con pared\r\n if(basDiddy.getX() + basDiddy.getAncho() >= getWidth()) {\r\n //genero nueva posicion del Diddy y la asigno\r\n Random ranAleatorio = new Random();\r\n int iPosX = ranAleatorio.nextInt(getWidth()) - getWidth();\r\n int iPosY = ranAleatorio.nextInt(iMAXALTO) * getHeight()\r\n / iMAXALTO; \r\n basDiddy.setX(iPosX);\r\n basDiddy.setY(iPosY); \r\n }\r\n }\r\n\r\n }", "public void updateCard(Card c) throws IOException {\r\n\r\n\t\tImage cardicon = ImageIO.read(getClass().getResource(c.getImage())).getScaledInstance(150, 210, 100);\r\n\t\tcards1.setIcon(new ImageIcon(cardicon));\r\n\r\n\t\tpanel.revalidate();\r\n\t}", "public void currentPlayerDrawCard() {\n Player currentPlayer = turnManager.currentPlayer();\n UnoCard newCard = getNextCard();\n currentPlayer.obtainCard(newCard);\n\n for (GameListener gameListener : gameListeners) {\n gameListener.cardDrawn();\n }\n\t}", "public abstract Scoreboard update(Player player);", "public MoodController(int mood){\n this.mood = new Mood(mood);\n }", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void playerBecomesCzar(int id) {\n\t\t// TODO: Implement this function.\n\t\t//loop through list to find the correct id and change the isCzar variable for that Player object to be true\n\t\tfor (int i = 0; i < currentList.size(); i++) {\n\t\t\tPlayer player = currentList.get(i);\n\t\t\tif (player.id == id) {\n\t\t\t\tplayer.czar = true;\n\t\t\t}\n\t\t\telse { System.out.println(\"Player does not exist in list\");}\n\t\t}\n\t\tczarWhiteCards.clear();\n\t}" ]
[ "0.5833995", "0.5774501", "0.5667817", "0.56494206", "0.55151486", "0.5391793", "0.5367788", "0.5310195", "0.52859026", "0.52570575", "0.5255209", "0.5218335", "0.5210177", "0.52043796", "0.51931196", "0.51895094", "0.5174534", "0.51593", "0.51513845", "0.5150963", "0.513518", "0.51351607", "0.5062319", "0.5052417", "0.5044998", "0.5043495", "0.5031676", "0.50103873", "0.501027", "0.5003364", "0.49998772", "0.49976513", "0.4989922", "0.498858", "0.49800354", "0.4978947", "0.49656323", "0.49648258", "0.49622604", "0.49595907", "0.4956753", "0.49494267", "0.49475437", "0.49457976", "0.4935358", "0.49292397", "0.49270633", "0.49225646", "0.49193573", "0.49192655", "0.49188673", "0.49179253", "0.49172848", "0.49170774", "0.49151945", "0.4909669", "0.4902889", "0.4900395", "0.4891325", "0.48711812", "0.4870172", "0.48480877", "0.48470017", "0.48449165", "0.48424196", "0.48358685", "0.48292306", "0.48290178", "0.4827634", "0.48276293", "0.48254737", "0.482375", "0.48232085", "0.48212308", "0.48207033", "0.48140064", "0.48094407", "0.4806587", "0.48061648", "0.48053882", "0.48031205", "0.4790688", "0.47896662", "0.47801062", "0.47748452", "0.4771381", "0.47702688", "0.47688097", "0.4768142", "0.47671413", "0.47669202", "0.47655103", "0.47649628", "0.4759655", "0.47548497", "0.4740457", "0.47393554", "0.4733133", "0.47330904", "0.4728199" ]
0.55899096
4
Saves the DTO to the database and checks for child entity data including notes sources and tags to determine if there are any changes there to be updated/inserted.
@Override public D saveDTO( final D dto ) throws EntityVersionMismatchException, DuplicateEntityException { final String methodName = "saveDTO"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto cannot be null" ); final D returnDTO = super.saveDTO( dto ); this.saveChildEntities( dto, returnDTO ); logMethodEnd( methodName, returnDTO ); return returnDTO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveChildEntities( final D dto, final D returnDTO )\n {\n /*\n * Save any tags contained in the dto\n */\n if ( dto instanceof TagsContainer )\n {\n this.saveStockTags( dto, returnDTO );\n }\n /*\n * Check for new sources\n */\n if ( dto instanceof NotesSourceIdContainer )\n {\n this.stockNoteSourceService\n .checkForNewSource( (NotesSourceIdContainer)dto );\n }\n }", "@Override\n protected void postSaveDTO( final D dto )\n {\n final String methodName = \"postSaveDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postSaveDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "Boolean save(PostSaveDTO postSaveDTO);", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }", "@Override\n public void saveChildrenData() {\n boats.forEach(boatDAO::save);\n }", "public Encounter save(EncounterDTO encounterDTO) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalTime time = LocalTime.parse(formatter.format(LocalTime.now()), formatter);\n\n encounterDTO.setTimeCreated(time);\n log.info(\"Getting Consultation from front end...\" + encounterDTO);\n\n Optional<Encounter> encounter = this.encounterRepository.findByPatientIdAndProgramCodeAndFormCodeAndDateEncounter(encounterDTO.getPatientId(), encounterDTO.getFormCode(),\n encounterDTO.getProgramCode(), encounterDTO.getDateEncounter());\n\n if (encounter.isPresent()) {\n throw new RecordExistException(Encounter.class, \"Patient Id \", encounterDTO.getPatientId() + \", \" +\n \"Program Code = \" + encounterDTO.getProgramCode() + \", Form Code =\" + encounterDTO.getFormCode() + \", Date =\" + encounterDTO.getDateEncounter());\n }\n\n Optional <Patient> patient1 = this.patientRepository.findById(encounterDTO.getPatientId());\n if(!patient1.isPresent()){\n throw new EntityNotFoundException(Patient.class,\"Patient Id\", patient1.get().getId().toString());\n }\n\n Optional<Form> form = formRepository.findByCode(encounterDTO.getFormCode());\n if(!form.isPresent()){\n throw new EntityNotFoundException(Form.class,\"Form Name\", encounterDTO.getFormCode());\n }\n\n Optional<Program> program = this.programRepository.findByCode(encounterDTO.getProgramCode());\n if(!program.isPresent()){\n throw new EntityNotFoundException(Program.class,\"Program Name\", encounterDTO.getProgramCode());\n }\n\n Optional<Visit> visit = this.visitRepository.findById(encounterDTO.getVisitId());\n if(!visit.isPresent()){\n throw new EntityNotFoundException(Visit.class,\"Visit Id\", encounterDTO.getVisitId().toString());\n }\n\n\n final Encounter encounter1 = encounterMapper.toEncounter(encounterDTO);\n\n\n Encounter encounter2 = this.encounterRepository.save(encounter1);\n log.info(\"SAVING CONSULTATION TO BACKEND 12345... \" + encounter2);\n\n if(encounterDTO.getData().size() >0){\n encounterDTO.getData().forEach(formDataList->{\n FormData formData = new FormData();\n formData.setEncounterId(encounter2.getId());\n formData.setData(formDataList);\n this.formDataRepository.save(formData);\n });\n\n }\n\n return encounter2;\n\n }", "@Override\r\n\tpublic void save(DocumentDTO documentDto) {\n\t\tDocument document=convertDocumentBean(documentDto);\r\n\t}", "@Override\n public D addDTO( final D dto )\n throws EntityVersionMismatchException,\n DuplicateEntityException,\n VersionedEntityNotFoundException\n {\n final String methodName = \"addDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto cannot be null\" );\n final D returnDTO = super.addDTO( dto );\n this.saveChildEntities( dto, returnDTO );\n logMethodEnd( methodName, returnDTO );\n return returnDTO;\n }", "@Override\n public void save(T pojo) {\n\n Map<Class, Set<ReflectionUtils.DataDescriptor>> valueMap = new HashMap<>();\n\n try {\n ReflectionUtils.valuesForClasses(valueMap, null, pojo);\n\n for (Map.Entry<Class, Set<ReflectionUtils.DataDescriptor>> entry : valueMap.entrySet()) {\n Insert insert = null;\n if (entry.getKey().getName().equals(pojo.getClass().getName())) {\n logger.info(\"Working on the root class \" + pojo);\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n insert = QueryBuilder.insertInto(keySpace, tableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n\n logger.debug(\"Insert \" + insert);\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n } else {\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n String nestedtableName = descriptor.getTableName();\n logger.debug(\"Insert builder \" + descriptor + \" into \" + keySpace + \".\" + nestedtableName);\n insert = QueryBuilder.insertInto(keySpace, nestedtableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n }\n }\n }\n catch (HecateException e) {\n logger.error(\"Hecate problem \" + e);\n }\n }", "CustDataNotesResponseDTO saveCustDataNotes(CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;", "public boolean save() {\n\t\tboolean isCreate = false;\n\t\tif(!validate() || !beforeSave(isCreate)){\n\t\t\treturn false;\n\t\t}\n\t\ttry {\n\t\t\tupdate();\n\t\t} catch (SQLException e) {\n\t\t\tnew Event(Event.getLeafLevelClassName(this), \"save\",\n\t\t\t\t\t\"SQL error while saving: \" + e.toString(), Event.ERROR);\n\t\t\treturn false;\n\t\t}\n\t\tthis.setPersisted(true);\n\t\tafterSave(isCreate);\n\t\treturn true;\n\t}", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "@Override\n protected void preSaveDTO( final D dto )\n {\n final String methodName = \"preSaveDTO\";\n logMethodBegin( methodName, dto );\n checkTickerSymbol( dto );\n super.preSaveDTO( dto );\n logMethodEnd( methodName );\n }", "Bird save(BirdDTO birdDTO);", "@Override\n\tpublic boolean save(UsuarioDTO objUsuarioDTO) {\n\t\treturn false;\n\t}", "@Override\n public Building save(Building entity) {\n return dao.save(entity);\n }", "boolean saveMyNote(MyNoteDto myNoteDto);", "protected void saveRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Guarda objecto\r\n\t\tobjectDao.save(object);\r\n\t\t// Guarda registros de relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\t// Asigna Id padre\r\n\t\t\trelco.getId().setDconsecnk(object.getDconsecnk());\r\n\t\t\tsedrelcoDao.save(relco);\r\n\t\t}\r\n\t}", "@Override\n protected void postAddDTO( final D dto )\n {\n final String methodName = \"postAddDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postAddDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "protected boolean save() {\n\t\t// if modified... then do save\n\t\tif (stateProperty().getValue().contains(State.Modified) || \n\t\t\t\t// or if loaded from a dataset but was set inactive afterwards\n\t\t\t\t(stateProperty().getValue().contains(State.Dataset) && !activeProperty().getValue())) {\n\t\t\t// Save all the independent children first\n\t\t\tif (children != null) {\n\t\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t\t// Attributes should be managed by the owner, and shouldn't need to manage themselves\n\t\t\t\t\tif(!(child.isAttribute()) &&\n\t\t\t\t\t\t\t// either independent and active, or dependent and inactive\n\t\t\t\t\t\t\tchild.independentProperty().getValue() == isActive()) {\n\t\t\t\t\t\tchild.save();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// We want to call doSave if the value is active, otherwise doDelete should be called\n\t\t\tif (activeProperty().getValue()) {\n\t\t\t\tdoSave();\n\t\t\t} else {\n\t\t\t\tdoDelete();\n\t\t\t}\n\t\t\t\n\t\t\t// Save all the dependent children after this object has been saved\n\t\t\tif (children != null) {\n\t\t\t\tfor (BusinessObject child: children.values()) {\n\t\t\t\t\t// Attributes should be managed by the owner, and shouldn't need to manage themselves\n\t\t\t\t\tif (!(child.isAttribute()) &&\n\t\t\t\t\t\t\t// either independent and inactive, or dependent and active\n\t\t\t\t\t\t\tchild.independentProperty().getValue() != isActive()) {\n\t\t\t\t\t\tchild.save();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Should be safe to assume the following state after successful saving\n\t\t\tstateProperty().getValue().remove(State.Modified);\n\t\t\tif (isActive()) {\n\t\t\t\tstateProperty().getValue().add(State.Dataset);\n\t\t\t} else {\n\t\t\t\tstateProperty().getValue().remove(State.Dataset);\n\t\t\t}\n\t\t\t// Let listeners know about the save\n\t\t\tfireModified(new ModifiedEvent(this, ModifiedEventType.Save));\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public Owner save(Owner object) {\n Owner savedOwner = null;\n if(object != null) {\n if(object.getPets() != null) {\n object.getPets().forEach(pet -> {\n // 1. Handling Pet Type ID\n if(pet.getPetType() != null) {\n // when the pet has not been saved to our map yet -> save it.\n if(pet.getPetType().getId() == null) {\n pet.setPetType(petTypeService.save(pet.getPetType()));\n }\n } else {\n throw new RuntimeException(\"Pet Type is required!\");\n }\n\n // 2. Handling Pet ID\n if(pet.getId() == null) {\n Pet savedPet = petService.save(pet);\n pet.setId(savedPet.getId());\n }\n });\n }\n return super.save(object);\n } else {\n return null;\n }\n\n }", "@PostMapping(path = \"\")\n public ResponseEntity<ContractorDTO> saveContractor(@RequestBody @Valid ContractorDTO contractor) throws Exception{\n logger.debug(\"Request to save Contractor\");\n Contractor existingContractor = new Contractor();\n if(contractor.getId() != null && contractor.getId() > 0) {\n //Updating existing contractor - Check item with matching ID present\n Optional<Contractor> savedContractor = contractorService.getByID(contractor.getId());\n if(savedContractor != null && savedContractor.isPresent()) existingContractor = savedContractor.get();\n else throw new ResourceNotFoundException(\"In order to update Contractor \" + contractor.getId() + \", existing Contractor must be available with same ID\");\n }\n\n //In case not all persistent attributes not present in update DTO\n Contractor saveContractor = copyToContractor(contractor, existingContractor);\n Contractor savedContractor = contractorService.saveContractor(saveContractor);\n if(savedContractor.getId() != null && savedContractor.getId() > 0){\n logger.info(\"Saved Contractor with id \" + saveContractor.getId());\n ContractorDTO savedContractorDTo = convertToDTO(savedContractor);\n return ResponseEntity.created (new URI(\"/contractors/\" + savedContractor.getId())).body(savedContractorDTo);\n }\n else{\n throw new PersistenceException(\"Contractor not persisted: \" + new Gson().toJson(savedContractor));\n }\n }", "@Override\n\tpublic PersonalDetailsDTO save(@Valid PersonalDetailsDTO personaldetailsDto) {\n\t\treturn personaldetailsMapper.toPersonalDetailsDTO(personaldetailsService.save(personaldetailsMapper.toPersonalDetails(personaldetailsDto)));\n\t\t\n\t}", "@Override\r\n\tpublic void review_insert(ReviewDTO dto) throws Exception {\n\r\n\t}", "@Override\n @Transactional\n public void updateDtoStatus(D dto, E entity) throws MedragServiceException {\n try {\n E e = (E) new ModelMapper().map(dto, entity.getClass());\n entityDao.updateEntityStatus(e);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "@Override\r\n\tpublic void update(ReviewDTO dto) throws Exception {\n\r\n\t}", "private boolean saveData() {\n // get data from input controls\n collectDataFromUI();\n\n if (!validateData()) return false;\n\n boolean isTransfer = mCommon.transactionEntity.getTransactionType().equals(TransactionTypes.Transfer);\n if (!isTransfer) {\n mCommon.resetTransfer();\n }\n\n // Transaction. Need the id for split categories.\n\n if (!saveTransaction()) return false;\n\n // Split Categories\n\n if (mCommon.convertOneSplitIntoRegularTransaction()) {\n saveTransaction();\n }\n\n if(!mCommon.isSplitSelected()) {\n // Delete any split categories if split is unchecked.\n mCommon.removeAllSplitCategories();\n }\n if (!saveSplitCategories()) return false;\n\n return true;\n }", "Long saveOrUpdate(D dto);", "protected abstract boolean saveFields(Map changedFields_p) throws Exception;", "private void modifyEntityFromModifyEmployeeDto(ModifyEmployeeDto modifyEmployeeDto, Employee originalEmployee){\n\t\toriginalEmployee.setId(modifyEmployeeDto.id);\n\n\t\tif(modifyEmployeeDto.children != null)\n\t\t\toriginalEmployee.setChildren(modifyEmployeeDto.children);\n\n\t\tif(modifyEmployeeDto.isJustMarried != null)\n\t\t\toriginalEmployee.setJustMarried(modifyEmployeeDto.isJustMarried);\n\n\t\tif(modifyEmployeeDto.isSingleParent != null)\n\t\t\toriginalEmployee.setSingleParent(modifyEmployeeDto.isSingleParent);\n\t}", "@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }", "public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}", "@Override\n public SideDishEntity save(SideDishEntity entity) {\n return null;\n }", "@Override\n\tpublic <S extends Audit> S save(S entity) {\n\t\treturn null;\n\t}", "@Override\n public String saveWithTx(UserPlatformDTO dto) {\n return userPlatformWriteManage.save(UserPlatformConverter.toPO(dto));\n }", "@Exclude\n public abstract void save();", "@Override\n public void savePerson() {\n this.personDao.savePerson();\n }", "@Override\n\tpublic void update(Object dto) throws Exception {\n\t\tpropertyConfigMapper.updateByPrimaryKeySelective(dto);\n\t}", "@Override\r\n\tpublic void updateAttach(ReviewDTO dto) {\n\r\n\t}", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "@Override\n\tpublic void save( T entity) {\n\t baseDaoImpl.save(entity);\n\t}", "public int save(SaveQuery saveQuery, EntityDetails entityDetails, ObjectWrapper<Object> idGenerated);", "@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}", "@Test\n public void createSample_onSuccess_allFieldsHaveSetValueAfterPersisted() {\n String newSampleName = \"new sample\";\n\n MolecularSampleDto newSample = new MolecularSampleDto();\n newSample.setName(newSampleName);\n newSample.setMaterialSample(ExternalRelationDto.builder().id(TEST_MATERIAL_SAMPLE_UUID.toString()).type(\"material-sample\").build());\n \n MolecularSampleDto createdSample = molecularSampleRepository.create(newSample);\n \n //DTO has the set value\n assertNotNull(createdSample.getUuid());\n assertEquals(newSampleName, createdSample.getName());\n assertEquals(TEST_MATERIAL_SAMPLE_UUID.toString(), createdSample.getMaterialSample().getId());\n\n \n //entity has the set value \n MolecularSample sampleEntity = baseDao.findOneByNaturalId(createdSample.getUuid(), MolecularSample.class);\n \n assertNotNull(sampleEntity.getId());\n assertEquals(newSampleName, sampleEntity.getName());\n assertEquals(TEST_MATERIAL_SAMPLE_UUID, sampleEntity.getMaterialSample());\n\n }", "EmployeeDetail save(EmployeeDetail detail) throws DBException;", "T save(T entity) throws DataConcurrencyException, DataIntegrityViolationException;", "@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }", "@Override\n\tpublic void saveORUpdate(T obj) throws Exception {\n\t\t\n\t}", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "public int saveOrUpdate(o dto);", "protected abstract void doSave();", "@Override\r\n\tpublic <S extends Candidat> Iterable<S> save(Iterable<S> entities) {\n\t\treturn null;\r\n\t}", "protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }", "public void saveEmployee(CreateOrEditEmployeeRequestDto employee);", "void save(Object entity);", "@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> post(@Valid @RequestBody SaveTodoDto dto) {\n Todo todo = entityConverter.convert(dto);\n\n todo = repository.save(todo);\n\n URI location = UriComponentsBuilder.fromPath(\"/todos\").pathSegment(String.valueOf(todo.getId())).build().toUri();\n\n return ResponseEntity.created(location).build();\n }", "@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}", "@Override\n public void save(Iterable<? extends SideDishEntity> entities) {\n\n }", "protected void doSave() {\n GWT.log(\"Please override\");\n }", "@Test\n public void givenThreeEntity_whenUpdate_thenReturnUpdatedEntity() {\n ThreeEntity entity = new ThreeEntity(1,1);\n entity.setValue(1000);\n entity.setParentId(12);\n\n given(threeDao.save(entity)).willReturn(entity);\n\n ThreeEntity found = threeService.save(entity);\n\n assertEquals(entity.getId(), found.getId());\n assertEquals(entity.getParentId(), found.getParentId());\n assertEquals(entity.getValue(), found.getValue());\n }", "@Override\n protected void validateSave(Fornecedor post) {\n\n }", "@Override\r\n\tpublic void innerSave() {\n\r\n\t}", "public boolean insertData(Location2DTO dto) throws SQLException{\n\t\tboolean flag = false;\n\t\tint aCnt = session.insert(namespace+\".insert\",dto);\n\t\tif(aCnt>0){\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public void trySave() throws BOException {\n//\t\tif (verifyState()) {\n\t\tverifyState();\n\t\tsave();\n//\t\t}\n\t}", "protected void saveNested(Datastore store) {\n Field[] fields = this.getClass().getFields();\n for(Field field : fields) {\n try {\n Object value = field.get(this);\n \n if(value == null)\n continue;\n \n if(value instanceof Base) {\n if(!((Base) value).shallow)\n ((Base) value).save(store, true);\n } else if (value instanceof Base[]) {\n for(Base b : (Base[]) value)\n if(!b.shallow)\n b.save(store, true);\n } else if (value instanceof Collection) {\n Collection l = (Collection) value;\n\n if (l.size() > 0 && Base.class.isAssignableFrom(l.iterator().next().getClass())) {\n for(Base b : (Collection<Base>) l)\n if(!b.shallow)\n b.save(store, true);\n }\n } else if (value instanceof Map) {\n Map m = (Map) value;\n\n if(m.size() > 0 && m.keySet().iterator().next() instanceof String &&\n Base.class.isAssignableFrom(m.values().iterator().next().getClass())) {\n\n for(Base b : ((Map<String, Base>)m).values())\n if(!b.shallow)\n b.save(store, true);\n }\n }\n } catch (IllegalAccessException | IllegalArgumentException ex) {\n throw new MongomanException(ex);\n }\n }\n }", "public void save() throws DfException {\n\t\tobject.save();\n\t}", "@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}", "@Override\n public void save() {\n \n }", "public void save() {\n\t\tSystem.out.println(\"-----------from PersonDao.save()\");\n\t}", "@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }", "@PrePersist\n private void onSave()\n {\n this.lastUpdateDateTime = new Date();\n if(this.registerDateTime == null)\n {\n this.registerDateTime = new Date();\n }\n \n if(this.personKey == null || this.personKey.isEmpty())\n {\n this.personKey = UUID.randomUUID().toString();\n }\n \n if(this.activationDate == null && (this.activationKey == null || this.activationKey.isEmpty()))\n {\n this.activationKey = UUID.randomUUID().toString();\n this.activationDate = new Date();\n }\n \n // O ID só será 0 (zero) se for a criação do registro no banco\n if(this.id == 0)\n {\n this.isValid = false;\n }\n }", "@Override\n\tpublic Book update(Book dto) {\n\t\treturn null;\n\t}", "public void postDoSave(T entity)\n {\n }", "Boolean save(T entity);", "@Test\r\n public void testSave() {\r\n\r\n PaymentDetailPojo result = instance.save(paymentDetail1);\r\n assertTrue(paymentDetail1.hasSameParameters(result));\r\n assertTrue(result.getId() > 0);\r\n }", "public String validateandsave(UserDTO dto) {\n\t\tUserEntity entity=new UserEntity();\r\n\t\tentity.setId(dto.getId());\r\n\t\tentity.setUsername(dto.getUsername());\r\n\t\tentity.setEmail(dto.getEmail());\r\n\t\tentity.setContactNumber(dto.getContactNumber());\r\n\t\tentity.setPassword(dto.getPassword());\r\n\t\t\r\n\t\tint rows = dao.save(entity);\r\n\t\treturn \"validated\";\r\n\t\t\t}", "private void saveObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n Field id = null;\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n id = f;\n }\n }\n id.setAccessible(true);\n\n if (Integer.parseInt(id.get(object).toString()) != 0 && !id.get(object).equals(null)) {\n crudService.update((SimpleORMInterface) object);\n } else {\n crudService.insert((SimpleORMInterface) object);\n }\n id.setAccessible(false);\n ConnectionPoll.releaseConnection(connection);\n\n } catch (IllegalAccessException | NoSuchFieldException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void saveTransactionDetails(TransactionInfo transactionInfo) {\n repositoryService.saveTransactionDetails(transactionInfo);\n update(\"transactions\", String.class, TransactionInfo.class, LocalDateTime.now().toString(), transactionInfo);\n }", "@Override\n public void save()\n {\n \n }", "@Override\r\n\tpublic Employee save(Employee emp) {\n\t\t return empdao.save(emp);\r\n\t}", "@Override\n\tpublic Patient save(Patient patient) {\n\t\t// setting logger info\n\t\tlogger.info(\"save the details of the patient\");\n\t\treturn patientRepo.save(patient);\n\t}", "@Test\n public void givenThreeEntity_whenSave_thenReturnSavedEntity() {\n ThreeEntity entity = new ThreeEntity(1,1);\n\n given(threeDao.save(entity)).willReturn(entity);\n\n ThreeEntity found = threeService.save(entity);\n\n assertEquals(entity.getId(), found.getId());\n assertEquals(entity.getParentId(), found.getParentId());\n assertEquals(entity.getValue(), found.getValue());\n }", "VendorNotificationResponseDTO save(VendorNotificationRequestDTO VendorDataNotificationRequestDTO)throws Exception;", "private void registrarSolicitudBienEntidad(SolicitudBienEntidadDTO SolicitudBienEntidadDTO) {\n SolicitudBienEntidad solicitudBienEntidad = SolicitudBienEntidadHelper.toLevel1Entity(SolicitudBienEntidadDTO,\n null);\n em.persist(solicitudBienEntidad);\n }", "@Override\n public Owner save(Owner object) {\n return super.save(object);\n }", "public void onSave() {\n\t\tsetCreationDate(new Date());\n\t\tPageAlias.create(this, null);\n\t\tupdateChildPaths();\n\t}", "public void afterSave(Object entity) {\n\t\tif(!(entity instanceof DBObject)) return;\r\n\t\tDBObject obj = (DBObject) entity;\r\n\r\n\t\tList<FieldChange> changes = tracker.compare(obj);\r\n\t\tif(changes == null) return; // no changes were tracked\r\n\t\t\r\n\t\t// for all of the @Tracked fields that changed (could be empty list)\r\n\t\tfor(FieldChange change : changes) {\r\n\t\t\t// fire-event for the change\r\n\t\t\tpublisher.fireEvent(new EntryFieldChangedEvent(\r\n\t\t\t\t\tobj, change.getName(), change.getOldValue(), change.getNewValue()));\r\n\t\t}\r\n\t}", "@Override\n\tpublic AuditDetail update(AuditDetail domainObject) {\n\t\treturn null;\n\t}", "public void save(PtJJdwcy entity);", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}", "private static void saveEntity(TaskViewModel node, StorableFactory<Task> taskFactory) throws DatabaseException {\n Task dto = Infrastructure.getInstance().getTaskMapper().toDto(node);\n taskFactory.create(dto);\n // after creation in db id will be set\n node.setId(dto.getId());\n for (TaskViewModel child : node.getChildren()) {\n saveEntity(child, taskFactory);\n }\n }", "public void persist() {\r\n\t\tbeanDAO.attachClean(selected);\r\n\t}", "@Override\n @Transactional\n public Integer addDto(D dto, E entity) throws MedragServiceException {\n E result = (E) new ModelMapper().map(dto, entity.getClass());\n try {\n return entityDao.addEntity(result);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "Entity save(Entity entity);", "@Override\n\tpublic VisitorDetails saveData(VisitorDetails data) {\n\t\treturn repo.save(data);\n\t}", "protected void saveValues() {\n dataModel.persist();\n }", "@Transactional\n public SkillDTO save(SkillDTO dto) {\n if (dto == null) {\n return null;\n }\n\n final Skill skill;\n\n if (dto.isIdSet()) {\n Skill skillTmp = skillRepository.findOne(dto.id);\n if (skillTmp != null) {\n skill = skillTmp;\n } else {\n skill = new Skill();\n skill.setId(dto.id);\n }\n } else {\n skill = new Skill();\n }\n\n skill.setName(dto.name);\n\n skill.setPosition(dto.position);\n\n skill.setOnInit(dto.onInit);\n\n skill.setCreationDate(dto.creationDate);\n\n skill.setCreationAuthor(dto.creationAuthor);\n\n skill.setLastModificationDate(dto.lastModificationDate);\n\n skill.setLastModificationAuthor(dto.lastModificationAuthor);\n\n skill.setVersion(dto.version);\n\n if (dto.skill2 == null) {\n skill.setSkill2(null);\n } else {\n Skill skill2 = skill.getSkill2();\n if (skill2 == null || (skill2.getId().compareTo(dto.skill2.id) != 0)) {\n skill.setSkill2(skillRepository.findOne(dto.skill2.id));\n }\n }\n\n if (dto.script == null) {\n skill.setScript(null);\n } else {\n Script script = skill.getScript();\n if (script == null || (script.getId().compareTo(dto.script.id) != 0)) {\n skill.setScript(scriptRepository.findOne(dto.script.id));\n }\n }\n\n skill.getTheChars().clear();\n if (dto.theChars != null) {\n dto.theChars.stream().forEach(anChar -> skill.addAnChar(characterRepository.findOne(anChar.id)));\n }\n\n return toDTO(skillRepository.save(skill));\n }", "public boolean doSave() {\n return true;\n }" ]
[ "0.7156636", "0.6291328", "0.62127584", "0.6101993", "0.6067967", "0.59953195", "0.58772606", "0.583693", "0.5800642", "0.57897", "0.5690584", "0.56805676", "0.5606845", "0.5604871", "0.55659187", "0.5537505", "0.5531313", "0.55063814", "0.5493388", "0.54724234", "0.54429734", "0.5440637", "0.5419036", "0.5417954", "0.5357892", "0.5311735", "0.5310741", "0.5306924", "0.5293548", "0.52911264", "0.52850765", "0.5282294", "0.5272936", "0.5254178", "0.52534425", "0.5251623", "0.524351", "0.52139944", "0.5199987", "0.51990896", "0.5194408", "0.5190046", "0.51854664", "0.51829606", "0.51824015", "0.5180027", "0.51762605", "0.5166888", "0.51657563", "0.51608646", "0.5157884", "0.5157446", "0.5157214", "0.5147847", "0.51470613", "0.5145434", "0.5143707", "0.5139526", "0.5132912", "0.51316494", "0.5130203", "0.5128407", "0.5124274", "0.51140994", "0.5105283", "0.5098971", "0.50870496", "0.5084749", "0.50841266", "0.5075603", "0.507247", "0.5071497", "0.5066007", "0.5061933", "0.50595653", "0.50568384", "0.50542444", "0.50506395", "0.5047862", "0.5042877", "0.5036523", "0.50334984", "0.50314057", "0.502756", "0.5023759", "0.50233126", "0.5023281", "0.50223976", "0.50036556", "0.4997684", "0.49845335", "0.4982296", "0.49788412", "0.4976777", "0.4976284", "0.49741006", "0.49723694", "0.49701554", "0.49655962", "0.496331" ]
0.66718227
1
Adds the DTO to the database and checks for child entity data including notes sources and tags to determine if there are any changes there to be updated/inserted.
@Override public D addDTO( final D dto ) throws EntityVersionMismatchException, DuplicateEntityException, VersionedEntityNotFoundException { final String methodName = "addDTO"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto cannot be null" ); final D returnDTO = super.addDTO( dto ); this.saveChildEntities( dto, returnDTO ); logMethodEnd( methodName, returnDTO ); return returnDTO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveChildEntities( final D dto, final D returnDTO )\n {\n /*\n * Save any tags contained in the dto\n */\n if ( dto instanceof TagsContainer )\n {\n this.saveStockTags( dto, returnDTO );\n }\n /*\n * Check for new sources\n */\n if ( dto instanceof NotesSourceIdContainer )\n {\n this.stockNoteSourceService\n .checkForNewSource( (NotesSourceIdContainer)dto );\n }\n }", "@Override\n protected void postAddDTO( final D dto )\n {\n final String methodName = \"postAddDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postAddDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "@Override\n @Transactional\n public Integer addDto(D dto, E entity) throws MedragServiceException {\n E result = (E) new ModelMapper().map(dto, entity.getClass());\n try {\n return entityDao.addEntity(result);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "@Override\n public D saveDTO( final D dto )\n throws EntityVersionMismatchException,\n DuplicateEntityException\n {\n final String methodName = \"saveDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto cannot be null\" );\n final D returnDTO = super.saveDTO( dto );\n this.saveChildEntities( dto, returnDTO );\n logMethodEnd( methodName, returnDTO );\n return returnDTO;\n }", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "public <T> boolean addObject(T entity) throws DataAccessException {\n\t\tboolean flag = false;\n try {\n mapper.addDept((DeptVO) entity);\n flag = true;\n } catch (DataAccessException e) {\n flag = false;\n throw e;\n }\n return flag;\n\t}", "@Override\r\n\tpublic void insert(BbsDto dto) {\n\t}", "@Override\n\tpublic void insert(Object dto) throws Exception {\n\t\tpropertyConfigMapper.insertSelective(dto);\n\t}", "@Override\n protected void postSaveDTO( final D dto )\n {\n final String methodName = \"postSaveDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postSaveDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "public boolean insertBlogData(BlogDTO dto) throws SQLException{\n\t\tboolean flag = false;\n\t\tint aCnt = session.insert(namespace+\".insertBlog\",dto);\n\t\tif(aCnt>0){\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public boolean insertData(Location2DTO dto) throws SQLException{\n\t\tboolean flag = false;\n\t\tint aCnt = session.insert(namespace+\".insert\",dto);\n\t\tif(aCnt>0){\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "@Override\r\n\tpublic boolean gbAttachInsert(GbAttachDto dto) {\n\t\treturn false;\r\n\t}", "@Override\n protected void preAddDTO( final D dto )\n {\n final String methodName = \"preAddDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n checkTickerSymbol( dto );\n super.preAddDTO( dto );\n logMethodEnd( methodName );\n }", "UserDTO addNewData(UserDTO userDTO);", "@Override\n protected void preSaveDTO( final D dto )\n {\n final String methodName = \"preSaveDTO\";\n logMethodBegin( methodName, dto );\n checkTickerSymbol( dto );\n super.preSaveDTO( dto );\n logMethodEnd( methodName );\n }", "@Override\n public void DataIsInserted() {\n }", "@Override\r\n\tpublic boolean insertLostProperty(ReportDto dto) {\n\t\treturn false;\r\n\t}", "@Override\n public void saveChildrenData() {\n boats.forEach(boatDAO::save);\n }", "@Override\n protected E dtoToEntity( final D dto )\n {\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n final E entity = super.dtoToEntity( dto );\n /*\n * Convert the notes source ID to UUID\n */\n if ( dto instanceof NotesSourceIdContainer &&\n entity instanceof NotesSourceUuidContainer )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;\n /*\n * Check for new sources\n */\n this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n /*\n * Convert the String UUID to a real uuid if present\n */\n if ( notesSourceIdContainer.getNotesSourceId() != null &&\n !notesSourceIdContainer.getNotesSourceId().isEmpty() )\n {\n final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService\n .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),\n notesSourceIdContainer.getNotesSourceId() );\n notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );\n }\n }\n //logMethodEnd( methodName, entity );\n return entity;\n }", "@Override\n public Preparation mapToEntity(PreparationDto dto) {\n return null;\n }", "private void onComponentUpdate(InheritedComponentInstanceSelDTO dto) {\n\t\tInheritedComponentInstanceSelModelData oldModel = store.findModel(ModuleInstanceSelModelData.PROPERTY_ID, dto\n\t\t\t.getComponent().getId());\n\t\tInheritedComponentInstanceSelModelData newModel = new InheritedComponentInstanceSelModelData(dto);\n\t\tstore.remove(oldModel);\n\t\tstore.add(newModel);\n\t}", "private void modifyEntityFromModifyEmployeeDto(ModifyEmployeeDto modifyEmployeeDto, Employee originalEmployee){\n\t\toriginalEmployee.setId(modifyEmployeeDto.id);\n\n\t\tif(modifyEmployeeDto.children != null)\n\t\t\toriginalEmployee.setChildren(modifyEmployeeDto.children);\n\n\t\tif(modifyEmployeeDto.isJustMarried != null)\n\t\t\toriginalEmployee.setJustMarried(modifyEmployeeDto.isJustMarried);\n\n\t\tif(modifyEmployeeDto.isSingleParent != null)\n\t\t\toriginalEmployee.setSingleParent(modifyEmployeeDto.isSingleParent);\n\t}", "@Override\n public void save(T pojo) {\n\n Map<Class, Set<ReflectionUtils.DataDescriptor>> valueMap = new HashMap<>();\n\n try {\n ReflectionUtils.valuesForClasses(valueMap, null, pojo);\n\n for (Map.Entry<Class, Set<ReflectionUtils.DataDescriptor>> entry : valueMap.entrySet()) {\n Insert insert = null;\n if (entry.getKey().getName().equals(pojo.getClass().getName())) {\n logger.info(\"Working on the root class \" + pojo);\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n insert = QueryBuilder.insertInto(keySpace, tableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n\n logger.debug(\"Insert \" + insert);\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n } else {\n for (ReflectionUtils.DataDescriptor descriptor : entry.getValue()) {\n String nestedtableName = descriptor.getTableName();\n logger.debug(\"Insert builder \" + descriptor + \" into \" + keySpace + \".\" + nestedtableName);\n insert = QueryBuilder.insertInto(keySpace, nestedtableName).values(ReflectionUtils.fieldNames(entry.getKey()),\n descriptor.getValues());\n ResultSet res = session.execute(insert);\n logger.debug(\"Result \" + res);\n }\n }\n }\n }\n catch (HecateException e) {\n logger.error(\"Hecate problem \" + e);\n }\n }", "public void insertHistory(RecordDTO recordDTO);", "@Override\r\n\tpublic void review_insert(ReviewDTO dto) throws Exception {\n\r\n\t}", "private void insert(SfJdDocAudit inData, RequestMeta requestMeta) {\n jdDocAuditMapper.insert(inData);\r\n if(inData.getDetailLst()!=null){\r\n for(int i=0;i<inData.getDetailLst().size();i++){\r\n SfJdDocAuditDetail m=(SfJdDocAuditDetail) inData.getDetailLst().get(i);\r\n m.setJdDocAuditId(inData.getJdDocAuditId());\r\n jdDocAuditDetailMapper.insert(m);\r\n }\r\n }\r\n if(inData.getMaterialLst()!=null){\r\n for(int i=0;i<inData.getMaterialLst().size();i++){\r\n SfMaterialsTransferDetail md=(SfMaterialsTransferDetail) inData.getMaterialLst().get(i);\r\n md.setTransferId(inData.getJdDocAuditId());\r\n materialsTransferDetailMapper.insert(md);\r\n }\r\n }\r\n }", "public Encounter save(EncounterDTO encounterDTO) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"HH:mm\");\n LocalTime time = LocalTime.parse(formatter.format(LocalTime.now()), formatter);\n\n encounterDTO.setTimeCreated(time);\n log.info(\"Getting Consultation from front end...\" + encounterDTO);\n\n Optional<Encounter> encounter = this.encounterRepository.findByPatientIdAndProgramCodeAndFormCodeAndDateEncounter(encounterDTO.getPatientId(), encounterDTO.getFormCode(),\n encounterDTO.getProgramCode(), encounterDTO.getDateEncounter());\n\n if (encounter.isPresent()) {\n throw new RecordExistException(Encounter.class, \"Patient Id \", encounterDTO.getPatientId() + \", \" +\n \"Program Code = \" + encounterDTO.getProgramCode() + \", Form Code =\" + encounterDTO.getFormCode() + \", Date =\" + encounterDTO.getDateEncounter());\n }\n\n Optional <Patient> patient1 = this.patientRepository.findById(encounterDTO.getPatientId());\n if(!patient1.isPresent()){\n throw new EntityNotFoundException(Patient.class,\"Patient Id\", patient1.get().getId().toString());\n }\n\n Optional<Form> form = formRepository.findByCode(encounterDTO.getFormCode());\n if(!form.isPresent()){\n throw new EntityNotFoundException(Form.class,\"Form Name\", encounterDTO.getFormCode());\n }\n\n Optional<Program> program = this.programRepository.findByCode(encounterDTO.getProgramCode());\n if(!program.isPresent()){\n throw new EntityNotFoundException(Program.class,\"Program Name\", encounterDTO.getProgramCode());\n }\n\n Optional<Visit> visit = this.visitRepository.findById(encounterDTO.getVisitId());\n if(!visit.isPresent()){\n throw new EntityNotFoundException(Visit.class,\"Visit Id\", encounterDTO.getVisitId().toString());\n }\n\n\n final Encounter encounter1 = encounterMapper.toEncounter(encounterDTO);\n\n\n Encounter encounter2 = this.encounterRepository.save(encounter1);\n log.info(\"SAVING CONSULTATION TO BACKEND 12345... \" + encounter2);\n\n if(encounterDTO.getData().size() >0){\n encounterDTO.getData().forEach(formDataList->{\n FormData formData = new FormData();\n formData.setEncounterId(encounter2.getId());\n formData.setData(formDataList);\n this.formDataRepository.save(formData);\n });\n\n }\n\n return encounter2;\n\n }", "@Override\r\n\tpublic void addAttach(ReviewDTO dto) {\n\r\n\t}", "@Override\n @Transactional\n public void updateDtoStatus(D dto, E entity) throws MedragServiceException {\n try {\n E e = (E) new ModelMapper().map(dto, entity.getClass());\n entityDao.updateEntityStatus(e);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "@Transactional\n\tpublic OrderDTO insert(OrderDTO dto){\n\t\t//Order instance of received data \t\t\n\t\tOrder order = new Order(null, dto.getAddress(), dto.getLatitude(), dto.getLatitude(),\n\t\t\t\tInstant.now(), OrderStatus.PENDING);\n\t\t\n\t\tfor(ProductDTO p : dto.getProducts()) {\n\n\t\t\t//create the entity by id then add to order's prod list\n\t\t\tProduct product = productRepository.getOne(p.getId());\n\t\t\torder.getProducts().add(product);\n\t\t}\n\t\t\n\t\torder = repository.save(order);\n\t\treturn new OrderDTO(order);\n\t}", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\n\tpublic void insertProduct(ProductVO dto) {\n\n\t}", "public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;", "@RequestMapping(method=RequestMethod.POST)\n public ResponseEntity<Void> insert(@RequestBody TeamDTO objDto) {\n Team obj = this.teamService.fromDTO(objDto);\n this.teamService.insert(obj);\n URI uri = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{id}\").buildAndExpand(obj.getId()).toUri();\n return ResponseEntity.created(uri).build();\n }", "public void saveFormData() {\r\n if(!saveRequired) return;\r\n if(cvHierarchyData != null && cvHierarchyData.size()>0) {\r\n SponsorHierarchyBean sponsorHierarchyBean;\r\n for(int index=0; index<cvHierarchyData.size(); index++) {\r\n try {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvHierarchyData.get(index);\r\n if(sponsorHierarchyBean.getAcType() != null) {\r\n if(sponsorHierarchyBean.getAcType() == TypeConstants.UPDATE_RECORD) {\r\n queryEngine.update(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.INSERT_RECORD) {\r\n queryEngine.insert(queryKey,sponsorHierarchyBean);\r\n }else if(sponsorHierarchyBean.getAcType() == TypeConstants.DELETE_RECORD) {\r\n queryEngine.delete(queryKey,sponsorHierarchyBean);\r\n }\r\n }\r\n }catch(CoeusException coeusException){\r\n coeusException.printStackTrace();\r\n }\r\n }\r\n }\r\n saveRequired = false;\r\n }", "@Override\r\n\tpublic boolean gbAttachUpdate(GbAttachDto dto) {\n\t\treturn false;\r\n\t}", "private CustomersDTO buildDTOToUpdate(CustomersDTO customerDto, CustomersInputDTO inputData) {\n if (inputData.getPersonInCharge() != null) {\n PersonInChargeDTO personInChargeDTO = inputData.getPersonInCharge();\n if (personInChargeDTO.getEmployeeId() == null) {\n customerDto.setEmployeeId(ConstantsCustomers.LONG_VALUE_0L);\n } else {\n customerDto.setEmployeeId(personInChargeDTO.getEmployeeId());\n }\n if (personInChargeDTO.getDepartmentId() == null) {\n customerDto.setDepartmentId(ConstantsCustomers.LONG_VALUE_0L);\n } else {\n customerDto.setDepartmentId(personInChargeDTO.getDepartmentId());\n }\n if (personInChargeDTO.getGroupId() == null) {\n customerDto.setGroupId(ConstantsCustomers.LONG_VALUE_0L);\n } else {\n customerDto.setGroupId(personInChargeDTO.getGroupId());\n }\n }\n if (customerDto.getBusinessMainId() == null || customerDto.getBusinessMainId() < 0) {\n customerDto.setBusinessMainId(0);\n }\n if (customerDto.getBusinessSubId() == null || customerDto.getBusinessSubId() < 0) {\n customerDto.setBusinessSubId(0);\n }\n\n customerDto.setUpdatedUser(jwtTokenUtil.getEmployeeIdFromToken());\n return customerDto;\n }", "@Override\n\tpublic int insert(ProductDTO dto) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void update(Object dto) throws Exception {\n\t\tpropertyConfigMapper.updateByPrimaryKeySelective(dto);\n\t}", "@Override\r\n\tpublic void updateAttach(ReviewDTO dto) {\n\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "@Override\r\n\tpublic boolean add(ServicesDto servicesDto) {\r\n\t\ttry {\r\n\t\t\t// add the category to database table\r\n\t\t\tsessionFactory.getCurrentSession().persist(servicesDto);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public void add(T obj) {\n generateObjIdIfRequired(obj);\n \n //Try to copy when adding so we can prevent unwanted changes\n obj = getCopyOfT(obj);\n \n if (objects.contains(obj)) throw new DBEntityAlreadyExistsException(obj.toString());\n\n objects.add(obj);\n }", "@Test\n public void createSample_onSuccess_allFieldsHaveSetValueAfterPersisted() {\n String newSampleName = \"new sample\";\n\n MolecularSampleDto newSample = new MolecularSampleDto();\n newSample.setName(newSampleName);\n newSample.setMaterialSample(ExternalRelationDto.builder().id(TEST_MATERIAL_SAMPLE_UUID.toString()).type(\"material-sample\").build());\n \n MolecularSampleDto createdSample = molecularSampleRepository.create(newSample);\n \n //DTO has the set value\n assertNotNull(createdSample.getUuid());\n assertEquals(newSampleName, createdSample.getName());\n assertEquals(TEST_MATERIAL_SAMPLE_UUID.toString(), createdSample.getMaterialSample().getId());\n\n \n //entity has the set value \n MolecularSample sampleEntity = baseDao.findOneByNaturalId(createdSample.getUuid(), MolecularSample.class);\n \n assertNotNull(sampleEntity.getId());\n assertEquals(newSampleName, sampleEntity.getName());\n assertEquals(TEST_MATERIAL_SAMPLE_UUID, sampleEntity.getMaterialSample());\n\n }", "private void executeInsert()\n\t\t\tthrows TranslatorException {\n\n\t\tInsert icommand = (Insert) command;\t\t\n\t\t\n\t\tTable t = metadata.getTable(icommand.getTable().getMetadataObject().getFullName());\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\tthis.addChildObject(t);\n\t\t\treturn;\n\t\t}\n\t\tString pkColName = null;\n\t\t\n\t\t// process the top level object\n\t\tList<Column> pk = t.getPrimaryKey().getColumns();\n\t\tif (pk == null || pk.isEmpty()) {\n final String msg = CoherencePlugin.Util.getString(\"CoherenceUpdateExecution.noPrimaryKeyDefinedOnTable\", new Object[] {t.getName()}); //$NON-NLS-1$\n\t\t\tthrow new TranslatorException(msg);\t\t\n\t\t}\n\t\t\n\t\tpkColName = visitor.getNameFromElement(pk.get(0));\n\t\t\n\t\tObject newObject = cacheTranslator.createObject(icommand.getColumns(), \n\t\t\t\t((ExpressionValueSource)icommand.getValueSource()).getValues(), \n\t\t\t\tthis.visitor, \n\t\t\t\tt);\n\t\t\n\t\t// get the key value to use to for adding to the cache\n\t\tObject keyvalue = ObjectSourceMethodManager.getValue(\"get\" + pkColName, newObject);\n\t\n\t\t// add to cache\n\t\ttry {\n\t\t\tthis.connection.add(keyvalue, newObject);\n\t\t} catch (ResourceException e) {\n\t\t\tthrow new TranslatorException(e);\n\t\t}\t\t\t\n\n\t\t\n\t}", "public String insert(DtoEntrprs dto){\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void save(DocumentDTO documentDto) {\n\t\tDocument document=convertDocumentBean(documentDto);\r\n\t}", "private void insertData() {\n \n for (int i = 0; i < 3; i++) {\n ClienteEntity editorial = factory.manufacturePojo(ClienteEntity.class);\n em.persist(editorial);\n ClienteData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoPaseoEntity paseo = factory.manufacturePojo(ContratoPaseoEntity.class);\n em.persist(paseo);\n contratoPaseoData.add(paseo);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoHotelEntity editorial = factory.manufacturePojo(ContratoHotelEntity.class);\n em.persist(editorial);\n contratoHotelData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n PerroEntity perro = factory.manufacturePojo(PerroEntity.class);\n //perro.setCliente(ClienteData.get(0));\n //perro.setEstadias((List<ContratoHotelEntity>) contratoHotelData.get(0));\n //perro.setPaseos((List<ContratoPaseoEntity>) contratoPaseoData.get(0));\n em.persist(perro);\n Perrodata.add(perro);\n }\n\n }", "public static IncomingDelivery mapToEntity(IncomingDeliveryDTO dto) throws Exception {\r\n\r\n\t\tif(dto==null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tIncomingDelivery entity = new IncomingDelivery();\r\n\r\n\r\n\t\tentity.setIncomingDeliveryId(dto.getIncomingDeliveryId());\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\t// organisation must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\t\t// lastEditor must be set outside of the mapper (the static functions require a static dataBaseService which is not supported and permanently return null)\r\n\r\n\t\tentity.setDeliveryNr(dto.getDeliveryNr());\r\n\r\n\t\ttry {\r\n\t\t\tentity.setDate(df.parse(dto.getDate()));\r\n\t\t} catch (ParseException e) {\r\n\t\t\t// set current Date if parsing fails\r\n\t\t\tentity.setDate(new Date(System.currentTimeMillis()));\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// updateTimestamp does not have to be delivered by the frontend\r\n\t\tif (dto.getUpdateTimestamp() != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tentity.setUpdateTimestamp(df.parse(dto.getUpdateTimestamp()));\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// set current Date if parsing fails\r\n\t\t\t\tentity.setUpdateTimestamp(new Date(System.currentTimeMillis()));\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tentity.setComment(dto.getComment());\r\n\r\n\t\t// set archived Flag only by function, not by object\r\n\t\t// entity.setArchived(dto.getArchived());\r\n\t\t// booked status does not have to be set, because it is generated by Hibernate when getting the entity\r\n\r\n\t\tSet<IncomingArticle> incomingArticles = new HashSet<IncomingArticle>();\r\n\t\tfor(IncomingArticleDTO incomingArticleDTO : dto.getIncomingArticleDTOs())\r\n\t\t{\r\n\t\t\tincomingArticles.add(IncomingArticleMapper.mapToEntity(incomingArticleDTO));\r\n\t\t}\r\n\r\n\t\tentity.setIncomingArticles(incomingArticles);\r\n\r\n\t\treturn entity;\r\n\r\n\t}", "@Transactional\n public LecturerDto addLecturer(LecturerDto dto) throws KronosException {\n Optional<Lecturer> existing = lecturerRepository.findLecturerByEmail(dto.getEmail());\n\n if(existing.isPresent()) {\n throw new KronosException(\"Email already exists\");\n }\n\n //Validate email\n if(!ExtraUtilities.isEmailValid(dto.getEmail())) throw new KronosException(\"Invalid Email\");\n\n //Save new lecturer after mapping dto to entity class\n Lecturer lecturer = lecturerRepository.save(map(dto));\n\n dto.setLecturerID(lecturer.getLecturerID());\n return dto;\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "public BlogDetailDTO (BlogEntity entity) \r\n {\r\n super(entity);\r\n if(entity.getCliente()!=null)cliente = new ClienteDTO(entity.getCliente());\r\n if(entity.getEvento()!=null)evento = new EventoDTO(entity.getEvento());\r\n \r\n }", "@Before\n\tpublic void fillSomeDataIntoOurDb() {\n\t\tentityManager.persist(ago);\n\t\tentityManager.persist(teacherAgo);\n\t\tentityManager.persist(agoSubject);\n\t}", "protected void populateDto(Project dto, ResultSet rs) throws SQLException {\n\t\tdto.setId(rs.getInt(COLUMN_ID));\n\t\tdto.setOwnerId(rs.getInt(COLUMN_OWNER_ID));\n\t\tdto.setCreatorId(rs.getInt(COLUMN_CREATOR_ID));\n\t\tdto.setName(rs.getString(COLUMN_NAME));\n\t\tdto.setDescription(rs.getString(COLUMN_DESCRIPTION));\n\t\tdto.setCompanyId(rs.getInt(COLUMN_COMPANY_ID));\n\t\tif (rs.wasNull()){\n\t\t\tdto.setCompanyIdNull(true);\n\t\t}\n\n\t\tdto.setBillAddress(rs.getString(COLUMN_BILL_ADDRESS));\n\t\tdto.setBillCity(rs.getString(COLUMN_BILL_CITY));\n\t\tdto.setBillZipCode(rs.getInt(COLUMN_BILL_ZIP_CODE));\n\t\tif (rs.wasNull()){\n\t\t\tdto.setBillZipCodeNull(true);\n\t\t}\n\n\t\tdto.setBillState(rs.getString(COLUMN_BILL_STATE));\n\t\tdto.setBillCountry(rs.getString(COLUMN_BILL_COUNTRY));\n\t\tdto.setBillTelNum(rs.getString(COLUMN_BILL_TEL_NUM));\n\t\tdto.setBillFaxNum(rs.getString(COLUMN_BILL_FAX_NUM));\n\t\tdto.setIsEnable(rs.getString(COLUMN_IS_ENABLE));\n\t\tdto.setMessageBody(rs.getString(COLUMN_MESSAGE_BODY));\n\t\tdto.setEsrqmId(rs.getInt(COLUMN_ESRQM_ID));\n\t\tdto.setCreateDate(rs.getTimestamp(COLUMN_CREATE_DATE));\n\t\tdto.setLastModifiedBy(rs.getInt(COLUMN_LAST_MODIFIED_BY));\n\t\tdto.setLastModifiedOn(rs.getTimestamp(COLUMN_LAST_MODIFIED_ON));\n\t}", "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "private void toBeAddedEntities()\n\t{\n\t\tif( entitiesToAdd.isEmpty() )\n\t\t{\n\t\t\treturn ;\n\t\t}\n\n\t\tfinal List<Event<?>> events = MalletList.<Event<?>>newList() ;\n\n\t\tfinal int size = entitiesToAdd.size() ;\n\t\tfor( int i = 0; i < size; ++i )\n\t\t{\n\t\t\tfinal Entity entity = entitiesToAdd.get( i ) ;\n\t\t\thookEntity( eventSystem, events, entity ) ;\n\t\t\tentities.add( entity ) ;\n\t\t}\n\t\tentitiesToAdd.clear() ;\n\t\t\n\t\tif( size > capacity )\n\t\t{\n\t\t\t// If the size of entitiesToAdd exceeds our capacity then \n\t\t\t// we want to resize the array - it's easy for an \n\t\t\t// array to expand, it's much harder to shrink it!\n\t\t\tentitiesToAdd = MalletList.<Entity>newList( capacity ) ;\n\t\t}\n\t}", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "@Override\r\n\tpublic void update(BbsDto dto) {\n\t\t\r\n\t}", "@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}", "public boolean agregarDetPremio(PremioDto dto) {\n Connection con = null;\n\n boolean x = false;\n boolean y = false;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n con.setAutoCommit(false);\n x = this.registrarDetPremio(dto, con);\n y = this.actualizarCantidad(dto, con);\n con.commit();\n\n } catch (SQLException ex) {\n try {\n con.rollback();\n } catch (SQLException ex1) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex1);\n }\n System.out.print(ex.toString());\n\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorPremio.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return (x & y);\n }\n\n }", "E mapToEntity(D dto);", "CustDataNotesResponseDTO saveCustDataNotes(CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;", "public TipoPk insert(Tipo dto) throws TipoDaoException;", "protected abstract void processDTO();", "public void generateAttributes() throws SQLException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException{\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\n //Get the EmployeeDAO Bean\n BasicDataDAO dataDAO = null;\n BasicData newData = null;\n \n \n if (tableName.equals(\"test\")) {\n\t\t\tdataDAO = ctx.getBean(\"testDAO\", TestDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Test(0, 99, \"Hello\", \"sample\", new Date());\n\t\t}else if (tableName.equals(\"utilisateur\")) {\n\t\t\tdataDAO = ctx.getBean(\"utilisateurDAO\", UtilisateurDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Utilisateur(0, \"handa\", \"handa-upsud\", \"admin\", 30);\n\t\t}else if (tableName.equals(\"source\")) {\n\t\t\tdataDAO = ctx.getBean(\"sourceDAO\", SourceDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Source(0, \"http\", \"srouce1\", \"haut\", \"France\", \"vertical\", 10, \"test\");\n\t\t}else if (tableName.equals(\"theme\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeDAO\", ThemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Theme(0, \"testTheme\");\n\t\t}else if (tableName.equals(\"themeRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"themeRelationDAO\", ThemeRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new ThemeRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"version\")) {\n\t\t\tdataDAO = ctx.getBean(\"versionDAO\", VersionDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new Version(0, 1, \"url_serveur\", \"version\", new Date());\n\t\t}else if (tableName.equals(\"abonnementRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"abonnementRelationDAO\", AbonnementRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AbonnementRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"alerteRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"alerteRelationDAO\", AlerteRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new AlerteRelation(0, 1, 1, 15, new Date(), \"sujet\", \"type\", \"statut\", \"description\");\n\t\t}else if (tableName.equals(\"blacklistageSysteme\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageSystemeDAO\", BlacklistageSystemeDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageSysteme(0, 1);\n\t\t}else if (tableName.equals(\"blacklistageUtilisateurRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"blacklistageUtilisateurRelationDAO\", BlacklistageUtilisateurRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new BlacklistageUtilisateurRelation(0, 1, 1);\n\t\t}else if (tableName.equals(\"demandeModifRelation\")) {\n\t\t\tdataDAO = ctx.getBean(\"demandeModifRelationDAO\", DemandeModifRelationDAO.class);\n\t\t\t//insert\n\t\t\tnewData = new DemandeModifRelation(0, 1, 1, new Date(), \"type\", \"statut\", \"description\");\n\t\t}\n \n \n this.insert = dataDAO.insert(newData);\n //selecById\n BasicData t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.selectById = t.toString();\n\t\t}else {\n\t\t\tthis.selectById = \"rien\";\n\t\t}\n //update\n this.update = dataDAO.update(t);\n t = dataDAO.selectById(this.insert);\n if (t!=null) {\n\t\t\tthis.resultatUpdate = t.toString();\n\t\t}else {\n\t\t\tthis.resultatUpdate = \"rien\";\n\t\t}\n //selectAll\n ArrayList<? extends BasicData> alTest = dataDAO.selectAll();\n this.selectAll = alTest.size();\n if (alTest.size()==0) {\n \tthis.ligne1 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne1 = alTest.get(0).toString();\n\t\t}\n //selectWhere\n String condition = \"id > 1\";\n this.condition = condition;\n ArrayList<? extends BasicData> alTest1 = dataDAO.selectWhere(condition);\n this.selectWhere = alTest1.size();\n if (alTest1.size()==0) {\n \tthis.ligne11 = \"rien\";\n\t\t}else {\n\t\t\tthis.ligne11 = alTest1.get(0).toString();\n\t\t}\n //deleteById\n this.deleteById = 99;\n //this.deleteById = dataDAO.deleteById(insert);\n }", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "@Override\n\tpublic boolean addingFlights(FilghtDetails flightDetails) {\n\t\tfor (FilghtDetails addFlight : Repository.FLIGHT_DETAILS ) {\n\t\t\tif (addFlight.getFlightId() == flightDetails.getFlightId()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tRepository.FLIGHT_DETAILS .add(flightDetails);\n\t\treturn true;\n\t}", "@Test\n @Transactional\n void createCommonTableFieldWithExistingId() throws Exception {\n commonTableField.setId(1L);\n CommonTableFieldDTO commonTableFieldDTO = commonTableFieldMapper.toDto(commonTableField);\n\n int databaseSizeBeforeCreate = commonTableFieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCommonTableFieldMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(commonTableFieldDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CommonTableField in the database\n List<CommonTableField> commonTableFieldList = commonTableFieldRepository.findAll();\n assertThat(commonTableFieldList).hasSize(databaseSizeBeforeCreate);\n }", "public T caseEntityAdded(EntityAdded object) {\n\t\treturn null;\n\t}", "public abstract T convertToEntity(D dto);", "@Rollback(false)\r\n @Test\r\n public void testEntityMerge_Insert()\r\n {\n PersonDAO person = personFactory.blank();\r\n //Populate\r\n person.setName(\"New Person\");//a NON EXISTING person!\r\n //Add an EXISTING parent person\r\n PersonDAO parent = personFactory.blank();\r\n parent.setId(5);\r\n person.setParent(parent);\r\n\r\n //persist\r\n personFactory.merge(person);\r\n System.out.println(\"Person:\"+person);\r\n\r\n newId = person.getId();\r\n\r\n //-------------------------------------------------------------------------------------\r\n\r\n //dissect\r\n GenericDaoProxy<PersonDAO> dao = GenericDaoProxy.getDaoFromProxiedEntity(person);\r\n\r\n assertThat(dao.getCommonName(), is(\"person\"));\r\n assertThat(person.__identity(), is(dao.getIdentity()));\r\n\r\n //verify that modified fields are detected correctly and not cleared before transaction commit\r\n Set<String> modifiedFields = dao.getModifiedFields();\r\n assertThat(modifiedFields.size(),is(2));\r\n assertThat(modifiedFields.contains(\"name\"),is(true));\r\n assertThat(modifiedFields.contains(\"parent\"),is(true));\r\n\r\n assertThat(person.__revision(), is(-1L));//the default value (not yet updated to the new value (1))\r\n assertThat(dao.getData().get(\"__revision$new\"), is(0L));//verify the new entity revision is 0 (after merge)\r\n\r\n //verify raw data\r\n assertThat(dao.getData().get(\"name\"), is(\"New Person\"));\r\n assertThat(dao.getData().get(\"id$new\"), is(newId));\r\n }", "@Override\n @Transactional\n public HotelResponseDTO createHotel(AddHotelRequestDTO addHotelRequest) {\n Hotel hotel = new Hotel();\n String generatedHotelId = CommonUtil.getGeneratedId();\n hotel.setHotelId(generatedHotelId);\n hotel.setName(addHotelRequest.getName());\n hotel.setDescription(addHotelRequest.getDescription());\n hotel.setLocation(addHotelRequest.getLocation());\n hotel.setDefaultCheckInTime(addHotelRequest.getDefaultCheckInTime());\n hotel.setDefaultCheckOutTime(addHotelRequest.getDefaultCheckOutTime());\n if (addHotelRequest.getFacilities() != null) {\n hotel.setFacilities(String.join(\",\", addHotelRequest.getFacilities()));\n }\n hotel.setDeleted(false);\n Date createdDate = new Date();\n hotel.setCreatedDate(createdDate);\n hotel.setLastModifiedDate(createdDate);\n hotelRepository.save(hotel);\n\n List<AddRoomRequestDTO> roomRequests = addHotelRequest.getRooms();\n if (roomRequests != null && roomRequests.size() > 0) {\n List<Room> rooms = roomRequests.stream().map(roomRequest -> {\n Room room = new Room();\n String generatedRoomId = CommonUtil.getGeneratedId();\n room.setRoomId(generatedRoomId);\n RoomType roomType = RoomType.fromCode(roomRequest.getRoomType());\n room.setRoomType(roomType);\n BedType bedType = BedType.fromCode(roomRequest.getBedType());\n room.setBedType(bedType);\n room.setNumberOfAdults(roomRequest.getNumberOfAdults());\n room.setNumberOfChildren(roomRequest.getNumberOfChildren());\n room.setBasicFare(roomRequest.getBasicFare());\n room.setTaxPercentage(roomRequest.getTaxPercentage());\n if (roomRequest.getFacilities() != null) {\n room.setFacilities(String.join(\",\", roomRequest.getFacilities()));\n }\n room.setCreatedDate(createdDate);\n room.setLastModifiedDate(createdDate);\n room.setDeleted(false);\n room.setHotel(hotel);\n return room;\n }).collect(Collectors.toList());\n roomRepository.saveAll(rooms);\n hotel.setRooms(rooms);\n }\n logger.info(\"Created hotel information successfully | hotelId:{}\", generatedHotelId);\n return makeHotelResponseDTO(hotel);\n }", "@PostConstruct\n void insertData() {\n\t\ttry {\n\t\t\tinsertDataFromJsonToDb.insertIntoDatabase();\n\t\t\tlogger.info(\"The database is filled by data\");\n\n\t\t} catch (Throwable throwable) {\n\t\t\tthrowable.printStackTrace();\n\t\t}\n\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\r\n\tpublic int mapInsert(LPMapdataDto dto) {\n\t\treturn sqlSession.insert(\"days.map_Insert\", dto);\r\n\t}", "protected ProcessAddPerson(AddPersonRequestMongoRepository addPersonRequestMongoRepository) {\n this.addPersonRequestMongoRepository = addPersonRequestMongoRepository;\n }", "public void attach(final Object self)\n throws IllegalArgumentException, IllegalAccessException, NoSuchMethodException,\n InvocationTargetException {\n for (Class<?> currentClass = self.getClass(); currentClass != Object.class; ) {\n if (Proxy.class.isAssignableFrom(currentClass)) {\n currentClass = currentClass.getSuperclass();\n continue;\n }\n for (Field f : currentClass.getDeclaredFields()) {\n final String fieldName = f.getName();\n final Class<?> declaringClass = f.getDeclaringClass();\n\n if (OObjectEntitySerializer.isTransientField(declaringClass, fieldName)\n || OObjectEntitySerializer.isVersionField(declaringClass, fieldName)\n || OObjectEntitySerializer.isIdField(declaringClass, fieldName)) continue;\n\n Object value = OObjectEntitySerializer.getFieldValue(f, self);\n value = setValue(self, fieldName, value);\n OObjectEntitySerializer.setFieldValue(f, self, value);\n }\n currentClass = currentClass.getSuperclass();\n\n if (currentClass == null || currentClass.equals(ODocument.class))\n // POJO EXTENDS ODOCUMENT: SPECIAL CASE: AVOID TO CONSIDER\n // ODOCUMENT FIELDS\n currentClass = Object.class;\n }\n }", "private Customer addCustomerDetails(CustomerRegRequestDto requestDto) {\n\t\tString customerId = null;\n\n\t\tOptional<Utility> details = utilityRepo.findByUtilityId(requestDto.getCustomerUtilityId());\n\t\tif (!details.isPresent())\n\t\t\tthrow new NoDataFoundException(CustomerConstants.UTILITY_NOT_FOUND);\n\n\t\tOptional<Customer> getCustomer = customerRepo.findFirstByOrderByModifiedDateDesc();\n\t\tif (getCustomer.isPresent()) {\n\t\t\tif (getCustomer.get().getCustomerId().charAt(0) == CustomerConstants.CUSTOMER_STARTING)\n\t\t\t\tcustomerId = Helper.generateNextCustomerId(getCustomer.get().getCustomerId(),\n\t\t\t\t\t\tdetails.get().getUtilityName());\n\t\t\telse\n\t\t\t\tcustomerId = Helper.generateUniqueCustomerId(details.get().getUtilityName());\n\n\t\t} else {\n\t\t\tcustomerId = Helper.generateUniqueCustomerId(details.get().getUtilityName());\n\n\t\t}\n\t\tmodelMapper.getConfiguration().setAmbiguityIgnored(true);\n\t\tCustomer addNewCustomer = modelMapper.map(requestDto, Customer.class);\n\t\taddNewCustomer.setCustomerId(customerId);\n\t\taddNewCustomer.setActive(true);\n\t\taddNewCustomer.setCreatedBy(requestDto.getUserId());\n\t\taddNewCustomer.setCreatedDate(new Date());\n\t\taddNewCustomer.setModifiedBy(requestDto.getUserId());\n\t\taddNewCustomer.setModifiedDate(new Date());\n\t\treturn customerRepo.save(addNewCustomer);\n\t}", "@Override\n\tpublic Book update(Book dto) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ObraRecursoPersonaDTO insertObraRecursoPersona(\n\t\t\tObraRecursoPersonaDTO dto) {\n\t\treturn null;\n\t}", "public void testInsertDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tResultSet resultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tresultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\tadvanceTissueSpecimenA = entityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"869\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"12\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenA, dataValue);\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(2, resultSet.getInt(1));\r\n\r\n\t\t\tresultSet = executeQuery(\"select count(*) from \"\r\n\t\t\t\t\t+ advanceTissueSpecimenA.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(1));\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "private void performCreates()\n {\n // Create entities. We have to loop possibly many times to create the entities\n // because we have to set the FKs. It's\n // possible that the source for a FK is a FK from yet another EI. We don't\n // want to copy a FK until we know that the source for a FK has been\n // properly set. We also want to make sure we set the FK's for the EIs that\n // have been excluded/deleted before we copy FKs for the included/created.\n int debugCnt = 0; // We'll keep a counter in case we get an infinite loop.\n\n // creatingEntities will be true for as long as we think we need to create more entities.\n boolean creatingEntities = true;\n while ( creatingEntities )\n {\n // We'll hope that we're done creating entities after this iteration. If we\n // find we need to create more then we'll turn it back on.\n creatingEntities = false;\n\n if ( debugCnt++ > 100 )\n throw new ZeidonException(\"Internal error: too many times creating entities.\");\n\n for ( ViewImpl view : viewList )\n {\n ObjectInstance oi = view.getObjectInstance();\n\n for ( final EntityInstanceImpl ei : oi.getEntities() )\n {\n if ( ! requiresCreate( ei ) )\n continue;\n\n assert ! ei.getEntityDef().isDerivedPath();\n\n if ( ! createInstance( view, ei ) )\n creatingEntities = true; // We weren't able to create ei. Try again later.\n }\n }\n } // while creatingEntities...\n }", "@Before(stages = LifecycleStage.BindingAndValidation, on = {\"edit\", \"save\"})\r\n public void loadExcursionFromDatabase() {\r\n String ids = getContext().getRequest().getParameter(\"excursion.id\");\r\n if (ids == null) return;\r\n excursion = facade.getExcursion(Long.parseLong(ids));\r\n date = excursion.getExcursionDate().toString(DateTimeFormat.forPattern(pattern));\r\n trips = facade.getAllTrips();\r\n tripId = excursion.getTrip().getId();\r\n }", "@Override\r\n\tpublic String insertcomics(ComicDto comicsdto) {\n\t\t\r\n\r\n\t\tComics comics = changeDtoTOEntity(comicsdto);\r\n\r\n\t\tcomics.getSuperherolist().forEach(hero -> hero.setComics(comics));\r\n\r\n\t\tcomics.getSuperherolist().forEach(hero -> hero.getPowerlist().forEach(power -> power.setSuperhero(hero)));\r\nSystem.out.println(comicsrepository.varComic());\r\n\t\tcomicsrepository.saveAndFlush(comics);\r\n\t\treturn \"Comic inserted successfully\";\r\n\t}", "@Override\n\tpublic AuditDetail update(AuditDetail domainObject) {\n\t\treturn null;\n\t}", "public void testInsertDataForInheritanceParentNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\t//step 2\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\t//dataValue.put(barcode, \"123456\");\r\n\t\t\t//dataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\t//step 3\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\t//step 4\r\n\t\t\tResultSet resultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tresultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "@POST\n @JWTTokenNeeded\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n public Response add(EscenarioDTO dto) {\n logger.log(Level.INFO, \"entidad:{0}\", dto);\n \n try {\n \tConciliacion entidadPadreJPA;\n Escenario entidadJPA = dto.toEntity();\n entidadPadreJPA = padreDAO.find(dto.getIdConciliacion());\n if (entidadPadreJPA != null) {\n managerDAO.create(entidadJPA);\n entidadJPA.setConciliacion(entidadPadreJPA);\n managerDAO.edit(entidadJPA);\n entidadPadreJPA.addEscenario(entidadJPA);\n padreDAO.edit(entidadPadreJPA);\n }\n LogAuditoria logAud = new LogAuditoria(this.modulo, Constantes.Acciones.AGREGAR.name(), Date.from(Instant.now()), dto.getUsername(), entidadJPA.toString());\n logAuditoriaDAO.create(logAud);\n\n \tResponseWrapper wraper = new ResponseWrapper(true,I18N.getMessage(\"escenario.save\", entidadJPA.getNombre()), entidadJPA.toDTO());\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }catch (Exception e) {\n \tif(e.getCause() != null && (e.getCause() instanceof DataAlreadyExistException || e.getCause() instanceof DataNotFoundException)) {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, e.getCause().getMessage(), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}else {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, I18N.getMessage(\"general.readerror\"), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}\n }\n \n }", "private void setAdditions(DataRelationModelDto dto, List<DataRelationModelAdditionDto> additionDtos) {\n\t\tList<String> additionalDpdNameList = new ArrayList<>();\n\t\tfor (DataRelationModelAdditionDto additionDto : additionDtos) {\n\t\t\tadditionalDpdNameList.add(additionDto.getAdditionalDpd().getDpdName());\n\t\t}\n\t\tdto.setAdditionalDpdNameList(additionalDpdNameList);\n\n\t}", "@Override\n\tpublic UserDto registerClerk(UserDto userDto) {\n\t\tUsers employee = this.covertInputDtoToEntity(userDto);\n\t\t// save entity in DB : returns the copy of newly added record back\n\t\tUsers newEmployee = this.usersRepository.save(employee);\n\t\t// convert entity into output dto\n\t\tUserDto employeeOutputDto = this.convertEntityToUserOutputDto(newEmployee);\n\t\treturn employeeOutputDto;\n\n\t}", "@Override public Notification addNotification(NotificationDto notificationDto) {\n if (notificationRepo.existsByCurrencyAndFrequencyAndSendingValueAndUserId(\n notificationDto.getCurrencyEnum(), notificationDto.getFrequency(),\n notificationDto.getCurrencyVal(), notificationDto.getUserId()\n )) {\n throw new EntityDuplicateException(\"Same notification already exists in db\");\n }\n\n var newNotification = insertNotificationToDb(notificationDto);\n\n jobManager.scheduleJob(newNotification);\n\n return newNotification;\n }", "void saveAdditionalInformation(UserDTO userDTO);", "private void insertData() {\n \n for (int i = 0; i < 4; i++) {\n EmpleadoEntity entity = factory.manufacturePojo(EmpleadoEntity.class);\n entity.setSolicitudes(new ArrayList<>());\n entity.setPropuestas(new ArrayList<>());\n entity.setInvitaciones(new ArrayList<>());\n entity.setTipoEmpleado(TipoEmpleado.TRADUCTOR);\n if(i == 0)\n {\n SolicitudEntity solicitud = factory.manufacturePojo(SolicitudEntity.class);\n em.persist(solicitud);\n entity.getSolicitudes().add(solicitud);\n solicitud.setEmpleado(entity);\n solicitudesData.add(solicitud);\n }\n else if (i == 1)\n {\n InvitacionEntity invitacion = factory.manufacturePojo(InvitacionEntity.class);\n em.persist(invitacion);\n entity.getInvitaciones().add(invitacion); \n invitacion.setEmpleado(entity);\n invitacionesData.add(invitacion);\n }\n else if (i == 2){\n PropuestaEntity propuesta = factory.manufacturePojo(PropuestaEntity.class);\n em.persist(propuesta);\n entity.getPropuestas().add(propuesta);\n propuesta.setEmpleado(entity);\n propuestasData.add(propuesta);\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "private void addCreateUpdateAttributes(Context _context) throws EFapsException {\r\n Iterator iter = getType().getAttributes().entrySet().iterator();\r\n while (iter.hasNext()) {\r\n Map.Entry entry = (Map.Entry)iter.next();\r\n Attribute attr = (Attribute)entry.getValue();\r\n AttributeType attrType = attr.getAttributeType();\r\n if (attrType.isCreateUpdate()) {\r\n add(_context, attr, null);\r\n }\r\n }\r\n }", "public boolean add(MobileDTO dto) {\n\t\tSystem.out.println(\"inside add\");\n\t\tSystem.out.println(index);\n\t\tSystem.out.println(dto);\n\t\tif (dto!=null){\n\t\t\tthis.dto[index++]=dto;\n\t\t\tSystem.out.println(\"data is added\");\n\t\t\treturn true;\n\t\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"data is not added \");\n\t\t\treturn false;\n\t}\n\t}", "@Override\r\n @Transactional\r\n public HarvestResponseDto createNewHarvest(HarvestRequestDto harvestRequestDto) {\r\n Harvest save = harvestRepository.save(harvestMapper.mapToDomain(harvestRequestDto));\r\n return harvestMapper.mapToDto(save);\r\n }", "Long saveOrUpdate(D dto);", "@Test\n @Transactional\n void createIndContactCharWithExistingId() throws Exception {\n indContactChar.setId(1L);\n IndContactCharDTO indContactCharDTO = indContactCharMapper.toDto(indContactChar);\n\n int databaseSizeBeforeCreate = indContactCharRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restIndContactCharMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(indContactCharDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the IndContactChar in the database\n List<IndContactChar> indContactCharList = indContactCharRepository.findAll();\n assertThat(indContactCharList).hasSize(databaseSizeBeforeCreate);\n }", "@Override\n\tpublic void insert(UsersDto dto) {\n\t\tsession.insert(\"users.insert\", dto);\n\t}" ]
[ "0.64047927", "0.59261423", "0.5898238", "0.5781408", "0.56603366", "0.5616186", "0.55672956", "0.5560163", "0.54404247", "0.53801453", "0.53734964", "0.53569", "0.53126687", "0.5310376", "0.5272175", "0.52685744", "0.5264223", "0.5250128", "0.5234311", "0.5224197", "0.5182953", "0.5182075", "0.51667017", "0.5164526", "0.513851", "0.5127517", "0.51251996", "0.51066023", "0.50978667", "0.50834274", "0.5078215", "0.5061958", "0.5052061", "0.5029756", "0.5016293", "0.50068665", "0.50054145", "0.50004524", "0.49843603", "0.49840075", "0.498092", "0.4973461", "0.49622473", "0.49598694", "0.4957405", "0.49212483", "0.49038962", "0.4903821", "0.48922095", "0.48854628", "0.487263", "0.48653528", "0.48639917", "0.48632562", "0.4858567", "0.48527068", "0.48451394", "0.48428738", "0.48419896", "0.48384285", "0.48360312", "0.48344502", "0.48224688", "0.48204398", "0.48130667", "0.48042753", "0.48041576", "0.4802767", "0.47986338", "0.47938016", "0.47922817", "0.47892246", "0.47715437", "0.47712585", "0.47710213", "0.47663885", "0.47612235", "0.47592336", "0.475631", "0.47539625", "0.47535452", "0.47497773", "0.4744979", "0.47340494", "0.47292843", "0.47287974", "0.4726253", "0.47246274", "0.47221172", "0.47216442", "0.47159612", "0.47122675", "0.47054324", "0.46919376", "0.46898344", "0.46883297", "0.46839324", "0.46824142", "0.46821773", "0.4677683" ]
0.66433555
0
Checks tags and notes sources to see if there are any changes to be made.
private void saveChildEntities( final D dto, final D returnDTO ) { /* * Save any tags contained in the dto */ if ( dto instanceof TagsContainer ) { this.saveStockTags( dto, returnDTO ); } /* * Check for new sources */ if ( dto instanceof NotesSourceIdContainer ) { this.stockNoteSourceService .checkForNewSource( (NotesSourceIdContainer)dto ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to validation\n\t\tmode = VALIDATE;\n\t\t// Traverses the\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Report the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getAllUnvisited();\n\t\treportMissing(tags);\n\t}", "boolean hasSource();", "boolean isSource();", "public static void status() {\n Set branchSet = commitPointers.readBranches().keySet();\n ArrayList<String> sortedBranches = (ArrayList) branchSet.stream().sorted().collect(Collectors.toList());\n String currBranch = commitPointers.readHeadCommit()[0];\n System.out.println(\"=== Branches ===\");\n for (String branch: sortedBranches) {\n if (currBranch.equals(branch)) {\n System.out.println(\"*\" + currBranch);\n } else {\n System.out.println(branch);\n }\n }\n stagingArea = Utils.readObject(STAGING_FILE, HashMap.class);\n\n ArrayList<String> sortedStaged = (ArrayList) stagingArea.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println();\n System.out.println(\"=== Staged Files ===\");\n for (String staged : sortedStaged) {\n System.out.println(staged);\n }\n\n System.out.println();\n System.out.println(\"=== Removed Files ===\");\n stagingRemoveArea = Utils.readObject(STAGING_REMOVE_FILE, HashMap.class);\n ArrayList<String> sortedRemoved = (ArrayList) stagingRemoveArea.keySet().stream().sorted().collect(Collectors.toList());\n for (String removed : sortedRemoved) {\n System.out.println(removed);\n }\n System.out.println();\n\n System.out.println(\"=== Modifications Not Staged For Commit ===\");\n\n Commit Head = Utils.readObject(Utils.join(Commit.COMMIT_FOLDER, commitPointers.readHeadCommit()[1] + \".txt\"), Commit.class);\n //File blobs contains a SHAID + file name\n\n HashMap<String, String> modUntracked = new HashMap<>();\n\n //iterates through head Blobs\n for (HashMap.Entry<String, String> headfileBlob : Head.fileBlobs.entrySet()) {\n\n File cwdBFile = Utils.join(CWD, headfileBlob.getKey());\n\n if (!cwdBFile.exists() && !stagingRemoveArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(deleted)\");\n }\n else if (cwdBFile.exists()){\n\n Blob tempBlob = new Blob(headfileBlob.getKey(), cwdBFile);\n String tempBlobId = Utils.sha1(Utils.serialize(tempBlob));\n\n\n if(!tempBlobId.equals(headfileBlob.getValue())) {\n //if not in staging area\n if (!stagingArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n //TODO: IS THIS PART NECCESARY?\n else if (stagingArea.containsKey(headfileBlob.getKey()) && !stagingArea.get(headfileBlob.getKey()).equals(headfileBlob.getValue())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n }\n }\n }\n\n ArrayList<String> sortedModNames = (ArrayList) modUntracked.keySet().stream().sorted().collect(Collectors.toList());\n for (String modFileName : sortedModNames){\n System.out.println(modFileName + \" \" + modUntracked.get(modFileName));\n }\n System.out.println();\n\n\n\n ArrayList<String> untracked = new ArrayList<>();\n System.out.println(\"=== Untracked Files ===\");\n for (String cwdfile : CWD.list()) {\n if(!cwdfile.equals(\".gitlet\")) {\n File currfile = Utils.join(CWD, cwdfile);\n if (currfile.exists() && !Head.fileBlobs.containsKey(cwdfile)) {\n untracked.add(cwdfile);\n }\n }\n }\n\n untracked = (ArrayList) untracked.stream().sorted().collect(Collectors.toList());\n\n for (String untrackedName : untracked){\n System.out.println(untrackedName);\n }\n }", "public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}", "private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean canChangeDocuments() {\n\n // If the text is modified, give the user a chance to\n // save it. Otherwise return true.\n\n if (fDocument.isModified()) {\n byte save = askSave(this, getTitle());\n if (save == YES) {\n return doSave();\n }\n else {\n return save == NO;\n }\n }\n else {\n return true;\n }\n }", "public boolean needToUpdate(File source, File cache) {\n\t\tif(source.lastModified() < cache.lastModified() ){\n\t\t\treturn false; //dosen't need to update\n\t\t}\n\t\treturn true; // need to update\n\t}", "public boolean isSource();", "static boolean sourceCoveredByProjectViewTargets(LocationContext context) {\n Collection<TargetKey> targetsBuildingSource =\n SourceToTargetMap.getInstance(context.project)\n .getRulesForSourceFile(new File(context.file.getPath()));\n return !targetsBuildingSource.isEmpty()\n && sourceInProjectTargets(context, targetsBuildingSource);\n }", "private void cleanupGitRemoteTags() {\n logger.info(\"Determine local and remote SCM-tags for SCM-repo\");\n logger.info(MOJO_LINE_BREAK);\n getRepositoryProvider().pull();\n List<Ref> refs = getRepositoryProvider().getLocalTags();\n if (!refs.isEmpty()) {\n boolean found = false;\n for (Ref ref : refs) {\n if (ref.getName().contains(preparedReleaseTag)) {\n found = true;\n logger.info(\n format(\"Delete local SCM-tag : {}\", ref.getName().substring(10)));\n getRepositoryProvider().deleteTag(ref.getName());\n logger.info(\n format(\"Delete remote SCM-tag : {}\", ref.getName().substring(10)));\n getRepositoryProvider().pushTag();\n }\n }\n if (!found) {\n logger.info(\"No local or remote prepared SCM-tags found\");\n }\n } else {\n logger.info(\"No local or remote prepared SCM-tags found\");\n }\n\n getRepositoryProvider().closeRepository();\n logger.info(MOJO_LINE_BREAK);\n }", "private void verifyChanges() {\n System.out.println(\"Verify changes\"); \n }", "private void deleteChanges(JTreeTable source) {\r\n\t\t\r\n\t\tList changes = null;\r\n\t\tboolean selectedOntChangeTT = true;\r\n\t\tif (source == ontChangeTT) {\r\n\t\t\tchanges = new ArrayList(ontChanges);\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tselectedOntChangeTT = false;\r\n\t\t\tchanges = new ArrayList(repChanges);\r\n\t\t}\r\n\t\t\r\n\t\t// get selected changes in source\r\n\t\tif (source.getTree().getSelectionPath()==null) return;\r\n\t\tTreePath[] paths = source.getTree().getSelectionPaths();\r\n\t\tfor (int i=0; i<paths.length; i++) {\r\n\t\t\tTreePath path = paths[i];\r\n\t\t\tTreeTableNode selNode = (TreeTableNode) path.getLastPathComponent();\r\n\t\t\tSwoopChange swc = selNode.swoopChange;\r\n\t\t\tchanges.remove(swc);\r\n\t\t}\r\n\t\t\r\n\t\t// refresh UI of source after removing changes\r\n\t\tif (selectedOntChangeTT) this.refreshOntTreeTable();\r\n\t\telse {\r\n\t\t\t// add (new) repChanges to newCommit node directly\r\n\t\t\tnewCommitNode.children = new Vector();\r\n\t\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t\t}\r\n\t\t\tthis.refreshRepTreeTable(false);\r\n\t\t}\r\n\t}", "private void validateSource(SourcePointer.FileSource src) {\n File f = src.path.toFile();\n if (!f.exists() || !f.canRead()) {\n throw new SolrException(\n ErrorCode.BAD_REQUEST,\n String.format(\n Locale.US, \"File at %s either does not exist or cannot be read.\", src.path));\n }\n }", "public void checkUntracked(Commit givenCommit) {\n for (String fileName: givenCommit.getFile().keySet()) {\n File fileInCWD = new File(Main.CWD, fileName);\n if (fileInCWD.exists()) {\n String contentInCWD = Utils.readContentsAsString(fileInCWD);\n Blob curBlob = getHeadCommit().getFile().get(fileName);\n if (curBlob == null) {\n if (!contentInCWD.equals(givenCommit.getFile()\n .get(fileName))) {\n System.out.println(\"There is an \"\n + \"untracked file in the way;\"\n + \" delete it, or add and commit it first.\");\n System.exit(0);\n }\n } else if (curBlob != null) {\n String contentInCurr = curBlob.getContent();\n if (!contentInCurr.equals(contentInCWD)\n && !contentInCWD.equals(givenCommit.getFile()\n .get(fileName))) {\n System.out.println(\"There is \"\n + \"an untracked file in the way; \"\n + \"delete it, or add and commit it first.\");\n System.exit(0);\n }\n }\n }\n }\n }", "public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }", "void handleChanged(Collection<AGStoredFile> existingFiles, Collection<AGStoredFile> changedFiles);", "public void checkIfFilesHaveChanged(NSNotification n) {\n int checkPeriod = checkFilesPeriod();\n \n if (!developmentMode && (checkPeriod == 0 || System.currentTimeMillis() - lastCheckMillis < 1000 * checkPeriod)) {\n return;\n }\n \n lastCheckMillis = System.currentTimeMillis();\n \n log.debug(\"Checking if files have changed\");\n for (Enumeration e = _lastModifiedByFilePath.keyEnumerator(); e.hasMoreElements();) {\n File file = new File((String)e.nextElement());\n if (file.exists() && hasFileChanged(file)) {\n fileHasChanged(file);\n }\n }\n }", "boolean isOssModified();", "public boolean hasChanges();", "protected void checkSource(Reference ref, ReferenceParser parser)\n throws EntityPermissionException, EntityNotDefinedException, EntityAccessOverloadException, EntityCopyrightException {\n getReportsManager().checkReportAccess(parser.getId(), parser.getRef());\n }", "public boolean hasChangeSetComputed() {\n File changelogFile = new File(getRootDir(), \"changelog.xml\");\n return changelogFile.exists();\n }", "private boolean checkForNewData ()\n\t{\t\t\n\t\tLOG.info(\"Checking trigger source '\" + config.getTriggerSource() + \".\" + \n\t\t\t\tconfig.getTriggerTable() + \".\" + config.getTriggerColumn() + \"'\");\n\t\t\n\t\t// get value from source\n\t\tObject newValue = null;\n\t\tint colType = -1;\n\t\ttry \n\t\t{\n\t\t\tSourceDatabase sourceDatabase = CopyToolConnectionManager.getInstance().getSourceDatabase(config.getTriggerSource());\n\t\t\t\n\t\t\tStatement selectStmt =\n\t\t\t\t\tCopyToolConnectionManager.getInstance().getSourceConnection(config.getTriggerSource()).createStatement();\n\t\t\t\n\t\t\tString triggerDate = sourceDatabase.getDatabaseType().getSelectTriggerColumnQuery(config.getTriggerTable(), config.getTriggerColumn());\n\t\t\tResultSet res = selectStmt.executeQuery(triggerDate);\n\t\t\t\n\t\t\t// no rows in table? then we cannot determine any indication\n\t\t\t// so we return indication of new data\n\t\t\tif (!res.next()) return true;\t\t\t\n\t\t\t\n\t\t\tResultSetMetaData info = res.getMetaData();\n\t\t\t\n\t\t\tcolType = info.getColumnType(1);\n\t\t\t\t\t\t\n\t\t\tif (colType == Types.BIGINT || colType == Types.INTEGER)\n\t\t\t{\n\t\t\t\tcolType = Types.BIGINT;\n\t\t\t\tnewValue = res.getLong(1);\n\t\t\t}\n\t\t\telse if (colType == Types.DATE)\n\t\t\t{\n\t\t\t\tnewValue = res.getDate(1);\n\t\t\t}\n\t\t\telse if (colType == Types.TIMESTAMP)\n\t\t\t{\n\t\t\t\tnewValue = res.getTimestamp(1);\n\t\t\t}\n\t\t\t\n\t\t\tres.close();\n\t\t\tselectStmt.close();\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tLOG.warn(\"SQLException when trying to access scheduling source\", e);\n\t\t\t\n\t\t\t// return indication of new data since we don't know for sure\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (newValue == null)\n\t\t{\n\t\t\t// return indication of new data since we don't know for sure\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// load existing value from disk\n\t\tFile jobFile = getLastRunFile();\n\t\t\n\t\tBufferedReader br = null;\n\t\tString oldValue = null;\n\t\tString oldColType = null;\n\t\tString oldConfigChecksum = null;\n\t\tif (jobFile.exists()) \n\t\t{\n\t\t\ttry {\n\t\t\t\tbr = new BufferedReader(new FileReader(jobFile));\n\t\t\t\toldValue = br.readLine();\n\t\t\t\toldColType = br.readLine();\n\t\t\t\toldConfigChecksum = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// ignore\n\t\t\t\tLOG.warn(\"Unable to read existing lastrun info\", e);\n\t\t\t} finally {\n\t\t try {\n\t\t \tif (br != null)\n\t\t \t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\n\t\t// set last run properties\n\t\tthis.lastRunValue = newValue;\n\t\tthis.lastRunColType = colType;\n\t \n\t if (StringUtils.isEmpty(oldValue) || StringUtils.isEmpty(oldColType) || StringUtils.isEmpty(oldConfigChecksum))\n\t {\n\t \t// return indication of new data since we don't know for sure\n\t\t\treturn true;\n\t }\n\t \n\t // check if we are dealing with the same type of data\n\t if (!oldColType.equals(String.valueOf(colType)))\n\t {\n\t \t// return indication of new data since we don't know for sure\n\t \treturn true;\n\t }\n\t \n\t // check if we are dealing with the same config\n\t if (!oldConfigChecksum.equals(config.getConfigChecksum()))\n\t {\n\t \t// return indication of new data since we don't know for sure\n\t \treturn true;\n\t }\n\t \n\t LOG.info(\"Stored last run value: \" + oldValue);\n\t LOG.info(\"Current last run value: \" + newValue);\n\t \n\t // check if there is newer data\n\t if (colType == Types.BIGINT)\n\t {\n\t \tLong oldNum = Long.valueOf(oldValue);\n\t \tLong newNum = (Long) newValue;\n\t \t\n\t \t// is new ID / long bigger than current?\n\t \t// then we have new data\n\t \tif (newNum > oldNum)\n\t \t\treturn true;\n\t }\n\t else if (colType == Types.DATE)\n\t {\n\t \tDate oldDate = Date.valueOf(oldValue);\n\t \tDate newDate = (Date) newValue;\n\t \t\n\t \t// is newer date after older date?\n\t \t// then we have new data\n\t \tif (newDate.after(oldDate))\n\t \t\treturn true;\n\t }\n\t else if (colType == Types.TIMESTAMP)\n\t {\n\t \tTimestamp oldTS = Timestamp.valueOf(oldValue);\n\t \tTimestamp newTS = (Timestamp) newValue;\n\t \t\n\t \t// is newer timestamp after older timestamp?\n\t \t// then we have new data\n\t \tif (newTS.after(oldTS))\n\t \t\treturn true;\n\t }\n\t\t\n\t // no new data\n\t\treturn false;\n\t}", "@Test\n\tpublic void testIsSourceNoNothingAddedOrRemoved() {\n\t\t// Setup\n\t\tString added = \"-\";\n\t\tString removed = \"-\";\n\t\tString file = \"dank.tt\";\n\t\tLine line = new Line(added, removed, file);\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"tt\");\n\n\t\t// Exercise\n\t\tboolean src = line.isSource(types);\n\n\t\t// Verify\n\t\tassertFalse(src);\n\t}", "private void checkForReload(@NotNull List<? extends VFileEvent> events) {\n LOG.debug(\"Checking received events for a possible reloading\");\n boolean toReload = false;\n for (VFileEvent event : events) {\n final VirtualFile file = event.getFile();\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Checking the file \" + file);\n }\n if (file != null && file.getName().endsWith(KAMELETS_FILE_SUFFIX)) {\n String canonicalPath = file.getCanonicalPath();\n if (canonicalPath == null || canonicalPath.contains(\"/\" + KAMELETS_DIR + \"/\")) {\n LOG.debug(\"An event on a potential Kamelet has been detected\");\n toReload = true;\n }\n }\n }\n if (toReload) {\n LOG.debug(\"At least one event on a Kamelet has been detected, the Kamelets will be reloaded\");\n this.kamelets = null;\n }\n }", "private void dialogChanged() {\n\t\tIResource container = ResourcesPlugin.getWorkspace().getRoot()\n\t\t\t\t.findMember(new Path(getContainerName().get(\"ProjectPath\")));\n\n\t\tif(!containerSourceText.getText().isEmpty() && !containerTargetText.getText().isEmpty())\n\t\t{\n\t\t\tokButton.setEnabled(true);\n\t\t}\n\n\t\tif (getContainerName().get(\"ProjectPath\").length() == 0) {\n\t\t\tupdateStatus(\"File container must be specified\");\n\t\t\treturn;\n\t\t}\n\t\tif (container == null\n\t\t\t\t|| (container.getType() & (IResource.PROJECT | IResource.FOLDER)) == 0) {\n\t\t\tupdateStatus(\"File container must exist\");\n\t\t\treturn;\n\t\t}\n\t\tif (!container.isAccessible()) {\n\t\t\tupdateStatus(\"Project must be writable\");\n\t\t\treturn;\n\t\t}\n\t\tupdateStatus(null);\n\t}", "private static void dataFiltering() {\n\t\tDataGenerationMngr dtgen = new DataGenerationMngr();\n\t\tdtgen.genenrateData();\n\n\t\t// Perform Java and Gradle code diff in between commit and save the diff\n\t\t// information in database\n\n\t}", "public void setSourceChanges(Map<Component, Class> sourceChanges)\n {\n this.sourceChanges = sourceChanges;\n }", "public void parseListSources(String source) {\r\n\t\t// Gets a scanner from the source\r\n\t\tInputStream in = new ByteArrayInputStream(source.getBytes());\r\n\t\t_assertedFacs = new HashSet<String>();\r\n\t\tScanner scan = new Scanner(in);\r\n\t\tString file = null;\r\n\t\tString line = null;\r\n\t\tboolean isFile = false;\r\n\t\tboolean isAsserted = false;\r\n\t\tint initLine = -1;\r\n\t\tint endLine = -1;\r\n\t\t\r\n\t\t// Puts the wait cursor\r\n\t\tAcideDataViewReplaceWindow.getInstance().setCursor(\r\n\t\t\t\tCursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\t\t\t\t\t\r\n\t\t// reads the line and chechks that is not a end nor an error\r\n\t\twhile (scan.hasNextLine()\r\n\t\t\t\t&& !(line = scan.nextLine()).replaceAll(\" \", \"\").equals(\r\n\t\t\t\t\t\t\"$error\") && !line.replaceAll(\" \", \"\").equals(\"$eot\")) {\r\n\t\t\t// checks if the next lines corresponds to a file\r\n\t\t\tif (line.replaceAll(\" \", \"\").equals(\"$file\")) {\r\n\t\t\t\tisAsserted = false;\r\n\t\t\t\tisFile = true;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t// checks if the next lines corresponds to an asserted predicate\r\n\t\t\tif (line.replaceAll(\" \", \"\").equals(\"$asserted\")) {\r\n\t\t\t\tisAsserted = true;\r\n\t\t\t\tisFile = false;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (isAsserted) {\r\n\t\t\t\t_assertedFacs.add(this._query);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (isFile) {\r\n\t\t\t\t// checks if the line is a number of line or the file path\r\n\t\t\t\tif (line.replaceAll(\" \", \"\").matches(\"(\\\\d)+\")) {\r\n\t\t\t\t\t// gets the initial and the end line and adds the lines to\r\n\t\t\t\t\t// the highlight\r\n\t\t\t\t\tif (initLine == -1)\r\n\t\t\t\t\t\tinitLine = Integer.parseInt(line.replaceAll(\" \", \"\"));\r\n\t\t\t\t\telse if (endLine == -1) {\r\n\t\t\t\t\t\tendLine = Integer.parseInt(line.replaceAll(\" \", \"\"));\r\n\t\t\t\t\t\tfor (int i = initLine - 1; i < endLine; i++)\r\n\t\t\t\t\t\t\taddLine(file, i);\r\n\t\t\t\t\t\tinitLine = -1;\r\n\t\t\t\t\t\tendLine = -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfile = line.substring(line.indexOf(\"'\") + 1,\r\n\t\t\t\t\t\t\tline.lastIndexOf(\"'\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Puts the default cursor\r\n\t\tAcideDataViewReplaceWindow.getInstance().setCursor(\r\n\t\t\tCursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t\t\t\r\n\t\tscan.close();\r\n\t}", "private boolean testChanges(boolean testRepository) {\r\n\t\t\r\n\t\tif (testRepository) {\r\n\t\t\t\r\n\t\t\tString status = \"Status: [ACTION - Testing Repository Changes]...\";\r\n\t\t\t\r\n\t\t\t// test changes in repository for clashes etc.\r\n\t\t\tstatusBar.setText(status);\r\n\t\t\tboolean testSuccess = true;\r\n\t\t\tint failCount = 0;\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t// do an update first to make sure rep-side changes are all there\r\n\t\t\t\tboolean updateSuccess = this.updateRepChanges(false);\r\n\t\t\t\t\r\n\t\t\t\tif (!updateSuccess) {\r\n\t\t\t\t\tstatusBar.setText(status+\"Update FAILED\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// load baseOntology using URI\r\n\t\t\t\tstatusBar.setText(status+\"Loading Base Ontology\");\r\n\t\t\t\tOWLOntology baseOntology = swoopModel.loadOntology(baseOntologyURI);\r\n\t\t\t\tif (baseOntology == null) {\r\n\t\t\t\t\t// there is no base ontology, changes start from scratch\r\n\t\t\t\t\t// create new ontology using OWLBuilder\r\n\t\t\t\t\tOWLBuilder builder = new OWLBuilder();\r\n\t\t\t\t\tbuilder.createOntology(baseOntologyURI, baseOntologyURI);\r\n\t\t\t\t\tbaseOntology = builder.getOntology();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// get all repository side changes: under repRoot\r\n\t\t\t\tList allRepChanges = this.getDescendantChanges(repRoot);\r\n\t\t\t\tstatusBar.setText(status+\"Testing \"+allRepChanges.size()+\" repository-side changes\");\r\n\t\t\t\t\r\n\t\t\t\t// apply allRepChanges to baseOntology\r\n\t\t\t\tfor (int i=0; i<allRepChanges.size(); i++) {\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) allRepChanges.get(i);\r\n\t\t\t\t\tOntologyChange oc = swc.getChange();\r\n\t\t\t\t\t//*** need to align changes with ontology! ***/\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tOntologyChange alignOC = (OntologyChange) controlHandler.swoopHandler.changeLog.getChangeInformation(oc, ChangeLog.CHANGE_ALIGN, null, new ArrayList(), baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// save state of baseOntology and see if it changes\r\n\t\t\t\t\t\t// use Abstract Syntax since its more concise than rdf/xml?\r\n\t\t\t\t\t\tString before = controlHandler.swoopHandler.changeLog.getOntSnapshot(baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// APPLY CHANGE\r\n\t\t\t\t\t\tboolean check = true;\r\n\t\t\t\t\t\tif (alignOC instanceof BooleanElementChange) { \r\n\t\t \t\t\t\tcheck = swoopModel.applyBooleanElementChange(alignOC);\r\n\t\t \t\t\t}\r\n\t\t \t\t\telse if (alignOC instanceof EnumElementChange) { \r\n\t\t \t\t\t\tcheck = swoopModel.applyEnumElementChange(alignOC);\r\n\t\t \t\t\t}\r\n\t\t\t\t\t\telse alignOC.accept((ChangeVisitor) baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// need to see if any change in the ontology occured\r\n\t\t\t\t\t\tString after = controlHandler.swoopHandler.changeLog.getOntSnapshot(baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (before.equals(after) || !check) {\r\n\t\t\t\t\t\t\t// nothing has changed!\r\n\t\t\t\t\t\t\tSystem.out.println(\"Found redundant change: \"+oc);\r\n\t\t\t\t\t\t\tswc.isRedundant = true;\r\n\t\t\t\t\t\t\ttestSuccess = false;\r\n\t\t\t\t\t\t\tfailCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse swc.isRedundant = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex) {\r\n\t\t\t\t\t\tswc.isRedundant = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Change Error for: \"+oc);\r\n\t\t\t\t\t\ttestSuccess = false;\r\n\t\t\t\t\t\tfailCount++;\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\ttestSuccess = false;\r\n\t\t\t}\r\n\t\t\tif (testSuccess) statusBar.setText(status+\"Test PASSED\");\r\n\t\t\telse {\r\n\t\t\t\tstatusBar.setText(status+\"Test FAILED\");\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Change Test FAILED: \"+failCount+\" change(s) is/are redundant or cause clashes. Please Fix/Remove them and try again.\");\r\n\t\t\t}\r\n\t\t\t// refresh repTreeTable\r\n\t\t\tthis.refreshRepTreeTable(false);\r\n\t\t\treturn testSuccess;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// test changes in Swoop Ontology for clashes etc.\r\n\t\t\tString status = \"Status: [ACTION - Testing LOCAL Ontology Changes]...\";\r\n\t\t\t\r\n\t\t\tstatusBar.setText(status);\r\n\t\t\tboolean testSuccess = true;\r\n\t\t\tint failCount = 0;\r\n\t\t\t\r\n\t\t\t// get base ontology\r\n\t\t\tstatusBar.setText(status+\"Loading Base Ontology\");\r\n\t\t\tOWLOntology baseOntology = null;\r\n\t\t\tif (existingOntRadio.isSelected()) {\r\n\t\t\t\t// get existing ontology from swoopModel\r\n\t\t\t\tbaseOntology = (OWLOntology) ontBox.getSelectedItem();\r\n\t\t\t\t// but clone it to prevent applying changes on *it*\r\n\t\t\t\tbaseOntology = this.cloneOntology(baseOntology);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tURI ontURI = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// load ontology with URI\r\n\t\t\t\t\tontURI = new URI(swoopOntFld.getText());\r\n\t\t\t\t\tbaseOntology = swoopModel.loadOntology(ontURI);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception ex) {\r\n\t\t\t\t\t// create new ontology\r\n\t\t\t\t\tOWLBuilder builder = new OWLBuilder();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbuilder.createOntology(ontURI, ontURI);\r\n\t\t\t\t\t} catch (OWLException e) {\r\n\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbaseOntology = builder.getOntology();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (baseOntology == null) {\r\n\t\t\t\tstatusBar.setText(status+\"Unable to load base ontology\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tfor (int i=0; i<ontChanges.size(); i++) {\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) ontChanges.get(i);\r\n\t\t\t\t\tOntologyChange oc = swc.getChange();\r\n\t\t\t\t\t//*** need to align changes with ontology! ***/\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tOntologyChange alignOC = (OntologyChange) controlHandler.swoopHandler.changeLog.getChangeInformation(oc, ChangeLog.CHANGE_ALIGN, null, new ArrayList(), baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// save state of baseOntology and see if it changes\r\n\t\t\t\t\t\t// use Abstract Syntax since its more concise than rdf/xml?\r\n\t\t\t\t\t\tString before = controlHandler.swoopHandler.changeLog.getOntSnapshot(baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// APPLY CHANGE\r\n\t\t\t\t\t\tboolean check = true;\r\n\t\t\t\t\t\tif (alignOC instanceof BooleanElementChange) { \r\n\t\t \t\t\t\tcheck = swoopModel.applyBooleanElementChange(alignOC);\r\n\t\t \t\t\t}\r\n\t\t \t\t\telse if (alignOC instanceof EnumElementChange) { \r\n\t\t \t\t\t\tcheck = swoopModel.applyEnumElementChange(alignOC);\r\n\t\t \t\t\t}\r\n\t\t\t\t\t\telse alignOC.accept((ChangeVisitor) baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// need to see if any change in the ontology occured\r\n\t\t\t\t\t\tString after = controlHandler.swoopHandler.changeLog.getOntSnapshot(baseOntology);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (before.equals(after) || !check) {\r\n\t\t\t\t\t\t\t// nothing has changed!\r\n\t\t\t\t\t\t\tSystem.out.println(\"Found redundant change: \"+oc);\r\n\t\t\t\t\t\t\tswc.isRedundant = true;\r\n\t\t\t\t\t\t\ttestSuccess = false;\r\n\t\t\t\t\t\t\tfailCount++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse swc.isRedundant = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex) {\r\n\t\t\t\t\t\tswc.isRedundant = true;\r\n\t\t\t\t\t\tSystem.out.println(\"Change Error for: \"+oc);\r\n\t\t\t\t\t\ttestSuccess = false;\r\n\t\t\t\t\t\tfailCount++;\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\ttestSuccess = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (testSuccess) statusBar.setText(status+\"Test PASSED\");\r\n\t\t\telse {\r\n\t\t\t\tstatusBar.setText(status+\"Test FAILED\");\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Change Test FAILED: \"+failCount+\" change(s) is/are redundant or cause clashes. Please Fix/Remove them and try again.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// refresh ontTreeTable\r\n\t\t\tthis.refreshOntTreeTable();\r\n\t\t\treturn testSuccess;\t\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean isPresent(List changes, SwoopChange check) {\r\n\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\tif (swc.getAuthor().equals(check.getAuthor()) &&\r\n\t\t\t\tswc.getDescription().equals(check.getDescription()) && \r\n//\t\t\t\tswc.getChange().equals(check.getChange()) &&\r\n\t\t\t\tswc.getTimeStamp().equals(check.getTimeStamp()))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected void handleChangedResources() {\r\n\t\tif (!changedResources.isEmpty()\r\n\t\t\t\t&& (!isDirty() || handleDirtyConflict())) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (isDirty()) {\r\n\t\t\t\tchangedResources.addAll(editingDomain.getResourceSet()\r\n\t\t\t\t\t\t.getResources());\r\n\t\t\t}\r\n\t\t\teditingDomain.getCommandStack().flush();\r\n\r\n\t\t\tupdateProblemIndication = false;\r\n\t\t\tfor (Resource resource : changedResources) {\r\n\t\t\t\tif (resource.isLoaded()) {\r\n\t\t\t\t\tresource.unload();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tresource.load(Collections.EMPTY_MAP);\r\n\t\t\t\t\t} catch (IOException exception) {\r\n\t\t\t\t\t\tif (!resourceToDiagnosticMap.containsKey(resource)) {\r\n\t\t\t\t\t\t\tresourceToDiagnosticMap\r\n\t\t\t\t\t\t\t\t\t.put(resource, analyzeResourceProblems(\r\n\t\t\t\t\t\t\t\t\t\t\tresource, exception));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (AdapterFactoryEditingDomain.isStale(editorSelection)) {\r\n\t\t\t\tsetSelection(StructuredSelection.EMPTY);\r\n\t\t\t}\r\n\r\n//\t\t\tupdateProblemIndication = true;\r\n//\t\t\tupdateProblemIndication();\r\n\t\t}\r\n\t}", "private List transformChangeList(List source) {\r\n\t\t\r\n\t\tList target = new ArrayList();\r\n\t\tfor (int i=0; i<source.size(); i++) {\r\n\t\t\tObject change = source.get(i);\r\n\t\t\tif (change instanceof SwoopChange) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) change;\r\n\t\t\t\t// change SwoopChange to a Description object\r\n\t\t\t\tDescription desc = new Description();\r\n\t\t\t\tdesc.setAuthor(swc.getAuthor());\r\n\t\t\t\tdesc.setCreated(swc.getTimeStamp());\r\n\t\t\t\tdesc.setBody(swc.getDescription());\r\n\t\t\t\tdesc.setBodyType(\"text/html\");\r\n\t\t\t\tdesc.setAnnotatedEntityDefinition(swc.comment);\r\n\t\t\t\t// create annotates URI from\r\n\t\t\t\t// 1. repository URL\r\n\t\t\t\t// 2. owlObjectURI\r\n\t\t\t\t// 3. extra URIs\r\n\t\t\t\tURI[] uris = new URI[2+swc.getExtraSubjects().size()];\r\n\t\t\t\turis[0] = repositoryURI;\r\n\t\t\t\turis[1] = swc.getOwlObjectURI();\r\n\t\t\t\tfor (int j=0; j<swc.getExtraSubjects().size(); j++) {\r\n\t\t\t\t\turis[j+2] = (URI) swc.getExtraSubjects().get(j);\r\n\t\t\t\t}\r\n\t\t\t\tdesc.setAnnotates(uris);\r\n\t\t\t\t// attach single ontology change to description\r\n\t\t\t\tList chngList = new ArrayList();\r\n\t\t\t\tchngList.add(swc.getChange());\r\n\t\t\t\tdesc.setOntologyChangeSet(chngList);\t\t\t\t\r\n\t\t\t\ttarget.add(desc);\r\n\t\t\t}\r\n\t\t\telse if (change instanceof Description) {\r\n\t\t\t\tDescription desc = (Description) change;\r\n\t\t\t\t// change Description to SwoopChange object\r\n\t\t\t\tSwoopChange swc = new SwoopChange();\r\n\t\t\t\tswc.setAuthor(desc.getAuthor());\r\n\t\t\t\tswc.setTimeStamp(desc.getCreated());\r\n\t\t\t\tswc.setDescription(desc.getBody());\r\n\t\t\t\tswc.comment = desc.getAnnotatedEntityDefinition();\r\n\t\t\t\tswc.setCommitted(true); // set committed\r\n\t\t\t\t// get URIs from desc for swc\r\n\t\t\t\tURI[] uris = desc.getAnnotates();\r\n\t\t\t\tswc.setOwlObjectURI(uris[1]);\r\n\t\t\t\tList extraSubjects = new ArrayList(); \r\n\t\t\t\tfor (int j=2; j<uris.length; j++) {\r\n\t\t\t\t\textraSubjects.add(uris[j]);\r\n\t\t\t\t}\r\n\t\t\t\tswc.setExtraSubjects(extraSubjects);\r\n\t\t\t\t// get single ontology change object\r\n\t\t\t\tList chngList = desc.getOntologyChangeSet();\r\n\t\t\t\tswc.setChange((OntologyChange) chngList.iterator().next());\r\n\t\t\t\ttarget.add(swc);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn target;\t\t\r\n\t}", "public void checkDiffs(String newPojectName, String oldProjectName) throws Exception {\n\t\tDifferenceVisitor visitor = new DifferenceVisitor(oldProjectName);\n\t\tIProject currentProject = ajdtHandler.getProject(newPojectName);\n\t\tcurrentProject.accept(visitor, IResource.NONE);\n\t\tList<String> diffs = visitor.getDifferences();\n\t\tsaveDiffs(diffs);\n\t\tpriorj.setAffectedBlocks(diffs);\n\t}", "private boolean checkEditContent()\n {\n if (etUrl.hasContent() && etFilePath.hasContent())\n {\n return true;\n }\n return false;\n }", "public void reportMissing(ArrayList<TagNode> tags) {\n\t\tfor (Iterator<TagNode> iter = tags.iterator(); iter.hasNext();) {\n\t\t\tTagNode node = iter.next();\n\t\t\tfor (Iterator<ICodeElement> ite2 = node.source().iterator(); ite2\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tif (monitor.isCanceled()) { // return if cancel is requested\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tICodeElement elem = ite2.next();\n\t\t\t\tif ((!elem.optional() || node.onlyOptional())\n\t\t\t\t\t\t&& !elem.visited()) {\n\t\t\t\t\tif (elem instanceof JavaMethod && node.parent() != null) {\n\t\t\t\t\t\treportMissingMethod((JavaMethod) elem, node.parent());\n\t\t\t\t\t}\n\t\t\t\t\tif (elem instanceof JavaClass) {\n\t\t\t\t\t\treportMissingFile((JavaClass) elem);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void areChangesValid(\n final Iterable<Change> changes,\n final Repository repository,\n final String currentHash\n ) throws InvalidYamlFileException;", "boolean hasSourceFile();", "private void checkChanges() {\n CertificationStyleWrapper wrapper = (CertificationStyleWrapper) cbCertificationStyle.getSelectedItem();\n if (wrapper != null && settings.getCertificationStyle() != wrapper.style) {\n settings.setCertificationStyle(wrapper.style);\n }\n\n // set NFO filenames\n settings.clearNfoFilenames();\n if (chckbxTvShowNfo1.isSelected()) {\n settings.addNfoFilename(TvShowNfoNaming.TV_SHOW);\n }\n\n settings.clearEpisodeNfoFilenames();\n if (chckbxEpisodeNfo1.isSelected()) {\n settings.addEpisodeNfoFilename(TvShowEpisodeNfoNaming.FILENAME);\n }\n }", "private void createSourceFiles(ArrayList<TagNode> tags) {\n\t\tfor (Iterator<TagNode> iter = tags.iterator(); iter.hasNext();) {\n\t\t\tif (monitor.isCanceled()) { // return if cancel is requested\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tASTEngine engine = new ASTEngine(this, mode, pattern);\n\t\t\tengine.createSourceFile(iter.next(), status);\n\t\t\tmonitor.worked(1);\n\t\t}\n\t}", "public boolean areNotesLoaded() {\n return versionNotes != null;\n }", "private List<String> newChangNotStaged(HashMap<String, Blob> allFiles) {\n ArrayList<String> result = new ArrayList<>();\n for (String fileName: Utils.plainFilenamesIn(Main.CWD)) {\n Blob ourBlob = allFiles.get(fileName);\n File fileInCWD = new File(Main.CWD, fileName);\n String content = Utils.readContentsAsString(fileInCWD);\n if (ourBlob != null) {\n if (!ourBlob.getContent().equals(content)\n && !isStaged(fileName)) {\n String elem = fileName + \" (modified)\";\n result.add(elem);\n }\n allFiles.remove(fileName);\n }\n }\n return result;\n }", "public static Context saveStatementInputs(Repository rep,\n List<Statement> addStmts, List<Statement> remStmts, \n List<Pair<Statement,Statement>> changeList,\n ContextLabel contextLabel)\n throws Exception\n { \n Context context = Context.getFreshUserContext(contextLabel); \n \n ReadWriteDataManager dm = ReadWriteDataManagerImpl.openDataManager(rep);\n RequestMapper rm = EndpointImpl.api().getRequestMapper();\n \n // collect add and remove list arising from change list\n List<Statement> remByChange = new ArrayList<Statement>();\n List<Statement> addByChange = new ArrayList<Statement>();\n for (Pair<Statement,Statement> pair : changeList)\n {\n remByChange.add(pair.fst);\n addByChange.add(pair.snd);\n }\n\n\n // next we record the deleted/changed statements that \n // have been changed by someone else in meantime\n List<Statement> allRemStmts = new ArrayList<Statement>();\n allRemStmts.addAll(remStmts);\n allRemStmts.addAll(remByChange);\n List<Statement> concurrentlyRemovedStmts = new ArrayList<Statement>();\n for (Statement stmt : allRemStmts)\n {\n try\n {\n List<Statement> existingStmts = \n dm.getStatements(stmt.getSubject(), stmt.getPredicate(), \n stmt.getObject(), false).asList();\n\n boolean existsInEditableContext = false;\n for (Statement existingStmt : existingStmts)\n {\n existsInEditableContext |= dm.isEditableStatement(existingStmt);\n if (existsInEditableContext)\n break;\n }\n \n if (!existsInEditableContext)\n concurrentlyRemovedStmts.add(stmt);\n }\n catch (Exception e)\n {\n logger.error(e.getMessage(),e);\n }\n }\n \n // next we record the added statements that are already present\n // (e.g., have been added by another user before)\n // have been changed by someone else in meantime\n List<Statement> allAddStmts = new ArrayList<Statement>(); \n allAddStmts.addAll(addStmts);\n allAddStmts.addAll(addByChange);\n List<Statement> previouslyAddedStmts = new ArrayList<Statement>();\n for (Statement stmt : allAddStmts)\n {\n try\n {\n List<Statement> existingStmts = \n dm.getStatements(stmt.getSubject(), stmt.getPredicate(), \n stmt.getObject(), false).asList();\n \n boolean existsInEditableContext = false;\n for (Statement existingStmt : existingStmts)\n {\n existsInEditableContext |= dm.isEditableStatement(existingStmt);\n if (existsInEditableContext)\n break;\n }\n \n if (existsInEditableContext)\n previouslyAddedStmts.add(stmt);\n }\n catch (Exception e)\n {\n logger.error(e.getMessage(),e);\n }\n }\n\n StringBuilder concurrentErrorMessage = new StringBuilder(); // \"\" means no error\n \n // now we remove the remove statements (not including the change list)...\n for (Statement s : remStmts)\n {\n if (concurrentlyRemovedStmts.contains(s))\n {\n String pVal = rm.getReconvertableUri(s.getPredicate(),false);\n String oVal = (s.getObject() instanceof URI) ? \n rm.getReconvertableUri((URI)s.getObject(),false) : s.getObject().stringValue();\n concurrentErrorMessage.append( \n \"<li>Value-property pair \" + pVal + \" -&gt; \" + oVal\n + \" has been deleted/modified by another user in meantime.</li>\");\n }\n else\n dm.removeInEditableContexts(s, context);\n }\n \n // ... and add the add statements (not including the change list) ...\n Set<URI> uris = new HashSet<URI>();\n for (Statement s : addStmts)\n {\n if (previouslyAddedStmts.contains(s))\n {\n String pVal = rm.getReconvertableUri(s.getPredicate(),false);\n String oVal = (s.getObject() instanceof URI) ? \n rm.getReconvertableUri((URI)s.getObject(),false) : \n ((Literal)(s.getObject())).getLabel();\n concurrentErrorMessage.append( \n \"<li>Value-property pair \" + pVal + \" -&gt; \" + oVal\n + \" is already present (will not be added again).</li>\");\n }\n else\n {\n dm.addToContext(s,context);\n uris.add((URI)s.getSubject());\n }\n }\n \n // ... and finally process the change list\n for (Pair<Statement,Statement> change : changeList)\n {\n if (concurrentlyRemovedStmts.contains(change.fst))\n {\n String pValOld = rm.getReconvertableUri(change.fst.getPredicate(),false);\n String oValOld = (change.fst.getObject() instanceof URI) ? \n rm.getReconvertableUri((URI)change.fst.getObject(),false) : \n ((Literal)(change.fst.getObject())).getLabel();\n String pValNew = rm.getReconvertableUri(change.snd.getPredicate(),false);\n String oValNew = (change.snd.getObject() instanceof URI) ? \n rm.getReconvertableUri((URI)change.snd.getObject(),false) : \n ((Literal)(change.snd.getObject())).getLabel();\n\n concurrentErrorMessage.append(\n \"<li>Value-property pair <i>\" + pValOld + \"</i> -&gt; <i>\" + oValOld\n + \"</i> has been deleted/modified by another user in meantime. \" \n + \"Your change to the new value-property pair <i>\" \n + pValNew + \"</i> -&gt; <i>\" + oValNew + \"</i> will not be propagated.</li>\");\n }\n else if (previouslyAddedStmts.contains(change.snd))\n {\n String pValOld = rm.getReconvertableUri(change.fst.getPredicate(),false);\n String oValOld = (change.fst.getObject() instanceof URI) ? \n rm.getReconvertableUri((URI)change.fst.getObject(),false) : \n ((Literal)(change.fst.getObject())).getLabel();\n String pValNew = rm.getReconvertableUri(change.snd.getPredicate(),false);\n String oValNew = (change.snd.getObject() instanceof URI) ? \n rm.getReconvertableUri((URI)change.snd.getObject(),false) : \n ((Literal)(change.snd.getObject())).getLabel();\n\n concurrentErrorMessage.append(\n \"<li>Your requested change from <i>\" + pValOld + \"</i> -&gt; <i>\" + oValOld\n + \"</i> to <i>\" + pValNew + \"</i> -&gt; <i>\" + oValNew + \"</i> will not be\" \n + \"propagated: the new value-property pair is already present in the database.</li>\");\n }\n else\n {\n dm.removeInEditableContexts(change.fst, context);\n dm.addToContext(change.snd,context);\n uris.add((URI)change.snd.getSubject()); \n }\n }\n dm.close();\n\n // update wiki page\n // attention: order in which we update the semantic links matters\n KeywordIndexAPI.removeSemanticLinks(remStmts);\n KeywordIndexAPI.changeSemanticLinks(changeList);\n KeywordIndexAPI.removeSemanticLinks(remByChange);\n \n // update keyword index\n try\n {\n for (URI u : uris)\n KeywordIndexAPI.replaceKeywordIndexEntry(u);\n }\n catch (Exception e) \n {\n logger.error(e.getMessage(), e);\n }\n \n // pass warning that not everything went fine to caller\n if (concurrentErrorMessage.length()>0)\n {\n String msg = \"Parts of the requested data changes have not been stored because they are conflicting:<br>\";\n msg += \"<ul>\";\n msg += concurrentErrorMessage.toString();\n msg += \"</ul><br>\";\n msg += \"These changes will not take effect.<br/><br/>\";\n \n throw new Exception(msg);\n }\n \n return context;\n }", "@Test\n\tpublic void testGetSourceDifference() {\n\t\t\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\t\t\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(2, diff);\n\n\t\tint test = line.getTestDiff(types);\n\t\tassertEquals(0, test);\n\t}", "private void applyInsRevisions(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n instags: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoIns\") >= 0)\n {\n removeInsTag(p_tags, tag);\n\n continue instags;\n }\n }\n }\n\n b_changed = false;\n }\n }", "public static boolean isChanged(PO po) {\n\t\tString[] columnNames = s_sourceColumnNames.get(po.get_TableName());\n\t\tif (columnNames == null || columnNames.length == 0) {\n\t\t\treturn false;\n\t\t}\n\t\tif (po.is_new() || po.is_ValueChanged(\"IsActive\")) {\n\t\t\treturn true;\n\t\t}\n\t\tfor (String columnName : columnNames) {\n\t\t\tif (po.is_ValueChanged(columnName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public interface Source {\n /**\n * A listener for changes.\n */\n public interface SourceListener {\n public void added(Source source,\n JavaProject javaProject, String name);\n\n public void removed(Source source,\n JavaProject javaProject, String name);\n\n public void changed(Source source,\n JavaProject javaProject, String name);\n }\n\n public void addListener(SourceListener listener);\n\n public void removeListener(SourceListener listener);\n\n /**\n * Find and return all custom contexts; usually called just before calling\n * addListener(this).\n * \n * @param javaProject the java context to find custom module contexts for\n */\n public Set<String> get(JavaProject javaProject, ProgressMonitor progressMonitor);\n \n public abstract boolean isListeningForChanges();\n \n public abstract void listenForChanges(boolean listenForChanges);\n}", "private void findChangeMarkerFile() {\n if (new File(pathsProvider.getLocalProgramTempDir(), \"dbchangemarker.txt\").exists()) {\n if (hasMetadataChange) System.out.print(\"Found previous changes.\\n\");\n hasMetadataChange = true;\n }\n }", "@Override\r\n\tpublic int check(List<SourceCodeChange> changes,\r\n\t\t\tPreperator prefixed_preperator, Preperator postfixed_preperator) {\n\t\tthis.application_counter = 0;\r\n\t\t\r\n\t\t// First extract all nodes where such a reorder might occur\r\n\t\t// which are: \r\n\t\t// * switch-case\r\n\t\t// * if-then-else\r\n\t\t// Therefore, extract all these node with help of an ASTVisitor\r\n\t\tHashSet<MethodDeclaration> prefixMethodsToCheck \t= new HashSet<MethodDeclaration>();\r\n\t\tHashSet<MethodDeclaration> postfixMethodsToCheck \t= new HashSet<MethodDeclaration>();\r\n\t\tfor(SourceCodeChange change: changes) {\t\t\t\r\n\t\t\tif(change instanceof Insert){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Insert) change);\r\n\t\t\t\t// extract all newly changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(postfixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tpostfixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t} \t\r\n\t\t\telse if(change instanceof Delete){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Delete) change);\r\n\t\t\t\t// extract all changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(prefixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tprefixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(change instanceof Move){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Move) change);\r\n\t\t\t\t// extract changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(prefixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tprefixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t\t// extract new methods\r\n\t\t\t\tNodeFinder nodefinder2 = new NodeFinder(postfixed_preperator.getAST(), pos_array[2], pos_array[3]);\r\n\t\t\t\tASTNode expr2 = nodefinder2.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration2 = JDT_Utils.searchForSpecificParentNode(expr2, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration2 != null) {\r\n\t\t\t\t\tpostfixMethodsToCheck.add((MethodDeclaration) found_method_declaration2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(change instanceof Update){\r\n\t\t\t\t// extract all positions\r\n\t\t\t\tint[] pos_array = SourceCodeChangeUtils.getNodeFinderInput((Update) change);\r\n\t\t\t\t// extract changed methods\r\n\t\t\t\tNodeFinder nodefinder = new NodeFinder(prefixed_preperator.getAST(), pos_array[0], pos_array[1]);\r\n\t\t\t\tASTNode expr = nodefinder.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration = JDT_Utils.searchForSpecificParentNode(expr, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration != null) {\r\n\t\t\t\t\tprefixMethodsToCheck.add((MethodDeclaration) found_method_declaration);\r\n\t\t\t\t}\r\n\t\t\t\t// extract new methods\r\n\t\t\t\tNodeFinder nodefinder2 = new NodeFinder(postfixed_preperator.getAST(), pos_array[2], pos_array[3]);\r\n\t\t\t\tASTNode expr2 = nodefinder2.getCoveringNode();\r\n\t\t\t\tASTNode found_method_declaration2 = JDT_Utils.searchForSpecificParentNode(expr2, ASTNode.METHOD_DECLARATION);\r\n\t\t\t\tif(found_method_declaration2 != null) {\r\n\t\t\t\t\tpostfixMethodsToCheck.add((MethodDeclaration) found_method_declaration2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// so now we have all methods which are changed\r\n\t\t// try to match pairs of methods\r\n\t\tASTMatcher defaultMatcher = new ASTMatcher();\r\n\t\tfor(MethodDeclaration prefix: prefixMethodsToCheck) {\r\n\t\t\tfor(MethodDeclaration postfix: postfixMethodsToCheck) {\r\n\t\t\t\t// check for the same header properties\r\n\t\t\t\tboolean sameName = prefix.getName().subtreeMatch(defaultMatcher, postfix.getName());\r\n\t\t\t\tboolean sameParametersSize = (prefix.parameters().size() == postfix.parameters().size()); \r\n\t\t\t\tboolean sameParameters = defaultMatcher.safeSubtreeListMatch(prefix.parameters(), postfix.parameters());\r\n\t\t\t\tboolean sameThrowExceptions = defaultMatcher.safeSubtreeListMatch(prefix.thrownExceptions(), postfix.thrownExceptions());\r\n\t\t\t\tboolean sameTypeParameters = defaultMatcher.safeSubtreeListMatch(prefix.typeParameters(), postfix.typeParameters());\r\n\t\t\t\tboolean sameModifiers = defaultMatcher.safeSubtreeListMatch(prefix.modifiers(), postfix.modifiers());\r\n\t\t\t\tboolean sameReturnType = ((prefix.getReturnType2() == null) && (postfix.getReturnType2() == null)) || prefix.getReturnType2().subtreeMatch(defaultMatcher, postfix.getReturnType2());\r\n\t\t\t\t\r\n\t\t\t\t// if all of these conditions are valid,\r\n\t\t\t\t// * traverse in parallel over both methods\r\n\t\t\t\t// * at some special nodes, check for exchanged stuff\r\n\t\t\t\tif(sameName && sameParametersSize && sameParameters && sameThrowExceptions && sameTypeParameters && sameModifiers && sameReturnType) {\r\n\t\t\t\t\tthis.check(prefix, postfix);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "public void findChanges(E[] original, E[] changed) {\n // number of lines of each file\n final int M = original.length;\n final int N = changed.length;\n\n // opt[i][j] = length of LCS of x[i..M] and y[j..N]\n final int[][] opt = new int[M + 1][N + 1];\n\n // compute length of LCS and all subproblems via dynamic programming\n for (int i = M - 1; i >= 0; i--) {\n for (int j = N - 1; j >= 0; j--) {\n if (equal(original[i], changed[j], i, j)) {\n opt[i][j] = opt[i + 1][j + 1] + 1;\n } else {\n opt[i][j] = Math.max(opt[i + 1][j], opt[i][j + 1]);\n }\n }\n }\n\n // recover LCS\n int i = 0, j = 0;\n while (i < M && j < N) {\n if (equal(original[i], changed[j], i, j)) {\n li.unchanged(original, changed, i, original[i]);\n i++;\n j++;\n } else if (opt[i + 1][j] >= opt[i][j + 1]) {\n li.removed(original, changed, i, original[i]);\n i++;\n } else {\n li.inserted(original, changed, i, changed[j]);\n j++;\n }\n }\n\n // handle the leftovers\n while (i < M || j < N) {\n if (i == M) {\n li.inserted(original, changed, i, changed[j]);\n j++;\n } else if (j == N) {\n li.removed(original, changed, i, original[i]);\n i++;\n }\n }\n }", "private static void verifyAnkiNotesIntegrity() throws ClassNotFoundException {\n List<AnkiNote> notesWithoutPron = new AnkiDatabase().getNotesWithoutPron();\n for (AnkiNote note : notesWithoutPron) {\n String deutsch = note.getDeutsch();\n String tags = note.getTags();\n String articleError = \"Note has flag %s, but does not start with %s: %s%n\";\n //Notes with tag Femininum must have german field starting with e or r/e\n if (tags.contains(\"Femininum\") && !(deutsch.startsWith(\"e \") || deutsch.startsWith(\"r/e \"))) {\n System.err.printf(articleError, \"Femininum\", \"e or r/e\", note);\n }\n\n //Notes with tag Maskulinum must start with r or r/e or r/s\n if (tags.contains(\"Maskulinum\")\n && !(deutsch.startsWith(\"r \") || deutsch.startsWith(\"r/e \")\n || deutsch.startsWith(\"r/s \"))) {\n System.err.printf(articleError, \"Maskulinum\", \"r or r/e\", note);\n }\n\n //Notes with tag Neutrum must start with s or (s)\n if (tags.contains(\"Neutrum\")\n && !(deutsch.startsWith(\"s \") || deutsch.startsWith(\"(s) \")\n || deutsch.startsWith(\"r/s \"))) {\n System.err.printf(articleError, \"Neutrum\", \"s or (s)\", note);\n }\n\n //No nbsp; in notes!\n if (note.getFlds().contains(\"nbsp;\")) {\n System.err.printf(\"Note contains nbsp; :%s%n\", note);\n }\n\n //No special characters in words!\n String word = note.getWord();\n if (word != null && (word.contains(\"<\") || word.contains(\" \") || word.contains(\">\") || word.contains(\"­\"))) {\n System.err.printf(\"Note contains one of characters <, ,>,-: %s%n\", note);\n }\n\n //When note has Maskulinum, Femininum or Neutrum, then it must have wort\n if ((tags.contains(\"Maskulinum\") || tags.contains(\"Femininum\") || tags.contains(\"Neutrum\"))\n && !tags.contains(\"wort\")) {\n System.err.printf(\"Note has Maskulinu, Femininum or Neutrum, but doesn't have wort: %s%n\", note);\n }\n }\n }", "boolean isModified();", "boolean isModified();", "public boolean[] hasConflictsAndChanges(Project project);", "public void handleModified(ModifiedEvent source) {}", "@Test\n\tpublic void multipleNoteRefs() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\t\tString note1 = \"note1\";\n\t\tString note2 = \"note2\";\n\t\tnote(note1);\n\t\tnote(note2, \"commit2\");\n\n\t\tfinal List<String> notes = new ArrayList<String>();\n\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new NoteContentFilter() {\n\n\t\t\tprotected boolean include(RevCommit commit, Note note,\n\t\t\t\t\tString content) {\n\t\t\t\tnotes.add(content);\n\t\t\t\treturn super.include(commit, note, content);\n\t\t\t}\n\n\t\t});\n\t\tfinder.find();\n\t\tassertEquals(2, notes.size());\n\t\tassertTrue(notes.contains(note1));\n\t\tassertTrue(notes.contains(note2));\n\t}", "public void testExistingSeqWithChangedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -40 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-200);\n msProcessor.processExistingSeqSrc(accid, seqKey, null, raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(nav.next()); // assure a record was found\n }", "public static boolean validateResources(IResource[] resources, Shell shell, String title) {\n \t\t\n \t\t// get all readonly files\n \t\tList readOnlyFiles= getReadonlyFiles(resources);\n \t\tif (readOnlyFiles.size() == 0)\n \t\t\treturn true;\n \t\t\n \t\t// get timestamps of readonly files before validateEdit\n \t\tMap oldTimeStamps= createModificationStampMap(readOnlyFiles);\n \t\t\n \t\tIFile[] files= (IFile[]) readOnlyFiles.toArray(new IFile[readOnlyFiles.size()]);\n \t\tIStatus status= ResourcesPlugin.getWorkspace().validateEdit(files, shell);\n \t\tif (! status.isOK()) {\n \t\t\tString message= getString(\"ValidateEdit.error.unable_to_perform\"); //$NON-NLS-1$\n \t\t\tErrorDialog.openError(shell, title, message, status);\n \t\t\treturn false;\n \t\t}\n \t\t\t\n \t\tIStatus modified= null;\n \t\tMap newTimeStamps= createModificationStampMap(readOnlyFiles);\n \t\tfor (Iterator iter= oldTimeStamps.keySet().iterator(); iter.hasNext();) {\n \t\t\tIFile file= (IFile) iter.next();\n \t\t\tif (file.isReadOnly()) {\n \t\t\t\tIStatus entry= new Status(IStatus.ERROR,\n \t\t\t\t\t\t\t\tCompareUIPlugin.getPluginId(),\n \t\t\t\t\t\t\t\tVALIDATE_EDIT_PROBLEM,\n \t\t\t\t\t\t\t\tgetFormattedString(\"ValidateEdit.error.stillReadonly\", file.getFullPath().toString()), //$NON-NLS-1$\n \t\t\t\t\t\t\t\tnull);\n \t\t\t\tmodified= addStatus(modified, entry);\n \t\t\t} else if (! oldTimeStamps.get(file).equals(newTimeStamps.get(file))) {\n \t\t\t\tIStatus entry= new Status(IStatus.ERROR,\n \t\t\t\t\t\t\t\tCompareUIPlugin.getPluginId(),\n \t\t\t\t\t\t\t\tVALIDATE_EDIT_PROBLEM,\n \t\t\t\t\t\t\t\tgetFormattedString(\"ValidateEdit.error.fileModified\", file.getFullPath().toString()), //$NON-NLS-1$\n \t\t\t\t\t\t\t\tnull);\n \t\t\t\tmodified= addStatus(modified, entry);\n \t\t\t}\n \t\t}\n \t\tif (modified != null) {\n \t\t\tString message= getString(\"ValidateEdit.error.unable_to_perform\"); //$NON-NLS-1$\n \t\t\tErrorDialog.openError(shell, title, message, modified);\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}", "@Override\n public void onChanged(@Nullable List<Note> notes) {\n }", "@Override\n public void checkSourcesParameter(PubDTO pub) throws PubHandlerAssemblyException {\n\n }", "@Override\n public void checkSourcesParameter(PubDTO pub) throws PubHandlerAssemblyException {\n\n }", "private void removePropRevisionMarkers(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n propchange: while (b_changed)\n {\n for (int i = 0, max = p_tags.size(); i < max; i++)\n {\n Object o = p_tags.get(i);\n\n if (o instanceof HtmlObjects.Tag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o;\n String original = tag.original;\n\n if (tag.tag.equalsIgnoreCase(\"span\")\n && original.indexOf(\"class=msoChangeProp\") >= 0)\n {\n p_tags.remove(i);\n\n // Note that the closing tag for changeprop\n // may come *after* </seg> and </tu>.\n removeClosingTag(p_tags, tag);\n\n continue propchange;\n }\n }\n }\n\n b_changed = false;\n }\n }", "@Override\r\n public boolean hasContentModified(ContainerUser context)\r\n {\n return hasDescriptorPropertyChanged(ReportDescriptor.Prop.json.name());\r\n }", "void replaceWithHEADRevision(Collection<ChangedFile> changedFiles);", "public void transferChanges(JTreeTable source, JTreeTable target) {\r\n\t\t\r\n\t\t// add to changes in target based on source\r\n\t\tJEditorPane changePane = null;\r\n\t\tList changes = null;\r\n\t\tboolean refreshOntTT = true;\r\n\t\tif (target == ontChangeTT) {\r\n\t\t\tchanges = ontChanges;\r\n\t\t\tchangePane = ontChangeEdPane;\r\n\t\t}\r\n\t\telse {\r\n\t\t\trefreshOntTT = false;\r\n\t\t\tchanges = repChanges;\r\n\t\t\tchangePane= repChangeEdPane;\r\n\t\t}\r\n\t\t\r\n\t\t// get selected changes in source\r\n\t\tif (source.getTree().getSelectionPath()==null) return;\r\n\t\tTreePath[] paths = source.getTree().getSelectionPaths();\r\n\t\tfor (int i=0; i<paths.length; i++) {\r\n\t\t\tTreePath path = paths[i];\r\n\t\t\tTreeTableNode selNode = (TreeTableNode) path.getLastPathComponent();\r\n\t\t\tif (selNode.swoopChange.isTopNode) {\r\n\t\t\t\t// skip version top nodes, but transfer its children\r\n\t\t\t\tfor (Iterator iter = selNode.children.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tTreeTableNode childNode = (TreeTableNode) iter.next();\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) childNode.swoopChange;\r\n\t\t\t\t\t// check if it already exists in changes (prevent duplicates) \r\n\t\t\t\t\tif (!isPresent(changes, swc)) changes.add(swc.clone());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse { \r\n\t\t\t\tSwoopChange swc = (SwoopChange) selNode.swoopChange;\r\n\t\t\t\t// check if it already exists in changes (prevent duplicates) \r\n\t\t\t\tif (!isPresent(changes, swc)) changes.add(swc.clone());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.sortChanges(changes);\r\n\t\t\r\n\t\t// refresh UI of target after adding changes\r\n\t\tif (refreshOntTT) this.refreshOntTreeTable();\r\n\t\telse {\r\n\t\t\t// add (new) repChanges to newCommit node directly\r\n\t\t\tnewCommitNode.children = new Vector();\r\n\t\t\tfor (Iterator iter = changes.iterator(); iter.hasNext();) {\r\n\t\t\t\tSwoopChange swc = (SwoopChange) iter.next();\r\n\t\t\t\tTreeTableNode swcNode = new TreeTableNode(swc);\r\n\t\t\t\tnewCommitNode.addChild(swcNode);\t\r\n\t\t\t}\r\n\t\t\tthis.refreshRepTreeTable(true);\r\n\t\t}\r\n\t}", "public boolean visit(IResourceDelta delta) throws CoreException {\n\t\t\t\tif ((delta.getFlags() & IResourceDelta.CONTENT) == 0)\n\t\t\t\t\treturn true;\n\t\t\t\tIResource resource = delta.getResource();\n\t\t\t\t// only interested in files with the \"java\" extension\n\t\t\t\tif (resource.getType() == IResource.FILE\n\t\t\t\t\t\t&& \"java\".equalsIgnoreCase(resource.getFileExtension())) {\n\t\t\t\t\tCuckooProcessor.runAnt(project);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}", "private void setNewStatusIfNeeded() {\n \t\tfor(FileDiffDirectory dir : directories ) {\n \t\t\tif (dir.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(FileDiffFile file : files ) {\n \t\t\tif (file.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}", "public boolean checkTemplates( DefaultRecord is )\r\n {\r\n /* Lists of Templates which are only IS-updates, templates that should be prepared, and templates that could be executed */\r\n ArrayList<TemplateState> isUpdates = new ArrayList<TemplateState>();\r\n ArrayList<TemplateState> templatesToPrepare = new ArrayList<TemplateState>();\r\n ArrayList<TemplateState> templatesToRun = new ArrayList<TemplateState>();\r\n\r\n /* Check all Templates */\r\n for( Template template : templates ) {\r\n TemplateState state = template.checkTemplate(is);\r\n if( state.isComparesSatisfied() && state.isIndicatorsSatisfied() ) {\r\n if( state.isTriggersSatisfied() ) {\r\n if( state.getEffects().size() > 0 && state.getBehaviour() == null ) {\r\n isUpdates.add(state);\r\n } else {\r\n templatesToRun.add(state);\r\n }\r\n } else if( state.getBehaviour() != null ) {\r\n templatesToPrepare.add(state);\r\n }\r\n }\r\n }\r\n\r\n if( templatesToRun.size() > 0 ) {\r\n if( templatesToRun.size() == 1 ) {\r\n /* If there is only 1 Template to run, check for conflicting Effects, apply the Effects, and run the Behaviour */\r\n TemplateState state = templatesToRun.get(0);\r\n logger.info(\"Executing template with behaviour: {}\", state.getTemplate().getName());\r\n checkConflictingEffects(state.getEffects(),isUpdates);\r\n\r\n for( Effect effect : state.getEffects() ) {\r\n try {\r\n effect.apply(is, this);\r\n }catch( TemplateRunException e ) {\r\n logger.error(\"Error while applying effect of Template {}({}) \", state.getTemplate().getId(), state.getTemplate().getName());\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }\r\n\r\n try {\r\n state.getBehaviour().execute(is);\r\n }catch( TemplateRunException e ) {\r\n logger.error(\"Error while executing behaviour of Template {}({}) \", state.getTemplate().getId(), state.getTemplate().getName());\r\n e.printStackTrace();\r\n return false;\r\n }\r\n addRecentBehaviour(state);\r\n } else {\r\n /* If there are more than 1 Template to run, select one, \r\n heck for conflicting Effects, apply the Effects, and run the selected Behaviour */\r\n /* Modify the quality-values based on the history */\r\n templatesToRun = modifyQualityBasedOnHistory( templatesToRun );\r\n /* Select the Behaviour with the highest quality-value */\r\n TemplateState state = getBestTemplate( templatesToRun );\r\n logger.info(\"Executing \\\"random\\\" template with behaviour: {}\", state.getTemplate().getName());\r\n checkConflictingEffects(state.getEffects(),isUpdates);\r\n\r\n for( Effect effect : state.getEffects() ) {\r\n try {\r\n effect.apply(is, this);\r\n }catch( TemplateRunException e ) {\r\n logger.error(\"Error while applying effect of Template {}({}) \", state.getTemplate().getId(), state.getTemplate().getName());\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }\r\n\r\n try {\r\n state.getBehaviour().execute(is);\r\n }catch( TemplateRunException e ) {\r\n logger.error(\"Error while executing behaviour of Template {}({}) \", state.getTemplate().getId(), state.getTemplate().getName());\r\n e.printStackTrace();\r\n return false;\r\n }\r\n addRecentBehaviour(state);\r\n }\r\n } else {\r\n /* If there are no Behaviours to execute, check for conflicting Effects, \r\n * apply the Effects, and prepare the Behaviours that can be prepared */\r\n \t//TODO: the effects are not applied here... is this a bug... or intended behaviour to only apply effects AFTER triggers have been satisfied? \r\n for( TemplateState state : templatesToPrepare ) {\r\n try { \r\n logger.info(\"Preparing template with behaviour: {}\", state.getTemplate().getName());\r\n state.getBehaviour().prepare(is);\r\n }catch( TemplateRunException e ) {\r\n logger.error(\"Error while preparing behaviour of Template {}({}) \", state.getTemplate().getId(), state.getTemplate().getName());\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }\r\n checkConflictingEffects(new ArrayList<Effect>(),isUpdates);\r\n }\r\n\r\n /* Apply all Effects of the IS-update Templates */\r\n for( TemplateState state : isUpdates ) {\r\n logger.info(\"Executing template without behaviour: {}\", state.getTemplate().getName());\r\n for( Effect effect : state.getEffects() ) {\r\n try {\r\n effect.apply(is, this);\r\n }catch( TemplateRunException e ) {\r\n logger.error(\"Error while applying effect of Template {}({}) \", state.getTemplate().getId(), state.getTemplate().getName());\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "private boolean checkForUpdates(List oldList, List newList) {\n\t\tProfile.begin(\"PersonIdServiceBean.checkForUpdates\");\n\t\tboolean hasUpdates = false;\n\n\t\tif ((oldList == null || oldList.size() == 0) && newList != null\n\t\t\t\t&& newList.size() > 0)\n\t\t\treturn true;\n\n\t\tif (oldList != null && oldList.size() > 0 && newList != null\n\t\t\t\t&& newList.size() > 0) {\n\n\t\t\tint count = 0; /* counter for available aliases in the DB */\n\n\t\t\tfor (int j = 0; j < newList.size(); j++) {\n\t\t\t\tcount = 0;\n\t\t\t\tfor (int i = 0; i < oldList.size(); i++) {\n\t\t\t\t\tif (newList.get(j).equals(oldList.get(i))) {\n\t\t\t\t\t\tbreak; /* have the alias in the DB, look no further */\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* have we checked agianst all the aliases in the DB? */\n\t\t\t\tif (count == oldList.size()) {\n\t\t\t\t\thasUpdates = true;\n\t\t\t\t\tbreak; /*\n\t\t\t\t\t\t\t * assuming that the incoming record has one and\n\t\t\t\t\t\t\t * only alias\n\t\t\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tProfile.end(\"PersonIdServiceBean.checkForUpdates\");\n\t\treturn hasUpdates;\n\t}", "@Override\n protected boolean preEmitCheck(SourceXmlSchemaHelper schemaHelper, \n CachedUrl cu, ArticleMetadata thisAM) {\n ArchivalUnit B_au = cu.getArchivalUnit();\n\n // The schema tells us which raw metadata value points to the correct article xml file\n String key_for_filename = schemaHelper.getFilenameXPathKey();\n\n // Use the map created earlier to locate the file from it's relative path\n String full_article_md_file = TarContentsMap.get(thisAM.getRaw(key_for_filename));\n log.debug3(\"full_article_md_file is : \" + thisAM.getRaw(key_for_filename));\n if (full_article_md_file == null) {\n return false;\n }\n\n /*\n * 1. Check for existence of PDF file; otherwise return false & don't emit\n */\n // pdf file has the same name as the xml file, but with \".pdf\" suffix\n\n CachedUrl fileCu = null;\n CachedUrl mdCu = null;;\n try {\n String full_article_pdf = full_article_md_file.substring(0,full_article_md_file.length() - 3) + \"pdf\"; \n fileCu = B_au.makeCachedUrl(full_article_pdf);\n log.debug3(\"Check for existence of \" + full_article_pdf);\n if(fileCu != null && (fileCu.hasContent())) {\n thisAM.put(MetadataField.FIELD_ACCESS_URL, fileCu.getUrl());\n /*\n * 2. Now get the volume, issue and supplement status from the URL\n * key_for_filename looks like this:\n * 03781119/v554i2/S0378111914011998/main.xml\n * we want the second section which could have a v, i, and s component\n * v# or v#-# \n * i# or i#-#\n * s#orLtr\n * will have at least v\n * exs: /v113-115sC/ or /v58i2-3/ or /v117i6/ or /v39sC/ or /v100i8sS/ \n */\n \n Matcher vMat = ISSUE_INFO_PATTERN.matcher(thisAM.getRaw(ElsevierDTD5XmlSchemaHelper.dataset_article_metadata));\n log.debug3(\"checking for volume information from path\");\n if (vMat.matches()) {\n String vol = vMat.group(1);\n String optIss = vMat.group(2);\n String optSup = vMat.group(3);\n log.debug3(\"found volume information: V\" + vol + \"I\" + optIss + \"S\" + optSup);\n thisAM.put(MetadataField.FIELD_VOLUME, vol);\n if( (optIss != null) || (optSup != null)){\n StringBuilder val = new StringBuilder();\n if (optIss != null) {\n val.append(optIss);\n }\n if (optSup != null) {\n val.append(optSup);\n }\n // there is no field equivalent to the suppl used by Elsevier\n thisAM.put(MetadataField.FIELD_ISSUE, val.toString()); \n }\n }\n /* \n * 3. Now get remaining metadata from the article xml file \n */\n mdCu = B_au.makeCachedUrl(full_article_md_file);\n /*\n * This is defensive programming. It's not clear how this could happen.\n * Since we got the full_article_md_file from the map, we know it's in\n * the AU. So an error here is a sign of a big problem.\n */\n if(mdCu == null || !(mdCu.hasContent())) {\n log.siteWarning(\"The stored article XML file is no longer accessible\");\n return true; \n }\n extractRemainingMetadata(thisAM, mdCu);\n return true;\n }\n } finally {\n AuUtil.safeRelease(fileCu);\n AuUtil.safeRelease(mdCu);\n }\n log.debug3(\"No pdf file exists associated with this record - don't emit\");\n return false; \n }", "@Override\n\tpublic boolean visit(IResourceDelta delta) throws CoreException \n\t{\n\t\tif (delta.getKind() == IResourceDelta.ADDED && delta.getResource().getType() == IResource.PROJECT) \n\t\t{\n\t\t\tIProject project = (IProject) delta.getResource();\n\t\t\tif (project.isAccessible()) \t\t//isAccessible() double checks if this exists\n\t\t\t{\n\t\t\t\tgetNewProjects().add(project);\n\t\t\t}\n\t\t}\n\t\t//A folder was added\n\t\telse if (delta.getKind() == IResourceDelta.ADDED && delta.getResource().getType() == IResource.FOLDER) \n\t\t{\n\t\t\tIFolder folder = (IFolder) delta.getResource();\n\t\t\tif (folder.isAccessible()) \t\t//isAccessible() double checks if this exists\n\t\t\t{\n\t\t\t\tgetNewFolders().add(folder);\n\t\t\t}\n\t\t}\n\t\t//A file was added\n\t\telse if (delta.getKind() == IResourceDelta.ADDED && delta.getResource().getType() == IResource.FILE) \n\t\t{\n\t\t\tIFile file = (IFile) delta.getResource();\n\t\t\tif (file.isAccessible()) \t\t\t//isAccessible() double checks if this exists\n\t\t\t{\n\t\t\t\tgetNewFiles().add(file);\n\t\t\t}\n\t\t}\n\t\t//A project was deleted\n\t\telse if (delta.getKind() == IResourceDelta.REMOVED && delta.getResource().getType() == IResource.PROJECT) \n\t\t{\n\t\t\tIProject project = (IProject) delta.getResource();\n\t\t\tgetDeletedProjects().add(project);\n\n\t\t}\n\t\t//A folder was deleted\n\t\telse if (delta.getKind() == IResourceDelta.REMOVED && delta.getResource().getType() == IResource.FOLDER) \n\t\t{\n\t\t\tIFolder folder = (IFolder) delta.getResource();\n\t\t\tgetDeletedFolders().add(folder);\n\t\t}\n\t\t//A file was deleted\n\t\telse if (delta.getKind() == IResourceDelta.REMOVED && delta.getResource().getType() == IResource.FILE) \n\t\t{\n\t\t\tIFile file = (IFile) delta.getResource();\n\t\t\tgetDeletedFiles().add(file);\n\t\t}\n\t\t//A project was changed\n\t\telse if (delta.getKind() == IResourceDelta.CHANGED && delta.getResource().getType() == IResource.PROJECT) \n\t\t{\n\t\t\tIProject project = (IProject) delta.getResource();\n\t\t\tgetChangedProjects().add(project);\n\t\t}\n\t\t//A folder was changed\n\t\telse if (delta.getKind() == IResourceDelta.CHANGED && delta.getResource().getType() == IResource.FOLDER) \n\t\t{\n\t\t\tIFolder folder = (IFolder) delta.getResource();\n\t\t\tgetChangedFolders().add(folder);\n\t\t}\n\t\t//A file was changed\n\t\telse if (delta.getKind() == IResourceDelta.CHANGED && delta.getResource().getType() == IResource.FILE) \n\t\t{\n\t\t\tIFile file = (IFile) delta.getResource();\n\t\t\tgetChangedFiles().add(file);\n\t\t}\n\t\t\t\t\n\t\treturn true;\n\t}", "public void testExistingSeqWithChangedNamedSrc() throws Exception\n {\n Integer C30 = this.cellLineLookup.lookup(\"C30\");\n String sql = \"select * from prb_source where _source_key \" +\n \"= -20 and _cellLine_key = \" + C30.toString();\n ResultsNavigator nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records found\n String accid = \"T00313\";\n MSRawAttributes raw = new MSRawAttributes();\n raw.setOrganism(\"mouse, laboratory\");\n raw.setLibraryName(\"name2\");\n raw.setCellLine(\"C30\");\n Integer seqKey = new Integer(-300);\n msProcessor.processExistingSeqSrc(accid, seqKey, \"oldRaw\", raw);\n nav = sqlMgr.executeQuery(sql);\n assertTrue(!nav.next()); // assure no records still not found\n // the association should have changed\n sql = \"select _source_key from seq_source_assoc where \" +\n \"_sequence_key = -300\";\n nav = sqlMgr.executeQuery(sql);\n nav.next();\n assertEquals(nav.getRowReference().getInt(1), new Integer(-30));\n }", "public void approveAll() {\r\n\t\tif (readDocument != null) {\r\n\t\t\tif (incorrectWords.size() > 0) {\r\n\t\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\t\tObject[] incorrectWordsArray = incorrectWords.toArray();\r\n\t\t\t\tSystem.out.println(\"Would you like to add the following misspelled words to the dictionary?\");\r\n\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.println(incorrectWordsArray[i]);\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.print(\"(Y/N): \");\r\n\t\t\t\tString response = sc.next();\r\n\t\t\t\tif (response.equalsIgnoreCase(\"Y\")) {\r\n\t\t\t\t\tfor (int i = 0; i < incorrectWordsArray.length; i++) {\r\n\t\t\t\t\t\tdictionary.add((String)incorrectWordsArray[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tincorrectWords.clear();\r\n\t\t\t\t\tSystem.out.println(\"Your changes were made to the dictionary.\");\r\n\t\t\t\t\tmodified = true;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no misspelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}", "boolean hasChangeStatus();", "public boolean checkProgramChanged(){\r\n\t\tfor(int i = 0; i < paneCount(); i++) {\r\n\t\t\tif (!checkProgramChanged(i))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void check() throws XMLBuildException {\r\n\r\n\t}", "public void check() throws XMLBuildException {\r\n\r\n\t}", "void updateTags();", "private void updateTagsWithBuildInformation(String repository, List<Tag> tags, Tool tool) {\n try {\n final List<QuayBuild> builds = buildApi.getRepoBuilds(repository, null, Integer.MAX_VALUE).getBuilds();\n\n // Set up tags with build information\n for (Tag tag : tags) {\n // Set tag information based on build info\n for (QuayBuild build : builds) {\n final List<String> buildTags = build.getTags();\n // If build is for given tag\n if (buildTags.contains(tag.getName())) {\n // Find if tag has a git reference\n final QuayBuildTriggerMetadata triggerMetadata = build.getTriggerMetadata();\n if (triggerMetadata != null) {\n String ref = triggerMetadata.getRef();\n ref = parseReference(ref);\n tag.setReference(ref);\n tag.setAutomated(ref != null);\n } else {\n LOG.error(quayToken.getUsername() + \" : WARNING: trigger_metadata is NULL. Could not parse to get reference!\");\n }\n break;\n }\n }\n\n // Set up default descriptor paths\n tag.setCwlPath(tool.getDefaultCwlPath());\n tag.setWdlPath(tool.getDefaultWdlPath());\n\n // Set up default dockerfile path\n tag.setDockerfilePath(tool.getDefaultDockerfilePath());\n }\n } catch (ApiException e) {\n LOG.error(quayToken.getUsername() + \": could not process builds\");\n }\n }", "public int handleNeedMedia(String tagfile, String description, String sourcePath,\n String sourceFile);", "public void mergeChanges(Gateway src) {\n if (src.genClient.getChangeLog() != null) {\n genClient.mergeChanges(new Gateway(src).getJSONObject(), src.genClient);\n }\n }", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "private static INodeFile[] verifySrcFiles(FSDirectory fsd, String[] srcs,\n INodesInPath targetIIP, FSPermissionChecker pc) throws IOException {\n Set<INodeFile> si = new LinkedHashSet<>();\n final INodeFile targetINode = targetIIP.getLastINode().asFile();\n final INodeDirectory targetParent = targetINode.getParent();\n // now check the srcs\n for (String src : srcs) {\n final INodesInPath iip = fsd.getINodesInPath4Write(src);\n // permission check for srcs\n if (pc != null) {\n fsd.checkPathAccess(pc, iip, FsAction.READ); // read the file\n fsd.checkParentAccess(pc, iip, FsAction.WRITE); // for delete\n }\n\n final INode srcINode = iip.getLastINode();\n final INodeFile srcINodeFile = INodeFile.valueOf(srcINode, src);\n // make sure the src file and the target file are in the same dir\n if (srcINodeFile.getParent() != targetParent) {\n throw new HadoopIllegalArgumentException(\"Source file \" + src\n + \" is not in the same directory with the target \"\n + targetIIP.getPath());\n }\n // source file cannot be the same with the target file\n if (srcINode == targetINode) {\n throw new HadoopIllegalArgumentException(\"concat: the src file \" + src\n + \" is the same with the target file \" + targetIIP.getPath());\n }\n\n if(srcINodeFile.getStoragePolicyID() == HdfsConstants.DB_STORAGE_POLICY_ID) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is stored in DB.\");\n }\n\n // source file cannot be under construction or empty\n if(srcINodeFile.isUnderConstruction() || srcINodeFile.numBlocks() == 0) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" is invalid or empty or underConstruction\");\n }\n // source file's preferred block size cannot be greater than the target\n // file\n if (srcINodeFile.getPreferredBlockSize() >\n targetINode.getPreferredBlockSize()) {\n throw new HadoopIllegalArgumentException(\"concat: source file \" + src\n + \" has preferred block size \" + srcINodeFile.getPreferredBlockSize()\n + \" which is greater than the target file's preferred block size \"\n + targetINode.getPreferredBlockSize());\n }\n si.add(srcINodeFile);\n }\n \n // make sure no two files are the same\n if (si.size() < srcs.length) {\n // it means at least two files are the same\n throw new HadoopIllegalArgumentException(\n \"concat: at least two of the source files are the same\");\n }\n return si.toArray(new INodeFile[si.size()]);\n }", "public boolean isSource()\n\t{\n\t\treturn isSource;\n\t}", "public boolean containsChanges() {\n return genClient.containsChanges();\n }", "public void testViewDifferences() throws Exception {\n System.out.print(\".. Testing view differences ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node A_FileNode = new Node( filesystemNode, \"A_File [Locally Modified] (\" + userName + \")\");\n new Action(VERSIONING_MENU + \"|\" + DIFF, DIFF).perform(A_FileNode);\n TopComponentOperator editor = new TopComponentOperator(new EditorWindowOperator(), \"Diff: A_File.java\");\n JEditorPaneOperator headRevision = new JEditorPaneOperator(editor, 0);\n JEditorPaneOperator workingRevision = new JEditorPaneOperator(editor, 1);\n String headRevisionContents = \"/** This is testing file.\\n */\\n\\n public class Testing_File {\\n\\n }\\n\";\n String workingRevisionContents = \"/** This is testing A_File.java file.\\n */\\n\\n public class Testing_File {\\n int i;\\n }\\n\";\n if (!headRevisionContents.equals(headRevision.getText()) | !workingRevisionContents.equals(workingRevision.getText()))\n captureScreen(\"Error: Incorrect diff contents.\");\n StyledDocument headRevisionDocument = (StyledDocument) headRevision.getDocument();\n StyledDocument workingRevisionDocument = (StyledDocument) workingRevision.getDocument();\n Color headRevisionLine = (Color) headRevisionDocument.getLogicalStyle(1).getAttribute(StyleConstants.ColorConstants.Background);\n Color workingRevisionLine = (Color) workingRevisionDocument.getLogicalStyle(1).getAttribute(StyleConstants.ColorConstants.Background);\n if (!headRevisionLine.equals(MODIFIED_COLOR) | !workingRevisionLine.equals(MODIFIED_COLOR))\n captureScreen(\"Error: Incorrect color of modified line.\");\n int thirdLineHeadOffset = 30;\n int thirdLineWorkingOffset = 42;\n headRevisionLine = (Color) headRevisionDocument.getLogicalStyle(thirdLineHeadOffset).getAttribute(StyleConstants.ColorConstants.Background);\n Style lineStyle = workingRevisionDocument.getLogicalStyle(thirdLineWorkingOffset);\n if (!headRevisionLine.equals(REMOVED_COLOR) | (lineStyle != null))\n captureScreen(\"Error: Incorrect color of removed line.\");\n int fifthLineHeadOffset = 60;\n int fifthLineWorkingOffset = 72;\n lineStyle = headRevisionDocument.getLogicalStyle(fifthLineHeadOffset);\n workingRevisionLine = (Color) workingRevisionDocument.getLogicalStyle(fifthLineWorkingOffset).getAttribute(StyleConstants.ColorConstants.Background);\n if ((lineStyle != null) | !workingRevisionLine.equals(NEW_COLOR))\n captureScreen(\"Error: Incorrect color of new line.\");\n System.out.println(\". done !\");\n }", "private void checkReferences(DataStage dataStage, boolean useSourceType, Object result) {\n final List<TargetInternalReference> references = new ArrayList<>();\n Helpers.collectAllTargetInternalReferences(result, references);\n Map<String, Boolean> cachedReferences = new HashMap<>();\n references.forEach(t -> {\n boolean reset = false;\n if (t.getReference() != null) {\n final Boolean fromCache = cachedReferences.get(t.getReference());\n if(fromCache !=null){\n if(fromCache){\n reset = true;\n }\n }\n else {\n TargetInstance reference = null;\n try {\n final List<String> typesOfReference = kgV3.getTypesOfInstance(t.getReference(), DataStage.IN_PROGRESS, false);\n if (typesOfReference != null) {\n final TranslatorModel<?, ?> referenceTranslatorModel = TranslatorModel.MODELS.stream().filter(m -> m.getV3translator() != null && m.getV3translator().semanticTypes().stream().anyMatch(typesOfReference::contains)).findFirst().orElse(null);\n if (referenceTranslatorModel != null) {\n final String referenceQueryId = typesOfReference.stream().map(type -> referenceTranslatorModel.getV3translator().getQueryIdByType(type)).findFirst().orElse(null);\n reference = translateTargetInstance(dataStage, useSourceType, t, reference, referenceTranslatorModel, referenceQueryId);\n }\n }\n reset = reference == null;\n cachedReferences.put(t.getReference(), reset);\n } catch (WebClientResponseException ignored) {\n logger.error(\"A web client exception occurred - ignoring\");\n }\n }\n }\n if (reset) {\n t.setReference(null);\n }\n });\n }", "public final boolean hasSourceRangeInfo() {\r\n \t\treturn this.sourceStart != -1;\r\n \t}", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof EditSourceDescriptor)) {\n return false;\n }\n\n // state check\n EditSourceDescriptor e = (EditSourceDescriptor) other;\n\n return getTitle().equals(e.getTitle())\n && getType().equals(e.getType())\n && getAuthor().equals(e.getAuthor())\n && getDetails().equals(e.getDetails())\n && getTags().equals(e.getTags());\n }", "public void printModified() {\n System.out.println(\"\\n\"\n + \"=== Modifications Not Staged For Commit ===\");\n }", "boolean hasNotes();", "private void cleanupRawTags(ArrayList p_tags)\n {\n // Find the paired tags that belong together.\n // !!! DO NOT RELY ON PAIRING STATUS. Some prop changes start\n // after <seg> but close after </seg> and even after </tu>!!!\n assignPairingStatus(p_tags);\n\n // Basic cleanup: remove surrounding <p> and inner <o:p>\n removeParagraphTags(p_tags);\n\n // Remove revision markers when they were ON accidentally\n // before translating documents or during an alignment task\n // (WinAlign).\n removePropRevisionMarkers(p_tags);\n\n // Cleanup INS/DEL revisions similarly.\n removeDelRevisions(p_tags);\n applyInsRevisions(p_tags);\n\n // WinAligned files can contain endnotes (and footnotes, but I\n // think in Word-HTML they're both endnotes).\n removeEndNotes(p_tags);\n\n // Remove empty spans that are created from superfluous\n // original formatting in Word (<span color=blue></span>)\n removeEmptyFormatting(p_tags);\n\n // Leave the rest to the Word-HTML Extractor.\n }", "private void recordChangedResources(IResourceDelta delta) throws CoreException {\n \t\tchangedResources.clear();\n \t\tif (delta == null)\n \t\t\treturn;\n \t\tdelta.accept(new IResourceDeltaVisitor() {\n \t\t\t/*\n \t\t\t * @see IResourceDeltaVisitor#visit(IResourceDelta)\n \t\t\t */\n \t\t\tpublic boolean visit(IResourceDelta delta) throws CoreException {\n \t\t\t\tchangedResources.add(delta.getResource());\n \t\t\t\treturn true;\n \t\t\t}\n \t\t});\n \t}", "@Test\n\tpublic void testValidateUpdateTargetWithValidQuery1() {\n\t\tupdates.add(mockAssetView(\"target\", DefaultRuleAssetValidator.SEARCH_PAGES));\n\t\tupdates.add(mockAssetView(\"query\", \"validQuery\"));\t\t\n\t\tdefaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n\t\tverify(assetService, never()).addError(anyString(), anyString());\t\t\n\t}", "private Boolean isLiveModifiedFromProxies(DocumentModel liveDoc) {\n Boolean isModified = Boolean.TRUE;\n\n PublisherService publisherService = Framework.getService(PublisherService.class);\n Map<String, String> availablePublicationTrees = publisherService.getAvailablePublicationTrees();\n\n if (MapUtils.isNotEmpty(availablePublicationTrees)) {\n for (Entry<String, String> treeInfo : availablePublicationTrees.entrySet()) {\n String treeName = treeInfo.getKey();\n\n PublicationTree tree = publisherService.getPublicationTree(treeName, this.session, null);\n List<PublishedDocument> publishedDocuments = tree.getExistingPublishedDocument(new DocumentLocationImpl(this.document));\n\n for (PublishedDocument publishedDoc : publishedDocuments) {\n DocumentModel proxy = ((SimpleCorePublishedDocument) publishedDoc).getProxy();\n if (liveDoc.getVersionLabel().equals(proxy.getVersionLabel())) {\n isModified &= Boolean.FALSE;\n }\n }\n\n }\n }\n\n return isModified;\n }", "@Test\n void testCreateAndUpdateOnlyReportErrorsIfItAddsNewInformation() {\n\n Setup setup =\n new Setup.Builder()\n .trackedEntity(\"xK7H53f4Hc2\")\n .isNotValid()\n .enrollment(\"t1zaUjKgT3p\")\n .isNotValid()\n .relationship(\"Te3IC6TpnBB\", trackedEntity(\"xK7H53f4Hc2\"), enrollment(\"t1zaUjKgT3p\"))\n .isNotValid()\n .build();\n\n PersistablesFilter.Result persistable =\n filter(setup.bundle, setup.invalidEntities, TrackerImportStrategy.CREATE_AND_UPDATE);\n\n assertAll(\n () -> assertIsEmpty(persistable.get(TrackedEntity.class)),\n () -> assertIsEmpty(persistable.get(Enrollment.class)),\n () -> assertIsEmpty(persistable.get(Relationship.class)),\n () -> assertIsEmpty(persistable.getErrors()));\n }", "public void isChanged()\n\t{\n\t\tchange = true;\n\t}", "private boolean isChangedOdoReading(MaintenanceRequest po){\n\t\tboolean isDiff = false;\n\t\tOdometerReading odoReading = null;\n\t\t\n\t\tif(!MALUtilities.isEmpty(po.getCurrentOdo())){\n\t\t\todoReading = odometerService.getOdometerReading(po);\t\t\t\n\t\t\tif(MALUtilities.isEmpty(odoReading)){\n\t\t\t\tisDiff = true;\n\t\t\t} else {\n\t\t\t\tif(po.getCurrentOdo() != odoReading.getReading() || !po.getActualStartDate().equals(odoReading.getReadingDate())){\n\t\t\t\t\tisDiff = true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isDiff;\n\t}", "protected void auditPreview() {\n\t\t// Log the preview if not Java\n\t\tif (currentViewer != null && !currentViewer.equals(\"Java\")) { //$NON-NLS-1$\n\t\t\tJaspersoftStudioPlugin.getInstance().getUsageManager().audit(currentViewer,\n\t\t\t\t\tUsageStatisticsIDs.CATEGORY_PREVIEW_FORMAT);\n\t\t\t// Log the language used by the report\n\t\t\tif (jrContext != null && jrContext.getJasperDesign() != null) {\n\t\t\t\tString reportLanguage = jrContext.getJasperDesign().getLanguage();\n\t\t\t\tif (reportLanguage != null) {\n\t\t\t\t\tJaspersoftStudioPlugin.getInstance().getUsageManager().audit(\"ReportLanguage\" + reportLanguage, //$NON-NLS-1$\n\t\t\t\t\t\t\tUsageStatisticsIDs.CATEGORY_REPORT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void checkSrcVsDest(String srcWrd, String targetWrd)\n\t{\n\t\tif(srcWrd == targetWrd)\n\t\t{\n\t\t\tSystem.out.println(srcWrd + \" - \" + targetWrd);\n\t\t\tSystem.out.println(\"Word Ladder done\");\n\t\t\tuserInter.optionSelect();\n\t\t}\n\t}", "private void syncSources(String name) {\n TemplateSourceInfo info = (TemplateSourceInfo)mTemplateMap.get(name);\n Unit compUnit = (Unit)this.getCompilationUnit(name,null);\n File destFile = compUnit.getDestinationFile();\n if (destFile != null) {\n destFile.setLastModified(info.timestamp);\n }\n }" ]
[ "0.5696173", "0.547817", "0.53199655", "0.53188354", "0.52897364", "0.52509356", "0.5231383", "0.522864", "0.5147623", "0.5116071", "0.51149523", "0.51104087", "0.5079456", "0.50596553", "0.5044231", "0.5023763", "0.5023461", "0.50053144", "0.49879694", "0.4962661", "0.49554107", "0.49552876", "0.492796", "0.4907436", "0.4903167", "0.48968843", "0.48936144", "0.4887844", "0.48828125", "0.48737982", "0.48661664", "0.48655525", "0.48499563", "0.48466912", "0.48397312", "0.48335907", "0.4832706", "0.48301622", "0.48293355", "0.48273718", "0.4753848", "0.4749484", "0.47479337", "0.47410685", "0.4733358", "0.47259954", "0.4690766", "0.46846378", "0.46773627", "0.46752703", "0.46746835", "0.46725196", "0.46725196", "0.4666924", "0.46622998", "0.46525353", "0.46503916", "0.46408972", "0.46332666", "0.46257067", "0.46257067", "0.4620851", "0.4619317", "0.46118477", "0.4594618", "0.45714092", "0.4559078", "0.45571566", "0.45553482", "0.45489097", "0.45487434", "0.45417225", "0.45401463", "0.45384076", "0.4528346", "0.45213223", "0.45213223", "0.45202187", "0.45131868", "0.45107266", "0.45063987", "0.4498378", "0.4498159", "0.44904584", "0.44898018", "0.44894573", "0.4486521", "0.44825", "0.44797713", "0.44791767", "0.4476229", "0.44730073", "0.44720516", "0.44700179", "0.44563332", "0.4454907", "0.44534618", "0.4452232", "0.4451224", "0.44487095", "0.44470963" ]
0.0
-1
Checks for new stock tags and add them to the database.
protected void saveStockTags( final D originalDTO, final D newDTO ) { final String methodName = "saveStockTags"; logMethodBegin( methodName, originalDTO, newDTO ); final TagsContainer container = (TagsContainer)originalDTO; this.stockTagService.saveStockTags( UUIDUtil.uuid( container.getCustomerId() ), container.getTickerSymbol(), container.getStockTagReferenceType(), UUIDUtil.uuid( newDTO.getId() ), container.getTags() ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean addTag(String newTag) {\n if (tags.contains(newTag)){\n return false;\n }\n tags.add(newTag);\n saveTags();\n return true;\n }", "@Override\n\tpublic void saveTag(Tag newTag) throws Exception {\n\n\t}", "List<Tag> saveTags(String tags);", "void addTag(String tag){tags.add(tag);}", "void insertOrUpdate(StockList stockList) throws Exception;", "void updateTags();", "@Override\n\tpublic void addInStock(Stock s) {\n\t\n\t}", "stockFilePT102.StockDocument.Stock insertNewStock(int i);", "public void addTags(Tag[] newTags){\r\n\t\tString tagName;\r\n\t\tfor (int i = 0; i < newTags.length; i++){\r\n\t\t\ttagName = newTags[i].getName();\r\n\t\t\tif (!tags.containsKey(tagName)){ //checks if photo is already tagged with the tag\r\n\t\t\t\ttags.put(tagName, newTags[i]);\r\n\t\t\t\taddObserver(newTags[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetName();\r\n\t}", "public void addNew() {\n\t\t\n\t\tTag t = new Tag();\n\t\tt.setName(name);\n\t\tt.setColor(color);\n\t\t\n\t\tDAO.getInstance().addTag(t);\n\t\t\n\t\tname = null;\n\t\tcolor = null;\n\t\t\n\t}", "public void save(Tags tags) {\n tagsDao.save(tags);\n }", "public void validateAdd(Stock s){\n Set<String> stock_symbols_set = new HashSet<>();\n for(Stock stock: stockList){\n stock_symbols_set.add(stock.getStockSymbol());\n }\n if(stock_symbols_set.contains(s.getStockSymbol())){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setIcon(R.drawable.baseline_warning_black_36);\n builder.setMessage(\"Stock Symbol \" + s.getStockSymbol() + \" is already displayed. \");\n builder.setTitle(\"Duplicate Stock\");\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n else{\n stockList.add(s);\n //keep the list in alphabetical order\n Collections.sort(stockList, new Comparator<Stock>() {\n @Override\n public int compare(Stock t1, Stock t2) {\n return t1.getStockSymbol().compareTo(t2.getStockSymbol());\n }\n });\n\n writeJSONData();\n myAdapter.notifyDataSetChanged();\n }\n }", "public void loadTag(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Tag \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"relatedtag\");\n\t\t\t\t\ttag.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}", "public void addTag(String tag) {\n\n\t\t//\n\t\t// check if it already exists\n\t\t//\n\t\tif (getTagId(tag) != -1)\n\t\t\treturn;\n\n\t\t//\n\t\t// construct new content values\n\t\t//\n\t\tContentValues values = new ContentValues();\n\n\t\t//\n\t\t// put file path into it\n\t\t//\n\t\tvalues.put(TAG_FIELD_NAME, tag);\n\n\t\t//\n\t\t// construct date format\n\t\t//\n\t\tSimpleDateFormat date_format = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd HH:mm:ss\");\n\n\t\t//\n\t\t// format date\n\t\t//\n\t\tString date = date_format.format(new Date());\n\n\t\t//\n\t\t// insert date\n\t\t//\n\t\tvalues.put(TAG_FIELD_CREATE_DATE, date);\n\n\t\t//\n\t\t// set reference count to one\n\t\t//\n\t\tvalues.put(TAG_FIELD_USAGE, new Integer(1));\n\n\t\t//\n\t\t// now execute the insert\n\t\t//\n\t\tlong rows_affected = m_db.insert(TAG_TABLE_NAME, null, values);\n\n\t\t//\n\t\t// informal debug message\n\t\t//\n\t\tLogger.i(\"DBManager::addTag> Date: \" + date + \" rows_affected: \"\n\t\t\t\t+ rows_affected);\n\t}", "stockFilePT102.StockDocument.Stock addNewStock();", "public void addTags(String spid, List<Tag> tagList) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tsuper.modifyTags(PERFORMERS_TAGS_NEW, spid, tagList);\n\t}", "public void add(Stock stock) {\n\t\tif(!isExist(stock.getSymbol())) {\n\t\t\tmItems.add(stock);\t\t\n\t\t\tnotifyDataSetChanged();\n\t\t}\n\t}", "public void addStock(Stock stock) throws StockAlreadyExistsException, PortfolioFullException {\r\n\t\tboolean doesStockExists = false;\r\n\r\n\t\tfor (int i = 0; i < portfolioSize; i++){\r\n\t\t\tif (stockStatus[i].getSymbol().equals(stock.getSymbol())){\r\n\t\t\t\tdoesStockExists = true;\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\tif (portfolioSize >= MAX_PORTFOLIO_SIZE){\r\n\t\t\tthrow new PortfolioFullException();\r\n\t\t}\r\n\t\telse if (doesStockExists == true){\r\n\t\t\tthrow new StockAlreadyExistsException(stock.getSymbol());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tstockStatus[portfolioSize] = new StockStatus(stock.getSymbol(), stock.getAsk(),stock.getBid(), stock.getDate(), ALGO_RECOMMENDATION.DO_NOTHING, 0);\r\n\t\t\tthis.portfolioSize++;\r\n\t\t}\r\n\t}", "public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void updateToNBTTagStorage () {\r\n\t\t// no book saved?\r\n\t\tif (storage.getBoolean(\"isBook\") == null || storage.getBoolean(\"isBook\") == false)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tNBTTagCompound\ttag\t\t= new NBTTagCompound();\r\n\t\tString \t\t\tauthor\t= storage.getString\t(\"book-author\"\t);\r\n\t\tString\t\t\ttitle\t= storage.getString\t(\"book-title\"\t);\r\n\t\tint\t\t\t\tpages\t= storage.getInteger(\"book-pages\"\t);\r\n\t\tNBTTagList\t\tlist\t= new NBTTagList();\r\n\t\t\r\n\t\tfor (int i = 0; i < pages; i++) {\r\n\t\t\tString\t\t\tsiteContent\t= storage.getString(\"book-page-\"+i);\r\n\t\t\tNBTTagString\ttString\t\t= new NBTTagString(siteContent);\r\n\t\t\t\r\n\t\t\ttString.data\t= siteContent;\r\n\t\t\t\r\n\t\t\tlist.add(tString);\r\n\t\t}\r\n\t\t\r\n\t\ttag.setString\t(\"author\", \tauthor);\r\n\t\ttag.setString\t(\"title\",\ttitle);\r\n\t\ttag.set\t\t\t(\"pages\", \tlist);\r\n\t\tsetNBTTagCompound(tag);\r\n\t}", "public void dailyInventoryCheck(){\n\n\t\tint i;\n\t\tStock tempStock, tempRestockTracker;\n\t\tint listSizeInventory = this.inventory.size();\n\t\tfor(i = 0; i < listSizeInventory; i++){\n\n\t\t\t\tif(this.inventory.get(i).getStock() == 0){\n\t\t\t\t\t//If stock is 0 add 1 to the out of stock counnter then reset it to the inventory level\n\t\t\t\t\tthis.inventory.get(i).setStock(inventoryLevel);\n\t\t\t\t\tthis.inventoryOrdersDone.get(i).addStock(1);\n\t\t\t\t\t//inventoryOrdersDone.set(i,tempRestockTracker);\n\t\t\t\t\t//tempStock.setStock(inventoryLevel);\n\t\t\t\t\t//this.inventory.set(i,tempStock);\n\t\t\t\t}\n\t\t\t}\n\n\t}", "@Override\n\tpublic int create(Tags tag) {\n\t\tentityMgr.persist(tag);\n\t\treturn 0;\n\t}", "public void addTag(String t) {\n\t\tif (!tagList.containsKey(t)) {\n\t\t\ttagList.put(t, 0);\n\t\t} else {\n\t\t\tSystem.out.print(\"Tag already exists!\");\n\t\t}\n\t}", "public void addToStockManager(Stock stock){\n this.stockAnalyzer.addStock(stock);\n }", "public void createNewStock(Stock stock) throws DuplicateEntry, InvalidDateEntry {\n\t\tif (!validateDate(stock.getDate())) {\n\t\t\tlog.error(\"Date entered is a future date for:\" + stock.getStock() + \"date given : \" + stock.getDate());\n\t\t\tthrow new InvalidDateEntry(\n\t\t\t\t\t\"Date entered is a future date for: \" + stock.getStock() + \" date given : \" + stock.getDate());\n\t\t}\n\n\t\tif (checkForDuplicates(new StockId(stock.getStock(), stock.getDate()))) {\n\t\t\tlog.error(\"Duplcate Record for :\" + stock.getStock() + \"on \" + stock.getDate());\n\t\t\tthrow new DuplicateEntry(\"Duplcate Record for : \" + stock.getStock() + \" on \" + stock.getDate());\n\t\t}\n\n\t\tstockRepo.save(stock);\n\n\t}", "Update withTags(Object tags);", "public void pushTag(String tag){\n\t\t\n\t\ttagArray.add(tag);\n\t\t\n\t}", "public void addTag(String table, int id, String tag) throws SQLException {\n\t\tquery = \"UPDATE \" + table + \" SET tag='\" + tag + \"' WHERE id=\" + id;\n\t\tstmt.execute(query);\n\t\tif(table.equals(\"publication\")) {\n\t\t\tquery = \"UPDATE dance SET tag='\" + tag + \"' WHERE id in \"\n\t\t\t\t\t+ \"(SELECT dance_id FROM dancespublicationsmap WHERE publication_id=\" + id + \")\";\n\t\t\tstmt.execute(query);\n\t\t} else if(table.equals(\"album\")) {\n\t\t\tquery = \"UPDATE recording SET tag='\" + tag + \"' WHERE id in \"\n\t\t\t\t\t+ \"(SELECT recording_id FROM albumsrecordingsmap WHERE album_id=\" + id + \")\";\n\t\t\tstmt.execute(query);\n\t\t}\n\t}", "protected boolean addNewStockToMarket(String tickerSymbol, double sharePrice){\r\n if(stocksSymbolToPrice.containsKey(tickerSymbol)){\r\n return false;\r\n }\r\n //if the stock is already listed, return false\r\n //otherwise, add the key-value pair to the stocksSymbolToPrice map and return true;\r\n stocksSymbolToPrice.put(tickerSymbol, sharePrice);\r\n return true;\r\n }", "private void saveTags() {\n SavedFolders.editFolder(this.folder);\n }", "public void insertOrderedItems(TireList orderedItems){\n for(int i=0; i<orderedItems.listSize(); i++){\n int temp = Integer.parseInt(orderedItems.getTire(i).getStock()) - orderedItems.getTire(i).getQuantity();\n orderedItems.getTire(i).setStock(temp + \"\");\n orderedItems.getTire(i).updateTire();\n sql=\"Insert into OrderedItems (OrderID, TireID, Quantity) VALUES ('\"+newID+\"','\"+orderedItems.getTire(i).getStockID()+\"',\"+orderedItems.getTire(i).getQuantity()+\")\";\n db.insertDB(sql); \n }\n }", "public void checkForTag(int i) {\n if (wordsOfInput[i].indexOf('#') == 0) {\n if ((!containsStartDate || !containsStartTime) && index > i) {\n index = i;\n tpsIndex = i;\n }\n String tag = wordsOfInput[i].substring(1);\n tags.add(tag);\n }\n }", "@Override\n\tpublic void updateStock(Stock s) {\n\n\t\ttry {\n\t String sql = \"INSERT or Replace into stockTable (hlr,sim,card,easyL,easyLR,easyP,easyPR,cash) \"\n\t \t\t+ \"VALUES (?,?,?,?,?,?,?,?)\";\n\t \n\t prepStmt = connection.prepareStatement(sql);\n\t prepStmt.setInt(1, s.getHlr());\n\t prepStmt.setInt(2, s.getSim());\n\t prepStmt.setInt(3, s.getCard());\n\t prepStmt.setInt(4, s.getEasyLoad());\n\t prepStmt.setInt(5, s.getEasyLoadReturn());\n\t prepStmt.setInt(6, s.getEasyPaisa());\n\t prepStmt.setInt(7, s.getEasyPaisaReturn());\n\t prepStmt.setInt(8,s.getCash());\n\t \t\t \n\t prepStmt.executeUpdate();\n\t \n\n\t System.out.println(\">>> Successfully insert query working\"); \n\t } catch (SQLException ex) {\n \n\t \t System.out.println(\"*** Error: insert query is not working\");\n\t \t ex.printStackTrace();\n\t \t \n\t }\n\t\t\n\t\t\n\t}", "protected void addTag(String title) {\n\t\tReaderDataBase.insertDataBase(this, title, mFilenameString,\n\t\t\t\tBookPageFactory.sPercent);\n\t}", "public void addTag(String singleTag) {\n \t\tif (!this.tags.contains(singleTag))\n \t\t\tthis.tags.add(singleTag);\n \t}", "public void buildStocks(List<String[]> stockData){\n for(int i = 0; i < stockData.size(); i++){\n this.addToStockManager(this.buildStock(i, stockData)); \n }\n }", "public void populateTags(List<Drop> drops, Account queryingAccount) {\n \n \t\tList<Long> dropIds = new ArrayList<Long>();\n \t\tfor (Drop drop : drops) {\n \t\t\tdropIds.add(drop.getId());\n \t\t}\n \n \t\tString sql = \"SELECT `droplet_id`, `tag_id` AS `id`, `tag`, `tag_canonical`, `tag_type` \";\n \t\tsql += \"FROM `droplets_tags` \";\n \t\tsql += \"INNER JOIN `tags` ON (`tags`.`id` = `tag_id`) \";\n \t\tsql += \"WHERE `droplet_id` IN :drop_ids \";\n \t\tsql += \"AND `tags`.`id` NOT IN ( \";\n \t\tsql += \"\tSELECT `tag_id` FROM `account_droplet_tags` \";\n \t\tsql += \"\tWHERE `account_id` = :account_id \";\n \t\tsql += \"\tAND `droplet_id` IN :drop_ids \";\n \t\tsql += \"\tAND `deleted` = 1) \";\n \t\tsql += \"UNION ALL \";\n \t\tsql += \"SELECT `droplet_id`, `tag_id` AS `id`, `tag`, `tag_canonical`, `tag_type` \";\n \t\tsql += \"FROM `account_droplet_tags` \";\n \t\tsql += \"INNER JOIN `tags` ON (`tags`.`id` = `tag_id`) \";\n \t\tsql += \"WHERE `droplet_id` IN :drop_ids \";\n \t\tsql += \"AND `account_id` = :account_id \";\n \t\tsql += \"AND `deleted` = 0 \";\n \n \t\tQuery query = em.createNativeQuery(sql);\n \t\tquery.setParameter(\"drop_ids\", dropIds);\n \t\tquery.setParameter(\"account_id\", queryingAccount.getId());\n \n \t\t// Group the tags by drop id\n \t\tMap<Long, List<Tag>> tags = new HashMap<Long, List<Tag>>();\n \t\tfor (Object oRow : query.getResultList()) {\n \t\t\tObject[] r = (Object[]) oRow;\n \n \t\t\tLong dropId = ((BigInteger) r[0]).longValue();\n \t\t\tTag tag = new Tag();\n \t\t\ttag.setId(((BigInteger) r[1]).longValue());\n \t\t\ttag.setTag((String) r[2]);\n \t\t\ttag.setType((String) r[4]);\n \n \t\t\tList<Tag> t = tags.get(dropId);\n \t\t\tif (t == null) {\n \t\t\t\tt = new ArrayList<Tag>();\n \t\t\t\ttags.put(dropId, t);\n \t\t\t}\n \n \t\t\tt.add(tag);\n \t\t}\n \n \t\tfor (Drop drop : drops) {\n \t\t\tList<Tag> t = tags.get(drop.getId());\n \n \t\t\tif (t != null) {\n \t\t\t\tdrop.setTags(t);\n \t\t\t} else {\n \t\t\t\tdrop.setTags(new ArrayList<Tag>());\n \t\t\t}\n \t\t}\n \n \t}", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private void processAddons() {\r\n for (Addon addon : rows) {\r\n for (String tag : addon.getTags()) {\r\n if (!tags.containsKey(tag)) {\r\n tags.put(tag, new Tag(tag, listener));\r\n }\r\n tags.get(tag).addMember(addon);\r\n if (!tagNames.contains(tag)) {\r\n tagNames.add(tag);\r\n }\r\n }\r\n }\r\n }", "public void setTags(String tags) {\n this.tags = tags;\n }", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void makeTag(String query, String tag) {\n\t\t\n\t\tString Originalquery = savedSearches.getString(tag, null);\n\t\t\n\t\t// Getting Sharedprefernces.editor to store new tag/query pair\n\t\tSharedPreferences.Editor preferncesEditor = savedSearches.edit();\n\t\tpreferncesEditor.putString(tag, query);\n\t\tpreferncesEditor.apply(); // Stores the updated prefernces\n\t\t\n\t\tif (Originalquery==null) {\n\t\t\trefreshButtons(tag); // Adds new button for this tag\n\t\t}\n\t\t\n\t\t\n\t}", "public static void addToProductTagsArrayList(String productID, String date, String productTagHash,\n String previousProductTagHash, String lat, String lon, String actions,\n String certificates, String productTagActions, String producerName) {\n\n MapDataModel mapDataModel = new MapDataModel();\n\n mapDataModel.setProductId(Integer.parseInt(productID));\n mapDataModel.setDateTime(date);\n mapDataModel.setCurrHash(productTagHash);\n mapDataModel.setPreHash(previousProductTagHash);\n mapDataModel.setLat(Double.parseDouble(lat));\n mapDataModel.setLng(Double.parseDouble(lon));\n mapDataModel.setActions(actions);\n mapDataModel.setCertificates(certificates);\n mapDataModel.setProductTagActions(productTagActions);\n mapDataModel.setProducerName(producerName);\n\n allMapData.add(mapDataModel);\n\n }", "public void createTags(String[][] tagsData) {\t\t\n\t\tdConsole.getTagsTitle.click();\n\t\t/*String[][] tagsData = getData(\"TestData.xls\", \"TagsSheet\");*/\n\t\tfor (int i = 0; i < tagsData.length; i++) {\t\t\t\n\t\t\tfor (int j = 0; j <=1; j++) {\t\t\t\t\n\t\t\t\tif(j==0) {\n\t\t\t\t\tdConsole.getTagKeyCheckBox(Integer.toString(i+1)).sendKeys(tagsData[i][j]);\n\t\t\t\t\tdConsole.getValueLabel.click();\n\t\t\t\t} else if (j==1) {\n\t\t\t\t\tdConsole.getTagValueCheckBox(Integer.toString(i+1)).sendKeys(tagsData[i][j]);\n\t\t\t\t\tdConsole.getValueLabel.click();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i<tagsData.length-1) {\n\t\t\t\tdConsole.getAddNewLink.click();\n\t\t\t}\n\t\t}\t\t\n\t}", "private void saveMissingTagAndBiGram(){\n BiGram newBiGram;\n for(Tag tag1 : Tag.values()){\n if(!tagMap.containsKey(tag1))\n tagMap.put(tag1, (long)1);\n for (Tag tag2 :Tag.values()){\n newBiGram = new BiGram(tag1, tag2);\n if(!biGramMap.containsKey(newBiGram))\n biGramMap.put(newBiGram, (long)1);\n }\n }\n }", "public void AddKeywords()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < keywords.size(); i++)\n\t\t\t{\n\t\t\t\tString keyword = keywords.get(i); \n\t\t\t\t\n\t\t\t\tint kid = GetKIDFromWord(keyword); \n\t\t\t\t\n\t\t\t\t//word is not already in table\n\t\t\t\tif(kid == -1)\n\t\t\t\t{\n\t\t\t\t\t//insert word into Keywords \n\t\t\t\t\tSystem.out.println(\"test\"); \n\t\t\t\t\tquery = \"INSERT INTO Keywords(word) VALUE ('\"+keyword+\"')\"; \n\t\t\t \tint intoTable = con.stmt.executeUpdate(query); \n\t\t\t \t\n\t\t\t \t//able to put it in the table\n\t\t\t \tif(intoTable > 0)\n\t\t\t \t{\n\t\t\t \t\t//insert into HasKeywords\n\t\t\t\t \tkid = GetKIDFromWord(keyword); \n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//word is already in table\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tList<Integer> hkCheck = GetHIDSFromKID(kid);\n\t\t\t\t\t\n\t\t\t\t\tboolean inHKTable = false; \n\t\t\t\t\tfor(int j = 0; j < hkCheck.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(hkCheck.get(j) == hid)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinHKTable = true; \n\t\t\t\t\t\t\tbreak; \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(inHKTable == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tquery = \"INSERT INTO HasKeywords(keyword_hid, keyword_kid) VALUE('\"+hid+\"', '\"+kid+\"')\";\n\t\t\t\t \tint hasKey = con.stmt.executeUpdate(query); \n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "int insertSelective(ItemStockDO record);", "@Override\r\n\tpublic StockResponseModel stockAdded(StockRequestModel stockRequestModel) {\n\t\tStockResponseModel response = new StockResponseModel();\r\n\r\n\t\tboolean isIDExits = CommonUtills.idExistOrNot(stockRequestModel);\r\n\t\tif(!isIDExits)\r\n\t\t{\r\n\t\t\tStockEntities stockEntity = new StockEntities();\r\n\t\t\tstockEntity = CommonUtills.mapConvert(stockRequestModel, stockEntity);\r\n\t\t\t\r\n\t\t\tstockRepository.save(stockEntity);\r\n\t\t\t\tresponse.setResponseCode(HttpStatus.CREATED.toString());\r\n\t\t\t\tresponse.setResponseMsg(HttpStatus.CREATED.getReasonPhrase());\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tresponse.setResponseCode(HttpStatus.CONFLICT.toString());\r\n\t\t\tresponse.setResponseMsg(\"Stock ID Already Exists\");\r\n\t\t}\r\n\t\t\r\n\t\treturn response;\r\n\t}", "public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner scanner;\n\t\t\ttry {\n\t\t\t\tscanner = new Scanner(this.dataURL.openStream());\n\t\t\t\twhile (scanner.hasNextLine())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tscanner\n\t\t\t\t\t\t\t\t.findInLine(Pattern\n\t\t\t\t\t\t\t\t\t\t.compile(\"([0-9.]*),\\\"([0-9a-zA-Z._-]*)\\\",\\\"([a-zA-Z._\\\\s-]*)\\\"\"));\n\t\t\t\t\t\tfinal MatchResult result = scanner.match();\n\t\t\t\t\t\tboolean found = false;\n\t\t\t\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\t\t\t\tif (company.getCompanySymbol().equals(\n\t\t\t\t\t\t\t\t\tresult.group(2))) {\n\t\t\t\t\t\t\t\tfinal Double stockPrice = Double\n\t\t\t\t\t\t\t\t\t\t.parseDouble(result.group(1));\n\t\t\t\t\t\t\t\tcompany.setStockPrice(stockPrice);\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!found)\n\t\t\t\t\t\t\tStockBrokerImpl.this.stockData\n\t\t\t\t\t\t\t\t\t.add(new StockCompany(result.group(3),\n\t\t\t\t\t\t\t\t\t\t\tresult.group(2), Double\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parseDouble(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.group(1))));\n\n\t\t\t\t\t\tscanner.nextLine();\n\n\t\t\t\t\t} catch (final NumberFormatException e) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"CRITICAL ERROR: Update data corrupted. [Virtually impossible]\");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"ERROR: Connection to stock price update feed could not be established.\");\n\t\t\t}\n\t\t}", "public void buyStock(Stock stock) {\n\t\tportfolio.add(stock);\n\t}", "stockFilePT102.StockFileDocument.StockFile addNewStockFile();", "public Set<Tag> persistTagList(Set<Tag> tags) {\n\n if (null == tags) {\n return null;\n }\n\n Set<Tag> persistTags = new HashSet<>();\n\n for (Tag tag : tags) {\n Tag savedTag = tagRepository.findAllByValue(tag.getValue());\n\n if (null == savedTag) {\n savedTag = tagRepository.save(tag);\n }\n\n persistTags.add(savedTag);\n }\n\n return persistTags;\n }", "public void add(Stock s)\n {\n stocks.add(s);\n }", "public void addIHaveTagColumns() throws SQLException {\n\t\tstmt.execute(\"ALTER TABLE dance ADD ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE dance ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t\tstmt.execute(\"ALTER TABLE album ADD COLUMN ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE album ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t\tstmt.execute(\"ALTER TABLE publication ADD COLUMN ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE publication ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t\tstmt.execute(\"ALTER TABLE recording ADD COLUMN ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE recording ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t}", "public void AddAvailableDates()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < openDates.size(); i++)\n\t\t\t{\n\t\t\t\tboolean inTable = CheckAvailableDate(openDates.get(i)); \n\t\t\t\tif(inTable == false)\n\t\t\t\t{\n\t\t\t\t\tquery = \"INSERT INTO Available(available_hid, price_per_night, startDate, endDate)\"\n\t\t\t\t\t\t\t+\" VALUE(\"+hid+\", \"+price+\", '\"+openDates.get(i).stringStart+\"', '\"+openDates.get(i).stringEnd+\"')\";\n\t\t\t\t\tint result = con.stmt.executeUpdate(query); \n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic boolean create(TagsReq entity) {\n\t\tTags tags = new Tags();\n\t\ttags.setTagName(entity.getTagName());\n\t\tTagsRes.save(tags);\n\t\treturn true;\n\t}", "private void refreshStock(){\n storeStock = sysMgr.getStock(sysMgr.getLoginId());\n ArrayList<Stock> nonEmpty = new ArrayList<>();\n for(Stock i : storeStock)\n if(i.getQuantity() != 0)\n nonEmpty.add(i);\n storeStock = nonEmpty;\n }", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "private void loadOldTags() throws IOException {\n File fileAnnotation = new File(filePathAnnDestination);\n if (!fileAnnotation.exists()) {\n fileAnnotation.createNewFile();\n }\n FileReader fr = new FileReader(fileAnnotation);\n\n\n\n\n BufferedReader br = new BufferedReader(fr);\n String line;\n\n while ((line = br.readLine()) != null) {\n String[] annotations = line.split(\"[ \\t]\");\n String word = line.substring(line.lastIndexOf('\\t') + 1);\n String[] words = word.split(\" \");\n\n int start = Integer.parseInt(annotations[2]);\n if (words.length != 0) {\n for (int i = 0; i < words.length; i++) {\n int end = start + words[i].length();\n taggedItems.put(start + \"-\" + end, annotations[1]);\n System.out.println(\"Loading old tags: \" + start + \"-\" + end + \"\\t\" + annotations[1]);\n start = end + 1;\n }\n }\n taggedItems.put(annotations[2] + \"-\" + annotations[3], annotations[1]);\n\n noOfTagsAlready = Integer.parseInt(annotations[0].substring(1));\n if (noOfTagsAlreadyMax < noOfTagsAlready)\n noOfTagsAlreadyMax = noOfTagsAlready;\n }\n br.close();\n fr.close();\n System.out.println(\"Loaded tags\");\n }", "@Override\n public void updateFilter(List<String> tags) {\n currentTags = tags;\n clearAllMarkers();\n String query = generateQuery(tags, 0);\n List<Event> newEvents = dbHelper.getMatchingEvents(query);\n for (Event e : newEvents) {\n addMarker(e);\n }\n\n notifyEventsInCircle();\n }", "public void addTag(ActionEvent event) {\n\t\tObservableList<ImageView> pho;\n\t\tpho = PhotoListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(pho.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Photo Selected\");\n\t\t\talert.setContentText(\"No photo selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString tagname = newTagName.getText().trim().toLowerCase();\n\t\tString tagvalue = newTagValue.getText().trim().toLowerCase();\n\t\t\n\t\tif(tagname.equals(\"\") || tagvalue.equals(\"\")) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Field(s) Missing\");\n\t\t\talert.setContentText(\"Tag name or Tag value missing. Add Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\n\t\tif(p.checkIfTagExists(tagname, tagvalue)) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Duplicate Tag!\");\n\t\t\talert.setContentText(\"Tag name and Tag value combination already exists. Add Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\tnewTagName.setText(\"\");\n\t\t\tnewTagValue.setText(\"\");\n\t\t\t\n\t\t\ttagNameLabel.setVisible(false);\n\t \ttagValueLabel.setVisible(false);\n\t \tsubmitNewTagButton.setVisible(false);\n\t \tcancelNewTagButton.setVisible(false);\n\t \tnewTagName.setVisible(false);\n\t \tnewTagValue.setVisible(false);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tp.addTag(tagname, tagvalue);\n\t\tArrayList<Tag> listTags = p.getTags();\n\t\t\n\t\ttagObsList = FXCollections.observableList(listTags);\n\t\tTagListDisplay.setItems(tagObsList);\n\t\t\n\t\tnewTagName.setText(\"\");\n\t\tnewTagValue.setText(\"\");\n\t\t\n\t\ttagNameLabel.setVisible(false);\n \ttagValueLabel.setVisible(false);\n \tsubmitNewTagButton.setVisible(false);\n \tcancelNewTagButton.setVisible(false);\n \tnewTagName.setVisible(false);\n \tnewTagValue.setVisible(false);\n \t\n \ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "@Override\n @Transactional\n public void buyBond(Bond bond) {\n Collection<Bond> recentTransactions = bondRepository.getLatestBondTransaction(bond.getName());\n if (recentTransactions.size() == 0) {\n bondRepository.save(bond);\n }\n }", "public void setTags(String tags) {\n\t\tthis.tags = tags;\n\t}", "public boolean addTag(Tag tag){\n return addTagUC.addTag(mCurrentAccount, tag);\n }", "int insert(TagData record);", "public void addTag(String s) {\n tags.add(s);\n }", "public boolean saveOrUpdateStockExchange(StockExchange stockExchange);", "public ExistingTags getExistingTags() {\n return this.existingTags;\n }", "@Test\n public void testGetVerifiedAssociatedTags() {\n String insertedTagList = \" #awesome, #dry, #newTag \";\n List<Tag> verifiedTags = tagServ.getVerifiedAssociatedTags(insertedTagList);\n List<Tag> allTags = tagServ.getAllTags();\n Assert.assertEquals(5, allTags.size());\n Assert.assertEquals(3, verifiedTags.size());\n }", "@Override\n\tpublic void AddOrUpdate(Stock model) {\n\t\tif (model.getId() == 0){\n\t\t\t_stockDao.insert(model);\n\t\t}\n\t\telse {\n\t\t\t_stockDao.updateByPrimaryKey(model);\n\t\t}\n\t}", "@Dao\npublic interface TagDao {\n // Добавление Article в бд\n @Insert\n void insertAll(Tag... tags);\n\n // Удаление Article из бд\n @Update\n void update(Tag tag);\n\n // Удаление Article из бд\n @Delete\n void delete(Tag tag);\n\n @Query(\"DELETE FROM tag\")\n void clearTags();\n\n @Query(\"SELECT * FROM tag WHERE data = :data\")\n Tag getTag(String data);\n\n // Получение всех тегов\n @Query(\"SELECT * FROM tag ORDER BY data ASC\")\n List<Tag> getAllTags();\n\n // сколько всего тегов\n @Query(\"SELECT COUNT(*) FROM tag\")\n int getCount();\n\n// @Query(\"INSERT INTO tag SET x=1, y=2 ON DUPLICATE KEY UPDATE x=x+1, y=y+2\")\n// void insertOrUpdate(Tag tag);\n}", "public void addTag(String tag) {\n this.tag = tag;\n }", "@Override\n public void insertUpdate(DocumentEvent e) {\n String order = \"\";\n if(fromSplit != null && toSplit != null){\n String query = \n \"Select * from StockOut where cast(dbo.StockOut.Date as date ) between '\"+fromSplit[0]+\"' and \"\n + \" '\"+toSplit[0]+\"' and \" +\n \" (ProductId like '%\"+searchtf.getText()+\"%' or Barcode like '%\"+searchtf.getText()+\"%' or\"\n + \" ProductName like '%\"+searchtf.getText()+\"%' or ProductDesc like '%\"+searchtf.getText()+\"%' or \"\n + \"Category \" \n + \" like '%\"+searchtf.getText()+\"%' or Quantity like '%\"+searchtf.getText()+\"' or \"\n + \"SellPrice like '%\"+searchtf.getText()+\"'or Total like '%\"+searchtf.getText()+\"%' or \"\n + \"InvoiceNo like '%\"+searchtf.getText()+\"%' ) order by invoiceNo \";\n findUsers(query);\n }else{\n String query = \"Select * from StockOut where ProductId like '%\"+searchtf.getText()+\"%' or Barcode like '%\"+searchtf.getText()+\"%' or\"\n + \" ProductName like '%\"+searchtf.getText()+\"%' or ProductDesc like '%\"+searchtf.getText()+\"%' or \"\n + \"Category \" \n + \" like '%\"+searchtf.getText()+\"%' or Quantity like '%\"+searchtf.getText()+\"' or \"\n + \"SellPrice like '%\"+searchtf.getText()+\"'or Total like '%\"+searchtf.getText()+\"%' or \"\n + \"InvoiceNo like '%\"+searchtf.getText()+\"%' order by invoiceNo\";\n findUsers(query);\n }\n \n }", "public void addStoreStock(String name, int amount);", "private void UpdateTagsList()\r\n\t{ \r\n\t\t // for every element in our checkboxes from the view array\r\n\t\t for (CheckBox checkBox : this.CBlist) \r\n\t\t {\r\n\t\t\t // if it is checked\r\n\t\t\t if(checkBox.isChecked())\r\n\t\t\t {\r\n\t\t\t\t // Update the values on the local indication array\r\n\t\t\t\t hmTags.put(checkBox.getText().toString(), true);\r\n\t\t\t }\r\n\t\t }\t\t\t\r\n\t}", "@Test\n public void testTagAdd() {\n try {\n String tagToLook = \"testTagAdd\";\n String entryText = \"testTagAdd:entry\";\n TypedQuery<Tag> query = em.createNamedQuery(\"Tag.find\", Tag.class);\n query.setParameter(\"name\", tagToLook);\n List<Tag> resultList = query.getResultList();\n Assert.assertEquals(resultList.size(), 0);\n\n Tag tag = new Tag();\n tag.name = tagToLook;\n em.getTransaction().begin();\n em.persist(tag);\n em.getTransaction().commit();\n\n Entry e1 = new Entry();\n e1.text = entryText + \"1\";\n Entry e2 = new Entry();\n e2.text = entryText + \"2\";\n List<Tag> resultList1 = query.getResultList();\n Assert.assertEquals(resultList1.size(), 1);\n Tag dbTag = resultList1.get(0);\n Assert.assertEquals(tag.id, dbTag.id);\n\n dbTag.entries = new ArrayList();\n dbTag.entries.add(e1);\n dbTag.entries.add(e2);\n\n em.getTransaction().begin();\n em.persist(e1);\n em.persist(e2);\n em.persist(dbTag);\n em.getTransaction().commit();\n\n dbTag = query.getSingleResult();\n Assert.assertEquals(dbTag.entries.size(), 2);\n\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail();\n }\n }", "private void addProducts(ArrayList<String> rawData){\n\t\tfor(int i = 0; i < rawData.size(); i++) {\n\t\t\t// split row at every space and store in array temp\n\t\t\tString[] temp = rawData.get(i).split(\"\\\\s+\");\n\t\t\t\n\t\t\tString name = \"\";\n\t\t int quantity = 0;\n \t\tfloat price = 0;\n \t\tboolean imported = false;\n \n // quantity is always the first\n \t\tquantity = Integer.parseInt(temp[0]);\n \t\tprice = Float.parseFloat(temp[temp.length-1]);\n \t\t\n \t\t// don't need to check fist item (quantity) and last item (price)\n \t\tfor (int j=1; j<temp.length-2; j++){\n \t\t if (temp[j].equals(\"imported\")){\n \t\t imported = true;\n \t\t if (j == 1){ // leave imported at the begining \n \t\t name = name + temp[j] + \" \";\n \t\t } \n else{ // move it to the begining \n \t\t name = \"imported \"+name;\n \t\t }\n \t\t }\n \t\t else{\n \t\t name = name + temp[j] + \" \";\n \t\t }\n \t\t \n \t\t}\n \t\t// removes the last character in the name (the extra space)\n \t\tname = name.substring(0, name.length()-1);\n \t\t\n \t\tboolean notExempt = !productCategory.getExemptCategory(name);\n \t\t\n \t\tSystem.out.println(\"Product: \"+name+\" and its notExempt status is \"+notExempt+\", imported: \"+imported);\n \t\tfloat totalTax = tax.calcTax(quantity, price, notExempt, imported);\n \t\tcart.addProduct(name, quantity, price, imported, totalTax);\n\t\t}\n\t}", "public void addStock(Product p, int n) {\nif (p.id < 0) return;\nif (n < 1) return;\n\nfor (int i = 0; i < productCatalog.size(); i++) {\nProductStockPair pair = productCatalog.get(i);\nif (pair.product.id == p.id) {\nproductCatalog.set(i, new ProductStockPair(p, pair.stock + n));\nreturn;\n}\n}\nproductCatalog.add(new ProductStockPair(p, n));\n}", "@Override\n @Transactional\n public void addBulkInsertsAfterExtraction() {\n List<ScrapBook> scrapBooks = new ArrayList<ScrapBook>();\n boolean jobDone = false;\n boolean pause = false;\n while (!jobDone) {\n pause = false;\n int lineCount = 0;\n while (!pause) {\n ++lineCount;\n if (lineCount % 30 == 0) {\n scrapBooks = springJdbcTemplateExtractor.getPaginationList(\"SELECT * FROM ScrapBook\", 1, 30);\n pause = true;\n }\n }\n //convert scrapbook to book and insert into db\n convertedToBookAndInsert(scrapBooks);\n // delete all inserted scrapbooks\n springJdbcTemplateExtractor.deleteCollection(scrapBooks);\n scrapBooks = null;\n if (0 == springJdbcTemplateExtractor.findTotalScrapBook()) {\n jobDone = true;\n }\n }\n }", "private void addBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMouseClicked\n\n String id = pidTxt.getText().toString();\n String name = pnameTxt.getText().toString();\n String price = pperpriceTxt.getText().toString();\n String quantity = pquanityTxt.getText().toString();\n String date = pdateTxt.getText().toString();\n\n try {\n String Query = \"INSERT INTO `stock` (`Product_ID`, `Product_Name`,`Quantity`, `Entry_Date`,`Price`) VALUES (?, ?, ?, ?, ?)\";\n\n pstm = con.prepareStatement(Query);\n\n pstm.setInt(1, Integer.parseInt(id));\n pstm.setString(2, name);\n pstm.setInt(3, Integer.parseInt(quantity));\n pstm.setString(4, date);\n pstm.setInt(5, Integer.parseInt(price));\n pstm.executeUpdate();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Data Insertion Failed \");\n }\n refTable();\n\n\n }", "public void addTag(AtomTag tag) {\n \tif(!tags.contains(tag)) {\n \t\tthis.tags.add(tag);\n \t}\n }", "@Test\n public void testLoadTagsFromStorage() throws Exception {\n // We add tags then clear all the datastructures\n getTagManager().addTag(tag1);\n getTagManager().addTag(tag2);\n getTagManager().addTag(tag3);\n getTagManager().addTag(tag4);\n getTagManager().addTag(tag5);\n getTagManager().addTag(tag6);\n Set<DeviceTag> tSet = getTagManager().getTags();\n assertTrue(tSet.size() == 6);\n getTagManager().clearTagsFromMemory();\n tSet = getTagManager().getTags();\n assertTrue(tSet.size() == 0);\n getTagManager().loadTagsFromStorage();\n tSet = getTagManager().getTags();\n assertTrue(tSet.size() == 6);\n }", "public void addCertainRow(String bookname, String ISBN, String author, String description,\n String quantity, String publisher, String category)\n {\n String insertStr;\n try{\n\n insertStr=\"INSERT IGNORE INTO material (bookname, ISBN, author, description, quantity, publisher, category) VALUES(\"\n +quotate(bookname)+\",\"\n +quotate(ISBN)+\",\"\n +quotate(author)+\",\"\n +quotate(publisher)+\",\"\n +quotate(quantity)+\",\"\n +quotate(publisher)+\",\"\n +quotate(category)\n +\")\";\n\n stmt.executeUpdate(insertStr);\n\n } catch(Exception e){\n System.out.println(\"Error occurred in inserting data\");\n }\n return;\n }", "public boolean AddToDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t //add info to database\n\t\t\tString query = \"INSERT INTO Housing(name, address, phone_number, year_built, price, housing_uid, \"\n\t\t\t\t\t+ \"max_residents, catagory) \"\n\t\t\t\t\t+ \"VALUES('\"+name+\"', '\"+address+\"', '\"+phoneNumber+\"', '\"+yearBuilt+\"', '\"+price+\"', \"\n\t\t\t\t\t+ \"'\"+uid+\"', '\"+maxResidents+\"', '\"+catagory+\"')\"; \n\t\t\t\n\t\t\tint insertResult = con.stmt.executeUpdate(query);\n\t\t\tif(insertResult > 0)\n\t\t\t{\n\t\t\t\tSystem.out.println (\"Housing added to database.\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println (\"Housing NOT added to database.\");\n\t\t\t}\n\t\t\t\n\t\t\t//get housing id\n\t\t\tquery = \"SELECT h_id FROM Housing WHERE name ='\"+name+\"' AND address ='\"+address+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query); \n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\thid = rs.getInt(\"h_id\"); \n\t\t\t}\n\t\t\t\n\t\t\tcon.closeConnection();\n\t\t\t\n\t\t\t//set up keywords\n\t\t\tif (keywords.size() > 0)\n\t\t\t{\n\t\t\t\tAddKeywords(); \n\t\t\t}\n\t\t\t\n\t\t\tif(openDates.size() > 0)\n\t\t\t{\n\t\t\t\tAddAvailableDates(); \n\t\t\t}\n\t\t\t\n\t\t\treturn true; \n\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public void addSupportedTag(String tag);", "private void refreshButtons(String newTag) {\n\t\tString[] tags = savedSearches.getAll().keySet().toArray(new String[0]);\n\t\tArrays.sort(tags, String.CASE_INSENSITIVE_ORDER);\n\t\t\n\t\tif (newTag != null) {\n\t\t\tmakeTagGUI(newTag,Arrays.binarySearch(tags, newTag));\n\t\t\t\n\t\t}else{\n\t\t\tfor (int index = 0; index < tags.length; index++) {\n\t\t\t\tmakeTagGUI(tags[index], index);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void addItems(Workspace workspace) {\n//\t\tSession currentSession = sessionFactory.getCurrentSession();\n//\t\tfor(Cart_items myCart : workspace.getCartItems()) {\t\n//\t\t\tcurrentSession.save(myCart);\n//\t\t}\n\t}", "@Override\n\tpublic Integer insert(InvBaseStock baseStock) {\n\t\treturn invBaseStockDao.insert(baseStock);\n\t}", "public void save(Tag tag) {\n\t\ttagRepository.save(tag);\n\t}", "Update withTags(List<String> tags);", "public void tag(Player taggedplayer, Player taggerplayer) {\n \t\tIterator<PearlTag> i = tags.iterator();\n \t\twhile (i.hasNext()) {\n \t\t\tPearlTag tag = i.next();\n \t\t\tif (tag.getTaggedPlayer() == taggedplayer) {\n \t\t\t\ti.remove();\n \t\t\t\ttagEvent(tag, PearlTagEvent.Type.SWITCHED, taggerplayer);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\t\n \t\t// then, make the tag and generate a new tag event\n \t\tlong expires = getNowTick() + expiresticks;\n \t\tPearlTag tag = new PearlTag(taggedplayer, taggerplayer, expires);\n \t\ttags.add(tag);\n \t\ttagEvent(tag, PearlTagEvent.Type.NEW);\n \t\t\n\t\t// schedule the expire task\n\t\tscheduleExpireTask();\n \t}", "@Override\r\n\tpublic void stockInsert(adminStockVO vo) {\n\t\tadminDAO.stockInsert(vo);\r\n\t}", "public void checkLowStock()\n {\n for(Product product: stock)\n {\n if(product.getQuantity() < 10)\n {\n System.out.println(product.getID() + \": \" +\n product.name + \" is low on stock, only \" + \n product.getQuantity() + \" in stock\");\n }\n }\n }", "private void analyzeStocks(JSONArray stockArray){\n\t\tbuyArray = new JSONArray();\n\t\tsellArray = new JSONArray();\n\n\t\tfor(int a = 0; a < stockArray.length(); a++){\n\n\t\t\t// Some objects dont always have correct values\n\t\t\tif (!stockArray.getJSONObject(a).isNull(\"DividendYield\") \n\t\t\t\t\t&& !stockArray.getJSONObject(a).isNull(\"FiftydayMovingAverage\")\n\t\t\t\t\t&& !stockArray.getJSONObject(a).isNull(\"Bid\")\n\t\t\t\t\t&& !stockArray.getJSONObject(a).isNull(\"PERatio\")){\n\n\n\n\t\t\t\tdouble fiftyDayAvg = stockArray.getJSONObject(a).getDouble(\"FiftydayMovingAverage\");\n\t\t\t\tdouble bid = stockArray.getJSONObject(a).getDouble(\"Bid\");\n\t\t\t\tdouble divYield = stockArray.getJSONObject(a).getDouble(\"DividendYield\");\n\t\t\t\tdouble peRatio = stockArray.getJSONObject(a).getDouble(\"PERatio\");\n\n\t\t\t\t//Parse Market Cap - form: 205B (int)+(string)\n\t\t\t\tString marketCap = stockArray.getJSONObject(a).getString(\"MarketCapitalization\");\n\t\t\t\tString marketCapSuf = marketCap.substring(marketCap.length()-1);\n\t\t\t\tdouble marketCapAmt = Double.parseDouble(marketCap.substring(0, marketCap.length()-1));\n\t\t\t\tmarketCapAmt = marketCapAmt*suffixes.get(marketCapSuf);\n\n\t\t\t\t//Large checks\n\t\t\t\tif(marketCapAmt >= (10*suffixes.get(\"B\"))){\n\t\t\t\t\tif((bid < fiftyDayAvg*largefiftyWeekPercBuy)\t\t\t//Buy\n\t\t\t\t\t\t\t&& (divYield > largeYield) \n\t\t\t\t\t\t\t&& (peRatio < largePEBuy)){\n\n\t\t\t\t\t\tbuyArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t\telse if((bid > fiftyDayAvg*largefiftyWeekPercSell)\t\t//Sell\n\t\t\t\t\t\t\t&& (peRatio > largePESell)){\n\n\t\t\t\t\t\tsellArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//Medium checks\n\t\t\t\telse if(marketCapAmt >= (2*suffixes.get(\"B\"))){\t\n\t\t\t\t\tif((bid < fiftyDayAvg*medfiftyWeekPercBuy)\t\t\t\t//Buy\n\t\t\t\t\t\t\t&& (divYield > medYield) \n\t\t\t\t\t\t\t&& (peRatio < medPEBuy)){\n\n\t\t\t\t\t\tbuyArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t\telse if((bid > fiftyDayAvg*medfiftyWeekPercSell)\t\t//Sell\n\t\t\t\t\t\t\t&& (peRatio > medPESell)){\n\n\t\t\t\t\t\tsellArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Small\tchecks\n\t\t\t\telse if(marketCapAmt >= (300*suffixes.get(\"M\"))){\t\t\t\t\n\t\t\t\t\tif((bid < fiftyDayAvg*smfiftyWeekPercBuy)\t\t\t\t//Buy\n\t\t\t\t\t\t\t&& (divYield > smYield) \n\t\t\t\t\t\t\t&& (peRatio < smPEBuy)){\n\n\t\t\t\t\t\tbuyArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t\telse if((bid > fiftyDayAvg*smfiftyWeekPercSell)\t\t\t//Sell\n\t\t\t\t\t\t\t&& (peRatio > smPESell)){\n\n\t\t\t\t\t\tsellArray.put(stockArray.getJSONObject(a));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int processStockList(int count) {\n String line = this.result.get(count);\n if (line.indexOf(\"char:\") == 0) {\n checkEmptyLine(line);\n line = this.result.get(++count);\n }\n if (!line.equals(\"start:stock-list\")) {\n throw new IllegalArgumentException(\"Not find stock-list tag.\");\n }\n this.stockList = new LinkedList<>();\n this.weightList = new LinkedList<>();\n this.state = ProcessState.WAIT_STOCK;\n return ++count;\n }", "private void enterBook() {\n String sku;\n String author;\n String description;\n double price;\n String title;\n boolean isInStock;\n String priceTmp;\n String inStock;\n Scanner keyb = new Scanner(System.in);\n\n System.out.println(\"Enter the sku number.\"); // Enter the SKU number\n sku = keyb.nextLine();\n\n System.out.println(\"Enter the title of the book.\"); // Enter the title\n title = keyb.nextLine();\n\n System.out.println(\"Enter the author of the book.\"); // Enter the author\n author = keyb.nextLine();\n\n System.out.println(\"Enter the price of the book.\"); // Enter the price of the book\n priceTmp = keyb.nextLine();\n price = Double.parseDouble(priceTmp);\n\n System.out.println(\"Enter a description of the book.\"); // Enter the description of the book\n description = keyb.nextLine();\n\n System.out.println(\"Enter whether the book is in stock (\\\"Y\\\"|\\\"N\\\").\"); // in stock?\n inStock = keyb.nextLine();\n if (inStock.equalsIgnoreCase(\"Y\")) {\n isInStock = true;\n } else if (inStock.equalsIgnoreCase(\"N\")) {\n isInStock = false;\n } else {\n System.out.println(\"Not a valid entry. In stock status is unknown; therefore, it will be listed as no.\");\n isInStock = false;\n }\n\n Book book = new Book(title, author, description, price, isInStock);\n bookDB.put(sku, book);\n }", "public void addTagToIgnore(String tag)\r\n\t{\r\n\t\ttagsToIgnore.add(tag);\r\n\t}", "public boolean alreadyAnnotated(String indeces, String tag, String word) {\n if (taggedItems.containsKey(indeces)) {\n if (!tag.equals(taggedItems.get(indeces)))\n System.out.println(\"Conflict : \" + word + \" Old tag: \" + taggedItems.get(indeces) + \" New tag: \" + tag);\n return true;\n } else\n return false;\n }", "public interface TagService {\n\n boolean retagIdea(ArrayList<Tag> newTag, Idea idea, User user);\n\n /**\n * Saves the tags provided as a comma separate string.\n * It Parses the tag string and checks for de-dupe and finally save them\n * into data store.\n * \n * @param tags The String object representing the comma separated tag\n * strings.\n * @return list of saved tag objects.\n */\n List<Tag> saveTags(String tags);\n\n /**\n * Retrieves a list of Tags by keys.\n * \n * @param keys the collection of keys of Tag objects.\n * @return Returns the list of Tag objects corresponding to keys.\n */\n List<Tag> getTagsByKeys(Collection<String> keys);\n\n /**\n * Retrieves the tags staring with a specific string.\n * \n * @param startString the start string to be matched with the title of\n * the tags\n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * \n * @return list of fetched tags\n */\n List<Tag> getTagsWithSpecificStartString(String startString, RetrievalInfo retrievalInfo);\n\n /**\n * Get the data for auto suggestion of tags.\n * \n * @param startString the start string for which the suggestions are to\n * be fetched.\n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * @return the list of fetched tags\n */\n List<Tag> getTagsForAutoSuggestion(String startString, RetrievalInfo retrievalInfo);\n\n /**\n * Get the data for Tag Cloud.The tags returned are sorted alphabetically.\n * \n * @param retrievalInfo the {@link RetrievalInfo} object containing the\n * request parameters\n * @return the list of tags for tag cloud\n */\n List<Tag> getTagsForTagCloud(RetrievalInfo retrievalInfo);\n\n /**\n * Get the tag with title equal to the tagName param.\n * \n * @param tagName the title of the tag to be fetched\n * @return the {@link Tag} object\n */\n Tag getTagByName(String tagName);\n\n /**\n * Get the tags associated with ideas owned by a user.\n * \n * @param user the user whose tags are to be fetched\n * @return list of tags associated with ideas of the user\n */\n List<Tag> getMyTagCloud(User user);\n\n /**\n * Iterates through the list of objects and increment the weight if each Tag\n * {@link Tag} object.\n * \n * @param tags comma separated tags string.\n * @return list of tags for which, weight successfully incremented.\n */\n\n List<Tag> incrementWeights(String tags);\n\n /**\n * Save a tag\n * \n * @param tag the {@link Tag} object to be saved\n * @return the saved {@link Tag} object\n */\n Tag saveTag(Tag tag);\n\n /**\n * Iterates through the list of objects and decrement the weight of each Tag\n * {@link Tag} object.\n * \n * @param tags comma separated tags string.\n * @return list of tags for which, weight successfully decremented.\n */\n\n List<Tag> decrementWeights(String tags);\n\n /**\n * Remove tags with zero weight from the list\n * \n * @param tagList the list of {@link Tag} objects from which to remove\n * objects with zero weight\n * @return the filtered list\n */\n List<Tag> removeTagWithZeroWeight(List<Tag> tagList);\n}" ]
[ "0.60128635", "0.58088267", "0.5674494", "0.56443715", "0.56093055", "0.5518387", "0.55167675", "0.5509164", "0.54375124", "0.5425272", "0.5411306", "0.5375179", "0.530469", "0.5273307", "0.5256621", "0.524983", "0.5243917", "0.5231339", "0.5204213", "0.5174835", "0.51679206", "0.5151425", "0.5129812", "0.5100734", "0.5098669", "0.5074758", "0.50740635", "0.5053965", "0.50477403", "0.5043817", "0.50408924", "0.50367093", "0.502622", "0.50256944", "0.501701", "0.50159776", "0.49960357", "0.49959528", "0.49940944", "0.49934718", "0.49920073", "0.49821708", "0.497918", "0.49776506", "0.49758375", "0.4972949", "0.495253", "0.49451458", "0.49153525", "0.49078417", "0.48989245", "0.48944268", "0.4892875", "0.48904517", "0.48705187", "0.48700038", "0.4867047", "0.48570573", "0.48561192", "0.48558563", "0.48320556", "0.4814683", "0.48033878", "0.4797114", "0.47853878", "0.4784238", "0.47824943", "0.47798368", "0.47657737", "0.4763291", "0.4763175", "0.4760709", "0.4755829", "0.4755282", "0.47450295", "0.47445744", "0.4737841", "0.47298172", "0.4727941", "0.47263235", "0.47218466", "0.47177547", "0.47165382", "0.47140497", "0.4711037", "0.47107935", "0.47097212", "0.47062245", "0.4703063", "0.47012448", "0.46916738", "0.46884122", "0.4683698", "0.4681503", "0.46798736", "0.4670442", "0.46696267", "0.46677887", "0.46677694", "0.46630836" ]
0.60927385
0
Converts the entity to a DTO and sets the stock price on the return DTO.
@Override public D entityToDTO( final E entity ) { //final String methodName = "cachedDataToDTO"; //logMethodBegin( methodName, entity ); Objects.requireNonNull( entity, "entity argument cannot be null" ); D dto = super.entityToDTO( entity ); /* * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this... * If any stock DTO is a stock company container, it will be populated automatically with the stock company * information. No need for any sub cvl * * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike. * * Need to develop some sort of "conversion" registration so that subclasses can register "converters" to be * run on entity. * /* * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead */ /* if ( dto instanceof StockQuoteDTOContainer ) { this.stockQuoteEntityService .setQuoteInformation( dto ); } */ /* * The quote contains the company name */ /* else if ( dto instanceof StockCompanyEntityContainer ) { this.stockCompanyEntityService .setCompanyInformation( (StockCompanyDTOContainer) dto ); } if ( dto instanceof StockPriceQuoteDTOContainer ) { this.stockPriceQuoteService .setStockPriceQuote( dto, ASYNCHRONOUS ); } */ /* * Convert the UUID to a string and get the notes source name for the UUID */ if ( entity instanceof NotesSourceUuidContainer && dto instanceof NotesSourceIdContainer ) { final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity; if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() ) { final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto; final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get(); notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() ); notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() ); } } if ( dto instanceof TagsContainer ) { final TagsContainer tagsContainer = (TagsContainer)dto; tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ), StockTagEntity.StockTagReferenceType.STOCK_TO_BUY, UUIDUtil.uuid( tagsContainer.getEntityId() ) ) ); } //logMethodEnd( methodName, dto ); return dto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateStockPrice( final D dto )\n {\n final String methodName = \"updateStockPrice\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockPriceQuoteService\n .setStockPriceQuote( (StockPriceQuoteDTOContainer) dto );\n logMethodEnd( methodName );\n }", "ItemPriceDTO findOne(Long id);", "List<ItemPriceDTO> findAll();", "public BigDecimal getStock_price() {\n return stock_price;\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "@ModelAttribute(name = \"stock\")\n public Stock stockBean()\n {\n return new Stock();\n }", "public Date getPrice() {\n return price;\n }", "default ShopDTO entityToDto(Shop entity) {\n ShopDTO dto = ShopDTO.builder()\n .productID(entity.getProductID())\n .product(entity.getProduct())\n .image(entity.getImage())\n .content(entity.getContent())\n .price(entity.getPrice())\n .count(entity.getCount())\n .regDate(entity.getRegDate())\n .modDate(entity.getModDate())\n .build();\n return dto;\n }", "public synchronized MarketDataDTO getMarketData() {\n\t\tPrice bestBuyPrice = getBuySide().topOfBookPrice();\n\t\tPrice bestSellPrice = getSellSide().topOfBookPrice();\n\t\tif (bestBuyPrice == null) bestBuyPrice = PriceFactory.makeLimitPrice(0);\n\t\tif (bestSellPrice == null) bestSellPrice = PriceFactory.makeLimitPrice(0);\n\t\tint bestBuyVolume = getBuySide().topOfBookVolume();\n\t\tint bestSellVolume = getSellSide().topOfBookVolume();\n\t\tMarketDataDTO marketData = new MarketDataDTO(getStock(), bestBuyPrice, bestBuyVolume, bestSellPrice, bestSellVolume);\n\t\treturn marketData;\n\t}", "public Money getPrice() {\n return price;\n }", "@JsonGetter(\"price_money\")\r\n public Money getPriceMoney() {\r\n return priceMoney;\r\n }", "public Date getStockPriceDate() {\n return stockPriceDate;\n }", "public OrderDetailEntity toEntity (DetailDTO detailDTO,OrderDetailEntity orderDetailEntity) {\n\t\t\n\t\tShoesEntity shoesEntity = shoesRepository.findOne(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\treturn orderDetailEntity;\n\t}", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "public SellerDTO(Seller entity) {\t\t\n\t\tid = entity.getId();\n\t\tname = entity.getName();\n\t}", "@Override\r\n public Share convertToEntity(InstrumentDto dto) {\r\n LocalDateTime stDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentStartingDate());\r\n LocalDateTime endDate = getDateTimePersistenceConverter().convertToEntityAttribute(dto.getPaymentEndingDate());\r\n \r\n Share entity = new Share();\r\n entity.setId(dto.getId());\r\n entity.setInstrumentName(dto.getInstrumentName());\r\n entity.setStartOfPaymentPeriod(stDate);\r\n entity.setEndOfPaymentPeriod(endDate);\r\n \r\n return entity;\r\n }", "public Long getPrice() {\n return price;\n }", "public OrderDetailEntity toEntity (DetailDTO detailDTO) {\n\t\t\n\t\tOrderDetailEntity orderDetailEntity = new OrderDetailEntity();\n\t\tShoesEntity shoesEntity = shoesRepository.getShoesById(detailDTO.getShoesID());\n\t\torderDetailEntity.setShoesEntity(shoesEntity);\n\t\torderDetailEntity.setShoesName(shoesEntity.getShoesName());\n\t\torderDetailEntity.setPrice(detailDTO.getPrice());\n\t\torderDetailEntity.setQuantity(detailDTO.getQuantity());\n\t\torderDetailEntity.setDeleted(detailDTO.getDeleted());\n\t\t\n\t\treturn orderDetailEntity;\n\t}", "Price getTradePrice();", "protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * The stock price needs to be set the first time as it records the stock price when the record was created.\n */\n entity.setStockPriceWhenCreated( this.stockPriceQuoteService\n .getLastPrice( tickerSymbol ));\n }", "E toEntity(V dto);", "V toDto(E entity);", "public Double getPrice() {\r\n return price;\r\n }", "@Basic\r\n\tpublic DukatAmount getPrice(){\r\n\t\treturn price;\r\n\t}", "public CurrencyOffer toModelFromDTO(CurrencyOfferDTO currencyDTO);", "BigDecimal getDirtyPrice();", "@Override\n\tpublic ResponseStockDto getStocks(Long stockId) throws StockIdNotFoundException, IOException {\n\t\tOptional<Stock> stock = stockRepository.findById(stockId);\n\n\t\tif (!stock.isPresent())\n\t\t\tthrow new StockIdNotFoundException();\n\t\tString response = restTemplate\n\t\t\t\t.exchange(\n\t\t\t\t\t\t\"https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=\" + stock.get().getStockName()\n\t\t\t\t\t\t\t\t+ \"&apikey=JAWMQTBSYN26FR3M\",\n\t\t\t\t\t\tHttpMethod.GET, null, new ParameterizedTypeReference<String>() {\n\t\t\t\t\t\t}, stockId)\n\t\t\t\t.getBody();\n\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tJsonNode node = mapper.readTree(response);\n\t\tJsonNode subNode = node.get(\"Global Quote\");\n\t\tDouble stockPrice = subNode.get(\"05. price\").asDouble();\n\n\t\tResponseStockDto responseStockDto = new ResponseStockDto();\n\t\tresponseStockDto.setStockId(stock.get().getStockId());\n\t\tresponseStockDto.setStockName(stock.get().getStockName());\n\t\tresponseStockDto.setStockPrice(stockPrice);\n\n\t\treturn responseStockDto;\n\t}", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public FacturaEntity toEntity() {\n FacturaEntity entity = new FacturaEntity();\n entity.setCosto(this.getCosto());\n entity.setId(this.getId());\n return entity;\n }", "public float getPrice() \n {\n return price;\n }", "public List<CompanyStockDTO> findAllActive();", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }", "public double getPrice(){return price;}", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public Double getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "ResponseEntity<Price> findPriceByCartId(String cartId);", "ResponseEntity<Price> createPrice(String cartId);", "@Override\r\n\tpublic StockResponseModel getListOfStock() {\n\t\tStockResponseModel list = new StockResponseModel();\r\n\t\tList<StockEntities> stockRepoList = new ArrayList();\r\n\t\tList<StockRequestModel> stockModelList = new ArrayList();\r\n\t\tstockModelList = CommonUtills.mapConvert(stockRepoList, stockModelList);\r\n\t\tstockRepoList = stockRepository.findAll();\r\n\t\tlist.setStockInfo(stockModelList);\r\n\t\tlist.setResponseCode(HttpStatus.OK.toString());\r\n\t\tlist.setResponseMsg(HttpStatus.OK.getReasonPhrase());\r\n\t\treturn list;\r\n\t\t\r\n\t}", "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "public static Stocks createUpdatedEntity(EntityManager em) {\n Stocks stocks = new Stocks()\n .name(UPDATED_NAME)\n .open(UPDATED_OPEN)\n .high(UPDATED_HIGH)\n .close(UPDATED_CLOSE)\n .low(UPDATED_LOW)\n .volume(UPDATED_VOLUME);\n return stocks;\n }", "public float getPrice() {\n return _price;\n }", "public StockCurrentPriceDTO getStockCurrentPrice(String code){\n Map<String,StockCurrentPriceDTO> stockCurrentPriceDTOMap = hazelcastInstance.getMap(STOCK_PRICE_CACHE_MAP);\n return stockCurrentPriceDTOMap.getOrDefault(code,new StockCurrentPriceDTO(code,0, LocalDateTime.now()));\n }", "public Float getPrice() {\n return price;\n }", "public Float getPrice() {\r\n return price;\r\n }", "public double getPrice() {\n return price;\n }", "ResponseEntity<Price> updatePrice(String cartId);", "public CurrencyOfferDTO fromModelToDTO(CurrencyOffer currency);", "public double getPrice()\n {\n return price;\n }", "private IngredienteDTO converteIngredienteEntityEmDTO(final IngredienteEntity ingredienteEntity) {\n\n IngredienteDTO ingredienteDTO = new IngredienteDTO();\n\n ingredienteDTO.setCodigoIngrediente(ingredienteEntity.getCodigoIngrediente());\n ingredienteDTO.setNomeIngrediente(ingredienteEntity.getNomeIngrediente());\n ingredienteDTO.setValorIngrediente(ingredienteDTO.getValorIngrediente());\n\n return ingredienteDTO;\n }", "@Override\n public String toString() {\n return \"GodownStockDetailsDTO{\" +\n \"id=\" + getId() +\n \", date='\" + getDate() + \"'\" +\n \", quantity=\" + getQuantity() +\n \", description='\" + getDescription() + \"'\" +\n \", status=\" + getStatus() +\n \", price=\" + getPrice() +\n \", godownStock=\" + getGodownStockId() +\n \", financialYearGodownStockDetails=\" + getFinancialYearGodownStockDetailsId() +\n \", financialYearGodownStockDetails='\" + getFinancialYearGodownStockDetailsBatchName() + \"'\" +\n \"}\";\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "D mapToDTO(E entity);", "E mapToEntity(D dto);", "public double getPrice()\r\n {\r\n return price;\r\n }", "public PriceEntry toProto() {\n return PriceEntry.newBuilder().setId(getId()).setProductId(getProduct_id())\n .setPrice(getPrice()).setCreatedTime(convertDate2String(getCreatedTime()))\n .setUpdatedTime(convertDate2String(getUpdatedTime())).build();\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "@Element \n public Long getPrice() {\n return price;\n }", "public double getPrice()\n {\n return this.price;\n }", "public interface StockItem {\n String getSymbol();\n\n String getName();\n\n BigDecimal getValue();\n\n int getVolume();\n\n Date getLastTradeDateTime();\n\n BigDecimal getGains();\n\n BigDecimal getOpenValue();\n\n BigDecimal getCloseValue();\n}", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public FacturaDTO(FacturaEntity entity) \n {\n if(entity != null)\n {\n this.costo = entity.getCosto();\n this.id = entity.getId();\n }\n \n }", "public double getPrice()\r\n {\r\n return this.price;\r\n }", "public static PromotionDTO entityToDTO(Promotion entity) {\n if(entity != null) {\n PromotionDTO dto = new PromotionDTO();\n dto.setDiscount(entity.getDiscount());\n dto.setId(entity.getId());\n dto.setAlias(entity.getAlias());\n return dto;\n }\n return null;\n }", "public void Update(StokContract entity) {\n\t\t\n\t}", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public Object toPojo(Entity entity) {\n return ofy().load().fromEntity(entity);\n }", "public Double getPrice();", "@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }", "public void setPrice(Money price) {\n this.price = price;\n }", "FoodPrice getFoodPriceById(Long id);", "public double getPrice() {\n return this.price;\n }", "public interface ItemPriceService {\n\n /**\n * Save a itemPrice.\n *\n * @param itemPriceDTO the entity to save\n * @return the persisted entity\n */\n ItemPriceDTO save(ItemPriceDTO itemPriceDTO);\n\n /**\n * Get all the itemPrices.\n * \n * @return the list of entities\n */\n List<ItemPriceDTO> findAll();\n /**\n * Get all the ItemPriceDTO where Product is null.\n *\n * @return the list of entities\n */\n List<ItemPriceDTO> findAllWhereProductIsNull();\n\n /**\n * Get the \"id\" itemPrice.\n *\n * @param id the id of the entity\n * @return the entity\n */\n ItemPriceDTO findOne(Long id);\n\n /**\n * Delete the \"id\" itemPrice.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}", "public StockPricesVOImpl getStockPricesVO() {\n return (StockPricesVOImpl)findViewObject(\"StockPricesVO\");\n }", "public void setPrice(double price){this.price=price;}", "Price getPrice() throws Exception;", "BigDecimal getPrice();", "public TestStockPricesVOImpl getTestStockPricesVO() {\n return (TestStockPricesVOImpl)findViewObject(\"TestStockPricesVO\");\n }", "@Mapper\n@Repository\npublic interface StockMapper {\n\n @Insert(\"insert into product_stock(valued,product_id) values(#{valued},#{product_id})\")\n public void insertProductStock(ProductStock ProductStock);\n @Update(\"update product_stock set valued=#{valued},product_id=#{product_id} where id=#{id}\")\n public void updateProductStock(ProductStock ProductStock);\n @Delete(\"delete from product_stock where id=#{id}\")\n public void deleteProductStock(Integer id);\n @Select(\"select * from product_stock\")\n public List<ProductStock> selectAll();\n @Select(\"select * from product_stock where id=#{id}\")\n ProductStock selectById(Integer id);\n @Select(\"select * from product_stock where product_id=#{id}\")\n ProductStock findStockByProductId(Integer id);\n}" ]
[ "0.60019696", "0.5982679", "0.5949633", "0.5942853", "0.59022194", "0.58628005", "0.5818649", "0.57947356", "0.57785076", "0.57679844", "0.5743548", "0.56971264", "0.5665583", "0.5645465", "0.562436", "0.5623343", "0.5571476", "0.55668783", "0.5563283", "0.55597764", "0.55473554", "0.55443347", "0.55175143", "0.5514817", "0.5511447", "0.5498819", "0.54922575", "0.54890203", "0.54874504", "0.5486194", "0.547986", "0.5477607", "0.5477607", "0.5477607", "0.5477607", "0.5477607", "0.5464529", "0.5460429", "0.5460429", "0.54595304", "0.54595304", "0.54510397", "0.54496753", "0.54396534", "0.54394615", "0.54366", "0.54195344", "0.5418797", "0.5413225", "0.5412281", "0.5410609", "0.54064184", "0.53860325", "0.53755885", "0.53732646", "0.53688407", "0.5368557", "0.53656", "0.53656", "0.53656", "0.53574145", "0.53465956", "0.5339861", "0.5329816", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.5324568", "0.53245276", "0.5322547", "0.53071237", "0.5299491", "0.5299491", "0.5299491", "0.5299491", "0.52991927", "0.5290495", "0.52896357", "0.52822673", "0.52766716", "0.5268243", "0.52675694", "0.5263737", "0.52620184", "0.5257574", "0.52432823", "0.5241717", "0.5241411", "0.522681", "0.52252734", "0.5220385", "0.5211478", "0.5203622" ]
0.62597764
0
final String methodName = "dtoToEntity"; logMethodBegin( methodName, dto );
@Override protected E dtoToEntity( final D dto ) { Objects.requireNonNull( dto, "dto argument cannot be null" ); final E entity = super.dtoToEntity( dto ); /* * Convert the notes source ID to UUID */ if ( dto instanceof NotesSourceIdContainer && entity instanceof NotesSourceUuidContainer ) { final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto; /* * Check for new sources */ this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer ); final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity; /* * Convert the String UUID to a real uuid if present */ if ( notesSourceIdContainer.getNotesSourceId() != null && !notesSourceIdContainer.getNotesSourceId().isEmpty() ) { final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService .getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(), notesSourceIdContainer.getNotesSourceId() ); notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity ); } } //logMethodEnd( methodName, entity ); return entity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T convertToEntity(D dto);", "public void toEntity(){\n\n }", "public void logData(){\n }", "@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n D dto = super.entityToDTO( entity );\n /*\n * I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...\n * If any stock DTO is a stock company container, it will be populated automatically with the stock company\n * information. No need for any sub cvl\n *\n * NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.\n *\n * Need to develop some sort of \"conversion\" registration so that subclasses can register \"converters\" to be\n * run on entity.\n *\n /*\n * StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead\n */\n /*\n if ( dto instanceof StockQuoteDTOContainer )\n {\n this.stockQuoteEntityService\n .setQuoteInformation( dto );\n }\n */\n /*\n * The quote contains the company name\n */\n /*\n else if ( dto instanceof StockCompanyEntityContainer )\n {\n this.stockCompanyEntityService\n .setCompanyInformation( (StockCompanyDTOContainer) dto );\n }\n if ( dto instanceof StockPriceQuoteDTOContainer )\n {\n this.stockPriceQuoteService\n .setStockPriceQuote( dto, ASYNCHRONOUS );\n }\n */\n\n /*\n * Convert the UUID to a string and get the notes source name for the UUID\n */\n if ( entity instanceof NotesSourceUuidContainer &&\n dto instanceof NotesSourceIdContainer )\n {\n final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;\n if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )\n {\n final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;\n final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();\n notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );\n notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );\n }\n }\n\n if ( dto instanceof TagsContainer )\n {\n final TagsContainer tagsContainer = (TagsContainer)dto;\n tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),\n StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,\n UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );\n }\n //logMethodEnd( methodName, dto );\n return dto;\n }", "protected abstract void processDTO();", "@Override\n protected void preSaveDTO( final D dto )\n {\n final String methodName = \"preSaveDTO\";\n logMethodBegin( methodName, dto );\n checkTickerSymbol( dto );\n super.preSaveDTO( dto );\n logMethodEnd( methodName );\n }", "public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;", "public abstract D convertToDto(T entity);", "public void insertHistory(RecordDTO recordDTO);", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void testLogMethodEntrance() throws Exception {\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n Constructor privateCtor = BasicLog.class.getDeclaredConstructor(String.class, PrintStream.class);\n privateCtor.setAccessible(true);\n Log log = (Log) privateCtor.newInstance(\"name\", new PrintStream(byteStream));\n Helper.logMethodEntrance(\"method\", log, new Date());\n String out = byteStream.toString();\n assertTrue(\"Should contain 'Entering method: '.\", out.indexOf(\"Entering method: \") != -1);\n }", "@Override\n @Transactional\n public List<D> getDtoList(D dto, E entity, String... args) throws MedragServiceException {\n List<E> entityList;\n try {\n entityList = entityDao.getEntityList(entity, args);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n List<D> dtoList = new ArrayList<>();\n entityList.forEach(e -> dtoList.add((D) new ModelMapper().map(e, dto.getClass())));\n return dtoList;\n }", "T onBeforeConvert(T entity, String spaceName);", "@Override\n public void logs() {\n \n }", "D mapToDTO(E entity);", "@Before(\"execution(* com.dav.mybatis.controller..*.*(..))\")\n public synchronized void logMethodAccessBefore(JoinPoint joinPoint) {\n log.info(\"***** Starting: \" + joinPoint.getSignature().getName() + \" *****\");\n }", "public void crearPersona(PersonaDTO personaDTO);", "E toEntity(V dto);", "public void dobefore(JoinPoint jp) {\r\n\t\t\r\n\t\tstartTime = System.currentTimeMillis();// captures the start time of the method call\r\n\t\tString time = \"started: \" + startTime;\r\n\t\t// System.out.println(\"\" + jp.toString().getClass().getName());\r\n\t\tString signature = \"methodSignature: \" + jp.getSignature();\r\n\t\tString name = \"methodName: \"+ jp.getSignature().getName();\r\n\t\t// System.out.println(\"The proxy Object is \" + jp.getThis().getClass());\r\n\t\tString targetClass = \"targetClass: \"\r\n\t\t\t\t+ jp.getTarget().getClass().getName();\r\n\t\tmethodlog = name ;\r\n\t\tmethodlog += \",\" + signature + \",\"+ time\t+ \",\"+ targetClass +\",\";\r\n\t}", "V toDto(E entity);", "@Override\n @Transactional\n public Integer addDto(D dto, E entity) throws MedragServiceException {\n E result = (E) new ModelMapper().map(dto, entity.getClass());\n try {\n return entityDao.addEntity(result);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "@Around(\"loggingPointcut()\")\n public Object logAroundEndpoint(ProceedingJoinPoint joinPoint) throws Throwable {\n if (log.isDebugEnabled()) {\n initTime = System.currentTimeMillis();\n String parametros = concatenateArgs(joinPoint);\n log.debug(\"Inicio: {}.{}({}) with argument[s] = {}\", joinPoint.getSignature().getDeclaringTypeName(),\n joinPoint.getSignature().getName(), concatenateSignatureArgs(joinPoint.getArgs()), parametros);\n }\n try {\n String resultado;\n Object result = joinPoint.proceed();\n try {\n resultado = Util.formatAsJson(result);\n } catch (JsonMappingException ex) {//It's only caught for FileSystemResource files\n log.debug(\"Exception: \" + ex.getMessage());\n resultado = String.valueOf(joinPoint.proceed());\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Fin: {}.{}({}) with result = {} \\n and total time: {} ms\", joinPoint.getSignature().getDeclaringTypeName(),\n joinPoint.getSignature().getName(), concatenateSignatureArgs(joinPoint.getArgs()), resultado, (System.currentTimeMillis() - initTime));\n }\n return result;\n } catch (IllegalArgumentException e) {\n log.error(\"Illegal argument: {} in {}.{}()\", Arrays.toString(joinPoint.getArgs()),\n joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName());\n throw new HandlerException(e.getLocalizedMessage());\n } catch (HandlerException ex) {\n throw new HandlerException(ex.getMessage(), ex);\n } catch (Throwable thw) {\n throw new HandlerException(UNSUCESSFUL, thw);\n }\n }", "@Override\n protected void preAddDTO( final D dto )\n {\n final String methodName = \"preAddDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n checkTickerSymbol( dto );\n super.preAddDTO( dto );\n logMethodEnd( methodName );\n }", "public DtoType getDto(EntityType entity, Class<DtoType> myClass) throws ClassNotFoundException, InstantiationException, IllegalAccessException;", "public abstract DTO toDTO(M model);", "@Override\n protected void postAddDTO( final D dto )\n {\n final String methodName = \"postAddDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postAddDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "E mapToEntity(D dto);", "abstract protected void _log(TrackingActivity activity) throws Exception;", "public String get_log(){\n }", "void log();", "public interface LogService {\n \n /**\n * Save a new log record\n * @param logRecord\n * @return \n */\n LogRecord saveLog(LogRecord logRecord);\n \n}", "@Around(\"execution(* io.kimmking.rpcfx.client.Rpcfx.create(..))\")\n public Object run(ProceedingJoinPoint joinPoint) throws Throwable {\n //获取方法参数值数组\n Object[] args = joinPoint.getArgs();\n// //得到其方法签名\n// MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();\n// //获取方法参数类型数组\n// Class[] paramTypeArray = methodSignature.getParameterTypes();\n// if (EntityManager.class.isAssignableFrom(paramTypeArray[paramTypeArray.length - 1])) {\n// //如果方法的参数列表最后一个参数是entityManager类型,则给其赋值\n// args[args.length - 1] = entityManager;\n// }\n// logger.info(\"请求参数为{}\",args);\n// //动态修改其参数\n// //注意,如果调用joinPoint.proceed()方法,则修改的参数值不会生效,必须调用joinPoint.proceed(Object[] args)\n// Object result = joinPoint.proceed(args);\n// logger.info(\"响应结果为{}\",result);\n// //如果这里不返回result,则目标对象实际返回值会被置为null\n RpcfxRequest request = new RpcfxRequest();\n Class clazz = (Class)args[0];\n request.setServiceClass(clazz.getName());\n Method[] declaredMethods = clazz.getDeclaredMethods();\n request.setMethod(declaredMethods[0].getName());\n request.setParams(args);\n RpcfxResponse response = post(request, (String)args[1]);\n return response;\n }", "public Member copyDtoToEntity(MemberDto dto, Member entity) {\r\n reflectFormalizedDatetimeToEntity(dto, entity);\r\n reflectMemberIdToEntity(dto, entity);\r\n reflectMemberNameToEntity(dto, entity);\r\n reflectUpdateDatetimeToEntity(dto, entity);\r\n\r\n return entity;\r\n }", "@Override\n protected void postSaveDTO( final D dto )\n {\n final String methodName = \"postSaveDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postSaveDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "void post(T modelDTO);", "@Around(\"controllerAspect()\")\n public Object doAfter(ProceedingJoinPoint point) throws Throwable {\n\n Signature signature = point.getSignature();\n MethodSignature methodSignature = (MethodSignature)signature;\n Method targetMethod = methodSignature.getMethod();\n SysLog sysLog = new SysLog();\n SystemLog systemLog = targetMethod.getAnnotation(SystemLog.class);\n //开始时间\n Long startTime = System.currentTimeMillis();\n\n\n //请求的class名称\n String strClassName = point.getTarget().getClass().getName();\n //请求的方法名\n String strMethodName = point.getSignature().getName();\n //服务id\n String clientId = systemLog.serviceId();\n //模块名\n String moduleName = systemLog.moduleName();\n //描述\n String desc = systemLog.value();\n //日志类型\n int type = systemLog.type().ordinal();\n //参数\n Object[] args = point.getArgs();\n log.debug(\"请求参数==>{}\",args);\n Method method = methodSignature.getMethod();\n log.debug(\"[类名]:{},[方法]:{}\", strClassName, strMethodName);\n\n sysLog.setServiceId(clientId)\n .setModuleName(moduleName)\n .setIp(request.getRemoteHost())\n .setRequestUri(URLUtil.getPath(request.getRequestURI()))\n .setMethod(request.getMethod())\n .setUserAgent(request.getHeader(\"user-agent\"))\n .setParams(HttpUtil.toParams(request.getParameterMap()))\n .setIpAddress(IpInfoUtil.getIpCity(request.getRemoteHost()))\n .setTitle(desc)\n .setType(type)\n .setCreateBy(\"\");\n\n Object obj = null;\n try{\n obj = point.proceed();\n sysLog.setStatus(1);\n }catch (Throwable e){\n sysLog.setException(SysLogUtils.getTrace(e));\n sysLog.setStatus(1);\n }\n Long endTime = System.currentTimeMillis();\n sysLog.setCostTime(endTime - startTime);\n //rabbitTemplate.convertAndSend(\"sys_log_queue\", GsonUtil.gson2String(sysLog));\n //SpringContextHolder.publishEvent(new SysLogEvent(sysLog));\n return obj;\n\n }", "@Before(\"pointCut()\")\r\n\t@Override\r\n\tpublic void beforeMethod(JoinPoint joinpoint) {\n\t\tSystem.out.println(joinpoint.getSignature().getName() + \"方法名\");\r\n\t}", "@Override\n\tpublic void trace(Message msg) {\n\n\t}", "static void trace(final String method, final String fileName, final Object o) {\n\n if (SysProperties.TRACE_IO) {\n System.out.println(\"FileUtils.\" + method + \" \" + fileName + \" \" + o);\n }\n }", "public interface OpLogMapper {\n\n void insert(OpLog opLog);\n\n List<OpLog> findLogs(@Param(\"criteria\") OpLogCriteria criteria);\n\n /**\n * 指定查询的keyName\n *\n * @param id\n * @param keyName\n * @return\n */\n String findLogKey(@Param(\"id\") long id, @Param(\"keyName\") String keyName);\n\n}", "public void serializeLogs();", "public Object logCall(ProceedingJoinPoint joinPoint) {\n Method method = ((MethodSignature) joinPoint.getSignature()).getMethod();\n long start = System.currentTimeMillis();\n Object result = null;\n try {\n result = joinPoint.proceed();\n } catch (Throwable ex) {\n Logger.getLogger(TodoServiceInterceptor.class.getName())\n .log(Level.SEVERE, null, ex);\n }\n long duration = System.currentTimeMillis() - start;\n\n publisher.publishEvent(new TodoServiceMethodInvokedEvent(\n method.getName(),\n duration\n )\n );\n return result;\n }", "@Test\npublic void testGetDtoBySql() throws Exception { \n//TODO: Test goes here... \n}", "public EntityType initUpdateEntity(DtoType dto) throws ClassNotFoundException, IllegalArgumentException, IllegalAccessException;", "@Override\n public void log()\n {\n }", "public MemberDto copyEntityToDto(Member entity, MemberDto dto) {\r\n reflectMemberIdToDto(entity, dto);\r\n reflectMemberNameToDto(entity, dto);\r\n reflectFormalizedDatetimeToDto(entity, dto);\r\n reflectUpdateDatetimeToDto(entity, dto);\r\n\r\n return dto;\r\n }", "@Test\npublic void testGetDtoByHql() throws Exception { \n//TODO: Test goes here... \n}", "protected void reflectMemberNameToEntity(MemberDto dto, Member entity) {\r\n entity.setMemberName(extractMemberNameFromDto(dto));\r\n }", "<T> void toEntity(T entity, int type);", "public interface OperationLog {\n\t/**\n\t * logTransactionStart method - This method is used log the transaction\n\t * start. The client id and request id is used by the NDC feature of log4j\n\t * to track message for the transaction.\n\t * \n\t * @param aClientId\n\t * @param aRequestId\n\t */\n\tpublic void logTransactionStart(final String aClientId,\n\t\t\tfinal String aRequestId);\n\n\t/**\n\t * logTransactionEnd method - This method is used to log the end of the\n\t * transaction\n\t */\n\tpublic void logTransactionEnd();\n\n\tpublic void info(String message);\n\n\tpublic void error(String message, Exception e);\n\n\tpublic void logMethodStart(String methodName);\n\n}", "public interface SysLogService extends IService<SysLogEntity> {\n String test(String arg);\n\n List<SysLogCountDTO> countByCreateTime(String type);\n}", "public interface Sha01dascqkService extends BaseService<Sha01dascqk,String> {\n\n String ATTS_PATH = Sha01Service.ATTS_PATH+\"dascqk\"+ File.separator;\n String APP_ATTS_PATH = Sha01Service.APP_ATTS_PATH+\"dascqk/\";\n\n String toSqliteInsertSql(Sha01dascqk entity);\n}", "public void postDoSave(T entity)\n {\n }", "List<D> mapToDTO(List<E> entity);", "@Before(\"execution(* com..*Service.*(..)) || execution(* com..*Controller.*(..)) || execution(* com..*Processor.*(..)) || execution(* com..*Reader.*(..)) || execution(* com..*Writer.*(..))\")\n public void loggingMethod(JoinPoint joinPoint) {\n logger.info(\"the method being executed is : \" + joinPoint.getSignature().getName());\n logger.info(\"the method being executed arguments are : \" + Arrays.toString(joinPoint.getArgs()));\n }", "public abstract M toModel(DTO dto);", "public abstract void getDataFromDataLogger();", "private void logToFile() {\n }", "Assembler newAssembler(final Class< ? > dto, final Class< ? > entity);", "Ticket ticketDTOToTicket(TicketDTO ticketDTO);", "@Override\n public EndPointResponseDTO getEndPointLog() {\n\n //getting all called apis\n List<Logger> loggers = loggerRepository.findAll();\n List<EndPointLoggerDTO> endPointLoggerDTOs;\n ModelMapper modelMapper = new ModelMapper();\n\n //decoding header and bodies, mapping o dto class\n endPointLoggerDTOs = loggers.stream().map(n -> {\n n.setHeader(getDecod(n.getHeader()));\n n.setBody(getDecod(n.getBody()));\n return modelMapper.map(n, EndPointLoggerDTO.class);\n }).collect(Collectors.toList());\n\n //wrapping dto to response object\n EndPointResponseDTO endPointResponseDTO = new EndPointResponseDTO();\n endPointResponseDTO.setCount(endPointLoggerDTOs.size()/2);\n endPointResponseDTO.setEndPointLoggerDTOList(endPointLoggerDTOs);\n\n return endPointResponseDTO;\n }", "public interface LogService {\n DataWrapper<List<LogEntity>> list(Map<String, String> condition);\n\n DataWrapper<Void> delete(int[] logId);\n}", "@Override\n @Transactional\n public void updateDtoStatus(D dto, E entity) throws MedragServiceException {\n try {\n E e = (E) new ModelMapper().map(dto, entity.getClass());\n entityDao.updateEntityStatus(e);\n } catch (MedragRepositoryException e) {\n throw new MedragServiceException(e);\n }\n }", "public static void LogIt(String action, File entity) {\n\t\t\r\n\t}", "private void toRent() {\n }", "@Around(\"execution(* com.sapient.springdemo.service.EmployeeServiceImpl.saveEmployee(..))\")\n public void logAround(ProceedingJoinPoint target) {\n System.out.println(\"------------logging before the method is getting executed in around-------------------\");\n if(target.getArgs()[0] instanceof EmployeeService){\n \t\n \ttry {\n \t\ttarget.proceed();\n \t} \n \tcatch(Throwable throwable) {\n \t\tthrowable.printStackTrace();\n \t}\n }\n System.out.println(\"------------logging after the method is getting executed in around-------------------\");\n }", "abstract protected void _log(Snapshot snapshot) throws Exception;", "LogRecord saveLog(LogRecord logRecord);", "CalcDTO calculate(CalcDTO calcDTO);", "@Override\n\tpublic void trace(Marker marker, Message msg) {\n\n\t}", "protected void reflectFormalizedDatetimeToEntity(MemberDto dto, Member entity) {\r\n entity.setFormalizedDatetime(extractFormalizedDatetimeFromDto(dto));\r\n }", "public void method_201() {}", "void log(Log log);", "public interface LogService {\r\n\r\n\t/** \r\n\t * saveLog:保存错误日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param info \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveExceptionLog(ExceptionLog info);\r\n\t\r\n\t/** \r\n\t * listLogInfo:根据条件获取错误日志信息. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param param\r\n\t * @return \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tList<ExceptionLog> listLogInfo(Map<String,Object> param);\r\n\t\r\n\t\r\n\t/** \r\n\t * removeLogInfo:根据时间删除之前日志信息. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param endTime \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid removeLogInfo(String endTime);\r\n\r\n\t/** \r\n\t * saveOpenInfoLog:保存开放接口日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param log \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveOpenInfoLog(OpenInfLog log);\r\n\r\n\t/** \r\n\t * saveLogInfo:保存自定义接口日志. <br/> \r\n\t * \r\n\t * @author wqy \r\n\t * @param log \r\n\t * @since JDK 1.7 \r\n\t */\r\n\tvoid saveLogInfo(LogInfo logInfo);\r\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public void ejbPostCreate(CommentDTO commentdto) {\n }", "EntityVisitor getEntityContactBeginVisitor();", "abstract protected void _log(TrackingEvent event) throws Exception;", "private void logEvent(String operation, EntryEvent event) {\n}", "@Override\n\tpublic void trace(Object message) {\n\n\t}", "public static <Entity,Dto> Dto entityToDTO(Entity entity,Class<Dto> classDTO)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(entity, classDTO);\n\t}", "public ResultObject getLogData(LogDataRequest logDateRequest)throws ParserException;", "LogAction createLogAction();", "void call(Person obj);", "public String persistAuditTrailEntity(IAuditTrailEntity obj) throws AuditTrailTrackingException\n {\n try\n {\n return getDAO().insertAuditTrailEntity(obj);\n }\n catch(Exception ex)\n { \t\n throw new AuditTrailTrackingException(\"Unexpected error in persisting AuditTrailEntity. Error: \"+ex.getMessage()+\": \"+obj, ex);\n }\n }", "void buildFromEntity(E entity);", "public void crearUsuario(UsuarioDTO usuarioNuevo) throws Exception;", "protected void reflectMemberNameToDto(Member entity, MemberDto dto) {\r\n dto.setMemberName(extractMemberNameFromEntity(entity));\r\n }", "public interface DTOMapper<E> {\n\n /**\n * Fills the DTO with information from the entity.\n *\n * @param entity the <code>E</code> generics entity\n */\n void buildFromEntity(E entity);\n}", "public abstract ZALogDao mo87644a();", "List<E> mapToEntity(List<D> dto);", "public void sendEntity(Entity entity);", "private void logUser() {\n }", "@Service\npublic interface LogService {\n\n List<Droplog> getDroplogByID(int traineeid) throws Exception;\n\n List<Exchangelog> getExchangelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getRechargelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getAllRechargelog() throws Exception;\n\n List<Subscribelog> getSubscribelogByID(int traineeid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByID(int traineeid) throws Exception;\n\n List<Subscribelog> getSubscribelogByCourse(int courseid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByCourse(int courseid) throws Exception;\n\n List<Droplog> getDroplogByCourse(int courseid) throws Exception;\n\n List<Settlelog> getSettlelogByinstitutionid(int institutionid) throws Exception;\n}", "@POST (\"/FireTorpedo\")\n\tAttackLogObject fireTorpedo(@Body FireParams params);", "public void preDoSave(T entity)\n {\n }", "@Override\n\tpublic void trace(Marker marker, String message, Object... params) {\n\n\t}", "void create(T entity) throws Exception;", "@Override\n\tprotected void init() throws SiDCException, Exception {\n\t\tLogAction.getInstance().debug(\"Request:\" + entity);\n\t}", "@Override\n\tprotected void init() throws SiDCException, Exception {\n\t\tLogAction.getInstance().debug(\"Request:\" + entity);\n\t}" ]
[ "0.62302554", "0.61023533", "0.59742886", "0.5840206", "0.57447046", "0.5685041", "0.567695", "0.56731385", "0.5564615", "0.55326", "0.55293506", "0.55063146", "0.54920805", "0.54830694", "0.54691947", "0.5468649", "0.54638165", "0.544825", "0.5440244", "0.54343486", "0.5424082", "0.540678", "0.5382646", "0.537904", "0.5373971", "0.5373597", "0.5368986", "0.53610456", "0.5306677", "0.53064126", "0.52985865", "0.52918684", "0.5279297", "0.52787", "0.5258576", "0.52532285", "0.523737", "0.52321565", "0.52002734", "0.5191548", "0.51821834", "0.5161897", "0.51610357", "0.5144059", "0.51250327", "0.51248723", "0.51159495", "0.5110196", "0.5104388", "0.5102401", "0.50974184", "0.5093187", "0.5086351", "0.5085334", "0.5081339", "0.50719523", "0.5071297", "0.50711286", "0.5066673", "0.5064591", "0.506104", "0.5056487", "0.50544363", "0.5040202", "0.5038045", "0.50375336", "0.5030327", "0.50205696", "0.501971", "0.5017792", "0.5015527", "0.50052667", "0.50036645", "0.49857056", "0.49752963", "0.49749815", "0.4974968", "0.49733594", "0.49710116", "0.49704972", "0.49622947", "0.49597892", "0.4953458", "0.49510533", "0.4950762", "0.49435616", "0.49388683", "0.49362296", "0.49304295", "0.4930076", "0.4928891", "0.4926733", "0.49262714", "0.49261978", "0.49239907", "0.49209535", "0.49201992", "0.49193862", "0.49192017", "0.49188146", "0.49188146" ]
0.0
-1
Updates the stock price after adding the DTO to the database.
@Override protected void postAddDTO( final D dto ) { final String methodName = "postAddDTO"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto argument cannot be null" ); super.postAddDTO( dto ); this.updateStockPrice( dto ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateStockPrice( final D dto )\n {\n final String methodName = \"updateStockPrice\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockPriceQuoteService\n .setStockPriceQuote( (StockPriceQuoteDTOContainer) dto );\n logMethodEnd( methodName );\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "public void putNewPrice(String symbol, double price);", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "public void updateStockPrice(String ticker, double currentUnitValue) {\n\t\tStock stock = this.findStockByTicker(ticker);\n\t\tstock.setCurrentUnitValue(currentUnitValue);\n\t\tstockRepo.save(stock);\t\n\t}", "public void setPriceStdOld (BigDecimal PriceStdOld);", "@Test\n public void addPrice() throws Exception {\n final PriceDraft expectedPrice = PriceDraft.of(MoneyImpl.of(123, EUR));\n withUpdateableProduct(client(), product -> {\n final Product updatedProduct = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddPrice.of(1, expectedPrice)));\n\n\n final List<Price> prices = updatedProduct.getMasterData().getStaged().getMasterVariant().getPrices();\n assertThat(prices).hasSize(1);\n final Price actualPrice = prices.get(0);\n\n assertThat(expectedPrice).isEqualTo(PriceDraft.of(actualPrice));\n\n return updatedProduct;\n });\n }", "@Override\n\tpublic void doUpdate(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t\t model.setPrice(\"0\");\n\t\t\t }\n\t\t\t double dprice =Double.parseDouble(model.getPrice());\n\t\t BigDecimal bg = new BigDecimal(dprice/10000);\n\t\t double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n\t\t model.setPrice(f1+\"\");\n\t\t model.setSource(\"001\");\n\t\t model.setSellContent(\"\");\n\t\tsuper.doUpdate(model, request, response);\n\t}", "BigDecimal getDirtyPrice();", "ResponseEntity<Price> updatePrice(String cartId);", "private void updatePriceAndSaving() {\n movieOrder = new MovieOrder(movie, Weekday.weekdayForValue(selectedDay), flagsApplied, numberOfTickets);\n\n tvTotalPriceNewTickets.setText(getResources().getString(\n R.string.total_price_new_tickets,\n movieOrder.getTotalPriceAfterDiscount(),\n movieOrder.getNumberOfTicketsAfterOfferIsApplied())\n );\n\n tvSavingsNewTickets.setText(getResources().getString(\n R.string.today_saving_new_tickets,\n movieOrder.getTotalSaving()\n ));\n }", "public void changePrice(TripDTO trip, BigDecimal price);", "public void setPriceEntered (BigDecimal PriceEntered);", "public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }", "public void setPriceListOld (BigDecimal PriceListOld);", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner scanner;\n\t\t\ttry {\n\t\t\t\tscanner = new Scanner(this.dataURL.openStream());\n\t\t\t\twhile (scanner.hasNextLine())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tscanner\n\t\t\t\t\t\t\t\t.findInLine(Pattern\n\t\t\t\t\t\t\t\t\t\t.compile(\"([0-9.]*),\\\"([0-9a-zA-Z._-]*)\\\",\\\"([a-zA-Z._\\\\s-]*)\\\"\"));\n\t\t\t\t\t\tfinal MatchResult result = scanner.match();\n\t\t\t\t\t\tboolean found = false;\n\t\t\t\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\t\t\t\tif (company.getCompanySymbol().equals(\n\t\t\t\t\t\t\t\t\tresult.group(2))) {\n\t\t\t\t\t\t\t\tfinal Double stockPrice = Double\n\t\t\t\t\t\t\t\t\t\t.parseDouble(result.group(1));\n\t\t\t\t\t\t\t\tcompany.setStockPrice(stockPrice);\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!found)\n\t\t\t\t\t\t\tStockBrokerImpl.this.stockData\n\t\t\t\t\t\t\t\t\t.add(new StockCompany(result.group(3),\n\t\t\t\t\t\t\t\t\t\t\tresult.group(2), Double\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parseDouble(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.group(1))));\n\n\t\t\t\t\t\tscanner.nextLine();\n\n\t\t\t\t\t} catch (final NumberFormatException e) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"CRITICAL ERROR: Update data corrupted. [Virtually impossible]\");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"ERROR: Connection to stock price update feed could not be established.\");\n\t\t\t}\n\t\t}", "public BigDecimal getStock_price() {\n return stock_price;\n }", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void setPrice(double price){this.price=price;}", "public void setPrice(Double price);", "@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}", "public void setPriceActual (BigDecimal PriceActual);", "public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }", "@Transactional\n @Modifying\n @Query(\"update Item i set i.price = i.price * 1.1\")\n void increacePriceBy10Percent();", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}", "public void setPriceStdEntered (BigDecimal PriceStdEntered);", "public void priceUpdate(String security, double price) {\n logger.debug(\"There is a price update for stock: \" + security + \" :: updated price: \" + price);\n stockMap.get(security).setPricePerUnit(price);\n for (Map.Entry<String, PersonalStock> entrySet : personalStockMap.entrySet()) {\n entrySet.getValue().priceUpdate(security, price);\n }\n }", "@Test\n\tpublic void testUpdateStock() {\n\t\tStock stock = null;\n\t\tString productId = \"HY-1004\";\n\t\tTestFactory tf = new TestFactory();\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tif (!tf.createStock(em, productId)) {\n\t\t\t\tfail(\"Unable to create \"); // doubt\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tem.getTransaction().begin();\n\t\t\t// Find Stock for update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\t// Update Business Partner\n\t\t\tstock.setQuantity(BigDecimal.valueOf(10));\n\t\t\tem.persist(stock);\n\t\t\tem.getTransaction().commit();\n\t\t\t// Find Business Partner after update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\tassertEquals(\n\t\t\t\t\t\"Update Stock: Stock attribute quantity not updated in the database\",\n\t\t\t\t\tBigDecimal.valueOf(10), stock.getQuantity());\n\t\t\ttf.deleteStock(em, productId);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\n\t}", "public void onStockpriceChanged();", "public ProductWithStockItemTO updateStockItem(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "@Override\n public void updateProduct(TradingQuote tradingQuote) {\n }", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "@Override\n\tpublic void doSave(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t model.setPrice(\"0\");\n\t\t }\n\t\t double dprice =Double.parseDouble(model.getPrice());\n\t BigDecimal bg = new BigDecimal(dprice/10000);\n\t double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n\t model.setPrice(f1+\"\");\n\t model.setSource(\"001\");\n\t\t\n\t\tsuper.doSave(model, request, response);\n\t}", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "@Override\n protected void postSaveDTO( final D dto )\n {\n final String methodName = \"postSaveDTO\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n super.postSaveDTO( dto );\n this.updateStockPrice( dto );\n logMethodEnd( methodName );\n }", "public void setPriceStd (BigDecimal PriceStd);", "public void updatehotelincome(double price ){\n String query = \"update Hotel set Income = Income + ? \";\n \n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setDouble(1,price);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@Modifying(clearAutomatically = true)\n\t@Lock(value = LockModeType.OPTIMISTIC_FORCE_INCREMENT)\n @Query(\"UPDATE Item i SET i.quantity = i.quantity + ?1 WHERE i =?2\")\n int addToStock(double qty, Item item);", "public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsList().get(i);\n attractionPrices += attraction.getPrice();\n }\n hotelPrice = diff(getEndDate(), getStartDate());\n price = getTravel().getPrice() + getHotel().getPrice()*(hotelPrice) \n + getTransport().getPrice()*getTravel().getDistance()\n + attractionPrices;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "@Override\n\tpublic boolean updateShopCartMoney(double price) {\n\t\treturn false;\n\t}", "public void updateJobPrice(int job_ID, double total_price, double total_discount){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Job` SET Total_discount = ?, Total_price = ? WHERE Job_ID = ?;\");\n Stm.setDouble(1, total_discount);\n Stm.setDouble(2,total_price);\n Stm.setInt(3, job_ID);\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "public void updateconsumption(HealthSearch healthSearcher,int amount,String id, String time,double price) {\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\"SELECT protein, energy, fiber,price FROM diet_conclusion where id = ? AND date = ?\");\n\t\t\tstmt.setString(1,id);\n\t\t\tstmt.setString(2,time.substring(0,8));\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tdouble previous_energy =0;\n\t\t\t\tdouble previous_fiber =0;\n\t\t\t\tdouble previous_protein =0;\n\t\t\t\tdouble previous_price = 0;\n\t\t\t\tdouble current_protein = 0;\n\t\t\t\tdouble current_energy =0;\n\t\t\t\tdouble current_fiber = 0;\n\t\t\t\tdouble current_price = 0;\n\t\t\t\tprevious_protein = rs.getDouble(1);\n\t\t\t\tprevious_energy = rs.getDouble(2);\n\t\t\t\tprevious_fiber = rs.getDouble(3);\n\t\t\t\tprevious_price = rs.getDouble(4);\n\n\t\t\t\tcurrent_price = price + previous_price;\n\n\n\t\t\t\tif( !healthSearcher.getProtein().equals(\"0\")) {\n\t\t\t\t\t current_protein = previous_protein + Double.parseDouble(healthSearcher.getProtein())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_protein = previous_protein;\n\n\t\t\t\t}\n\t\t\t\tif( !healthSearcher.getEnergy().equals(\"0\")) {\n\t\t\t\t\tcurrent_energy = previous_energy + Double.parseDouble(healthSearcher.getEnergy())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_energy = previous_energy;\n\t\t\t\t}\n\t\t\t\tif( !healthSearcher.getFiber().equals(\"0\")) {\n\t\t\t\t\tcurrent_fiber = previous_fiber + Double.parseDouble(healthSearcher.getFiber())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_fiber = previous_fiber;\n\t\t\t\t}\n\t\t\t\tPreparedStatement stmt2 = connection.prepareStatement(\n\t\t\t\t\"UPDATE diet_conclusion SET protein = ?, energy = ?, fiber = ?, price=? WHERE id = ? AND date = ?;\");\n\n\t\t\t\tstmt2.setDouble(1, current_protein);\n\t\t\t\tstmt2.setDouble(2, current_energy);\n\t\t\t\tstmt2.setDouble(3, current_fiber);\n\t\t\t\tstmt2.setDouble(4, current_price);\n\t\t\t\tstmt2.setString(5, id);\n\t\t\t\tstmt2.setString(6, time.substring(0,8));\n\t\t\t\tstmt2.execute();\n\t\t\t\tstmt2.close();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tPreparedStatement stmt1 = connection.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO diet_conclusion VALUES(?,?,?,?,?,?)\");\n\t\t\t\tstmt1.setString(1,id);\n\t\t\t\tstmt1.setString(2, time.substring(0,8));\n\t\t\t\tstmt1.setDouble(3, Double.parseDouble(healthSearcher.getProtein())*amount/100.0);\n\t\t\t\tstmt1.setDouble(4, Double.parseDouble(healthSearcher.getEnergy())*amount/100.0);\n\t\t\t\tstmt1.setDouble(5, Double.parseDouble(healthSearcher.getFiber())*amount/100.0);\n\t\t\t\tstmt1.setDouble(6, price);\n\t\t\t\tstmt1.execute();\n\t\t\t\tstmt1.close();\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\trs.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public void setPrice(double price)\n {\n this.price = price;\n }", "@Override\r\n\tpublic void stockUpdate(adminStockVO vo) {\n\t\tadminDAO.stockUpdate(vo);\r\n\t}", "public void setPrice(Money price) {\n this.price = price;\n }", "public void setPriceListEntered (BigDecimal PriceListEntered);", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public void setPrice(Date price) {\n this.price = price;\n }", "public void setPriceLastOrd (BigDecimal PriceLastOrd);", "public void updateCurrentPriceAndValue (Double newPrice) {\n\t\t\n\t\tcurrentPrice = newPrice;\n\t\tcurrentValue = currentPrice * quantity;\n\t\t\n\t\t\n\t}", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setConvertedProductQty (BigDecimal ConvertedProductQty)\n{\nset_Value (\"ConvertedProductQty\", ConvertedProductQty);\n}", "public void save(PosPrice posPrice) throws DataAccessException {\n super.save(posPrice);\n }", "void updatePriceReference(final ApplicationAssetPairTicker applicationAssetPairTicker);", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "protected void setStockPriceWhenCreated( final String tickerSymbol, final StockPriceWhenCreatedContainer entity )\n {\n Objects.requireNonNull( tickerSymbol, \"tickerSymbol argument cannot be null\" );\n Objects.requireNonNull( entity, \"entity argument cannot be null\" );\n /*\n * The stock price needs to be set the first time as it records the stock price when the record was created.\n */\n entity.setStockPriceWhenCreated( this.stockPriceQuoteService\n .getLastPrice( tickerSymbol ));\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}", "public Date getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public synchronized void updateCurrentMarket() throws InvalidDataException {\n\t\tPrice topBuyPrice = (getBuySide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getBuySide().topOfBookPrice();\n\t\tPrice topSellPrice = (getSellSide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getSellSide().topOfBookPrice();\n\n\t\tString data = topBuyPrice.toString() + getBuySide().topOfBookVolume()\n\t\t\t\t\t+ topSellPrice.toString() + getSellSide().topOfBookVolume();\n\t\tif (!getLatestMarketData().equals(data)) {\n\t\t\tMarketDataDTO latestData = new MarketDataDTO(getStock(), topBuyPrice, \n\t\t\t\t\tgetBuySide().topOfBookVolume(), topSellPrice, getSellSide().topOfBookVolume());\n\t\t\tCurrentMarketPublisher.getInstance().publishCurrentMarket(latestData);\n\t\t\tsetLatestMarketData(data);\n\t\t}\n\t}", "public Double getPrice() {\r\n return price;\r\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public void setPrice(Long price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}", "public void setPriceLastInv (BigDecimal PriceLastInv);", "public BigDecimal getPrice() {\n return price;\n }", "public BigDecimal getPrice() {\n return price;\n }" ]
[ "0.7467357", "0.6948116", "0.68245345", "0.667927", "0.65850586", "0.65730494", "0.6477641", "0.6477311", "0.6476655", "0.64618134", "0.64551646", "0.64048845", "0.63999504", "0.6386286", "0.63686055", "0.6365721", "0.6351095", "0.6309193", "0.6300718", "0.6260039", "0.6241803", "0.62251145", "0.62105054", "0.6202402", "0.6200795", "0.6188059", "0.61776894", "0.61735255", "0.61569387", "0.6143524", "0.61402047", "0.6119922", "0.6118087", "0.6113697", "0.6102861", "0.6101921", "0.60884506", "0.6085176", "0.6078512", "0.6069319", "0.6057825", "0.60546917", "0.60489273", "0.6044815", "0.6033342", "0.6033342", "0.60316974", "0.6020909", "0.6012963", "0.5992573", "0.5989273", "0.5989273", "0.59816265", "0.59816265", "0.5972798", "0.5970341", "0.59701246", "0.59611607", "0.5960112", "0.5944253", "0.59268606", "0.5910863", "0.5910863", "0.5910863", "0.59106356", "0.59078825", "0.59078825", "0.59078825", "0.59078825", "0.59078825", "0.59078825", "0.59078825", "0.5905965", "0.58922476", "0.5871936", "0.5867095", "0.5852448", "0.5833956", "0.5830806", "0.5789572", "0.57894087", "0.57888824", "0.57888824", "0.5788699", "0.5787019", "0.576014", "0.5759848", "0.57587624", "0.57502204", "0.57502204", "0.5746079", "0.57449055", "0.5737178", "0.5719829", "0.5717247", "0.5717247", "0.5714801", "0.57030123", "0.56998426", "0.56998426" ]
0.60873556
37
Updates the stock price after updating the DTO in the database.
@Override protected void postSaveDTO( final D dto ) { final String methodName = "postSaveDTO"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto argument cannot be null" ); super.postSaveDTO( dto ); this.updateStockPrice( dto ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateStockPrice( final D dto )\n {\n final String methodName = \"updateStockPrice\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockPriceQuoteService\n .setStockPriceQuote( (StockPriceQuoteDTOContainer) dto );\n logMethodEnd( methodName );\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "public void updateStockPrice(String ticker, double currentUnitValue) {\n\t\tStock stock = this.findStockByTicker(ticker);\n\t\tstock.setCurrentUnitValue(currentUnitValue);\n\t\tstockRepo.save(stock);\t\n\t}", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "ResponseEntity<Price> updatePrice(String cartId);", "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "@Override\n\tpublic void doUpdate(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t\t model.setPrice(\"0\");\n\t\t\t }\n\t\t\t double dprice =Double.parseDouble(model.getPrice());\n\t\t BigDecimal bg = new BigDecimal(dprice/10000);\n\t\t double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n\t\t model.setPrice(f1+\"\");\n\t\t model.setSource(\"001\");\n\t\t model.setSellContent(\"\");\n\t\tsuper.doUpdate(model, request, response);\n\t}", "@Test\n\tpublic void testUpdateStock() {\n\t\tStock stock = null;\n\t\tString productId = \"HY-1004\";\n\t\tTestFactory tf = new TestFactory();\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tif (!tf.createStock(em, productId)) {\n\t\t\t\tfail(\"Unable to create \"); // doubt\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tem.getTransaction().begin();\n\t\t\t// Find Stock for update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\t// Update Business Partner\n\t\t\tstock.setQuantity(BigDecimal.valueOf(10));\n\t\t\tem.persist(stock);\n\t\t\tem.getTransaction().commit();\n\t\t\t// Find Business Partner after update\n\t\t\tstock = em.find(Stock.class, productId);\n\t\t\tassertEquals(\n\t\t\t\t\t\"Update Stock: Stock attribute quantity not updated in the database\",\n\t\t\t\t\tBigDecimal.valueOf(10), stock.getQuantity());\n\t\t\ttf.deleteStock(em, productId);\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\n\t}", "public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}", "public void priceUpdate(String security, double price) {\n logger.debug(\"There is a price update for stock: \" + security + \" :: updated price: \" + price);\n stockMap.get(security).setPricePerUnit(price);\n for (Map.Entry<String, PersonalStock> entrySet : personalStockMap.entrySet()) {\n entrySet.getValue().priceUpdate(security, price);\n }\n }", "public void onStockpriceChanged();", "public void setPriceStdOld (BigDecimal PriceStdOld);", "public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner scanner;\n\t\t\ttry {\n\t\t\t\tscanner = new Scanner(this.dataURL.openStream());\n\t\t\t\twhile (scanner.hasNextLine())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tscanner\n\t\t\t\t\t\t\t\t.findInLine(Pattern\n\t\t\t\t\t\t\t\t\t\t.compile(\"([0-9.]*),\\\"([0-9a-zA-Z._-]*)\\\",\\\"([a-zA-Z._\\\\s-]*)\\\"\"));\n\t\t\t\t\t\tfinal MatchResult result = scanner.match();\n\t\t\t\t\t\tboolean found = false;\n\t\t\t\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\t\t\t\tif (company.getCompanySymbol().equals(\n\t\t\t\t\t\t\t\t\tresult.group(2))) {\n\t\t\t\t\t\t\t\tfinal Double stockPrice = Double\n\t\t\t\t\t\t\t\t\t\t.parseDouble(result.group(1));\n\t\t\t\t\t\t\t\tcompany.setStockPrice(stockPrice);\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!found)\n\t\t\t\t\t\t\tStockBrokerImpl.this.stockData\n\t\t\t\t\t\t\t\t\t.add(new StockCompany(result.group(3),\n\t\t\t\t\t\t\t\t\t\t\tresult.group(2), Double\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parseDouble(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.group(1))));\n\n\t\t\t\t\t\tscanner.nextLine();\n\n\t\t\t\t\t} catch (final NumberFormatException e) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"CRITICAL ERROR: Update data corrupted. [Virtually impossible]\");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"ERROR: Connection to stock price update feed could not be established.\");\n\t\t\t}\n\t\t}", "@Transactional\n @Modifying\n @Query(\"update Item i set i.price = i.price * 1.1\")\n void increacePriceBy10Percent();", "public void changePrice(TripDTO trip, BigDecimal price);", "private void updatePriceAndSaving() {\n movieOrder = new MovieOrder(movie, Weekday.weekdayForValue(selectedDay), flagsApplied, numberOfTickets);\n\n tvTotalPriceNewTickets.setText(getResources().getString(\n R.string.total_price_new_tickets,\n movieOrder.getTotalPriceAfterDiscount(),\n movieOrder.getNumberOfTicketsAfterOfferIsApplied())\n );\n\n tvSavingsNewTickets.setText(getResources().getString(\n R.string.today_saving_new_tickets,\n movieOrder.getTotalSaving()\n ));\n }", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }", "public void putNewPrice(String symbol, double price);", "@Override\r\n\tpublic void stockUpdate(adminStockVO vo) {\n\t\tadminDAO.stockUpdate(vo);\r\n\t}", "public void updateJobPrice(int job_ID, double total_price, double total_discount){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Job` SET Total_discount = ?, Total_price = ? WHERE Job_ID = ?;\");\n Stm.setDouble(1, total_discount);\n Stm.setDouble(2,total_price);\n Stm.setInt(3, job_ID);\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public BigDecimal getStock_price() {\n return stock_price;\n }", "@Override\n public void updateProduct(TradingQuote tradingQuote) {\n }", "public void updatehotelincome(double price ){\n String query = \"update Hotel set Income = Income + ? \";\n \n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setDouble(1,price);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "BigDecimal getDirtyPrice();", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "public void setPrice(double price){this.price=price;}", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public void updateCurrentPriceAndValue (Double newPrice) {\n\t\t\n\t\tcurrentPrice = newPrice;\n\t\tcurrentValue = currentPrice * quantity;\n\t\t\n\t\t\n\t}", "public ProductWithStockItemTO updateStockItem(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "public void setPrice(Double price);", "public void Update(StokContract entity) {\n\t\t\n\t}", "public void setPriceListOld (BigDecimal PriceListOld);", "@Override\n\tpublic boolean updateShopCartMoney(double price) {\n\t\treturn false;\n\t}", "@FXML\n\t private void updateProductPrice (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.updateProdPrice(prodIdText.getText(),newPriceText.getText());\n\t resultArea.setText(\"Price has been updated for, product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while updating price: \" + e);\n\t }\n\t }", "public void setPriceEntered (BigDecimal PriceEntered);", "public void changePrice(Booking booking, float price);", "public void updateconsumption(HealthSearch healthSearcher,int amount,String id, String time,double price) {\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\"SELECT protein, energy, fiber,price FROM diet_conclusion where id = ? AND date = ?\");\n\t\t\tstmt.setString(1,id);\n\t\t\tstmt.setString(2,time.substring(0,8));\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tdouble previous_energy =0;\n\t\t\t\tdouble previous_fiber =0;\n\t\t\t\tdouble previous_protein =0;\n\t\t\t\tdouble previous_price = 0;\n\t\t\t\tdouble current_protein = 0;\n\t\t\t\tdouble current_energy =0;\n\t\t\t\tdouble current_fiber = 0;\n\t\t\t\tdouble current_price = 0;\n\t\t\t\tprevious_protein = rs.getDouble(1);\n\t\t\t\tprevious_energy = rs.getDouble(2);\n\t\t\t\tprevious_fiber = rs.getDouble(3);\n\t\t\t\tprevious_price = rs.getDouble(4);\n\n\t\t\t\tcurrent_price = price + previous_price;\n\n\n\t\t\t\tif( !healthSearcher.getProtein().equals(\"0\")) {\n\t\t\t\t\t current_protein = previous_protein + Double.parseDouble(healthSearcher.getProtein())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_protein = previous_protein;\n\n\t\t\t\t}\n\t\t\t\tif( !healthSearcher.getEnergy().equals(\"0\")) {\n\t\t\t\t\tcurrent_energy = previous_energy + Double.parseDouble(healthSearcher.getEnergy())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_energy = previous_energy;\n\t\t\t\t}\n\t\t\t\tif( !healthSearcher.getFiber().equals(\"0\")) {\n\t\t\t\t\tcurrent_fiber = previous_fiber + Double.parseDouble(healthSearcher.getFiber())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_fiber = previous_fiber;\n\t\t\t\t}\n\t\t\t\tPreparedStatement stmt2 = connection.prepareStatement(\n\t\t\t\t\"UPDATE diet_conclusion SET protein = ?, energy = ?, fiber = ?, price=? WHERE id = ? AND date = ?;\");\n\n\t\t\t\tstmt2.setDouble(1, current_protein);\n\t\t\t\tstmt2.setDouble(2, current_energy);\n\t\t\t\tstmt2.setDouble(3, current_fiber);\n\t\t\t\tstmt2.setDouble(4, current_price);\n\t\t\t\tstmt2.setString(5, id);\n\t\t\t\tstmt2.setString(6, time.substring(0,8));\n\t\t\t\tstmt2.execute();\n\t\t\t\tstmt2.close();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tPreparedStatement stmt1 = connection.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO diet_conclusion VALUES(?,?,?,?,?,?)\");\n\t\t\t\tstmt1.setString(1,id);\n\t\t\t\tstmt1.setString(2, time.substring(0,8));\n\t\t\t\tstmt1.setDouble(3, Double.parseDouble(healthSearcher.getProtein())*amount/100.0);\n\t\t\t\tstmt1.setDouble(4, Double.parseDouble(healthSearcher.getEnergy())*amount/100.0);\n\t\t\t\tstmt1.setDouble(5, Double.parseDouble(healthSearcher.getFiber())*amount/100.0);\n\t\t\t\tstmt1.setDouble(6, price);\n\t\t\t\tstmt1.execute();\n\t\t\t\tstmt1.close();\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\trs.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setPrice(Double price) {\r\n this.price = price;\r\n }", "@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}", "public void setPriceActual (BigDecimal PriceActual);", "public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }", "@Override\n\tpublic void updatePrice(Goods goods) {\n\t\tgoodsMapper.updateByPrimaryKeySelective(goods);\n\t}", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void setPrice(Double price) {\n this.price = price;\n }", "public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsList().get(i);\n attractionPrices += attraction.getPrice();\n }\n hotelPrice = diff(getEndDate(), getStartDate());\n price = getTravel().getPrice() + getHotel().getPrice()*(hotelPrice) \n + getTransport().getPrice()*getTravel().getDistance()\n + attractionPrices;\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "public void setStock_update(String stock_update) {\n this.stock_update = stock_update;\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size you wish to update\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Change price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Change amount in stock\");\n\t\tlong stock = util.getLong();\n\t\tLOGGER.info(\"\\n\");\n\t\treturn itemDAO.update(new Item(name,size,price,stock));\n\t\t\n\t\t\n\t\t\n\t}", "public void setPrice(Money price) {\n this.price = price;\n }", "@Test\n public void addPrice() throws Exception {\n final PriceDraft expectedPrice = PriceDraft.of(MoneyImpl.of(123, EUR));\n withUpdateableProduct(client(), product -> {\n final Product updatedProduct = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddPrice.of(1, expectedPrice)));\n\n\n final List<Price> prices = updatedProduct.getMasterData().getStaged().getMasterVariant().getPrices();\n assertThat(prices).hasSize(1);\n final Price actualPrice = prices.get(0);\n\n assertThat(expectedPrice).isEqualTo(PriceDraft.of(actualPrice));\n\n return updatedProduct;\n });\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "public void setPrice(double price) {\r\n this.price = price;\r\n }", "void updatePriceReference(final ApplicationAssetPairTicker applicationAssetPairTicker);", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice(double price) {\n this.price = price;\n }", "public void setPrice (double ticketPrice)\r\n {\r\n price = ticketPrice;\r\n }", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public void setPrice(Float price) {\r\n this.price = price;\r\n }", "private void updatePriceStats(double newPrice) {\n this.currentPrice = newPrice;\n this.currentAvgPrice = Double.parseDouble(decimalFormat.format(computeSMA(newPrice, currentAvgPrice, priceHistory)));\n this.priceChangePCT = Double.parseDouble(decimalFormat.format(computeDifferentialPCT(newPrice, currentAvgPrice)));\n }", "@Override\n public boolean updateItemModelPrice(ItemModelPrice itemModelPrice) {\n return itemModelPriceDao.update(itemModelPrice);\n }", "public void setPrice(Float price) {\n this.price = price;\n }", "public void setPriceStdEntered (BigDecimal PriceStdEntered);", "public synchronized void updateCurrentMarket() throws InvalidDataException {\n\t\tPrice topBuyPrice = (getBuySide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getBuySide().topOfBookPrice();\n\t\tPrice topSellPrice = (getSellSide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getSellSide().topOfBookPrice();\n\n\t\tString data = topBuyPrice.toString() + getBuySide().topOfBookVolume()\n\t\t\t\t\t+ topSellPrice.toString() + getSellSide().topOfBookVolume();\n\t\tif (!getLatestMarketData().equals(data)) {\n\t\t\tMarketDataDTO latestData = new MarketDataDTO(getStock(), topBuyPrice, \n\t\t\t\t\tgetBuySide().topOfBookVolume(), topSellPrice, getSellSide().topOfBookVolume());\n\t\t\tCurrentMarketPublisher.getInstance().publishCurrentMarket(latestData);\n\t\t\tsetLatestMarketData(data);\n\t\t}\n\t}", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "public void setPrice(BigDecimal price) {\r\n this.price = price;\r\n }", "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPrice(BigDecimal price) {\n this.price = price;\n }", "public void setPriceStd (BigDecimal PriceStd);", "public void setPrice(double value) {\n this.price = value;\n }", "public void setPrice(double value) {\n this.price = value;\n }", "public void saveOrUpdate(PosPrice posPrice) throws DataAccessException{\n super.saveOrUpdate(posPrice);\n }", "public void doChangeTicketPrices();", "public void setPrice(Date price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "public void setPrice(float price) {\n this.price = price;\n }", "@Override\n\tpublic Integer update(InvBaseStock baseStock) {\n\t\treturn invBaseStockDao.update(baseStock);\n\t}", "@Override\n\tpublic void setPrice(double price) {\n\t\tconstantPO.setPrice(price);\n\t}", "@Override\n\tpublic void doSave(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t model.setPrice(\"0\");\n\t\t }\n\t\t double dprice =Double.parseDouble(model.getPrice());\n\t BigDecimal bg = new BigDecimal(dprice/10000);\n\t double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n\t model.setPrice(f1+\"\");\n\t model.setSource(\"001\");\n\t\t\n\t\tsuper.doSave(model, request, response);\n\t}", "@Override\n\tpublic void updateStock(Stock s) {\n\n\t\ttry {\n\t String sql = \"INSERT or Replace into stockTable (hlr,sim,card,easyL,easyLR,easyP,easyPR,cash) \"\n\t \t\t+ \"VALUES (?,?,?,?,?,?,?,?)\";\n\t \n\t prepStmt = connection.prepareStatement(sql);\n\t prepStmt.setInt(1, s.getHlr());\n\t prepStmt.setInt(2, s.getSim());\n\t prepStmt.setInt(3, s.getCard());\n\t prepStmt.setInt(4, s.getEasyLoad());\n\t prepStmt.setInt(5, s.getEasyLoadReturn());\n\t prepStmt.setInt(6, s.getEasyPaisa());\n\t prepStmt.setInt(7, s.getEasyPaisaReturn());\n\t prepStmt.setInt(8,s.getCash());\n\t \t\t \n\t prepStmt.executeUpdate();\n\t \n\n\t System.out.println(\">>> Successfully insert query working\"); \n\t } catch (SQLException ex) {\n \n\t \t System.out.println(\"*** Error: insert query is not working\");\n\t \t ex.printStackTrace();\n\t \t \n\t }\n\t\t\n\t\t\n\t}", "public void stockItemPrice(String upc, int qty, int price_incent)\n\n\t\t\tthrows SQLException, ClassNotFoundException, IOException\n\n\t\t\t{\n\n\t\tif(qty < 0)\n\n\t\t\t//sanity check\n\n\t\t\tthrow new IOException(\"Quantity input cannot be less than 0.\");\n\n\t\tif(price_incent <= 0)\n\n\t\t\t//santiy check\n\n\t\t\tthrow new IOException(\"Price input must be larger than 0.\");\n\n\n\n\t\tif(this.conn == null)\n\n\t\t\tthis.conn = JDBCConnection.getConnection();\n\n\n\n\t\tPreparedStatement stmt = conn.prepareStatement(\n\n\t\t\t\t\"UPDATE Item \" +\n\n\t\t\t\t\t\t\"SET stock = stock + ?, price = ? \" +\n\n\t\t\t\t\"WHERE upc = ?\");\n\n\t\tstmt.setInt(1, qty);\n\n\t\tstmt.setDouble(2, (double)price_incent / 100.0);\n\n\t\tstmt.setString(3, upc);\n\n\t\ttry\n\n\t\t{\n\n\t\t\tint update = stmt.executeUpdate();\n\n\t\t\tif(update == 1)\n\n\t\t\t\treturn;\n\n\t\t\telse if(update == 0)\n\n\t\t\t\t//if none is update\n\n\t\t\t\tthrow new SQLException(\"The Item with upc \" + upc + \" does \" +\n\n\t\t\t\t\t\t\"not exist.\");\n\n\t\t\telse\n\n\t\t\t\t//Fatal error: more than 1 tuple is updated -> duplicate upc!!!\n\n\t\t\t\tthrow new SQLException(\"Fatal Error: Duplicate UPC!\");\n\n\t\t}\n\n\t\tfinally\n\n\t\t{\n\n\t\t\tstmt.close();\n\n\t\t}\n\n\t\t\t}", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "public void updateActivarGestionStock(Map criteria);", "private void updatePrice() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tfor(int i = first;i<last;i++){\r\n\t\t\tProduct product = products.get(i);\r\n\t\t\tproduct.setPrivce(product.getPrivce()*(1+increment));\r\n\t\t}\r\n\t\t\r\n\t}", "public void setPrice(Long price) {\n this.price = price;\n }", "public String updateProductPrice(PriceAndCurrency priceAndCurrency) {\n\t\t// TODO Auto-generated method stub\n\t\tString response = myRetailAppDao.updateProductPrice(priceAndCurrency);\n\t\treturn response;\n\t}", "public void setStockPriceDate(Date stockPriceDate) {\n this.stockPriceDate = stockPriceDate;\n }" ]
[ "0.76638186", "0.7469901", "0.7386091", "0.7086537", "0.7034055", "0.6931617", "0.6892653", "0.68893856", "0.67147076", "0.67015916", "0.6665493", "0.66623247", "0.6640053", "0.6627862", "0.6603894", "0.66021454", "0.6557167", "0.6543468", "0.65416867", "0.6538794", "0.65339315", "0.6530065", "0.652849", "0.6524374", "0.6508903", "0.6504247", "0.6503115", "0.6446267", "0.6445216", "0.6436083", "0.6431013", "0.64197665", "0.6407107", "0.64051116", "0.63906443", "0.63242817", "0.6323335", "0.63206923", "0.6317226", "0.63018495", "0.6296772", "0.62907207", "0.6281685", "0.6263024", "0.6237831", "0.6231768", "0.6230299", "0.6223022", "0.6223022", "0.62186784", "0.6217269", "0.6215947", "0.6214191", "0.61934817", "0.6190414", "0.6184673", "0.61830366", "0.61798143", "0.6163691", "0.6163691", "0.6163691", "0.61477375", "0.61467046", "0.61467046", "0.61467046", "0.61467046", "0.61467046", "0.61467046", "0.61467046", "0.6145072", "0.6128168", "0.6121963", "0.6110713", "0.6106082", "0.60958034", "0.609147", "0.60874873", "0.60736394", "0.60736394", "0.6070257", "0.6068566", "0.6068566", "0.6064294", "0.6058232", "0.6058232", "0.60114825", "0.59974015", "0.59950566", "0.5993599", "0.5993599", "0.5977732", "0.5975561", "0.5973559", "0.5943309", "0.59430915", "0.5933464", "0.5930489", "0.5925708", "0.59191835", "0.591492", "0.5909336" ]
0.0
-1
Ansynchronous update request of the stock price.
protected void updateStockPrice( final D dto ) { final String methodName = "updateStockPrice"; logMethodBegin( methodName, dto ); Objects.requireNonNull( dto, "dto argument cannot be null" ); this.stockPriceQuoteService .setStockPriceQuote( (StockPriceQuoteDTOContainer) dto ); logMethodEnd( methodName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner scanner;\n\t\t\ttry {\n\t\t\t\tscanner = new Scanner(this.dataURL.openStream());\n\t\t\t\twhile (scanner.hasNextLine())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tscanner\n\t\t\t\t\t\t\t\t.findInLine(Pattern\n\t\t\t\t\t\t\t\t\t\t.compile(\"([0-9.]*),\\\"([0-9a-zA-Z._-]*)\\\",\\\"([a-zA-Z._\\\\s-]*)\\\"\"));\n\t\t\t\t\t\tfinal MatchResult result = scanner.match();\n\t\t\t\t\t\tboolean found = false;\n\t\t\t\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\t\t\t\tif (company.getCompanySymbol().equals(\n\t\t\t\t\t\t\t\t\tresult.group(2))) {\n\t\t\t\t\t\t\t\tfinal Double stockPrice = Double\n\t\t\t\t\t\t\t\t\t\t.parseDouble(result.group(1));\n\t\t\t\t\t\t\t\tcompany.setStockPrice(stockPrice);\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!found)\n\t\t\t\t\t\t\tStockBrokerImpl.this.stockData\n\t\t\t\t\t\t\t\t\t.add(new StockCompany(result.group(3),\n\t\t\t\t\t\t\t\t\t\t\tresult.group(2), Double\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parseDouble(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.group(1))));\n\n\t\t\t\t\t\tscanner.nextLine();\n\n\t\t\t\t\t} catch (final NumberFormatException e) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"CRITICAL ERROR: Update data corrupted. [Virtually impossible]\");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"ERROR: Connection to stock price update feed could not be established.\");\n\t\t\t}\n\t\t}", "@FXML\n private void updatePrice()\n {\n running = true;\n scheduledExecutorService = Executors.newSingleThreadScheduledExecutor();\n\n scheduledExecutorService.scheduleAtFixedRate(() ->\n {\n try {\n currentPrice.setText(api.getPrice(selectedComboBoxPairing));\n } catch (BinanceApiException e) {\n e.printStackTrace();\n }\n\n }, 0, 4, TimeUnit.SECONDS);\n }", "void stockPriceChanged(Stock stock, double oldValue, double newValue);", "public void onStockpriceChanged();", "ResponseEntity<Price> updatePrice(String cartId);", "public void setStock_update(String stock_update) {\n this.stock_update = stock_update;\n }", "void updatePriceReference(final ApplicationAssetPairTicker applicationAssetPairTicker);", "public void priceUpdate(String security, double price) {\n logger.debug(\"There is a price update for stock: \" + security + \" :: updated price: \" + price);\n stockMap.get(security).setPricePerUnit(price);\n for (Map.Entry<String, PersonalStock> entrySet : personalStockMap.entrySet()) {\n entrySet.getValue().priceUpdate(security, price);\n }\n }", "@Subscribe\n public void receiveCurrentPrice(CurrentPriceResponse currentPriceResponse) {\n if (currentPriceResponse.getCurrency().equals(\"btc\")) {\n // we made a btc price request\n btcPrice = new BigDecimal(currentPriceResponse.getPrice());\n } else {\n // local currency price\n localCurrencyPrice = new BigDecimal(currentPriceResponse.getPrice());\n }\n if (currentPriceResponse.getBtc() != null) {\n btcPrice = new BigDecimal(currentPriceResponse.getBtc());\n }\n RxBus.get().post(new WalletPriceUpdate());\n }", "public void updateStockPrice(String ticker, double currentUnitValue) {\n\t\tStock stock = this.findStockByTicker(ticker);\n\t\tstock.setCurrentUnitValue(currentUnitValue);\n\t\tstockRepo.save(stock);\t\n\t}", "public void doChangeTicketPrices();", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private void updateForecastRequest() {\n\t\tMyApplication.instance.getServiceManager().getForecastServiceUpdater()\n\t\t\t\t.updateForecastFromServer(new ForecastCallBack() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void forecastLoaded(List<YahooForcast> forecasts) {\n\t\t\t\t\t\tforecastUpdatedFromServiceUpdater(forecasts);\n\t\t\t\t\t}\n\t\t\t\t}, woeid);\n\t}", "java.util.concurrent.Future<UpdateDataIntegrationResult> updateDataIntegrationAsync(UpdateDataIntegrationRequest updateDataIntegrationRequest);", "public void updatePriceChart(String security, float time, float price) {\n final String s = security;\n final float t = time;\n final float p = price;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n if (chart != null)\n chart.addPoint(s, t, p);\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "public void fetchDataStock(){\n// stocks.add(new Stock(1,\"bitcoin\",new Double(7000),new Double(7500),new Double(5),null));\n\n stockFetcher = new StockAsyncTask ();\n stockFetcher.execute();\n\n\n // TODO:\n\n refresh(5000);\n\n\n }", "public void Update(StokContract entity) {\n\t\t\n\t}", "public void stockItemPrice(String upc, int qty, int price_incent)\n\n\t\t\tthrows SQLException, ClassNotFoundException, IOException\n\n\t\t\t{\n\n\t\tif(qty < 0)\n\n\t\t\t//sanity check\n\n\t\t\tthrow new IOException(\"Quantity input cannot be less than 0.\");\n\n\t\tif(price_incent <= 0)\n\n\t\t\t//santiy check\n\n\t\t\tthrow new IOException(\"Price input must be larger than 0.\");\n\n\n\n\t\tif(this.conn == null)\n\n\t\t\tthis.conn = JDBCConnection.getConnection();\n\n\n\n\t\tPreparedStatement stmt = conn.prepareStatement(\n\n\t\t\t\t\"UPDATE Item \" +\n\n\t\t\t\t\t\t\"SET stock = stock + ?, price = ? \" +\n\n\t\t\t\t\"WHERE upc = ?\");\n\n\t\tstmt.setInt(1, qty);\n\n\t\tstmt.setDouble(2, (double)price_incent / 100.0);\n\n\t\tstmt.setString(3, upc);\n\n\t\ttry\n\n\t\t{\n\n\t\t\tint update = stmt.executeUpdate();\n\n\t\t\tif(update == 1)\n\n\t\t\t\treturn;\n\n\t\t\telse if(update == 0)\n\n\t\t\t\t//if none is update\n\n\t\t\t\tthrow new SQLException(\"The Item with upc \" + upc + \" does \" +\n\n\t\t\t\t\t\t\"not exist.\");\n\n\t\t\telse\n\n\t\t\t\t//Fatal error: more than 1 tuple is updated -> duplicate upc!!!\n\n\t\t\t\tthrow new SQLException(\"Fatal Error: Duplicate UPC!\");\n\n\t\t}\n\n\t\tfinally\n\n\t\t{\n\n\t\t\tstmt.close();\n\n\t\t}\n\n\t\t\t}", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "public void updateDaily() throws IOException {\n String lResponse = null;\n try{\n lResponse = new HTTPRequest().execute( \"http://192.168.1.100:8080\" ).get();\n\n }catch(Exception e){}\n\n String input;\n// input = in.readLine();\n if(lResponse != null) {\n dailyValue = Double.parseDouble(lResponse);\n }\n }", "@Override\n\tpublic void doUpdate(SellOfer model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t if(StringUtil.isEmpty(model.getPrice())){\n\t\t\t\t model.setPrice(\"0\");\n\t\t\t }\n\t\t\t double dprice =Double.parseDouble(model.getPrice());\n\t\t BigDecimal bg = new BigDecimal(dprice/10000);\n\t\t double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n\t\t model.setPrice(f1+\"\");\n\t\t model.setSource(\"001\");\n\t\t model.setSellContent(\"\");\n\t\tsuper.doUpdate(model, request, response);\n\t}", "public String getStock_update() {\n return stock_update;\n }", "public void doUpdate() throws InterruptedException {\n\t\t\n\t\t\n\n\t\tString stockID;\n\t\tString stockBelong;\n\t\tString mExDate;\n\t\tString mExDate2;\n\t\tStringBuffer sb;\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd hh:mm:ss\");\n\t\tString strToday = sdf.format(new Date());\n\t\tSystem.out.println(strToday);\n\n//\t\tString strRows = \"\";\n//\t\ttry {\n//\t\t\tstrRows = Integer.toString(GetNumRows(rs));\n//\t\t} catch (Exception e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\n\t\t\n\n\t\tint i = 1;\n\n\n\t\t\tString sql = \"Select StockID,StockBelong,ExDate FROM t_stockhis_sina where ExAmount is null \";\n\t\t\t//String sql = \"Select StockID,StockBelong,ExDate FROM t_stockhis_sina where StockID = '600570'\";\n\t\t\t//ResultSet rs = mySQL.QueryBySQL(sql);\n\t\t\tMyBatis mb = MyBatis.getInstance();\n\t\t\tList<Map> lm = mb.queryBySQL(sql);\n\t\t\tIterator<Map> itr = lm.iterator();\n\t\t\tSemaphore semp = new Semaphore(40);\n\t\t\tMap m;\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tif (i % 100 == 0) {\n\t\t\t\t\tstrToday = sdf.format(new Date());\n\t\t\t\t\tSystem.out.println(strToday + \" now:\" + Integer.toString(i) + \" of \" );\n\t\t\t\t}\n\t\t\t\tm = (Map) itr.next();\n\t\t\t\tstockID = (String) m.get(\"StockID\");\n\t\t\t\tstockBelong = (String) m.get(\"StockBelong\");\n\t\t\t\tmExDate = (String) m.get(\"ExDate\");\n\t\t\t\tmExDate2 = mExDate.substring(0, 4) + \"-\" + mExDate.substring(4, 6) + \"-\" + mExDate.substring(6, 8);\n\n\t\t\t\t// 申请许可 \n\t\t\t semp.acquire(); \n\t\t\t\tUpdateExAmountFromSinaThread thread = new UpdateExAmountFromSinaThread();\n\t\t\t\tthread.setStockID(stockID);\n\t\t\t\tthread.setStockBelong(stockBelong);\n\t\t\t\tthread.setSemp(semp);\n\t\t\t\tthread.setmExDate(mExDate);\n\t\t\t\tthread.setmExDate2(mExDate2);\n\t\t\t\tthread.start();\n\t\t\t\t\n\t\t\t\ti++;\n\t\t\t\t\n\t\t\t}\n\n\t\tstrToday = sdf.format(new Date());\n\t\tSystem.out.println(\"End:\" + strToday);\n\t\t\n\t\t//mySQL.destroy();\n\t\t\n\t}", "public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsList().get(i);\n attractionPrices += attraction.getPrice();\n }\n hotelPrice = diff(getEndDate(), getStartDate());\n price = getTravel().getPrice() + getHotel().getPrice()*(hotelPrice) \n + getTransport().getPrice()*getTravel().getDistance()\n + attractionPrices;\n }", "java.util.concurrent.Future<UpdateDataIntegrationResult> updateDataIntegrationAsync(UpdateDataIntegrationRequest updateDataIntegrationRequest,\n com.amazonaws.handlers.AsyncHandler<UpdateDataIntegrationRequest, UpdateDataIntegrationResult> asyncHandler);", "public void updateconsumption(HealthSearch healthSearcher,int amount,String id, String time,double price) {\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\"SELECT protein, energy, fiber,price FROM diet_conclusion where id = ? AND date = ?\");\n\t\t\tstmt.setString(1,id);\n\t\t\tstmt.setString(2,time.substring(0,8));\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\tdouble previous_energy =0;\n\t\t\t\tdouble previous_fiber =0;\n\t\t\t\tdouble previous_protein =0;\n\t\t\t\tdouble previous_price = 0;\n\t\t\t\tdouble current_protein = 0;\n\t\t\t\tdouble current_energy =0;\n\t\t\t\tdouble current_fiber = 0;\n\t\t\t\tdouble current_price = 0;\n\t\t\t\tprevious_protein = rs.getDouble(1);\n\t\t\t\tprevious_energy = rs.getDouble(2);\n\t\t\t\tprevious_fiber = rs.getDouble(3);\n\t\t\t\tprevious_price = rs.getDouble(4);\n\n\t\t\t\tcurrent_price = price + previous_price;\n\n\n\t\t\t\tif( !healthSearcher.getProtein().equals(\"0\")) {\n\t\t\t\t\t current_protein = previous_protein + Double.parseDouble(healthSearcher.getProtein())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_protein = previous_protein;\n\n\t\t\t\t}\n\t\t\t\tif( !healthSearcher.getEnergy().equals(\"0\")) {\n\t\t\t\t\tcurrent_energy = previous_energy + Double.parseDouble(healthSearcher.getEnergy())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_energy = previous_energy;\n\t\t\t\t}\n\t\t\t\tif( !healthSearcher.getFiber().equals(\"0\")) {\n\t\t\t\t\tcurrent_fiber = previous_fiber + Double.parseDouble(healthSearcher.getFiber())*amount/100.0;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent_fiber = previous_fiber;\n\t\t\t\t}\n\t\t\t\tPreparedStatement stmt2 = connection.prepareStatement(\n\t\t\t\t\"UPDATE diet_conclusion SET protein = ?, energy = ?, fiber = ?, price=? WHERE id = ? AND date = ?;\");\n\n\t\t\t\tstmt2.setDouble(1, current_protein);\n\t\t\t\tstmt2.setDouble(2, current_energy);\n\t\t\t\tstmt2.setDouble(3, current_fiber);\n\t\t\t\tstmt2.setDouble(4, current_price);\n\t\t\t\tstmt2.setString(5, id);\n\t\t\t\tstmt2.setString(6, time.substring(0,8));\n\t\t\t\tstmt2.execute();\n\t\t\t\tstmt2.close();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tPreparedStatement stmt1 = connection.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO diet_conclusion VALUES(?,?,?,?,?,?)\");\n\t\t\t\tstmt1.setString(1,id);\n\t\t\t\tstmt1.setString(2, time.substring(0,8));\n\t\t\t\tstmt1.setDouble(3, Double.parseDouble(healthSearcher.getProtein())*amount/100.0);\n\t\t\t\tstmt1.setDouble(4, Double.parseDouble(healthSearcher.getEnergy())*amount/100.0);\n\t\t\t\tstmt1.setDouble(5, Double.parseDouble(healthSearcher.getFiber())*amount/100.0);\n\t\t\t\tstmt1.setDouble(6, price);\n\t\t\t\tstmt1.execute();\n\t\t\t\tstmt1.close();\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\trs.close();\n\t\t\tconnection.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public static String updatePrice(final double price, final int argItemId) {\r\n String msg = \"Update Unsuccessful\";\r\n\r\n int res = dao().updateItemPrice(price, argItemId);\r\n if (res > 0) {\r\n msg = \"Price updated successfully\";\r\n }\r\n return msg;\r\n }", "public void setStockPrice(double stockPrice) {\n\t\tthis.stockPrice = stockPrice;\n\t}", "public void updatehotelincome(double price ){\n String query = \"update Hotel set Income = Income + ? \";\n \n try {\n PreparedStatement Query = conn.prepareStatement(query);\n Query.setDouble(1,price);\n Query.execute();\n \n } catch (SQLException ex) {\n Logger.getLogger(sqlcommands.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void refreshData(float price) {\n if (price <= 0 || price == mLastPrice) {\n return;\n }\n mLastPrice = price;\n CombinedData data = mChartPrice.getData();\n if (data == null) return;\n LineData lineData = data.getLineData();\n if (lineData != null) {\n ILineDataSet set = lineData.getDataSetByIndex(0);\n if (set.removeLast()) {\n set.addEntry(new Entry(set.getEntryCount(), price));\n }\n }\n\n mChartPrice.notifyDataSetChanged();\n mChartPrice.invalidate();\n }", "public void changePrice(Booking booking, float price);", "public void updateCurrentPriceAndValue (Double newPrice) {\n\t\t\n\t\tcurrentPrice = newPrice;\n\t\tcurrentValue = currentPrice * quantity;\n\t\t\n\t\t\n\t}", "@Override\n\tpublic boolean updateShopCartMoney(double price) {\n\t\treturn false;\n\t}", "public void putNewPrice(String symbol, double price);", "@Override\n protected void onPostExecute(Void aVoid){\n super.onPostExecute(aVoid);\n this.dialog.dismiss();\n String url = this.item.getUrl();\n if(url.contains(HOME_DEPOT)){\n String[] values = this.textPrice.split(\" \");\n double dollars = Double.parseDouble(values[1]);\n double cents = Double.parseDouble(values[2])/100;\n this.currentPrice = dollars + cents;\n this.initTextPrice = this.initTextPrice.replace(\",\",(\"\"));\n this.initialPrice = Double.parseDouble(initTextPrice.substring(1));\n Toast.makeText(ctx,\"Done updating\",Toast.LENGTH_LONG).show();\n }\n else if (url.contains(AMAZON)){\n this.currentPrice = Double.parseDouble(this.textPrice.substring(1));//amazon\n Toast.makeText(ctx,\"Done updating\",Toast.LENGTH_LONG).show();\n }\n else if (url.contains(WALMART)){\n String[] values = this.textPrice.split(\" \");\n this.currentPrice = Double.parseDouble(values[0].substring(1));\n this.initialPrice = Double.parseDouble(values[2].substring(1));\n Toast.makeText(ctx,\"Done updating\",Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(ctx,\"Store Not supported\",Toast.LENGTH_LONG).show();\n this.currentPrice = 0.0;\n\n }\n\n\n if(this.initTextPrice == null){\n this.initialPrice = this.currentPrice;\n }\n\n\n\n item.setInitialPrice(this.initialPrice);\n item.setCurrentPrice(this.currentPrice);\n item.calculatePercentageChange();\n item.setChange();\n DatabaseItemManager d = new DatabaseItemManager(ctx);\n d.updateItem(item);\n adapter.notifyDataSetChanged();\n\n\n\n }", "public ProductWithStockItemTO changePrice(long storeID, StockItemTO stockItemTO) throws NotInDatabaseException, UpdateException;", "protected String[] commandRequestAdminChangePrice(Integer connectionId , String movieName , int price) {\n synchronized (lock) {\n String[] result= new String[2];\n Movie movie = getMovieFromListByMovieName(movieName);\n if (movie == null || !isAdmin(connectionId) || price <= 0) {\n result[0]=\"ERROR request changeprice failed\";\n return result;\n }\n // while (!movie.lock.compareAndSet(false, true)) ;\n movie.setPrice(price);\n //movie.lock.set(false);\n updateUserJson();\n updateServiceJson();\n result[0]= \"ACK changeprice \" + \"\\\"\" + movieName + \"\\\"\" + \" success\";\n result[1] = \"BROADCAST movie \" + \"\\\"\" + movie.getName() + \"\\\"\" +\" \"+ movie.getAvailableAmount()+\" \"+ movie.getPrice();\n return result;\n }\n }", "@Override\r\n\tpublic void stockUpdate(adminStockVO vo) {\n\t\tadminDAO.stockUpdate(vo);\r\n\t}", "public synchronized void updateCurrentMarket() throws InvalidDataException {\n\t\tPrice topBuyPrice = (getBuySide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getBuySide().topOfBookPrice();\n\t\tPrice topSellPrice = (getSellSide().topOfBookPrice() == null) ? PriceFactory.makeLimitPrice(0) : getSellSide().topOfBookPrice();\n\n\t\tString data = topBuyPrice.toString() + getBuySide().topOfBookVolume()\n\t\t\t\t\t+ topSellPrice.toString() + getSellSide().topOfBookVolume();\n\t\tif (!getLatestMarketData().equals(data)) {\n\t\t\tMarketDataDTO latestData = new MarketDataDTO(getStock(), topBuyPrice, \n\t\t\t\t\tgetBuySide().topOfBookVolume(), topSellPrice, getSellSide().topOfBookVolume());\n\t\t\tCurrentMarketPublisher.getInstance().publishCurrentMarket(latestData);\n\t\t\tsetLatestMarketData(data);\n\t\t}\n\t}", "@FXML\n\t private void updateProductPrice (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.updateProdPrice(prodIdText.getText(),newPriceText.getText());\n\t resultArea.setText(\"Price has been updated for, product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while updating price: \" + e);\n\t }\n\t }", "@Override\r\n\tpublic StockResponseModel stockUpdated(StockRequestModel stockRequestModel) {\n\t\tStockResponseModel response = new StockResponseModel();\r\n\t\tboolean isStockID = CommonUtills.idExistOrNot(stockRequestModel);\r\n\t\tif(isStockID)\r\n\t\t{\r\n\t\t\t\tStockEntities stockEntity = new StockEntities();\r\n\t\t\t\tstockEntity = CommonUtills.mapConvert(stockRequestModel, stockEntity);\r\n\t\t\t\t\r\n\t\t\t\tstockRepository.save(stockEntity);\r\n\t\t\t\tresponse.setResponseCode(HttpStatus.ACCEPTED.toString());\r\n\t\t\t\tresponse.setResponseMsg(HttpStatus.ACCEPTED.getReasonPhrase());\r\n\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tresponse.setResponseCode(HttpStatus.NOT_FOUND.toString());\r\n\t\t\tresponse.setResponseMsg(HttpStatus.NOT_FOUND.getReasonPhrase());\r\n\t\t}\r\n\t\treturn response;\t\r\n\t\r\n\t}", "public void setStock_price(BigDecimal stock_price) {\n this.stock_price = stock_price;\n }", "@Test\n public void addPrice() throws Exception {\n final PriceDraft expectedPrice = PriceDraft.of(MoneyImpl.of(123, EUR));\n withUpdateableProduct(client(), product -> {\n final Product updatedProduct = client()\n .executeBlocking(ProductUpdateCommand.of(product, AddPrice.of(1, expectedPrice)));\n\n\n final List<Price> prices = updatedProduct.getMasterData().getStaged().getMasterVariant().getPrices();\n assertThat(prices).hasSize(1);\n final Price actualPrice = prices.get(0);\n\n assertThat(expectedPrice).isEqualTo(PriceDraft.of(actualPrice));\n\n return updatedProduct;\n });\n }", "java.util.concurrent.Future<UpdateSolNetworkPackageResult> updateSolNetworkPackageAsync(UpdateSolNetworkPackageRequest updateSolNetworkPackageRequest);", "void update(Order order);", "@Override\n\tpublic String updateFoodPrice(int fid, double price) {\n\t\treturn fb.updateFoodPrice(fid, price);\n\t}", "@RequestMapping(method = RequestMethod.PUT, consumes = \"application/json\")\r\n\tpublic ResponseEntity<StockResource> updateOrder(@RequestBody Order order) {\r\n\t\tif ( stockRepository.getCount() == 0 ) {\r\n\t\t\t// TODO Thread Safety\r\n\t\t\tinit();\r\n\t\t}\r\n\t\tboolean success = false;\r\n\t\tOptional<Stock> stockOptional = stockRepository.findById(order.getStockId());\r\n\t\tif (stockOptional.isPresent()) {\r\n\t\t\tStock stock = stockOptional.get();\r\n\t\t\tOptional<User> userOptional = userRepository.findById(order.getUserId());\r\n\t\t\tif ( userOptional.isPresent() ) {\r\n\t\t\t\tUser user = userOptional.get();\r\n\t\t\t\tSystem.out.println(\"User Balance \" + user.getBalance());\r\n\t\t\t\tif ( order.getBuy() == 0 ) {\r\n\t\t\t\t\tuser.setBalance( user.getBalance() - stock.getPrice() * order.getQty() );\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuser.setBalance( user.getBalance() + stock.getPrice() * order.getQty() );\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"User Balance New \" + user.getBalance());\r\n\t\t\t\tsuccess = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn new ResponseEntity<>( success ? HttpStatus.OK : HttpStatus.NOT_FOUND);\r\n\t}", "@Override\n public void onPriceChange(String price) {\n poll.setPrice(YelpPriceLevel.fromYelpString(price));\n }", "@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size you wish to update\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Change price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Change amount in stock\");\n\t\tlong stock = util.getLong();\n\t\tLOGGER.info(\"\\n\");\n\t\treturn itemDAO.update(new Item(name,size,price,stock));\n\t\t\n\t\t\n\t\t\n\t}", "public final void update(){\n if(waitingToExecute){\n execute();\n waitingToExecute = false;\n }\n }", "public void updateQuote(){\n\t\tDate date = new Date();\n\t\tlong maxTimeNoUpdate = Long.parseLong(config.getQOTD_expiration_time());\n\n\t\tlong timeNow = date.getTime()/1000L;\n\t\tlong timeLastQuote = 0;\n\n\t\ttry {\n\t\t\tcrs = qb.selectFrom(\"qotd\").all().executeQuery();\n\t\t\tif(crs.next()){\n\t\t\t\ttimeLastQuote = crs.getDate(\"date\").getTime()/1000L;\n\t\t\t}\n\t\t} catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tcrs.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif(timeNow-timeLastQuote > maxTimeNoUpdate){\n\t\t\tSystem.out.println(\"UPDATING QUOTE\");\n\t\t\tsaveQuote();\n\t\t} else {\n\t\t\tSystem.out.println(\"QUOTE IS UP TO DATE\");\n\t\t}\n\t}", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "JobResponse.Update update();", "@Override\n public void execute() {\n //double result = marketPrice / exchange.\n Stock stock = exchange.getStock(stockSymbol);\n\n double result = 0.0;\n double lastDividend = stock.getLastDividend();\n\n if(lastDividend != 0.0)\n {\n result = marketPrice / lastDividend;\n }\n\n System.out.println(displayMessage);\n System.out.println(result);\n }", "@Test\n\tpublic void update() throws Exception {\n\t\tMockito.when(productService.updateProductPriceInfo(Mockito.anyLong(), Mockito.anyFloat())).thenReturn(true);\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.put(\"/products/13860428\")\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).content(expected).contentType(MediaType.APPLICATION_JSON);\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tMockHttpServletResponse response = result.getResponse();\n\n\t\tassertEquals(HttpStatus.OK.value(), response.getStatus());\n\n\t}", "public boolean setPrice(double price){\r\n\t\tif(price < 0) return false;\r\n\t\ttry {\r\n\t\t\tthis.workerobj.put(WorkerController.PRICE, price);\r\n\t\t\treturn true;\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean updatePricingForId(int productId, Pricing pricing);", "public void testUpdate() {\n TUpdate_Input[] PriceLists_update_in = new TUpdate_Input[] { PriceList_update };\n TUpdate_Return[] PriceLists_update_out = priceListService.update(PriceLists_update_in);\n // test if update was successful\n assertEquals(\"update result set\", 1, PriceLists_update_out.length);\n\n TUpdate_Return PriceList_update_out = PriceLists_update_out[0];\n assertNoError(PriceList_update_out.getError());\n assertEquals(\"updated?\", true, PriceList_update_out.getUpdated());\n }", "TickerPrice getPrice(String symbol);", "@Override\n public void updateProduct(TradingQuote tradingQuote) {\n }", "public void update(Runnable onChange) {\n HashMap<String, Double> newExchangeRates = new HashMap<>(networkEnterprise.getAllExchangeRates());\n if (allExchangeRates != null && newExchangeRates.toString().equals(allExchangeRates.toString()))\n return;\n\n Log.d(\"cache\", \"OLD: \" + allExchangeRates);\n Log.d(\"cache\", \"NEW: \" + newExchangeRates);\n allExchangeRates = newExchangeRates;\n\n if (onChange != null)\n onChange.run();\n }", "@Transactional\n @Modifying\n @Query(\"update Item i set i.price = i.price * 1.1\")\n void increacePriceBy10Percent();", "private void updatePriceStats(double newPrice) {\n this.currentPrice = newPrice;\n this.currentAvgPrice = Double.parseDouble(decimalFormat.format(computeSMA(newPrice, currentAvgPrice, priceHistory)));\n this.priceChangePCT = Double.parseDouble(decimalFormat.format(computeDifferentialPCT(newPrice, currentAvgPrice)));\n }", "BigDecimal getDirtyPrice();", "public void updateJobPrice(int job_ID, double total_price, double total_discount){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Job` SET Total_discount = ?, Total_price = ? WHERE Job_ID = ?;\");\n Stm.setDouble(1, total_discount);\n Stm.setDouble(2,total_price);\n Stm.setInt(3, job_ID);\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void update() \n\t{\n\t\tString inst = \"\";\n\t\tfloat cash = getCash();\n\t\tfloat quantity = getPosition(inst);\n\t\tfloat price = getPrice(inst);\n\n\t\t_data.add(new Float(price));\n\t\t\n\t\tif (_data.size() > _period)\n\t\t{\n\t\t\t_data.remove(0);\n\t\t\n\t\t\tfloat min = Float.MAX_VALUE;\n\t\t\tfloat max = Float.MIN_VALUE;\n\t\t\t\n\t\t\tfor (int i = 0; i < _data.size(); i++)\n\t\t\t{\n\t\t\t\tFloat value = (Float)_data.get(i);\n\t\t\t\t\n\t\t\t\tif (value.floatValue() > max)\n\t\t\t\t{\n\t\t\t\t\tmax = value.floatValue();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (value.floatValue() < min)\n\t\t\t\t{\n\t\t\t\t\tmin = value.floatValue();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfloat buylevel = min + (min * _minwin);\n\t\t\tfloat sellevel = max - (max * _maxloss);\n\t\t\tfloat sellevel2 = min + (min * _maxwin);\n\t\t\t\n\t\t\t// if price has risen by min win\n\t\t\t// but is below maximum win and\n\t\t\t// below maximum loss then buy\n\t\t\tif (price > buylevel && \n\t\t\t\t\tprice < sellevel2 &&\n\t\t\t\t\tbuylevel < sellevel &&\n\t\t\t\t\tprice > _previous)\n\t\t\t{\n\t\t\t\tif (cash > 0) \n\t\t\t\t{\n\t\t\t\t\taddAmountOrder(inst, cash);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (price < sellevel &&\n\t\t\t\t\tbuylevel > sellevel &&\n\t\t\t\t\tprice < _previous)\n\t\t\t{\n\t\t\t\tif (quantity > 0)\n\t\t\t\t{\n\t\t\t\t\taddQuantityOrder(inst, -quantity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (price > sellevel2 &&\n\t\t\t\t\tprice > _previous)\n\t\t\t{\n\t\t\t\tif (quantity > 0)\n\t\t\t\t{\n\t\t\t\t\taddQuantityOrder(inst, -quantity);\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t_data.remove(0);\n\t\t}\n\t\t\n\t\t_previous = price;\n\t}", "public BigDecimal getStock_price() {\n return stock_price;\n }", "@Override\r\n\tpublic int updateCostIoQtyInit() {\n\t\treturn getSqlSession().update(namespace+\".updateCostIoQtyInit\");\r\n\t}", "public void increasePrice() {\n //price doubled\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() * 2);\n }", "@Override\n public void update(float price) {\n float newPriceForBidding = Math.round(price + (Math.random() * 100) + (Math.random() * 100));\n display(newPriceForBidding);\n }", "private void updatePriceAndSaving() {\n movieOrder = new MovieOrder(movie, Weekday.weekdayForValue(selectedDay), flagsApplied, numberOfTickets);\n\n tvTotalPriceNewTickets.setText(getResources().getString(\n R.string.total_price_new_tickets,\n movieOrder.getTotalPriceAfterDiscount(),\n movieOrder.getNumberOfTicketsAfterOfferIsApplied())\n );\n\n tvSavingsNewTickets.setText(getResources().getString(\n R.string.today_saving_new_tickets,\n movieOrder.getTotalSaving()\n ));\n }", "public synchronized double getReservePrice(){\n \treturn reserve_price;\n }", "@Override\n\tpublic void run() {\n\t\tMyLog.Trace(\"UpdateThread:run:start.\");\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(Config.update_time * 60 * 1000);\n\t\t\t\t//检查当前时间是否在交易时间内\n\t\t\t\t//交易时间段:9:30--11:30,1:00--3:00\n\t\t\t\t//排除周末\n\t\t\t\tDate time = new Date();\n\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\tc.setTime(time);\n\t\t\t\tif(Calendar.SATURDAY == c.get(Calendar.DAY_OF_WEEK) || \n\t\t\t\t\t\tCalendar.SUNDAY == c.get(Calendar.DAY_OF_WEEK) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tint minute = c.get(Calendar.MINUTE);\n\t\t\t\tif( (hour >= 9 && hour <= 11)) {\n\t\t\t\t\tif((hour == 9 && minute < 30) || (hour == 11 && minute > 30)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}else if(hour < 13 || hour > 15) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tMyLog.Trace(\"UpdateThread:run:start update.\");\n\t\t\t\tStockCache.update(StockCache.UPDATE_TYPE_HQ);\n\t\t\t\t\n\t\t\t\t//提示更新\n\t\t\t\tsynchronized (lock) {\n\t\t\t\t\tMyLog.Trace(\"UpdateThread:run:notify lock.\");\n\t\t\t\t\tlock.notify();\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tMyLog.Error(\"UpdateThread:run:Exception \" + e.toString());\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n public boolean updateItemModelPrice(ItemModelPrice itemModelPrice) {\n return itemModelPriceDao.update(itemModelPrice);\n }", "public synchronized double getStartPrice(){\n \treturn start_price;\n }", "private void updateFromProvider() {\n if(isUpdating.get()){\n isHaveUpdateRequest.set(true);\n return;\n }\n mUpdateExecutorService.execute(new UpdateThread());\n }", "public void increasePrice(int percentage);", "protected void updateOptionPrice(String optionName, float price)\n\t\t\tthrows AutoException {\n\t\tif (getOption(optionName) == null) {\n\t\t\tthrow new AutoException(CustomExceptionEnum.OptionNotFound);\n\t\t} else {\n\t\t\tgetOption(optionName).setPrice(price);\n\t\t}\n\t}", "public Double updatePortfolioValue() {\n\t\tDouble portVal = 0.0;\n\t\tfor(Stock s : stockList) {\n\t\t\tportVal += s.getCurrentPrice(); \n\t\t}\n\t\tthis.portfolioValue = portVal;\n\t\treturn portVal;\n\t}", "private synchronized void onUpdate() {\n if (pollingJob == null || pollingJob.isCancelled()) {\n int refresh;\n\n try {\n refresh = getConfig().as(OpenSprinklerConfig.class).refresh;\n } catch (Exception exp) {\n refresh = this.refreshInterval;\n }\n\n pollingJob = scheduler.scheduleWithFixedDelay(refreshService, DEFAULT_WAIT_BEFORE_INITIAL_REFRESH, refresh,\n TimeUnit.SECONDS);\n }\n }", "private void updateReceivedCoinsInBackground() {\n Log.d(TAG, \"[updateReceivedCoinsInBackground] updating...\");\n Data.retrieveAllCoinsFromCollection(Data.RECEIVED, new OnEventListener<String>() {\n @Override\n public void onSuccess(String object) {\n // If received coins view is currently visible, update the view (which also updates\n // the data), otherwise just update the data\n if (mRecyclerViewRec.getVisibility() == View.VISIBLE) {\n updateReceivedView();\n } else {\n mReceivedCoins = Data.getReceivedCoins();\n }\n Log.d(TAG, \"[updateReceivedCoinsInBackground] updated\");\n }\n @Override\n public void onFailure(Exception e) {\n Log.d(TAG, \"[updateReceivedCoinsInBackground] failed to retrieve coins: \", e);\n }\n });\n }", "public void requestUpdate(){\n shouldUpdate = true;\n }", "public void startUpdate(){ \n stimer.getTimer().scheduleAtFixedRate(new TimerTask()\n {\n @Override\n public void run(){updateShareRates();}\n }, 2000, 1000);\n }", "java.util.concurrent.Future<UpdateSolNetworkPackageResult> updateSolNetworkPackageAsync(UpdateSolNetworkPackageRequest updateSolNetworkPackageRequest,\n com.amazonaws.handlers.AsyncHandler<UpdateSolNetworkPackageRequest, UpdateSolNetworkPackageResult> asyncHandler);", "@Override\n\tpublic String update(double discount, int vid) {\n\t\treturn vb.update(discount, vid);\n\t}", "public void updatePrice(){\n\t\tprice = 0;\n\t\tfor (ParseObject selectedItem : selectedItems){\n\t\t\tprice += selectedItem.getInt(\"price\");\n\t\t}\n\n\t\tTextView orderTotal = (TextView) findViewById(R.id.orderTotal);\n\t\torderTotal.setText(\"$\" + price + \".00\");\n\t}", "java.util.concurrent.Future<UpdateEventIntegrationResult> updateEventIntegrationAsync(UpdateEventIntegrationRequest updateEventIntegrationRequest);", "public void updatePeriodic() {\r\n }", "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public synchronized void get(T stock) throws InterruptedException {\n\t\twhile (store.isEmpty()) {\n\t\t\tLOG.info(\"No products available\");\n\t\t\twait();\n\t\t}\n\t\tstore.remove(stock);\n\t\tLOG.info(\"Product bought\" + store.size());\n\t\tnotify();\n\t}", "void requestUpdate(UUIDBase uuid, OpResult opResult) {\n if (opResult.isComplete()) {\n requestComplete(uuid, opResult);\n } else {\n _requestInProgress(uuid);\n }\n }", "@Override\n public void notifyUpdate() {\n Update();\n //Invia all'activity di questo frammento il totale speso per aggiornare la sezione di controllo del budget\n onSendTotSpent.ReceiveTotSpent(contactGiftAdapter.totSpent());\n }", "private void changePrice() {\n\t\tint sic_idHolder; // declares sic_idHolder\n\t\tdouble priceHolder; // declares priceHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC-ID of the book you'd like to change the price of:\");\n\t\tsic_idHolder = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\tif(inventoryObject.cardExists(sic_idHolder)) { // checks to see if card exists\n\t\t\tSystem.out.println(\"Please enter the new price of the book:\");\n\t\t\tpriceHolder = scan.nextDouble();\n\t\t\tscan.nextLine();\n\t\t\tif(priceHolder < 0) { // checks to see if priceHolder is negative\n\t\t\t\tSystem.out.println(\"The price cannot be below zero\\n\");\n\t\t\t\tgetUserInfo();\n\t\t\t}\n\t\t\tinventoryObject.changePrice(sic_idHolder, priceHolder);\n\t\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"The ID you entered does not exist\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t}", "public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}", "@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case MSG_UPDATE_STOCK_NEWS:\n requestStockNews();\n break;\n case MSG_UPDATE_STOCK_ANNOUNCEMENT:\n requestStockAnnouncement();\n break;\n case MSG_UPDATE_STOCK_REPORT:\n requestStockReport();\n break;\n case MSG_UPDATE_STOCK_SUMMARY:\n requestStockSummary();\n break;\n case MSG_UPDATE_STOCK_FINANCE:\n requestStockFinance();\n break;\n default:\n break;\n }\n super.handleMessage(msg);\n }", "public void updateOptionPrice(String modelName, String optionName, String option, float newPrice){\n\t\tAutomobile auto= autoSet.readModel(modelName);\n\t\tauto.updateOptionPrice(optionName, option, newPrice);\n\t}", "public String updateProductPrice(PriceAndCurrency priceAndCurrency) {\n\t\t// TODO Auto-generated method stub\n\t\tString response = myRetailAppDao.updateProductPrice(priceAndCurrency);\n\t\treturn response;\n\t}", "public void update(Observable o, Object arg) {\n final Download download = (Download) o;\n int index = downloadList.indexOf(download);\n // Fire table row update notification to table.\n fireTableRowsUpdated(index, index);\n\n progressBar1.setMaximum(getRowCount());\n\n final int s = download.getStatus();\n\n if (s == Download.COMPLETE || s == Download.SKIPPED)\n progress++;\n else if (s == Download.CANCELLED)\n progress--;\n progressBar1.setValue(progress);\n\n if (getStatus() == Download.DOWNLOADING && (s == Download.COMPLETE || s == Download.ERROR || s == Download.SKIPPED)) {\n Download candidate = null;\n for (Download d : downloadList) {\n if (d.getStatus() == Download.DOWNLOADING) return;\n if (d.getStatus() == Download.PENDING && candidate == null) candidate = d;\n }\n if (candidate != null) candidate.resume(); // Start the next download\n }\n }" ]
[ "0.63343126", "0.63257045", "0.6143271", "0.60080254", "0.6008", "0.6006599", "0.5950926", "0.58700424", "0.5795788", "0.57106876", "0.5658044", "0.55645835", "0.5544716", "0.55400556", "0.5510916", "0.5505407", "0.549413", "0.54609466", "0.54561454", "0.5455544", "0.5416156", "0.53912234", "0.5384991", "0.534075", "0.53319776", "0.5330215", "0.53256094", "0.5317382", "0.53131515", "0.53070146", "0.52908856", "0.52577513", "0.524814", "0.5246389", "0.52444744", "0.5237451", "0.5233951", "0.5229281", "0.5220709", "0.52190554", "0.5196371", "0.5192732", "0.5161304", "0.5158046", "0.51527953", "0.5151723", "0.51497364", "0.5143995", "0.5131507", "0.5130463", "0.5123452", "0.511926", "0.5109292", "0.5106716", "0.51004547", "0.5089232", "0.50873715", "0.5086701", "0.5075421", "0.5074883", "0.5074459", "0.50671506", "0.5064865", "0.5064581", "0.505194", "0.50462717", "0.50453657", "0.5041417", "0.5039453", "0.5036696", "0.5028621", "0.5028166", "0.5020115", "0.50096154", "0.50080013", "0.50066173", "0.5003946", "0.50032586", "0.49980786", "0.4985567", "0.49841756", "0.49838892", "0.49831197", "0.49749616", "0.49653035", "0.49618328", "0.4943407", "0.4941391", "0.49325743", "0.49235892", "0.4923071", "0.49221134", "0.49160808", "0.49106008", "0.4906805", "0.49057823", "0.4903966", "0.49010047", "0.48993498", "0.4898382" ]
0.577902
9