query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Configure a DAC policy. Parameters: sPolName: the DAC policy name. sContName: the name of a user attribute that will contain all users' name attributes. | private Packet genDac(String sSessId, String sPolName, String sContName) {
// Check permissions...
// If a policy with the property "type=discretionary" already exists,
// return.
if (getEntityWithPropInternal(PM_NODE_POL, "type=discretionary") != null) {
return failurePacke... | [
"public synchronized void setFirewallPolicy(FirewallPolicy pol)\n/* 697: */ {\n/* 698: 487 */ setFirewallPolicy(this.nativePtr, pol.value());\n/* 699: */ }",
"PolicyController build(String name, Properties properties);",
"private void setupPoliciesPanel() {\n /**Remove all before addin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make callback with the selected item | public void onClick(DialogInterface dialog, int which) {
switch (which) {
case 0:
mListener.onScalebarTypefaceSpecified(Typeface.MONOSPACE);
break;
case 1:
mListener.onScalebarTypefaceSpecified(Typeface.SANS_SERIF);
... | [
"public abstract void onSelect(T selectedItem, int selectedIndex);",
"public abstract void onSelected(Context context, Object data);",
"public void onItemSelected(Book selectedItem);",
"public void onItemSelected(Bundle params);",
"public void onItemSelected(DeviceContext context);",
"public void selectIt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List of blocked fraud names. | @javax.annotation.Nullable
@ApiModelProperty(example = "[\"name123\",\"adhoc\"]", value = "List of blocked fraud names.")
public List<String> getBlockedNames() {
return blockedNames;
} | [
"List<String> getBlacklist();",
"public java.util.List<java.lang.String> getRejectNameList() {\n return java.util.Collections.unmodifiableList(result.rejectName_);\n }",
"public List<String> getBlacklist() {\r\n return this.blacklist;\r\n }",
"public List<String> getSiteBlocked() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method for initialization widgets, fields and Firebase instances | private void initViews() {
// Initialization of Button widgets from layout
reply = findViewById(R.id.topic_view_reply_button);
// Getting intent from Forum activity and getting extra string
Intent intent = getIntent();
topicFeed = intent.getStringExtra("topic_name");
top... | [
"public void initViews() {\n // Initialization of Firebase widgets\n fStore = FirebaseFirestore.getInstance();\n fAuth = FirebaseAuth.getInstance();\n fUser = fAuth.getCurrentUser();\n // Initialization of EditText widgets\n changeName = findViewById(R.id.change_name);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = (RelativeLayout) inflater.inflate(R.layout.fragment_main, container, false);
btn_ajukan_beasiswa = view.findViewById(R.id.btn_ajukan_beasiswa);
b... | [
"@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"
]
]
}
} |
bytes tracingSpan = 2; | public Builder clearTracingSpan() {
tracingSpan_ = getDefaultInstance().getTracingSpan();
onChanged();
return this;
} | [
"default void processMemoryAccessibilityChanged(TraceRecorder recorder) {\n\t}",
"TracingVerbosity getTracingVerbosity ();",
"@Override\n public final int getTraceLength ()\n {\n return getReadingValue ().length;\n }",
"public void logTrace(Object message) {\n/* 204 */ logInternal(5, message, null);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / | public int getWidth() {
/* 71 */ throw new RuntimeException("Stub!");
/* */ } | [
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\" )\\\\ (()/( ( )\\\\()) )\\\\ (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
id counter is reset to 0 | public static void resetID() {
counter = 0;
} | [
"private static void incrementId() {\n chronologicalId += 1;\n }",
"int advanceId();",
"IdCounter getIdCounter();",
"public int getId() {\n return id++;\n }",
"void reIDNodes() {\n\t\tint counter = INITIAL_COUNTER;\n\n\t\tfor (WayPoint n : fWayPoints) {\n\t\t\tn.setID(counter);\n\t\t\tco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor Constructs a new JIPParameterUnboundedException | public JIPInstantiationException(final int nParam) {
} | [
"public BadParamException() {\n super();\n }",
"public NotValidInputException(){\n super(\"Input parameter not valid.\");\n }",
"public InvalidAlgorithmParameterException(String paramString, Throwable paramThrowable) {\n/* 79 */ super(paramString, paramThrowable);\n/* */ }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column inspect_report.reported_name | public String getReportedName() {
return reportedName;
} | [
"@Override\n public String getReportName() {\n return name;\n }",
"public String getTestLodgeReportName() {\n JSONParser parser = new JSONParser();\n try {\n Object obj = parser.parse(new FileReader(QaConstants.TEST_LODGE_DIR + File.separator + QaConstants.TEST_LODGE_RESULT_J... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Website setter. Called from WayHandler when parsing the current Way's tags. | public void setWebsite(String w) {
website = w;
} | [
"public void setWebsite(java.lang.String website) {\r\n\t\tthis.website = website;\r\n\t}",
"@Override\r\n public void setWebsite(String website) {\n String pattern = \"/^(https?:\\\\/\\\\/)?([\\\\da-z\\\\.-]+)\\\\.([a-z\\\\.]{2,6})([\\\\/\\\\w \\\\.-]*)*\\\\/?$/\";\r\n if (website == null) {\r\n this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
choose the option to send the gift to someone else | public void toSomeoneElseButton() throws Exception {
this.clickElement(By.xpath("/html/body/div[1]/div/div/div[3]/div/div/div[1]/form/div[1]/div/div/div/div/div[1]"));
} | [
"@When(\"User click on goftcard option\")\r\n public void user_click_on_goftcard_option() {\n \tGiftCardObj.GiftVerify(driver, log);\r\n }",
"private void contactChosen(){\n Candidate chosen = election.getChosen();\n if(chosen == null){\n election.launchElection();\n } els... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method adds new connection to incoming list | public void addToIncoming(Connection connection){
this.Incoming.add(connection);
} | [
"void add(Connection connection);",
"public synchronized void updateList(SSLSocket connection) {\n this.connections.add(connection);\n }",
"public void addConnection(GeppettoMessageInbound newVisitor){\r\n \t\t _connections.put(newVisitor.getConnectionID(), newVisitor);\r\n \r\n \t\tperformSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void setGenericHumanRole(String identifier, String genericHumanRole, TOrganizationalEntity organizationalEntity) throws IllegalAccessFault,
IllegalStateFault, IllegalArgumentFault {
} | [
"@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"
]
]
}
} |
Interface that defines the video service | @Service
public interface VideoService {
// TODO: break this service up
ResponseEntity<Video> addVideo(final VideoContract contract);
ResponseEntity<Video> retrieveVideo(final VideoContract contract);
ResponseEntity<Video> addMatchToVideo(final VideoContract contract);
ResponseEntity<Video> retrieveVideoFromMatch... | [
"public interface VideoService {\n /**\n * 获取最新的视频列表\n * @param count\n * @return\n */\n public List<Video> getLatestVideos(int count);\n\n /**\n * 根据关键词搜索视频\n * @param keywords\n * @return\n */\n public List<Video> search(String keywords);\n\n /**\n * 新建Video\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the bullet that hit your robot. | public Landmine getLandmine() {
return landmine;
} | [
"public Bullet getHitBullet() {\r\n\t\treturn hitBullet;\r\n\t}",
"public boolean getBullet() {\n return bullet_;\n }",
"boolean getBullet();",
"public Bullet bullet()\n\t\t{\n\t\treturn myBullet;\n\t\t}",
"public boolean isBulletHitEnemy() {\n return bulletHitEnemy;\n }",
"public boolea... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
REQUIRES: Something in the account.Json MODIFIES: This EFFECTS: Reads the data and adds it | public void readData() {
//JSON parser object to parse read file
try (FileReader reader = new FileReader(new File(name))) {
//Read JSON file
JSONArray masterArray = (JSONArray) jsonParser.parse(reader);
JSONArray stocks = (JSONArray) masterArray.get(0);
JS... | [
"private void addAccountBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureAccountIsMutable();\n account_.add(value.toStringUtf8());\n }",
"private String createAccount(String fn,Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns DiSCO description as ORMapStatement object. | public Statement getDescriptonStatement () {
return this.description;
} | [
"public String toString()\n {\n String toreturn = \"\";\n\n if(this.inBlock) toreturn += \"{\";\n\n toreturn += \"DESCRIBE \" + this.describeClause + \"\\n\";\n toreturn += \"WHERE\\n{\\n\";\n\n for(IStatement statement : statements)\n toreturn += statement.toString(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private final Trajectories trajectories = TrajectoryGenerator.getInstance().getTrajectories(); | public GetOffLineMode() {
} | [
"InitialTrajectory getInitTrajectory();",
"public Trajectory() {\n points = new LinkedList();\n }",
"public Trail() {\r\n\t\t// initialise instance variables\r\n\t\tNatureFeature[] features = new NatureFeature[4];\r\n\t}",
"Traitement()\r\n {\r\n \r\n }",
"public TrailSyst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get method for the create features name | @Override
public String getCreateName() {
return GROUP_OR_COMPARTMENT_TYPE_ELEMENT_FEATURE_NAME;
} | [
"protected String createFeatureTypeName() {\n\t\tString path = shpURL.getPath();\n\t\tint slash = Math.max(0, path.lastIndexOf('/') + 1);\n\t\tint dot = path.indexOf('.', slash);\n\n\t\tif (dot < 0) {\n\t\t\tdot = path.length();\n\t\t}\n\n\t\treturn path.substring(slash, dot);\n\t}",
"RenameFeature createRenameFe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool FixedSsrc = 9; | boolean getFixedSsrc(); | [
"void mo67481b(boolean z);",
"public void mo2581c(boolean z) {\n }",
"void mo20834a(boolean z);",
"void mo33158a(boolean z);",
"void mo4380a(boolean z);",
"void mo59100a(boolean z);",
"void mo2427a(boolean z);",
"void mo3348a(boolean z);",
"void mo62420c(boolean z);",
"public boolean mo6975a(C1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string id = 4; | public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
... | [
"public String getId(){\r\n\t return id;\r\n }",
"public void setId(String id) {\n this.id = id;\n }",
"public void setId(String id)\n {\n this.id = id;\n }",
"public void setId(String id) {\n\n\n }",
"public String getId() { return id;}",
"public void setId(String id) {\n _id =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string ForceWorkerIp = 2; force to allocate port on specified worker, default negative0 | public Builder setForceWorkerIp(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
forceWorkerIp_ = value;
onChanged();
return this;
} | [
"WorkerNode(int i, String a, int p) {\n id = i;\n addr = a;\n port = p;\n status = 0;\n }",
"Worker createWorker();",
"static void connectWorker(String workerAddress) throws Exception {//format input = ipAddress:port\n String workerIP = workerAddress.split(\":\")[0];\n int workerPort = In... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form Admin | public Admin() {
initComponents();
clock();
tableUser();
tablePemesanan();
tableMobil();
tableMotor();
} | [
"public newadmin() {\n initComponents();\n \n }",
"public Admin createAdmin (Admin admin);",
"@POST\r\n\t@Path(\"/new\")\r\n\t@Consumes(MediaType.APPLICATION_JSON)\r\n\t@Produces(MediaType.APPLICATION_JSON)\r\n\tpublic Response newAdmin( Admin admin) {\r\n\t\tadminService.saveAdmin(admin);\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get display name of type of project. | @ApiModelProperty(value = "Display name of project's type", position = 5)
String getProjectTypeName(); | [
"public java.lang.String getDisplayprojectname() {\n java.lang.Object ref = displayprojectname_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Store RegId and Email entered by User in SharedPref | private void storeRegIdinSharedPref(Context context, String regId, String emailID) {
SharedPreferences prefs = getActivity().getSharedPreferences("UserDetails",
Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
editor.putString(REG_ID, regId);
editor.... | [
"private void storeRegIdinSharedPref(Context context, String regId,\n\t\t\t\t\t\t\t\t\t\tString gcmname) {\n\t\tSharedPreferences prefs = getSharedPreferences(\"UserDetails\",\n\t\t\t\tContext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = prefs.edit();\n\t\teditor.putString(REG_ID, regId);\n\t\teditor.putSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | [
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether this call is for a function. The option is a: boolean type. Default: false Group: producer | default SqlStoredEndpointBuilder function(boolean function) {
doSetProperty("function", function);
return this;
} | [
"public final boolean isFunctionType() { \r\n //we use getArity() in order to correctly handle TypeApp forms\r\n \r\n return getArity() > 0; \r\n }",
"public void setFunctioning(boolean b) { this.functioning = b; }",
"boolean hasFuncArg();",
"public boolean isShowNormalFunctions... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the line two. | public void setLineTwo(String lineTwo) {
this.lineTwo = lineTwo;
} | [
"public void setLine(final Point2D p1, final Point2D p2) {\n setLine(p1.getX(), p1.getY(), p2.getX(), p2.getY());\n }",
"public void setTwoY(int y) {\n\t\tthis.two.y=y;\n\t}",
"public Line (float x1, float y1, float x2, float y2)\n {\n set(x1, y1, x2, y2);\n }",
"public void setLine(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .CMsgClientUCMAddScreenshot.Tag tag = 10; | com.steam.proto.SteammessagesClientserver2.CMsgClientUCMAddScreenshot.Tag getTag(int index); | [
"SteammessagesClientserver2.CMsgClientUCMAddScreenshot.Tag getTag(int index);",
"long getScreenshotid();",
"public void mo6131a() {\n C2331d.m10129c((Activity) OneContentPreviewActivity.this, C2328a.ON_DMS_RECEIVING, (int) R.id.text, (int) R.string.cmn_msg_now_regist_image);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that grouping and pivoting by the same column is not allowed. | public void testValidateGroupAndPivotBySameColumn() {
q.getPivot().addColumn(new SimpleColumn("A"));
try {
q.validate();
fail();
} catch (InvalidQueryException ex) {
//Expected behavior.
}
} | [
"public boolean supportsGroupByUnrelated() throws SQLException {\n/* 7664 */ return true;\n/* */ }",
"public boolean supportsGroupByUnrelated() throws SQLException\n {\n // XXX need to check this for Sybase\n return true;\n }",
"@Override\n public void testDropRowFieldWhenDupli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
is the initial board solvable? | public int moves(){
return st.size()-1;
} | [
"public boolean isSolvable() {\n if (moves != -1)\n return solvable;\n Board twinBoard = initial.twin();\n searchNode initialNode = new searchNode(initial, 0, null);\n MinPQ<searchNode> pq = new MinPQ<>(5);\n pq.insert(initialNode);\n searchNode twinNode = new se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column user.location | public String getLocation() {
return location;
} | [
"im.turms.server.common.access.client.dto.model.user.UserLocation getLocation();",
"public static String getUserLocation() {\n return userLocation;\n }",
"public java.util.Map<java.lang.CharSequence,java.lang.Boolean> getUserlocation() {\n return userlocation;\n }",
"public StrColumn getLocation... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the new Window Column for Launch but not for Channel. | public Boolean isNewWindowViewable(Context context, String[] args)
throws Exception {
Boolean isColumnVisible = Boolean.FALSE;
try {
HashMap paramMap = (HashMap) JPO.unpackArgs(args);
String launched = (String) paramMap.get("launched");
String port... | [
"public int getNewColumnCount() {\n return newColumnCount;\n }",
"public int getLocalRcvWindow() {\n\t\treturn receiver.getRcvWindow();\n\t}",
"public Component getWindow() {\n\t\treturn window;\n\t}",
"public ScGridColumn<AcOutputChannelTmp> newOutputChannelNameColumn()\n {\n return newOu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add name of a power to daily power list | void addPowerNameToDailyPowerList(String powerName, String dailyPowerListId) {
if(dailyPowerListsFragment != null){
dailyPowerListsFragment.handleNewPowerName(powerName, dailyPowerListId);
}
} | [
"public void addOutageBasePower(short volts, double power) {\r\n \r\n outageBaseMap.put(volts, power);\r\n OutageBasePower outageBasePower = new OutageBasePower();\r\n outageBasePower.setBasePower(power);\r\n outageBasePower.setFixtureId(dbId);\r\n outageBasePower.setVoltLevel(volts);\r\n fixtu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method takes Invite object as input and first generate the token and url string and also send the mail to the recipient. It returns the response as a JSON object. | @SuppressWarnings("unchecked")
public JSONObject generateInvite(Invite invite) {
try {
invite = dao.generateInvite(invite);
if (invite.getIsGenerated()) {
MailService mailService = new MailService();
mailService.sendInvite(invite);
} else ... | [
"@FormUrlEncoded\n @POST(\"/invites/link\")\n Call<String> getInviteUrl(@Field(\"email\") String email, @Field(\"group_names\") String group_names, @Field(\"custom_message\") String custom_message, @FieldMap Map<String, String> auth);",
"static String sendMailInvitation( String invitedByUserID , String invi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by john on 2018/7/13. | public interface OrderView {
void success(OffSetZeroBean bean);
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n }",
"@Override\n public int utilite() {\n return 0;\n }",
"protected void method_5557() {}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void initialize(URL location, ResourceBundle resources) {
doneBtn.setOnAction((event)->
{
StringBuilder examBasic = new StringBuilder(examGIinputController.str);
examBasic.append("\n\nGI & ABDOMEN: ");
examGIinputController.str = examBasic.toString();
if (includeChec... | [
"@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 version byte of addresses for this protocol version. | public static byte getAddressVersion(){
return testnet?(byte)111:(byte)0;
} | [
"com.google.protobuf.ByteString\n getNodeVersionBytes();",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getVersionBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(version_);\n }",
"public com.google.protobuf.ByteString\n getVersionBytes() {\n ja... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the top level visitor implementation | protected void createVisitorImplementation(File dir) {
// Prepare the arguments for the output procedure
PrintWriter visitor=null;
String fileName = context.getNaming().getVisitorClass(modelName)+".java";
try {
visitor = new PrintWriter(new FileWriter(new File(dir, fileName)), true);
}... | [
"Visitor createVisitor();",
"OTLSpanVisitor visitor();",
"public VisitorImplementation() {\r\n\t\t\r\n\t}",
"abstract public void visit(Visitor visitor);",
"@Override\n public void accept(Visitor visitor) {\n \n }",
"public interface Visitor {\n\n\t/**\n\t * Visits the given AST node prior to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new SshMsgUserAuthPKOK object. | public SshMsgUserAuthPKOK(boolean ok, String algorithm, byte key[]) {
super(SSH_MSG_USERAUTH_PK_OK);
this.ok = ok;
this.algorithm = algorithm;
this.key = key;
} | [
"public AuthenticationProtocolClient() {\r\n super(\"ssh-userauth\");\r\n resultFilter[0] = SshMsgUserAuthSuccess.SSH_MSG_USERAUTH_SUCCESS;\r\n resultFilter[1] = SshMsgUserAuthFailure.SSH_MSG_USERAUTH_FAILURE;\r\n\r\n singleIdFilter[0] = SshMsgUserAuthSuccess.SSH_MSG_USERAUTH_SUCCESS;\r\n singleIdFil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
normal successful PKCS1 case | @Test
public void testEvaluate_certPKCS1Valid() {
JsonObject config = JsonParser.parseString("{\"mtls\":{"
+ "\"cert\":\"" + certPEMPKCS1 + "\","
+ "\"key\":\"" + key + "\""
+ "}}").getAsJsonObject();
env.putObject("config", config);
cond.execute(env);
} | [
"public static void main(String args[]) throws IOException, GeneralSecurityException, DocumentException {\n\r\n\t\tString userFile = \"C:\\\\Users\\\\arti jaiswal\\\\Desktop/Test.pdf\";\r\n\t\tString userFile_signed = \"C:\\\\Users\\\\arti jaiswal\\\\Desktop/Test_signed.pdf\";\r\n\r\n\t\tString pkcs11Config = \"nam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
} | [
"@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"
]
]
}
} |
Devuelve true la cabeza se ha comido su propia cola. | public boolean comprobarComeCola(){
if(this.obtenerSiguiente()!=null) return this.obtenerSiguiente().comprobarPosicionOcupada(getFila(), getColumna());
else return false;
} | [
"private boolean fimDeJogo() {\n return tabuleiro.protagonista.morreu() || tabuleiro.venceu();\n }",
"private static boolean esCensurada(Palabra palabra)\n {\n boolean esPrhoibida = false;\n //System.out.println(obtenerLista().equals(palabra.obtenerPalabra()));\n for(int i = 0; i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves timestamp when ticket was last interacted with by staff | public long getModTimestamp(){
return this.modtstamp;
} | [
"String getCommunication_tamper_event_time();",
"public long getDateOfLastEvent();",
"public Date getTicketTime() {\r\n return ticketTime;\r\n }",
"public long getCurrentTime() { return (act != null ? act.getDate() : 0); }",
"Long getLastAccessedTime();",
"public static Timestamp getAccessTimest... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the color of this edge effect in argb. | void setColor(int color); | [
"@Override\n public void setColor(int color){\n paint.setColor(color);\n virtualPaint.setColor(color);\n virtualPaint.setAlpha(ALPHA);\n }",
"public native void setOutlineColor(float r,float g,float b,float a);",
"public void setColor(float r, float g, float b) {\n // was overw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .CMsgVector value = 2; | public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | [
"com.blacksquaremedia.reason.UtilProtos.Vector getVector();",
"public void getUneCommande (Vector <LigneDeCommande61> cde) {this.cde=cde;}",
"com.ubbcluj.amcds.myDalgs.communication.Protocol.ValueOrBuilder getValueOrBuilder();",
"void mo6915a(C0404ce ceVar);",
"public Vector2 GetValueVector2()\n\t{\n\t\tif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A SwiftyJson property name for a particular Pegasus type. E.g. a required string is accessed using the "stringValue" property. | private String typeAccessor(DataSchema schema, boolean isOptional) {
String type = typeAccessor(schema);
if (!isOptional) {
return type + "Value";
} else {
return type;
}
} | [
"String getPropertyTypeName();",
"@JsProperty(name = \"type\")\n String getType();",
"public String getTypeName() {\r\n\t\treturn typeName[type];\r\n\t}",
"@Override\n public String getSwaggerType(Property p) {\n String swaggerType = super.getSwaggerType(p);\n String type = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by iBATIS builder. This method sets the value of the database column T_A_USER.OPERATOR | public void setOperator(Long operator) {
this.operator$seted = true;
super.setOperator(operator);
} | [
"public org.datastream.khodza.model.avro.t_scele_public_mdl_user.UserEnvelope.Builder setOp(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.op = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"public void setOperator(String val){ this.operator = val;\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads a BigInteger from the storage. | private static BigInteger readBigInteger() throws EOFException, IOException {
// Reads the length of the big integer.
byte biLenBuf[] = new byte[4];
int read_number_length = storage.read(biLenBuf); //storage.readInt();
if (read_number_length <= 0) {
throw new EOFException()... | [
"public static BigInteger readBigInteger(DataInputStream dis) throws IOException {\n short i = dis.readShort();\n if(i < 0) throw new IOException(\"Invalid BigInteger length: \"+i);\n byte[] buf = new byte[i];\n dis.readFully(buf);\n return new BigInteger(1,buf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public InputStream getAsciiStream(String arg0) throws SQLException {
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"
]
]
}
} |
Affiche le contenu de l'arraylist chambre | public void getChambre() {
System.out.println ("-------------------");
for(Chambre elem: chambre)
{
System.out.println ("numéro : " +elem.idRoom);
System.out.println ("capacité : " +elem.capacity);
System.out.println ("prix : " +elem.price);
System.out.println ("nom : " +e... | [
"public void creteListeShhet() {\n\t\tSystem.out.println(\"creteListeShhet Debut 1\");\n\t\tint i=0;\n\t\tString[] tab = new String[25];\n\t\tString colonne=\"\";\n\t\tString valeur=\"\";\n\t\tint index=0;\n\t\tfor (Object val : listeDepart) {\n\t\t\tSystem.out.println(\"creteListeShhet i=\"+i);\n\t\t\tif (val==nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Vrati vsechny instance razene vzestupne dle property | public <ENTITY> List<ENTITY> getAllOrderedAsc(String property,
Class<ENTITY> clazz); | [
"public OBOProperty() {\n \n }",
"public Valoracion() {\n\t\tsuper();\n\t}",
"public Auswahl() { \n initComponents();\n einlesen();\n// homerProperties = new Properties(false, true, true, false, true);\n// margeProperties = new Properties(true, false, false, true, fals... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.kedacom.ops.flink.etl.proto.DssNetAddr MapAddr = 4; optional .com.kedacom.ops.flink.etl.proto.DssNetAddr MapAddr = 4; | boolean hasMapAddr(); | [
"C linkifyMapAddresses();",
"void setAddress (int user_id, int map_id, int event_id, String address);",
"java.util.List<? extends ds.hdfs.SOMETHING.IPOrBuilder> \n getAddressOrBuilderList();",
"public static void main(String[] asArgs)\n {\n AddressPort addrportHost = null;\n List ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creating a game state using AutoAllocationMode A. Auto Allocation Mode Performs an initial automatic allocation of armies during startup phase and then calls calculateArmiesReinforce ,after that checks the next valid game play phase is Reinforcement | @Test
public void checkValidGamePlayPhaseTest() {
PlayerDetails single_game_input = new PlayerDetails();
single_game_input.setAllocationType("A");
single_game_input.setFileName("Switzerland.map");
single_game_input.setPlayersNo(6);
List<SinglePlayer> players = new ArrayList<>();
for (int i = 1; i <= 6; i++... | [
"public void reinforcement()\n {\n Log.log(String.format(\"---------%s Starting Reinforcement---------\", this.getName()));\n this.gd.setPhase(\"Reinforcement Phase\");\n int newArmies = this.gd.calculateReinforcementArmies(this);\n sendNotification(\"Phase Change:\"+this.getName()+\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the modifier of the base amount of faction value change, namely 100. | public void setRateModifier(double d); | [
"public void setAmount(int newAmount) {\n\tmodify();\n\tamount = newAmount;\n}",
"public void setDefense(double newDefense);",
"void setStatBonus(StatModifier statModifier);",
"void setStatPenalty(StatModifier statModifier);",
"public void setDefense(int amount);",
"void setFatMultiplier(Double fatMultipl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to get all contacts that are visible | public List<Map<String,String>> getAll(Map<String,String[]> request); | [
"java.util.List<com.shadowchat.storage.Store.Contact> \n getContactsList();",
"public List<ContactEntity> getContacts();",
"public Boolean isAllContactsVisible()\r\n\t{\r\n\t\texttest = report.createTest(\"All contact display Test\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//*****\r\n\t\t\twait.until(ExpectedCondi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RepeatedSERE__Group_8__2" $ANTLR start "rule__RepeatedSERE__Group_8__2__Impl" InternalSequenceCS.g:2848:1: rule__RepeatedSERE__Group_8__2__Impl : ( '' ) ; | public final void rule__RepeatedSERE__Group_8__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSequenceCS.g:2852:1: ( ( '*' ) )
// InternalSequenceCS.g:2853:1: ( '*' )
{
// InternalSequenceCS.g:2853:1:... | [
"public final void rule__ExpCS__Group_0_1_2_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.eclipse.qvto.examples.xtext.qvtoperational.ui/src-gen/org/eclipse/qvto/examples/xtext/qvtoperational/ui/contentassist/a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void addStudent(Student student) {
} | [
"@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 custom translations for a custom voice model. | public List<CustomTranslation> getCustomTranslations() {
return customTranslations;
} | [
"TRANSLATION getTranslation();",
"public ServiceCall<List<CustomVoiceModel>> getCustomVoiceModels(final String language) {\n Validator.notNull(language, \"language can not be null\");\n\n final Request request = RequestBuilder.get(PATH_CUSTOMIZATIONS).query(LANGUAGE, language).build();\n ResponseConverte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Edit Master fee Installment name created | public void edit_MasterFeeInstallmentDueDate(String installmentName) throws Exception {
int rows = tblRows.size();
System.out.println(rows);
Thread.sleep(2000);
try {
for (int i = 1; i <= rows; i++) {
String feeinstallmentname = driver
.findElement(By.xpath("(//div[@class='box-body']/ta... | [
"@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"CONTEXTE: MODIFIER UN FABRICANT EXISTANT\");\n\t\tSystem.out.println(\"Saisissez en une ligne les informations suivantes séparées par une virgule:\");\n\t\tSystem.out.println(\"ID, NAME\");\n\t\tSystem.out.println(\"L'ID DOIT ÊTRE EXISTANT\");\n\t\ttry ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find a new random position for the object. We'll rotate it around the Yaxis so it's out of sight, and then up or down by a little bit. | private void hideObject() {
float[] rotationMatrix = new float[16];
float[] posVec = new float[4];
// First rotate in XZ plane, between 90 and 270 deg away, and scale so that we vary
// the object's distance from the user.
float angleXZ = (float) Math.random() * 180 + 90;
... | [
"public void randomizePosition()\n\t{\n\t\tRandom rand = new Random();\n\t\tthis.xPos += rand.nextInt(4) - 2;\n\t\tthis.yPos += rand.nextInt(3) + 3;\n\t}",
"public void move(){\n //x += Math.floor(Math.random()*3)-1;\n //y += Math.floor(Math.random()*3)-1;\n x += randomInterval(-1, 1);\n y += ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the maximum path sum of the "single" path | private int helper(TreeNode root, int[] max){
if (root == null){
return 0;
}
int left = helper(root.left, max);
int right = helper(root.right, max);
left = left < 0 ? 0 : left;
right = right < 0 ? 0 : right;
max[0] = Math.max(root.key + left + right, max[0]);
return root.key + Math.max(left, right);... | [
"int maxSumPath(Node node) {\n\n // base case\n if (node == null) {\n return 0;\n }\n Node target_leaf = null;\n\n // find the target leaf and maximum sum\n getTargetLeaf(node, max, 0, target_leaf);\n\n // print the path from root to the target leaf\n //printPath(node, target... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Traverse and print the contents of the queue | public void print(){
for(int i = 0; i < items.length; i++){
System.out.println(items[i].toString());
}
} | [
"public void printQueue(){\n\t\tNode<E> temNode = new Node<E>(null,null);\n\t\ttemNode = this.head;\n\t\twhile(temNode != null){\n\t\t\n\t\t\tSystem.out.println(temNode.getData()); \n\t\t\ttemNode =temNode.getNext();\n\t\t}\n\t}",
"public void printQueue(){\r\n for (int i = 0; i < size; i++){\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
id of the instance of the dapp. One dapp could have multiple instances (e.g. multiple websites) string instance_id = 2; | public java.lang.String getInstanceId() {
java.lang.Object ref = instanceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceId_ = s;
... | [
"public String getInstanceID(){\n\t\treturn instanceID;\n\t}",
"public Long getInstanceid() {\n return instanceid;\n }",
"public void setInstanceid(Long instanceid) {\n this.instanceid = instanceid;\n }",
"public int getInstanceId() {\n return this.instanceId;\n }",
"@NotNull\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recording a vote at a specific position in the overall store of votes: works as above | public void recordVote(int element, Vector v) {
Vector vCopy = (Vector) v.clone();
int count = 0, maxCount = v.size(), flag = -1, target = 0;
oVoteStore.set(element, v);
vCopy = validate(vCopy);
vVoteStore.set(element, vCopy);
Vector tempCopy = (Vector) vCopy.clon... | [
"public void addVote();",
"void voteFor(long pollIdLong, long id);",
"public int vote(VoteModel vote) {\n SqlParameterSource namedParameters = new BeanPropertySqlParameterSource(vote);\n try {\n String sql = \"INSERT INTO votes(nickname, voice, thread)\" +\n \"VALUES ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Note! Requires permission to run, will throw exception otherwise Thanks to: | @Override
@RequiresPermission(allOf = {Manifest.permission.ACCESS_NETWORK_STATE,
Manifest.permission.ACCESS_WIFI_STATE})
public void onReceive(Context context, Intent arg1) {
if(context == null){
return;
}
ConnectivityManager cm = (ConnectivityManager) context
.getSystemService... | [
"public static void main(String[] args) throws Exception {\n \n\n \n \n }",
"@Override\n\t public void run(String... args) throws Exception {\n\t\t\n\t}",
"@Override\n public void run(String... args) throws Exception {\n \n }",
"@Override\n\t\t\tpublic void run(String... args) throws... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int N=s.nextInt();
int[] arr=new int[N];
for(int i=0;i<N;i++){
arr[i]=s.nextInt();
}
arr= inverse(arr,N);
for(int i=0;i<arr.length;i++){
System.out.println(arr[i]);
}
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set's the least number of available CPU's this IaaS provider has | public void setCoresLow(int coresLow) {
this.coresLow=coresLow;
} | [
"int getAvailableCpu();",
"int getMinCores();",
"int getDefaultCpu();",
"public synchronized void setCpuCount(int count)\n/* 1246: */ {\n/* 1247: 912 */ setCpuCountNative(count);\n/* 1248: */ }",
"private void setCpu(int value) {\n bitField0_ |= 0x00000100;\n cpu_ = value;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table pageant | int insert(Pageant record); | [
"public interface SpecialPreferentialMapper extends BaseDao {\n @Select(\"select count(1) num from tb_special_preferential ${sqlwhere}\")\n Integer qurey_special_preferential_num(@Param(\"sqlwhere\") String sqlwhere);\n// @Select(\" select * from tb_special_preferential ${sqlwhere} order by cadddate de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor from directory path | public FilesystemWalker(String path, FileFilter filter, PrintStream outStream)
throws FileNotFoundException {
startingDirectory = new File(path);
// yes, it is not good
try {
validateDirectory(startingDirectory);
} catch (SecurityException s) {
... | [
"public Loader(String path) {\r\n pathToFile = path;\r\n }",
"public DirFileFactoryImpl()\n {\n super();\n }",
"public DirectoryParser(String dirPath) {\n\t\tthis.directory = new File(dirPath);\n\t\tparser = ASTParser.newParser(AST.JLS8);\n\t}",
"public TextMergeDirectoryReader (File inPathFile... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method under test: getDbConnection() Scenario: Verifying the behavior when DB object is null. Expectation: Should return DB Object. | @Test
public void testGetDbConnectionInvalidServer() throws WebScrapperException {
String server = WSResourceLoader.getPropertiesMap().getProperty("mongoServer");
try {
WSResourceLoader.getPropertiesMap().put("mongoServer", "abc");
mongoConnection.closeConnection();
... | [
"public void testFunctionalityPresent() {\n try {\n dbm.getConnection(\"nonExistingDb\");\n } catch (SQLException e) {\n // Expect a database not found exception.\n assertSQLState(\"XJ004\", e);\n }\n }",
"@Test\n public void testGetConnection() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public void m17140a(ModelBags modelBags, C5068a c5068a) {
c5068a.m17210a(modelBags);
m17143a(c5068a);
} | [
"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"
]
]
}
} |
The MainActivity will have to implement this method | public void onItemSelected(Movie movie); | [
"protected void onCreate() {}",
"@Override\n protected void onCreate();",
"@Override\n public void onStart() {\n Log.d(TAG_MAIN_VIEW, \"onStart\");\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState){\r\n super.onCreate(savedInstanceState);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares to another person. Comparison is made by last name, then first name, then age. | public int compareTo(Person otherPerson) {
if (otherPerson == null) {
return 1;
}
if (this.name.equals(otherPerson.name)) {
if ((this.age == null && otherPerson.age == null)
|| (this.age == otherPerson.age)) {
return 0;
} else {
return this.age.compareTo(otherPerson.age);
}
} e... | [
"@Override\n\t\t\tpublic int compare(Person person1, Person person2) {\n\t\t\t\treturn \n\t\t\t\t\t\tperson1.getLastname().compareTo(person2.getLastname());\n\t\t\t}",
"static int compareByAge(Person o1, Person o2) {\n\t\treturn o2.getAge().compareTo(o1.getAge());\n\t}",
"@Override\n public int compa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
precisions des methodes pour l'interface Imobile | public void getDirection(); | [
"interface Mobile {\n void modelNo();\n\n void price();\n}",
"public interface MobilePhone {\n public void create();\n}",
"public interface Phone extends Pager, WakiTaki { \n\t\n\t/* public Phone() {\n\t\tInterface can NOT have Constructor.\n\t}*/\n\tpublic void interfaceInfo();\n\t\n\tpublic void call... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / / / | public String GetMops(OaIdl.MEMBERID memid) {
/* 574 */ WTypes.BSTRByReference pBstrMops = new WTypes.BSTRByReference();
/* 575 */ WinNT.HRESULT hr = this.typeInfo.GetMops(memid, pBstrMops);
/* 576 */ COMUtils.checkRC(hr);
/* */
/* 578 */ return pBstrMops.getString();
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"protected int snapBits(){return 9;}",
"@Override\n public int getWidth(){\n return width - 10;\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"abstract protected String roam();",
"public static void main (String arg[]){\n\tSystem.out.println(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the defPriority property. | public void setDefPriority(String pDefPriority) {
mDefPriority = pDefPriority;
} | [
"public void setPriority(double pr){\n Priority = pr;\n }",
"public void setPriority(Float priority){\n this.priority = priority;\n }",
"public void setPriority(long priority) {\n super.priority = priority;\n }",
"public void setPriority(String p) { Priority = p; }",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
fungsi untuk menampilkan data | private void TampilData(){
try{
String sql = "SELECT * FROM buku"; //mendeklarasikan variabel sql dengan query untuk menampilkan semua data pada tabel buku
stt = con.createStatement();//pembuatan statement
rss = stt.executeQuery(sql);//eksekusi query
while(rss.nex... | [
"public void getDataKategori(){\n //kosongkan tabel\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n //eksekusi koneksi dan kirimkan query ke database\n try{\n //tes koneksi\n Statement stat = (Statement) koneksii.getKoneksi().c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Go to point of sale page and create new POS | @Test(priority = 1)
public void PositiveCreatePOS() throws InterruptedException {
extentLogger.info("Clicking the point of sale under Configuration");
POSHomePage.configPosElement.click();
//Create new POS
extentLogger.info("Clicking Create button");
ConfigPOSPage.createEleme... | [
"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 \"/EBY/SAPLPDDN_DETAILSCREEN:01... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Display an error if input is invalid (see examples) | public void showInputError() {
System.out.println("Invalid Input!");
} | [
"public static void errorInput()\n {\n\t System.out.println(\"Input most be a number 1 to 54!\");\n }",
"public void invalidInput () {\n System.out.println(\"☹ OOPS!!! I'm sorry, but I don't know what that means :-(\");\n }",
"private void displayWhenInputInvalid() {\n System.out.println(\"Pl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Access modifiers changed, original: final | public final int w(View view, int i) {
return 0;
} | [
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\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}",
"public final void metodoFinal(){\n\n\n }",
"protected ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RGBColor__Group_3__2__Impl" $ANTLR start "rule__RGBColor__Group_3__3" ../pimar.editor.textual.xgcore.ui/srcgen/pimar/editor/textual/xgcore/ui/contentassist/antlr/internal/InternalXgcore.g:9264:1: rule__RGBColor__Group_3__3 : rule__RGBColor__Group_3__3__Impl rule__RGBColor__Group_3__4 ; | public final void rule__RGBColor__Group_3__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../pimar.editor.textual.xgcore.ui/src-gen/pimar/editor/textual/xgcore/ui/contentassist/antlr/internal/InternalXgcore.g:9268:1: ( rule__RGBColor__Group_3... | [
"public final void rule__ColourRGB__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPageGeneratorLanguare.g:7824:1: ( rule__ColourRGB__Group__3__Impl rule__ColourRGB__Group__4 )\n // InternalPageGeneratorLanguare.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
==================================================== // INVOICE TESTS // ==================================================== // | @Test
@WithMockUser(username = "admin", password = "admin", authorities = {"ADMIN"})
public void shouldRetrieveAllInvoices() throws Exception {
Invoice invoice1 = new Invoice();
Invoice invoice2 = new Invoice();
invoice1.setId(1);
invoice2.setId(2);
List<Invoice> invoices... | [
"public void prepareInvoice();",
"@Test\r\n public void testGetPurchaseInvoice() throws SQLException {\r\n // create gson object\r\n Gson gson = new GsonBuilder().setFieldNamingStrategy(f -> f.getName().toLowerCase()).create();\r\n // create db object\r\n DatabaseManipulator instanc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
devuelve el valor de una accion de un objeto para una dificultad que se encuentra almacenado en la configuracion | public static String GetAtributo(String dificultad, String objeto, String accion)
throws Exception {
String respuesta = "";
Document documento = leerArchivo(ruta);
NodeList list = documento.getElementsByTagName("Dificultad");
for (int j = 0; j < list.getLength(); j++) {
// System.out.println("entre co... | [
"public Configuracion(){\r\n\t\tthis.evaluador = EvaluadorDiscontinuo.obtenerInstancia();\r\n\t\tthis.cancelador = CanceladorPorDefecto.obtenerInstancia();\r\n\t\tthis.canceladorActivo = false;\r\n\t}",
"public Valoracion() {\n\t\tsuper();\n\t}",
"public Object getValor(String parametro) {\r\n\t\treturn atribut... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the speed of both motors to different values. | public void setSpeeds(int leftSpeed, int rightSpeed) {
leftMotor.setSpeed(leftSpeed);
rightMotor.setSpeed(rightSpeed);
} | [
"@Override\n public void setSpeed(double d1, double d2, int speed) {\n d1Obj=d1;\n d2Obj=d2;\n speedObj=speed;\n }",
"public void resetMotorSpeed() {\r\n\t\tleftMotor.setSpeed(setSpeedValue(1.0f));\r\n\t\trightMotor.setSpeed(setSpeedValue(1.0f));\r\n\t}",
"public void set(double speed... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance with a Gal Controller reference. | public GatewayEventManager(GalController _gal) {
gal = _gal;
LOG.debug("Creating Executor for GatewayEventManager with: {} threads", getGal().getPropertiesManager().getNumberOfThreadForAnyPool());
executor = Executors.newFixedThreadPool(getGal().getPropertiesManager().getNumberOfThreadForAnyPool(), new ThreadFac... | [
"private void create_controller() {\n // Creer le controller\n Controller my_controller = Controller.get_controller();\n // Le controller creera lui meme l'API implementee...\n }",
"private static void createInstance(String controller)\n {\n try\n {\n Class cont... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XSynchronizedExpression__Group__1" $ANTLR start "rule__XSynchronizedExpression__Group__1__Impl" ../de.grammarcraft.flow.ui/srcgen/de/grammarcraft/flow/ui/contentassist/antlr/internal/InternalFlow.g:15550:1: rule__XSynchronizedExpression__Group__1__Impl : ( ( rule__XSynchronizedExpression__ParamAssignm... | public final void rule__XSynchronizedExpression__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.grammarcraft.flow.ui/src-gen/de/grammarcraft/flow/ui/contentassist/antlr/internal/InternalFlow.g:15554:1: ( ( ( rule__XSynchronizedE... | [
"public final void rule__XSynchronizedExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:14061:1: ( ( ( rule__XSynchronizedExpression__ParamAssignment_1 ) ) )\n // InternalAle.g:14062:1: ( ( r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
IMetaInterface Interface Returns a Vector of metainformation. Each elements of the Vector is a String describing that interface's type. | public int enumIntfs(Vector<Class> ppIntf) {
return Meta.enumIntfs(this, ppIntf);
} | [
"public interface InterfaceModel extends TypedModel {\n\n /** The \"interface\" name. */\n public static final String INTERFACE = \"interface\";\n\n /**\n * Name of standard SCA Java interface.\n */\n public static final String JAVA = \"java\";\n /**\n * Name of standard SCA WSDL interfac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BackgroundTask b = new BackgroundTask(); b.execute(e1.getText().toString(),e2.getText().toString()); GRABARNOMBRE | public void button_click(View v){
Preferences.setPrefs("name",e3.getText().toString(),ReadQRActvity.this);
Intent i = new Intent(ReadQRActvity.this, WSAndControlActivityClient.class);
i.putExtra("ip",e1.getText().toString());
i.putExtra("jugador","2");
startActivity(i);
} | [
"@Override\n public void onClick(View view) {\n new BackgroundTask1().execute();\n }",
"@Override\n protected String doInBackground(String... strings) {\n String title, body;\n if(strings[0] != null && strings[1]!=null){\n title = strings[0];\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes component or discards last position from select box. | private void handleCancel() {
if (selector.getFrameStart() != null) {
selector.setFrameStart(null);
} else {
hide();
}
} | [
"void closeDropDowns(int x, int y);",
"protected void actionCancel()\n {\n\tlogger.debug(\"clearing selection\");\n\tselectedEnregistrement = null;\n\n\tsetVisible( false );\n }",
"public void close() {\n clearFields();\n setVisible(false);\n }",
"public void onClose() {\n if (in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
is called when a value in the preference store has changed saves the open file references, closes all editors and reopens the files to enforce new coloring | @Override
public void propertyChange(PropertyChangeEvent event) {
IWorkbenchPage page = getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorReference[] editors = page.getEditorReferences();
IEditorInput activeInput = page.getActiveEditor().getEditorInput();
page.closeAllEditors(true);
try {... | [
"private void saveSettings()\n\t{\n\t\tActivator.getDefault().getPreferenceStore().setValue(PREF_PREVIEW_COLORS, choice.toString());\n\t}",
"public void actionPerformed(ActionEvent e) {\n if (_app.isDocumentModified() &&\n confirmDialog(_app.getModifiedSaveQuestion())) {\n _... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to set the notification topic for the given notification type. | private void updateNotificationTopicForType(NotificationType notificationType) {
SetIdentityNotificationTopicRequest setNotificationRequest = new SetIdentityNotificationTopicRequest()
.withIdentity(emailAddress).withNotificationType(notificationType)
.withSnsTopic(not... | [
"public void setTopic(String value) {\n set(27, value);\n }",
"public void setTopic(String topic) {\n this.topic = topic;\n }",
"void setChannelTopic(@NonNull String channel, @NonNull String topic);",
"public void setNotificationType(String notificationType)\r\n/* 12: */ {\r\n/* 13:41 */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Command__Group_4__12" $ANTLR start "rule__Command__Group_4__12__Impl" ../org.xtext.tl.mydsl.ui/srcgen/org/xtext/tl/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3333:1: rule__Command__Group_4__12__Impl : ( 'od' ) ; | public final void rule__Command__Group_4__12__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.tl.mydsl.ui/src-gen/org/xtext/tl/mydsl/ui/contentassist/antlr/internal/InternalMyDsl.g:3337:1: ( ( 'od' ) )
// ../org.xtext.tl... | [
"public final void rule__XOrExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:3697:1: ( rule__XOrExpression__Group_1__1__Impl )\n // InternalScripting.g:3698:2: rule__XOrExpression__Group_1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
No resources to release, really | public void close() {
return;
} | [
"@Override\n\tprotected void releaseResources() {\n\n\t}",
"public void release() {\n\t\t\r\n\t}",
"public void release()\n {\n // nothing to do?\n }",
"@Override\n\tpublic boolean release() {\n\t\treturn false;\n\t}",
"public void release() {\n }",
"public void release() {\n\n }",
"priva... | {
"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"
]
]
}
} |
check if the storage permission is granted | public boolean isStoragePermissionGranted() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
return true;
} else {
ActivityCompat.requestPerm... | [
"private void isStoragePermissionGranted() {\n if (Build.VERSION.SDK_INT >= 23) {\n if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Permission is granted\");\n perm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get method using UrlConnection. | public String getUsingUrlConnection() throws IOException {
URL url = new URL(_network.requestUrl);
URLConnection connection = (URLConnection) url.openConnection();
connection.connect();
String resp = readStream(connection.getInputStream());
return getSuccessResponseHtml(resp);
... | [
"default <T> T get(HttpConnection url, Class<T> clazz) throws Exception {\n return get(url, (Type) clazz);\n }",
"private static String request(String url) {\n HttpClient client = new HttpClient();\n GetMethod method = null;\n try {\n method = new GetMethod(url);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the publication where uuid = &63; and groupId = &63; or returns null if it could not be found, optionally using the finder cache. | public static fr.lagab.portlet.publication.model.Publication fetchByUUID_G(
java.lang.String uuid, long groupId, boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException {
return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
} | [
"public Escritor fetchByUUID_G(java.lang.String uuid, long groupId);",
"public Author fetchByUUID_G(String uuid, long groupId);",
"@Override\n\tpublic Escritor fetchByUUID_G(String uuid, long groupId) {\n\t\tuuid = Objects.toString(uuid, \"\");\n\n\t\tObject[] finderArgs = new Object[] {uuid, groupId};\n\n\t\tO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleCustomOption" $ANTLR start "ruleCustomOption" ../protolipse.ui/srcgen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf.g:266:1: ruleCustomOption : ( ( rule__CustomOption__Group__0 ) ) ; | public final void ruleCustomOption() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../protolipse.ui/src-gen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf.g:270:2: ( ( ( rule__CustomOption__Group__0 ) ) )
// ../protolipse.ui/... | [
"public final void rule__ColourRGB__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPageGeneratorLanguare.g:7755:1: ( ( 'Custom' ) )\n // InternalPageGeneratorLanguare.g:7756:1: ( 'Custom' )\n {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |