query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Checks that the given authorization is valid.
private boolean checkAuthorization(KemidAuthorizations authorization, int index) { boolean success = true; if (authorization.isActive()) { success &= validateRoleInKFSEndowNamespace(authorization, index); } return success; }
[ "protected void checkAuthorization() {\r\n\t\tif (myAuthorizationBox.isSelected()) {\r\n\t\t\tif (hasAuthorization) {\r\n\t\t\t\tupdateAuthorization();\r\n\t\t\t} else {\r\n\t\t\t\tinsertAuthorization();\r\n\t\t\t\thasAuthorization = true;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (hasAuthorization) {\r\n\t\t\t\tdelet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given an array of lines from the file, make a bigram hash map with occurences.
public HashMap<String, HashMap<String, Integer>> makeBigrams(List<List<String>> lineLists){ //Loop through each line and remove punctuation. HashMap<String, HashMap<String, Integer>> map = new HashMap<String, HashMap<String, Integer>>(); HashMap<String, Integer> bigramMap; for(List<String> lines: lineLists){ ...
[ "public void mapWords(){\n\t\tString fileName = \"gene.counts\";\n\t\tString line = null;\n\t\t\n\t\ttry{\n\t\t\tFileReader fileReader = new FileReader(fileName);\n\t\t\tBufferedReader bufferReader = new BufferedReader(fileReader);\n\t\t\tthis.wordCount=new HashMap<String,Integer>();\n\t\t\t//this.rareWords=new Has...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decodes the base64 encoded data provided.
protected byte[] decodeBase64(final byte[] encodedData) throws IllegalArgumentException, IOException { if (encodedData == null) { throw new IllegalArgumentException(); } ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(encodedData, 0, encodedData.length); ...
[ "byte[] base64Decode(String data);", "public byte[] decode(String base64Data) throws IOException{\r\n\t\t BASE64Decoder decoder = new BASE64Decoder();\r\n\t\t return decoder.decodeBuffer(base64Data);\r\n\t }", "protected byte[] decodeBase64String(String data) {\n return Base64.decode(data, Base64.NO_WRA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void beforeScript(String arg0, WebDriver arg1) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string safePort = 2;
java.lang.String getSafePort();
[ "public abstract int getDefaultProtocolPort();", "int getPortnum();", "public abstract int port();", "java.lang.String getLocalPort();", "public int getPort() {\n/* 250 */ return this.port;\n/* */ }", "java.lang.String getServerPort();", "int getDefaultVipPort();", "public static String getP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object]
@Override // io.reactivex.functions.Consumer public void accept(Date date) { Date date2 = date; CalendarDataSource calendarDataSource = this.a.getCalendarDataSource(); Intrinsics.checkNotNullExpressionValue(date2, Sort.DATE); if (calendarDataSource.onItemSelected(...
[ "private static Object[] getRealArgs(Object[] args) {\n Object retArgs[] = new Object[args.length];\n for (int ix = 0; ix < args.length; ix++) {\n if (args[ix] instanceof Instance) {\n\tretArgs[ix] = ((Instance)args[ix]).getValue();\n } else {\n\tretArgs[ix] = args[ix];\n }\n }\n return r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
author: xandone created on: 2018/3/13 9:27
public interface JokeContact { int MODE_ONE = 0; int MODE_MORE = 1; interface View extends BaseView { void showContent(List<JokeBean> jokeList, int total); void showContentMore(List<JokeBean> jokeList, int total); } interface Presenter extends BasePresenter<View> { void g...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
UTF8 aware alternative to stristr Returns all of haystack from the first occurrence of needle to the end. needle and haystack are examined in a caseinsensitive manner Find first occurrence of a string using case insensitive comparison
public static String stristr(String string, String search) { return StringTools.subString(string, search, true); }
[ "public int strStr(String haystack, String needle) {\n if (needle.length() == 0) return 0;\n if (needle.length() > haystack.length()) return -1;\n char n = needle.charAt(0);\n for (int i = 0; i < haystack.length() - needle.length()+1; ++i){\n if (haystack.charAt(i) == n){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__SingleReference__Group__5__Impl" $ANTLR start "rule__SingleReference__Group_5__0" ../org.yazgel.titan.xtext.ui/srcgen/org/yazgel/titan/xtext/ui/contentassist/antlr/internal/InternalTitan.g:1530:1: rule__SingleReference__Group_5__0 : rule__SingleReference__Group_5__0__Impl rule__SingleReference__Group_...
public final void rule__SingleReference__Group_5__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.yazgel.titan.xtext.ui/src-gen/org/yazgel/titan/xtext/ui/contentassist/antlr/internal/InternalTitan.g:1534:1: ( rule__SingleReference__Grou...
[ "public final void rule__SingleRef__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../dk.itu.smdp.survey.dsl.ui/src-gen/dk/itu/smdp/survey/ui/contentassist/antlr/internal/InternalDsl.g:6507:1: ( rule__SingleRef__Group__0__Impl ru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Queries for the number of process instances that fulfill given parameters.
public CountResultDto getProcessInstancesCount(String processInstanceIds, String businessKey, String businessKeyLike, String caseInstanceId, String processDefinitionId, String processDefinitionKey, String processDefinitionKeyIn, String processDefinitionKeyNotIn, String deploymentId, String superProcessInstance, String ...
[ "int countByExample(ProcessParametersListHeadExample example);", "long getNumberOfProcessDeploymentInfos(QueryOptions countOptions) throws SBonitaReadException;", "long getNumberOfProcessDeploymentInfosStartedBy(long startedBy, QueryOptions countOptions) throws SBonitaReadException;", "@NotNull\n Long getP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field autocompleteQuery is set (has been assigned a value) and false otherwise
public boolean isSetAutocompleteQuery() { return this.autocompleteQuery != null; }
[ "public boolean isAutoCompleteEnabled() {\n\t\treturn autoCompleteEnabled;\n\t}", "public boolean isHasSuggested() {\n\t\treturn hasSuggested;\n\t}", "public boolean isSetQueryString() {\n return this.queryString != null;\n }", "public boolean isSetUserInput() {\r\n return this.userInput != null;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists the types for a given API.
@Override public ListTypesResult listTypes(ListTypesRequest request) { request = beforeClientExecution(request); return executeListTypes(request); }
[ "List<Type> getAll();", "@GetMapping( value = \"types\")\n public List<String> getTypes() {\n String user = SecurityContextHolder.getContext().getAuthentication().getName();\n return openLineageService.getTypes(user);\n }", "@RequestMapping(value = \"/vehicles/types\", method = RequestMethod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the btree node that is first in the sequence.
public Node<K, V> getFirstNode() { return first; }
[ "private Node getOpenFirst() {\n\t\treturn (Node) open.get(0);\n\t}", "public Node<T> getFirst()\n\t{\n\t\treturn first;\n\t}", "public Node start() {\n if (this.nodes == null) {\n return null;\n }\n\n return this.nodes.get(0);\n }", "public HeapNode getfirstNode() {\n\t\treturn this.firstNode;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether glyph box is too large (too high values for height or width)
boolean isTooLarge (Rectangle bounds);
[ "boolean isSizeAllowed(String width, String height);", "public boolean isElegantTextHeight() { throw new RuntimeException(\"Stub!\"); }", "boolean isTexRectAvailable()\n/* */ {\n/* 652 */ return this.graphicsConfig.isCapPresent(1048576);\n/* */ }", "boolean hasSizeGb();", "public void checkF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RequestParams params = new RequestParams();
public void updateUserProfileImage() { Map<String, String> params = new HashMap<>(); params.put("parentTask", "rechargeApp"); params.put("childTask", "updateUserProfileImage"); params.put("profileImageEncodedData", encodedString); params.put("profileImageName", fileName); ...
[ "public RequestParams() {\n\t}", "IRequestManager params(Map<String, String> params);", "@Override\n public HttpParams getParams() {\n return null;\n }", "static Params getFromRequest(HttpServletRequest request) {\n return new Params(\n getValueFromHeader(request, he...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the first name of this feedback.
@Override public String getFirstName() { return _feedback.getFirstName(); }
[ "public String getFirstName() {\r\n\t\treturn player.getFirstname();\r\n\t}", "@Override\n\tpublic String getFirstName() {\n\t\tString name = firstName;\n\t\treturn name;\n\t}", "public java.lang.String getFirstname()\n {\n return firstname;\n }", "public String getFirstName(){\n\t\t\n\t\treturn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to fetch pages of Article class
public String getPages() { return pages; }
[ "public interface Page<Entity> extends Iterable<Entity> {\n\n /**\n * Returns the number of the current page. Is always non-negative.\n * \n * @return the number of the current page.\n */\n int getPageNumber();\n\n /**\n * Returns the number of elements on the page.\n * \n * @re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Service Interface for managing Ordine.
public interface OrdineService { /** * Save a ordine. * * @param ordineDTO the entity to save * @return the persisted entity */ OrdineDTO save(OrdineDTO ordineDTO); /** * Get all the ordines. * * @param pageable the pagination information * @return the list of ...
[ "public interface AuthorityManagerService {\n EasyuiPageParam authorityList(AuthorityTa authorityTa, Integer page, Integer rows);\n Integer authorityDelete(String ids);\n Integer authorityAdd(AuthorityTa authorityTa);\n Integer authorityUpdate(AuthorityTa authorityTa);\n}", "public interface AreaServi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables
@Override public void actionPerformed(ActionEvent ae) { repaint(); }
[ "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tprotected void initVariable() {\n\t\n\t}", "public void mo17751g() {\n }", "public void mo1857d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "public void mo3914b() {\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the (cache) maxage for css files (videos, archives, ...).
protected int cssMaxAge() { return 0; // always re-validate. }
[ "public long getCacheSize()\r\n \t{\r\n \t\tFile files = new File(mCachePath);\r\n \t\t\t\t\r\n \t\tFileFilter filter = new FileFilter()\r\n \t\t{\r\n \t\t\tpublic boolean accept(File arg0) \r\n \t\t\t{\t\t\t\t\r\n \t\t\t\tif (arg0.getName().contains(\"cache_\"))\r\n \t\t\t\t{\r\n \t\t\t\t\treturn true;\t\t\t\t\t\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Call method to find MST using Kruskal's algorithm Method should print the edges and their weights in the MST Method should return the total weight of the MST
public static int mst_Kruskal (int num_vertices, int num_edges, int[][] graph) { int total_weight=0; /** * Steps for Kruskal's Algorithm: * 1. Select shortest edge in a network * 2. Select the next shortest edge which does not crea...
[ "static void KruskalMST() \n\t{ \n\t\tEdge result[] = new Edge[V]; // Tnis will store the resultant MST \n\t\tint e = 0; // An index variable, used for result[] \n\t\tint i = 0; // An index variable, used for sorted edges \n\t\tfor (i=0; i<V; ++i) \n\t\t\tresult[i] = new Edge(); \n\n\t\t// Step 1: Sort all the edge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A private function called by hasConnectFour to check for descending towards the right wins.
private ArrayList<Spot> hasDiagDownRightConnectFour(Player p, Spot s){ ArrayList<Spot> hasConnectFour = new ArrayList<Spot>(); int yPos = s.getY(); int xPos = s.getX(); int toCheck = this.goal - 1; boolean alreadyHasConnectFour = false; while(xPos > 0 && yPos > 0 && toCheck > 0){ xPos --; yPos --; ...
[ "private Winner checkWinning()\n\t{\n\t\tboolean wFlag,hFlag,wFlag2,hFlag2,p1,p2;\n\t\tWinner w;\n\t\tp1 = false;\n\t\tp2 = false;\n\t\tfor (int p=-1;p<2;p=p+2)\n\t\t{\n\t\t\tboolean[] diagonalFlags = {true, true, true, true, true, true, true, true};\n\t\t\tfor (int i=0;i<6;i++)\n\t\t\t{\n\t\t\t\twFlag = true;\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_voter, container, false); db = FirebaseFirestore.getInstance(); voterDetails = (Voter) getActivity().getIntent().getSeri...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create a combination federate from a federate info object combination federates are both value federates and message federates, objects can be used in all functions that take a helics_federate, helics_message_federate or helics_federate object as an argument
public static SWIGTYPE_p_void helicsCreateCombinationFederate(String fedName, SWIGTYPE_p_void fi) { long cPtr = helicsJNI.helicsCreateCombinationFederate(fedName, SWIGTYPE_p_void.getCPtr(fi)); return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false); }
[ "public static void main(String[] args) {\n Cliente uno=fabrica.fabricarCliente(\"Andrey\",\"232\");\n \n restaurante =new Restaurante(\" \",\" DUKE's CAFE \",\"2460-32-45\",\" 50 mts este del parque central \",\"javarestaurant@gmail.com\");\n restaurante.registrarCliente(uno);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoked when a window is in the process of being closed. The close operation can be overridden at this point.
@Override public void windowClosing(WindowEvent e) { Database.getTheInstance().shutdown(); exit(0); }
[ "protected void windowClosed() {\n\t\tSystem.exit(0);\n\t}", "protected void windowClosed() {\r\n \t\r\n \t// TODO: Check if it is safe to close the application\r\n \t\r\n // Exit application.\r\n System.exit(0);\r\n }", "protected void afterWindowClosed(Window window) {\n }", "pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 40: / 41:
PromiseTask(EventExecutor executor, Runnable runnable, V result) /* 42: */ { /* 43: 51 */ this(executor, toCallable(runnable, result)); /* 44: */ }
[ "public static void _20 () {\n }", "public int method_5482() {\r\n return 4;\r\n }", "public void mo9560p() {\n }", "public void mo26342c() {\n }", "public void mo3916d() {\n }", "private static void EX5() {\n\t\t\r\n\t}", "public static void Q22()\r\n\t{\r\n\t}", "public int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use this factory method to create a new instance of this fragment using the provided parameters.
public static MonthCalendarFragment newInstance(int year, int month) { MonthCalendarFragment fragment = new MonthCalendarFragment(); Bundle args = new Bundle(); args.putInt(ARG_PARAM1, year); args.putInt(ARG_PARAM2, month); fragment.setArguments(args); return fragment; ...
[ "public static PostFragment newInstance() {\n PostFragment fragment = new PostFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public H...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure that a storage with the specified name is created. This method may block, so it must not be called on the service thread.
public void ensureStorage(com.tangosol.util.LongArray laCaches) { // import com.tangosol.util.LongArray$Iterator as com.tangosol.util.LongArray.Iterator; String[] asCacheNames = new String[laCaches.getSize()]; long[] alCacheIds = new long[asCacheNames.length]; ...
[ "public Storage createStorage (String name,\n\t\t\t\t\t\t\t\t String description,\n\t\t\t\t\t\t\t\t StorageType type,\n\t\t\t\t\t\t\t\t int size, \n\t\t\t\t\t\t\t\t String fstype) throws OCCIException;", "@Test\n public void testCreateStorage()\n {\n StorageCreateRequest storageCreateRequest ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If you're trying to use null values in a Set or as a key in a Map don't; it's clearer (less surprising) if you explicitly specialcase null during lookup operations. If you want to use null as a value in a Map leave out that entry; keep a separate Set of nonnull keys (or null keys). It's very easy to mix up the cases wh...
public void testAboutNullInCollection(){ }
[ "@Test(expected = NullPointerException.class)\n public void testContainsKeyWithNull() {\n m.containsKey(null);\n }", "public static void main(String[] args) {\n\n Map<Object, Object> map = new HashMap<>();\n map.put(null, 1);\n System.out.println(map.get(null));\n\n Map<Ob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test ob der Name richtig angezeigt wird.
@Test public void testDisplayName() { assertEquals("Studierendenzufriedenheit", new StudentHappiness().getName("de")); assertEquals("Student happiness", new StudentHappiness().getName("en")); }
[ "private boolean verifyName() {\n\n\n return true;\n }", "public boolean hasName();", "boolean hasWonnaeSayuName();", "boolean hasEnName();", "private static boolean isValidName(String name) {\n return !name.isEmpty();\n //TODO: implement a better validation\n }", "public boolea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public static CharSetEnum m11053a(String str) { CharSetEnum[] values = values(); for (CharSetEnum dVar : values) { if (dVar.mo21091b().equals(str)) { return dVar; } } return null; }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
every 10th element goes into a different stream
@Override public String getTargetStream(String element) { if (element.split("-")[0].endsWith("0")) { return "flink-test-2"; } return null; // send to default st...
[ "public Stream iterateStream() {\n return Stream.iterate(2, x -> x++).limit(10);\n }", "private static void direct() {\n DirectProcessor<Long> data = DirectProcessor.create();\n data.take(2).subscribe(System.out::println);\n data.onNext(10L);\n data.onNext(11L);\n data...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
recogemos todos los datos de la tabla con el id del Cliente con el que logueamos
public void mostrar(){ BaseDeDatos b = new BaseDeDatos(this, "DBUsuarios", null, 1); SQLiteDatabase bd = b.getReadableDatabase(); if(bd != null) { Cursor c = bd.rawQuery("SELECT * FROM pedidos WHERE idCliente = "+id, null); int cont = c.getCount(); ...
[ "public void cargarClientes(){\n try{\n Connection conn = Conexion.GetConnection();\n try {\n st = conn.createStatement();\n cli = st.executeQuery(\"SELECT * FROM Clientes\");\n } catch (SQLException e) {\n JOptionPane.showMessageD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
AuthorizationBusinessLogic autho = new AuthorizationBusinessLogic(m_conn);
public ProjectData[] getAllProjectData(long sessionid, String modul) throws Exception { try{ // if(!autho.isAuthorized(sessionid, modul, pohaci.gumunda.aas.dbapi.IDBConstants.ATT_CREATE)){ // throw new AuthorizationException("Authorization read of module " + modul + " ditolak"); // } IProjec...
[ "public VIACAuthorization()\r\n {\r\n\r\n }", "protected Logic(){\n\t\tdb = new Database();\t//\tOpen db.\n\t}", "private BAuthorizationMeta() {\n }", "public ApplicationLogic() {\n\t\tcommunicationLogic = new CommunicationLogic();\n\t}", "public LoginObj() {\n }", "public interface BrokerDBAu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create cluster Creates an Elasticsearch cluster.
@Test public void createEsClusterTest() throws ApiException { CreateElasticsearchClusterRequest body = null; Boolean validateOnly = null; String requestId = null; ClusterCrudResponse response = api.createEsCluster(body, validateOnly, requestId); // TODO: test validations ...
[ "public Client create() throws Exception {\n // Pull values from the Tomcat Context XML.\n String cluster = \"\";\n String server = \"localhost\";\n Integer port = 9300;\n String timeout = null;\n Boolean enableCompression = false;\n\n // default timeout to 5 seconds...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If there's an animation in progress, cancel it immediately and proceed with this one.
private void zoomImageFromThumb(final View thumbView, String imageRes) { if (mCurrentAnimator != null) { mCurrentAnimator.cancel(); } // Load the high-resolution "zoomed-in" image. final ImageView expandedImageView = (ImageView) findViewById( R.id.expanded_im...
[ "public void cancelAnimation() {\n\t\ttweenManager.update(1000000);\n\t}", "@BinderThread\n @Override\n public void onAnimationCancelled() {\n postAsyncCallback(mHandler, () -> {\n finishExistingAnimation();\n getFactory().onAnimationCancelled();\n });\n }", "@Overri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a human readable representation of the current note for debug purposes.
@Override public String toString() { return "Note - name: " + getPitch() + " length: " + getLength(); }
[ "public String toString()\r\n\t\t{\r\n\t\t\treturn note;\r\n\t\t}", "public String toString () {\n return noteIO.toString();\n }", "public java.lang.String getNote() {\n java.lang.Object ref = note_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method returns the value of the database column project_list.SETUP_DATE
public String getSetupDate() { return setupDate; }
[ "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _ddlRecordVersion.getCreateDate();\n\t}", "@Override\r\n\tpublic java.util.Date getCreateDate() {\r\n\t\treturn _esfTool.getCreateDate();\r\n\t}", "public java.util.Date getCreateDate() {\n\t\treturn _uVersion.getCreateDate();\n\t}", "public java.util.Da...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the closeoutReportTypePatent attribute.
public String getCloseoutReportTypePatent() { return closeoutReportTypePatent; }
[ "public String getWriteoffType() {\n return writeoffType;\n }", "public OpReportType getType() {\r\n return type;\r\n }", "public String getPatentType() {\r\n\t\treturn patentType;\r\n\t}", "public String getPoType() {\n return (String)getAttributeInternal(POTYPE);\n }", "public S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String fileName = null;
public String putFile(String savedFileName, byte[] bytes, int i) { String server = null; String filePath = ""; String qiniuSpace = "yixuejia-item"; switch (i){ case 1: qiniuSpace = "yixuejia-item"; break; case 2: ...
[ "@Override\r\n\tpublic String getFileName() {\n\t\treturn null;\r\n\t}", "public String getFileName(){\n\treturn fileName;\n }", "public String getFileName() {\n/* 276 */ return this.fileName;\n/* */ }", "public String getFileName() ;", "public String getFileName()\r\n {\r\n return fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
each time we run the test will create new file, therefore we need to delete the previous one, so that we keep Unit test independently
@Before public void deletion(){ File file = new File("test1.txt"); file.delete(); }
[ "@After\n public void tearDown() throws Exception {\n file.delete();\n\n }", "protected void tearDown() {\n File fooDirectory = new File(tempDirectory, \"foo\");\n fooDirectory.delete();\n }", "protected void tearDown() throws Exception\n\t{\n\t testfile.delete();\n\t}", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rolls back all changes performed by the acceptChanges() to the last Savepoint transaction marker.
public void rollback(Savepoint s) throws SQLException { throw new UnsupportedOperationException(); }
[ "public void rollback() {\r\n if (mPreviousNetworkManagerStates.size() == 0) {\r\n throw new IllegalStateException(\r\n \"There is no savepoint to rollback to: create one first.\");\r\n }\r\n\r\n NetworkManagerState.restorePreviousState(this, mPreviousNetworkManage...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean onTouch(View v, MotionEvent event) { Location location=new Location(""); location.setLatitude(transYToLoc(event.getY())); location.setLongitude(transXToLoc(event.getX())); try { AppSingleton.getInstance().getMapController().setLocation(location); tv.setText("Lat: " ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a secret and assigns to given groups
@Timed @ExceptionMetered @POST @Consumes(APPLICATION_JSON) @LogArguments public Response createSecret(@Auth AutomationClient automationClient, @Valid CreateSecretRequestV2 request) { permissionCheck.checkAllowedForTargetTypeOrThrow(automationClient, Action.CREATE, Secret.class); // allows new ver...
[ "void store(List<String> groups, String name, String credentialValue) throws StageException;", "default void createSecret(\n com.google.cloud.secretmanager.v1.CreateSecretRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.secretmanager.v1.Secret> responseObserver) {\n io.grpc.stub....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of crearestudianteDAOBD method, of class EstudianteDAOBD.
@Test public void testCrearestudianteDAOBD() { System.out.println("crearestudianteDAOBD"); Estudiante est = null; String table = ""; EstudianteDAOBD instance = new EstudianteDAOBD(); boolean expResult = false; boolean result = instance.crearestudianteDAOBD(est, table)...
[ "@Test\r\n public void testGenerateOD() throws Exception {\r\n System.out.println(\"generateOD\");\r\n GenerateODService instance = new GenerateODService();\r\n OperResult expResult = null;\r\n OperResult result = instance.generateOD();\r\n// assertEquals(expResult, result);\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000 / renamed from: g
public SortedMap<C, V> mo30578g() { SortedMap<C, V> sortedMap = this.f21622T; if (sortedMap == null || (sortedMap.isEmpty() && C7888h6.this.f21146N.containsKey(this.f21173O))) { this.f21622T = (SortedMap) C7888h6.this.f21146N.get(this.f21173O); } return th...
[ "protected void method_5557() {}", "public void m2349g() {\n }", "@Override\n\tpublic void g() {\n\t\t\n\t}", "public abstract gg m20738a();", "protected void mo4791d() {\n }", "public void mo28221a() {\n }", "private B000066() {\r\n\r\n\t}", "public abstract void mo30462c();", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Produto getProduto() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Property names and values, used to configure Data Proc and MapReduce. map&lt;string, string&gt; properties = 5;
public Builder putAllProperties( java.util.Map<java.lang.String, java.lang.String> values) { internalGetMutableProperties().getMutableMap() .putAll(values); return this; }
[ "public void putPropertyValues( Properties props );", "public void setProperties(Map<String, Object> properties)\n {\n PageUtils.checkMandotaryParam(\"Expected Properties Map\", properties);\n \n for (Map.Entry<String, Object> entry : properties.entrySet())\n {\n String p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
verifyToolTip using mattooltip attribute Note: please write different memthod
public boolean verifyToolTip(By element,String tooltipAttribute,String expectedMessage) throws Exception { try { @SuppressWarnings("unused") boolean xyz =ValidateExistenceOfElement(element); WebElement element1 = Driver.get().findElement(element); String toolTipActual = element1.getAttribute(tooltipAtt...
[ "public void testGetToolTipText() {\n String toolTipText1 = \"toolTipText1\";\n String toolTipText2 = \"toolTipText2\";\n assertNull(panel.getToolTipText());\n panel.setToolTipText(toolTipText1);\n assertTrue(panel.getToolTipText().equals(toolTipText1));\n panel.setToolTipT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if vertex p lies in the circumcircle of the triangle
public boolean inCircumCircle(Vertex p) { double ccx = ccc.getX(); double ccy = ccc.getY(); return Math.sqrt(Math.pow(p.getX() - ccx, 2) + Math.pow(p.getY() - ccy, 2)) <= ccr; }
[ "public boolean isPointInCircumcircle(Vector2D point) {\n double a11 = a.x - point.x;\n double a21 = b.x - point.x;\n double a31 = c.x - point.x;\n\n double a12 = a.y - point.y;\n double a22 = b.y - point.y;\n double a32 = c.y - point.y;\n\n double a13 = (a.x - point...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a number format in this spinner.
public void setNumberFormat(NumberFormat numberFormat) { this.numberFormat = numberFormat; }
[ "protected void setFormat( NumberFormat format ) \n {\n m_format = format;\n }", "public void setLabelNumberFormat(final NumberFormat NUMBER_FORMAT) {\n model.setLabelNumberFormat(NUMBER_FORMAT);\n reInitialize();\n }", "IProgressStyle numberFormat(NumberFormat f);", "public Numb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { A aa1 = new A(); aa1.setName("张三"); aa1.start(); A aa2 = new A(); aa2.setName("李四"); aa2.start(); A aa3 = new A(); aa3.start(); System.out.println(Thread.currentThread().getName()); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by YangXiaoyu on 2017/12/29.
public interface ClickInterface { void onItemclick(int position); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build call for privateWithdrawGet
public okhttp3.Call privateWithdrawGetCall(String currency, String address, BigDecimal amount, String priority, String tfa, final ApiCallback _callback) throws ApiException { Object localVarPostBody = new Object(); // create path and map variables String localVarPath = "/private/withdraw"; ...
[ "org.jgn.api.proto.ApiProto.Withdraw getWithdraw();", "public static void withdraws() {\n\t\tMap<String, String> req = new TreeMap<String, String>();\r\n\t\treq.put(\"WithdrawMoneymoremore\", \"m15698\");\r\n\t\treq.put(\"PlatformMoneymoremore\", \"p422\");\r\n\t\treq.put(\"OrderNo\", \"10000021870022\");\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String s="a3b2c4"; char a[]=s.toCharArray(); int i=0; for(char c:a) { if(Character.isDigit(c)) { int res=Character.getNumericValue(c); for(int k=1;k<=res;k++) { System.out.print(a[i-1]); } } i++; } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Path to Katalon project.
String getKatalonProjectPath();
[ "public String getProjectPath();", "public String getPath() {\n return jproject.getTopDir();\n }", "IPath getProjectPath();", "@Override\n\tpublic String getPhysicalPath() {\n\t\treturn \"/usr/share/trac/projects/\" + this.getArtifactId();\n\t}", "public static String getAppPath() {\n\t\treturn Sy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new member.
public Member(Long id){ super(); this.id = id; }
[ "public Member() {\n\t\tsuper();\n\t}", "private static Member createMember(TokenIO tokenIO) {\n // Generate a random username.\n // If we try to create a member with an already-used name,\n // it will fail.\n // If a domain alias is used instead of an email, please contact Token\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the id of the rule used to process xml.
public long getRuleId() { return m_ruleId; }
[ "String getRuleID();", "public TerminalRule getIDRule() {\n\t\treturn gaXbaseWithAnnotations.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaProperties.getIDRule();\n\t}", "public String getRuleSetId() \n {\n return ruleSetId;\n }", "public Number getRuleId1() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fixed32 endyear = 3;
public int getEndyear() { return instance.getEndyear(); }
[ "public int getFakeYear()\r\n {\n return year+899;\r\n }", "void setYear(int y)\r\n {\r\n year = (short)y;\r\n }", "Integer getYearOfRelease();", "private static int getYear(){\n return Input.getYear();\n }", "public void setExpirationYear(int tmp) {\n this.expirationY...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes on failure of the API task.
void onError();
[ "public void onFail();", "@Override\n public void TaskOnFailure() {\n }", "public void fail() {\n synchronized (this) {\n if (mStatus.equals(Status.IN_PROGRESS)) {\n try {\n final int requestType = mInfo.getRequestType();\n switch (req...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean tap(float x, float y, int count, int button) { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description: PTPool scan for local commit(Algo3) void
public void PTPoolScan() throws IOException { List<Transaction> localTransactionsToBeRemoved = new ArrayList<Transaction>(); Iterator<Transaction> iterator = PTPool.iterator(); while (iterator.hasNext()) { Transaction pt = iterator.next(); boolean isCommitable = true; ...
[ "public void run() {\n \t\tsynchronized (this) {\n \t\t\tif (LOG.isDebugEnabled()) \n \t\t\t\tLOG.debug(\"### start commit. pending=null\");\n \t\t\t\n \t\t\tmPending = null; // allow a new commit to be scheduled\n \t\t}\n\n \t\tISearchRequest req = null;\n \t\t\n \t\ttry {\n \t\t\treq = mCore.createLoca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated string branches = 4;
public com.google.protobuf.ProtocolStringList getBranchesList() { return branches_; }
[ "public static String pickBranch()\n { //String str=Long.toString(Math.abs(Random.nextLong()),16);\n //if (str.length()<5) str+=\"00000\";\n //return \"z9hG4bK\"+str.substring(0,5);\n return \"z9hG4bK\"+Random.nextNumString(5);\n }", "static String generateBranchNumber(char type, int count) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .nwkAddressStruct_t dstAddr = 3; destination address target of the binding
private com.google.protobuf.SingleFieldBuilder< nwkmgrPb.nwkAddressStruct_t, nwkmgrPb.nwkAddressStruct_t.Builder, nwkmgrPb.nwkAddressStruct_tOrBuilder> getDstAddrFieldBuilder() { if (dstAddrBuilder_ == null) { dstAddrBuilder_ = new com.google.protobuf.SingleFieldBuilder< ...
[ "private static native void setDstBinding0(Buffer ptr, int _dstBinding);", "private static native int getDstBinding0(Buffer ptr);", "static void Z41_ssN0_dddd_addr(void)\n{\n\tGET_DST(OP0,NIB3);\n\tGET_SRC(OP0,NIB2);\n\tGET_ADDR(OP1);\n\taddr += RW(src);\n\tRW(dst) = ADDW( RW(dst), RDMEM_W(addr) );\t/* ASG */\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column tdx_company_shareholders.company_id
public void setCompanyId(String companyId) { this.companyId = companyId; }
[ "public void setCompanyID(int companyID)\n {\n this.companyID = companyID;\n }", "public void setCompanyId(long companyId) {\r\n this.companyId = companyId;\r\n setChanged(true);\r\n }", "public void setCompanyid(Integer companyid) {\r\n this.companyid = companyid;\r\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of putCardBack method, of class CardGame.
@Test public void testPutCardBack() { System.out.println("putCardBack"); int deckNo = 0; Card card = null; CardGame.putCardBack(deckNo, card); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
[ "@Test\r\n\tpublic void testPop() {\r\n\t\tCard card1 = new Card(\"Spades\", 1, 1, 1);\r\n\t\tstack.push(card1);\r\n\t\tAssertJUnit.assertEquals(card1, stack.pop());\r\n\t}", "private void goBack(){\n if(getCurrentCard() != homePanel && getCurrentCard() != successPanel){\n if(getCurrentCard() ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Splits a command string into parts, respecting escapes and quotes.
@Nonnull private List<String> splitCommand(@Nonnull String command){ List<String> segments = new ArrayList<>(); var builder = new StringBuilder(); var chars = command.toCharArray(); char escapeChar = 0; for(int i = 0; i < chars.length; i++){ char c =...
[ "public String[] splittCommand(String command) {\n\t\tArrayList<String> commands = new ArrayList<String>();\n\t\tString[] forreturn = new String[0];\n\n\t\tboolean ignore = false;\n\n\t\tStringBuilder next = new StringBuilder();\n\t\tfor (char c : command.toCharArray()) {\n\t\t\tif (c == '\\'') {\n\t\t\t\tignore = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'lastModifiedDate' field.
public com.opentext.bn.converters.avro.entity.FgFaStatusEvent.Builder setLastModifiedDate(java.lang.Long value) { validate(fields()[21], value); this.lastModifiedDate = value; fieldSetFlags()[21] = true; return this; }
[ "public void setLastModifiedDate(Date lastModifiedDate) {\r\n\t\tthis.lastModifiedDate = lastModifiedDate;\r\n\t}", "public void setLastModified(final Date lastModified) {\r\n this.lastModified = lastModified;\r\n }", "public void setLastModifiedDate(DateTime value)\n {\n \tlastModifiedDate = va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Softlock a cache item.
public final SoftLock lockItem(Object key, Object version) throws CacheException { region.getCache().lock(key); try { Lockable item = (Lockable) region.getCache().get(key); long timeout = region.nextTimestamp() + region.getTimeout(); final Lock lock = (item == null) ?...
[ "long tryLock(String lockKey);", "public void lock() { \n sync.acquireShared(1);\n }", "public void softLock(final TransactionContext tx, final OID oid, final int timeout)\r\n throws LockNotGrantedException {\r\n TypeInfo typeInfo = getTypeInfo(oid.getTypeName());\r\n typeInfo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1. check if nextNode is null
public void insertBeforeNode(Node nextNode, int data) { if (nextNode == null) { System.out.println("Given next node can't be null"); return; } // 2. create and allocate data as new node Node newNode = new Node(data); // 3. make next node to next of new node newNode.next = nextNode; // 4. make prev...
[ "private boolean hasNext(Node pointer){\r\n\t\treturn (pointer.next!=null);\r\n\t}", "@Test\n public void whenLastNodeNullThenReturnFalse() {\n this.nodes[size - 1].next = null;\n assertThat(this.cycleList.hasCycle(this.nodes[0]), is(false));\n }", "private boolean isItNull(Node<T> node) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: c
static File m3088c(Context context) { return new File(context.getDir("e_qq_com_plugin", 0), "gdt_plugin.jar.sig"); }
[ "@Override\n\tpublic void c() {\n\t\t\n\t}", "@Override\r\n\tvoid c() {\n\t\t\r\n\t}", "protected void c() {\n\n\t}", "void mo3976c(C5247d c5247d);", "void mo62419c();", "void m28293a(C5003c c5003c, C5006e c5006e);", "void mo24495a(C12578a c12578a);", "void mo22731b(C33642d c33642d);", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
insert sealife information into database
public void insertSealife(SQLiteDatabase sqLiteDatabase) { sqLiteDatabase.execSQL("INSERT INTO sealife (name, description) VALUES ('seahorse','Average lifespan of seahorse is 3 years. Seahorses prefer to swim in pairs with their tails linked together. However, they are even slower than snails, which is 150 cm p...
[ "public void insert(String id, String name, String email, String dob, String gender, String address, String phone_no, String password){\r\n try {\r\n String insertInstructor = \"insert into instructor(ins_id, name, email, dob, gender, address, phone_no, password)\"+\"values(?,?,?,?,?,?,?,?)\";\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as attribute value for TECHNICAL_CONTACT_ID using the alias name TechnicalContactId
public void setTechnicalContactId(Number value) { setAttributeInternal(TECHNICALCONTACTID, value); }
[ "public void setCONTACTID(long value) {\r\n this.contactid = value;\r\n }", "public void setSupplierContact(String id, String contact);", "public Builder setContactId(int value) {\n \n contactId_ = value;\n onChanged();\n return this;\n }", "public void setContact_id(Long cont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void run() { while(true){ WorkAndChannel wch=QueueHandler.dequeueOutboundWorkAndChannel(); WorkMessage msg=wch.getMsg(); /*if(msg.getReq().getRequestType() == RequestType.WRITEFILE){ System.out.println(" "); }*/ ChannelFuture cf =null; Channel channel=wch.getChannel(); if(ms...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string s2c_msg = 2;
public Builder clearS2CMsg() { bitField0_ = (bitField0_ & ~0x00000002); s2CMsg_ = getDefaultInstance().getS2CMsg(); onChanged(); return this; }
[ "public void setMessage2(String message2){\n this.message2 = message2;\n }", "public com.futu.opend.api.protobuf.Notify.S2C getS2C() {\n return s2C_;\n }", "CtoSMessage parseInCtoSMessage(String message);", "public pomelo.area.ActivityHandler.totalInfo getS2CData() {\n if (s2CDataBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new centroid. POST /andromeda/centroid?username=$BIGML_USERNAME;api_key=$BIGML_API_KEY; HTTP/1.1 Host: bigml.io ContentType: application/json
@Deprecated public JSONObject create(final String clusterId, JSONObject inputDataJSON, String args, Integer waitTime, Integer retries) { return create(clusterId, inputDataJSON, (JSONObject) JSONValue.parse(args), waitTime, retries); }
[ "public NormalizedCentroidCluster()\n {\n super();\n\n this.setNormalizedCentroid(null);\n }", "private Map<String, ITermsVector> calculateNewCentroids(Map<String, ICluster> input) throws Exception {\n\t\tMap<String, ITermsVector> vectors = new HashMap<>();\n\t\tfor (String cat : input.keySet(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get values from text fields
private void calculateFutureValue() { double invstAmount = Double.parseDouble(tfInvestmentAmount.getText()); double numYears = Double.parseDouble(tfNumberOfYears.getText()); double monthlyRate = Double.parseDouble(tfAnnualInterestRate.getText()) / 12 / 100; //Calculate Future Value double futureValu...
[ "private void getTextfromEdittext() {\n\t\tusername = EDTUserName.getText().toString();\n\t\tpassword = edtreg_password.getText().toString();\n\t\taddress = Edtaddress.getText().toString();\n\t\temailid = regETemail.getText().toString().trim();\n\t\tdob = EdtDob.getText().toString();\n\t\tbankac = EdtBanknumber.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Enabled aggressive block sorting Enabled unnecessary exception pruning Enabled aggressive exception aggregation
private int putListener(Object object) { if (object == null) { return 0; } Object object2 = this.mListenerMapLock; synchronized (object2) { int n; do { n = this.mListenerKey; this.mListenerKey = n + 1; } whil...
[ "@Override\n public int getBlockSortingIndex() {\n return 5;\n }", "@Test\n\tpublic void badSortOrderVersion() throws Exception {\n\t\ttry (ChangeSimplifier simplifier = new ChangeSimplifier()) {\n\t\t\tsimplifier.setChangeSink(new NullChangeWriter());\n\t\t\tsimplifier.initialize(new HashMap<String,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the current page index.
public int getCurrentPageIndex() { return currentPageIndex; }
[ "public int getCurrentIndex() { // from 1 to PAGE_NUM\n if (mPageSize < 2) {\n return 0;\n }\n int index = getCurrentItem();\n if (index <= 0) index = mPageSize - 2;\n if (index >= (mPageSize - 1)) index = 1;\n return index;\n }", "public String getPageInde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check the user is admin or not
public static boolean isAdmin(String username, String password){ return isInRole(username, password, ADMIN_ID); }
[ "private Boolean isAdmin(){\n return userController.getUser().getUserType().getId() == UserTypeDAO.USER_TYPE_ADMIN;\n }", "@Override\n\tpublic boolean isAdmin() {\n\t\treturn \"admin\".equals( getUsername() );\n\t}", "boolean isUserAdmin(int id);", "public static boolean isAdmin() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Value the default leg, assuming any possible payout is received at maturity.
private double valueContingentLegPayOnMaturity(final double recoveryRate, final Timeline timeline, final ISDACurve hazardRateCurve) { final int maturityIndex = timeline.getTimePoints().length - 1; if (timeline.getTimePoints()[maturityIndex] < PRICING_TIME) { return 0.0; } final double loss = 1....
[ "public Value getDefaultValue() {\n/* 101 */ return ValueConstants.NORMAL_VALUE;\n/* */ }", "protected void settoDefault(){\n\t\tif(myLink==null)\n\t\t\treturn;\n\t\tdouble simDtInSeconds = myLink.getMyNetwork().getMyScenario().getSimdtinseconds();\n\t\tdouble lengthInMeters = myLink.getLengthInMeters()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the value of a Property for this Entity. (Internal Version)
@SuppressWarnings("unchecked") final <V> V getValue (Property <V> theProp) { return (V) myPropValueArr[theProp.getIndex ()]; }
[ "public String getProperty()\n {\n return property;\n }", "public String getProperty() {\n return property;\n }", "String getProperty() {\n return property;\n }", "SimplePropertyType getProperty();", "public JCRPropertyWrapper getProperty() {\n return property;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ TimeoutDialogue public methods /
public static int drawTimeoutDialog(String player){ TimeoutDialogue.getInstance(); return TimeoutDialogue.launchDialogue(boardView.getChessBoard(), player); }
[ "public void timeout() ;", "@Override\n public void onTimeOut() {\n }", "private Timeout(int timeOut) {\r\n\r\n\t\tthis.timeOut = timeOut;\r\n\t}", "public void fireTimeoutTimer() {\n\n if (logger.isLoggingEnabled(LogWriter.TRACE_DEBUG))\n logger.logDebug(\"fireTimeoutTimer \" + this);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new MyStock object
public Stock(String tickerSymbol, int pricePerShare, int sharesHeld) { this.tickerSymbol = tickerSymbol; this.pricePerShare = pricePerShare; this.sharesHeld = sharesHeld; }
[ "public Stock(String name) {\n\t\tstockName = name;\n\t}", "public SDbStock() {\n super(SModConsts.S_STK);\n initRegistry();\n }", "public Stock(String symbol, String name){\r\n this.symbol = symbol;\r\n this.name = name;\r\n }", "public ScGoodsStock () {\n\t\tsuper();\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the left side operand of this operation.
public DataDescriber<? extends TemporalValue<?>> getLeft() { return left; }
[ "BaseExpression getLeftExpression();", "public communication.Communication.ComparisonOperator getLeftOperator() {\n communication.Communication.ComparisonOperator result = communication.Communication.ComparisonOperator.valueOf(leftOperator_);\n return result == null ? communication.Communication.Com...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table user
public void or(Criteria criteria) { oredCriteria.add(criteria); }
[ "@SqlQuery(\"SELECT * FROM utilisateur order by mail asc\")\n\t@RegisterMapperFactory(BeanMapperFactory.class)\n\tList<User> all();", "@Select({\n \"select\",\n \"id, email, reg_time, gender, birthday, pwd, salt, status, gmt_modified, gmt_created\",\n \"from bm_user\",\n \"where id = #...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A very longwinded way of making an AbstractSelect internal value visible
public interface IAbstractSelect<T> extends Container, Container.Viewer, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.ItemSetChangeNotifier, Container.ItemSetChangeListener, Property.Viewer, Property.ValueChangeNotifier, Property<T>, Component { public void setInterna...
[ "Select getSelect();", "protected Object selectValue()\n{ return null; }", "public abstract boolean getSelect();", "SelectType getSelect();", "Select selectFieldInstance();", "public interface Selectable {\n public void setSelected (boolean selected);\n public boolean isSelected ();\n}", "@Overrid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by user on 1/20/2018.
interface BottomNavigationViewBehaviour { }
[ "public Date getCreatedAt()\r\n/* 93: */ {\r\n/* 94:79 */ return this.createdAt;\r\n/* 95: */ }", "@Override\r\n\tpublic Date getDateCreation() {\n\t\treturn super.getDateCreation();\r\n\t}", "public Date getCreated()\r\n {\r\n return created;\r\n }", "public Long getDateCreation() {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method setCode Set the 'code' class variable
public int setCode(Float code) { try { if (code.floatValue() == FLOATNULL) { setCode(INTNULL); } else { setCode(code.intValue()); } // if (code.floatValue() == FLOATNULL) } catch (Exception e) { setCodeError(INTNULL, e, ERRO...
[ "protected void setCode(int code) { this.code = code; }", "public void setCode (String code)\n {\n this.code = code;\n }", "public void setCode(java.lang.String code) { \n this.code = code; \n }", "protected void setCode(JCode code) {\n assert null == this.code;\n this.code =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add New Fruit into the game
public void addFruit(Fruit f) { numOfFruits++; fruitHash.put(f.getId(),f); }
[ "public void addFruit() {\r\n\t\titems.add(new Fruit());\r\n\t}", "public synchronized void addFruit() {\n\n\t\tfor (int j = 0; j < 5; j++) {\n\n\t\t\ttype = bag.nextInt(3);\n\n\t\t\tif (type == 0) {\n\t\t\t\tPear pear = new Pear();\n\t\t\t\tfruitBag.add(pear);\n\t\t\t\tSystem.out.println(\"- Pear with \" + pear....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the param2 field.
public void setParam2 (String param2) { this.param2 = param2; }
[ "public void setValue2(final V2 value2) {\r\n this.value2 = value2;\r\n }", "public int getParam2() {\n return this.param2;\n }", "public void setArg2(java.lang.String param) {\n localArg2Tracker = param != null;\n\n this.localArg2 = param;\n }", "public String getPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle presses on the action bar items
@Override public boolean onOptionsItemSelected(MenuItem item) { String t = (String) item.getTitle(); switch (item.getItemId()) { case R.id.music: startMusic(); item.setVisible(false); MenuItem itt = this.menu.findItem(R.id.music_stop); ...
[ "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n default:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a job collection.
SchedulerOperationStatusResponse create(String cloudServiceName, String jobCollectionName, JobCollectionCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException;
[ "Publisher<Success> createCollection(String collectionName, CreateCollectionOptions options);", "Publisher<Success> createCollection(ClientSession clientSession, String collectionName, CreateCollectionOptions options);", "void createCollectionWithDocument(String collectionName, String documentName){\n St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method, prints the symbols in the scalars list
public void printScalars() { for (ScalarSymbol ss: scalars) { System.out.println(ss); } }
[ "public void print(){\n\t\tfor (int i = 0; i < terms.size(); i++){\n\t\t\t//Doesn't print out a plus sign if it is the last term in the Polynomial\n\t\t\tif (i != terms.size() - 1){\n\t\t\t\tSystem.out.print(terms.get(i) + \" + \");\n\t\t\t} else{\n\t\t\t\tSystem.out.print(terms.get(i));\n\t\t\t}\n\t\t}\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns one of the tiles in the deck and removes it.
public Tile getTile() { Tile toReturn = tiles.get((int) (Math.random() * tiles.size())); tiles.remove(toReturn); // remove() doesn't return anything return toReturn; }
[ "public Carte hit(){\n return cards.remove(0);\n }", "public Card take() {\n if(deck.isEmpty()) {\n return null;\n }\n return deck.remove(0);\n }", "public Card removeCard() {\n return cards.remove(0);\n }", "public T removeTile(int i){\r\n if(i >= 0 && i < size){\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void Show() { List<Map<String, String>> test = new ArrayList<Map<String,String>>(); for (int i = 0; i < 10; i++) { Map<String, String> m = new HashMap<String, String>(); m.put("name", "my name"+i); m.put("uid", "my uid"+i); test.add(m); } String json = JSON.toJSONString(test); ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This lets the user insert or edit the scanned contact
public void insertOrEditContact(String vCardString) { try{ Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT); intent.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE); intent.putExtra(Constants.INTENT_KEY_FINISH_ACTIVITY_ON_SAVE_COMPLETED, true); contac...
[ "public void editDetails() {\n System.out.println(\"Enter the name of the contact you want to edit\");\n String editName = input.next();\n int firstNameIndex = firstName.indexOf(editName);\n int pos = firstNameIndex;\n if (firstName.contains(editName)) {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cancel the javascript execution, if it was not yet sent to the browser for execution.
boolean cancelExecution();
[ "public void cancel() {\n cancel(true);\n }", "public synchronized void cancelExecution() {\n\t\tif (delayedExecutionTask != null) {\n\t\t\tdelayedExecutionTask.cancel(true);\n\t\t}\n\t}", "public void cancel() {\n RequestsExecutor.getInstance().cancel(this);\n }", "public void canceled();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }