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
Shows model stats (asynchronously) Shows the model score and last training time
public okhttp3.Call showModelStatsAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = showModelStatsValidateBeforeCall(workspaceId, modelId, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user ...
[ "0.6220485", "0.6031252", "0.5950719", "0.59014153", "0.5887553", "0.5853253", "0.5831252", "0.57610697", "0.5735367", "0.5667291", "0.5658774", "0.56484634", "0.5622159", "0.5575329", "0.5487308", "0.5472844", "0.5464923", "0.5440957", "0.543559", "0.54351586", "0.5402263", ...
0.0
-1
Build call for trainModel
public okhttp3.Call trainModelCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/workspaces/{workspaceId}/models/{modelId}/train" .replaceAll("\\{" + "workspaceId" + "\\}", localVarApiClient.escapeString(workspaceId.toString())) .replaceAll("\\{" + "modelId" + "\\}", localVarApiClient.escapeString(modelId.toString())); List<Pair> localVarQueryParams = new ArrayList<Pair>(); List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>(); Map<String, String> localVarHeaderParams = new HashMap<String, String>(); Map<String, String> localVarCookieParams = new HashMap<String, String>(); Map<String, Object> localVarFormParams = new HashMap<String, Object>(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "apiAuth" }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setTrainParams(ClassificationMethod method,URL model,Map<String,Object> args) throws ClassificationException;", "public void train(){\n recoApp.training(idsToTest);\n }", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole...
[ "0.6555375", "0.6200695", "0.60877424", "0.6027804", "0.5998036", "0.5978382", "0.57799065", "0.5701747", "0.5700656", "0.568677", "0.5653624", "0.5617061", "0.557583", "0.55515647", "0.55216706", "0.55213237", "0.551603", "0.55060166", "0.55034477", "0.54876274", "0.5487121"...
0.0
-1
verify the required parameter 'workspaceId' is set
@SuppressWarnings("rawtypes") private okhttp3.Call trainModelValidateBeforeCall(String workspaceId, String modelId, final ApiCallback _callback) throws ApiException { if (workspaceId == null) { throw new ApiException("Missing the required parameter 'workspaceId' when calling trainModel(Async)"); } // verify the required parameter 'modelId' is set if (modelId == null) { throw new ApiException("Missing the required parameter 'modelId' when calling trainModel(Async)"); } okhttp3.Call localVarCall = trainModelCall(workspaceId, modelId, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void workspaceTest() throws ApiException {\n String workspaceId = null;\n Workspace response = api.workspace(workspaceId);\n\n // TODO: test validations\n }", "public void setWorkspaceId(String workspaceId) {\n this.workspaceId = workspaceId;\n }", "@Test\r\n...
[ "0.65769523", "0.63816416", "0.6199737", "0.59761405", "0.59368694", "0.5839368", "0.5567419", "0.54488504", "0.527746", "0.52685773", "0.5195171", "0.5161648", "0.51206905", "0.5089432", "0.50643146", "0.5059629", "0.5057854", "0.50335026", "0.4998055", "0.49727345", "0.4972...
0.0
-1
Submit model for training Submit the model for training using the provided training data
public ModelApiResponse trainModel(String workspaceId, String modelId) throws ApiException { ApiResponse<ModelApiResponse> localVarResp = trainModelWithHttpInfo(workspaceId, modelId); return localVarResp.getData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateForm...
[ "0.61619854", "0.61236423", "0.6031213", "0.59576386", "0.58753496", "0.5807211", "0.5747766", "0.5715702", "0.5671554", "0.56608176", "0.5654696", "0.55839515", "0.5569578", "0.55336136", "0.5498805", "0.5496664", "0.5444802", "0.54423314", "0.5440789", "0.54092276", "0.5405...
0.0
-1
Submit model for training Submit the model for training using the provided training data
public ApiResponse<ModelApiResponse> trainModelWithHttpInfo(String workspaceId, String modelId) throws ApiException { okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, null); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "public void train(){\n recoApp.training(idsToTest);\n }", "private Response performDT_training(String model_name, String data) {\n \tSimpleDateForm...
[ "0.61615855", "0.6125686", "0.6031967", "0.59588534", "0.58757704", "0.5809467", "0.57490736", "0.57155085", "0.56735057", "0.5658799", "0.56569594", "0.5587014", "0.5570596", "0.5534008", "0.54988855", "0.54975724", "0.5443308", "0.54428124", "0.544174", "0.54089606", "0.540...
0.0
-1
Submit model for training (asynchronously) Submit the model for training using the provided training data
public okhttp3.Call trainModelAsync(String workspaceId, String modelId, final ApiCallback<ModelApiResponse> _callback) throws ApiException { okhttp3.Call localVarCall = trainModelValidateBeforeCall(workspaceId, modelId, _callback); Type localVarReturnType = new TypeToken<ModelApiResponse>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}", "public void run() {\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n ...
[ "0.6137546", "0.57201684", "0.56931275", "0.5637776", "0.55242324", "0.54908836", "0.54077226", "0.53809667", "0.535324", "0.5351579", "0.53506535", "0.5299705", "0.5279328", "0.5263023", "0.525408", "0.5244407", "0.51954424", "0.51912576", "0.5180646", "0.5173923", "0.516396...
0.0
-1
Time Complexity: O(n) Space Complexity: O(1)
public int maxProfit(int[] prices) { if (prices == null || prices.length == 0) { return 0; } int res = 0, buy = Integer.MAX_VALUE; for (int price : prices) { buy = Math.min(buy, price); res = Math.max(res, price - buy); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.7179713", "0.70217144", "0.66647255", "0.63780856", "0.63235724", "0.6167886", "0.6111599", "0.60377115", "0.5962103", "0.5946287", "0.5799606", "0.5778182", "0.5755147", "0.5726366", "0.56830114", "0.5662858", "0.56538105", "0.55846494", "0.55842006", "0.55830675", "0.558...
0.0
-1
Creates a new ServerProperties instance, initialized from a default properties file. Prints an error to the console if problems occur on loading.
public DataInputClientProperties() throws IOException { this(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properti...
[ "0.78458035", "0.6710335", "0.66606206", "0.6607473", "0.6512257", "0.6395176", "0.63172454", "0.6315147", "0.6244328", "0.62427783", "0.61778325", "0.61511844", "0.6122639", "0.60819995", "0.6070628", "0.60671824", "0.6066898", "0.60551107", "0.60471404", "0.60180336", "0.60...
0.0
-1
Creates a new ServerProperties instance using values from the provided properties file. Prints an error to the console if problems occur on loading.
public DataInputClientProperties(String propertiesFilename) throws IOException { if (propertiesFilename == null) { initializeProperties(); } else { initializeProperties(propertiesFilename); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServerProperties() {\n try {\n initializeProperties();\n }\n catch (Exception e) {\n System.out.println(\"Error initializing server properties.\");\n }\n }", "public Server(String propertiesFile) throws IOException\n {\n Properties properties = new Properties();\n ...
[ "0.72961396", "0.7147821", "0.69970226", "0.6635874", "0.655911", "0.6475181", "0.6356653", "0.6344048", "0.63307184", "0.63183314", "0.6265846", "0.62601113", "0.6250333", "0.6202124", "0.6148249", "0.613988", "0.61344206", "0.61116755", "0.60614675", "0.60420257", "0.601745...
0.5948466
26
Reads in the properties in ~/.wattdepot/client/datainput.properties, and provides default values for all properties not mentioned in this file.
private void initializeProperties() throws IOException { String userHome = org.wattdepot.util.logger.WattDepotUserHome.getHomeString(); String wattDepotHome = userHome + "/.wattdepot"; String clientHome = wattDepotHome + "/client"; String propFile = clientHome + "/datainput.properties"; initializeProperties(propFile); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataInputClientProperties() throws IOException {\n this(null);\n }", "private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"...
[ "0.6648778", "0.62728775", "0.62035036", "0.60601765", "0.58829826", "0.57344496", "0.5720057", "0.5679119", "0.56457144", "0.56318384", "0.5491274", "0.5482069", "0.5469866", "0.54547524", "0.5444127", "0.53912157", "0.5386535", "0.53601927", "0.5359342", "0.5323346", "0.531...
0.69278693
0
Reads in the properties the provided file, and provides default values for some properties not mentioned in this file.
private void initializeProperties(String propertiesFilename) throws IOException { this.properties = new Properties(); // Set defaults for 'standard' operation. // properties.setProperty(FILENAME_KEY, clientHome + "/bmo-data.tsv"); properties.setProperty(BMO_URI_KEY, "http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt"); FileInputStream stream = null; try { stream = new FileInputStream(propertiesFilename); properties.load(stream); System.out.println("Loading data input client properties from: " + propertiesFilename); } catch (IOException e) { System.out.println(propertiesFilename + " not found. Using default data input client properties."); throw e; } finally { if (stream != null) { stream.close(); } } trimProperties(properties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources....
[ "0.6939147", "0.68105227", "0.6757202", "0.66560906", "0.662677", "0.648806", "0.64799833", "0.64654815", "0.6450124", "0.64225197", "0.64136016", "0.63676167", "0.6341487", "0.6249271", "0.62272507", "0.6183831", "0.61740327", "0.6165256", "0.6157992", "0.61552024", "0.61514...
0.6517247
5
Returns the value of the Server Property specified by the key.
public String get(String key) { return this.properties.getProperty(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }", "private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}", "public String get(String key) {\n return this.properties.getProperty(key);\n }", "public String g...
[ "0.7660628", "0.75640863", "0.75271463", "0.7453343", "0.7444549", "0.74405986", "0.7294969", "0.72273856", "0.7214122", "0.72023135", "0.7199795", "0.71994513", "0.7186468", "0.7167111", "0.7167111", "0.7167111", "0.70683414", "0.69855034", "0.69638145", "0.6954487", "0.6944...
0.74747115
3
Ensures that the there is no leading or trailing whitespace in the property values. The fact that we need to do this indicates a bug in Java's Properties implementation to me.
private void trimProperties(Properties properties) { // Have to do this iteration in a Java 5 compatible manner. no stringPropertyNames(). for (Map.Entry<Object, Object> entry : properties.entrySet()) { String propName = (String) entry.getKey(); properties.setProperty(propName, properties.getProperty(propName).trim()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean skipBlankValues() {\n return true;\n }", "public static boolean avoidSpecialCharsInFieldNames() {\n\t\treturn PROP_SEP_LEN > 1;\n\t}", "Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n }", "@Test\n\tpublic void testTrimmingWhiteSpaces() {\n\t\t// Setu...
[ "0.627223", "0.62641364", "0.61409277", "0.5781479", "0.5730764", "0.5656096", "0.557327", "0.5545125", "0.5532273", "0.545181", "0.54374117", "0.5406904", "0.53907967", "0.5375453", "0.5368385", "0.5332189", "0.5310151", "0.52968496", "0.52655745", "0.5247179", "0.52378845",...
0.68215716
0
equals method must be changed !!
public Point(int x,int y){ this.pos = x; this.id = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "private Equals() {}", "@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "@Override\n public final bo...
[ "0.771175", "0.76986635", "0.7675851", "0.7634523", "0.76177996", "0.7574186", "0.75728387", "0.75706625", "0.7538115", "0.75287026", "0.75260955", "0.75053227", "0.7502172", "0.7499945", "0.7492566", "0.7489262", "0.74649733", "0.7450221", "0.7432783", "0.7432783", "0.743278...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904536", "0.78052336", "0.7766536", "0.7727363", "0.76318616", "0.7621916", "0.7584545", "0.7530609", "0.74878335", "0.74571276", "0.74571276", "0.7438656", "0.7422694", "0.7403604", "0.73918706", "0.7387049", "0.7379379", "0.73706305", "0.7362634", "0.7356091", "0.734574...
0.0
-1
After properties set this method is invoked to set the date format that will be used for all JSON dates.
@PostConstruct public void afterPropertiesSet() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat(getDateFormat()); SerializationConfig serialConfig = getSerializationConfig().withDateFormat(sdf); setSerializationConfig(serialConfig); DeserializationConfig deserializationConfig = getDeserializationConfig().withDateFormat(sdf); setDeserializationConfig(deserializationConfig); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDateFormats(String dateFormats)\n {\n this.dateFormats = dateFormats;\n }", "public void setDateFormat(String format) {\n dateFormat = format;\n constructVssDateTimeFormat();\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "@Override\n public void postConfi...
[ "0.6672296", "0.66612935", "0.66135836", "0.65967834", "0.65361327", "0.64720213", "0.64036167", "0.634351", "0.63425523", "0.6339893", "0.6325255", "0.6319444", "0.63147026", "0.6227528", "0.62012386", "0.6196015", "0.61865175", "0.61476994", "0.61388254", "0.61361957", "0.6...
0.57800615
52
Creates a new async stub that supports all call types for the service
public static RegistrationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceStub> factory = new io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceStub>() { @java.lang.Override public RegistrationServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RegistrationServiceStub(channel, callOptions); } }; return RegistrationServiceStub.newStub(factory, channel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stub createStub();", "public interface GenerateResourceServiceAsync {\n /**\n * {@link GenerateResourceServiceImpl#generateTSDPattern(long,boolean)}\n */\n void generateTSDPattern(long settingFileId, boolean isCreateFile, AsyncCallback<VMFile> callback) throws IllegalArgumentException;\n\n /**\n...
[ "0.6892434", "0.6467239", "0.6211053", "0.60550624", "0.58448124", "0.5826248", "0.58191776", "0.5696866", "0.5648306", "0.55342954", "0.55286705", "0.5512426", "0.5510817", "0.5508667", "0.54999334", "0.54982334", "0.546741", "0.5460062", "0.5459664", "0.5436188", "0.5432517...
0.0
-1
Creates a new blockingstyle stub that supports unary and streaming output calls on the service
public static RegistrationServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceBlockingStub> factory = new io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceBlockingStub>() { @java.lang.Override public RegistrationServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RegistrationServiceBlockingStub(channel, callOptions); } }; return RegistrationServiceBlockingStub.newStub(factory, channel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stub createStub();", "public interface Stream<T> extends Lifecycle {\n\n PendingRequest<T> next(int requestId, T request);\n\n int getPendingRequestCount();\n\n ClientResponseObserver<T, RpcResult> newObserver();\n\n\n final class PendingRequest<T> {\n\n private final T request;\n\n pri...
[ "0.64577496", "0.57187194", "0.5505287", "0.5441702", "0.54370403", "0.5416198", "0.5416198", "0.5416198", "0.5416198", "0.5416198", "0.5415596", "0.5408881", "0.5389577", "0.5361891", "0.5344934", "0.53106624", "0.53044236", "0.53044236", "0.5292175", "0.5265943", "0.5260832...
0.0
-1
Creates a new ListenableFuturestyle stub that supports unary calls on the service
public static RegistrationServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceFutureStub> factory = new io.grpc.stub.AbstractStub.StubFactory<RegistrationServiceFutureStub>() { @java.lang.Override public RegistrationServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RegistrationServiceFutureStub(channel, callOptions); } }; return RegistrationServiceFutureStub.newStub(factory, channel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ExtractionServiceFutureStub newFutureStub(\n io.grpc.Channel channel) {\n io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub> factory =\n new io.grpc.stub.AbstractStub.StubFactory<ExtractionServiceFutureStub>() {\n @Override\n public ExtractionServiceFutureSt...
[ "0.5984027", "0.59060603", "0.5868858", "0.5864889", "0.58642966", "0.5838327", "0.57681686", "0.57584965", "0.5710784", "0.5689159", "0.56864905", "0.5673113", "0.5664317", "0.56561303", "0.56532115", "0.5651111", "0.56223786", "0.5620926", "0.5574521", "0.5547793", "0.55302...
0.55064714
22
Service Directory API for registering services. It defines the following resource model: The API has a collection of [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] resources, named `projects/&42;&47;locations/&42;&47;namespaces/&42;`. Each Namespace has a collection of [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named `projects/&42;&47;locations/&42;&47;namespaces/&42;&47;services/&42;`. Each Service has a collection of [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] resources, named `projects/&42;&47;locations/&42;&47;namespaces/&42;&47;services/&42;&47;endpoints/&42;`.
public interface AsyncService { /** * * * <pre> * Creates a namespace, and returns the new namespace. * </pre> */ default void createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateNamespaceMethod(), responseObserver); } /** * * * <pre> * Lists all namespaces. * </pre> */ default void listNamespaces( com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request, io.grpc.stub.StreamObserver< com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListNamespacesMethod(), responseObserver); } /** * * * <pre> * Gets a namespace. * </pre> */ default void getNamespace( com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetNamespaceMethod(), responseObserver); } /** * * * <pre> * Updates a namespace. * </pre> */ default void updateNamespace( com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateNamespaceMethod(), responseObserver); } /** * * * <pre> * Deletes a namespace. This also deletes all services and endpoints in * the namespace. * </pre> */ default void deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteNamespaceMethod(), responseObserver); } /** * * * <pre> * Creates a service, and returns the new service. * </pre> */ default void createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateServiceMethod(), responseObserver); } /** * * * <pre> * Lists all services belonging to a namespace. * </pre> */ default void listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListServicesMethod(), responseObserver); } /** * * * <pre> * Gets a service. * </pre> */ default void getService( com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); } /** * * * <pre> * Updates a service. * </pre> */ default void updateService( com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateServiceMethod(), responseObserver); } /** * * * <pre> * Deletes a service. This also deletes all endpoints associated with * the service. * </pre> */ default void deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteServiceMethod(), responseObserver); } /** * * * <pre> * Creates an endpoint, and returns the new endpoint. * </pre> */ default void createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateEndpointMethod(), responseObserver); } /** * * * <pre> * Lists all endpoints. * </pre> */ default void listEndpoints( com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListEndpointsMethod(), responseObserver); } /** * * * <pre> * Gets an endpoint. * </pre> */ default void getEndpoint( com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetEndpointMethod(), responseObserver); } /** * * * <pre> * Updates an endpoint. * </pre> */ default void updateEndpoint( com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateEndpointMethod(), responseObserver); } /** * * * <pre> * Deletes an endpoint. * </pre> */ default void deleteEndpoint( com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteEndpointMethod(), responseObserver); } /** * * * <pre> * Gets the IAM Policy for a resource * </pre> */ default void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetIamPolicyMethod(), responseObserver); } /** * * * <pre> * Sets the IAM Policy for a resource * </pre> */ default void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getSetIamPolicyMethod(), responseObserver); } /** * * * <pre> * Tests IAM permissions for a resource (namespace, service or * service workload only). * </pre> */ default void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTestIamPermissionsMethod(), responseObserver); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Service> createServices();", "private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);...
[ "0.5789624", "0.5426219", "0.538888", "0.538888", "0.5362054", "0.5274333", "0.5262869", "0.5207543", "0.5207543", "0.5199197", "0.51985884", "0.51985884", "0.5191548", "0.51720566", "0.5156756", "0.51494163", "0.51437455", "0.5125221", "0.5125221", "0.51136655", "0.50914496"...
0.53805166
4
Creates a namespace, and returns the new namespace.
default void createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateNamespaceMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace(\n com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateNamespaceMethod(), getCallOptions(), request);\n }", "pub...
[ "0.7332622", "0.71947646", "0.70776004", "0.66781956", "0.6448588", "0.6280682", "0.6090085", "0.6033544", "0.60171396", "0.5984442", "0.59643936", "0.5929075", "0.5918829", "0.5888365", "0.5888365", "0.5888365", "0.5875762", "0.58650005", "0.58157057", "0.57919675", "0.57515...
0.6226572
6
Deletes a namespace. This also deletes all services and endpoints in the namespace.
default void deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteNamespaceMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.Empty deleteNamespace(\n com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request);\n }", "public com.google.common.util...
[ "0.6920174", "0.68527955", "0.67187583", "0.65800256", "0.5817538", "0.5816485", "0.5548779", "0.55118155", "0.54624957", "0.543168", "0.54101896", "0.53055227", "0.5229528", "0.519043", "0.5179534", "0.5128854", "0.5122423", "0.5082456", "0.50680053", "0.50414175", "0.503171...
0.6169406
4
Creates a service, and returns the new service.
default void createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateServiceMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T createService(Class<T> service) {\n return getInstanceRc().create(service);\n }", "public com.google.cloud.servicedirectory.v1beta1.Service createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) {\n return io.grpc.stub.ClientCalls.blocki...
[ "0.7673732", "0.7462269", "0.73301345", "0.70275474", "0.6919528", "0.6858292", "0.6648843", "0.6587402", "0.65867347", "0.6521695", "0.63915926", "0.63578624", "0.6281042", "0.62622666", "0.6227886", "0.621817", "0.6182051", "0.6159545", "0.6111491", "0.61077315", "0.6100514...
0.6313157
12
Lists all services belonging to a namespace.
default void listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListServicesMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }", "List<Service> services();", "public Map list...
[ "0.64935195", "0.6453933", "0.64341605", "0.635421", "0.6311747", "0.63055414", "0.6249907", "0.6245897", "0.61578006", "0.61178577", "0.6072067", "0.6054534", "0.59871244", "0.5966775", "0.5935423", "0.5935423", "0.58917505", "0.5849832", "0.581025", "0.57962644", "0.5793632...
0.5548502
39
Deletes a service. This also deletes all endpoints associated with the service.
default void deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteServiceMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().error(\" unable to deleteService(). No id selected\");\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" deleteService(\" + id + \")...
[ "0.70450443", "0.67593014", "0.66541475", "0.66451925", "0.65834814", "0.65828335", "0.6460537", "0.64594084", "0.6347396", "0.6284119", "0.62804425", "0.6108679", "0.6106046", "0.60682994", "0.60645527", "0.58558565", "0.5839294", "0.5808563", "0.5804006", "0.5756423", "0.57...
0.62102234
11
Creates an endpoint, and returns the new endpoint.
default void createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateEndpointMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEndpoint(request);\n }", "public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint(\n com.google.cloud.servicedirect...
[ "0.8141873", "0.749923", "0.7409183", "0.7352639", "0.72629625", "0.72454953", "0.70078534", "0.678481", "0.6772285", "0.65618056", "0.6457914", "0.6344549", "0.63041383", "0.6223555", "0.614113", "0.5968795", "0.59528106", "0.5943539", "0.59314483", "0.5924034", "0.58739924"...
0.6664594
9
Gets the IAM Policy for a resource
default void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetIamPolicyMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetIamPolicyMethod(), getCallOptions(), request);\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.iam....
[ "0.65303004", "0.62038964", "0.618383", "0.6136941", "0.60919493", "0.60797405", "0.5858551", "0.5857536", "0.578785", "0.5786022", "0.576682", "0.5748712", "0.5689868", "0.5657301", "0.5620957", "0.5585755", "0.55591875", "0.543312", "0.53979665", "0.5364685", "0.53244025", ...
0.0
-1
Sets the IAM Policy for a resource
default void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getSetIamPolicyMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest request) {\n request = beforeClientExecution(request);\n return executePutResourcePolicy(request);\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3....
[ "0.66972566", "0.6082597", "0.6077283", "0.603994", "0.58559775", "0.5677932", "0.5533153", "0.55294746", "0.54295254", "0.5386457", "0.5322885", "0.5307284", "0.5242436", "0.50387615", "0.5026891", "0.50065285", "0.49567696", "0.49369815", "0.49298045", "0.4895639", "0.48891...
0.54336023
8
Tests IAM permissions for a resource (namespace, service or service workload only).
default void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTestIamPermissionsMethod(), responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasResourceActionAllowPermissions(Resource resource,\n String action) {\n String whereClause = \"p.resource = :resource AND (\"\n + \"(p.action = :action AND p.type = :typeAllow) OR \"\n + \"(p.type = :typeAllowAll))\";\n Map<String, Object> pa...
[ "0.626141", "0.6143579", "0.60582566", "0.60512483", "0.60410976", "0.58795595", "0.58387005", "0.5828776", "0.57359004", "0.5687395", "0.5651673", "0.5646067", "0.5641807", "0.5605156", "0.557404", "0.55634123", "0.5554017", "0.55476123", "0.5529396", "0.5502352", "0.5498456...
0.5704171
9
Creates a namespace, and returns the new namespace.
public void createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Namespace> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace(\n com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateNamespaceMethod(), getCallOptions(), request);\n }", "pub...
[ "0.7332622", "0.71947646", "0.70776004", "0.66781956", "0.6280682", "0.6226572", "0.6090085", "0.6033544", "0.60171396", "0.5984442", "0.59643936", "0.5929075", "0.5918829", "0.5888365", "0.5888365", "0.5888365", "0.5875762", "0.58650005", "0.58157057", "0.57919675", "0.57515...
0.6448588
4
Deletes a namespace. This also deletes all services and endpoints in the namespace.
public void deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.Empty deleteNamespace(\n com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request);\n }", "public com.google.common.util...
[ "0.6920569", "0.6853135", "0.6578522", "0.6171476", "0.58201754", "0.58183426", "0.55494547", "0.5508903", "0.54620254", "0.54302764", "0.54081345", "0.53061247", "0.5230166", "0.5189349", "0.5180351", "0.5132191", "0.51234996", "0.5081374", "0.50712794", "0.50416875", "0.503...
0.67197263
2
Creates a service, and returns the new service.
public void createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Service> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T createService(Class<T> service) {\n return getInstanceRc().create(service);\n }", "public com.google.cloud.servicedirectory.v1beta1.Service createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) {\n return io.grpc.stub.ClientCalls.blocki...
[ "0.76713836", "0.74637413", "0.7330456", "0.70256", "0.691736", "0.68569607", "0.6646501", "0.6585979", "0.65856147", "0.6390318", "0.63590884", "0.63134885", "0.62800133", "0.62596047", "0.62260824", "0.62159216", "0.61834675", "0.61606604", "0.611251", "0.6106685", "0.61004...
0.6522692
9
Lists all services belonging to a namespace.
public void listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }", "List<Service> services();", "public Map list...
[ "0.6493551", "0.64549595", "0.6434717", "0.6354583", "0.6311621", "0.6306959", "0.6250276", "0.62462157", "0.61580026", "0.61180186", "0.60715204", "0.60534793", "0.5988863", "0.59662145", "0.59362334", "0.59362334", "0.5891551", "0.5849733", "0.5812682", "0.57960397", "0.579...
0.57229745
23
Deletes a service. This also deletes all endpoints associated with the service.
public void deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().error(\" unable to deleteService(). No id selected\");\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" deleteService(\" + id + \")...
[ "0.70450443", "0.67593014", "0.66541475", "0.65834814", "0.65828335", "0.6460537", "0.64594084", "0.6347396", "0.6284119", "0.62804425", "0.62102234", "0.6108679", "0.6106046", "0.60682994", "0.60645527", "0.58558565", "0.5839294", "0.5808563", "0.5804006", "0.5756423", "0.57...
0.66451925
3
Creates an endpoint, and returns the new endpoint.
public void createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver<com.google.cloud.servicedirectory.v1beta1.Endpoint> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEndpoint(request);\n }", "public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint(\n com.google.cloud.servicedirect...
[ "0.8141555", "0.74981654", "0.74090993", "0.7352013", "0.72639024", "0.72448915", "0.70077705", "0.6772564", "0.6664593", "0.6562055", "0.64564395", "0.6345143", "0.63025427", "0.62226665", "0.61407346", "0.59696996", "0.5953576", "0.5943257", "0.5931083", "0.5923559", "0.587...
0.6784688
7
Gets the IAM Policy for a resource
public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetIamPolicyMethod(), getCallOptions(), request);\n }", "public com.google.common.util.concurrent.ListenableFuture<com.google.iam....
[ "0.653043", "0.6203847", "0.6186254", "0.6138413", "0.6095201", "0.6080963", "0.5858935", "0.58587104", "0.57901645", "0.57883555", "0.5769761", "0.5749365", "0.56901425", "0.5656458", "0.56230205", "0.5586617", "0.55617374", "0.54347295", "0.54000455", "0.5365061", "0.532694...
0.5213906
25
Sets the IAM Policy for a resource
public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.Policy> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest request) {\n request = beforeClientExecution(request);\n return executePutResourcePolicy(request);\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3....
[ "0.66972566", "0.6082597", "0.603994", "0.58559775", "0.5677932", "0.5533153", "0.55294746", "0.54336023", "0.54295254", "0.5386457", "0.5322885", "0.5307284", "0.5242436", "0.50387615", "0.5026891", "0.50065285", "0.49567696", "0.49369815", "0.49298045", "0.4895639", "0.4889...
0.6077283
2
Tests IAM permissions for a resource (namespace, service or service workload only).
public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasResourceActionAllowPermissions(Resource resource,\n String action) {\n String whereClause = \"p.resource = :resource AND (\"\n + \"(p.action = :action AND p.type = :typeAllow) OR \"\n + \"(p.type = :typeAllowAll))\";\n Map<String, Object> pa...
[ "0.626141", "0.6143579", "0.60582566", "0.60410976", "0.58795595", "0.58387005", "0.5828776", "0.57359004", "0.5704171", "0.5687395", "0.5651673", "0.5646067", "0.5641807", "0.5605156", "0.557404", "0.55634123", "0.5554017", "0.55476123", "0.5529396", "0.5502352", "0.5498456"...
0.60512483
3
Creates a namespace, and returns the new namespace.
public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static NamespaceContext create() {\n return new NamespaceContext();\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.servicedirectory.v1beta1.Namespace>\n createNamespace(com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest reques...
[ "0.7193204", "0.70756084", "0.6679203", "0.64466196", "0.62799984", "0.6225282", "0.609216", "0.6031081", "0.60155785", "0.5985649", "0.5965543", "0.59310496", "0.5920755", "0.58899885", "0.58899885", "0.58899885", "0.587757", "0.58642954", "0.5818866", "0.57947177", "0.57539...
0.7329979
0
Deletes a namespace. This also deletes all services and endpoints in the namespace.
public com.google.protobuf.Empty deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>\n deleteNamespace(com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getDeleteNamespaceMethod(), getCallOption...
[ "0.68513477", "0.67180836", "0.6577453", "0.61689264", "0.58192265", "0.5816018", "0.55479234", "0.5509337", "0.5462654", "0.54282033", "0.5407257", "0.53038645", "0.5228044", "0.5187067", "0.51777446", "0.51310426", "0.5120906", "0.5080304", "0.5070093", "0.50403285", "0.503...
0.69191414
0
Creates a service, and returns the new service.
public com.google.cloud.servicedirectory.v1beta1.Service createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateServiceMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T createService(Class<T> service) {\n return getInstanceRc().create(service);\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.servicedirectory.v1beta1.Service>\n createService(com.google.cloud.servicedirectory.v1beta1.CreateServic...
[ "0.7673243", "0.7330246", "0.7026831", "0.6918558", "0.6857777", "0.66468114", "0.65873075", "0.65867895", "0.6523027", "0.6390872", "0.63591254", "0.6314166", "0.6281377", "0.6261366", "0.6227418", "0.62184316", "0.61826664", "0.61612153", "0.6112579", "0.6107516", "0.610116...
0.746299
1
Lists all services belonging to a namespace.
public com.google.cloud.servicedirectory.v1beta1.ListServicesResponse listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListServicesMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }", "List<Service> services();", "public Map list...
[ "0.6493551", "0.64549595", "0.6434717", "0.6354583", "0.6311621", "0.6306959", "0.6250276", "0.62462157", "0.61580026", "0.61180186", "0.60715204", "0.60534793", "0.5988863", "0.59662145", "0.59362334", "0.59362334", "0.5891551", "0.5849733", "0.5812682", "0.57960397", "0.579...
0.56147784
31
Deletes a service. This also deletes all endpoints associated with the service.
public com.google.protobuf.Empty deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteServiceMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().error(\" unable to deleteService(). No id selected\");\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" deleteService(\" + id + \")...
[ "0.70450115", "0.67590374", "0.66542697", "0.66456455", "0.6584381", "0.64607775", "0.6459928", "0.63484055", "0.628368", "0.62804943", "0.6210241", "0.6110351", "0.6106372", "0.60660726", "0.6065428", "0.58548135", "0.58389944", "0.58078915", "0.5806772", "0.5755611", "0.574...
0.6582414
5
Creates an endpoint, and returns the new endpoint.
public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateEndpointMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEndpoint(request);\n }", "EndPoint createEndPoint();", "public abstract Endpoint createEndpoint(String bindingId, Object implementor);", ...
[ "0.8141585", "0.7408833", "0.73523784", "0.7263873", "0.72451127", "0.70074636", "0.67841184", "0.6772443", "0.6663933", "0.65615046", "0.6457761", "0.6344424", "0.63039494", "0.62232774", "0.6141626", "0.59694564", "0.5952881", "0.5943915", "0.59322107", "0.5924535", "0.5874...
0.74986225
1
Gets the IAM Policy for a resource
public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy>\n getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request);\n }", "privat...
[ "0.6203847", "0.6186254", "0.6138413", "0.6095201", "0.6080963", "0.5858935", "0.58587104", "0.57901645", "0.57883555", "0.5769761", "0.5749365", "0.56901425", "0.5656458", "0.56230205", "0.5586617", "0.55617374", "0.54347295", "0.54000455", "0.5365061", "0.532694", "0.532335...
0.653043
0
Sets the IAM Policy for a resource
public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest request) {\n request = beforeClientExecution(request);\n return executePutResourcePolicy(request);\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3....
[ "0.66972566", "0.6082597", "0.6077283", "0.58559775", "0.5677932", "0.5533153", "0.55294746", "0.54336023", "0.54295254", "0.5386457", "0.5322885", "0.5307284", "0.5242436", "0.50387615", "0.5026891", "0.50065285", "0.49567696", "0.49369815", "0.49298045", "0.4895639", "0.488...
0.603994
3
Tests IAM permissions for a resource (namespace, service or service workload only).
public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasResourceActionAllowPermissions(Resource resource,\n String action) {\n String whereClause = \"p.resource = :resource AND (\"\n + \"(p.action = :action AND p.type = :typeAllow) OR \"\n + \"(p.type = :typeAllowAll))\";\n Map<String, Object> pa...
[ "0.6261043", "0.61454374", "0.6058891", "0.6053727", "0.588256", "0.58370954", "0.58271414", "0.5738642", "0.5705868", "0.5687195", "0.5655212", "0.564622", "0.5643899", "0.56052226", "0.5574267", "0.55647254", "0.5553965", "0.5548117", "0.55278766", "0.55039346", "0.54988277...
0.6044457
4
Creates a namespace, and returns the new namespace.
public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Namespace> createNamespace(com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace(\n com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateNamespaceMethod(), getCallOptions(), request);\n }", "pub...
[ "0.7332661", "0.7194925", "0.6678302", "0.644852", "0.62807053", "0.62265384", "0.6089985", "0.60334986", "0.6017283", "0.59845275", "0.5964459", "0.59290665", "0.5918809", "0.5888413", "0.5888413", "0.5888413", "0.5875721", "0.5865086", "0.58157533", "0.57918644", "0.5751436...
0.70776165
2
Deletes a namespace. This also deletes all services and endpoints in the namespace.
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteNamespace(com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.Empty deleteNamespace(\n com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request);\n }", "public void deleteNamespace(\...
[ "0.6920174", "0.67187583", "0.65800256", "0.6169406", "0.5817538", "0.5816485", "0.5548779", "0.55118155", "0.54624957", "0.543168", "0.54101896", "0.53055227", "0.5229528", "0.519043", "0.5179534", "0.5128854", "0.5122423", "0.5082456", "0.50680053", "0.50414175", "0.5031711...
0.68527955
1
Creates a service, and returns the new service.
public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Service> createService(com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> T createService(Class<T> service) {\n return getInstanceRc().create(service);\n }", "public com.google.cloud.servicedirectory.v1beta1.Service createService(\n com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) {\n return io.grpc.stub.ClientCalls.blocki...
[ "0.7673243", "0.746299", "0.7026831", "0.6918558", "0.6857777", "0.66468114", "0.65873075", "0.65867895", "0.6523027", "0.6390872", "0.63591254", "0.6314166", "0.6281377", "0.6261366", "0.6227418", "0.62184316", "0.61826664", "0.61612153", "0.6112579", "0.6107516", "0.6101168...
0.7330246
2
Lists all services belonging to a namespace.
public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> listServices(com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }", "List<Service> services();", "public Map list...
[ "0.64931387", "0.6455482", "0.6434621", "0.6354605", "0.63120854", "0.6306348", "0.62515044", "0.62465596", "0.6158411", "0.61194927", "0.6072912", "0.60536987", "0.5988149", "0.596693", "0.5936899", "0.5936899", "0.5891345", "0.5848618", "0.58115935", "0.57972336", "0.579381...
0.57247484
22
Deletes a service. This also deletes all endpoints associated with the service.
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteService(com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().error(\" unable to deleteService(). No id selected\");\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" deleteService(\" + id + \")...
[ "0.70454186", "0.67595744", "0.66447985", "0.65827364", "0.65817744", "0.6460869", "0.6459487", "0.6346506", "0.6284409", "0.6280427", "0.62100434", "0.61075157", "0.6105394", "0.60679984", "0.60642123", "0.58566344", "0.58396375", "0.5808894", "0.5803272", "0.57564616", "0.5...
0.6653481
2
Creates an endpoint, and returns the new endpoint.
public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Endpoint> createEndpoint(com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeCreateEndpoint(request);\n }", "public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint(\n com.google.cloud.servicedirect...
[ "0.8141873", "0.749923", "0.7409183", "0.7352639", "0.72629625", "0.70078534", "0.678481", "0.6772285", "0.6664594", "0.65618056", "0.6457914", "0.6344549", "0.63041383", "0.6223555", "0.614113", "0.5968795", "0.59528106", "0.5943539", "0.59314483", "0.5924034", "0.58739924",...
0.72454953
5
Gets the IAM Policy for a resource
public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetIamPolicyMethod(), getCallOptions(), request);\n }", "private Resource getPolicyResource(String policyId) throws EntitlementExc...
[ "0.653043", "0.6186254", "0.6138413", "0.6095201", "0.6080963", "0.5858935", "0.58587104", "0.57901645", "0.57883555", "0.5769761", "0.5749365", "0.56901425", "0.5656458", "0.56230205", "0.5586617", "0.55617374", "0.54347295", "0.54000455", "0.5365061", "0.532694", "0.5323353...
0.6203847
1
Sets the IAM Policy for a resource
public com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public PutResourcePolicyResult putResourcePolicy(PutResourcePolicyRequest request) {\n request = beforeClientExecution(request);\n return executePutResourcePolicy(request);\n }", "public com.amazon.s3.SetBucketAccessControlPolicyResponse setBucketAccessControlPolicy(com.amazon.s3....
[ "0.6696059", "0.60859275", "0.60794866", "0.60415757", "0.5680911", "0.55331045", "0.552961", "0.5435385", "0.54292244", "0.5387349", "0.53254884", "0.5307002", "0.52439326", "0.5039855", "0.5028793", "0.50054604", "0.49540916", "0.4936917", "0.49317548", "0.4896201", "0.4888...
0.5857578
4
Tests IAM permissions for a resource (namespace, service or service workload only).
public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasResourceActionAllowPermissions(Resource resource,\n String action) {\n String whereClause = \"p.resource = :resource AND (\"\n + \"(p.action = :action AND p.type = :typeAllow) OR \"\n + \"(p.type = :typeAllowAll))\";\n Map<String, Object> pa...
[ "0.62609655", "0.614489", "0.6059014", "0.6052047", "0.60418904", "0.5881448", "0.5837688", "0.58285403", "0.57378787", "0.57052714", "0.5686623", "0.5647186", "0.56416863", "0.5606313", "0.55745894", "0.55635655", "0.5555606", "0.55484825", "0.55294716", "0.55029833", "0.549...
0.56532615
11
PRIVATE METHODS Returns all refueling records in the database
private Cursor readReducedRefuelings() { return mDbHelper.getWritableDatabase().query( DatabaseOpenHelper.TABLE_NAME, DatabaseOpenHelper.reducedColumns, null, new String[] {}, null, null, DatabaseOpenHelper._ID + " DESC"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Referee> findAllReferees(){\n\t\treturn refereeRepository.findAll();\n\t}", "private List<Reference> getReferences() {\n logger.debug(\"Get references\");\n\n List<Reference> references = new ArrayList<Reference>();\n\n String query = \"SELECT reference_line, pr.reference_id FROM...
[ "0.7275837", "0.6878248", "0.67681557", "0.6704066", "0.6700901", "0.6586596", "0.6552245", "0.6220036", "0.6179646", "0.6179289", "0.6173924", "0.6160201", "0.6160201", "0.6147117", "0.6102296", "0.6043719", "0.59932286", "0.59640014", "0.5925851", "0.59183514", "0.5894033",...
0.5717556
29
Created by Dani on 10/24/2016.
public interface IStmt { String toStr(); PrgState execute(PrgState state) throws StmtException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.5989195", "0.58673245", "0.58568084", "0.579372", "0.5790493", "0.5742429", "0.5742429", "0.5672446", "0.5663852", "0.56195116", "0.5614426", "0.5606821", "0.56046474", "0.5584311", "0.5569667", "0.5542484", "0.5541754", "0.55378294", "0.55151206", "0.55120397", "0.5496256...
0.0
-1
Checks users cookies, if secret is fine, returns user info. If not you get HTTP unauthorized error (401).
@Get("json") public User checkPlayer(Object o) { User u = getUser(this); if (u == null) { setStatus(Status.CLIENT_ERROR_UNAUTHORIZED); return null; } setStatus(Status.SUCCESS_OK); return u; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean authNeeded();", "boolean hasAuth();", "abstract public boolean checkAuth(String userId) throws IOException;", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (u...
[ "0.601629", "0.5917276", "0.5899695", "0.5845882", "0.5754622", "0.57012165", "0.56877023", "0.5659176", "0.5591113", "0.55131", "0.5472257", "0.5471158", "0.54601604", "0.5430219", "0.5401093", "0.53854203", "0.53812635", "0.5359939", "0.535955", "0.53191805", "0.5293877", ...
0.0
-1
The name of the object
@Override public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String get_object_name() {\n\t\treturn this.name;\n\t}", "protected String get_object_name() {\n\t\treturn this.name;\n\t}", "String getObjectName();", "public String getObject_name() {\n return object_name;\n }", "public String getName() {\n\t\treturn \"Object class name\";\n\t}", "p...
[ "0.86018866", "0.86018866", "0.8401811", "0.8399744", "0.83631927", "0.8179105", "0.81269765", "0.8116265", "0.8067802", "0.8008268", "0.80028385", "0.80028385", "0.7826029", "0.78245026", "0.7822519", "0.7789233", "0.77659243", "0.7702567", "0.76279205", "0.7598861", "0.7593...
0.0
-1
The pluralized name of the object
@Override public String getPluralName() { return pluralName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPluralisedName();", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "PropertyName getName...
[ "0.80947906", "0.68333584", "0.6706688", "0.66735524", "0.66140157", "0.66140157", "0.6497912", "0.6488702", "0.6463129", "0.6443918", "0.64429635", "0.6432356", "0.64122766", "0.64122766", "0.6403828", "0.6403828", "0.6403828", "0.6403828", "0.6403828", "0.6403828", "0.64038...
0.76290226
1
The type of the object
@Override public Type getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getType()\r\n {\r\n\treturn type;\r\n }", "@Override\n public Class<?> getObjectType() {\n return this.type;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Class getObjectType()\n\t{\n\t\tObject obj = getObject();\n\t\tif (obj == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t...
[ "0.80398756", "0.79766655", "0.78162223", "0.7787771", "0.77850056", "0.77125615", "0.7689074", "0.76560324", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.7641367", "0.76217717", "0.760749...
0.0
-1
The type of the object's parent
@Override public Type getParentType() { return parentType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getParentType() {\r\n return parent_type;\r\n }", "public String getParentType() {\n return this.parentType;\n }", "public java.lang.String getContainingParentType() {\n return containingParentType;\n }", "public java.lang.String getContainingParentType() {\n return contai...
[ "0.79814094", "0.7954942", "0.7436656", "0.7385757", "0.7287881", "0.7153707", "0.7153707", "0.7088897", "0.6862895", "0.6823026", "0.6809532", "0.6808478", "0.6750998", "0.6709413", "0.6638883", "0.6611937", "0.6596458", "0.6589147", "0.65827477", "0.65827477", "0.65827477",...
0.76815903
2
The attributes of the object
@Override public List<MappedField<?>> getAttributes() { return attributes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Attributes getAttributes() { return this.attributes; }", "Attributes getAttributes();", "IAttributes getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "@Override\r\n\tpublic Map<String, String> getAttributes...
[ "0.76212144", "0.75751394", "0.7570012", "0.74666244", "0.74666244", "0.74666244", "0.7360459", "0.73430157", "0.7304732", "0.7285054", "0.7285054", "0.7214333", "0.7198343", "0.7174345", "0.7163679", "0.7163679", "0.7137233", "0.7098338", "0.69795674", "0.6977811", "0.697320...
0.723674
11
TODO Autogenerated method stub
private String insert(String input_from_user) { System.out.println("Enter the position you want to insert a character in the string"+input_from_user); int position = in.nextInt(); char get_char = in.next().charAt(0); String result = insertCharAt(input_from_user,get_char,position); return result; }
{ "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
private String insertCharAt(String input_from_user, char get_char, int position) { String compute = null; if(position == 0){ compute = get_char + input_from_user.substring(0, input_from_user.length()); } else{ compute = input_from_user.substring(0,position)+get_char+input_from_user.substring(position,input_from_user.length()); } return compute; }
{ "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
private String edit(String input_from_user, char[] input_array) { System.out.println("Enter the number of positions you want to change the string"+input_from_user); int user_input = in.nextInt(); String result = null; for(int i=0; i <user_input; i++){ System.out.println("Enter the"+i+"th to edit in the "+input_from_user +" string"); System.out.println("Position?"); int pos = in.nextInt(); char input_char = in.next().charAt(0); char get_user_char = input_array[pos]; input_from_user = input_from_user.replace(get_user_char, input_char); } return input_from_user; }
{ "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
private String delete(String input_from_user) { System.out.println("Enter the position of the character to delete, index starts from zero"+input_from_user); int get_position = in.nextInt(); String result = null; if(get_position == 0){ result = input_from_user.substring(1,input_from_user.length()); System.out.println(result); } else{ result = input_from_user.substring(0,get_position).concat(input_from_user.substring(get_position+1, input_from_user.length())); System.out.println(result); } return result; }
{ "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
Constructors Create a detached DictProvinceRecord
public DictProvinceRecord() { super(DictProvince.DICT_PROVINCE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DictProvinceRecord(Integer provinceId, String name, Integer countryId, Integer areaId, String shortName, String pinyin, Timestamp modified) {\n super(DictProvince.DICT_PROVINCE);\n\n set(0, provinceId);\n set(1, name);\n set(2, countryId);\n set(3, areaId);\n set(4,...
[ "0.6795921", "0.55619574", "0.54978406", "0.5337015", "0.529529", "0.5207295", "0.51808935", "0.51067233", "0.50812024", "0.5078175", "0.5025402", "0.50239", "0.50166905", "0.5007625", "0.50072056", "0.49483588", "0.4942437", "0.49169567", "0.49041757", "0.4807383", "0.480381...
0.78949386
0
Create a detached, initialised DictProvinceRecord
public DictProvinceRecord(Integer provinceId, String name, Integer countryId, Integer areaId, String shortName, String pinyin, Timestamp modified) { super(DictProvince.DICT_PROVINCE); set(0, provinceId); set(1, name); set(2, countryId); set(3, areaId); set(4, shortName); set(5, pinyin); set(6, modified); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DictProvinceRecord() {\n super(DictProvince.DICT_PROVINCE);\n }", "void insertSelective(VRpWkProvinceGprsCsBh record);", "public String createProvincePre() throws Exception {\r\n\r\n province = new Province();\r\n return SUCCESS;\r\n }", "void insert(VRpWkProvinceGprsCsBh re...
[ "0.7215658", "0.57537854", "0.5697629", "0.5688946", "0.5460344", "0.5319444", "0.5047405", "0.4922014", "0.49046585", "0.48512954", "0.48149648", "0.48149648", "0.4813079", "0.4813079", "0.4813079", "0.48046932", "0.4742642", "0.4671588", "0.4671588", "0.46526808", "0.464159...
0.6224823
1
GET request for the health check resource. Always returns 200 Success and a response body containing the text "Ok" when server is up and running.
@GET @Produces(MediaType.TEXT_PLAIN) @ApiOperation(value = "Checks if the application is running", response = String.class) @ApiResponses(value = {@ApiResponse(code = 200, message = "Application is running", response = String.class)}) public Response healthCheck() { return Response.ok("Ok") .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(path = ApiConstant.HEALTH_CHECK_API, produces = APPLICATION_JSON_VALUE)\n public ResponseEntity checkHealth() {\n logger.info(\"Health checking.\");\n HashMap<String, String> map = new HashMap<>();\n map.put(\"status\", \"OK\");\n return new ResponseEntity<>(map, HttpStat...
[ "0.7694793", "0.7684962", "0.74534", "0.6929321", "0.69250244", "0.6726437", "0.66739273", "0.6632833", "0.65504026", "0.6482907", "0.6453961", "0.6334432", "0.6278346", "0.62398183", "0.6168451", "0.610069", "0.6081616", "0.6073755", "0.5999887", "0.5978036", "0.5966157", ...
0.7756477
0
userAccount user =this.accountRepo.findById(email); System.out.println("Email:"+account.getEmail()); System.out.println("user:"+account.getUsername()); System.out.println("pass:"+account.getPassword());
@PostMapping(path = "userLogind/") public ResponseEntity<passConfirmation> getUserByEmail(@RequestBody userAccount account){ String passwordByUser = accountRepo.getPasswordByUsername(account.getUsername()); // System.out.println("****************************************"); // System.out.println("pass:"+account.getPassword()); // System.out.println("passfromdb:"+ passwordByEmail); if (account.getPassword().toString().equals(passwordByUser)){ passConfirmation confirmationOK = new passConfirmation("Confirmed"); return ResponseEntity.ok().body(confirmationOK); }else{ passConfirmation confirmationDenied = new passConfirmation("Denied"); return ResponseEntity.ok().body(confirmationDenied); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Account findByEmail(String email);", "User find(String email);", "Account findById(int id);", "User findUserByEmail(String email) throws Exception;", "Optional<Account> findByEmail(@Param(\"email\") String email);", "@Test\n void retrieveByEmailPasswordTest() {\n Admin retrieved = adminJpa.retr...
[ "0.7333157", "0.72940886", "0.7258748", "0.71405584", "0.71036375", "0.70376426", "0.7033778", "0.7033778", "0.7033778", "0.7030427", "0.7030427", "0.7030427", "0.7030427", "0.7030427", "0.7030427", "0.6972465", "0.6930718", "0.69301975", "0.68890494", "0.68890494", "0.687075...
0.66701704
43
get tele no by user
@PostMapping(path = "userTele/") public ResponseEntity<passModificationComfirmation> getTeleByuser(@RequestBody userAccount account){ String userTele = accountDetailsRepo.getTelefromUsername(account.getUsername()); if (!userTele.isEmpty()){ passModificationComfirmation comfirmationOK = new passModificationComfirmation(userTele); return ResponseEntity.ok().body(comfirmationOK); }else { passModificationComfirmation confirmationDenied = new passModificationComfirmation("Denied"); return ResponseEntity.ok().body(confirmationDenied); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTelNum() throws Exception \n\t{\n\t\tString tel=\"\";\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT tele...
[ "0.6746222", "0.6630824", "0.65662646", "0.65292895", "0.637986", "0.637396", "0.63038784", "0.62632585", "0.62304264", "0.6218372", "0.61751866", "0.6152361", "0.6142216", "0.61191314", "0.6115544", "0.61034507", "0.61034507", "0.5950122", "0.5940069", "0.5935085", "0.592988...
0.0
-1
set account username and pass
@PostMapping("/addAcc") public userAccount setUserAccount(@RequestBody userAccount account) { // System.out.println("Email:"+account.getEmail()); // System.out.println("username:"+account.getUsername()); // System.out.println("pass:"+account.getPassword()); return this.accountRepo.save(account); // return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void accountSet(boolean admin, String username, String password, String fName, String lName, int accountId);", "public void setCredentials( String username_, String password_ ) {\n\t\tif (username_ != null) {\n\t\t\tusername = username_;\n\t\t} else {\n\t\t\tusername = \"Encinitas\";\n\t\t}\n\t\tif (password_ !=...
[ "0.7562231", "0.7479822", "0.7036074", "0.69906557", "0.69255817", "0.6847329", "0.67479616", "0.6699671", "0.6699671", "0.6699671", "0.6624252", "0.65984267", "0.6593868", "0.6567312", "0.65636736", "0.6556321", "0.64719766", "0.64346266", "0.6426203", "0.64258856", "0.63798...
0.0
-1
System.out.println("Username"+ user); System.out.println("pass"+ account.getPassword());
@PutMapping("/updatePass/{username}") public ResponseEntity<passModified> setUserPass(@RequestParam("username") String user, @RequestBody userAccount account) { accountRepo.updatePassword(user,account.getPassword()); passModified modified = new passModified("Changed"); return ResponseEntity.ok().body(modified); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getUserPassword();", "public String getPassword();", "public String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "...
[ "0.7379435", "0.69965124", "0.69965124", "0.69841933", "0.69841933", "0.69841933", "0.69841933", "0.69841933", "0.69841933", "0.69841933", "0.69841933", "0.69841933", "0.6925863", "0.6892382", "0.68567544", "0.68457663", "0.682954", "0.68285406", "0.67699033", "0.67279404", "...
0.0
-1
Creates new form PnAlunos
public PnAlunos() { initComponents(); listarAlunos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumI...
[ "0.68981373", "0.68383366", "0.6612949", "0.6450261", "0.6254968", "0.62367356", "0.6165745", "0.6158837", "0.6151886", "0.6140154", "0.6125923", "0.6119287", "0.6083067", "0.6077509", "0.60669667", "0.60483336", "0.60446537", "0.6020956", "0.6012961", "0.60113174", "0.600392...
0.6462255
3
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jSeparator1 = new javax.swing.JSeparator(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); txNome = new javax.swing.JTextField(); btBuscarLivro = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); tbAluno = new javax.swing.JTable(); setBackground(new java.awt.Color(255, 255, 255)); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 28)); // NOI18N jLabel1.setText("Alunos"); jLabel2.setText("Buscar Aluno"); btBuscarLivro.setText("Buscar"); btBuscarLivro.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btBuscarLivroActionPerformed(evt); } }); tbAluno.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null}, {null, null, null, null, null, null} }, new String [] { "Nome", "Curso", "Fase", "Ano", "Matrícula", "Livros Emprestados/Mês" } )); jScrollPane1.setViewportView(tbAluno); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(23, 23, 23) .addComponent(jLabel1) .addGap(368, 368, 368)) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(txNome, javax.swing.GroupLayout.PREFERRED_SIZE, 351, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btBuscarLivro, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jLabel2) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)) .addGap(16, 16, 16)) .addComponent(jSeparator1)) .addContainerGap()))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(19, 19, 19) .addComponent(jLabel1) .addGap(18, 18, 18) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txNome, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btBuscarLivro, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE) .addGap(26, 26, 26)) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7320782", "0.72918797", "0.72918797", "0.72918797", "0.728645", "0.72498447", "0.7214492", "0.720934", "0.7197145", "0.71912014", "0.71852076", "0.7160113", "0.71487373", "0.70943654", "0.70820624", "0.7058153", "0.69883204", "0.6978216", "0.69558746", "0.6955715", "0.6945...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904536", "0.78052336", "0.7766536", "0.7727363", "0.76318616", "0.7621916", "0.7584545", "0.7530609", "0.74878335", "0.74571276", "0.74571276", "0.7438656", "0.7422694", "0.7403604", "0.73918706", "0.7387049", "0.7379379", "0.73706305", "0.7362634", "0.7356091", "0.734574...
0.0
-1
NOTE: This will (intentionally) not run as written so that folks copypasting have to think about how to initialize their Random instance. Initialization of the Random instance is outside the main scope of the question, but some decent options are to have a field that is initialized once and then reused as needed or to use ThreadLocalRandom (if using at least Java 1.7).
public static int randInt(int min, int max) { Random rand = new Random(); // nextInt is normally exclusive of the top value, // so add 1 to make it inclusive int randomNum = rand.nextInt((max - min) + 1) + min; return randomNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Random() {\n real = new UniversalGenerator();\n twister = new MersenneTwister();\n }", "private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }", "private Random rand()\n\t{\n\t\treturn new...
[ "0.7721465", "0.76324975", "0.7489444", "0.74800247", "0.74261093", "0.7288501", "0.72515255", "0.72016644", "0.71908575", "0.71207845", "0.71169925", "0.6981394", "0.6941824", "0.6897459", "0.6788762", "0.67847097", "0.6702028", "0.6692202", "0.6679088", "0.66762", "0.663191...
0.0
-1
A utility function to create a new BST node
static Node newNode(int item) { Node temp = new Node(); temp.key = item; temp.left = temp.right = null; return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createNode()\r\n\t{\r\n\t\tTreeNode first=new TreeNode(1);\r\n\t\tTreeNode second=new TreeNode(2);\r\n\t\tTreeNode third=new TreeNode(3);\r\n\t\tTreeNode fourth=new TreeNode(4);\r\n\t\tTreeNode fifth=new TreeNode(5);\r\n\t\tTreeNode sixth=new TreeNode(6);\r\n\t\tTreeNode seventh=new TreeNode(7);\r\n\t\...
[ "0.73112565", "0.70974", "0.70306057", "0.69228166", "0.69092876", "0.68762785", "0.67338467", "0.6607178", "0.66058", "0.6602263", "0.6595503", "0.65595806", "0.65486336", "0.65234697", "0.65085614", "0.6489009", "0.6480393", "0.6470412", "0.6435632", "0.642913", "0.63981974...
0.6129005
46
A utility function to do inorder traversal of BST
static void inorder(Node root) { if (root != null) { inorder(root.left); System.out.print(root.key + " "); inorder(root.right); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inorder()\r\n {\r\n inorder(root);\r\n }", "public void inorder()\n {\n inorder(root);\n }", "public void inorder()\n {\n inorder(root);\n }", "private void inorder() {\n inorder(root);\n }", "private void inorder() {\r\n\t\t\tinorder(...
[ "0.78557944", "0.76716846", "0.76716846", "0.760627", "0.756379", "0.74606323", "0.74202836", "0.7370048", "0.7351069", "0.7310717", "0.7266621", "0.7228449", "0.72112036", "0.72037566", "0.71787786", "0.7166969", "0.71584356", "0.7150216", "0.71344554", "0.7092105", "0.70795...
0.6796293
43
A utility function to insert a new node with given key in BST
static Node insert(Node node, int key) { // If the tree is empty, return a new node if (node == null) return newNode(key); // Otherwise, recur down the tree if (key < node.key) node.left = insert(node.left, key); else node.right = insert(node.right, key); // Return the (unchanged) node pointer return node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < curre...
[ "0.8243042", "0.8145469", "0.8047781", "0.79602426", "0.7956363", "0.7954034", "0.78246295", "0.7723745", "0.76931053", "0.7688253", "0.76563805", "0.7648608", "0.76455986", "0.7603818", "0.7601509", "0.7562444", "0.7526361", "0.7520497", "0.75100136", "0.7435141", "0.7434906...
0.8068873
2
Given a binary search tree and a key, this function deletes the key and returns the new root
static Node deleteNode(Node root, int k) { // Base case if (root == null) return root; // Recursive calls for ancestors of // node to be deleted if (root.key > k) { root.left = deleteNode(root.left, k); return root; } else if (root.key < k) { root.right = deleteNode(root.right, k); return root; } // We reach here when root is the node // to be deleted. // If one of the children is empty if (root.left == null) { Node temp = root.right; return temp; } else if (root.right == null) { Node temp = root.left; return temp; } // If both children exist else { Node succParent = root; // Find successor Node succ = root.right; while (succ.left != null) { succParent = succ; succ = succ.left; } // Delete successor. Since successor // is always left child of its parent // we can safely make successor's right // right child as left of its parent. // If there is no succ, then assign // succ->right to succParent->right if (succParent != root) succParent.left = succ.right; else succParent.right = succ.right; // Copy Successor Data to root root.key = succ.key; return root; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private BinarySearchTree deleteTree(BinarySearchTree tree, Comparable key){\r\n\t\t\r\n\t\t//If it is a leaf\r\n\t\tif(tree.getLeftChild() == null && tree.getRightChild() == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//Tree has only 1 leaf\r\n\t\telse if( (tree.getLeftChild() == null && tree.getRightChild() != n...
[ "0.8245826", "0.7970906", "0.7815777", "0.7808195", "0.7788626", "0.77201253", "0.7659341", "0.75946796", "0.7545311", "0.75339717", "0.75014734", "0.75013244", "0.74929005", "0.74919933", "0.7461108", "0.74548256", "0.7392365", "0.73739505", "0.7348293", "0.73459846", "0.733...
0.0
-1
TODO Autogenerated method stub
@Override protected IEfDeviceAlarmTargetDao getEntityDao() { return dao; }
{ "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
Parse the given file indicated from given script name and returns the generated query with its other information. Your script name would be the relative path from the script root directory, always having forward slashes (/). You should call this only if you are working with a script repository.
@CompileStatic public QScript parse(String scriptName) throws NyException { return parse(scriptName, EMPTY_MAP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readSQLFile(String filename) {\n\t\tString query = null;\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(\n\t\t\t\t\t\tgetClass().getResourceAsStream(\"/sql/\" + filename + \".sql\")))) {\n\t\t\tList<String> lines = reader.lines().collect(Collectors.toList());\n\t...
[ "0.628074", "0.57601994", "0.5674195", "0.56679577", "0.5626042", "0.55001175", "0.54430157", "0.5373523", "0.53708786", "0.5366192", "0.5357785", "0.529785", "0.5146808", "0.51455337", "0.50552255", "0.5042066", "0.50265026", "0.5012578", "0.49911705", "0.49814323", "0.49676...
0.52376264
12
Parse the given file indicated from given script name using the given variable set and returns the generated query with its other information. Your script name would be the relative path from the script root directory, always having forward slashes (/). You should call this only if you are working with a script repository.
@CompileStatic public QScript parse(String scriptName, Map<String, Object> data) throws NyException { QSession qSession = QSession.create(configurations, scriptName); if (data != null) { qSession.getSessionVariables().putAll(data); } return configurations.getRepositoryRegistry().defaultRepository().parse(scriptName, qSession); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String readSQLFile(String filename) {\n\t\tString query = null;\n\t\ttry (BufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(\n\t\t\t\t\t\tgetClass().getResourceAsStream(\"/sql/\" + filename + \".sql\")))) {\n\t\t\tList<String> lines = reader.lines().collect(Collectors.toList());\n\t...
[ "0.57298696", "0.5491639", "0.532066", "0.5255897", "0.5223246", "0.5161313", "0.5122445", "0.5086835", "0.5073075", "0.49705872", "0.49517143", "0.4916259", "0.49140704", "0.48971093", "0.48928314", "0.48893845", "0.48776266", "0.48504156", "0.48195502", "0.4785944", "0.4780...
0.4648695
33
Allows recompiling a script when it is already compiled and cached. You may call this method at runtime, but it does not reload or recompile unless scripts are loaded from file.
@CompileStatic public void recompileScript(String scriptName) throws NyException { configurations.getRepositoryRegistry().defaultRepository().reloadScript(scriptName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void compileScript() {\n // find and prepare by extension\n //\n log.info(\"Compiling script...\");\n Timer engineTimer = new Timer();\n \n engine = EngineHelper.findByFileExtension(scriptExtension, dependencyJarFiles != null && !dependencyJa...
[ "0.6571201", "0.57201004", "0.56531525", "0.56348723", "0.5550638", "0.54916924", "0.5432828", "0.53761834", "0.531379", "0.52145374", "0.5186513", "0.5136677", "0.5136677", "0.51292974", "0.50235665", "0.5009862", "0.5004944", "0.49912637", "0.49428836", "0.48910552", "0.488...
0.7134658
0
Shutdown the nyql engine. This should be called only when your application exits.
public void shutdown() { if (configurations.isRegisterMXBeans()) { JmxConfigurator.get().removeMXBean(this); } configurations.shutdown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shutdown()\r\n\t{\r\n\t\tgraphDb.shutdown();\r\n\t\tSystem.out.println(\"Shutdown-Done!\");\r\n\t}", "public static void shutdown() {\n\t\tgetSessionFactory().close();\n\t}", "public static void shutdown ()\n\t{\n\t\tif (m_interpreter != null)\n\t\t{\n\t\t\tm_console.dispose ();\n\t\t\tm_interprete...
[ "0.69123226", "0.67802125", "0.676617", "0.6678767", "0.6652848", "0.6484566", "0.64387023", "0.63985634", "0.6385051", "0.6363448", "0.63599837", "0.6326282", "0.6279192", "0.6275638", "0.6218396", "0.6195369", "0.6177087", "0.61728823", "0.61728823", "0.61728823", "0.617288...
0.0
-1
Executes a given file indicated by the script name and returns the final result which was output of the last statement in the script ran. This method will automatically parse the script and execute using internally configured executor.
@SuppressWarnings("unchecked") @CompileStatic public <T> T execute(String scriptName) throws NyException { return (T) execute(scriptName, EMPTY_MAP); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void executeScript(Readable script) throws IOException;", "public String execPHP(String scriptName, String param) {\n\n StringBuilder output = new StringBuilder();\n\n try {\n String line;\n\n Process p = Runtime.getRuntime().exec(\"php \" + scriptName + \" \" + param);\n ...
[ "0.56358236", "0.56162703", "0.56118804", "0.54683495", "0.54578555", "0.5437819", "0.5275453", "0.52336234", "0.5218904", "0.51983637", "0.51867", "0.516004", "0.51226526", "0.5113415", "0.51120377", "0.507147", "0.50635743", "0.5056763", "0.50380135", "0.50310975", "0.49910...
0.62665015
0
Executes a given file indicated by the script name using given set of variables and returns the final result which was output of the last statement in the script ran. This method will automatically parse the script and execute using internally configured executor. Note: You should pass all parameter values required for the query execution.
@SuppressWarnings("unchecked") @CompileStatic public <T> T execute(String scriptName, Map<String, Object> data) throws NyException { QScript script = null; try { script = parse(scriptName, data); return (T) configurations.getExecutorRegistry().defaultExecutorFactory().create().execute(script); } catch (Exception ex) { if (ex instanceof NyException) { throw (NyException) ex; } else { throw new NyScriptExecutionException("Ny script execution error!", ex); } } finally { if (script != null) { script.free(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n @CompileStatic\n public <T> T execute(String scriptName) throws NyException {\n return (T) execute(scriptName, EMPTY_MAP);\n }", "void executeScript(Readable script) throws IOException;", "public void runScript(File script) throws DataAccessLayerException {\n ...
[ "0.5861774", "0.5777596", "0.5543217", "0.5485425", "0.54599714", "0.54148763", "0.5405965", "0.53908426", "0.53657246", "0.5361534", "0.53075457", "0.5256155", "0.5197114", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5166928"...
0.53213245
10
Executes the given select query and fetches subset of result each has rows size of pageSize. This query will run only once in the server and the result rows are paginated. Caution: This execution is NOT equivalent to the db cursors, but this is a JDBC level pagination which makes easier for developers to iterate subset of results efficiently from code rather not loading all result rows into the application memory at once.
@SuppressWarnings("unchecked") @CompileStatic public Iterable<NyQLResult> paginate(String scriptName, int pageSize, Map<String, Object> data) throws NyException { QScript script = new QPagedScript(parse(scriptName, data), pageSize); try { return (Iterable<NyQLResult>) configurations.getExecutorRegistry().defaultExecutorFactory().create().execute(script); } catch (Exception ex) { if (ex instanceof NyException) { throw (NyException) ex; } else { throw new NyScriptExecutionException("Ny script execution error!", ex); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<T> getAllByPaging(Integer size, Integer page) {\n PageHelper.startPage(page, size);\n return mapper.selectAll();\n }", "List<Commodity> selectAll(@Param(\"beginRow\") int beginRow,@Param(\"pageSize\") int pageSize);", "private void processResult(String sql, Consumer<...
[ "0.62167794", "0.6031788", "0.5973129", "0.58790696", "0.58410853", "0.5798064", "0.57837224", "0.5773251", "0.56702244", "0.56234765", "0.5605759", "0.55984914", "0.5578193", "0.5564428", "0.5557462", "0.5539346", "0.5535211", "0.5516377", "0.5515151", "0.5514338", "0.549675...
0.4927643
99
Executes the given script and returns the result as a json string. If you still want to parse the json again, use the other execute method execute(String, Map).
@CompileStatic public String executeToJSON(String scriptName, Map<String, Object> data) throws NyException { Object result = execute(scriptName, data); if (result == null) { return null; } else { return JsonOutput.toJson(result); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@CompileStatic\n public String executeToJSON(String scriptName) throws NyException {\n return executeToJSON(scriptName, new HashMap<>());\n }", "public Object executeScript(String command);", "@Override\n public String runOperation(CallingContext context, RaptureScript script, String ctx, Map<S...
[ "0.7043712", "0.6666381", "0.6263308", "0.6252719", "0.6066311", "0.5944648", "0.5942697", "0.5937885", "0.58959335", "0.58855164", "0.5606182", "0.55583113", "0.5549038", "0.5468481", "0.53671694", "0.5365798", "0.5351669", "0.52813536", "0.52797127", "0.5261356", "0.5253390...
0.7178094
0
Executes the given script and returns the result as a json string. If you still want to parse the json again, use the other execute method execute(String, Map).
@CompileStatic public String executeToJSON(String scriptName) throws NyException { return executeToJSON(scriptName, new HashMap<>()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@CompileStatic\n public String executeToJSON(String scriptName, Map<String, Object> data) throws NyException {\n Object result = execute(scriptName, data);\n if (result == null) {\n return null;\n } else {\n return JsonOutput.toJson(result);\n }\n }", "publ...
[ "0.71768874", "0.66661125", "0.6263639", "0.6251904", "0.60662246", "0.5943734", "0.59423083", "0.59371006", "0.5895136", "0.58837545", "0.56067693", "0.5557971", "0.55492157", "0.5467602", "0.5366255", "0.53649235", "0.53509593", "0.5281259", "0.5278549", "0.5260409", "0.525...
0.7042267
1
Programmatically (using API) do some sequence of operations inside a transaction. This would be useful, specially if you don't want to script your transaction logic externally. In case of an exception, transaction will be rollback automatically, but will throw the exception. Always use the provided nyql instance to execute scripts at all.
@CompileStatic public <T> T doTransaction(String transactionName, BiFunction<NyQLInstance, Map<String, Object>, T> body, Map<String, Object> data, boolean autoCommit) throws NyException { QExecutor executor = null; try (QSession qSession = QSession.create(configurations, transactionName)) { executor = qSession.getExecutor(); executor.startTransaction(); T result = body.apply(this, data); if (autoCommit) { executor.commit(); } return result; } catch (Exception ex) { if (executor != null) { executor.rollback(null); } throw new NyException("An exception occurred inside transaction '$transactionName'!", ex); } finally { if (executor != null) { executor.done(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n public void executeTransaction(ClientTransaction transaction) {\n transaction.preExecute(this);\n getTransactionExecutor().execute(transaction);\n transaction.recycle();\n }", "Transaction beginTx();", "void beginTransaction();", "public void beginTransaction()...
[ "0.6331743", "0.63008547", "0.6096185", "0.60899", "0.5981626", "0.58945173", "0.5869664", "0.584982", "0.5845513", "0.5834968", "0.5827507", "0.5808272", "0.57691497", "0.5715478", "0.5709757", "0.56394625", "0.5625888", "0.5614442", "0.5591582", "0.5574651", "0.5572133", ...
0.57479614
13
Creates a new proxy with the specified class name.
public ProxyModel(String classname) { super(classname); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T create()\n {\n IProxyFactory<T> proxyFactory = getProxyFactory(type);\n T result = proxyFactory.createProxy();\n return result;\n }", "<T> T newProxy(T target, Class<T> interfaceType);", "public static <T> T createProxy(Class<T> serviceCls, String hostName, Integer port) {\n...
[ "0.6642798", "0.66094023", "0.6419302", "0.6387556", "0.62364185", "0.6205842", "0.6050781", "0.59419966", "0.592029", "0.5876734", "0.5722608", "0.571413", "0.5678637", "0.56678337", "0.56669843", "0.5620054", "0.5598193", "0.559124", "0.55882347", "0.55807126", "0.55728394"...
0.6324618
4
This is the app specific ID, only apps with the same ID will be able to communicate
public BlueMeshServiceBuilder uuid( UUID a_uuid ){ uuid = a_uuid; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppID getIdentifier () ;", "public String getApplicationId();", "@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}", "public String getAppID() {\n return appID;\n }", "ApplicationId appId();", "public String getAppId();", "public String getAppid() {\n retu...
[ "0.74793774", "0.7411961", "0.73741174", "0.73726445", "0.73038065", "0.7202788", "0.72005624", "0.72005624", "0.7192832", "0.7060136", "0.68758345", "0.6841755", "0.681686", "0.67557484", "0.6735332", "0.6694711", "0.66852486", "0.6676236", "0.6661412", "0.6661412", "0.66133...
0.0
-1
Enable bluetooth communications for this device
public BlueMeshServiceBuilder bluetooth( boolean enabled ){ bluetoothEnabled = enabled; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void enableBT() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else if (!bluetoothAdapter.isEnabled()) {\n bluetoothAdapter.enable();\n }\n }", "public S<T> bluetooth(Boolean enable){\n\t\t \t \n\t\t\t Bluetooth...
[ "0.7650992", "0.7072177", "0.7063789", "0.693753", "0.68673474", "0.6790485", "0.6764309", "0.6730764", "0.6679061", "0.6611911", "0.6605014", "0.6582707", "0.652993", "0.65140843", "0.6465286", "0.64599395", "0.6457552", "0.6441504", "0.6372136", "0.6356118", "0.63483536", ...
0.6760061
7
DeviceIds are used to specify who a message is intended for
public BlueMeshServiceBuilder deviceId( String a_deviceId ){ deviceId = a_deviceId; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDeviceId();", "UUID getDeviceId();", "@Override\n public int getDeviceId() {\n return 0;\n }", "Integer getDeviceId();", "public void setDeviceId(Integer deviceId) {\n this.deviceId = deviceId;\n }", "public void setDeviceId(Integer deviceId) {\n this.deviceId = ...
[ "0.6383792", "0.6373015", "0.6202585", "0.6033865", "0.59973055", "0.59973055", "0.5936514", "0.5926571", "0.58954406", "0.5889482", "0.5819524", "0.57709247", "0.5737244", "0.5694858", "0.5693457", "0.5681017", "0.565033", "0.5650325", "0.5650325", "0.56328076", "0.56120497"...
0.49425393
89