query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Metoda visit pentru Visitor Design Pattern ce primeste o linie ca parametru si ii deseneaza conturul folosind Algoritmul lui Bresenham de desenare a liniilor. | @Override
public void visit(final Line line) {
// Algoritmul lui Bresenham de desenare a liniilor
int x = line.getPointStart().getX();
int y = line.getPointStart().getY();
int deltaX = Math.abs(line.getPointEnd().getX() - line.getPointStart().getX());
int deltaY = Math.abs(... | [
"@Override\r\n\tpublic void aceita(Visitor visitor) {\n\t\t\r\n\t}",
"@Override\n public Valor visitAlgoritmo(DiunisioParser.AlgoritmoContext ctx) {\n Main.algoritmo = ctx.IDENTIFICADOR().getText();\n \n //Recibe los par嫥etros obtenidos de la clase Main y los inicializa\n if(ctx.lis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int getKillXP() {
return 25;
} | [
"@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"
]
]
}
} |
Answer my sheet index | public int getSheetIndex() {
return this.getDimensionIndexes()[SHEET_INDEX];
} | [
"public int currentSheetNumber() { return currentSheetIdx; }",
"int getIndexPosition();",
"@NonNegative int index();",
"Object getIndex();",
"int getIndex() {\r\n return index;\r\n }",
"@Override\r\n\tpublic int getIndex() {\r\n\t\treturn myIndex;\n\t}",
"@VTID(15)\r\n int index();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
long n=scn.nextLong();
System.out.print(fac(n));
} | [
"@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"
]
]
}
} |
/ access modifiers changed from: protected | public void onFlush() {
if (isActive()) {
int durationUsToFrames = durationUsToFrames(150000) * this.bytesPerFrame;
if (this.maybeSilenceBuffer.length != durationUsToFrames) {
this.maybeSilenceBuffer = new byte[durationUsToFrames];
}
int durationUs... | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\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}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Estimate the normals for each point based on the knn neighbors. | public static void estimate(IPointCloud pointCloud, int knn) {
PointNeighborsQuery query = new PointNeighborsQuery(pointCloud);
PrincipalComponentAnalysis pca = new PrincipalComponentAnalysis();
for (int pointIndex = 0; pointIndex < pointCloud.getNumberOfPoints(); pointIndex++) {
query.queryKnn(pointIndex, knn... | [
"private void calculateNormals() {\n if (!goodNormals) {\n normals = new CollisionVector[edges.length];\n for (int i = 0; i < edges.length; i++) {\n normals[i] = edges[i].perpendicular();\n }\n\n goodNormals = true;\n }\n }",
"public floa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
'male' > male, 'female' > female | public String genderConvert(String gender, String male, String female) {
if(gender.equals("male"))
return male;
return female;
} | [
"public abstract String GetGender();",
"java.lang.String getUsersex();",
"@Test\n public void testIsMale() {\n Assert.assertEquals(false, genderResolver.isMale(\"Lilka\"));\n Assert.assertEquals(true, genderResolver.isMale(\"Marek\"));\n }",
"public String GetGender() { return m_gender; }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
perform before all tests (setup) | public void before() {
driver = new ChromeDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://app.invoice-factory.source-code.rs/login");
} | [
"@Before\n \tpublic final void beforeTest() throws Exception {\n \t\tprepareTest();\n \t}",
"@Before\n public void setup() throws Exception {\n // n/a\n }",
"@Before\n\tpublic void setUp(){\n\t\tSystem.out.println(\"Before each test case\");\n\t}",
"@Before\r\n\tpublic void setUpBefore() throws Exception... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
transforming the default modifier existence into the isAbstract flag copy never has modifiers | @Override
public void postProcessNode(SNode pastedNode) {
SNode methodParent = SNodeOperations.getParent(pastedNode);
if (SNodeOperations.isInstanceOf(methodParent, CONCEPTS.Classifier$Ix)) {
if (SNodeOperations.isInstanceOf(methodParent, CONCEPTS.Interface$db)) {
if (!(SPropertyOperations.getBo... | [
"void setAbstract(boolean isAbstract);",
"public void setIsAbstract(boolean b) {\n\n\t}",
"public void testAbstractSetterAndGetter() {\n //initial value is false\n assertFalse(element.isAbstract());\n //sets the Abstract with true\n element.setAbstract(true);\n assertTrue(elem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__UIActionDeleteAction__Group__1" $ANTLR start "rule__UIActionDeleteAction__Group__1__Impl" ../org.applause.lang.ui/srcgen/org/applause/lang/ui/contentassist/antlr/internal/InternalApplauseDsl.g:6788:1: rule__UIActionDeleteAction__Group__1__Impl : ( 'delete' ) ; | public final void rule__UIActionDeleteAction__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.applause.lang.ui/src-gen/org/applause/lang/ui/contentassist/antlr/internal/InternalApplauseDsl.g:6792:1: ( ( 'delete' ) )
... | [
"int deleteByExample(Sys_group_actionExample example);",
"public final void rule__ExecuteAction__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../de.nagarro.nteg.domain.model.ui/src-gen/org/example/domainmodel/ui/contentassist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Folder holder. | public FolderHolder(@NonNull View itemView) {
super(itemView);
txtFolderName=itemView.findViewById(R.id.txtFolderName);
itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
int position=ge... | [
"public FolderModel() { }",
"public static Factory factory() {\n return Folder_remote::new;\n }",
"public HistoryCollection(Local folder) {\n super(folder);\n folder.mkdir(true);\n }",
"protected TLFolder(TLLibrary owningLibrary) {\n if (owningLibrary == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Raw height and width of image | public static int calculateInSampleSize(
BitmapFactory.Options options, int reqWidth, int reqHeight) {
final int height = options.outHeight;
final int width = options.outWidth;
int inSampleSize = 1;
if (height > reqHeight || width > reqWidth) {
final int halfHei... | [
"int getWidth() { return this.img.getWidth(); }",
"Integer getImageHeight();",
"int getHeight() { return this.img.getHeight(); }",
"public String getImageWidth();",
"public double getImageSize() {\n return myRectangleDimensions.getHeight();\n }",
"public int getImageWidth() {\n return i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the value of alive which tells whether or not the piece is in the game | @Override
public boolean isAlive() { return alive;} | [
"public boolean getAlive(){\n\t\tif(hp > 0 && food > 0 && sleep > 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean alive(){\n return life>0;\n }",
"public boolean isAlive(){\r\n return this.health>0;\r\n }",
"public boolean isAlive() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sunflow.setPointLight("myPointLight", new Point3(theLight.position().x, theLight.position().y, theLight.position().z), new Color(255, 255, 255)); | public void setupLight(Light theLight) {
} | [
"void setPointLight(int lightNumber, Vector3f mPosition, Color4f color);",
"public void setLights()\n{\n directionalLight(255, 255, 255, 0, 0, -1);\n ambientLight(20, 20, 20);\n}",
"private void initLight(){ \n DirectionalLight sun = new DirectionalLight();\n sun.setDirection((new Vector3f(-0.5f, -0.5... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form adminpage | public adminpage() {
initComponents();
} | [
"public newadmin() {\n initComponents();\n \n }",
"public void newAction() {\n\t\tPageParameters p= new PageParameters();\n\t\tp.add(\"new\", 1);\n\t\tsetResponsePage(ExpedisiPage.class,p);\n\t\ttry\n\t\t{\n\t\t\treadOnly(false);\n\t\t}\n\t\tcatch(Exception ex){}\n\t}",
"public void createNewPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Plays out a turn with the player firing an arrow in the given direction. | @Override
public void fireArrow(Direction move) {
level.fireArrow(move);
} | [
"void turn(int direction);",
"public void turnTo(float direction) {\r\n\t\tturnTo(direction * 1.0D);\r\n\t}",
"public void play(int direction)\n {\n if(direction == RIGHT_INPUT){\n slideRight();\n }\n else if(direction == LEFT_INPUT){\n slideLeft();\n }\n else if (dire... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of portConncet method readWrite method | @Override
public void serialEvent(SerialPortEvent evt) {
if (evt.getEventType() == SerialPortEvent.DATA_AVAILABLE) { // if data
// available
// on serial
... | [
"@Override\n public void readWrite() {\n }",
"void handleWrite() {\n if (queue.isEmpty() && outgoing == null) {\n key.interestOps(SelectionKey.OP_READ);\n return;\n }\n\n try {\n if (outgoing == null) {\n Queued b = (Queued... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1" $ANTLR start "rule__JvmUpperBound__TypeReferenceAssignment_1" InternalJQVT.g:22197:1: rule__JvmUpperBound__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ; | public final void rule__JvmUpperBound__TypeReferenceAssignment_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalJQVT.g:22201:1: ( ( ruleJvmTypeReference ) )
// InternalJQVT.g:22202:1: ( ruleJvmTypeReference )
{... | [
"public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:27595:1:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column ecs_ad.click_count | public void setClick_count(Integer click_count) {
this.click_count = click_count;
} | [
"public void setCount(java.math.BigInteger count)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.Si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
remove from the list at its given indice, if it doesn't exist, throw an exception | public void disconnectInterface(VMandIntrfcPair vMandIntrfcPair){
} | [
"public E remove( int index ) throws IndexOutOfBoundsException;",
"E removeIndex(int index);",
"E remove(int ndx);",
"public T remove(int index){\n try{\n //Check to see if index is in range\n isIndexInRange(index);\n\n //Assigns return value\n @SuppressWarni... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles each epoch by receiving an unordered array of proposed transactions, checking each transaction for correctness, returning a mutually valid array of accepted transactions, and updating the current UTXO pool as appropriate. | public Transaction[] handleTxs(Transaction[] possibleTxs) {
Transaction[] acceptedTrans = new Transaction[possibleTxs.length];
int totalTx = 0; // counts how many transactions were valid
//Add valid transactions, set null for invalid
for (int i = 0; i < possibleTxs.length; i++) {
... | [
"public Transaction[] handleTxs(Transaction[] allTxToBeHandledArr)\n {\n // Defensive copy of the original TXs in the array used in each handling round.\n Transaction[] poolTXsToBeHandled = copyOf(allTxToBeHandledArr, allTxToBeHandledArr.length);\n\n // Initialization of the array of transac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void removeCustomer(int customerId) {
} | [
"@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"
]
]
}
} |
Perform MayHappeninParallel Analysis Perform a MayHappeninParallel analysis. Perform a MayHappeninParallel analysis to assist in allocating locks. | public boolean do_mhp() {
return soot.PhaseOptions.getBoolean(options, "do-mhp");
} | [
"private void mProcLong() throws Exception {\n TFilePool pool = multiScan(PARALLEL_DEGREE);\n server.setLocalPool(pool); // flush the local scan result into the local pool\n }",
"public void setParallelAdhoc();",
"public void processExternalTasks() {\n\n // Ignore concurrent calls to thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | C16724c mo43359a(C15345b bVar) throws RemoteException; | [
"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"
]
]
}
} |
String ls="",rs=""; //4 String ls="XXXXXXX",rs="XXXXXX"; //4 String ls="XXXXXXXXXX",rs="XXXXX"; //6 | public static void main(String[] args) {
String ls="XXX-X-XX-X",rs="XXX-X-XX-X"; //6.82842712474619
System.out.println(getArrangement(ls,rs));
} | [
"public static void main(String[] args) {\nString a=\"thiru\";\nString b=\"\";\nSystem.out.println(a.isEmpty());\nSystem.out.println(b.isEmpty());\n\t}",
"public static void main(String[] args) {\n//\t\tLRE lre2 = new LRE(\"S,SvS,SuS,q\");\r\n//\t\tSystem.out.println(Final);\r\n//\t\tFinal = \"\";\r\n//\t\tLRE lr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 40 /Coverage entropy=0.0 | @Test(timeout = 4000)
public void test40() throws Throwable {
Contract contract0 = new Contract();
Order order0 = new Order();
OrderState orderState0 = new OrderState();
Contract contract1 = new Contract(0, (String) null, "BAG", (String) null, 0, (String) null, (String) null, (String) null, ... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notnull value; ensure this value is available before it is saved to the database. | public void setName(String name) {
this.name = name;
} | [
"public String getNullValue () {\n \t return nullValue;\n }",
"@Override\n\tpublic String notNull() {\n\t\treturn null;\n\t}",
"@Override\n public String getValue() {\n return null;\n }",
"@Override\n\tpublic String mustSelectValue() {\n\t\treturn null;\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method adds the cucumber scenario into the test context. | @Before(order = 1)
public void addScenarioToTestContext(Scenario scenario) {
TestContext.getCurrent().set(DawgHouseConstants.CONTEXT_SCENARIO, scenario);
LOGGER.info("Starting scenario {}", scenario.getName());
} | [
"@Override\n\tpublic void startOfScenarioLifeCycle(Scenario scenario) {\n\t\tlog.info(\"Scenario started\");\n\t\tscenarioTest=extent.startTest(\"Scenario :\"+ scenario.getName());\n\t\tfor (Tag tag : scenario.getTags()) {\n\t\t\tscenarioTest.assignCategory(tag.getName());\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the int representation of the work group. | public int getValue ()
{
return (m_value);
} | [
"public int getGroupNumber()\n\t{\n\t\treturn getBigDecimal(CarryInformation.GROUPNUMBER).intValue();\n\t}",
"public java.lang.Integer getGroup() {\n\treturn group;\n}",
"public int getint() {\n return Integer.getInteger(_data);\n }",
"public IntColumn getTlsGroupNumber() {\n return delegate.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get All Data from Table Priority | @SuppressWarnings("unchecked")
@Override
public List<String> getAllPriorityAreaData() {
Query query = null;
query = entityManager.createQuery("select p.areaName from Priority p");
List<String> listOfPriorityAreaData =(List<String>) query.getResultList();
return listOfPriorityAreaData;
} | [
"List<?> findAllUserPriorityMapping();",
"List<?> findAllWorkPriorityMapping();",
"@Query(\"SELECT *FROM note_table ORDER BY priority DESC\")\n LiveData<List<Note>>getAllNotes();",
"List<?> findAllMachinePriorityMapping();",
"public ArrayList selectWholeTable();",
"public void getCostumerTable() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .POGOProtos.Rpc.ArPhotoSessionProto.BatterySample battery_samples = 19; | public Builder removeBatterySamples(int index) {
if (batterySamplesBuilder_ == null) {
ensureBatterySamplesIsMutable();
batterySamples_.remove(index);
onChanged();
} else {
batterySamplesBuilder_.remove(index);
}
return this;
} | [
"com.google.protobuf.ByteString getSampleBytes();",
"public void handleBatteryData(final byte[] value) {\n if(value != null){\n byte currentSteps = value[1];\n battery = String.valueOf(currentSteps);\n }\n }",
"@Override\n\tpublic int getBattery() {\n\t\treturn 0;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if given element is blank or not. | private boolean isBlank(char character) {
return character == '\r' || character == '\n' || character == '\t' || character == ' ';
} | [
"@Override\r\n\tpublic boolean isEmpty() {\n\t\tint i=0;\r\n\t\tif(this.elementData[i] == null && i<elementData.length) {\r\n\t\t\ti++;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean empty() {\n return elementData.isEmpty();\n }",
"boolean IsEmpty();",
"public boolean i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / 476 | public void setFechaModificacion(String p) { this.fechaModificacion = p; } | [
"protected int snapBits(){return 9;}",
"public int method_2493() {\r\n return 16777215;\r\n }",
"void mo8166KB();",
"@Override\n public long fbeSize() { return 4; }",
"public int mo5868b() {\r\n return 32;\r\n }",
"public int getTileWidth() {\n/* 91 */ return 32;\n/* */ }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Navigate through Radio names to compare strings | public static void removeRadio(String nameRadio){
for (int i = 0; i < house.getFloorList().get(cbFloors.getSelectedIndex()).getRoomList().get(cbRooms.getSelectedIndex()).getRadioList().size(); ++i){
if (nameRadio.equalsIgnoreCase(house.getFloorList().get(cbFloors.getSelectedIndex()).getRoomList().get(cbRooms... | [
"public String verifyRadioSelected(String object, String data) {\r\n\t\tAPP_LOGS.debug(\"Verify Radio Selected\");\r\n\t\ttry {\r\n\t\t\tString temp[] = object.split(Constants.DATA_SPLIT);\r\n\t\t\tString checked = driver.findElement(By.xpath(temp[0] + data + temp[1])).getAttribute(\"checked\");\r\n\t\t\t// System.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first s m a admins in the ordered set where isActive = &63; and radcheckId = &63; and userId = &63; and companyId = &63;. | public static com.pacnet.connect.model.SMAAdmins findBySMAAdminsListByRadcheckIdUserIdCompanyId_First(
int isActive, long radcheckId, long userId, long companyId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.pacnet.connect.N... | [
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<User> getAllManagersForSuperUser(int companyId) {\n\t\ttry{\r\n\t\t\treturn getSessionFactory().getCurrentSession()\r\n\t\t\t\t\t.createQuery(\"from User where ROLE_ID=? AND COMPANY_ASSOCIATION_ID=? \")\r\n\t\t\t\t\t.setParameter(0, 3)\r\n\t\t\t\t\t.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write a Java Program to print first 10 numbers of Fibonacci series. | public static void main(String[] args) {
int a=0;
int b=1;
for(int i=0;i<10;i++) {
int c=a+b;
a=b;
b=c;
System.out.print(c+" ");
}
} | [
"private static void printFibonacci() {\n\t\tSystem.out.println(\"printFibonacci: \");\n\t\tint next = 1;\n\t\tint prev = 0;\n\t\twhile(prev < 50) {\n\t\t\tSystem.out.println(prev);\n\t\t\tint temp = next + prev;\n\t\t\tprev = next;\n\t\t\tnext = temp;\n\t\t}\n\t}",
"static void printFibonacciNumbers(int n)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse commandBytes of notification from a sensor module. | public NotifyBLEConnectionParametersAdjustment(byte[] receivedCommand) {
super(receivedCommand);
if (validCommand) {
byte pattern = receivedCommand[LENGTH_COMMAND-1];
connectionParametersAdjustment = BLEConnectionParametersAdjustment.toEnum(pattern);
}
} | [
"private void ParsePlayerUpdateResponse(byte[] buffer)\n {\n \tbyte numCommands = buffer[1];\n \t\n \tint offset = 2; // starting offset\n \t\n \tfor(int i = 0; i < numCommands; i++)\n \t{\n \t\tbyte cmd = buffer[offset++]; // Command type\n \t\t\n \t\tif (cmd == 0x00) // EmptyCommand\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of object identifier argument | protected String get_object_name() {
if(this.id != null) {
return this.id.toString();
}
return null;
} | [
"public String getIdentifier(Object object);",
"public String getId(Object o);",
"public Integer getIdentifier();",
"String getIdValue(T object, int index);",
"public Serializable getIdentifier();",
"abstract String getIdentifier();",
"public Object getIdentifier()\n {\n return IDENTIFIER;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parameterized constructor will create a new webservice operation for the port type binding of a WSDL document with the given name, type and messages. The binding operation type is solely used for implicit message naming. It is not possible to retrieve the type of a binding operation after creation, as the operation typ... | public FBindingOperationImpl(final String bindingOperationName, final FOperationType bindingOperationType,
final FBindingOperationInputMessage inputMessage, final FBindingOperationOutputMessage outputMessage) throws IllegalArgumentException
{
this.bindingOperationName = bindingOperationName;
this.pe... | [
"protected final WsdlPortType parsePortType(Element ePortType) {\r\n\t\tWsdlPortType portType = new WsdlPortType(ePortType.attributeValue(\"name\"));\r\n\r\n\t\tList<?> eOperations = ePortType.elements(\"operation\");\r\n\t\tfor (Object o : eOperations) {\r\n\t\t\tportType.addWsdlOperations(parseOperation((Element)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update recurrence type info | @Test
public void updateEventRecurrence_Success() throws DAOException, ObjectNotFoundException {
testEventRecurrence.setRepeatInterval(7);
//test method
eventRecurrenceDAO.updateRecurrence(testEventRecurrence);
//read updated record from db
Recurrence eventRecurrence = even... | [
"public void updateType(Type type) {\n\t\t\n\t}",
"public void updateType(type t) {\n\t\t\n\t}",
"private void update_reltype (Node relType) {\n relType.setProperty(\"name\", this.getName());\n relType.setProperty(\"description\", this.getDescription());\n relType.setProperty(\"bindlevel\",... | {
"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(final Menu menu) {
getMenuInflater().inflate(R.menu.helpandfeedmenu, 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"
]
]
}
} |
Method that takes an encrypted char and a key and returns the decrypted char | public Character decryptChar(Character c, int key){
HashMap<Integer, Character> intToChar = generateCharIntTable();
HashMap<Character, Integer> charToInt = generateIntCharTable();
int decryptValue = charToInt.get(c) + key;
while(decryptValue > 30){
decryptValue = decry... | [
"protected abstract int decryptionMorph(int charVal, int key);",
"public String Decrypt(String ciphertext, String key, int charSize){\n String res=\"\";\n int j=0;\n int keyLength = key.length();\n int offsetK = (charSize==26)? 97:0;\n for(int i=0; i<ciphertext.length(); i++){\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a negative number if this r To compare a/b and c/d, compare ad and bc | public int compareTo (BigRat r)
{
BigInteger diff = this.num.multiply(r.den).subtract(this.den.multiply(r.num));
if (diff.compareTo(BigInteger.ZERO) == -1)
{
return -1;
}
else if (diff.compareTo(BigInteger.ZERO) == 1)
{
return 1;
... | [
"private int calcGcd()\n {\n int result = 1;\n int a = this.numerator;\n int b = this.denominator;\n if (a < 0)\n {\n a = -a;\n }\n if (b < 0)\n {\n b = -b;\n }\n if (a == b)\n {\n result = a;\n }\n else\n {\n int smaller = Math.min(a,b);\n while (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
J210421_03_Calculator c=new J210421_03_Calculator();
// int a=10,b=3;
System.out.println(c.getMaker());
// System.out.println(c.add(a,b));
// System.out.println(J210421_03_Calculator.add(10, 7));
System.out.println(J210421_03_Calculator.add(4, 8));
System.out.println(... | [
"@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"
]
]
}
} |
createBatchResult Copy new object IDs from the given BatchResult to the corresponding DBObjects within the given DBObjectBatch. | private void copyObjectIDsToBatch(BatchResult batchResult, DBObjectBatch dbObjBatch) {
if (batchResult.getResultObjectCount() < dbObjBatch.getObjectCount()) {
m_logger.warn("Batch result returned fewer objects ({}) than input batch ({})",
batchResult.getResultObjectCount... | [
"Batch findBatchById(int id);",
"public ProductBatchDTO getProductBatch(int productbatchID) throws DALException;",
"public getDocidsBatch_args(getDocidsBatch_args other) {\n if (other.isSetCall_data()) {\n this.call_data = new JmoCallData(other.call_data);\n }\n if (other.isSetIndex_name()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simulate the digging of the block as if a player had done so. | boolean digBlock(Vector3i position); | [
"public void onBlockHarvested(World world, int x, int y, int z, int blockId, Player player) {\n\t}",
"public boolean onBlockBreak(Player player, Block block) { return false; }",
"@Test\n public void testPowerUpStillWhileBlockIsPresent() throws IOException {\n myBallGrower.createPowerUpAtPoint(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the assignedProjects value for this UserDetails. | public int[] getAssignedProjects() {
return assignedProjects;
} | [
"@Nonnull\n\tGenericAttributeValue<String> getAssignedProjects();",
"public List<Project> getAssigned(){\n\t /*\n\t * if the assigned list had not been initialized yet, \n\t * initialize it with assigned projects from the network.\n\t * Do not do this if the list has already been initialized,\n\t ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public String getBirthYear() {
return birthYear;
} | [
"@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"
]
]
}
} |
URL of the EndUser's Web page or blog. This Web page SHOULD contain information published by the EndUser or an organization that the EndUser is affiliated with. | default String getWebsite() {
return (String) getAllClaims().get(STANDARD_CLAIM_WEBSITE);
} | [
"public String getWebsiteUrl() {\n\t\treturn \"http://the-job-announcement.com/view.jsf?id=\" + id;\n\t}",
"String getAuthorizationPageUrl();",
"public static String SERVER_URL_USER() {\n\t\tfinal String URL = \"upload/user.php\";\n\t\tboolean develop = PreferenceControl.isDeveloper();\n\t\tif (develop)\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Directly examine contents of classfile binary header. | public void readClassInfoFromClassfileHeader(final InputStream inputStream, boolean verbose) //
throws IOException {
classfileBinaryParser.readClassInfoFromClassfileHeader(inputStream, verbose);
} | [
"@Test\n\tpublic void testReadBinaryHeader() {\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = new FileInputStream(\n\t\t\t\t\tgrfFile.getAbsolutePath());\n\t\t\tLittleEndianDataInputStream datastream = new LittleEndianDataInputStream(\n\t\t\t\t\tfileInputStream);\n\t\t\tBinaryHeader testedheader = BinaryHeader... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if this device is busy with output. | boolean isBusy(); | [
"protected final boolean hasPendingOutput() {\n return outputBuffer.hasRemaining();\n }",
"boolean isOutputReady() throws IOException;",
"public boolean isOutputConnected() {\n return outputPort.isConnected();\n }",
"public boolean isBusy() {\n\t\tsynchronized (this) {\n\t\t\treturn isBusy;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to print board to command line. | private void printBoard(int[][] board)
{
System.out.println("\nPrinting Current Board:");
for (int row = 0; row < board.length; row++)
{
for (int col = 0; col < board[row].length; col++)
{
System.out.print("[ " + board[row][col] + " ] ");
}
System.out.println();
}
System.out.println();
} | [
"public void printBoard(){\r\n \t\tSystem.out.print(toString());\r\n \t}",
"public void printBoard() {\n\t\t//TODO\n\t}",
"static void printBoard()\n\t{\n\t\tSystem.out.println(\"|---|---|---|\");\n\t\tSystem.out.println(\"| \" + board[0] + \" | \"\n\t\t\t\t\t\t+ board[1] + \" | \" + board[2]\n\t\t\t\t\t\t+ \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Object getId() {
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"
]
]
}
} |
/ access modifiers changed from: protected / renamed from: a | public EnumC31390c fromValue(int i) {
return EnumC31390c.fromValue(i);
} | [
"protected void a() {}",
"protected void a()\n\t{\n\t\tsuper.a();\n\t}",
"protected void method_5557() {}",
"protected abstract void mo3493a();",
"@Override\n\tpublic void aamir() {\n\n\t}",
"private void a() {\n }",
"@Override\r\n\tpublic void a2() {\n\t\t\r\n\t}",
"@Override\r\n public void pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
distancePopup.dismiss();
} | [
"@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"
]
]
}
} |
Returns the number of bytes required to store item in memoryFile. | public int getNumBytes(String item)
{
char[] itemChars = item.toCharArray();
int numBytes = itemChars.length / 4;
if (item.length() % 4 != 0)
{
numBytes++;
}
return numBytes;
} | [
"public int getMemorySize() {\n return blockCount * (DiskFile.BLOCK_SIZE / 4);\n }",
"public long getSize() {\n if (buffer.isInMemory()) {\n return buffer.getData().length;\n } else {\n return buffer.getFile().length();\n }\n }",
"@Override public int stor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text generalinfo: Details of the retrieve action service response (lists returned reports) | public String getProductProcessingRetrieveActionResponse() {
return productProcessingRetrieveActionResponse;
} | [
"@Schema(description = \"`status: Not Mapped` core-data-type-reference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text general-info: Details of the retrieve action service request (lists requested reports) \")\n public String getAlertsRetrieveActionRequest() {\n return alertsRetrieveActionRequest;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
a nearest neighbor in the set to point p; null if the set is empty | public Point2D nearest(Point2D p) {
if (p == null) {
throw new java.lang.NullPointerException("cannot get nearest of null point");
}
if (isEmpty()) return null;
double minDist = Double.POSITIVE_INFINITY;
return nearest(p, root, Double.POSITIVE_INFIN... | [
"public Point2D nearest(Point2D p) {\n\t\t if (p == null) throw new NullPointerException(p +\" can't be null!\");\r\n\t\t \r\n\t\t double minDistance = Double.MAX_VALUE;\r\n\t\t Point2D target = null;\r\n\t\t for (Point2D that : set) {\r\n\t\t\t double distance = p.distanceTo(that);\r\n\t\t\t if (dist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log.d(TAG, String.format("MenuItem %d was clicked", which)); | private void onPostPopupMenuItem(int position, int which) {
if (position >= PostListContent.POSTS.size()) {
Log.e(TAG, "onPostPopupMenuItem: " + "Invalid Post index" + position);
return;
}
Post post = PostListContent.POSTS.get(position);
if (which == 0) {
// post_reply_post
Com... | [
"@Override\n\t \t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t \t\t\t\t\tint position, long id) {\n\t \t\t\t\tonMenuItemClick(position);\n\t \t\t\t}",
"@Override\n public void onMenuClick() {\n Toast.makeText(SearchTextView.this, \"Menu click\", Toast.LENG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stvara iznimku sa zadanom porukom | public BolestIstihSimptoma(String message) {
super(message);
} | [
"private void nastavi()\n {\n Date trenutno = new Date();\n long lTrenutno = trenutno.getTime(); //trenutno vreme u milisekundama\n //Prolazak kroz mapu da bi se utvrdilo vreme koje je bilo predvidjeno za isporuku\n HashMap<Integer, Porudzbina> kopija = new HashMap<>(porudzbineNeispor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
} | [
"@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"
]
]
}
} |
/ initializes person based on type des is the text the player sees when inspecting the person dialogue is what the person says when the player talks to them idleDes is what the person is doing in the area | public abstract void initialize(); | [
"public void setPerson(Character person) {\r\n \tthis.person = person;\r\n firstNameField.setText(person.getFirstName());\r\n RaceField.setText(person.getRace());\r\n BackgroundField.setText(person.getBackground());\r\n AlignmentField.setText(person.getAlignment());\r\n ClassLe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to save a trade | void save(Trade trade); | [
"public void save(Trade trade) throws Exception {\n\t\tthis.getHibernateTemplate().save(trade);\n\t}",
"void save(Deposit deposit);",
"void save(Order order);",
"void save(DealPO dealPO);",
"@Override\n\tpublic void save(Aquarium t) {\n\n\t}",
"@Override\n\tpublic void save(Trader trader, Moment t) {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Cycle 1: IQ : [ADDI R8, R0, 20] RSint : RSload : LSQ : ROB : BTB: [Entry 0]:Empty [Entry 1]:Empty [Entry 2]:Empty [Entry 3]:Empty [Entry 4]:Empty [Entry 5]:Empty [Entry 6]:Empty [Entry 7]:Empty Registers : R00: 0 0 0 0 0 0 0 0 R08: 0 0 0 0 0 0 0 0 R16: 0 0 0 0 0 0 0 0 R24: 0 0 0 0 0 0 0 0 Data Segment : 700: 0 0 0 0 ... | private static InstructionInfo getInstructionInfo(long PC) {
if (InstructionMap.containsKey(PC)) {
return InstructionMap.get(PC);
} else {
InstructionInfo Info = new InstructionInfo();
Info.setAddress(PC);
Info.setInstruction("NOP");
Info.setStage("IF");
return Info;
}
} | [
"public void scanStart1D48( )\n {\n pr_default.execute(9);\n RcdFound48 = (short)(0) ;\n if ( (pr_default.getStatus(9) != 101) )\n {\n RcdFound48 = (short)(1) ;\n A179TBW12_SESSION_ID = T001D11_A179TBW12_SESSION_ID[0] ;\n httpContext.ajax_rsp_assign_attri(\"\", false, \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_user_update_profile, container, false);
} | [
"@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"
]
]
}
} |
Intent intent = new Intent(view.getContext(), Bio.class); view.getContext().startActivity(intent); | @Override
public void onClick(View view)
{
} | [
"public void GoToAbout(View view) {\n Intent intent = new Intent(this, About.class);\n startActivity(intent);\n }",
"public void openNav() {\n //creates intent instance and pas context and the class we want to open\n Intent intent = new Intent(this, navigation.class);\n //pass ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
splitCommand splits the string with space | public static String[] splitCommand(String command) {
return command.split(" ");
} | [
"static public scala.collection.Seq<java.lang.String> splitCommandString (java.lang.String s) { throw new RuntimeException(); }",
"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\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Plays the bikebell sound and posts notification | public void ring() {
this.execute(0L);
} | [
"public void playBeep() {\n\n try {\n Uri notification = RingtoneManager\n .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n Ringtone r = RingtoneManager.getRingtone(getActivity().getApplicationContext(),\n notification);\n r.play();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use the bytes to display the image | @Override
public void onSuccess(byte[] bytes) {
java.io.File path1 = new java.io.File(Environment
.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)
+ "/SAX5B.rar");
try {
FileOutputStream fo... | [
"public void displayRawImage() {\n image.displayToConsole();\n\n }",
"@Override\n public void onSuccess(byte[] bytes) {\n System.out.println(\"Imgae has been stored into byte[] bytes\");\n\n// image.setImageURI(Uri.parse(\"ddd\"));\n Bitmap bm = Bitma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method retrieves whether the cash receipt ID at the specified index will be selected or not. | public DepositWizardHelper getDepositWizardHelper(int index) {
while (this.depositWizardHelpers.size() <= index) {
this.depositWizardHelpers.add(new DepositWizardHelper());
// default to no check
}
return (DepositWizardHelper) this.depositWizardHelpers.get(index);
} | [
"public boolean isSelected (int index) {\n\tcheckWidget ();\n\tif (!(0 <= index && index < itemCount)) return false;\n\treturn ((NSTableView)view).isRowSelected(index);\n}",
"public boolean isSelectedIndex(int index) {\n return messList.isSelectedIndex(index);\n }",
"public boolean isSelected( int ind... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Board Exam Schedule Driver SEtup | public static void main(String[] args) {
System.out.println("Launch Salesforce application https://login.salesforce.com/");
WebDriverManager.chromedriver().setup();
ChromeOptions options= new ChromeOptions();
options.addArguments("--disable-notifications");
ChromeDriver driver = new ChromeDriver(options);
d... | [
"public void printSchedule()\r\n\t{\r\n\t\t// see assignment doc\r\n\t\tString[][] timetable = new String[10][6];\r\n\t\tString[] days = new String[] {\"Days:\",\"Mon\",\"Tue\",\"Wed\",\"Thur\",\"Fri\"};\r\n\t\t\r\n\t\t//Student: Nested for loop to fill the time table with days and hours\r\n\t\tfor (int i = 0; i < ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
printTestDisabledMessage("regression test for bug80345 (not 22082)"); | public void test30() throws Exception {
helperSelectUp(3, 10, 3, 10);
} | [
"public final void testDisabled() {\n fail(\"this test should be disabled\");\n\n }",
"public boolean testFailing() {\n\treturn false;\n\n }",
"@Test\n\tpublic void TC_07() {\n\t\tSystem.out.println(\"TC_07\");\n\t}",
"@Test\n public void test14Missing() {\n }",
"@Test\r\n @Disabled(\"for de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Algorithm 1 Is session id valid? NO REJECT YES Calculate Rank | @Override
public Response handle(GetRankingCommand hc) {
String[] user_code = JsonHandler.GetRankingFromClient(hc.getMessage());
User u = Server.users.checkExistance(user_code[1]);//transform in user object
String message = "";
RankingToSend rts = null;
if(u==null) {
message = "Invalid user";
}
els... | [
"boolean hasMyRank();",
"static int getRank(int iD){\n\tint rank;\n\trank = (iD % NUM_RANKS);\n\tif (rank == ZERO){\n\t\treturn 13; // value of KING\n\t}\n\treturn rank;\n }",
"public int findRankingByID ( int ind ){return 5;}",
"private int createRanking() {\n for (int i = 0; i < valuRanks.lengt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Date Picker > need to move to main activity | public void showTimePickerDialog(View v) {
DialogFragment newFragment = new DatePickerFragment();
newFragment.setTargetFragment(RegisterFragment.this, 0);
newFragment.show(getFragmentManager(), "datePicker");
} | [
"@Override\r\n public void onClick(View v)\r\n {\n Intent it = new Intent(MainActivity.this, DateTimePickerActivity.class);\r\n startActivity(it);\r\n }",
"@Override\n public void onClick(View arg0) {\n new DatePickerDialog(F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Follow the forward links | public SSAIterator.DefinitionIterator getReached(SSADefinition def){
LinkedList list = (LinkedList)_reverseAdjacencyLists.get(def);
if(list == null){
return null;
}
return new SSAIterator.DefinitionIterator(list.iterator());
} | [
"public void forward() {\n\t\t\n\t}",
"public void goForward(){\n if(forwardLinks.isEmpty()){\n System.out.println(\"WARNING: FORWARD LINK NOT FOUND\");\n }\n if(!forwardLinks.isEmpty()){\n if(forwardLinks.size() == 1){\n lastString = currentLink;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method transforms the configurations like the following pseudo SQL statement transforms the rows of table configurations. SELECT COUNT(c), c.setting1 FROM configurations c GROUP BY c.setting1 | public Observable<Pair<Integer, String>> selectCountSetting1GroupBySetting1(
Observable<Configuration> configurations
) {
//TODO
throw new UnsupportedOperationException();
} | [
"static void checkForConfigsSelectedMoreThanOnce() {\n LOG.info(\"Checking for more than 1 configuration of the same type being enabled.\");\n\n String GET_CONFIGS_SELECTED_MORE_THAN_ONCE_QUERY = \"select c.cluster_name, cc.type_name from clusterconfig cc \"\n + \"join clusters c on cc.cluster_id=c.clu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of all the defined names. You cannot infer any type information from this list. | Collection<String> definedFields(); | [
"default List<String> listTypeNames(){\n List<_type> _ts = Walk.list(this, _type.class);\n List<String>names = new ArrayList<>();\n _ts.forEach(t-> names.add(t.getFullName()));\n return names;\n }",
"@Override\n\tpublic List<ClassDic> getNameList() {\n\t\tList<ClassDic> list = new A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Class constructor to create a connection to the default host and port for a topic to write LSST Events | public LsstEventWriter(String topic) {
this(topic, defaultHost, defaultPort);
} | [
"private void connect() {\n // Create headers : Add the streamdata.io app token\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"X-Sd-Token\", streamdataioAppToken);\n\n // Create the EventSource with API URL & Streamdata.io authentication token\n try... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the gui for everyone | public void update() {
updating = true;
for (HumanEntity viewer : getViewers()) {
ItemStack cursor = viewer.getItemOnCursor();
viewer.setItemOnCursor(new ItemStack(Material.AIR));
show(viewer);
viewer.setItemOnCursor(cursor);
}
... | [
"public void updateMonitoredGUI() {\n }",
"public void UpdateSettings_GUI() {\n\t\t\r\n\t}",
"public static void updateGUI( ) \r\n\t\t{ updateGUI(screen); }",
"public void updateGUI() {\r\n\t\t\r\n\t\t// Update ImageView images\r\n\t\toptionImage1.setImage(optImage1);\r\n\t\toptionImage2.setImage(optImage2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete a given entry id | boolean delete(long id); | [
"public void delete(String id) {\n log.debug(\"Request to delete Entry : {}\", id);\n entryRepository.delete(id);\n }",
"public boolean deletePantEntry(int id) throws Exception;",
"public void deleteEntry(Long entryId) {\n\t\tKey<Entry> entryKey = Key.create(Entry.class, entryId);\n\n\t\tofy().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates multiple items in a single EWS call. Supported item classes are EmailMessage, Appointment, Contact, PostItem, Task and Item. CreateItems does not support items that have unsaved attachments. | private ServiceResponseCollection<ServiceResponse> internalCreateItems(
Collection<Item> items, FolderId parentFolderId,
MessageDisposition messageDisposition,
SendInvitationsMode sendInvitationsMode,
ServiceErrorHandling errorHandling) throws Exception {
CreateItemRequest request = new CreateItemReq... | [
"public com.google.photos.library.v1.proto.BatchCreateMediaItemsResponse batchCreateMediaItems(\n com.google.photos.library.v1.proto.BatchCreateMediaItemsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getBatchCreateMediaItemsMethod(), getCallOptions(), r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new student. The id is randomly established. The password will be set to a default | public Student(String n, Major m){
name = n;
major = m;
id += 1;
password = "password";
classes = new Class[4];
gpa = 0;
} | [
"private static void insertStudent() {\n\t\tStudent student = new Student();\n\t\tSystem.out.print(\"Nhap ma sinh vien: \");\n\t\tscanner.nextLine(); // xóa bộ nhớ đệm\n\t\tstudent.setId(scanner.nextLong());\n\t\tSystem.out.print(\"Nhap ten sinh vien: \");\n\t\tscanner.nextLine(); // xóa bộ nhớ đệm\n\t\tstudent.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the test case | public ParserTest() {
try {
parser = new Parser("src/test/resources/SimpleAdd.vm");
} catch(Exception e) {
e.printStackTrace();
}
} | [
"@Test\n public void testUseCase1MainScenario() throws Exception{\n // Step 1\n System SoftwareHouse = new System();\n\n // Step 2\n String PID01 = \"Project01\";\n\n // Step 3\n assertEquals(1,SoftwareHouse.getProjects().size());\n SoftwareHouse.createProject(PID... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the count of germplasm search results based on the following parameters: | Integer countSearchForGermplasm(GermplasmSearchParameter germplasmSearchParameter); | [
"@Override\n\tpublic int countBySearch_hr(Params params) throws Exception {\n\t\treturn 0;\n\t}",
"int getFoundCount();",
"Long countCustomSearch(SearchDetails details);",
"long count(S criteria) throws NineGoldException;",
"Object countTAlgmnts(SearchFilter<TAlgmnt> searchFilter);",
"int getSasCount();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an authorized Credential object. | private static Credential getCredentials(final NetHttpTransport HTTP_TRANSPORT) throws IOException {
// Load client secrets.
InputStream in = CalendarQuickstart.class.getResourceAsStream(CLIENT_SECRET_DIR);
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputSt... | [
"private Credential authorize() throws IOException {\n // Load client secrets.\n InputStream in = new FileInputStream(CLIENT_SECRET_JSON);\n \n GoogleClientSecrets clientSecrets =\n GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));\n\n // Build flow and... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean shouldRender3DInInventory(int modelId) {
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"
]
]
}
} |
Instantiates a new entity. | protected Entity(int pk) {
this(new JsonObject().putNumber(PK_FIELDNAME, pk));
} | [
"EntityInstance createEntityInstance();",
"protected abstract Entity createEntity();",
"public final Entity createEntity() {\n Entity entity = new Entity(this);\n if (onCreateCustomizer != null) {\n onCreateCustomizer.customizeEntity(entity);\n }\n entityMap.put(entity.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor which sets the default scanner. | public AnalyseurSyntaxique(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);} | [
"public Scanner() {\n }",
"void setScanner(Scanner in) {\n scanner = in;\n }",
"public StyleScanner()\n {\n this(\"\");\n }",
"public ECGReader(java_cup.runtime.Scanner s) {super(s);}",
"public LuaBaseScanner() {\n super();\n }",
"public Parser(Scanner scanner) {\n \t\tthis.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by willstan on 8/20/15. | public interface MongoOffsetUtil {
public int getOffset(String path);
public void setOffset(String path, int offset);
} | [
"@Override\n public void extornar() {\n \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\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\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the data value and color of the node. | public String toString() {
if (data == null) {
return "NIL (" + color + ")";
}
return data + " (" + color + ")";
} | [
"@Override\n public int get(GraphViewDataInterface data) {\n return Color.RED;\n }",
"public Color getColor() {\r\n return (colorData);\r\n }",
"public int getNodeData(){\n return data;\n }",
"public float getNode_value() {\n\t\treturn node_value;\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
implementation copied from Random::internalNextInt | @Override
public int nextInt(int lowerInclusive, int upperExclusive) {
if (lowerInclusive < upperExclusive) {
int n = upperExclusive - lowerInclusive;
if (n > 0) {
return nextInt(n) + lowerInclusive;
}
else { // range not representable as int
... | [
"public int nextInt()\n/* */ {\n/* 434 */ return mix32(nextSeed());\n/* */ }",
"public static final int nextInt()\n\t{\n\t\treturn rnd.nextInt();\n\t}",
"@Override\n\tpublic int generateNextInt() {\n\t\treturn incrementer.nextIntValue();\n\t}",
"private static int generateRandomInt() {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getCount method, of class CommonString. | @Test
public void testGetCount() {
System.out.println("getCount");
instance = CommonString.getInstance();
String expResult = CommonString.getInstance().getCount();
String result = instance.getCount();
assertEquals(expResult, result);
} | [
"@Test\n\tpublic void testCountNumbers1() {\n\t\tmycustomstring.setString(\"I'd b3tt3r put s0me d161ts in this 5tr1n6, right?\");\n\t\tassertEquals(7, mycustomstring.countNumbers());\n\t}",
"java.lang.String getCount();",
"@Test\n public void testCountNumbers4() {\n mycustomstring.setString(\"I'd bett... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: d | public final void m9105d() {
synchronized (this) {
this.f7606a = null;
}
} | [
"private void d() {\n }",
"public void mo1857d() {\n }",
"public void setD(String d) {\n this.d = d;\n }",
"public boolean d() {\n }",
"protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }",
"protected void mo4791d() {\n }",
"@Override\n\tpublic voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the current player turn | public String getPlayerTurn() {
return this.playerTurn;
} | [
"public Player getCurrentTurn() {\n return this.currentTurn;\n }",
"public int GetPlayerTurn()\n\t{\n\t\treturn nextPlayerTurn;\n\t}",
"public String getCurrentPlayerTurn(){\n return currentPlayerTurn;\n }",
"public Player getWhoseTurn() {\r\n\t\tint turnID = turnNum % Game.MAX_PLAYERS;\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a new processor type. | public void setType(ProcessorType type) {
this.modified = true;
this.type = type;
} | [
"public void setProcessor(String newProcessor) {\n this.processor = newProcessor;\n }",
"public void setProcessorType(CompositeImageType type)\n\t{\n\t\tsetProcessorType(type.ordinal());\n\t}",
"public void setProcessingType(int value) {\n\t\tthis.processingType = value;\n\t}",
"public AbstractProcessor(P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compare the values of the supplied object with those stored in the current object. | @Override
public boolean equals(Object objectToCompare)
{
if (this == objectToCompare)
{
return true;
}
if (!(objectToCompare instanceof GovernanceZoneDefinition))
{
return false;
}
GovernanceZoneDefinition that = (GovernanceZoneDef... | [
"boolean isEqual(java.lang.Object toSource, java.lang.Object toNewValue);",
"int compareValue(XmlObject obj);",
"protected boolean compare(Object obj1, Object obj2)\n {\n return callCompare(obj1, obj2);\n }",
"@Override\n public boolean equals(Object objectToCompare) {\n if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete Table Data // Select Table Data // | public List<UserLogin> getUsers()
{
List<UserLogin> list = new ArrayList<UserLogin>();
String sql = WebUtil.substituteParam("cond", "1=1", select_user);
List<Map<String, Object>> results = query(sql);
for (Map<String, Object> result : results)
list.add(new UserLogin... | [
"public void TableDelete(String[] data){\n String strdel = \"DELETE table_info WHERE table_id = ?\";\n DBConnect del = new DBConnect();\n try{\n del.initConnection();\n stmtTableGroupDelete = del.conn.prepareStatement(strdel);\n stmtTableGroupDelete.setString(1,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ajouter la phase de synchronisation qui attend que la partie commence. Au retour appel de goToPartie | @Override
public void chargerDonnees() {
this.ticket.setText(this.controleur.getToken());
this.ticket.setDisable(false);
Task<Boolean> attenteJoueur = new Task<Boolean>() {
@Override
protected Boolean call() throws Exception {
while (!controleur.partie... | [
"public void commencerPartie()\n {\n int tour=0;\n\n while(PARTIENONFINIE)\n {\n int j=0;\n this.setInfluenceTour(this.lancerDes());\n if(tour==1)\n APOCALYPSE=true;\n fintour=false;\n while (j < this.joueur.size() && !fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
generator article must parameter | private void generatorArticleParameter(Article article) {
// id
article.setId(IDUtils.getId());
// add time
article.setAddTime(DateUtils.NOW_TIME);
// update time
article.setUpdateTime(DateUtils.NOW_TIME);
// read number
article.setReadNumber(NumberEnum... | [
"public ArticleBO getArticle(List<ArticleBO> articles) {\n\t\tRandom generator = new Random();\n\t\tint maxIndex = articles.size() - 1;\n\t\tint index;\n\t\tif (ContentGeneratorService.currentPageIndex <= maxIndex) {\n\t\t\tindex = ContentGeneratorService.currentPageIndex;\n\t\t} else {\n\t\t\tindex = generator.nex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |