query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<ServiceResponse<OCRInner>> oCRUrlInputWithServiceResponseAsync(String language, String contentType, BodyModelInner imageUrl) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (language == null) { throw new IllegalArgumentException("Parameter language is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); final Boolean cacheImage = null; final Boolean enhanced = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.oCRUrlInput(language, cacheImage, enhanced, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCRInner>>>() { @Override public Observable<ServiceResponse<OCRInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OCRInner> clientResponse = oCRUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340801", "0.5908911", "0.58815557", "0.56125695", "0.54998386", "0.5477398", "0.5472436", "0.54383487", "0.54383487", "0.54241633", "0.5411288", "0.5399041", "0.53873235", "0.5367456", "0.53567713", "0.53567713", "0.53567713", "0.5354653", "0.5304111", "0.5296139", "0.526...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<OCRInner> oCRUrlInputAsync(String language, String contentType, BodyModelInner imageUrl, Boolean cacheImage, Boolean enhanced) { return oCRUrlInputWithServiceResponseAsync(language, contentType, imageUrl, cacheImage, enhanced).map(new Func1<ServiceResponse<OCRInner>, OCRInner>() { @Override public OCRInner call(ServiceResponse<OCRInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340444", "0.5907014", "0.5881825", "0.5613604", "0.5501345", "0.5476807", "0.54720134", "0.5439289", "0.5439289", "0.5422724", "0.5412727", "0.5398816", "0.53872037", "0.53670835", "0.5357576", "0.5357576", "0.5357576", "0.5356866", "0.53034747", "0.5297329", "0.5260379",...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<ServiceResponse<OCRInner>> oCRUrlInputWithServiceResponseAsync(String language, String contentType, BodyModelInner imageUrl, Boolean cacheImage, Boolean enhanced) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (language == null) { throw new IllegalArgumentException("Parameter language is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.oCRUrlInput(language, cacheImage, enhanced, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCRInner>>>() { @Override public Observable<ServiceResponse<OCRInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OCRInner> clientResponse = oCRUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340444", "0.5907014", "0.5881825", "0.5613604", "0.5501345", "0.5476807", "0.54720134", "0.5439289", "0.5439289", "0.5422724", "0.5412727", "0.5398816", "0.53872037", "0.53670835", "0.5357576", "0.5357576", "0.5357576", "0.5356866", "0.53034747", "0.5297329", "0.5260379",...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<OCRInner> oCRFileInputAsync(String language, byte[] imageStream) { return oCRFileInputWithServiceResponseAsync(language, imageStream).map(new Func1<ServiceResponse<OCRInner>, OCRInner>() { @Override public OCRInner call(ServiceResponse<OCRInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6339322", "0.5907689", "0.5881454", "0.5613236", "0.5499387", "0.5476547", "0.54720753", "0.54378355", "0.54378355", "0.54230297", "0.54117554", "0.5398961", "0.5386767", "0.5368199", "0.5356364", "0.5356364", "0.5356364", "0.5355748", "0.53044903", "0.52970636", "0.525971...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<ServiceResponse<OCRInner>> oCRFileInputWithServiceResponseAsync(String language, byte[] imageStream) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (language == null) { throw new IllegalArgumentException("Parameter language is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } final Boolean cacheImage = null; final Boolean enhanced = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.oCRFileInput(language, cacheImage, enhanced, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCRInner>>>() { @Override public Observable<ServiceResponse<OCRInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OCRInner> clientResponse = oCRFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340801", "0.5908911", "0.58815557", "0.56125695", "0.54998386", "0.5477398", "0.5472436", "0.54383487", "0.54383487", "0.54241633", "0.5411288", "0.5399041", "0.53873235", "0.5367456", "0.53567713", "0.53567713", "0.53567713", "0.5354653", "0.5304111", "0.5296139", "0.526...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<OCRInner> oCRFileInputAsync(String language, byte[] imageStream, Boolean cacheImage, Boolean enhanced) { return oCRFileInputWithServiceResponseAsync(language, imageStream, cacheImage, enhanced).map(new Func1<ServiceResponse<OCRInner>, OCRInner>() { @Override public OCRInner call(ServiceResponse<OCRInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340444", "0.5907014", "0.5881825", "0.5613604", "0.5501345", "0.5476807", "0.54720134", "0.5439289", "0.5439289", "0.5422724", "0.5412727", "0.5398816", "0.53872037", "0.53670835", "0.5357576", "0.5357576", "0.5357576", "0.5356866", "0.53034747", "0.5297329", "0.5260379",...
0.0
-1
Returns any text found in the image for the language specified. If no language is specified in input then the detection defaults to English.
public Observable<ServiceResponse<OCRInner>> oCRFileInputWithServiceResponseAsync(String language, byte[] imageStream, Boolean cacheImage, Boolean enhanced) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (language == null) { throw new IllegalArgumentException("Parameter language is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.oCRFileInput(language, cacheImage, enhanced, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OCRInner>>>() { @Override public Observable<ServiceResponse<OCRInner>> call(Response<ResponseBody> response) { try { ServiceResponse<OCRInner> clientResponse = oCRFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detectLanguage(String text) {\n\t\treturn dictionary.detectLanguage(text);\n\t}", "public boolean translateImageToText();", "@SuppressWarnings(\"static-access\")\n\tpublic void detection(Request text) {\n\t\t//Fichiertxt fichier;\n\t\ttry {\t\t\t\t\t\n\t\t\t//enregistrement et affichage de la lan...
[ "0.6340444", "0.5907014", "0.5881825", "0.5613604", "0.5501345", "0.5476807", "0.54720134", "0.5439289", "0.5439289", "0.5422724", "0.5412727", "0.5398816", "0.53872037", "0.53670835", "0.5357576", "0.5357576", "0.5357576", "0.5356866", "0.53034747", "0.5297329", "0.5260379",...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<EvaluateInner> evaluateFileInputAsync(byte[] imageStream) { return evaluateFileInputWithServiceResponseAsync(imageStream).map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() { @Override public EvaluateInner call(ServiceResponse<EvaluateInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.5792197", "0.57066816", "0.5635645", "0.5572759", "0.5562452", "0.55257493", "0.53212327", "0.5280099", "0.5259797", "0.5242405", "0.5241776", "0.52029526", "0.5099709", "0.50816107", "0.5081152", "0.50460213", "0.5026333", "0.50131893", "0.49973923", "0.49362656", "0.4927...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<ServiceResponse<EvaluateInner>> evaluateFileInputWithServiceResponseAsync(byte[] imageStream) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.evaluateFileInput(cacheImage, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<EvaluateInner>>>() { @Override public Observable<ServiceResponse<EvaluateInner>> call(Response<ResponseBody> response) { try { ServiceResponse<EvaluateInner> clientResponse = evaluateFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.5786381", "0.57027304", "0.5630279", "0.5566898", "0.55602795", "0.5521205", "0.53160524", "0.527399", "0.52547306", "0.5238439", "0.52371645", "0.5200319", "0.50942767", "0.5080741", "0.5075284", "0.5040735", "0.5020369", "0.5010527", "0.4992298", "0.49309567", "0.4923097...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<EvaluateInner> evaluateFileInputAsync(byte[] imageStream, Boolean cacheImage) { return evaluateFileInputWithServiceResponseAsync(imageStream, cacheImage).map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() { @Override public EvaluateInner call(ServiceResponse<EvaluateInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.57850313", "0.57010126", "0.56290585", "0.5565697", "0.5559708", "0.5519075", "0.5316536", "0.52727836", "0.52534455", "0.5236468", "0.5236261", "0.5198736", "0.5091604", "0.50812334", "0.507524", "0.50379896", "0.501882", "0.50101876", "0.4990364", "0.49297088", "0.492034...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<ServiceResponse<EvaluateInner>> evaluateFileInputWithServiceResponseAsync(byte[] imageStream, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.evaluateFileInput(cacheImage, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<EvaluateInner>>>() { @Override public Observable<ServiceResponse<EvaluateInner>> call(Response<ResponseBody> response) { try { ServiceResponse<EvaluateInner> clientResponse = evaluateFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.57850313", "0.57010126", "0.56290585", "0.5565697", "0.5559708", "0.5519075", "0.5316536", "0.52727836", "0.52534455", "0.5236468", "0.5236261", "0.5198736", "0.5091604", "0.50812334", "0.507524", "0.50379896", "0.501882", "0.50101876", "0.4990364", "0.49297088", "0.492034...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<EvaluateInner> evaluateUrlInputAsync(String contentType, BodyModelInner imageUrl) { return evaluateUrlInputWithServiceResponseAsync(contentType, imageUrl).map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() { @Override public EvaluateInner call(ServiceResponse<EvaluateInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.5792197", "0.57066816", "0.5635645", "0.5572759", "0.5562452", "0.55257493", "0.53212327", "0.5280099", "0.5259797", "0.5242405", "0.5241776", "0.52029526", "0.5099709", "0.50816107", "0.5081152", "0.50460213", "0.5026333", "0.50131893", "0.49973923", "0.49362656", "0.4927...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<ServiceResponse<EvaluateInner>> evaluateUrlInputWithServiceResponseAsync(String contentType, BodyModelInner imageUrl) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.evaluateUrlInput(cacheImage, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<EvaluateInner>>>() { @Override public Observable<ServiceResponse<EvaluateInner>> call(Response<ResponseBody> response) { try { ServiceResponse<EvaluateInner> clientResponse = evaluateUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.5786381", "0.57027304", "0.5630279", "0.5566898", "0.55602795", "0.5521205", "0.53160524", "0.527399", "0.52547306", "0.5238439", "0.52371645", "0.5200319", "0.50942767", "0.5080741", "0.5075284", "0.5040735", "0.5020369", "0.5010527", "0.4992298", "0.49309567", "0.4923097...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<EvaluateInner> evaluateUrlInputAsync(String contentType, BodyModelInner imageUrl, Boolean cacheImage) { return evaluateUrlInputWithServiceResponseAsync(contentType, imageUrl, cacheImage).map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() { @Override public EvaluateInner call(ServiceResponse<EvaluateInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.57850313", "0.57010126", "0.56290585", "0.5565697", "0.5559708", "0.5519075", "0.5316536", "0.52727836", "0.52534455", "0.5236468", "0.5236261", "0.5198736", "0.5091604", "0.50812334", "0.507524", "0.50379896", "0.501882", "0.50101876", "0.4990364", "0.49297088", "0.492034...
0.0
-1
Returns probabilities of the image containing racy or adult content.
public Observable<ServiceResponse<EvaluateInner>> evaluateUrlInputWithServiceResponseAsync(String contentType, BodyModelInner imageUrl, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.evaluateUrlInput(cacheImage, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<EvaluateInner>>>() { @Override public Observable<ServiceResponse<EvaluateInner>> call(Response<ResponseBody> response) { try { ServiceResponse<EvaluateInner> clientResponse = evaluateUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void calculateProbabilities(){\n\t}", "private void evaluateProbabilities()\n\t{\n\t}", "public double[] getProbabilities() { return getProbabilities((int[])null); }", "public double getProbability() {\n return probability;\n }", "POGOProtos.Rpc.CaptureProbabilityProto getCaptureProbabilit...
[ "0.57850313", "0.57010126", "0.56290585", "0.5565697", "0.5559708", "0.5519075", "0.5316536", "0.52727836", "0.52534455", "0.5236468", "0.5236261", "0.5198736", "0.5091604", "0.50812334", "0.507524", "0.50379896", "0.501882", "0.50101876", "0.4990364", "0.49297088", "0.492034...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<MatchResponseInner> matchUrlInputAsync(String contentType, BodyModelInner imageUrl) { return matchUrlInputWithServiceResponseAsync(contentType, imageUrl).map(new Func1<ServiceResponse<MatchResponseInner>, MatchResponseInner>() { @Override public MatchResponseInner call(ServiceResponse<MatchResponseInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6268177", "0.5889108", "0.57670414", "0.57589924", "0.57436514", "0.5731581", "0.5511194", "0.5501659", "0.550006", "0.5452095", "0.53226525", "0.525605", "0.5253426", "0.5196022", "0.51808035", "0.5179484", "0.516819", "0.5141495", "0.51305956", "0.51303494", "0.512022", ...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<ServiceResponse<MatchResponseInner>> matchUrlInputWithServiceResponseAsync(String contentType, BodyModelInner imageUrl) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); final String listId = null; final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.matchUrlInput(listId, cacheImage, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<MatchResponseInner>>>() { @Override public Observable<ServiceResponse<MatchResponseInner>> call(Response<ResponseBody> response) { try { ServiceResponse<MatchResponseInner> clientResponse = matchUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6268827", "0.58894795", "0.57677805", "0.57601416", "0.5745048", "0.57317436", "0.55123144", "0.5503459", "0.55010366", "0.54535496", "0.53231597", "0.52577794", "0.5252809", "0.5197598", "0.51810634", "0.5180938", "0.5170541", "0.5143361", "0.5132484", "0.51319265", "0.51...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<MatchResponseInner> matchUrlInputAsync(String contentType, BodyModelInner imageUrl, String listId, Boolean cacheImage) { return matchUrlInputWithServiceResponseAsync(contentType, imageUrl, listId, cacheImage).map(new Func1<ServiceResponse<MatchResponseInner>, MatchResponseInner>() { @Override public MatchResponseInner call(ServiceResponse<MatchResponseInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.62700015", "0.58897376", "0.5767267", "0.5759937", "0.5743681", "0.57321453", "0.55112725", "0.5501859", "0.5500844", "0.54522055", "0.5323158", "0.5255359", "0.52542335", "0.5196973", "0.51814985", "0.5180431", "0.516952", "0.5143571", "0.5131655", "0.5131056", "0.5122202...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<ServiceResponse<MatchResponseInner>> matchUrlInputWithServiceResponseAsync(String contentType, BodyModelInner imageUrl, String listId, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (contentType == null) { throw new IllegalArgumentException("Parameter contentType is required and cannot be null."); } if (imageUrl == null) { throw new IllegalArgumentException("Parameter imageUrl is required and cannot be null."); } Validator.validate(imageUrl); String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); return service.matchUrlInput(listId, cacheImage, contentType, imageUrl, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<MatchResponseInner>>>() { @Override public Observable<ServiceResponse<MatchResponseInner>> call(Response<ResponseBody> response) { try { ServiceResponse<MatchResponseInner> clientResponse = matchUrlInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6269358", "0.58894175", "0.5767823", "0.57581866", "0.5743656", "0.57329696", "0.5511878", "0.55023944", "0.5499341", "0.54513913", "0.53242004", "0.52565765", "0.5252096", "0.51959515", "0.51806694", "0.5179676", "0.516937", "0.51420456", "0.51307625", "0.5130238", "0.512...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<MatchResponseInner> matchFileInputAsync(byte[] imageStream) { return matchFileInputWithServiceResponseAsync(imageStream).map(new Func1<ServiceResponse<MatchResponseInner>, MatchResponseInner>() { @Override public MatchResponseInner call(ServiceResponse<MatchResponseInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6268177", "0.5889108", "0.57670414", "0.57589924", "0.57436514", "0.5731581", "0.5511194", "0.5501659", "0.550006", "0.5452095", "0.53226525", "0.525605", "0.5253426", "0.5196022", "0.51808035", "0.5179484", "0.516819", "0.5141495", "0.51305956", "0.51303494", "0.512022", ...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<ServiceResponse<MatchResponseInner>> matchFileInputWithServiceResponseAsync(byte[] imageStream) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } final String listId = null; final Boolean cacheImage = null; String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.matchFileInput(listId, cacheImage, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<MatchResponseInner>>>() { @Override public Observable<ServiceResponse<MatchResponseInner>> call(Response<ResponseBody> response) { try { ServiceResponse<MatchResponseInner> clientResponse = matchFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6268827", "0.58894795", "0.57677805", "0.57601416", "0.5745048", "0.57317436", "0.55123144", "0.5503459", "0.55010366", "0.54535496", "0.53231597", "0.52577794", "0.5252809", "0.5197598", "0.51810634", "0.5180938", "0.5170541", "0.5143361", "0.5132484", "0.51319265", "0.51...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<MatchResponseInner> matchFileInputAsync(byte[] imageStream, String listId, Boolean cacheImage) { return matchFileInputWithServiceResponseAsync(imageStream, listId, cacheImage).map(new Func1<ServiceResponse<MatchResponseInner>, MatchResponseInner>() { @Override public MatchResponseInner call(ServiceResponse<MatchResponseInner> response) { return response.body(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.62700015", "0.58897376", "0.5767267", "0.5759937", "0.5743681", "0.57321453", "0.55112725", "0.5501859", "0.5500844", "0.54522055", "0.5323158", "0.5255359", "0.52542335", "0.5196973", "0.51814985", "0.5180431", "0.516952", "0.5143571", "0.5131655", "0.5131056", "0.5122202...
0.0
-1
Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using this API. Returns ID and tags of matching image. Note: Refresh Index must be run on the corresponding Image List before additions and removals are reflected in the response.
public Observable<ServiceResponse<MatchResponseInner>> matchFileInputWithServiceResponseAsync(byte[] imageStream, String listId, Boolean cacheImage) { if (this.client.baseUrl() == null) { throw new IllegalArgumentException("Parameter this.client.baseUrl() is required and cannot be null."); } if (imageStream == null) { throw new IllegalArgumentException("Parameter imageStream is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{baseUrl}", this.client.baseUrl()); RequestBody imageStreamConverted = RequestBody.create(MediaType.parse("image/gif"), imageStream); return service.matchFileInput(listId, cacheImage, imageStreamConverted, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<MatchResponseInner>>>() { @Override public Observable<ServiceResponse<MatchResponseInner>> call(Response<ResponseBody> response) { try { ServiceResponse<MatchResponseInner> clientResponse = matchFileInputDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "ImageSearchResponse findAllBySimilarImage(byte[] imageData, ImageRegion objectRegion);", "private void searchImage(String text){\n\n // Set toolbar title as query string\n toolbar.setTitle(text);\n\n Map<String, String> options = setSearchOptions(...
[ "0.6269358", "0.58894175", "0.5767823", "0.57581866", "0.5743656", "0.57329696", "0.5511878", "0.55023944", "0.5499341", "0.54513913", "0.53242004", "0.52565765", "0.5252096", "0.51959515", "0.51806694", "0.5179676", "0.516937", "0.51420456", "0.51307625", "0.5130238", "0.512...
0.46646062
82
This method will be called if something went wrong.
public void onApiRequestFailed();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void inquiryError() {\n\t\t\n\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "@Override\n public void onCancelled(CancelledException arg0) ...
[ "0.6606133", "0.65999043", "0.6549771", "0.6547335", "0.6516471", "0.6516471", "0.6480911", "0.6361746", "0.63163763", "0.62915814", "0.6242045", "0.62385476", "0.6206463", "0.6190697", "0.6180534", "0.6173799", "0.61507386", "0.614829", "0.61395526", "0.6138102", "0.6117772"...
0.0
-1
This method will be called when we got a response from the api.
public void onApiRequestSuccess(T result);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(String response) {\n }", "@Override\n public void onResponse(String response) {\n Utils.logApiResponseTime(calendar, tag + \" \" + url);\n mHandleSuccessRespon...
[ "0.7414735", "0.7407986", "0.73767227", "0.7360284", "0.7360284", "0.7360284", "0.7329669", "0.732496", "0.7321417", "0.73199826", "0.7242337", "0.7182039", "0.71565616", "0.71195847", "0.71094024", "0.70511407", "0.7038773", "0.70341253", "0.70286316", "0.6990841", "0.696764...
0.62303895
98
Gets a Data object from a ResultSet.
private String getStringFromResultSet(ResultSet rs) throws SQLException, UnsupportedEncodingException { ResultSetMetaData meta = rs.getMetaData(); StringBuilder sb = new StringBuilder(); int numColumns = meta.getColumnCount(); for (int i = 1; i <= numColumns; i++) { sb.append(meta.getColumnLabel(i)); if (i == numColumns) { sb.append('\n'); } else { sb.append('\t'); } } JMeterVariables jmvars = getThreadContext().getVariables(); String varnames[] = getVariableNames().split(COMMA); String resultVariable = getResultVariable().trim(); List<Map<String, Object>> results = null; if (resultVariable.length() > 0) { results = new ArrayList<Map<String, Object>>(); jmvars.putObject(resultVariable, results); } int j = 0; while (rs.next()) { Map<String, Object> row = null; j++; for (int i = 1; i <= numColumns; i++) { Object o = rs.getObject(i); if (results != null) { if (row == null) { row = new HashMap<String, Object>(numColumns); results.add(row); } row.put(meta.getColumnLabel(i), o); } if (o instanceof byte[]) { o = new String((byte[]) o, ENCODING); } sb.append(o); if (i == numColumns) { sb.append('\n'); } else { sb.append('\t'); } if (i <= varnames.length) { // i starts at 1 String name = varnames[i - 1].trim(); if (name.length() > 0) { // Save the value in the variable if present jmvars.put(name + UNDERSCORE + j, o == null ? null : o.toString()); } } } if (NumberUtils.isNumber(getResultSetReadDelay())) { try { Thread.sleep(Long.valueOf(getResultSetReadDelay())); } catch (InterruptedException e) { log.warn("Result set read delay caused InterruptedException.", e); } } } // Remove any additional values from previous sample for (int i = 0; i < varnames.length; i++) { String name = varnames[i].trim(); if (name.length() > 0 && jmvars != null) { final String varCount = name + "_#"; // $NON-NLS-1$ // Get the previous count String prevCount = jmvars.get(varCount); if (prevCount != null) { int prev = Integer.parseInt(prevCount); for (int n = j + 1; n <= prev; n++) { jmvars.remove(name + UNDERSCORE + n); } } jmvars.put(varCount, Integer.toString(j)); // save the current count } } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic List<Boimpl> extractData(ResultSet rs) throws SQLException, DataAccessException {\n\t\t\tdata = new ArrayList<Boimpl>();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// | id | name | address | city | sallary | job | DEPARTMENT\r\n\r\n\t\t\t\tBoimpl obj = new Boimpl();\r\n\t\t\t\tobj.setId(rs.get...
[ "0.6545715", "0.637878", "0.6373506", "0.6343945", "0.62790406", "0.6270437", "0.62101346", "0.6197667", "0.61778206", "0.6164361", "0.61316335", "0.60964334", "0.6095881", "0.6089942", "0.6068785", "0.6060047", "0.60513484", "0.6038063", "0.6004104", "0.59575063", "0.5939922...
0.0
-1
/ Constructs a new HashSet using the given size
public MySet(int size) { table = (HashNode<E>[]) new HashNode[size]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set<Integer> generateSet(int size){\n Set<Integer> data = new HashSet<>();\n for (int i = 0; i < size; i++){\n data.add(i);\n }\n return data;\n }", "public IntHashSet(int initialCapacity) {\n this(initialCapacity, 0.75f);\n }", "public HashSet(int buc...
[ "0.70944047", "0.6651354", "0.657871", "0.6569684", "0.651287", "0.64710873", "0.64459383", "0.64194524", "0.64090157", "0.6344211", "0.63426083", "0.63201934", "0.6278322", "0.61452276", "0.611473", "0.602125", "0.6018795", "0.5997838", "0.5982795", "0.5980729", "0.5956764",...
0.7329768
0
/ Adds the given element to this HashSet Returns true if the addition was successful
public boolean add(E e) { if (contains(e)) { return false; } int i = hash(e); table[i] = new HashNode<E>(e, table[i]); size++; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean add(Object element);", "public boolean add(E element){\n Object result = map.put(element, \"\");\n return (result == null);\n }", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) up...
[ "0.7243405", "0.7188397", "0.71497405", "0.6948256", "0.6834829", "0.6831091", "0.6831091", "0.6829779", "0.6801339", "0.6761763", "0.6756802", "0.67242855", "0.6611797", "0.65941745", "0.65722954", "0.64923465", "0.6426931", "0.64262813", "0.6406167", "0.6361987", "0.6361903...
0.63012415
23
/ Returns true if the given element is contained in this HashSet and false otherwise
public boolean contains(E e) { int i = hash(e); HashNode<E> current = table[i]; while (current != null) { if (current.data.equals(e)) { return true; } current = current.next; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean contains(E element);", "public boolean contains(T element);", "public boolean contains(E element) {\r\n return items.contains(element);\r\n }", "public boolean contains(Object elem);", "@Override\r\n\tpublic boolean contains(T element) {\n\t\treturn false;\r\n\t}", "boolean conta...
[ "0.79371697", "0.77230823", "0.75936747", "0.75771517", "0.7556312", "0.7402794", "0.73929685", "0.7380265", "0.73767155", "0.73571754", "0.7271287", "0.724172", "0.71193725", "0.70827323", "0.70824564", "0.70496523", "0.695567", "0.6905122", "0.68711853", "0.6817848", "0.679...
0.6428527
50
/ Removes the given element from this HashSet Returns true if the removal was successful
public boolean remove(E e) { if (!contains(e)) { return false; } int i = hash(e); if (table[i].data.equals(e)) { table[i] = table[i].next; } else { HashNode<E> current = table[i]; while (!current.next.data.equals(e)) { current = current.next; } current.next = current.next.next; } size--; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }", "@Override\r\n\tpublic boolean r...
[ "0.7519336", "0.7332444", "0.7280559", "0.7227912", "0.71574175", "0.70886856", "0.7011523", "0.693443", "0.69144076", "0.68781364", "0.68339574", "0.68144745", "0.6786638", "0.6780466", "0.6754601", "0.6689629", "0.66894877", "0.6674399", "0.6663261", "0.660785", "0.6563768"...
0.63771945
31
/ Returns the size of this HashSet
public int size() { return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size() {\n \tint currentSize = 0;\n \t\n \tIterator<E> iterateSet = this.iterator();\n \t\n \t// calculates number of elements in this set\n \twhile(iterateSet.hasNext()) {\n \t\titerateSet.next();\n \t\tcurrentSize++;\t\t\n \t}\n \t\n \treturn currentSize;\n \t\n ...
[ "0.79799175", "0.7956307", "0.79506403", "0.7949465", "0.786734", "0.7772439", "0.7559827", "0.7540901", "0.7451816", "0.72681725", "0.7261303", "0.7261034", "0.7233765", "0.72260135", "0.7224205", "0.72144973", "0.72100145", "0.71741694", "0.7157106", "0.7157106", "0.7157106...
0.0
-1
/ Returns true if this HashSet is empty, false otherwise
public boolean isEmpty() { return size == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "public boolean isEmpty(){\n if(set.length == 0)\n return true;\n return false;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this...
[ "0.85329443", "0.8258168", "0.7974895", "0.7974895", "0.79645985", "0.79514074", "0.79330766", "0.7921005", "0.7902745", "0.78696406", "0.78594995", "0.7852768", "0.78417397", "0.7820747", "0.7806156", "0.780107", "0.77902585", "0.77898026", "0.7779015", "0.77635527", "0.7756...
0.7666478
90
/ Returns the hash of the given element
private int hash(E e) { return Math.abs(e.hashCode()) % table.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHash();", "String getHash();", "int getHash();", "public BigInteger hash(String element)\n\t{ \n\t\treturn (BigInteger.valueOf(element.hashCode())).mod(modulus);\n\t}", "public abstract int getHash();", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", ...
[ "0.76894987", "0.76894987", "0.76023215", "0.7492106", "0.7213185", "0.7144821", "0.7144821", "0.7129684", "0.70039696", "0.6951048", "0.690608", "0.68719804", "0.68470615", "0.68397206", "0.68350875", "0.68187755", "0.68082756", "0.6802814", "0.6802814", "0.6802814", "0.6755...
0.637612
47
/ Constructs a new node with the given value and next link
public HashNode(E data, HashNode<E> next) { this.data = data; this.next = next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node(String value, Node next) {\n\t\t\tthis.value = value;\n\t\t\tthis.next = next;\n\t\t}", "public Node(T value) {\n\t\t\tthis.value = value; // initializing\n\t\t\tnext = null;\n\t\t}", "public Node(String value) {\n\t\t\tthis.value = value;\n\t\t\tthis.next = null;\n\t\t}", "public Node(String val...
[ "0.78223944", "0.7639713", "0.7464974", "0.7374093", "0.73699653", "0.7328986", "0.7328945", "0.7202565", "0.7132793", "0.7131026", "0.70587164", "0.7050063", "0.7022319", "0.7010482", "0.6995416", "0.6959925", "0.6949785", "0.692883", "0.69054323", "0.68657625", "0.6852954",...
0.0
-1
TODO Autogenerated method stub
public void keyPressed(KeyEvent arg0) { if(arg0.getKeyCode()==KeyEvent.VK_ENTER){ GOBJECT.Giw.visible=false; } if(arg0.getKeyCode()==KeyEvent.VK_A){ GOBJECT.hero.dir=1; GOBJECT.hero.isleft=true; }else if(arg0.getKeyCode()==KeyEvent.VK_S){ GOBJECT.hero.isdown=true; GOBJECT.hero.dir=0; }else if(arg0.getKeyCode()==KeyEvent.VK_D){ GOBJECT.hero.dir=2; GOBJECT.hero.isright=true; }else if(arg0.getKeyCode()==KeyEvent.VK_W){ GOBJECT.hero.dir=3; GOBJECT.hero.isup=true; }else if(arg0.getKeyCode()==KeyEvent.VK_J){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void keyReleased(KeyEvent arg0) { if(arg0.getKeyCode()==KeyEvent.VK_A){ GOBJECT.hero.isleft=false; }else if(arg0.getKeyCode()==KeyEvent.VK_S){ GOBJECT.hero.isdown=false; GOBJECT.hero.dir=0; }else if(arg0.getKeyCode()==KeyEvent.VK_D){ GOBJECT.hero.dir=2; GOBJECT.hero.isright=false; }else if(arg0.getKeyCode()==KeyEvent.VK_W){ GOBJECT.hero.dir=3; GOBJECT.hero.isup=false; }else if(arg0.getKeyCode()==KeyEvent.VK_J){ } GSelectWindow.Action(arg0.getKeyChar()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public void keyTyped(KeyEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void mouseClicked(MouseEvent arg0) { int aimr=(arg0.getY()+GOBJECT.Map.movey)/GOBJECT.Map.space; int aimc=(arg0.getX()+GOBJECT.Map.movex)/GOBJECT.Map.space; int startr=(GOBJECT.hero.rect.y+GOBJECT.Map.movey)/GOBJECT.Map.space; int startc=(GOBJECT.hero.rect.x+GOBJECT.Map.movex)/GOBJECT.Map.space; smart.bfs(GOBJECT.Map.maptable[0], GOBJECT.Map.maxr, GOBJECT.Map.maxc, startr, startc, aimr, aimc); smart.getRoad(); this.GOBJECT.mouseAn.getLive(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
move screen according to mouse position
public void SystemAction(){ if(GOBJECT.mouse.x<GOBJECT.Map.space&&GOBJECT.Map.movex>0){ GOBJECT.Map.movex--; } if(GOBJECT.mouse.x>this.getWidth()-GOBJECT.Map.space&&(GOBJECT.Map.movex+GameSystem.screen_width)<GOBJECT.Map.maxc*GOBJECT.Map.space){ GOBJECT.Map.movex++; } if(GOBJECT.mouse.y<GOBJECT.Map.space&&GOBJECT.Map.movey>0){ GOBJECT.Map.movey--; } if(GOBJECT.mouse.y>this.getHeight()-GOBJECT.Map.space&&GOBJECT.Map.movey+GameSystem.screen_height<GOBJECT.Map.maxr*GOBJECT.Map.space){ GOBJECT.Map.movey++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveMouse(int horizontal, int vertical);", "@Override\r\n public void mouseDragged(MouseEvent e) {\r\n int deltaX = e.getXOnScreen() - screenX;\r\n int deltaY = e.getYOnScreen() - screenY; \r\n \r\n setLocation(myX + deltaX, myY + del...
[ "0.73603004", "0.73170805", "0.72802895", "0.7243976", "0.72218037", "0.7066193", "0.7022354", "0.7015081", "0.70102173", "0.6970504", "0.6966023", "0.6918455", "0.68966347", "0.6881242", "0.6864998", "0.6861929", "0.68551797", "0.6846314", "0.683998", "0.6795592", "0.6765433...
0.6721052
28
TODO Autogenerated method stub
public static void main(String[] args) { MyFrame myframe=new MyFrame(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Constructor de la clase
public GrupoCrearEditarBackingMB() { super(); this.dto = new GrupoDTO(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public CyanSus() {\n\n }", "public Clade() {}", "public Carrera(){\n }", "public Classe() {\r\n }", "public Chauffeur() {\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public SlanjePoruk...
[ "0.8376671", "0.82482725", "0.7757712", "0.76491547", "0.764287", "0.75641066", "0.7557304", "0.7555219", "0.75255686", "0.7461729", "0.74616057", "0.7438721", "0.74067116", "0.7393601", "0.73794305", "0.737154", "0.73671997", "0.7337879", "0.7337316", "0.73341864", "0.731324...
0.0
-1
Pos constructor de la clase
@PostConstruct public void init() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Position() {\n\n\t}", "public POS(int position) {\n \t\tthis.position = position;\n \t}", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "Position createPosition();", "public Position()\n\t{\n\t\t// do not remove bean constructor.\n\t}", "Position_Position createPosition...
[ "0.80050904", "0.78629035", "0.73633546", "0.7321847", "0.7291223", "0.7276969", "0.71704346", "0.7122302", "0.711882", "0.7079937", "0.706276", "0.702625", "0.7006153", "0.69908535", "0.69831485", "0.69436336", "0.6852234", "0.6831648", "0.6823698", "0.67869496", "0.6753568"...
0.0
-1
Metodo encargado de llamar al EJB para insertar una persona.
public String insertarGrupo() { this.log.info("inicio insertarPersoa"); try { this.bean.insertarUserGroup(this.dto); String msg = TablaValores.getValor(TABLA_PARAMETROS, "msgCrearEditar", "okInserta"); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msg)); this.log.info("termino insertarGrupo"); } catch (Exception e) { this.log.error("Error " + e.getMessage()); this.log.error("Error " + e.getClass()); String msg = TablaValores.getValor(TABLA_PARAMETROS, "msgCrearEditar", "nokInserta"); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, e.getMessage())); return "error"; } return "success"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "Lancamento persistir(Lancamento lancamento);", "public void createEmp(Empresa p) throws ...
[ "0.6550411", "0.65325016", "0.64544505", "0.63718843", "0.6348371", "0.6297462", "0.6291971", "0.628731", "0.6281921", "0.62652886", "0.62390405", "0.6225422", "0.6223515", "0.6196809", "0.6190363", "0.6184222", "0.6180582", "0.6164926", "0.6161966", "0.61547273", "0.6150126"...
0.0
-1
Metodo encargado de llamar al EJB para insertar una persona.
public String actualizaGrupo() { this.log.info("inicio actualizaPersona"); try { this.bean.actualizaUserGroup(this.dto); String msg = TablaValores.getValor(TABLA_PARAMETROS, "msgCrearEditar", "okActualiza"); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msg)); this.log.info("termino actualizaGrupo"); } catch (Exception e) { this.log.error("Error actualizaGrupo"); this.log.error("Error " + e.getMessage()); this.log.error("Error " + e.getClass()); String msg = TablaValores.getValor(TABLA_PARAMETROS, "msgCrearEditar", "nokActualiza"); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, e.getMessage())); return "error"; } return "success"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "Lancamento persistir(Lancamento lancamento);", "public void createEmp(Empresa p) throws ...
[ "0.65534496", "0.6534772", "0.645539", "0.6372965", "0.63510853", "0.62986", "0.6295481", "0.6289832", "0.6284447", "0.6267222", "0.6238807", "0.62273264", "0.62211674", "0.61994183", "0.61928856", "0.61859924", "0.6182687", "0.6166866", "0.61635107", "0.6156679", "0.61538196...
0.0
-1
Metodo encargado de llamar al EJB para insertar una persona.
public String obtenerGrupo(String id) { if (id != null && "".compareTo(id) != 0) { try { this.dto = this.bean.obtenerUserGroups(id); } catch (Exception e) { this.log.error("Error al bean.obtenerPersonas(" + this.dto.getId() + "):" + e); e.printStackTrace(); String msg = TablaValores.getValor(TABLA_PARAMETROS, "msgCrearEditar", "nokObtener"); FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, e.getMessage())); } } return "actualiza"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "Lancamento persistir(Lancamento lancamento);", "public void createEmp(Empresa p) throws ...
[ "0.6551312", "0.6532561", "0.64553714", "0.6371315", "0.6348985", "0.629687", "0.6294743", "0.6288262", "0.628412", "0.6265861", "0.6239593", "0.62254846", "0.6222187", "0.6196842", "0.61903894", "0.61847955", "0.6181854", "0.6165012", "0.6162576", "0.61557615", "0.6152212", ...
0.0
-1
Metodo que retorna el campo dto
public GrupoDTO getDto() { return this.dto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyDefDto getDto();", "public abstract D convertToDto(T entity);", "V toDto(E entity);", "@Override\r\n\tpublic AbstractDto mapToDto() {\n\t\treturn null;\r\n\t}", "D mapToDTO(E entity);", "public abstract DTO toDTO(M model);", "public default D toDto(E entity) {\n\t\tif (entity == null) {\...
[ "0.7425438", "0.7335533", "0.72756803", "0.71999264", "0.71743816", "0.71066815", "0.7060934", "0.7059465", "0.6932182", "0.688085", "0.6859538", "0.6780312", "0.67475474", "0.67175174", "0.6684684", "0.6672762", "0.6648645", "0.66319066", "0.66064495", "0.66003", "0.6571192"...
0.66696596
16
Metodo que setea el campo dto
public void setDto(GrupoDTO dto) { this.dto = dto; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDto(PropertyDefDto dto);", "public AtendimentoJuridicoDTO toDTO(AtendimentoJuridicoEntity entity){\n\t\tAtendimentoJuridicoDTO dto = new AtendimentoJuridicoDTO();\n\t\tBeanUtils.copyProperties(entity, dto); \n\t\treturn dto ;\n\t}", "public abstract DTO toDTO(M model);", "public PersonaDTO(){}...
[ "0.72069097", "0.66084915", "0.6583233", "0.65720934", "0.6570669", "0.65487176", "0.6493415", "0.6461897", "0.64342", "0.6414658", "0.64091015", "0.6404035", "0.6379098", "0.63572735", "0.6342846", "0.63359714", "0.6281635", "0.6280087", "0.6264856", "0.62616134", "0.6222128...
0.6465093
7
The mapper of config info.
public interface ConfigInfoAggrMapper extends Mapper { /** * To delete aggregated data in bulk, you need to specify a list of datum. * The default sql: * DELETE FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? AND datum_id IN (...) * * @param datumList datumList * @return The sql of deleting aggregated data in bulk. */ String batchRemoveAggr(List<String> datumList); /** * Get count of aggregation config info. * The default sql: * SELECT count(*) FROM config_info_aggr WHERE data_id = ? AND group_id = ? AND tenant_id = ? * * @param size datum id list size * @param isIn search condition * @return The sql of getting count of aggregation config info. */ String aggrConfigInfoCount(int size, boolean isIn); /** * Find all data before aggregation under a dataId. It is guaranteed not to return NULL. * The default sql: * SELECT data_id,group_id,tenant_id,datum_id,app_name,content * FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? ORDER BY datum_id * * @return The sql of finding all data before aggregation under a dataId. */ String findConfigInfoAggrIsOrdered(); /** * Query aggregation config info. * The default sql: * SELECT data_id,group_id,tenant_id,datum_id,app_name,content FROM config_info_aggr WHERE data_id=? AND * group_id=? AND tenant_id=? ORDER BY datum_id LIMIT startRow,pageSize * * @param startRow The start index. * @param pageSize The size of page. * @return The sql of querying aggregation config info. */ String findConfigInfoAggrByPageFetchRows(int startRow, int pageSize); /** * Find all aggregated data sets. * The default sql: * SELECT DISTINCT data_id, group_id, tenant_id FROM config_info_aggr * * @return The sql of finding all aggregated data sets. */ String findAllAggrGroupByDistinct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ModuleMapper() {\n mapper = new HashMap<String, String>();\n mapper.put(\"accounts\", \"Accounts\");\n mapper.put(\"acl_actions\", \"ACLActions\");\n mapper.put(\"acl_roles\", \"ACLRoles\");\n mapper.put(\"bugs\", \"Bugs\");\n mapper.put(\"calls\", \"Calls\");\n ...
[ "0.64379644", "0.6198716", "0.617621", "0.5878331", "0.58723307", "0.58603406", "0.581771", "0.581771", "0.5808729", "0.5793494", "0.57912606", "0.57454056", "0.5708901", "0.5653942", "0.5602082", "0.5586549", "0.5571551", "0.55578154", "0.5541061", "0.5506989", "0.55051345",...
0.5214726
49
To delete aggregated data in bulk, you need to specify a list of datum. The default sql: DELETE FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? AND datum_id IN (...)
String batchRemoveAggr(List<String> datumList);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteBatch(List<Integer> list) {\n\t\tEmployeeExample employeeExample=new EmployeeExample();\n\t\tCriteria createCriteria = employeeExample.createCriteria();\n\t\tcreateCriteria.andEmpIdIn(list);\n\t\temployeeMapper.deleteByExample(employeeExample);\n\t}", "int deleteByPrimaryKeyBulk(@Param(\"ids\")...
[ "0.5981244", "0.5909718", "0.58937013", "0.58784103", "0.5850785", "0.5796152", "0.57104325", "0.57037556", "0.57014847", "0.5676952", "0.5600085", "0.55535066", "0.55484635", "0.55134034", "0.54883015", "0.54850096", "0.548146", "0.54522425", "0.5442424", "0.5432496", "0.543...
0.7173046
0
Get count of aggregation config info. The default sql: SELECT count() FROM config_info_aggr WHERE data_id = ? AND group_id = ? AND tenant_id = ?
String aggrConfigInfoCount(int size, boolean isIn);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional(readOnly = true)\n public long countByCriteria(OssConfigCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n createQueryWrapper(criteria);\n return ossConfigRepository.selectCount(this);\n }", "@Transactional(readOnly = true)\n public long countBy...
[ "0.5805236", "0.577191", "0.5746143", "0.56814075", "0.5644817", "0.56445575", "0.56130534", "0.55020785", "0.5466048", "0.54579383", "0.5436548", "0.5431812", "0.5414966", "0.5397372", "0.5391002", "0.536997", "0.53655165", "0.5365209", "0.5354888", "0.5351099", "0.53436273"...
0.71709615
0
Find all data before aggregation under a dataId. It is guaranteed not to return NULL. The default sql: SELECT data_id,group_id,tenant_id,datum_id,app_name,content FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? ORDER BY datum_id
String findConfigInfoAggrIsOrdered();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<DataEntry> filterFindByGroupId(long groupId);", "public java.util.List<DataEntry> findByGroupId(long groupId);", "private void preProcessData() {\n\n // Group employees by department\n if (employeesByDepartments == null) {\n\n employeesByDepartments = new HashMap<...
[ "0.55510163", "0.5472381", "0.52298176", "0.5168289", "0.5153954", "0.49809712", "0.48958686", "0.48393098", "0.4813079", "0.47696418", "0.47309634", "0.47158718", "0.4697585", "0.46834558", "0.46638367", "0.46422812", "0.46338537", "0.46261883", "0.46124375", "0.46064663", "...
0.0
-1
Query aggregation config info. The default sql: SELECT data_id,group_id,tenant_id,datum_id,app_name,content FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? ORDER BY datum_id LIMIT startRow,pageSize
String findConfigInfoAggrByPageFetchRows(int startRow, int pageSize);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ConfigInfoAggrMapper extends Mapper {\n \n /**\n * To delete aggregated data in bulk, you need to specify a list of datum.\n * The default sql:\n * DELETE FROM config_info_aggr WHERE data_id=? AND group_id=? AND tenant_id=? AND datum_id IN (...)\n *\n * @param datumList d...
[ "0.6146412", "0.5340984", "0.5097442", "0.4943728", "0.48902386", "0.488176", "0.48771682", "0.48446906", "0.4751996", "0.47093222", "0.46651992", "0.46569437", "0.46299747", "0.46263653", "0.46044746", "0.45592827", "0.4538011", "0.45368257", "0.45339668", "0.45247477", "0.4...
0.7078753
0
Find all aggregated data sets. The default sql: SELECT DISTINCT data_id, group_id, tenant_id FROM config_info_aggr
String findAllAggrGroupByDistinct();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashSet<Integer> getAllSourceDatasets() {\n HashSet<Integer> allDatasets = null;\n Session session = getSession();\n try {\n SQLQuery allDatasetsQuery\n = session.createSQLQuery(ALL_SRC_DATASETS_QUERY\n + sourceDB + \".\" + DATASET_TABLE_...
[ "0.5828024", "0.5572795", "0.5467462", "0.54305154", "0.54022473", "0.5378239", "0.5327909", "0.53017735", "0.5258641", "0.5161998", "0.5147752", "0.51359636", "0.51068866", "0.5101059", "0.5094735", "0.5047144", "0.5025936", "0.4993041", "0.49196452", "0.49045938", "0.485420...
0.54813063
2
sumWithCondition(numbers, n > true)
public static void main(String args[]){ MyClass2 obj = new MyClass2(); obj.print(""); obj.isNull("abc"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSumOverFunctionEvaluatingArguments() {\n\t\trunTest(2, false, \"sum({{(on f in Boolean -> 0..3) product({{(on X in Boolean) f(not X or X) : true }}) : true }})\", \"40\");\n\t}", "@Test\n\tpublic void testSumOverFunctionV3() {\n\t\trunTest(2, false, \"sum({{(on f in Boolean -> 0..3) sum(...
[ "0.621751", "0.61636645", "0.6106125", "0.6030179", "0.5812814", "0.5812814", "0.57633275", "0.5646471", "0.560472", "0.5586582", "0.5535559", "0.54781497", "0.54369926", "0.5433909", "0.5413423", "0.5407178", "0.5377336", "0.5376624", "0.5342788", "0.53175545", "0.53123736",...
0.0
-1
/BigDecimal totalAportes = comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo().add(comprobanteSeleccionado.getAportecomitente())); System.out.println("Total Aportes Sumados = " + totalAportes.floatValue());
public void distribuirAportes1(){ if(null == comprobanteSeleccionado.getAporteuniversidad()){ System.out.println("comprobanteSeleccionado.getAporteuniversidad() >> NULO"); } if(null == comprobanteSeleccionado.getAporteorganismo()){ System.out.println("comprobanteSeleccionado.getAporteorganismo() >> NULO"); } if(null == comprobanteSeleccionado.getMontoaprobado()){ System.out.println("comprobanteSeleccionado.getMontoaprobado() >> NULO"); } try{ if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){ comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad())); comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO); } } catch(NullPointerException npe){ System.out.println("Error de NullPointerException"); npe.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal getTotal();", "BigDecimal getTotal();", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n ...
[ "0.7344017", "0.7344017", "0.7273408", "0.7131847", "0.7111825", "0.70033276", "0.68111515", "0.6744074", "0.67339057", "0.6727224", "0.6705827", "0.66902703", "0.6683165", "0.6668096", "0.66157126", "0.66052926", "0.65928555", "0.6572447", "0.6557712", "0.6540572", "0.652283...
0.64697486
23
/BigDecimal totalAportes = comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo().add(comprobanteSeleccionado.getAportecomitente())); System.out.println("Total Aportes Sumados = " + totalAportes.floatValue());
public void distribuirAportes2(){ if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){ comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo()))); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigDecimal getTotal();", "BigDecimal getTotal();", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n ...
[ "0.734357", "0.734357", "0.7274092", "0.7131486", "0.7111923", "0.7003046", "0.68119216", "0.6744708", "0.6733865", "0.6727786", "0.6704623", "0.6690451", "0.66825265", "0.6668262", "0.6614918", "0.66045564", "0.6593177", "0.6573384", "0.6558127", "0.6539949", "0.652234", "...
0.0
-1
listaComprobantes = this.getEjbFacadeComprobantes().buscarPorFechaDesdeHasta(desde, hasta); buscamos los comprobantes de gasto, que tengan estado, es decir, fueron evaluados
public void buscarComprobantesEntreFechas(){ listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta); System.out.println("listaComprobantes cantidad >> " + listaComprobantes.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Oficios> buscarActivas();", "List<Venta1> consultarVentaPorFecha(Date desde, Date hasta, Persona cliente) throws Exception;", "@Override\n\tpublic List<Comisiones> buscar(Comisiones comisiones) {\n\t\tEntityManager manager = createEntityManager();\n\t\tCriteriaBuilder builder = manager.getCriteriaBuilder(...
[ "0.7263363", "0.7093165", "0.68070984", "0.6783118", "0.67685336", "0.67443913", "0.6657131", "0.66010463", "0.6589227", "0.6574401", "0.6563854", "0.6542153", "0.6539811", "0.65363026", "0.652854", "0.65273404", "0.6479628", "0.6471034", "0.6459994", "0.6455052", "0.64382875...
0.8194202
0
1. declare a 2D array of integers with 3, 1D arrays that each hold 3 integers
public static void main(String[] args) { Random m = new Random(); int [][] dArray = new int[3][3]; // 2. use two for loops to set all the elements in the 2D array to // a different integer // BE SURE TO USE THE ARRAY'S length VARIABLE for (int i = 0; i < dArray.length; i++) { for (int j = 0; j < dArray[i].length; j++) { dArray[i][j] = m.nextInt(9)+1; } } // 3. print the third element from the second 1D array (2DArray[1][2]) System.out.println(dArray[1][2]); // 4. set the third element from the second 1D array to a different // value dArray[1][2] = 10; // 5. print the element again and verify the value has changed System.out.println(dArray[1][2]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[][][] init3DArray(int count){\r\n return new int[count][count][count];\r\n }", "public static void main (String[] args) {\n int[][] twoD = new int[3][4];\n// Where x is an integer\n// [[x, x, x, x],\n// [x, x, x, x],\n// [x, x, x, x]]\n\n// int[][][] ...
[ "0.7203237", "0.6990288", "0.68914425", "0.6626403", "0.6539448", "0.6322225", "0.6206704", "0.6165338", "0.6161341", "0.6116383", "0.60465264", "0.6040346", "0.60268676", "0.59853274", "0.59273624", "0.5926586", "0.5920973", "0.59077406", "0.58959407", "0.58793825", "0.58771...
0.55176765
63
Returns a new instance of this fragment for the given section number.
public static EventsOrStatesFragment newInstance(int sectionNumber, boolean showEvents) { EventsOrStatesFragment fragment = new EventsOrStatesFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); args.putBoolean(ARG_SHOW_EVENTS, showEvents); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MainFragment newInstance(int sectionNumber) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public s...
[ "0.78378177", "0.7716026", "0.7709604", "0.7697141", "0.76830727", "0.7609837", "0.75962704", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", "0.75684774", ...
0.5887245
77
getItem is called to instantiate the fragment for the given page. Return a PlaceholderFragment (defined as a static inner class below).
@Override public Fragment getItem(int position) { return EventsOrStatesFragment.newInstance(position + 1, showEvents); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position);\n }", "@Override\n public Fragment getItem(int position) {\n return WebPageFragment.newInstance(position);\n }", "@NonNull\n\t\t@Override\n\t\tpu...
[ "0.72919405", "0.71684223", "0.7127443", "0.70753", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.7005576", "0.6994497", "0.6977012", "0.6955742", "...
0.0
-1
Show 2 total pages.
@Override public int getCount() { return 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPagesAmount();", "long getAmountPage();", "@Test\n\tpublic void shouldReturnSecondPageSortedByOriginalAmountAsc()\n\t{\n\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments(\n\t\t\t\tcreatePageableData(1, 2, \"byOriginalAmountAsc\"), Collections.singletonList(Ac...
[ "0.66394883", "0.6310845", "0.6247585", "0.61983025", "0.61640596", "0.61640596", "0.61640596", "0.61640596", "0.61383164", "0.6091821", "0.5991357", "0.5966327", "0.5966327", "0.5966327", "0.5889809", "0.58841777", "0.5883868", "0.586598", "0.5829298", "0.5827352", "0.579510...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc=new Scanner(System.in); int side1=sc.nextInt(); int side2=sc.nextInt(); int side3=sc.nextInt(); int prmter=calcPermtrOfTrngle(side1,side2,side3); System.out.println("perimeter of given sides of triangle: "+prmter); sc.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Get Role by roleId
public Role getByRoleId(long roleId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Role getRoleById(int id);", "public SecRole getRoleById(Long role_Id);", "public static Role getById(long roleId) {\n for (Role role : values()) {\n if (role.getId() == roleId) return role;\n }\n return null;\n }", "TDLRoleEntity getTDLRole(Long id);", "@Override\r...
[ "0.8684049", "0.8535913", "0.7973827", "0.787502", "0.7844016", "0.78381747", "0.773506", "0.76809126", "0.7624546", "0.75922257", "0.7588466", "0.75787944", "0.75753635", "0.75246555", "0.7476787", "0.7471571", "0.743726", "0.73727953", "0.73727953", "0.73727953", "0.7339427...
0.89857477
0
get bookings with affordable price
@RequestMapping(value="/affordable/{price}", method=RequestMethod.GET) @ApiMethod(description = "Get all hotel bookings there is a price per night less than provided value") public List<HotelBooking> getAffordable(@ApiPathParam(name="price") @PathVariable double price) { return this.bookingRepository.findByPricePerNightLessThan(price); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OrderBook getOrderBook(String symbol, Integer limit);", "List<List<Order>> getAllOrdersByPrice() throws OrderBookOrderException;", "public BigDecimal getPriceList();", "double getPricePerPerson();", "public void listBooksByPrice(int price) {\n String sql = \"SELECT ISBN, BookName, AuthorName, Price ...
[ "0.6097147", "0.6080061", "0.5957368", "0.59478414", "0.59373116", "0.5881509", "0.586784", "0.5857796", "0.58552045", "0.58449936", "0.58263445", "0.58237475", "0.5814309", "0.58020633", "0.57893866", "0.57695067", "0.57560366", "0.570447", "0.57005507", "0.57004786", "0.569...
0.67778766
0
Spring Data JPA repository for the User entity.
public interface UserRepository extends JpaRepository<User, String> { Optional<User> findOneByUsername(String username); boolean existsByUsername(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface UserRepository extends JpaRepository<User, Long> {\n\n /**\n * Find a user by given id\n *\n * @param id db id of the user\n * @return user object\n */\n User findById(long id);\n\n /**\n * Find a user by given username\n *\n * @param username ...
[ "0.7788384", "0.77266103", "0.77266103", "0.77266103", "0.77101535", "0.7673711", "0.76494795", "0.7637344", "0.76358175", "0.7624807", "0.76134866", "0.76099986", "0.76023585", "0.75999415", "0.7574195", "0.7567044", "0.75621367", "0.7501558", "0.74831223", "0.74527997", "0....
0.0
-1
A special database query that can perfom a flexible query and build/populate a table
public static ObservableList<Omni> Quaeres(Omni bean) throws SQLException { ObservableList<Omni> result = FXCollections.observableArrayList(); ResultSet rs = null; String query = "SELECT * FROM $table WHERE $column like ?"; String sql = query.replace("$table", bean.getTable()).replace("$column", bean.getColumn()); try( Connection conn = DbUtil.getConn(DbType.MYSQL); PreparedStatement stmt = conn.prepareStatement(sql); ) { int inputType = bean.getInputType(); switch (inputType) { case 1: stmt.setInt(1, bean.getNumber()); break; case 2: stmt.setString(1, "%" + bean.getWord() +"%"); break; default: System.out.println("What"); break; } rs = stmt.executeQuery(); while(rs.next()) { //////////COLUMN NAMES///////////// ArrayList<String> columnNames = new ArrayList(); ArrayList<String> columnTypes = new ArrayList(); ResultSetMetaData rsmd = rs.getMetaData(); for (int i = 1; i < rsmd.getColumnCount() + 1; i++) { columnNames.add(rsmd.getColumnName(i)); columnTypes.add(rsmd.getColumnTypeName(i)); } /////////COLUMN VALUES/////////////// Omni output = new Omni(); int lenght = columnNames.size(); switch(lenght) { case 2: System.out.println("The table is diplomatocourses"); output = new Omni( rs.getInt(1), rs.getInt(2)); break; case 3: System.out.println("The table is attendance"); output = new Omni( rs.getString(1), rs.getInt(2), rs.getInt(3)); break; case 4: System.out.println("The table is submissions"); output = new Omni( rs.getInt(1), rs.getInt(2), rs.getInt(3), rs.getInt(4)); break; case 5: if ("INT".equals(columnTypes.get(1))) { System.out.println("The table is assessment"); output = new Omni( rs.getInt(1), rs.getInt(2), rs.getString(3), rs.getString(4), rs.getString(5)); } else { System.out.println("The table is diploma"); output = new Omni( rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5)); } break; case 6: if ("INT".equals(columnTypes.get(4))) { System.out.println("The table is courses"); output = new Omni( rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getInt(5), rs.getInt(6)); } else { System.out.println("The table is admin"); output = new Omni( rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5), rs.getString(6)); } break; case 8: System.out.println("The table is caseworker"); output = new Omni( rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5), rs.getString(6), rs.getString(7), rs.getString(8)); break; case 11: System.out.println("The table is students"); output = new Omni( rs.getInt(1), rs.getInt(2), rs.getInt(3), rs.getString(4), rs.getString(5), rs.getString(6), rs.getString(7), rs.getInt(8), rs.getInt(9), rs.getInt(10), rs.getInt(11)); break; default: System.out.println("What"); } bean.setColumnNames(columnNames); bean.setColumnTypes(columnTypes); result.add(output); System.out.println(output); } } catch (Exception e) { System.out.println(e); return null; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SelectQuery createSelectQuery();", "private GeneralQueryFormat createQueryFromRow(int rowNum) {\n String fname = this.employee_first_name.get(rowNum);\n String lname = this.employee_last_name.get(rowNum);\n String mname = this.employee_middle_initial.get(rowNum);\n String ssn...
[ "0.64770645", "0.61524", "0.6126186", "0.60541564", "0.60351247", "0.60116535", "0.59611446", "0.5938676", "0.59362435", "0.5881693", "0.5881667", "0.5875871", "0.5875749", "0.57912", "0.5789787", "0.57525796", "0.5705871", "0.56541556", "0.56471664", "0.5637305", "0.56332624...
0.0
-1
flexible query that can add any type of user to the database
public static boolean addNewUser(User bean) throws SQLException{ String sql = "INSERT INTO $tablename (email, password, firstName, lastName) VALUES (?, ?, ?, ?)"; String query = sql.replace("$tablename", bean.getTable()); ResultSet keys = null; try{ Connection conn = DbUtil.getConn(DbType.MYSQL); PreparedStatement stmt = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS); stmt.setString(1, bean.getEmail()); stmt.setString(2, bean.getPassword()); stmt.setString(3, bean.getFirstName()); stmt.setString(4, bean.getLastName()); int affected = stmt.executeUpdate(); return affected == 1; } catch (SQLException e) { System.err.println(e); return false; } finally { if(keys != null) { keys.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(User user) throws SQLException;", "void addUser(User user);", "void addUser(User user);", "public void addUser(User user);", "public void addUser(String firstName, String lastName, String username, String password, char type)\r\n\t{\r\n\t\tdb.user_addUser(firstName, lastName, username, password, t...
[ "0.68340594", "0.66014373", "0.66014373", "0.6519629", "0.64467615", "0.641853", "0.6394902", "0.6388425", "0.63509935", "0.6334292", "0.6332957", "0.63300306", "0.6322576", "0.62930983", "0.62930983", "0.62930983", "0.62930983", "0.62930983", "0.62930983", "0.62930983", "0.6...
0.0
-1
felxible query that can update any user types data
public static boolean updateUser (User bean) { String sql = "UPDATE $tablename SET firstName = ?, lastName = ?, email = ? WHERE $idType = ?"; String query = sql.replace("$tablename", bean.getTable()).replace("$idType", bean.getIdType()); try( Connection conn = DbUtil.getConn(DbType.MYSQL); PreparedStatement stmt = conn.prepareStatement(query); ) { stmt.setString(1, bean.getFirstName()); stmt.setString(2, bean.getLastName()); stmt.setString(3, bean.getEmail()); stmt.setInt(4, bean.getID()); int affected = stmt.executeUpdate(); return affected == 1; } catch (Exception e) { System.out.println(e); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Update({\n \"update user_t\",\n \"set user_name = #{userName,jdbcType=VARCHAR},\",\n \"password = #{password,jdbcType=VARCHAR},\",\n \"age = #{age,jdbcType=INTEGER},\",\n \"ver = #{ver,jdbcType=INTEGER}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int upd...
[ "0.6733364", "0.6582855", "0.6499152", "0.64947516", "0.6492656", "0.6461854", "0.6461854", "0.64582884", "0.64582884", "0.6453981", "0.6451454", "0.6416019", "0.64078194", "0.6407525", "0.6395302", "0.6395302", "0.6395302", "0.6395302", "0.6395302", "0.6395302", "0.6395302",...
0.6229617
49
flexible query that can delete an entry for any user type
public static boolean deleteSelection(User bean, String idType){ String sql = "DELETE FROM $tablename WHERE $idType = ?"; String query = sql.replace("$tablename", bean.getTable()).replace("$idType", idType); try{ Connection conn = DbUtil.getConn(DbType.MYSQL); PreparedStatement stmt = conn.prepareStatement(query); stmt.setInt(1, bean.getID()); int affected = stmt.executeUpdate(); return affected == 1; } catch (SQLException e) { System.out.println(e); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean delete(Long id, Class<T> type);", "public User delete(String user);", "int deleteByExample(AdminUserCriteria example);", "int deleteByExample(AdminUserCriteria example);", "int deleteByExample(UserTExample example);", "int deleteByExample(UUserExample example);", "void delete(User user);", "v...
[ "0.69511837", "0.6907024", "0.6830087", "0.6830087", "0.67814887", "0.67797863", "0.66481906", "0.66481906", "0.6617276", "0.6616934", "0.6615947", "0.6580266", "0.6573825", "0.6559128", "0.6557279", "0.6557279", "0.6523952", "0.6523844", "0.6477505", "0.6472481", "0.646958",...
0.6070587
80
gets the id of a user for any user type
public static ArrayList<String> getUserByID(User user) { ArrayList<String> currentUser = new ArrayList<>(); String sql = "SELECT * FROM $tablename WHERE $column = ?"; String query = sql.replace("$tablename", user.getTable()).replace("$column", user.getColumn()); ResultSet rs; try( Connection conn = DbUtil.getConn(DbType.MYSQL); PreparedStatement stmt = conn.prepareStatement(query); ) { stmt.setInt(1, user.getID()); rs = stmt.executeQuery(); if (rs.next()) { currentUser.add(Integer.toString(rs.getInt("studentID"))); currentUser.add(Integer.toString(rs.getInt("diplomaID"))); currentUser.add(Integer.toString(rs.getInt("employeeID"))); currentUser.add(rs.getString("firstName")); currentUser.add(rs.getString("lastName")); currentUser.add(rs.getString("email")); currentUser.add(rs.getString("password")); currentUser.add(rs.getString("industryPreference")); currentUser.add(rs.getString("visitCount")); currentUser.add(rs.getString("averageGrade")); currentUser.add(rs.getString("assessmentsPassed")); return currentUser; } else { System.out.println("N"); return null; } } catch (Exception e) { System.err.println(e); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getUserId();", "public Integer getUserTypeId()\n {\n return userTypeId;\n }", "public int getUserId(User user) throws Exception;", "long getUserId();", "long getUserId();", "public Integer getUserTypeId() {\n return userTypeId;\n }", "Long getUserId();", "java.lang.Stri...
[ "0.75528663", "0.7373766", "0.7320334", "0.7282174", "0.7282174", "0.7279324", "0.7254488", "0.72458565", "0.72458565", "0.72458565", "0.7224911", "0.71901417", "0.71901417", "0.71329904", "0.71329904", "0.71329904", "0.71329904", "0.7095932", "0.7095932", "0.7095932", "0.706...
0.0
-1
database query that confirms if a password has been updated or not
public static boolean updatePassword(User bean) { String sql = "UPDATE $tablename SET password = ? WHERE $idType = ?"; String query = sql.replace("$tablename", bean.getTable()).replace("$idType", bean.getIDType()); try( Connection conn = DbUtil.getConn(DbType.MYSQL); PreparedStatement stmt = conn.prepareStatement(query); ) { stmt.setString(1, SecurityMethods.getHash(bean.getPassword())); stmt.setInt(2, bean.getID()); int affected = stmt.executeUpdate(); if (affected == 1) { return true; } else { return false; } } catch (Exception e) { System.out.println(e); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Boolean changePassword() {\r\n //capture return value from SQL query to check if pass was updated\r\n int updatedRow = 0;\r\n \r\n try {\r\n // load and register JDBC driver for MySQL - \r\n // This tells the Java Class where to find the driver to connect t...
[ "0.73549664", "0.71959597", "0.7007459", "0.67896146", "0.67813677", "0.6707916", "0.6584591", "0.6562429", "0.6556274", "0.6556274", "0.6556274", "0.6556274", "0.6556274", "0.6556274", "0.6556274", "0.6556274", "0.65330464", "0.6480473", "0.6469101", "0.6450318", "0.6393105"...
0.69387895
3
Allow this route to be run as an application
public static void main(String[] args) throws Exception { new Main().run(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void appStart() {\n }", "public void startOsgi();", "Application getApplication();", "public void startApp()\r\n\t{\n\t}", "public BazaarApplicationImpl() {\r\n\t\tsuper();\r\n\r\n\t}", "@Override\n public void run(ApplicationArguments args) {\n }", "public DefaultAp...
[ "0.6004261", "0.5628706", "0.5625286", "0.5622139", "0.5614296", "0.559085", "0.5584702", "0.55533594", "0.55303353", "0.552611", "0.5484807", "0.5388922", "0.53704184", "0.53525406", "0.5338041", "0.53187126", "0.52893", "0.5259612", "0.5239195", "0.52330214", "0.5220908", ...
0.0
-1
Also sets name to last part of qualified name if name is null.
public void setQualifiedName(String newQualifiedName) { String oldQualifiedName = qualifiedName; qualifiedName = newQualifiedName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, B3backendPackage.B3_JAVA_IMPORT__QUALIFIED_NAME, oldQualifiedName, qualifiedName)); // set the name if not set (unless the qualified name is also null) if(name == null && qualifiedName != null) { int lastDot = qualifiedName.lastIndexOf('.'); if(lastDot < 0) setName(qualifiedName); else setName(qualifiedName.substring(lastDot+1)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name)\n/* */ {\n/* 368 */ this.name = name;\n/* 369 */ this.fullName = name;\n/* 370 */ this.namespace = null;\n/* */ }", "public void setName(String fullName, String namespace)\n/* */ {\n/* 381 */ int index = fullName.indexOf(':');\n/* 382 */ ...
[ "0.6959542", "0.6821887", "0.6278999", "0.616833", "0.60962445", "0.6063088", "0.60622466", "0.6007692", "0.59690446", "0.59173733", "0.59173733", "0.59173733", "0.5884539", "0.5882195", "0.5876858", "0.5875542", "0.5875542", "0.5875542", "0.58626056", "0.58626056", "0.586260...
0.0
-1
Resolves the type (by asking the bundle to load the class having qualifiedName) if not already done.
public Type getType() { if(type == null) { try { setType(B3BackendActivator.instance.getBundle().loadClass(getQualifiedName())); } catch (ClassNotFoundException e) { // TODO: ?? Need to handle this, so the "not found" surfaces to the user... // Handled via model validation - type can not be null } } return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "<T> T resolve(String name, Class<T> type);", "public abstract Class resolveClass(GenerationContext context);", "<T> T resolve(Class<T> type);", "private @Nullable Type resolveType(@NotNull String typeName) {\n QnTypeRef typeRef = new QnTypeRef(Qn.fromDotSeparated(typeName));\n return (Type) typesResolv...
[ "0.68828636", "0.6656609", "0.6543494", "0.65356964", "0.6206672", "0.619688", "0.6040788", "0.5954442", "0.5934863", "0.5872204", "0.58321095", "0.57799846", "0.56711805", "0.5663258", "0.56263995", "0.5581157", "0.5563363", "0.5553264", "0.5515824", "0.55119675", "0.5509461...
0.60881275
6
Date object for time measurements / Constructor
Message(String clientID, String message, int msgResendTime) { this.clientID = clientID; this.message = message; this.msgResendTime = msgResendTime; nextMessage = null; messageID = ++messageIDCounter; date = new Date(); clientsRequestsList = new HashMap<String, Date>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }", "public MyDate(long inElapsedTime)\n {\n //put in logic here\n elapsedTime = inElapsedTime;\n this.setDate(elapsedTime);\n }", "public Date() {\r\n }", "public MyDate(){\n thi...
[ "0.71027565", "0.7034192", "0.6979561", "0.69565606", "0.6917742", "0.67542374", "0.67336977", "0.67228967", "0.66114885", "0.65608025", "0.65501624", "0.64996374", "0.6488088", "0.64825976", "0.6438478", "0.64347446", "0.63856184", "0.63820386", "0.6360521", "0.6353015", "0....
0.0
-1
/ This method returns a message object only if the specified client doesn't request it already or the request is past the messageresendtime
public Message getValidMessage(String clientID) { Date tempDate = new Date(); Message tempMessage = null; if (!clientsRequestsList.containsKey(clientID)) { clientsRequestsList.put(clientID, tempDate); // Request from unknown client-ID: Put new client-ID and current request timestamp into HashMap tempMessage = this; } else { if (((tempDate.getTime() - clientsRequestsList.get(clientID).getTime()) / 1000) >= msgResendTime) { clientsRequestsList.remove(clientID); // Request of client-ID is past the message-resend-time, so delete old entry and clientsRequestsList.put(clientID, tempDate); // refresh HashMap with a new entry: Put same client-ID but new request timestamp into HashMap tempMessage = this; } } return tempMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized ClientMessage readClientMessage(){\n while ( !currClient.isUpdatingClientMessage() ) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n currClient.setUpdateClientMessage(...
[ "0.62265486", "0.5734157", "0.55629444", "0.5552099", "0.53872514", "0.536731", "0.529679", "0.5281724", "0.5264843", "0.5261078", "0.52444696", "0.5229606", "0.52076703", "0.515522", "0.51516664", "0.51460385", "0.5132966", "0.5124219", "0.51201457", "0.5084109", "0.5062233"...
0.74350715
0
/ Getter and setter
public Message getNextMessage() { return nextMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "String setValue();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void setdat()\n {\n }", "@Override\n String get();", "public void get() {\n }"...
[ "0.68192494", "0.6817775", "0.67835", "0.6585124", "0.64563286", "0.638617", "0.6336849", "0.63291496", "0.624491", "0.6215031", "0.6211013", "0.6199911", "0.6190106", "0.6177176", "0.6177176", "0.61404675", "0.61377734", "0.6132862", "0.61150074", "0.61045533", "0.6093138", ...
0.0
-1
This method should be called after OK button pressed.
public int getSelectedIndex() { return selectedIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void okPressed() {\n\t\tconfig.setExportThreadCount(txtThreadCount.getSelection());\n\t\tconfig.setImportThreadCount(txtMaxImportThreadCountPerTable.getSelection());\n\t\tconfig.setCommitCount(txtCommitCount.getSelection());\n\t\tif (txtPageCount != null) {\n\t\t\tconfig.setPageFetchCount(txtPageCount.ge...
[ "0.77827936", "0.7460697", "0.7447988", "0.73515844", "0.7282368", "0.726897", "0.72673315", "0.7207393", "0.71905965", "0.71485776", "0.714034", "0.7135202", "0.71340066", "0.711057", "0.71059436", "0.7079975", "0.7060162", "0.7057529", "0.70233774", "0.699483", "0.6973053",...
0.0
-1
your code goes here
public static void main (String[] args) throws java.lang.Exception { Scanner s = new Scanner(System.in); long t = s.nextLong(); while(t-->0){ long n = s.nextLong(); long a = s.nextLong(); long b = s.nextLong(); System.out.println( (2*(180+n)) - (a+b)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void themesa()\n {\n \n \n \n \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Overr...
[ "0.57286084", "0.5721873", "0.5685595", "0.5611692", "0.5611692", "0.5596448", "0.5573983", "0.555654", "0.55509007", "0.5543824", "0.551758", "0.55170584", "0.54959154", "0.5489394", "0.54819673", "0.54768246", "0.5474171", "0.5460018", "0.5460018", "0.5429363", "0.5428646",...
0.0
-1
Create a new LocalLockMergingSegmentReadLocker for specified cache and index name.
public LocalLockMergingSegmentReadLocker(Cache<?, ?> cache, String indexName) { this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) cache, cache, cache, indexName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalLockMergingSegmentReadLocker(Cache<?, ?> locksCache, Cache<?, ?> chunksCache, Cache<?, ?> metadataCache, String indexName) {\n this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) locksCache, chunksCache, metadataCache, indexName);\n }", "Lock getLock(String lockName);", ...
[ "0.7690231", "0.5587361", "0.5227554", "0.50263023", "0.49995685", "0.49094", "0.49066085", "0.48678216", "0.48462892", "0.47891486", "0.47794625", "0.47125503", "0.47033414", "0.46937096", "0.46784788", "0.46405992", "0.4621899", "0.4613479", "0.45738262", "0.45593455", "0.4...
0.7855449
0
Create a new LocalLockMergingSegmentReadLocker with special purpose caches
public LocalLockMergingSegmentReadLocker(Cache<?, ?> locksCache, Cache<?, ?> chunksCache, Cache<?, ?> metadataCache, String indexName) { this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) locksCache, chunksCache, metadataCache, indexName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LocalLockMergingSegmentReadLocker(Cache<?, ?> cache, String indexName) {\n this.delegate = new DistributedSegmentReadLocker((Cache<Object, Integer>) cache, cache, cache, indexName);\n }", "ManagementLockObject create();", "ManagementLockObject create(Context context);", "static Lock createLock(...
[ "0.7340463", "0.5823269", "0.57108206", "0.5625118", "0.5382804", "0.53817207", "0.5300034", "0.528965", "0.5186171", "0.5176732", "0.5154018", "0.50743043", "0.5070028", "0.50403374", "0.50248396", "0.502263", "0.4963499", "0.49608803", "0.4953857", "0.4932528", "0.4905083",...
0.7375758
0
MapDecoration are used to enrich a Map2D component. Thoses are added over the map or there can be one under the map. Decoration exemples : minimap, scalebar, navigation buttons, image in background ...
public interface FXMapDecoration { /** * called by the jdefaultmap2d when the decoration should * reset completely */ public void refresh(); /** * must be called when the decoration is not used anymore. * to avoid memoryleack if it uses thread or other resources */ public void dispose(); /** * set the related map2d * @param map the map2D */ public void setMap2D(FXMap map); /** * * @return Map2D, the related map2d of this decoration */ public FXMap getMap2D(); /** * * @return JComponent, the component which will be added at the map2D */ public Node getComponent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface MCDecoration {\n}", "public interface MapRenderer {\n\n AnnotationView viewForAnnotation(Annotation annotation);\n\n void annotationViewWillBeRemoved(AnnotationView annotationView);\n void annotationViewDidRemove(AnnotationView annotationView);\n\n void annotationViewWillBeAdded(Anno...
[ "0.5573454", "0.54387146", "0.54219013", "0.5372845", "0.52255654", "0.5167854", "0.50836325", "0.5026076", "0.5013403", "0.49930418", "0.49793684", "0.4975715", "0.4949715", "0.49370494", "0.49337852", "0.49277064", "0.4919854", "0.4882362", "0.48596793", "0.48334616", "0.48...
0.76754016
0
called by the jdefaultmap2d when the decoration should reset completely
public void refresh();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetHitMarker() {}", "public native void setLegendOff();", "protected void refreshDecorations() {\n\t\tif (decoration != null) {\n\t\t\tgetFigure().remove(decoration);\n\t\t\tdecoration = null;\n\t\t}\n\t\tif (decorationImage != null) {\n\t\t\tdecorationImage.dispose();\n\t\t\tdecorationImage = nu...
[ "0.6914813", "0.6422822", "0.6229016", "0.61490875", "0.6088668", "0.6048594", "0.6015831", "0.59998083", "0.5989808", "0.59876806", "0.5985815", "0.5978339", "0.5960548", "0.595258", "0.59377754", "0.59133285", "0.5895413", "0.58893096", "0.5878277", "0.58748114", "0.5870853...
0.0
-1
must be called when the decoration is not used anymore. to avoid memoryleack if it uses thread or other resources
public void dispose();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Unescaper() {\n\n\t}", "public void setDecoratedDefinition(BeanDefinitionHolder decoratedDefinition)\n/* */ {\n/* 214 */ this.decoratedDefinition = decoratedDefinition;\n/* */ }", "protected void refreshDecorations() {\n\t\tif (decoration != null) {\n\t\t\tgetFigure().remove(decoration)...
[ "0.56528413", "0.55920434", "0.5563492", "0.542591", "0.5423807", "0.5423807", "0.53786725", "0.53500056", "0.5343821", "0.53111774", "0.5302982", "0.527867", "0.5276694", "0.5248251", "0.524787", "0.5243305", "0.52250254", "0.5207062", "0.5203739", "0.5190099", "0.518989", ...
0.0
-1
set the related map2d
public void setMap2D(FXMap map);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOnTheMapXY(IEntity entity, int x, int y) {\r\n\t\tthis.map[x][y] = entity;\r\n\t}", "public void setLocation(Point2D p);", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "void setMapChanged();", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle...
[ "0.6337889", "0.6292012", "0.61634535", "0.609544", "0.6080596", "0.5948286", "0.5943313", "0.59265804", "0.59260523", "0.59134626", "0.5903648", "0.5887812", "0.58816344", "0.5869408", "0.5862209", "0.5852701", "0.5845975", "0.58288914", "0.58178544", "0.5798062", "0.5772760...
0.774751
0
TODO Autogenerated method stub public : it can be called from anywhere. static : doesn't belong to a specific object. void : returns to no value. main : is special because it will start the program.
public static void main(String[] args)throws IOException { Method m=new Method();//taking an object m.accept(); //here it is accepting the object class }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main()\n\t{\n\t}", "public static void main(){\n\t}", "public static void main() {\n }", "public static void main(String[] args) {\n\t\tnon_static(); // static contain only static methods, variables\r\n//\t\tnon_static2();\r...
[ "0.8135525", "0.812782", "0.807804", "0.80477375", "0.75378466", "0.7460706", "0.71840715", "0.71752465", "0.71578383", "0.7156084", "0.7136113", "0.7107486", "0.7107486", "0.7094863", "0.70865405", "0.708408", "0.7081566", "0.7076846", "0.7066384", "0.7061089", "0.70605445",...
0.0
-1
Created by Harlan1994 on 2017/11/21.
public interface IPostService { Post getPost(Long id); Page<Post> getPosts(Integer page, Integer size); Page<Post> getPagedPostsByTag(Integer page, Integer size, String tag); Page<Post> getPostsByKeywords(Integer page, Integer size,String[] keywords); void updatePost(Post post); void deletePostById(Long id); List<Post> getAllPosts(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tp...
[ "0.5946154", "0.58451116", "0.5833454", "0.5717281", "0.570625", "0.57008874", "0.56966656", "0.56966656", "0.56938934", "0.5686754", "0.5637822", "0.5601666", "0.55902284", "0.5558308", "0.5553098", "0.55408186", "0.55347556", "0.5534528", "0.5529497", "0.5524365", "0.552058...
0.0
-1
Returns the position of the entity.
@Basic @Raw public double[] getPosition(){ double[] result = {this.position[0], this.position[1]}; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.Integer getPosition() {\n return position;\n }", "public java.lang.Integer getPosition() {\n return position;\n }", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public final int getPosition() {\n return position;\n }", "public long position() {\n ...
[ "0.79132545", "0.78884256", "0.7858709", "0.7827041", "0.7826209", "0.7823225", "0.78141797", "0.77841556", "0.7779429", "0.77629685", "0.77629685", "0.77629685", "0.7749676", "0.77446777", "0.77377295", "0.7711891", "0.7696557", "0.76495004", "0.7589346", "0.7585941", "0.758...
0.0
-1
Moves the entity to a new position during a time span of dt.
public void move(double dt) throws IllegalArgumentException{ if (dt < 0.0) throw new IllegalArgumentException("Invalid time"); else{ this.setPosition(this.getPosition()[0] + (this.getVelocity()[0] * dt), this.getPosition()[1] + (this.getVelocity()[1] * dt)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void timePassed(double dt) {\r\n this.moveOneStep(dt);\r\n }", "@Override\n\tpublic void live(long _dt) {\n\t\tList<IPerceivable> surroundingEntities = getPerceptions();\n\n\t\tVector2f newDirection = decide(surroundingEntities);\n\n\t\tmove(newDirection);\n\n\t}", "public void timePassed(doub...
[ "0.6066657", "0.6033002", "0.6030564", "0.5999055", "0.59649575", "0.59596914", "0.5758265", "0.56555337", "0.5562699", "0.5493759", "0.5477262", "0.545713", "0.5422817", "0.5402715", "0.5371666", "0.5368065", "0.5361104", "0.5323922", "0.53173345", "0.5309342", "0.5300989", ...
0.647944
0
Set the position of an entity to the given values.
protected void setPosition(double xPosition, double yPosition) throws IllegalArgumentException { if ( (!isValidPosition(xPosition)) || (!isValidPosition(yPosition))) throw new IllegalArgumentException("Invalid position"); else { this.position[0] = xPosition; this.position[1] = yPosition; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void PositionSet(int position);", "void setPosition(Position position);", "void setPosition(Position position);", "public void setPosition(Position pos);", "public void setPosition(int position);", "public void set(int pos);", "void setPosition(double xPos, double yPos);", "public void setPos(...
[ "0.7196182", "0.7120364", "0.7120364", "0.7119488", "0.70872605", "0.7087137", "0.7078168", "0.7008537", "0.7008537", "0.6988143", "0.6979048", "0.6964363", "0.69625795", "0.689086", "0.6825003", "0.6780963", "0.67142075", "0.66134816", "0.6596279", "0.6595326", "0.65688795",...
0.606217
56
Check whether the given position is a valid position for a entity.
@Model private boolean isValidPosition(double position){ if (this.superWorld == null) return (!Double.isNaN(position)); else return Helper.isValidDouble(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isValidPosition(Point pos){\r\n return (0 <= pos.getFirst() && pos.getFirst() < 8 && \r\n 0 <= pos.getSecond() && pos.getSecond() < 8);\r\n }", "public boolean isValidPosition(Position pos){\n\t\t// check whether the specified position is a valid position for the board\n\...
[ "0.71240187", "0.70173514", "0.6788299", "0.6718065", "0.669656", "0.6629966", "0.6316299", "0.6279108", "0.62422144", "0.61732423", "0.61732423", "0.61732423", "0.61732423", "0.61604196", "0.61518216", "0.6133922", "0.6090821", "0.60594577", "0.6022876", "0.6022876", "0.6016...
0.6906939
2
Returns the velocity of the entity.
@Basic @Raw public double[] getVelocity(){ return this.velocity.getVelocity(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Velocity getVelocity() {\r\n return this.v.getVelocity();\r\n }", "public double getVelocity() {\n return mV;\n }", "public Velocity getVelocity() {\n return this.velocity;\n }", "public Velocity getVelocity() {\n return this.v;\n\n }", "public Velocity getVel...
[ "0.82062876", "0.8044153", "0.80403703", "0.8010352", "0.79634225", "0.7924323", "0.78821194", "0.78761363", "0.78628016", "0.7853122", "0.782253", "0.77726257", "0.77310145", "0.7666094", "0.76110446", "0.7602703", "0.75664204", "0.74911237", "0.7464702", "0.7292431", "0.726...
0.7238617
21
Set the velocity of the entity to the given values.
@Raw protected void setVelocity(double xVelocity, double yVelocity){ if ( !isValidVelocity(xVelocity, yVelocity)){ this.velocity.setVelocity(0.0, 0.0); } else { this.velocity.setVelocity(xVelocity, yVelocity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setValue(Point3D value) {\n this.velocity = value;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity = v;\n }", "public void setVelocity(Velocity v) {\n this.velocity =...
[ "0.710351", "0.70984316", "0.70984316", "0.70984316", "0.70748794", "0.7024962", "0.70126605", "0.69905305", "0.69804394", "0.696979", "0.6968508", "0.6953797", "0.68611574", "0.67811424", "0.67689097", "0.66583306", "0.66561127", "0.66210115", "0.66210115", "0.66205275", "0....
0.68764967
12
Check whether the given velocities are a valid velocities for a entity.
@Model private boolean isValidVelocity(double velocityX, double velocityY){ return (Math.hypot(velocityX, velocityY) <= maxVelocity && Velocity.isValidVelocity(velocityX, velocityY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isVelocityValid() {\n return velocityValid;\n }", "public static boolean containsVelocityCoord(int[] coords){\r\n for(int i=0; i < coords.length; i++){\r\n if(coords[i] == COORD_V0 || coords[i] == COORD_V1 || coords[i] == COORD_V2)\r\n return true;\r\n }\r\n ...
[ "0.6149655", "0.58437115", "0.5670564", "0.5538089", "0.5451149", "0.5377196", "0.5123038", "0.5120212", "0.5079027", "0.5065448", "0.49767208", "0.4968295", "0.49564472", "0.49489492", "0.49390057", "0.492618", "0.4890504", "0.48774245", "0.48066264", "0.4802815", "0.4795650...
0.63415176
0
Returns the maximum velocity of the entity.
@Basic @Raw @Immutable public double getMaxVelocity(){ return this.maxVelocity = SPEED_OF_LIGHT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Basic\n\t@Raw\n\t@Immutable\n\tpublic static double getVelocityUpperBound() {\n\t\treturn VELOCITYUPPERBOUND;\n\t}", "@Basic\n\tpublic double getVxmax() {\n\t\treturn this.vxmax;\n\t}", "private double getVelocity() {\n \tif (currentState == DriveState.accelerating) {\n \t\treturn acceleration * timer.g...
[ "0.7145425", "0.7119568", "0.70385295", "0.70384556", "0.6882606", "0.6842881", "0.67973566", "0.6766785", "0.66919875", "0.66754645", "0.6672024", "0.66366464", "0.66136825", "0.6586467", "0.6568161", "0.65602595", "0.6558178", "0.6544791", "0.65384716", "0.65170485", "0.651...
0.78084594
0
A method which sets the value of the maximum (total) velocity of an entity.
@Raw private void setMaxVelocity(double max){ if (!isValidMaxVelocity(max)) this.maxVelocity = SPEED_OF_LIGHT; else this.maxVelocity = max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Basic @Raw @Immutable\n public double getMaxVelocity(){\n return this.maxVelocity = SPEED_OF_LIGHT;\n }", "@JSProperty(\"max\")\n void setMax(double value);", "public void setMaxTranslationVel(float maxVel, int xform) {\n\t\tm_xforms[xform].m_maxTranslationVel = maxVel;\n\t}", "protected void ...
[ "0.70102584", "0.66170174", "0.652067", "0.650302", "0.64209014", "0.63919175", "0.6362484", "0.6343297", "0.63248533", "0.63068974", "0.6280459", "0.62531", "0.6211856", "0.619025", "0.61717486", "0.6147787", "0.61211264", "0.61086154", "0.6096008", "0.6055845", "0.6036389",...
0.74434036
0
A method which checks whether or a not a given velocity is a valid maxVelocity.
@Model private boolean isValidMaxVelocity(double max){ return !(max > SPEED_OF_LIGHT || !Helper.isValidDouble(max) || max < 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Model\n private boolean isValidVelocity(double velocityX, double velocityY){\n return (Math.hypot(velocityX, velocityY) <= maxVelocity && Velocity.isValidVelocity(velocityX, velocityY));\n }", "@Raw\n private void setMaxVelocity(double max){\n \tif (!isValidMaxVelocity(max)) this.maxVelocity ...
[ "0.75979644", "0.6654128", "0.6620114", "0.65415055", "0.64080346", "0.62823534", "0.6128476", "0.59289056", "0.58987933", "0.58354795", "0.58212644", "0.580698", "0.5764377", "0.56933653", "0.568432", "0.5650626", "0.562041", "0.5535566", "0.54972464", "0.54274654", "0.54224...
0.81429744
0
Returns the radius of entity.
@Basic @Raw @Immutable public double getRadius(){ return this.startRadius; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRadius() { return radius.get(); }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public double getRadius() {\n return radius;\n }", "public do...
[ "0.7854086", "0.7804476", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.77997005", "0.7765497", "0.77506274", "0.774746", "0.7740513", "0.77140385", "0.77116823", "0.7692556", "0.7688755", "0.7...
0.74937826
43
Return the world of the entity.
@Basic @Raw public World getSuperWorld() { return this.superWorld; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return location.getWorld();\n }", "public GameData getWorld() {\r\n return world;\r\n }", "public World getWorld() {\n\t\treturn world;\n\t}", "p...
[ "0.830314", "0.830314", "0.8262908", "0.8251936", "0.82396203", "0.82269084", "0.81514573", "0.81514573", "0.81009847", "0.804801", "0.80210865", "0.7975219", "0.7972123", "0.7939353", "0.78721327", "0.7844861", "0.7822843", "0.78029716", "0.7713928", "0.7708079", "0.76993656...
0.65741986
50
Set the superWorld of an entity to the given world.
@Raw protected void setSuperWorld(World world) throws IllegalArgumentException{ if(world == null || isValidSuperWorld(world)) this.superWorld = world; else throw new IllegalArgumentException("Isn't a valid world @setSuperWorld()"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWorld(GameData world) {\r\n this.world = world;\r\n }", "public void setWorld(World world) {\n this.world = world;\n }", "@Model\n\tprotected void setWorld(World world) {\n\t\tthis.world = world;\n\t}", "public void setWorld(World world) throws IllegalStateException {\n\t\tif (!c...
[ "0.71022457", "0.69955146", "0.6941929", "0.69377", "0.62751853", "0.6251795", "0.6242015", "0.6229278", "0.6070291", "0.5930362", "0.5726795", "0.5665045", "0.56253004", "0.56020564", "0.55864704", "0.5571826", "0.54681903", "0.5461153", "0.54587674", "0.5419764", "0.5325795...
0.811025
0