query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
repeated .NetMsg.iProt prots = 3; | battleapp.netproto.Struct.iProt getProts(int index); | [
"sample.protbuf.Message.Data.Comic getComic();",
"battleapp.netproto.Struct.iProtOrBuilder getProtsOrBuilder(\n int index);",
"public battleapp.netproto.Struct.iProtOrBuilder getProtsOrBuilder(\n int index) {\n if (protsBuilder_ == null) {\n return prots_.get(index); } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the login entity. | public void setLoginEntity(String loginEntity) {
this.loginEntity = loginEntity;
} | [
"public void setLogin(LoginContext login) {\n this.login = login;\n }",
"public String getLoginEntity() {\n return loginEntity;\n }",
"public void setLogin (String login) {\n this.login = login;\n }",
"void setLoginId(long loginId);",
"public void setUserLogin(String userLogi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate one wing of a Blackman windowed sinc equation. According to Shannon's sampling theory, a sample should be rendered according to the equation A Sin(PIt)/(PIt) where the sampling frequency is 1/t. This equation goes to +infinity so it is multiplied by a window function to make it tail off at the ends. The more p... | protected void genSinc() {
double pit, wpit, t, gain=0.6;
int len = (points<<FIXED_POINT_SHIFT)+1;
sinc = new short[len];
sinc[0] = (short)( 32767 * gain );
for( int n=1; n<len; n++ ) {
t = n/((double)FIXED_POINT_ONE);
pit = Math.PI*t;
wpit = pit/points;
sinc[n] = (short)( (Math.sin(pit)/... | [
"protected byte createWave(double t) {\n\t\treturn sineWave(t, DEFAULT_SINE_CONSTANT);\n\t}",
"public interface Oscillator\r\n{\r\n\t/**\r\n\t * \tOscillator that produces pure sine waves.\r\n\t *\r\n\t *\t@author David Dupplaw (dpd@ecs.soton.ac.uk)\r\n\t * @created 21 Feb 2013\r\n\t *\t@version $Author$, $Revis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Translate a ratio string to double | public double toRatio(String fact); | [
"public Text fromRatio(double fact);",
"String getAssureRatio();",
"public static double parse(String s) {\r\n\t\t// Retrieve the double part of the String (will throw an exception if\r\n\t\t// not a double)\r\n\t\t// double result = Double.parseDouble(s.substring(0, s.length() - 1));\r\n\t\t// Retrieve the pre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
encrypt password using SHA1 | public String encrypt(String password){
byte[] bytes = null;
try {
MessageDigest messageDigest = MessageDigest.getInstance(HASHING_TYPE);
messageDigest.update(password.getBytes(ENCODING));
bytes = messageDigest.digest();
} catch (NoSuchAlgorithmException | U... | [
"String encryptPassword(String plainTextPassword);",
"public String encodePassword(String normalPassword, String key);",
"@Test\r\n\tpublic void testencription1() {\r\n\t\t\r\n\t\t\r\n\t\tConfigurablePasswordEncryptor passwordEncryptor1 = new ConfigurablePasswordEncryptor();\r\n\t\tpasswordEncryptor1.setAlgorit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the Root with type class on CriteriaQuery Root Set or creating new one if Root is not present | public static <T> Root<T> findOrCreateRoot(CriteriaQuery<?> query, Class<T> clazz) {
Root<T> root = findRoot(query, clazz);
return root != null ? root : query.from(clazz);
} | [
"public static <T> Root<T> findRoot(CriteriaQuery<?> query, Class<T> clazz) {\n\n\tfor (Root<?> r : query.getRoots()) {\n\t if (clazz.equals(r.getJavaType())) {\n\t\treturn (Root<T>) r.as(clazz);\n\t }\n\t}\n\treturn null;\n }",
"public static <T> Root<T> findRoot(CriteriaQuery<T> query) {\n\treturn find... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runs a complete clone, build and test of a remote repo. That fails test | public void testRemoteRepoFailTest() {
BuildData buildData = getBuildDataFailTest();
String branch = "fail";
BuildData retBuildData = getBuildData(buildData, branch);
assertEquals(BuildStatus.failure, retBuildData.getBuildStatus());
assertEquals(buildData.getRepoFullName(), ret... | [
"public void testRemoteRepoSucceed() {\n BuildData buildData = getBuildDataSucceed();\n String branch = BRANCH_ORIGIN_MASTER;\n BuildData retBuildData = getBuildData(buildData, branch);\n\n assertEquals(BuildStatus.success, retBuildData.getBuildStatus());\n\n assertEquals(retBuild... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a tree head. | public HNode createHead(String name) throws InvalidTreeException; | [
"public Tree<String> determineHead(Tree<String> t);",
"Tree createTree();",
"TNode createTNode();",
"public Tree() {\r\n\t\tcreateEmptyNode();\r\n\t}",
"public void createSampleTree() {\n root = new TreeNode(1, new TreeNode(2, new TreeNode(4), new TreeNode(5)), new TreeNode(3, new TreeNode(6), new Tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
submits a task to be executed by a processor belongs to this thread pool | public void submit(Task<?> task) {
int receiverProc = (int) ((Math.random() * numOfThreads - 1)); //select a random Processor
qArray.get(receiverProc).addFirst(task); //add "task" to the random processor's Queue
vm.inc();
} | [
"RunId submitTask(Task task);",
"RunId submitTask(RunId runId, Task task);",
"@Override\n public Future<?> submit(Runnable task) {\n logger.info(\"submit runnable\");\n return scheduledExecutor.submit(task);\n }",
"public void submitTask(WikiTask<?> task) {\n\n\t\t// get thread pool\n\t\tS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load the KeyPairsTableModel with the key pair entries from the Keystore. | public void load(CredentialManager cm)
throws CMException
{
// Place key pair entries' aliases in a tree map to sort them
TreeMap<String, String> sortedAliases = new TreeMap<String, String>();
// Also place aliases in a list
Vector<String> aliasList = new Vector<Str... | [
"public void load() throws CMException {\n \t// Place key pair entries' aliases in a tree map to sort them\n \tTreeMap<String, String> sortedAliases = new TreeMap<>();\n\n\t\tfor (String alias: credManager.getAliases(KEYSTORE))\n\t\t\t/*\n\t\t\t * We are only interested in key pair entries here.\n\t\t\t * \n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if Query username is exist return false, or true. | public boolean queryUsernameIsExist(String username); | [
"public boolean usernameExist(String username);",
"public boolean isUsernameExist(String username);",
"private boolean usernameExists( String username )\r\n {\r\n boolean result = false;\r\n\r\n // result set that we obtain form the database\r\n ResultSet set = db.select(\"UserName\", \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reorders the table's columns using the cached viewtomodel coordinate mapping. | public void reorderColumns() {
boolean[] hidden = this.unhideAll();
// cache coordinates locally
int[] targetIndexes = Arrays.copyOf(this.viewToModel, this.viewToModel.length);
// initialize current positions
Vector<Integer> currentIndexes = new Vector<>();
... | [
"private void reorderColumns() {\n TableColumnModel oldtcm = table.getColumnModel();\n TableColumnModel newtcm = new DefaultTableColumnModel();\n int[] savedColumnOrder = Globals.getSettings().getTextColumnOrder();\n // Apply ordering only if correct number of columns.\n if (saved... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Classes that implement this interface represent a schema that is included in another schema. | public interface ISchemaInclude extends ISchemaObject {
/**
* Model property of the schema location.
*/
//$NON-NLS-1$
String P_LOCATION = "location";
String getLocation();
void setLocation(String location) throws CoreException;
ISchema getIncludedSchema();
void dispose();
} | [
"public abstract SchemaClass getSchemaClass();",
"public interface CustomSchemaRegistry {\n\n /**\n * Registers types with a custom schema.\n *\n * @param registry Schema registry to add the custom type/schema combinations to.\n */\n public void registerCustomSchemas(SchemaRegistry registry)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove possible value for friend cell | private void removePossibleValForFriendCells(int cellIndex) {
int val = board.get(cellIndex).getVal();
for (int friendCellIndex : board.get(cellIndex).getFriendCellIndexes()) {
board.get(friendCellIndex).removePossibleVal(val);
}
} | [
"public void removePossibleValue(int cellId, int val) {\n// \n possible[cellId][val] = 0;\n }",
"public void removeCellValue(int row, int col)\r\n \t{\r\n \t\tif (currentlyGenerating)\r\n \t\t{\r\n \t\t\tgetCell(row, col).removeCorrectValue();\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tgetCell(row, col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An alternative to performCacheEviction that is called when a noncloning cursor is used, when the cursor has a valid position and an advancing operation (next/prev/skip) is about to be performed. The cursor cannot be reset as it would be if the operation were a search, for example. Yet when EVICT_LN is configured we sho... | public void performCacheEvictionBeforeAdvance() {
if (cacheMode != CacheMode.EVICT_LN) {
/* Only EVICT_LN is supported in this scenario. */
return;
}
if (bin == null) {
/* Nothing to evict. */
return;
}
evict();
} | [
"private void performCacheEviction(final CursorImpl newCursor) {\n EnvironmentImpl envImpl = databaseImpl.getDbEnvironment();\n if (cacheMode != CacheMode.EVICT_LN &&\n cacheMode != CacheMode.EVICT_BIN &&\n (cacheMode != CacheMode.MAKE_COLD ||\n !(envImpl.isCacheFull(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Settings for F4v container | public void setF4vSettings(F4vSettings f4vSettings) {
this.f4vSettings = f4vSettings;
} | [
"public void setMp4Settings(Mp4Settings mp4Settings) {\n this.mp4Settings = mp4Settings;\n }",
"public static void setVfcProps() {\n PolicyEngine.manager.setEnvironmentProperty(\"vfc.url\", \"http://localhost:6668/api/nslcm/v1\");\n PolicyEngine.manager.setEnvironmentProperty(\"vfc.usernam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Guesses the active window. Returns null if no active window is found. | private Window getActiveWindow() {
return (Window)m_queuer.invokeAndWait(
"getActiveWindow", //$NON-NLS-1$
new IRunnable() {
public Object run() throws StepExecutionException {
if (Frame.getFrames().length == 0) {
return n... | [
"@Nullable\n public static Window getActiveWindow ()\n {\n final Window[] windows = Window.getWindows ();\n Window window = null;\n for ( final Window w : windows )\n {\n if ( w.isShowing () && w.isActive () && w.isFocused () )\n {\n window = w;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the first element on the queue | public Object firstElement() {
return _queue.firstElement();
} | [
"public E first(){\n return queue.first();\n }",
"@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}",
"public T first() {\n if (isEmpty()) {\n cursor = -1;\n return null;\n\n } else {\n cursor = 0;\n return queue.get(0);\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the corresponding style for the given token type | protected TextStyle getApplicableStyle( String word, int type )
{
TextStyle toApply = null;
switch(type)
{
case Token.KEYWORD:
if (isFunction(word))
{
toApply = m_scheme.getStyle(TokenTypes.SPEL);
}
else if (isLanguage(word))
{
toApply = m_scheme.getStyle(TokenTypes.CODE);
... | [
"protected TextStyle getApplicableStyle(String word, int type)\n\t{\n\t\tTextStyle toApply = null;\n\t\tswitch (type)\n\t\t{\n\t\tcase Token.KEYWORD:\n\t\t\tif (isFunction(word))\n\t\t\t{\n\t\t\t\tif (isCriticalFunction(word))\n\t\t\t\t{\n\t\t\t\t\t//toApply = m_scheme.getStyle(TokenTypes.CRITICAL);\n\t\t\t\t\ttoAp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Listens for incoming messages on the given port. | public void listenForIncomingConnections(final int port) {
//Preconditions
assert port > 1024 : "port must not be a reserved port 1-1024";
final X509SecurityInfo x509SecurityInfo = X509Utils.getX509SecurityInfo(
nodeRuntime.getKeyStore(),
nodeRuntime.getKeyStorePassword(),
... | [
"public void listen(final int port) {\n listen(port, \"localhost\");\n }",
"int getPortListening();",
"public ChatServer(int port) throws IOException {\n\n this.connectionPort = port;\n this.serverSocket = new ServerSocket(this.connectionPort);\n listenForConnections();\n\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
params defines the parameters of the module. .cosmos.mint.v1beta1.Params params = 1 [(.gogoproto.nullable) = false]; | @java.lang.Override
public cosmos.mint.v1beta1.Mint.ParamsOrBuilder getParamsOrBuilder() {
return getParams();
} | [
"cosmos.mint.v1beta1.Mint.ParamsOrBuilder getParamsOrBuilder();",
"cosmos.mint.v1beta1.Mint.Params getParams();",
"public cosmos.mint.v1beta1.Mint.Params getParams() {\n if (paramsBuilder_ == null) {\n return params_ == null ? cosmos.mint.v1beta1.Mint.Params.getDefaultInstance() : params_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a Tour which has its index array set to null. This is a factory method for testing purpose. | static public Tour makeTour() {
Tour t = new Tour();
t.index = null;
return t;
} | [
"public Tour(){\n for (int i = 0; i < TourManager.numberOfCities(); i++) {\n tour.add(null);\n }\n }",
"static Tour sequence() {\r\n\t\tTour tr = new Tour();\r\n\t\tfor (int i = 0; i < tr.length(); i++) {\r\n\t\t\ttr.index[i] = i;\r\n\t\t}\r\n\t\ttr.distance = tr.distance();\r\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies listeners that the scan has started. | protected void notifyScanStarted() {
for (ScanListener l : listeners) l.scanStarted(contextId);
} | [
"public void onScanStarted();",
"protected void notifyStart(\n )\n {\n for(IListener listener : listeners)\n {listener.onStart(this);}\n }",
"public void start() {\n this.networkScanner = new NetworkScanner();\n this.networkScanner.addListener(this);\n this.networkScanner.start()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the DNA associated with this gene | public @Override String getDNA() {
return dna;
} | [
"public String getDNA() {\n return dna.toString();\n }",
"public String getGeneA() {\n return geneA;\n }",
"public @Override String toString() {\n return dna;\n }",
"cl.nic.siiDte.TedBarcodeDocument.TedBarcode.TED.DD.CAF.DA getDA();",
"public String findSimpleGene (String dna){\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .UDeliveryMade delivered = 2; | WorldUps.UDeliveryMade getDelivered(int index); | [
"public void delivered(){\n this.state=State.DELIVERED;\n }",
"int getDeliveredCount();",
"int getDeliveryStatusValue();",
"public void setDelivery(double pDelivery) {\n mDelivery = pDelivery;\n }",
"public int getDeliveryFee()\n {\n return deliveryFee;\n }",
"DeliveryType... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to enable the drivetrain encoders. | private void enableEncoders()
{
encodersAvailable =
((leftTalonLead.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder, 0, 10) == ErrorCode.OK) &&
(rightTalonLead.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder, 0, 10) == ErrorCode.OK));
if (!encodersAvailable... | [
"public void enable() {\n\t\tdriveMotor.enableControl();\n\t}",
"public void ConfigEncoder() {\n\t\tRobotMap.backLeft.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.backLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.backLeft.setSe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a repetition of RXA9: "Administration Notes" at a specific index | public CWE removeRxa9_AdministrationNotes(int rep) throws HL7Exception {
return (CWE) super.removeRepetition(9, rep);
} | [
"private void delete(int index) {\r\n notes.remove(index);\r\n }",
"public CWE removeAdministrationNotes(int rep) throws HL7Exception { \r\n return (CWE) super.removeRepetition(9, rep);\r\n }",
"public void deleteNote(int index) throws NotepadOutOfBoundsException {\n if (!isRightBound... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a VpnServerConfiguration resource if it doesn't exist else updates the existing VpnServerConfiguration. | @ServiceMethod(returns = ReturnType.SINGLE)
public VpnServerConfiguration beginCreateOrUpdateWithoutPolling(
String resourceGroupName,
String vpnServerConfigurationName,
VpnServerConfiguration vpnServerConfigurationParameters) {
return this
.serviceClient
.beg... | [
"@ServiceMethod(returns = ReturnType.SINGLE)\n public VpnServerConfiguration createOrUpdate(\n String resourceGroupName,\n String vpnServerConfigurationName,\n VpnServerConfiguration vpnServerConfigurationParameters) {\n return this\n .serviceClient\n .createOrUp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor artist controller with its view | public Artist_controller(Artist_view artist_view) {
artist_service = new Artist_service();
this.artist_view = artist_view;
} | [
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public Controller(View view) {\n asciiPaint = view.defineSizeDrawing();\n this.view = new View(asciiPaint);\n }",
"public MainView(Controller controller) {\n this.controller = controller;\n }",
"public Controller()\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of equals method, of class RegistoExposicoes. | @Test
public void testEquals() {
System.out.println("equals");
Object outroObjecto = new RegistoExposicoes();
RegistoExposicoes instance = new RegistoExposicoes();
assertTrue(instance.equals(outroObjecto));
} | [
"@Test\n public void testGetRegistoExposicoes() {\n System.out.println(\"getRegistoExposicoes\");\n CentroExposicoes instance = new CentroExposicoes();\n RegistoExposicoes re = new RegistoExposicoes();\n boolean expResult = true;\n boolean result = re.equals(instance.getRegisto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds a property descriptor for the Context feature. | protected void addContextPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_ConnectionReference_context_feature"),
getString("_UI_PropertyDescript... | [
"public FeatureDescriptor getFeatureDescriptor() {\n return prop;\n }",
"public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }",
"public String getContextProperty() {\n return _contextProperty;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required bytes voicedesckey = 35 [default = ""]; | com.tshang.peipei.protocol.protobuf.ByteString getVoicedesckey(); | [
"public com.tshang.peipei.protocol.protobuf.ByteString getVoicedesckey() {\n\t\t\treturn voicedesckey_;\n\t\t}",
"public com.tshang.peipei.protocol.protobuf.ByteString getVoicedesckey() {\n\t\t\t\treturn voicedesckey_;\n\t\t\t}",
"boolean hasVoicedesckey();",
"public Builder setVoicedesckey(com.tshang.peipei.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column shop.bulletin | public String getBulletin() {
return bulletin;
} | [
"public final void mBULLETIN() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = BULLETIN;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// C:\\\\Users\\\\JeanV\\\\Documents\\\\ETUDES\\\\GI05\\\\LO17\\\\projet\\\\LO17\\\\LO17Tomcat\\\\WEB-INF\\\\src\\\\lo17SqlGrammar.g:15:10: ( 'bulletin' )\n\t\t\t/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
copy src to dst if fail return false else return true | public boolean copy(File src, File dst){
boolean result = true;
try {
InputStream in = new FileInputStream(src);
OutputStream out = new FileOutputStream(dst);
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
in.close();
out.close();
} c... | [
"public static boolean copy(File src, File dst) {\n //Downcasting length can result in a sign change, causing\n //copy(File,int,File) to terminate immediately.\n long length=src.length();\n return copy(src, (int)length, dst)==length;\n }",
"@Test\n\tpublic void nonExistentSource() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the target species. | @Size(max = 50)
@Column(name = "TargetSpecies")
public String getTargetSpecies() {
return targetSpecies;
} | [
"public void setTargetSpecies(String targetSpecies) {\n this.targetSpecies = targetSpecies;\n }",
"protected String getSpecies() {\n\t\treturn species;\n\t}",
"public String getSpecies() {\n return species;\n }",
"public String getSpecies()\r\n {\r\n return species;\r\n\r\n }",
"E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find an integration object with the given code. | IntegrationObjectModel findIntegrationObject(String integrationObjectCode); | [
"IntegrationObjectItemModel findIntegrationObjectItemByTypeCode(final String integrationObjectCode, final String typeCode);",
"String findItemTypeCode(String integrationObjectCode, String integrationObjectItemCode);",
"public Sensor findSensorByCode(String code) {\r\n\t\tboolean found = false;\r\n\t\tint i = 0;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of paged attributes by searching by attribute name, source system id, or attribute id | public Page<Attribute> getAttributeMaintenanceTable(Pageable pageable, String attributeName, Long sourceSystemId, Long attributeId){
Page<Attribute> dynamicAttributes;
if (attributeId != null && StringUtils.isNotEmpty(attributeName) && sourceSystemId != null) {
dynamicAttributes = this.attr... | [
"List<CelebrosIndexAttributeModel> lookupAttributes(Collection<CelebrosIndexAttributeModel> attributes);",
"List<ZookAttributeDO> findByValue(String attributeValue) throws DataAccessException;",
"public List<Attribute> getAttributesByGID(Integer gid) throws MiddlewareQueryException;",
"SortedSet<Attribute> fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Exception__ExtendedAttributesAssignment_0_2_1" $ANTLR start "rule__Exception__NameAssignment_2" ../org.waml.w3c.webidl.ui/srcgen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:10281:1: rule__Exception__NameAssignment_2 : ( RULE_ID ) ; | public final void rule__Exception__NameAssignment_2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:10285:1: ( ( RULE_ID ) )
// .... | [
"public final void rule__Exception__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:8084:1: ( ( ( rule__Excepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor creates an empty mesh | public Mesh() {
} | [
"public Mesh() {\n this(DEFAULT_COORDS);\n }",
"public Mesh() {\r\n\t\tthis.tempVertices = new ArrayList<Vertex>();\r\n\t}",
"public Mesh(){\n \t// here we hardcode the mesh data for a cube. \n \tthis(new float[]{0.0f,0.0f,0.0f,0.0f,0.0f,1.0f,0.0f,1.0f,0.0f,0.0f,1.0f,1.0f,1.0f,0.0f,0.0f,1.0f,0.0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called when a line specifying that an offer has been made by one of the players in the specified game. Possible values for offer are "draw", "abort" and "adjourn", but clients should not break if a different value is received. | protected boolean processPlayerOffered(int gameNum, String playerName, String offer){
return false;
} | [
"private boolean handlePlayerOffered(String line){\n if (!line.startsWith(\"Game \"))\n return false;\n \n String offer;\n\n Matcher matcher;\n if ((matcher = PLAYER_OFFERED_DRAW_REGEX.matcher(line)).matches())\n offer = \"draw\";\n else if ((matcher = PLAYER_OFFERED_ADJOURN_REGEX.matche... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hashes the provided password using the bcrypt hashing function. | private String hash(String password)
{
return BCrypt.hashpw(password, BCrypt.gensalt());
} | [
"String hashPassword(String salt, String password);",
"public static String hashPass(String password){\n\t\tString hashedPassword = BCrypt.hashpw(password, BCrypt.gensalt());\n\t\treturn hashedPassword;\n\t}",
"String hashPassword(String password);",
"public String hashPassword(String plainTextPassword);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a command with the given header and data contents without prefixing it with the session ID. | boolean sendWithoutSession(int header, String data) {
return send(header, data.getBytes(), Flags.WITHOUT_SESSION_ID);
} | [
"boolean sendWithoutSession(int header, byte[] data) {\n return send(header, data, Flags.WITHOUT_SESSION_ID);\n }",
"protected abstract void transmit( Command command, Map header, String body );",
"private void sendHeader() throws IOException {\n\t\tbyte[] bytes = header.toBytes();\n\t\tif (outBuf.cap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the collection of directory id's for a date based view. | public synchronized Map<Integer, String> getDirectoryIDCollectionForDateBasedView(final String viewName, final String appendedPath,
final int directoryId, ServerResponseFactoryInterface response)
throws QVCSException {
ProjectView projectView = ViewManager.getInstance().getView(getProjec... | [
"public synchronized Map<Integer, String> getDirectoryIDCollectionForTranslucentBranch(final ProjectView projectView, final String appendedPath, final int directoryId,\n ServerResponseFactoryInterface response) throws QVCSException {\n DirectoryContents directoryContents = getDirectoryContentsForT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update the label of the supplied MBean tree node. Call on EDT | private void updateNotificationsNodeLabel(DefaultMutableTreeNode node, String label) {
synchronized (mbeansTab.getTree()) {
invalidate();
XNodeInfo oldUserObject = (XNodeInfo) node.getUserObject();
XNodeInfo newUserObject = new XNodeInfo(oldUserObject.getType(), oldUserObject... | [
"public void updateLabels() { }",
"public abstract void updateLabels();",
"public void updateLabels() {\n Object[] roots = fContentProvider.getRootElements();\n if (roots != null) {\n for (Object root: roots) {\n updateLabels(root);\n }\n }\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Propagate query submit only to the current fragment. | @Override
protected boolean onQuerySubmit(String query) {
RepcastFragment fragment = mPagerAdapter.getRegisteredFragment(mViewPager.getCurrentItem());
fragment.onQuerySubmit(query);
return true;
} | [
"@Override\n public boolean onQueryTextSubmit(String query) {\n searchQueryToRestore = query;\n // update the state variable\n searchQueryIsSubmitted = true;\n // remove focus from SearchView\n rootLayout.requestFocus();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes a listener from the list that's notified each time a change to the selection occurs | public void removeListSelectionListener(ListSelectionListener listener)
{
listSelectionListeners.remove(listener);
} | [
"public synchronized void removeListSelectionListener(ListSelectionListener l) {\n if (listSelectionListeners != null && listSelectionListeners.contains(l)) {\n Vector v = (Vector) listSelectionListeners.clone();\n v.removeElement(l);\n listSelectionListeners = v;\n }\n }",
"public void remo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the painted line's width | public int getLineWidth() {
return (int) mPaintLine.getStrokeWidth();
} | [
"public int getLineWidth ( ) {\r\n\t\treturn line_width;\r\n\t}",
"public int getLineWidth() {\r\n return LineWidth;\r\n }",
"public int getLineThickness()\r\n\t{\r\n\t\treturn _lineWidth;\r\n\t}",
"@SuppressWarnings(\"deprecation\")\n private int getLineWidth(Element line) {\n if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method addNewBubbles adds Bubbles to the ArrayList | private void addNewBubbles(Bubbles bubble){
bubblesArray.add(bubble);
} | [
"public void trackBubbles(){\n\t\tif (!my_bubbles.isEmpty()){\n\t\t\tfor(int index = 0; index < my_bubbles.size(); index++)\n\t\t\t{\n\t\t\t\tBubble b = my_bubbles.get(index);\n\t\t\t\tb.countdown();\n\t\t\t\tif(b.getDuration() <= 0 || map.isExploded(b)){\n\t\t\t\t\tmap.startExplosion(b.getIndex().x,\n\t\t\t\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field investorID is set (has been assigned a value) and false otherwise | public boolean isSetInvestorID() {
return this.investorID != null;
} | [
"public boolean isSetRepaymentId() {\n return EncodingUtils.testBit(__isset_bitfield, __REPAYMENTID_ISSET_ID);\n }",
"public boolean isSetTraderID() {\n return this.traderID != null;\n }",
"public boolean isSetOrganiserId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ORGANI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the label text for the section. | public void setLabel(final String label) {
_section.setText(label);
} | [
"public void setLabelText(String text);",
"public void setLabel(String text);",
"public void setLabelText(String text) {\n label.setText(text);\n }",
"public void setLabel(String text){\n\t\tlblLabel.setText(text);\n\t}",
"public void setLabelText(String text) {\n textLabel.setText(text);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pop Invoked when "Pop" button is clicked; Pop the last value from the stack and display it in the text field | static void pop()
{
// remove the last from the stack
String word = stack.pop();
// display the stack
display();
// display the text in the text field
board.setText(word);
} | [
"protected void popButton() {\n \tifNotEntered();\n \tstackEmptyButton();\n \tif (!stack.empty()) {\n \t\tcurrent = stack.peek();\n \t}\n \tshow(current);\n }",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\n if(!stack.i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the line 3. | public String getLine3() {
return line3;
} | [
"java.lang.String getLine3();",
"public java.lang.String getLine3() {\n java.lang.Object ref = line3_;\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.toString... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool is_record_list = 3; | @java.lang.Override
public boolean getIsRecordList() {
return isRecordList_;
} | [
"boolean getIsRecordList();",
"@java.lang.Override\n public boolean getIsRecordList() {\n return isRecordList_;\n }",
"default boolean isRecord() {\n return false;\n }",
"public Builder setIsRecordList(boolean value) {\n\n isRecordList_ = value;\n bitField0_ |= 0x00000004;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new item to the netDvddRate list. | public RateDetails34 addNetDvddRate(NetDividendRateFormat36Choice netDvddRate) {
getNetDvddRate().add(netDvddRate);
return this;
} | [
"public RateDetails34 addGrssDvddRate(GrossDividendRateFormat34Choice grssDvddRate) {\n getGrssDvddRate().add(grssDvddRate);\n return this;\n }",
"public void addCostItem(CostItem item) throws CostManagerException;",
"nc.vo.crd.acc.feeplan.feeplanbvo.FeePlanBVO addNewFeePlanBVOItem();",
"void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shortcut method for forcing the given mob to do the command: tell [target] [text] ... with special options | public void postSay(MOB mob, MOB target, String text, boolean isPrivate, boolean tellFlag); | [
"public void postSay(MOB mob, MOB target,String text);",
"public Object forceInternalCommand(MOB mob, String command, Object... parms);",
"public void postSay(MOB mob, String text);",
"public void postFlee(MOB mob, String whereTo);",
"public boolean handleUnknownCommand(MOB mob, List<String> command);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if is date time precesion. | public boolean isDateTimePrecesion() {
return isDateTimePrecesion;
} | [
"boolean hasBasedTime();",
"boolean hasDateGranularity();",
"public boolean isDatetime(Object node) {\n return asDateTime(node) != null;\n }",
"public Boolean checkForCreateDate() {\n\t\treturn true;\n\t}",
"public boolean hasPreOrderDate() {\n return fieldSetFlags()[10];\n }",
"boolean ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field820' field. doc for field820 | public java.lang.CharSequence getField820() {
return field820;
} | [
"public java.lang.CharSequence getField820() {\n return field820;\n }",
"public void setField820(java.lang.CharSequence value) {\n this.field820 = value;\n }",
"java.lang.String getField1020();",
"java.lang.String getField1600();",
"java.lang.String getField1275();",
"java.lang.String getField... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets content module locations for mailing`s id | List<ContentModuleLocation> getCMLocationsForMailingId(int mailingId); | [
"void addMailingBindings(int contentModuleId, List<Integer> mailingIds);",
"public interface ContentModuleManager {\n\n\t/**\n\t * @param id id of needed CM\n\t * @return CM for the given id\n\t */\n\tContentModule getContentModule(int id);\n\n\t/**\n\t * @param companyId company id of needed CMs\n\t * @return li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the connection status | private void setConnectionStatus( final ConnectionStatus status ) {
switch( status ) {
case STATUS_CONNECTING:
connectButton.setEnabled( false );
disconnectButton.setEnabled( false );
ipAddressField.setEnabled( false );
portField.setEnabled( false );
break;
case STATUS_CONNECTED:
co... | [
"public synchronized void setStatus(JPPFClientConnectionStatus status)\n\t{\n\t\tJPPFClientConnectionStatus oldStatus = getStatus();\n\t\tthis.status = status;\n\t\tif (!status.equals(oldStatus)) fireStatusChanged(oldStatus);\n\t}",
"public void setActive()\n\t{\n\t\tif(status != ConnectionStatus.DISCONNECTED)\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to print the pattern specific to speculative stock object | public void printPattern(){
//Volatility is set through method call
setVolatility();
System.out.println();
System.out.println(getName() + " is a Speculative stock with a " + getGrowthPattern() + " pattern, meaning it is unpredicatable and will bounce up and down rap." )... | [
"public void printOrderInfo() {\r\n String t = \"\";\r\n if (this.buyOrder) {\r\n t = \"BUY\";\r\n } else if (this.sellOrder) {\r\n t = \"SELL\";\r\n }\r\n System.out.println(t + \" \" + this.Ticker + \" Qty: \" + this.quantity + \" Rate: \" + this.rate + \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the Ranges for an interval at this granularity | public static Iterable<Range> rangesForInterval(Granularity g, final long from, final long to) {
if (g == Granularity.FULL) {
return Arrays.asList(new Range(from, to));
}
final long snappedStartMillis = g.snapMillis(from);
final long snappedStopMillis = g.snapMillis(to + g.m... | [
"public abstract List<Interval<T>> getTimeIntervals(T start, T end);",
"public List<Interval> getIntervals() {\n\t\treturn intervals;\n\t}",
"public Interval[] getAllIntervals() {\n return mIntervals;\n }",
"public Set<T> getRanges();",
"double getRange();",
"public double[] getRangeBounds() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column FreeHost_ServerPORTlist.cname | public String getCname() {
return cname;
} | [
"public String cname() {\n return this.cname;\n }",
"public String getCname() {\n return cname;\n }",
"public String getCname() {\n\t\treturn cname;\n\t}",
"public ScGridColumn<AcCandidateRouteAnalysisRequest> newHostNameColumn()\n {\n return newHostNameColumn(\"Host Name\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the model's dotInfo reference at location (i,j) | public DotInfo get(int i, int j) {
return model [i][j];
} | [
"public SoPointDetail getPoint(int i) { return point[i]; }",
"public Image getDot();",
"public E3DVector2F getTextureCoordDetail0B(){\r\n return vertices[1].getTextureCoordDetail0();\r\n }",
"public E3DVector2F getTextureCoordDetail0C(){\r\n return vertices[2].getTextureCoordDetail0();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
decryptFromPref decrypts a encrypted preference using the Jetpack Security library and returns the plaintext. | public String decryptFromPref(String prefKey) throws IOException, GeneralSecurityException {
return getEncryptedPrefs().getString(prefKey, null);
} | [
"private String decrypt() {\n return encryptionMethod.decrypt(password);\n }",
"public static String decryptProperty(String encryptedVal) {\r\n\t\treturn internalDecrypt(\"<no key provided>\", encryptedVal);\r\n\t}",
"public static String decrypt(Activity context, String text, String key) {\n t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a current snapshot of all known peers | Set<String> getPeerSnapshot(); | [
"Collection<Peer> getAllPeers();",
"List<PeerId> listAlivePeers();",
"java.util.List<lightpay.lnd.grpc.Peer> \n getPeersList();",
"List<Uuid> getActivePeers() throws RemoteException;",
"java.util.List<com.vegvisir.network.datatype.proto.Peer> \n getActivePeersList();",
"public ArrayList<InetAddr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper function for top level brace insert functions. at Head: not special case at Tail: not special case between two things (offset is 0): insert brace move next offset = 0 inside gap: shrink gap to size of gap offset. insert brace insert gap the size of offset. move next twice offset = 0 inside multiple char brace: b... | private void _insertBrace(String text) {
if (_cursor.atStart() || _cursor.atEnd()) {
_insertNewBrace(text,_cursor); // inserts brace and goes to next
}
else if (_cursor.current().isGap()) {
_insertBraceToGap(text,_cursor);
}
else {
_insertNewBrace(text,_cursor);
}
} | [
"private void _insertBraceToGap(String text,\n ModelList<ReducedToken>.Iterator copyCursor)\n {\n copyCursor.current().shrink(_offset);\n copyCursor.insert(Brace.MakeBrace(text, FREE));\n copyCursor.insert(new Gap(_offset, FREE));\n copyCursor.next(); // now pointing at ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the last drag mode handled by the select tool. | public DragMode getDragMode()
{
return _dragMode;
} | [
"public int getLastSelectedPostion() {\r\n return mLastSelectedPosition;\r\n }",
"public int getSelectionMode() {\r\n return calendarTable.getSelectionModel().getSelectionMode();\r\n }",
"public int getDragType()\n\t{\n\t\treturn dragType;\n\t}",
"public SelectionMode getSelectionMode() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Konto__Group__4" $ANTLR start "rule__Konto__Group__4__Impl" ../de.nie.fin.ui/srcgen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3742:1: rule__Konto__Group__4__Impl : ( ( rule__Konto__InhaberAssignment_4 ) ) ; | public final void rule__Konto__Group__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:3746:1: ( ( ( rule__Konto__InhaberAssignment_4 ) ) )
// ... | [
"public final void rule__Buchung__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:4730:1: ( ( ( rule__Buchung__KontoAssignment_4 ) )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Map containing the Elasticsearch domain endpoints used to submit index and search requests. Example key, value: 'vpc','vpcendpointh2dsd34efgyghrtguk5gt6j2foh4.useast1.es.amazonaws.com'. | public ElasticsearchDomainStatus withEndpoints(java.util.Map<String, String> endpoints) {
setEndpoints(endpoints);
return this;
} | [
"public Map getDefinedEndpoints() {\n Map definedEndpoints = new HashMap();\n Iterator itr = localRegistry.values().iterator();\n while(itr.hasNext()) {\n Object o = itr.next();\n if(o instanceof Endpoint) {\n definedEndpoints.put(((Endpoint) o).getNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Interaction__Group_2__7" $ANTLR start "rule__Interaction__Group_2__7__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11335:1: rule__Interaction__Group_2__7__Impl : ( 'EV_InteractionResponder' ) ; | public final void rule__Interaction__Group_2__7__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11339:1: ( ( 'EV_InteractionRespo... | [
"public final void rule__Interaction__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11034:1: ( ( 'EV_I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Suspends the given card for this user. | public boolean suspendCard(Card card) {
if (cards.contains(card)) {
card.suspend();
Logger.log("Suspended the " + card.toString());
return true;
}
Logger.log("Failed to suspend the " + card.toString());
return false;
} | [
"void suspendCard() {\n isActive = false;\n }",
"public boolean suspendCard(Card card) {\n return card.suspend(this.getId());\n }",
"void suspend() {\n\t\tisSuspended = true;\n\t\tSystem.out.println(\"Suspend account successfully.\");\n\t}",
"public void playCard() {\n getTable().setCurre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the download progress. | public UpdateDownloadProgress downloadProgress() {
return this.downloadProgress;
} | [
"public float getProgress() {\r\n return ((float) downloaded / size) * 100;\r\n }",
"public int getProgress();",
"double getProgress();",
"public int getProgress() {\n return Math.round(mProgress);\n }",
"int getProgressBarProgress() { return progressBar.getProgress(); }",
"public fina... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the set breakfast Recipe / Meal from the selected day in the planner pane. Method run when bin icon in breakfast section is clicked. | @FXML
public void clearBreakfastPlanner(){
//get the day selection
Days selectedDay = weekList.getSelectionModel().getSelectedItem();
if (selectedDay != null){
selectedDay.setBreakfast(null);
breakfastCombo.getSelectionModel().clearSelection();
weekList.re... | [
"@FXML\n public void clearDinnerPlanner(){\n //get the day selection\n Days selectedDay = weekList.getSelectionModel().getSelectedItem();\n if (selectedDay != null){\n selectedDay.setDinner(null);\n dinnerCombo.getSelectionModel().clearSelection();\n weekList... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unregisters the specified listener so that it does not receive further events upon changes in local presence status. | void removeProviderPresenceStatusListener(ProviderPresenceStatusListener listener); | [
"public boolean removeListener(PresenceListener listener);",
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"void removeContactPresenceStatusListener(ContactPresenceStatusListener listener);",
"@Override\r\n public void unregister(L listener) {\r\n synchronized (listeners) {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Assert that an array has no null elements. Note: Does not complain if the array is empty! Assert.noNullElements(array, "The array must have nonnull elements"); | public static void noNullElements(Object[] array, String message) throws BusinessException{
if (array != null) {
for (int i = 0; i < array.length; i++) {
if (array[i] == null) {
BusinessException.throwMessage(message);
}
}
}
... | [
"public static void noNullElements(Object[] array) {\n\t\tnoNullElements(array, \"[Assertion failed] - this array must not contain any null elements\");\n\t}",
"public static void noNullElements(Object[] array, String message) {\n\t\tif (array != null) {\n\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\tif... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This creates n_t specific training data indices for specific n and t of size k the weight is taken as input, so the distance matrix is calculated inside Should be used only for trainable weight case. | public List<Integer> createN_TSpecificTrainingSet(int n,int t,int k,INDArray weight){
double[][] distanceMatrix=new double[this.trainingData.size()][this.trainingData.size()];
for(int i=0;i<this.trainingData.size();i++) {
for(int j=0;j<=i;j++) {
if(j==i) {
distanceMatrix[i][i]=0;
}
double... | [
"public Map<String,List<Integer>> createN_TSpecificTrainingSet(int k){\r\n\t\tMap<String,List<Integer>> n_tSpecificTrainingIndices=new HashMap<>();\r\n\t\tfor(int n=0;n<this.N;n++) {\r\n\t\t\tfor(int t=0;t<this.T;t++) {\r\n\t\t\t\tString key=Integer.toString(n)+\"_\"+Integer.toString(t);\r\n\t\t\t\tn_tSpecificTrain... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The refresh token used to regenerate new access tokens. Store this token securely on your server. | public String getRefresh_token() {
return refresh_token;
} | [
"public String getRefreshToken() {\n return refreshToken;\n }",
"public String getRefreshToken() {\n return this.refreshToken;\n }",
"private String refreshToken() {\n return null;\n }",
"public String generateRefreshToken() {\n return UUID.randomUUID().toString();\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appel des methodes Si l'ajout commande est different de null recupere la liste des commandes et on met la liste des lignes de commande a jour sinon echec | public String ajouterCommande(){
Commande ComOut=commandeService.addCommande(this.commande,this.client);
if(ComOut.getIdCommande()!=0){
//Recup la liste des commandes (commande=liste ligne de commande avec le client)
List<Commande> listeCom=commandeService.getAllCommande(this.client);
//Mettre a jour ... | [
"public ArrayList<Commande> SelectAllCommandes();",
"private Commande creerCommande(ArrayList<Produit> produit)\n {\n\n return new Commande(new Date(),\"ok\",produit.get(0).getPrixDuJour(), new Random().nextInt(), new LigneDeCommande(produit.get(0).getPrixDuJour(), 1),produit);\n }",
"public static... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method cleans the visited 2D array that I am using to treack which buttons have been visited yet so that the game is able to know where you have already used words | private void cleanVisited(int n)
{
for (int i = 0; i < n; i++)
{
for (int j = 0; j < n; j++)
{
visited[i][j] = false;
}
}
} | [
"public void clearVisitedCells() {\n for (int i = 0; i < visitedCells.length; i++) {\n for (int j = 0; j < visitedCells.length; j++) {\n visitedCells[i][j] = false;\n }\n }\n }",
"public void clearVisited()\r\n {\r\n visited = false;\r\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load a previously stored book based on its ISBN, for readonly access. | public Book loadBook(String isbn) throws BookNotFoundException {
return loadBookForEdit(isbn);
} | [
"public MutableBook loadBookForEdit(String isbn) throws BookNotFoundException {\r\n MutableBook book = this.booksByISBN.get(isbn);\r\n if (book == null) {\r\n throw new BookNotFoundException(isbn);\r\n }\r\n return book;\r\n }",
"@Override\n public Book getBookByIsbn(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test findPathForExtensionFile and findVirtualFileForExtensionFile together | private void checkFindExtensionFile(String targetString, Path expected) {
BuckTarget target = unwrap(BuckTarget.parse(targetString));
assertOptionalEquals(expected, buckTargetLocator.findPathForExtensionFile(target));
assertOptionalEquals(
asVirtualFile(expected), buckTargetLocator.findVirtualFileFo... | [
"public void testGetExtention() {\r\n System.out.println(\"getExtention\");\r\n String result;\r\n\r\n String fileName = \"C:\" + File.separator + \"test1.2\" + File.separator + \"file1.xml\";\r\n int nameIndex = fileName.lastIndexOf(\".\");\r\n assertEquals(16, nameIndex);\r\n\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the row about people and which guess for a person | public void createPeopleRow() {
JPanel rowPanel = new JPanel();
rowPanel.setLayout(new GridLayout(1, 0));
JPanel personGuess = new JPanel();
JComboBox guess = new JComboBox();
JPanel people = new JPanel();
people.setLayout(new GridLayout(0, 2));
JCheckBox checkB... | [
"private Isik createPerson(String row, List<String> personDB) {\n Isik isik = new Isik();\n // Create a person -> Isik\n String[] s = row.split(\" \");\n if (s[1].equals(\"nimi\")) {\n isik.setIsikukood(s[0]);\n isik.set\n }\n // Add children ___ Shoul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setupGame in zoals de naam als zegt de setup voor de game. Hier wordt de wereld breedte en hoogte vast gesteld en alle variabele geinitaliseerd. Hier wordt ook alle gameText en gameObjecten gemaakt. De achtergrond wordt ook al gemaakt hier. De view van het spel wordt hier ook gemaakt. | @Override
public void setupGame() {
final int WORLDWIDTH = 980;
final int WORLDHEIGHT = 581;
createViewWithoutViewport(WORLDWIDTH, WORLDHEIGHT);
startButton = new StartButton(this, WORLDWIDTH / 2, WORLDHEIGHT / 2, 200 , 100);
addGameObject(startButton);
// this.endScreen = new EndScreen(this);
// this.g... | [
"private void setUpGame() {\n Log.d(TAG, \"set up game\");\n mButtons.removeAllViews();\n List<String> text = sfHelper.textToList(mScripture.text);\n List<Boolean> hiding = new ArrayList<>();\n for (int i = 0; i <= mPercentHidden / 10; i++) {\n hiding.add(true);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
INPUT DEI DATI DELLA DATA DI NASCITA | public void gestData() {
Scanner sc = new Scanner(System.in);
System.out.println("\nINSERIRE LA DATA DI NASCITA\n");
System.out.print("Inserire il giorno: ");
giorno = sc.nextInt();
System.out.print("Inserire il mese: ");
mese = sc.nextInt();
System.out.print("Inserire l'anno: ");
anno = sc.next... | [
"String getDataNascimento();",
"Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }",
"public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Applies all of the interections in this class | public void apply(){
this.itemInteractions();
this.enemyInteractions();
this.tileInteractions();
this.bulletInteractions();
} | [
"public void applyAllCoupledParameters()\n\t{\n\t\tRelationCoupling.setAll(getProcess(), getInteractionParameters());\n\t}",
"void applyMixims() {\n if (this.applied) {\n throw new IllegalStateException(\"Mixims already applied to target class \" + this.className);\n }\n this.appli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify that the clustered cache manager has shut down. | private void verifyCacheManagerShutdown() {
Assert.assertEquals(Status.STATUS_SHUTDOWN, cacheManager.getStatus());
} | [
"private void shutdownCacheManager() throws Throwable {\n cacheManager.shutdown();\n }",
"private void shutdownCache() {\r\n\t\tApplicationCacheManager cacheManager = ApplicationCacheManager.getInstance();\r\n\t\tif (cacheManager != null) {\r\n\t\t\tcacheManager.closeCacheManager();\r\n\t\t}\r\n\t}",
"@Test... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper function for faster SnackBar creation | private void snackBar(String msg) {
MySnackBar.createSnackBar(Objects.requireNonNull(getContext()), Objects.requireNonNull(getView()), msg);
} | [
"private void showSnackBar() {\n\n final Snackbar snackbar = Snackbar.make(mView.mRelativeLayout,\n getResources().getString(R.string.internet_connection), Snackbar.LENGTH_LONG);\n// showErrorText(getResources().getString(R.string.internet_connection));\n\n snackbar.setAction(\"R... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse to int or crash with an error message. | public static int intOrDie(String data) {
try {
return Integer.parseInt(data);
} catch(NumberFormatException nfe) {
throw new RuntimeException("Couldn't make "+data+" into an int.", nfe);
}
} | [
"private static int parseInt(String arg)\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn Integer.parseInt(arg);\n\t\t}\n\t\tcatch(NumberFormatException exec)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"GPSOffice(): Invalid\"+arg);\t\t\n\t\t}\n\t}",
"public int getIntFromUser() {\n\tString inp = JOptionPane.showInputDia... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function that scales devil gold dropped based on level | private static int devilGoldScale(int devilGold, int playerLevel){
if(playerLevel > 4){
devilGold = devilGold + ( 1* playerLevel);
return devilGold;
}else{
return devilGold;
}
} | [
"private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }",
"private static int devilAttackScale(int devilAttack, int playerLevel){\r\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the state of the real time flag to the new value | public void setRealtime(boolean NewValue); | [
"private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}",
"void setFlag();",
"void flagUpdate(String name, boolean value);",
"public void changeDetected(boolean flag){\n if (flag) {\n this.total_seconds = 90;\n System.out.println(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Accessor Methods Gets the new game button. | public JButton getNewGameButton() {
return newGameButton;
} | [
"public Button getNewButton() {\n\t\treturn newButton;\n\t}",
"public Button getNewButton() {\n\t\treturn this.btnNew;\n\t}",
"public GameObject getButton() {\n\t\treturn button;\n\t}",
"private void initNewGameButton() {\n\t\tnewGameButton = new Button(\"New Game\");\n\t\tnewGameButton.setAlignment(Pos.CENTE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required .ShowRoomInfo roominfo = 3; | Gogirl.ShowRoomInfo getRoominfo(); | [
"Gogirl.ShowRoomInfoOrBuilder getRoominfoOrBuilder();",
"public static void displayCurrentRoom() {\n\n }",
"protobuf.clazz.Protocol.RoomInfo getRoomInfo();",
"public void setRoom2(Room room);",
"private void displayRoomInfo() {\r\n \tSystem.out.println(getRoom().toString());\r\n }",
"private PBBr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the surface normal at a position given by the parameters s and t | public NurbsPoint getNormal(double s, double t) {
double step2 = 0.01; // 0.1
NurbsPoint p, p1, p2, p3;
// ---this is a fix to compensate for bad models
// ---that create deep concaves in the tail and nose
double step3 = 0.1;
if (s < u[0] + 2 * step3) s = u[0] + 2 * step... | [
"public abstract Vector3d getSurfaceNormal(DirectPosition2D pos) throws PointOutsideEnvelopeException;",
"public void normal(PointType n)\r\n {\r\n\t //System.out.println(\"norm: \"+n.x+\", \"+n.y+\", \"+n.z);\r\n\t\tgl.glNormal3d(n.x, n.y, n.z);\t\t\r\n\t}",
"Vector3d normalToLocal(Vector3d normal);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dado que o metodo [addPeriod] seja chamado... Dado que seja passado uma lista com um time Deve retornar uma lista de Time com o valor FIRST_PERIOD_OUT | @Test
void deve_retornar_o_periodo_first_period_out() {
List<LocalTime> localTimes = Arrays.asList(LocalTime.parse("10:30:00"));
TimeCourseEnum response = timeService.addPeriod(localTimes);
Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_OUT, response);
} | [
"@Test\n void deve_retornar_o_periodo_first_period_in() {\n List<LocalTime> localTimes = new ArrayList<>();\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_IN, response);\n }",
"@Test\n void deve_retornar_o_periodo_seco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
do something on finger count changes | @Override
public void onFingerCountChanged(int previousCount, int currentCount) {
} | [
"@Override\r\n public void onFingerCountChanged(int previousCount, int currentCount) {\n }",
"public void onUpdateCounter(double ammount) {\n\n\t}",
"float getFingersCount();",
"void remainingCountChanged(int numberRemaining);",
"private void onEvent(CounterController.EventC2V.OnCounte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
counting each row sum for checking | static int checkRow(int[]tmp,int size ,int start_row) {
int end_Row = start_row + size;
int row_sum = 0;
for (int i = start_row; i < end_Row; i++){
row_sum = row_sum + tmp[i];
}
return row_sum;
} | [
"static int [] sumOfEachRow(int [][] data) {\r\n // one result entry per rowA\r\n int [] rowSums = new int[data.length];\r\n for (int row = 0; row < data.length; row++) {\r\n int sum = 0;\r\n for (int col =0; col < data[row].length; col++) {\r\n sum += data[... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an instance of DeliverAddress given an JSON string | public static DeliverAddress fromJson(String jsonString) throws IOException {
return JSON.getGson().fromJson(jsonString, DeliverAddress.class);
} | [
"public Address createAddress(String address);",
"Adresse createAdresse();",
"Address createAddress();",
"public BaseJson<String> wallet_new_address() throws Exception {\n String s = main(\"wallet_new_address\", \"[]\");\n return JsonHelper.jsonStr2Obj(s, BaseJson.class);\n }",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Amount of grace period to set when deleting a namespace pod. | @DefaultValue("300")
int getDeleteGracePeriodSeconds(); | [
"@DefaultValue(\"600\")\n long getPodTerminationGracePeriodSeconds();",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Feature: Characters Have Races As a player I want to play an Orc so that I can be crude, drunk, and stupid +2 to Strength Modifier, 1 to Intelligence, Wisdom, and Charisma Modifiers | @Test
public void GivenAnOrc_WhenCreated_ThenHasNegativeOneCharismaModifier() {
Player orc = getPlayer(RaceType.ORC);
assertThat(orc.getAbilityModifier(AbilityType.CHARISMA), is(-1));
} | [
"@Test\r\n public void GivenAnOrc_WhenCreated_ThenHasPlusTwoStrengthModifier() {\r\n Player orc = getPlayer(RaceType.ORC);\r\n assertThat(orc.getAbilityModifier(AbilityType.STRENGTH), is(2));\r\n }",
"@Test\r\n public void GivenAnOrc_WhenCreated_ThenHasPlusTwoArmorClass() {\r\n Playe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'field993' field. doc for field993 | public java.lang.CharSequence getField993() {
return field993;
} | [
"public java.lang.CharSequence getField993() {\n return field993;\n }",
"public java.lang.CharSequence getField994() {\n return field994;\n }",
"public java.lang.CharSequence getField994() {\n return field994;\n }",
"public java.lang.CharSequence getField983() {\n return field983;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |