query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Returns the name of an enum based on its ordinal value
public static String GetName(Class enumerationType, int val) { Enum enumObject; try { Method forValue = enumerationType.getMethod("forValue", int.class); enumObject = (Enum) forValue.invoke(null, val); } catch (Exception ex) { throw new RuntimeException(ex); ...
[ "java.lang.String getEnumString();", "String getEnumCase();", "public static String ordinal(int value) {\n switch (Math.abs(value)) {\n case 1:\n return value + \"st\";\n case 2:\n return value + \"nd\";\n case 3:\n return valu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: com.tencent.mm.pluginsdk.ui.e.d
public interface C23303d { /* renamed from: com.tencent.mm.pluginsdk.ui.e.d$a */ public static class C23304a { protected static C23303d vrE; /* renamed from: a */ public static final void m35788a(C23303d c23303d) { vrE = c23303d; } } /* renamed from: G */ ...
[ "@Override\n\tprotected void UpdateUI() {\n\t}", "@Override\n\t\t\tprotected void updateUI() {\n\t\t\t\tsuper.updateUI();\n\t\t\t}", "public interface SwingUiPlugin {\n \n /** Returns an area the plugin can render itself in. */\n JComponent getPluginComponent();\n \n /** Starts the plugin. */\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generate a random Jam.
public static Jam generateJam() throws ValidationException { int numPoints = random.nextInt(12) + 3; List<LatLon> points = new ArrayList<>(); for (int i = 0; i < numPoints; i++) { points.add(generateLatLon()); } return new Jam( points, ...
[ "protected String getRandomJoke(){\n Random r = new Random();\n int i = r.nextInt(10);\n return jokes[i];\n }", "public static Joker getRandomJoker(){\n return getJoker(JokerType.getRandomJokerType());\n }", "public static int JST_1_3_6(){\n\t\treturn (int) ( (Math.random()*5) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The predator's health decreases when attacked by a hunter.
public void attackPredator() { this.health -= 30; if (health <= 10) { killPredator(); } }
[ "public void hurt() {\n this.health--;\n }", "public void decreaseHealth() {\r\n\r\n\t}", "public void reduceHealth(int h)\n {\n health -= h;\n }", "@Override\r\n\tpublic double attack(Hunter hunter) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void removeHealth(int attack) {\n\r\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear sessions that the user participates
void clearSessions();
[ "void clearLoggedInUsersSession(String key);", "public void logout(){\n session.clear();\n }", "public abstract void clearSession(String sessionId);", "public static void clearUser() { CurrentUser.currentUserInstance = null;}", "public void cleanSessions() {\n try {\n //clear all...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the lifetime of the virtual machine in milliseconds.
public long getUptime();
[ "public String lifetime() {\n return this.lifetime;\n }", "@java.lang.Override\n public long getLifetimeValueMicros() {\n return lifetimeValueMicros_;\n }", "public Lifetime lifetime() {\n\t\t\treturn lifetime;\n\t\t}", "public int getLifetime() {\n\t\treturn compound.getInt(\"Lifetime\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Return the min value of the wage.
@Override public int min() { int min; if(employees.size() > 0) { min = employees.get(0).payment(); for(int i = 1; i < employees.size(); i++) { if(employees.get(i).payment() < min) { min = employees.get(i).payment(); } } } else { min = 0; } return min; }
[ "public double getMin() {\n\n\t\treturn min;\n\t}", "public double min();", "protected double getMin()\n {\n recalculateMinMax();\n\n return this.min;\n }", "public Double getMinimum() {\r\n\t\treturn this.callFunction(\"minimum\");\r\n\t}", "com.google.privacy.dlp.v2.Value getMin();", "doub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs a deep copy on other.
public queryUsers_result(queryUsers_result other) { if (other.isSetSuccess()) { java.util.List<User> __this__success = new java.util.ArrayList<User>(other.success.size()); for (User other_element : other.success) { __this__success.add(new User(other_element)); } this.succ...
[ "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n private void copyFrom(final _BeanImpl other, final boolean immutably) {\r\n if (other == null) {\r\n throw new IllegalArgumentException(\"other cannot be null\");\r\n }\r\n if (other.getClass() != getClass()) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks augment translation should not result in any exception.
@Test public void processChoiceAugmentInterTranslator() throws IOException, ParserException, MojoExecutionException { deleteDirectory(DIR); String searchDir = "src/test/resources/choiceAugment"; Set<Path> paths = new HashSet<>(); for (String file : getYangFiles(searchDir...
[ "protected void validateTranslation(TranslationType[] param){\n \n }", "@Override\n\tpublic void translation() {\n\t\t\n\t}", "public boolean isTranslated();", "@Test\n\tpublic void TestTranslate3() throws Exception {\n\n\t\tString fromLangCode = \"Gree...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column T_PLIN.PLIN_NAME_EN
public void setPlinNameEn(String plinNameEn) { this.plinNameEn = plinNameEn == null ? null : plinNameEn.trim(); }
[ "public void setEnName(String enName) {\r\n this.enName = enName;\r\n }", "public void setlName(String lName){\r\n this.lName = lName;\r\n }", "public void setP_nombre(java.lang.String param){\r\n localP_nombreTracker = true;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if the file has an invalid path. Currently, the inspection of a file path is very limited, and it only covers Nul character check. Returning true means the path is definitely invalid/garbage. But returning false does not guarantee that the path is valid.
final boolean isInvalid() { if (status == null) { status = (this.path.indexOf('\u0000') < 0) ? PathStatus.CHECKED : PathStatus.INVALID; } return status == PathStatus.INVALID; }
[ "public boolean isValidPath(String path) {\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tFile f = new File(path);\n\t\t\tif (f.exists()) {\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t\t// Paths.get(path);\n\t\t} catch (InvalidPathException | NullPointerException ex) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn flag;\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stops the threads and allows them to terminate
public void stopClientSocket(){ this.helper.stopServerListener(); this.spinCS = false; try { this.s.close(); } catch (Exception e){ e.printStackTrace(); } }
[ "public void stop(){\n\t\tthreads.shutdown();\n\t\tthreads = null;\n\t\treturn;\n\t}", "public void stopWorkers() {\n\t\tthis.myThreads.interrupt();\n\t\t\n\t\tthis.waitForClosure();\n\t}", "public void killThreads() {\n running = false;\n flightUpdater.interrupt();\n fadeThread.interrupt()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(200, 200, 500, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblInputTheArticle = new JLabel("Input the article you would like to delete:"); lblInputTheArtic...
[ "public void initializeFrame();", "private void initialize() {\n\t\tsetFrame();\n\t\tsetheader();\n\t\tsetList();\n\t}", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public frame() {\n initComponents();\n read_init_config();\n }", "private void initialize() {\n\t\tinitData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private static SendMsg sm;
public WriteMsg(String title, textConvo original) { super(title, "", 160, TextField.ANY); WriteMsg.title = title; WriteMsg.original = original; String text = ""; if(title.equals("Forward")) { StringBuffer textBuff = new StringBuffer("Fwd: "); t...
[ "void send_local(Mensagem msg)\n {\n relogio.pulsa();\n }", "@Override\r\n\tpublic void send(String msg) {\n\t\t\r\n\t}", "public void sendSMS() {\n }", "public String getSend(){\n return sender; \n }", "void sendMessage(String m);", "@Override\n public void handleMessage(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear all items from the stack.
public void makeEmpty() { top = 0; }
[ "@Override\n public void clear() {\n Arrays.fill(itemStacks, ItemStack.EMPTY); // EMPTY_ITEM\n }", "void clear() {\n stack.clear();\n g_stack.clear();\n }", "public void clear() {\n checkIntegrity();\n \n // Remove references to the objects in the stack,\n // but...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates and sorts an array and prints statistics
public static void main(String[] args) { parseArgs(args); int[] array = new int[arraySize]; fillArray(array); long time=sortArray(array); System.out.println("Sort time: "+time+"ms"); if(Sortierung.isSorted(array)) System.out.println("Feld sortiert!"); else System.out.println("Feld NICHT...
[ "public static void main(String[] args) {\n int arrOne [] = new int [20];\n Random rand = new Random();\n\n for (int i = 0; i < 20; i++) {\n arrOne[i] = rand.nextInt(100);\n }\n\n //Print unsorted arrOne\n System.out.print(\"The Unsorted array: \");\n for...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is the only method allowed to use indices.
public void shuffle(int randSeed) { Random rand = new Random(randSeed); for(int i=0; i<setOfDominoes.size(); i++) { if(rand.nextBoolean()) setOfDominoes.get(i).rotate(); int k = rand.nextInt(setOfDominoes.size()); Domino temp = setOfDominoes.get(k); setOfDominoes.set(k,setOfDominoes.get(i)); s...
[ "@Override\r\n\tpublic void addtIndex() {\n\r\n\t}", "private Indexer() {}", "@Override\r\n\tpublic boolean isIndexed()\r\n\t{\n\t\treturn false;\r\n\t}", "@Override\n public void endIndexing() { }", "@VTID(15)\r\n int index();", "@Override\n public String[] indices() {\n return indices;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To change body of generated methods, choose Tools | Templates.
@Override protected float sumaRiemannSup() { float resultado = 0; DecimalFormat formato = new DecimalFormat("#.##"); for (float i = liIn + (longitud / n); Float.parseFloat(formato.format(i)) <= liSu; i = i + (longitud / (float) n)){ resultado += valorPx(polinomio, i) * (long...
[ "protected void method_5557() {}", "public void mo5201a() {\n }", "protected void method_2117() {\n }", "@Override\n\tprotected void body()\n\t{\n\n\t}", "@Override\r\n public void publicando() {\n }", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "default void defM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a link to another subgraph.
public void addSubgraph( Graph<E> sub, float linkVal ) { _link.add( new GraphLink<E>(sub, linkVal)); sub._parents.add(new GraphLink<E>(this, linkVal)); }
[ "private void LinkTwoNode(ClassNode sourceNode, ClassNode destNode, IPath path) {\r\n // From the query object get list of associations between these two node\r\n GraphPort sourcePort = new GraphPort();\r\n sourceNode.addPort(sourcePort);\r\n GraphPort targetPort = new GraphPort();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Vadim_Korostelev on 1/24/2017.
public interface MessagesRepo extends PagingAndSortingRepository<MessageEntity, String> { List<MessageEntity> findByFolderId(String folderId); MessageEntity findByCreateDate(Long createDate); @Query(value = "select count(id) from message_entity where folder_id=?1", nativeQuery = true) Integer countByF...
[ "@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}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return an array of integers with values between length and size
private static int[] getNums(int length, int size) { int[] nums = new int[length]; Random rand = new Random(); for (int i = 0; i < length; i++) { nums[i] = rand.nextInt(size); } return nums; }
[ "private static long[] getNums(int length, long size) {\n long[] nums = new long[length];\n\n ThreadLocalRandom rand = ThreadLocalRandom.current();\n for (int i = 0; i < length; i++) {\n nums[i] = rand.nextLong(size);\n }\n \n return nums;\n }", "public stat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Caches the prueba in the entity cache if it is enabled.
@Override public void cacheResult(prueba prueba) { entityCache.putResult(pruebaModelImpl.ENTITY_CACHE_ENABLED, pruebaImpl.class, prueba.getPrimaryKey(), prueba); finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G, new Object[] { prueba.getUuid(), prueba.getGroupId() }, prueba); prueba.resetOriginalValues(...
[ "@Override\n public void cacheResult(MuZhengxianPodao muZhengxianPodao) {\n EntityCacheUtil.putResult(MuZhengxianPodaoModelImpl.ENTITY_CACHE_ENABLED,\n MuZhengxianPodaoImpl.class, muZhengxianPodao.getPrimaryKey(),\n muZhengxianPodao);\n\n muZhengxianPodao.resetOriginalValues()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
normalize the file path as our cache key
public String compileJs(File file, Map options) { file = file.normalize(); // get pod name String podName = (String)options.get("podName"); if (podName == null) podName = generatePodName(file); // compile the script return compileJs(podName, file, options); }
[ "String pathToKey(Path path) {\n checkArgument(path.isAbsolute(), \"not absolute: \" + path);\n if (path.toUri().getScheme() != null && path.toUri().getPath().isEmpty()) {\n return \"\";\n }\n\n return path.toUri().getPath().substring(1);\n }", "public static String getDictionaryCacheKey ( final...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if checking is occuring
@SuppressWarnings("deprecation") public void keyReleased(KeyEvent e) { if (outAdd.getChecking()) { //stops the most recent thread //deprecated methods still work fine and can be necessary threads.get(threads.size()-1).stop(); //stops checking outAdd.setChecking(false); //removes the working mess...
[ "private void performChecks() {\n\n\t}", "private boolean isInCheck() {\n return false;\n }", "public boolean check()\n {\n\n }", "boolean hasSelfCheck();", "@Override\r\n\tpublic Boolean isCheck() {\n\t\treturn super.isCheck();\r\n\t}", "boolean hasCheckJundal();", "@Override\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
User clicked "Discard" button, close the current activity.
@Override public void onClick(DialogInterface dialogInterface, int i) { finish(); }
[ "public void cancelClick(View view) {\n finish();\n }", "public void onDiscardTrackedActivity(View v) {\n\n\t\t//If the user is sure they want to discard this activity, the user is safely taken back to the\n\t\t//main menu, stopping the service and losing the tracked session\n\t\tDialogInterface.OnClick...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setConn(new OfficialDatabase().getConn()); link 25
public void getResult(){ setConn(new New25_Report_Database().getConn()); try { setCs(getConn().prepareCall("{call Txn_Board_MOEfficiencyDetail (?,?,?)}")); getCs().setString("MOName", request.getParameter("mo")); getCs().setString("WorkcenterId", request.getParameter("Workcenterid")); getCs().setString(...
[ "@Override\r\n protected void setConnectionDB(Connection conn) throws SQLException {\n\r\n }", "private ConnectionDB(){\n\t\t\n\t}", "protected DB getDatabase() {\n/* 56 */ return this.stmt.getDatbase();\n/* */ }", "public void getConnection() {\n\r\n\t}", "public static void getConnection() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.print("Please input your weight(in pounds): "); double weightLBS = in.nextDouble(); System.out.print("Please input your height(in inches): "); double heightIN = in.nextDouble(); double weightKGS = weightL...
[ "@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" ] ] } }
Throw an PropertyServerException if it is encoded in the REST response.
private void detectAndThrowPropertyServerException(String methodName, CommunityProfileOMASAPIResponse restResult) throws PropertyServerException { final String exceptionClassName = PropertyServerException.class.getName(); ...
[ "protected Response handleFormatNotSupportedException(FormatNotSupportedException e) {\n if (logger.isDebugEnabled()) {\n logger.debug(e.getMessage(), e);\n }\n\n // use the default JSON encoder to build the error response.\n return buildResponse(AbstractResourceManager.encode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CONTAINER SHAPE WITH RECTANGLE
@SuppressWarnings("restriction") public PictogramElement createPENode(ContainerShape targetDiagram, Layout layout, int x, int y) { IPeCreateService peCreateService = Graphiti.getPeCreateService(); ContainerShape containerShape = peCreateService.createContainerShape(targetDiagram, true); ...
[ "abstract void drawContainer();", "public void addRectangleZone(Position leftTop, Position rightBottom, Color color);", "@Override\n protected Rect getRect(){\n return new Rect(x+ width*17/100, y +height* 17/100 , x+width*67/100, y+width*67/100);\n }", "private ParkingSpot createDraggableRectangl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Another test to check if uncapturable wall is present.
@Test public void uncapturableWallTopEdgeTest() { Board board = null; try { board = new Board(new char[][]{ {' ', ' ', ' ', 'A', ' ', 'D', 'K', 'D', ' ', ' ', ' '}, {' ', ' ', ' ', 'A', ' ', 'D', ' ', 'D', ' ', ' ', ' '}, {' ', ' ', ' ', 'A', ' ', 'D', 'D', 'D', ' ', ' ', ' '}, ...
[ "private void check_isOutOfWall() {\n\t\thead = new MyPoint2D(100, 100);\n\t\tclaim(isOutOfWall() == false);\n\n\t\thead.setX(-1);\n\t\tclaim(isOutOfWall() == true);\n\n\t\thead = new MyPoint2D(100, 100);\n\t\thead.setY(-1);\n\t\tclaim(isOutOfWall() == true);\n\n\t\thead = new MyPoint2D(100, 100);\n\t\thead.setY(Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test basic usage of default namespaces.
@Test public void namespace2() { Resources testRes = new Resources("XmlTokenizerTests"); Reader namespacetest2 = testRes.getReader("namespacetest2.xml"); XMLTokenizer tokenizer = new XMLTokenizer(namespacetest2); tokenizer.setRecognizeNamespaces(true); String expectedName...
[ "@org.junit.Test\n public void kDefaultNamespaceProlog11() {\n final XQuery query = new XQuery(\n \"declare default function namespace := \\\"http://example.com/\\\";1\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleOpOr" $ANTLR start "ruleOpOr" InternalGuiceModules.g:1246:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ;
public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); Token kw=null; enterRule(); try { // InternalGuiceModules.g:1252:2: (kw= '||' ) // InternalGuiceModules.g:1253:2: kw= '...
[ "public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException {\r\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\r\n\r\n Token kw=null;\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../be.unamur.xtext.CoreAl/src-gen/be/unamur/xtext/par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Download and process file.
public FtpOperationResult retrieveFile(String fileName, FileHandler handler) { return new DefaultTemplate().run(result -> { FtpAgent agent = server.getFtpAgent(); byte[] bytes = agent.retrieveFile(fileName); String message = handler.handleFile(bytes); if (message ...
[ "void downloadFile();", "public static void download() {\n }", "public void run() {\n\t\t\tdownloadFile();\n\t\t}", "void downloadFile(File destFile, URI downloadUrl) throws HttpClientWebException, IOException;", "void startDownload();", "FileDownloadProcessor getFileDownloadProcessor(FileEntry fileEnt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scanner s=new Scanner(System.in); System.out.println("Enetr a count");
public static void main(String arg[]) { int a=0,b=1; System.out.println("fibonacci series"+10+"numbers:"); for(int i=0;i<10;i++) { System.out.printf("%d ",a); int c=a+b; a=b; b=c; } }
[ "public static void main(String[] args) {\n String text;\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"xin moi nhap vao chuoi:\");\n text = scanner.next();\n System.out.println(count(text));\n\n\n\n }", "public static void main(String[] args) {\n\t\tScann...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column case_agent_author_record.REQUEST_TYPE
public String getRequestType() { return requestType; }
[ "public int getRequestTypeValue() {\n return requestType_;\n }", "public void setReqType( String reqType )\n {\n this.reqType = reqType;\n }", "public com.alibaba.maxgraph.QueryFlowOuterClass.RequirementType getReqType() {\n com.alibaba.maxgraph.QueryFlowOuterClass.RequirementTyp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Populate Organisms by PT
public void postInit() throws TermServerScriptException { for (Concept c : ORGANISM.getDescendents(NOT_SET)) { for (Description d : c.getDescriptions(Acceptability.BOTH, DescriptionType.SYNONYM, ActiveState.ACTIVE)) { String term = d.getTerm().toLowerCase().replaceAll(" of ", ""); organisms.put(term, c); ...
[ "void updateOrganisms() {\r\n\t\tfor (int i = 0; i< this.organisms.size(); i++) {\r\n\t\t\tOrganism o = this.organisms.get(i);\r\n\t\t\tif (o.splitting == \"false\") {\r\n\t\t\t\to.update(e);\r\n\t\t\t} else if (o.splitting == \"energy\") {\r\n\t\t\t\tthis.splitOrganism(i);\r\n\t\t\t} else if (o.splitting == \"self...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); request.setCharacterEncoding("UTF-8"); response.setCharacterEncoding("UTF-8"); Integer teleI...
[ "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Enumeration<String> parameterNames = request.getParameterNames(); //checking for unappropriate parameters\r\n if (parameterNames.hasMoreEleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected Response doInsert(JSONObject data) { 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" ] ] } }
createReceipt: generated method. Do not modify.
public ReceiptViewSDO createReceipt(ReceiptViewSDO receiptView1) throws ServiceException { return (ReceiptViewSDO)create(receiptView1, "ReceiptView1"); }
[ "void startReceipt();", "public void createGoodsReceipt() {\n makeAction(\"wnd[0]/tbar[1]/btn[17]\", \"press\");\n //Enter number of PO to text in GR\n type(\"wnd[0]/usr/subSUB1:/EBY/SAPLPDVI_SCREEN:0906/tabsG_0900_TABSTRIP/tabpG_0900_TS_TAB1/ssubG_0900_TS_TAB1_SUB:\" +\n \"/EB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table hf_user_member
int updateByPrimaryKey(HfUserMember record);
[ "public MemberDTO select_userInfo(MemberDTO memberDTO) {\n\t\treturn (MemberDTO)sqlMapClientTemplate.queryForObject(\"CommonSql.select_userInfo\",memberDTO);\r\n\t\r\n\t}", "@Override\n\tpublic List<MemberDetail> findAllMember() {\n\t\treturn getBaseDao().findAllMember();\n\t}", "@Override\r\n\tpublic List<Memb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a Builder for a ListBuckets command.
public Builder(String type) { this.type = BinaryValue.create(type); }
[ "public Builder addBuckets(com.google.privacy.dlp.v2.BucketingConfig.Bucket value) {\n if (bucketsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureBucketsIsMutable();\n buckets_.add(value);\n onChanged();\n } else {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the superclass with the appropriate query and sets the session factory.
public DeployedComponentRetrievalService(SessionFactory sessionFactory) { this(); setSessionFactory(sessionFactory); }
[ "public void initialize(AbstractSession session);", "public void initSessionFactory(){\n if (sessionFactory == null) {\n // loads configuration and mappings\n Configuration configuration = new Configuration().configure();\n // builds a session factory from the service regis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get read/write storage permission intent
public static Intent getStoragePermissionsIntent(Context context) { Intent intent = new Intent(context, RequestPermissionActivity.class); intent.putExtra(Constants.EXTRA_REQUIRED_PERMISSIONS, new String[]{ Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permiss...
[ "public static void getReadUriPermission() {\n\t\tIntent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE);\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n\t\t\tFile file = FileUtil.updateFile;\n\t\t\tUri contentUri = FileProvider.getUriForFile(MyApplication.getInstance(), \"com.jiuwang.buyer.provider...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds an array with the given elements.
public Bytes32(byte byte0, byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8, byte byte9, byte byte10, byte byte11, byte byte12, byte byte13, byte byte14, byte byte15, byte byte16, byte byte17, byte byte18, byte byte19, byte byte20, byte byte21, byte byte22, byte byte2...
[ "public ArrayCreation(final EvaluationExpression... elements) {\n\t\tthis.elements = new ArrayList<EvaluationExpression>(Arrays.asList(elements));\n\t}", "T createArray(Collection<T> elements);", "@SuppressWarnings(\"unchecked\")\n private T[] buildArray(final int length) {\n return (T[]) Array.newIns...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the service registry.
public static ServiceRegistry getRegistry() { // Check if the caller has a permission to use this method final SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(new RuntimePermission(ServiceRegistry.class.getName() + ".getRegistry")); ...
[ "public static RegistryService getRegistryService() {\n return getRegistryService(Configuration.getServiceLocation(Configuration.ServiceName.REGISTRY));\n }", "public static ServiceRegistry getServiceRegistry() {\n return REGISTRY;\n }", "protected ServiceRegistry getServiceRegistry()\n {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the gioi tinh of this cong dan.
public void setGioiTinh(int gioiTinh);
[ "public void setGioitinh(int aGioitinh) {\n gioitinh = aGioitinh;\n }", "public Integer getGioitinh() {\n return gioitinh;\n }", "public void setG(int g) {\n this.g = g;\n }", "public void setGi(Number value) {\n setAttributeInternal(GI, value);\n }", "public void setusGinp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A dot expression is a reference to a field in a struct.
public CommonDotExpression(CIVLSource source, Expression struct, int fieldIndex) { super(source); this.struct = struct; this.fieldIndex = fieldIndex; }
[ "public AllocDotField dot(SparkField field) {\n return fields == null ? null : fields.get(field);\n }", "public static void setDot(Dot dot) {\n instance.dot = dot;\n }", "public final PropertyNode dotExpression() throws RecognitionException {\n\t\tPropertyNode node = null;\n\n\n\t\ttry {\n\t\t\t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static SousCategorie createEntity(EntityManager em) { SousCategorie sousCategorie = new SousCategorie() .nom(DEFAULT_NOM) .description(DEFAULT_DESCRIPTION) .position(DEFAULT_POSITION) .etat(DEFAULT_ETAT) .image(DEFAULT_IMAGE) .imageC...
[ "protected abstract Entity createEntity();", "EntityInstance createEntityInstance();", "@Override\n protected void createEntity() {\n Company company = createCompany(1001);\n setEntity(company);\n }", "public final Entity createEntity() {\n Entity entity = new Entity(this);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Execute command (on client)
public abstract ClientCommand execute(ClientSideHandler handler);
[ "public void invoke() {\r\n\t\tcommand.execute();\r\n\t}", "CommandOutputMessage execute();", "int execute(Command command);", "public void doCommand()\n {\n try\n { \n getClient().openConnection();\n getClient().clientUI().display(\"Connection to \" + getClient().getHost() + \" opened.\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the component identifier in which p belongs
public int find(int p) { return id[p]; }
[ "public java.lang.Integer getComponentId() {\n return componentId;\n }", "public long getComponentId() {\n return componentId_;\n }", "public long getComponentId() {\n return componentId_;\n }", "QualifiedName getParId();", "public Component getRelatedComponent();", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
requests the environment to pause. NOTE: the env may not yet be paused when the call returns.
public void pause() throws EnvironmentInterfaceException { if (this.environment.getState() != EnvironmentState.PAUSED) { this.environment.pause(); } }
[ "public void pause() {\n status = Constants.STATUS_PAUSED;\n }", "protected void pause() {\n log.finer(\"Pausing main loop\");\n getEventBus().fireEvent(FXGLEvent.pause());\n\n setState(ApplicationState.PAUSED);\n }", "public void pause()\n {\n synchronized ( _pauseLo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional bool RemoveByDst = 6;
public boolean hasRemoveByDst() { return ((bitField0_ & 0x00000020) == 0x00000020); }
[ "private void canRemove() { }", "void removeHasSchoolZoneFlag(Integer oldHasSchoolZoneFlag);", "public boolean canFixup();", "public boolean isRemoveable();", "public void removeAresta(int no1, int no2);", "protected void remove()\r\n/* 1030: */ {\r\n/* 1031:1072 */ this.before.after = this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ExactNumLit" $ANTLR start "ApproxNumLit"
public final void mApproxNumLit() throws RecognitionException { try { // CmisBaseLexer.g:118:23: ( ExactNumLit ( 'e' | 'E' ) Sign Digits ) // CmisBaseLexer.g:118:25: ExactNumLit ( 'e' | 'E' ) Sign Digits { mExactNumLit(); if ( input.LA(1)=='E'||input.LA(1)=='e' ) { input.consume(); } else {...
[ "final public void approximate_numeric_literal_S() throws ParseException {\n /*@bgen(jjtree) ApproximateNumericLiteral */\n AST_ApproximateNumericLiteral jjtn000 = new AST_ApproximateNumericLiteral(this, JJTAPPROXIMATENUMERICLITERAL);\n boolean jjt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that searches the liked list by name
public String search(String firstName, String lastName) { for (int i = 0; i < phoneDirectory.size(); i++) { if (phoneDirectory.get(i).getLastName().equals(lastName)) { if (phoneDirectory.get(i).getFirstName().equals(firstName)) { System.out.println(phoneDirectory....
[ "List<ProcessedMessage> getLikeName(String keyword);", "protected void queryLikes() {\n ParseQuery<Like> query = ParseQuery.getQuery(Like.class);\n query.whereEqualTo(Like.KEY_USER_ID, ParseUser.getCurrentUser().getObjectId());\n // start an asynchronous call for playlists\n query.find...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method would save the smart card info to data source
public void saveCard(final SmartCard smartCard);
[ "private void store() throws PersistenceException, InvalidPINException {\n\tcom.ibm.ivj.db.uibeans.Modify modify=null;\n\t\n\ttry{\t\n\t\t\tif (exists()){\n\t\t\t\tmodify = getCardUpdate();\n\t\t\t\tmodify.setParameter(\"CARD_NUM\",this.getId().getIdAsString());\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//record doesn't exi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Gericht' reference. If the meaning of the 'Gericht' reference isn't clear, there really should be more of a description here...
Gericht getGericht();
[ "public int getG();", "public int getG()\n {\n return g;\n }", "@Basic\n\tpublic V getG() {\n\t\treturn g;\n\t}", "public long getGuthaben () {\n\t\treturn this.guthaben;\r\n\t}", "public BigInteger getG()\n {\n return this.g.getPositiveValue();\n }", "public int getG(){\n\t\treturn (u >...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set drawable for the image view and manage its visibility according to the data.
public static void setResource(@Nullable View view, @DrawableRes int drawableRes) { if (view instanceof AppCompatImageView || view instanceof FloatingActionButton) { ((ImageView) view).setImageResource(drawableRes); } else if (view instanceof ImageView) { set((ImageView) view, Dy...
[ "private static void m658a(ImageView imageView, Drawable drawable, int i) {\n imageView.setImageDrawable(drawable);\n if (drawable == null) {\n imageView.setVisibility(i);\n return;\n }\n imageView.setVisibility(0);\n drawable.setVisible(false, false);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo86259a(ColumnMeta columnMeta) { C32569u.m150519b(columnMeta, AdvanceSetting.NETWORK_TYPE); this.f62473a.f62472a.m89197i(); }
[ "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" ] ] } }
called if LL or RL
private Node rotateRight(Node localRoot) { System.out.println("Rotating Right"); Node temp = localRoot.getLeft(); localRoot.setLeft(temp.getRight()); temp.setRight(localRoot); return temp; }
[ "public final void lu(boolean r10) {\n /*\n r9 = this;\n r8 = 2;\n r3 = 1;\n r2 = 0;\n r0 = r9.thK;\n if (r0 != 0) goto L_0x0009;\n L_0x0007:\n if (r10 == 0) goto L_0x006e;\n L_0x0009:\n r0 = r9.thL;\n if (r0 == 0) goto L_0x0015;\n L_0x0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the businessDivisionSubdivisionID value for this ContractMilestone.
public java.lang.Object getBusinessDivisionSubdivisionID() { return businessDivisionSubdivisionID; }
[ "public Number getBusinessGroupId() {\r\n return (Number)getAttributeInternal(BUSINESSGROUPID);\r\n }", "public com.google.protobuf.ByteString\n getBusinessGroupIDBytes() {\n java.lang.Object ref = businessGroupID_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Account handle after login.
@Override public void handle(MouseEvent event) { loginAction(); }
[ "public void account_login()\r\n\t{\r\n\t\tConstants.logging_in = true;\r\n\t\taccount_popup();\r\n\t}", "@Override\r\n\tpublic void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)\r\n\t\t\tthrows Exception {\n\t\tlogger.info(\"------ login afterCompletion\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'parentUrl' field.
public java.lang.CharSequence getParentUrl() { return parentUrl; }
[ "public URI getParentUri() {\n return this.parentUri;\n }", "public java.lang.CharSequence getParentUri() {\n return ParentUri;\n }", "public java.lang.CharSequence getParentUri() {\n return ParentUri;\n }", "public String getParentid() {\r\n return parentid;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get servlet class by servlet url
public String getServletClassByUrl(String url) { if (this.servletUrlToClassMap.containsKey(url)) return servletUrlToClassMap.get(url); return null; }
[ "@Override\r\n\tpublic String getServletClass() {\n\t\treturn null;\r\n\t}", "public abstract Class<? extends ResourceConfig> getApplicationClass(ServletContext servletContext, WebApplicationContext appContext);", "public BNHaystackServlet getServlet() { return (BNHaystackServlet)get(servlet); }", "static URL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
caveat: this will only work if the 2 linked lists have the same number of nodes: an easy way to work around this problem would be to change the algo to store digits of the 2 numbers in separate stacks, or alternatively keep the recursive algo and pad the shorter linked list with zeroes.
private static Node forwardOrder(Node l1, Node l2) { Stack<Integer> result = new Stack<>(); int carry = forwardOrderRec(l1, l2, result); if (carry == 1) { result.push(1); } // create linked list for result Node head = null; Node currNode = null; ...
[ "public ListNode addTwoNumbersPart2(ListNode l1, ListNode l2) {\n\n Stack<Integer> s1 = new Stack<>();\n Stack<Integer> s2 = new Stack<>();\n\n ListNode p = l1;\n while (p != null) {\n s1.push(p.val);\n p = p.next;\n }\n\n ListNode q = l1;\n while (q != null) {\n s2.push(q.val);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
determine dimension of result
public static RationalMatrix_Obsolete diagonalMatrix(RationalMatrix_Obsolete[] matrices) { int columnCount = 0; int rowCount = 0; for (int m = 0; m < matrices.length; m++) { rowCount += matrices[m].getRowCount(); columnCount += matrices[m].getColumnCount(); } RationalMatrix_Obsolete result = new Rati...
[ "public int numberDimensions();", "public int dim();", "abstract public int getDimension();", "public int getProblemDimension();", "public int dimension(){\n\t\treturn N;\n\t}", "public int dimension() {\r\n return dimen;\r\n }", "public int getDimension()\r\n \t{\r\n \t\treturn size.numDimens...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub /Resource resource = new ClassPathResource("SpringConfig.xml"); XmlBeanFactory beanFactory = new XmlBeanFactory(resource); Resturant resturant = (Resturant) beanFactory.getBean("resturant"); resturant.takeOrder();
public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("SpringConfig.xml"); Resturant resturant = (Resturant) context.getBean("resturant"); //Bean alias in SpringConfig.xml //Resturant resturant = (Resturant) context.getBean("resturant-alias"); //Rest...
[ "@Override\n\t\t\tpublic void configure() throws Exception {\n\t\t\t\tfrom(\"file:\") //TODO Add correct parameters for the file-consumer.\n\t\t\t\t.unmarshal(jaxbXmlOrder)\n\t\t\t\t.beanRef(\"orderBeanProcessor\")\n\t\t\t\t.to(\"log:se.supportix?level=INFO&showAll=true\") //Tip, use logging endpoints a lot to see ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void save(LangueFonctions lf) { if(s == null) s = HibernateSessionFactory.getSession(); Transaction tx = s.beginTransaction(); s.saveOrUpdate(lf); tx.commit(); }
[ "@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" ] ] } }
Copy constructor. Creates a new router based on the given prototype.
protected SimulatedAnnealing(SimulatedAnnealing r) { super(r); this.probs = new MeetingProbabilitySet(150, 1); this.alpha=r.alpha; threshold=(2-2*alpha)/(2-alpha); this.secondsForTimeOut = r.secondsForTimeOut; delProb=new HashMap<DTNHost,Double>(); lastUpdate=new HashMap<DTNHost,Double>(); ...
[ "public Router()\n {\n\n }", "Router<R,P> newRouter(NioServer<R,P> server);", "public Router(Configuration config, short portNum) {\n\t\trd.simulatedIPAddress = config.getString(\"socs.network.router.ip\");\n\t\trd.processPortNumber = portNum;\n\t\trd.processIPAddress = \"127.0.0.1\";\n\t\tlsd = new LinkS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inOperationParam == create,modify del :: operation Name
@Override public CrmCapDto crmCapOperation( String inServiceParam, String inOperationParam, CrmCapDto inCrmCapDto ) throws SOAPException { return getCrmCapMgr().crmCapOperation( inServiceParam, inOperationParam, inCrmCapDto ); }
[ "@Override\n\tpublic void delete(Compte op) throws ServiceException {\n\t\t\n\t}", "@Override\n public void visitOperationDefinition(OperationDefinition opdef) {\n \n }", "public void setCreateServiceOperation(CreateServiceOperation param){\r\n \r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merges members of the source map into the destination map.
private void merge(@Nonnull final Map<String, Object> destination, @Nonnull final Map<String, Object> source, @Nullable final String prefix) { for (final Map.Entry<String, Object> entry : source.entrySet()) { final String key = entry.getKey(); final Object value = entry.getValue(); ...
[ "@Override\n\tpublic void putAll(Map other) {\n\t\t\n\t}", "public static Map<String, ReportItem> combineTwoItemLists(\n\t\t\tMap<String, ReportItem> srcMap, Map<String, ReportItem> dstMap) {\n\t\tMap<String, ReportItem> item = new HashMap<String, ReportItem>(srcMap);\n\t\titem.putAll(dstMap);\n\t\treturn item;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called by the request processor upon failure.
public void fail() { synchronized(lock) { fRequestFailed = true; done(); } }
[ "@Override\n public void onFailure(Throwable t) {\n // Log error here since request failed\n }", "@Override\n protected void handleFailure(Throwable arg0) {\n \n }", "@Override\n\t\t\tpublic void onError(Request re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the list of publishers used for publishing the metrics.
public Builder publishers(List<MetricPublisher> publishers) { this.publishers.addAll(publishers); return this; }
[ "public void setPublishers(List<String> publishers) { _publisher = publishers; }", "public Vector getPublishers() {\n return publishers;\n }", "public void setPublisher(String publisher) { getPublishers().add(publisher); }", "public List<ReportPublisher> getReportPublishers()\r\n\t{\r\n\t\treturn re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructors Create a detached TDatesRecord
public TDatesRecord() { super(org.jooq.test.h2.generatedclasses.tables.TDates.T_DATES); }
[ "protected DateRecord(int c, int r, Date d)\r\n/* 28: */ {\r\n/* 29:103 */ this(c, r, d, defaultDateFormat, false);\r\n/* 30: */ }", "public TransactionRecord(){}", "public static RecordReference newWithoutTimestamp(byte[] id) {\n return new RecordReference(id, null);\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The following function takes 3 arrays of integers and returns the smallest common integer amongst them
public static int SCN(int[] arr1, int[] arr2, int[] arr3){ //get the first elements of each of the three arrays //increment pointer for the smallest element till they converge int i = 0; int j = 0; int k = 0; while (i<arr1.length && j<arr2.length && k<arr3.length){ //if i is the smallest pointer if (...
[ "public static int[] binaryReductionFindCommon(int[] arr1, int[] arr2, int[] arr3) {\n\t\t// corner case\n\t\tif (arr1 == null || arr2 == null || arr3 == null || arr1.length == 0 || arr2.length == 0\n\t\t\t\t|| arr3.length == 0) {\n\t\t\treturn null;\n\t\t}\n\t\tint[] list = twoPointersFindCommon(arr1, arr2);\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copy constructor for objects of class Account
public Account (Account original) { this.name = original.name; this.id = original.id; this.balance = original.balance; }
[ "public Customer(Account acc){\n this.acc = acc;\n }", "private Account() {}", "ImmutableAccount(Account delegate) { delegate_ = delegate; }", "public Account() {\n\n }", "public Account() {\r\n\t\tsuper();\r\n\r\n\t}", "public Account (){\n createAccount();\n }", "public Account ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
called by internal mechanisms, do not call yourself.
public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getPatientDao() : null; }
[ "protected void mo4791d() {\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "private static void EX5...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if node is in a glycan structure representing a composition.
public boolean isInComposition(Residue node) { Glycan s = findStructureWith(node); return (s != null && s.isComposition()); }
[ "public boolean isMemberOfStructure() {\n return this.parentStructure != null;\n }", "boolean hasComposite();", "public Boolean isChildren();", "public boolean isIn(PGraphics g){\n RContour c = getBounds();\n float x0 = g.screenX(c.points[0].x,c.points[0].y);\n float y0 = g.screenY(c.points[0]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void Pop(DirectionExtension dir) { super.Pop(dir); lastAttack = System.currentTimeMillis(); Vector2 vector = new Vector2(0, 1); this.ShotStrike = weapon.attack(this, vector); }
[ "@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" ] ] } }
continuityPerspective Checks if the supplier has at least minNumActiveContracts active contracts.
public boolean hasMinActiveContracts() { int numActiveContracts = 0; //obtains the active contracts HashMap<String, ContractWrapper> activeContracts = getActiveContracts(); numActiveContracts = activeContracts.size(); if (numActiveContracts >= minNumActiveContracts) return true; re...
[ "private void checkBillingProjectCCA(SoftwareCompetition contest) throws PersistenceException {\n\n String projectCCA = contest.getProjectHeader()\n .getProperty(ProjectPropertyType.CONFIDENTIALITY_TYPE_PROJECT_PROPERTY_KEY);\n\n Map<String, String> allProperties = contest.getProjectHeader().getAllProp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public String systemProperty() { return this.systemProperty; }
[ "protected void method_5557() {}", "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Calls the visit method of TurtleVisitor and passes itself as parameter
public void accept(TurtleVisitor visitor){ visitor.visitTurtleAssignExpression(this); }
[ "public abstract void visit(Visitor v);", "abstract public void visit(Visitor visitor);", "public void startVisit(Tree tree);", "@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }", "@Override\n public void accept(IVisit visitante) {\n visitante.visit(this);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleXClosure" $ANTLR start "entryRuleXExpressionInClosure" InternalGeoDsl.g:3575:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ;
public final EObject entryRuleXExpressionInClosure() throws RecognitionException { EObject current = null; EObject iv_ruleXExpressionInClosure = null; try { // InternalGeoDsl.g:3575:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) // InternalGeoDsl.g:35...
[ "public final void entryRuleXExpressionInClosure() throws RecognitionException {\n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:2870:1: ( ruleXExpressionInClosure EOF )\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Property__Group_1__3__Impl" $ANTLR start "rule__Property__Group_1_1_2__0" InternalPropertyCS.g:1738:1: rule__Property__Group_1_1_2__0 : rule__Property__Group_1_1_2__0__Impl rule__Property__Group_1_1_2__1 ;
public final void rule__Property__Group_1_1_2__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalPropertyCS.g:1742:1: ( rule__Property__Group_1_1_2__0__Impl rule__Property__Group_1_1_2__1 ) // InternalPropertyCS.g:1743:2: rule__Prope...
[ "public final void rule__Property__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalThingML.g:4473:1: ( rule__Property__Group__0__Impl rule__Property__Group__1 )\n // InternalThingML.g:4474:2: rule__Property__Group...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .Cache_service.AreaMapLatestVersionLine area_map_latest_version_line = 1;
int getAreaMapLatestVersionLineCount();
[ "public interface GeoProto$FullRouteInfoOrBuilder extends MessageLiteOrBuilder {\n C7068c1 getRoutes(int i);\n\n int getRoutesCount();\n\n List<C7068c1> getRoutesList();\n}", "public interface WeatherProto$WeatherRegionCacheEntryOrBuilder extends MessageLiteOrBuilder {\n Timestamp getExpiresAt();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write the icon of this image as a JPEG.
public void saveIcon(LVValue name) throws LRException { try { JLabel label=(JLabel)getComponent(); ImageIcon icon=(ImageIcon)label.getIcon(); BufferedImage bufferedImage=new BufferedImage(icon.getIconWidth(), icon.getIconHeight(),BufferedImage.TYPE_INT_RGB); Graphics2D g2=bufferedImage.createGraphi...
[ "public void writeToImage() {\r\n imageWriter.writeToImage();\r\n }", "public void write() {\r\n\t\ttry {\r\n\t\t\tImageIO.write(image, \"png\", out);\r\n\t\t\tout.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tprotected void writeImage(MyImageJ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setemail() is to set the user's email.
public void setemail(String email) { this.email = email; }
[ "public void setEmail(String email) {\n this.email = email;\n setChanged();\n notifyObservers(this.user);\n }", "public void setUserEmail(String email) {\r\n SharedPreferences.Editor editor = mPreferences.edit();\r\n editor.putString(KEY_USER_EMAIL, email);\r\n editor....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String buildCacheKey(RequestParams arg0, String[] arg1) { 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" ] ] } }
Find antraege by titel.
@Override public List<AntragBO> findAntraegeByTitel(final String searchString) { TECH.info("FIND ANTRAG BY TITEL: " + searchString); return antragDao.findAntraegeByTitel("%"+searchString+"%"); }
[ "private void listByTitle() {\n String searchString;\n System.out.println(\"\\nYou selected \\\"Find literature by title\\\"\");\n System.out.println(\"Enter title to search for: \");\n searchString = parser.nextLine();\n\n List<Entry> litList = litReg.getByTitle(searchString);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configure the feature mapper to map a specific sampleIndex
public void configure(Properties sbiProperties) { String extraGenotypesString = sbiProperties.getProperty("extraGenotypes"); int extraGenotypes=1; if (extraGenotypesString!=null) { extraGenotypes=Integer.parseInt(extraGenotypesString); } String ploidyString = sbiPrope...
[ "Ingest newIndex(String index, Settings settings, Map<String, String> mappings);", "public void configure(String mapFilename, RandomAccessSequenceInterface genome,\n int sampleIndex, boolean considerIndels, float referenceSamplingRate) {\n this.mapFilename = mapFilename;\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getters and setters id
public boolean hasId(){ return id != null; }
[ "Declaracao getId();", "private int getId() {\n return id;\n }", "public int getId () { return id; }", "public int getID(){\n \n return id;\n }", "public void setId(long id){ \r\n this.id = id; \r\n }", "public int getId(){\r\n return id;\r\n }", "public i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Regex corresponding to numerical charater
public static final String getRegExpNum(){ return "[0-9]"; }
[ "public static String numRegex() { return regex(NUMMAP); }", "private static String standAloneNumbers(){\n\t\treturn \"\\\\b[0-9]+\\\\b\";\n\t}", "@Test\n public void predefined_digit() throws Exception {\n String value = \"666abc\";\n String regex = \"\\\\d\";\n\n Pattern pattern = Pattern.compile(re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the IncidentInfoPanel with the given Incident data.
public void setIncidentInfo(int incidentId) { this.incidentId = incidentId; pnlIncidentInfo.setIncidentInfo(this.incidentId); comboResolutionCode.removeAllItems(); comboResolutionCode.addItem(Command.RC_PERMANENTLY_SOLVED); comboResolutionCode.addItem(Command.RC_WORKAROUND); comboResolution...
[ "public void setDataInWindow(String dataInfo);", "public void setInfo(Object o) {\r\n\t\tinfo = o;\r\n\t}", "public void setInfo(java.lang.String info)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = nul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mouseClicked(MouseEvent e) { editDialog.edit(); }
[ "@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 method was generated by MyBatis Generator. This method corresponds to the database table u_user
int updateByPrimaryKeySelective(UserBean record);
[ "@SqlQuery(\"SELECT * FROM utilisateur order by mail asc\")\n\t@RegisterMapperFactory(BeanMapperFactory.class)\n\tList<User> all();", "@Select({\n \"select\",\n \"userId, email, nickName, realName, displayName, password, mobile, city, registerTime, \",\n \"activeTime, status, forbidStatus, se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns instrument as byte.
byte getInstrument();
[ "public byte tobyte() {\n\t\treturn 0;\n\t}", "public byte getByte()\n {\n checkSensor();\n return raw.get(calcRawOffset());\n }", "public java.lang.String getInstrumentId() {\n java.lang.Object ref = instrumentId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String getName() throws RemoteException { return ClientName; }
[ "@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" ] ] } }
Test of saveMeetings method, of class MeetingController.
@Test public void testSaveMeetings() { System.out.println("saveMeetings"); List<Meeting> meeting_list = null; MeetingController instance = null; boolean expResult = false; boolean result = instance.saveMeetings(meeting_list); assertEquals(expResult, result); /...
[ "@Test\n public void repositoryDeleteMeetingTest() {\n Meeting MeetingToDelete = DummyMeetingGenerator.DUMMY_MEETINGS.get(0);\n mMeetingRepository.deleteMeeting(MeetingToDelete);\n assertFalse(mMeetingRepository.fetchMeetings().contains(MeetingToDelete));\n }", "@Test\n public void v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the object with the settings used for calls to getIamPolicy.
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() { return ((ServiceManagerStubSettings) getStubSettings()).getIamPolicySettings(); }
[ "public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getObjectIamPolicySettings() {\n return getObjectIamPolicySettings;\n }", "public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setObjectIamPolicySettings() {\n return setObjectIamPolicySettings;\n }", "public UnaryCallSetti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ArticleIdentity articleId = ArticleIdentity.create(""); //ArticleIdentity.create(RhinoTestHelper.createTestArticle(articleCrudService)); //todo: fix or remove String json = ""; //articleCrudService.readAuthors(articleId).readJson(entityGson); assertTrue(json.length() > 0); Gson gson = new Gson(); Map authorMetadata = g...
@Test(enabled = false) public void testArticleAuthors() throws Exception { }
[ "public interface DB {\n /**\n * This is the main entry point: given a raw string of JSON data, parseJsonObject it as JSON, then load up the authors\n * and articles.\n */\n @NotNull\n @Contract(pure = true)\n static Option<Pair<IMap<String, Author>, IList<Article>>> load(@NotNull String contents) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called to check if the passedin jar file is a pack. If so, it, and all the pack definitions, are loaded into the system. A single jar file may contain more than one pack if there are multiple definition files in it. Alternately, a single jar may contain a single pack, just with different directories of assets to load d...
private static void checkJarForPacks(File packJar) { try { //Try to find a JSON definition. boolean foundJSON = false; ZipFile jarFile = new ZipFile(packJar); Enumeration<? extends ZipEntry> entries = jarFile.entries(); while (entries.hasMoreElements()...
[ "public boolean loadJarsAndApplet(String jar, String lwjglDir) {\n\t\tif (new File(jar).isDirectory()) {\n\t\t\tjar = new File(jar, \"minecraft.jar\").getAbsolutePath();\n\t\t}\n\n\t\tSystem.out.println(\"Loading Minecraft from: \" + jar);\n\n\t\ttry {\n\t\t\t// Our 4 jars which we need.\n\t\t\tURL[] urls = new URL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }