query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Transform a star's catalog quantities for a change of epoch and/or equator and equinox. Also used to rotate catalog quantities on the dynamical equator and equinox of J2000.0 to the ICRS or vice versa. Wrapper for tansform_cat() method, for more information, see NOVAS_C3.1_Guide.pdf, page C57. | public static native short transformCatalogEntry(int option, double inDate, CatalogEntry inEntry, double outDate, String outCatalog, CatalogEntry OutEntry); | [
"public final EObject ruleTransformationCS() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_TransformationDeclCS_0 = null;\r\n\r\n EObject this_TransformationDefCS_1 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write the code to a directory named by the codeDirectory parameter, with a file name that is a sanitized version of the model name, and an extension that is the last package of the generatorPackage. | protected String _writeCode(StringBuffer code)
throws IllegalActionException {
// This method is private so that the body of the caller shorter.
String extension = generatorPackage.stringValue().substring(
generatorPackage.stringValue().lastIndexOf("."));
String codeFileName = _sanitizedModelName + exten... | [
"private void saveFile(JCodeModel codeModel)\n\t{\n\t\ttry {\n\t\t\t codeModel.build(new File (directory));\n\t\t\t} catch (Exception ex) {\n\t\t\t ex.printStackTrace();\n\t\t\t}\n\t\t\n\t}",
"public File prepareCodeFolder() {\n if (!codeFolder.exists()) {\n codeFolder.mkdirs();\n }\n return cod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the user uuid of this game score. | @Override
public void setUserUuid(java.lang.String userUuid) {
_gameScore.setUserUuid(userUuid);
} | [
"public void setUserUuid(String userUuid);",
"@Override\n public void setUserId(long userId) {\n _gameScore.setUserId(userId);\n }",
"@Override\n\tpublic void setUserUuid(java.lang.String userUuid) {\n\t\t_rule.setUserUuid(userUuid);\n\t}",
"@Override\n\tpublic void setUserUuid(java.lang.String u... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test whether the given points is within the bounds of the mesh, or whether the line joining the points passes through the mesh. | public boolean contains(Vec3 pt1, Vec3 pt2) {
if ( contains(pt1) ) return true;
if ( contains(pt2) ) return true;
// Doesn't contain either point, but perhaps the line passes through?
// Need essentially a ray-box intersection test
... | [
"public boolean isPointInLine(Coordinates point, Coordinates linePointA, Coordinates linePointB);",
"boolean CheckPoint_InRectange(FloatPointItem point, float x1, float y1, float x2, float y2) {\n float maxX, minX, maxY, minY;\n if (x1 > x2) {\n maxX = x1;\n minX = x2;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checker for the "FeatureInstalled9" variable. | public void checkFeatureInstalled9(String x) throws SnmpStatusException; | [
"public void checkFeatureInstalled7(String x) throws SnmpStatusException;",
"public void checkFeatureInstalled6(String x) throws SnmpStatusException;",
"public void checkFeatureInstalled10(String x) throws SnmpStatusException;",
"public void checkFeatureInstalled8(String x) throws SnmpStatusException;",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the preferred horizontal offset | public int getPreferredHorizontalOffset() {
return preferredHorizontalOffset;
} | [
"public static int offset_min() {\n return (56 / 8);\n }",
"int getHorizontalPosition();",
"private double getHorizontalOffset(final int hpos) {\n double dx;\n switch(hpos) {\n case LEFT:\n dx = 0;\n break;\n case CENTER_H:\n dx = -bbox.getWidth() * 0.5;\n b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allow the subclass to write table specific metadata | protected void writeTableProperties(ObjectOutputStream out) throws AxionException {
} | [
"com.scalar.db.rpc.TableMetadata getTableMetadata();",
"public interface TableWriter {\n \n /** Sets the details of a column. Fails if col is bigger than the existing internal\n * array; use setColumnMetadata(array) to set the size */\n// public void setColumnMetadata(int col, ColumnInfo columnInfo) throw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the profiler is enabled globally, or false otherwise | boolean profilerEnabled(); | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isProfilerEnabled();",
"boolean isProfiling();",
"boolean isHardwareProfilingOn();",
"public boolean isInProfilingMode() {\r\n return pipeline.isInProfilingMode();\r\n }",
"public boolean isAgentProfiling() {\n return this.a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A frame (box) using ASCII and/or UTF characters. | public interface TA_Frame extends IsTextArt {
/**
* Returns a string containing the input collection with the requested frame.
* @param coll input collection
* @param mode frame mode
* @return string with the framed collection
*/
default String addFrameString(Collection<StrBuilder> coll, int mode){... | [
"Frame createFrame();",
"public static void go(){\n \tJFrame f = new JFrame(\"English to Pig Latin Translator\");\n \tf.setSize(600,400);\n \tContainer content = f.getContentPane();\n \tcontent.setBackground(Color.white);\n \tcontent.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS)); \n \tcontent.add(new Window... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether to show a spinner while refreshing this shortcut. | boolean isSpinnerWhileRefreshing(); | [
"public void showRefreshIcon() {\r\n runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n if (localStorage.getFlagValue(LocalStorage.NEW_GLANCES_POSTED)) {\r\n refreshButton.setVisibility(View.VISIBLE);\r\n\r\n if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allocates a new L2CLanguageTranslator. | public L2CLanguageTranslator ( )
{
super ( ) ;
} | [
"Language createLanguage();",
"public Locale create() {\n BaseLocale base = _locbld.getBaseLocale();\n LocaleExtensions ext = _locbld.getLocaleExtensions();\n return Locale.getInstance(base.getLanguage(), base.getScript(), base.getRegion(), base.getVariant(), ext);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes the specified external dictionary. | public void deleteExternalDictionary(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.DeleteClusterExternalDictionaryRequest request,
io.grpc.stub.StreamObserver<yandex.cloud.api.operation.OperationOuterClass.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(ge... | [
"public yandex.cloud.api.operation.OperationOuterClass.Operation deleteExternalDictionary(yandex.cloud.api.mdb.clickhouse.v1.ClusterServiceOuterClass.DeleteClusterExternalDictionaryRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteExternalDictionaryMethod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Close connections to the data store. | public void closeConnections() {
LOG.debug("Entering closeConnections()");
for (String tableName : HBasePersistenceUtil.getTsdrHBaseTables()) {
dataStoreFactory.getHBaseDataStore().closeConnection(tableName);
}
LOG.debug("Exiting closeConnections()");
return;
} | [
"public void closeConnections() {\n for (Object i : connections.keySet().toArray()) {\n connections.get(i).closeConnection();\n }\n\n }",
"@Override\r\n @SuppressWarnings(\"empty-statement\")\r\n public void close()\r\n {\r\n curDb_ = null;\r\n curConnection_ = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use TopTracks.newBuilder() to construct. | private TopTracks(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"Metadata.TopTracksOrBuilder getTopTrackOrBuilder(\n int index);",
"public Metadata.TopTracksOrBuilder getTopTrackOrBuilder(\n int index) {\n return topTrack_.get(index);\n }",
"Metadata.TopTracks getTopTrack(int index);",
"private String[] getTopThreeTracks(int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Grouping of ManagedInstanceKey update stages. | interface UpdateStages {
/**
* The stage of the managedinstancekey update allowing to specify Uri.
*/
interface WithUri {
/**
* Specifies uri.
* @param uri The URI of the key. If the ServerKeyType is AzureKeyVault, then the URI is required
... | [
"public void auditTrailMsgkeyUpdate()\n\t\t{\n\t\t}",
"interface UpdateStages {\n /**\n * The stage of the servicefabric update allowing to specify EnvironmentId.\n */\n interface WithEnvironmentId {\n /**\n * Specifies environmentId.\n * @param env... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the string for forward mapping for error | public String getErrorActionForwardString()
{
return errorActionForwardString;
} | [
"String getErrorsString();",
"protected abstract String errorInfo();",
"java.lang.String getErr();",
"java.lang.String getERROR();",
"public String getError(String key) {\n\t\treturn errors.get(key);\n\t}",
"public abstract String getErrorBrief();",
"@Override\n protected void initErrorLookup() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a non null character mask for all valid indices. | ICharacterMask getCharacterMask(int index); | [
"public char getMaskingChar() { return this.mask;}",
"public static char[] getMinimalCharacterSet(){\n List<Character> validChars = new LinkedList<>();\n for(char c='a'; c<='z'; c++) validChars.add(c);\n for(char c='A'; c<='Z'; c++) validChars.add(c);\n for(char c='0'; c<='9'; c++) val... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Discretization of a stochastic process over given time interval | public interface Discretization {
/**
* Drift component discretization
*
* @param process Stochastic process
* @param t Time
* @param x Position
* @param dt Time step
* @return Drift value step
*/
DoubleMatrix1D drift(StochasticProcess process, double t, DoubleMatrix1D x,... | [
"private void doPrecalculateProcess() {\n \t\tif (discreteProcess != null && discreteProcess.length != 0)\treturn;\n \n \t\tfinal int numberOfPaths\t\t\t= this.getNumberOfPaths();\n \t\tfinal int numberOfFactors\t\t= this.getNumberOfFactors();\n \t\tfinal int numberOfComponents\t= this.getNumberOfComponents();\n \n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
escaped chars (group1) escapes pipe characters in tables | protected String escapePipes(String input) {
//See javadoc for handleWeirdReplacementBug,
//regarding how many backslashes to use in the replacement
String replacement = "\\\\{group1}";
return RegexUtil.loopRegex(input, pipePattern, replacement);
} | [
"private String addPipe(String s) {\n\t\t int padding = 30 - s.length();\n\t\t for(int i = 0; i < padding; i++) {\n\t\t s += ' ';\n }\n s += \"|\\n\";\n\t\t return s;\n }",
"private void handleEscapedCharacter(StringBuilder sb, Collection<Node> nodes, boolean groupRef... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the locations of the fighters | public void updateLocation(Fighter f1, Fighter f2) {
int temp=0;
if (f1.getCurrentMove().equals("run_towards")) {
f1.setLocation(f1.getLocation() + ((int) (f1.getSpeed()+0.5) * 5));
} else if (f1.getCurrentMove().equals("walk_towards")) {
f1.setLocation(f1.getLocation() + ((int) (f1.getSpeed()+... | [
"private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}",
"public void updateLocation();",
"public void updateGoalPositions() {\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.qu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds new DataSources for this DataTrack to the end of the current list. If other data sources already exists for the same organism/genome build the new sources will be treated as "mirrors" (backup data source). However, new sources which are in every way identical to existing sources will not be added | public void addDataSources(Collection<DataSource> sources) {
if (containsDataSource(sources)) { // there are duplicates so trim the collection
removeIdenticalDataSources(sources);
}
datasources.addAll(sources);
} | [
"public void addDataSources(final Object dataSources[]) {\r\n\r\n\t\tif (dataSources == null)\r\n\t\t\treturn;\r\n\r\n\t\tif (IMMEDIATE_ADDREMOVE_DELAY == 0) {\r\n\t\t\treallyAddDataSources(dataSources);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// In order to save time, we cache entries to be added and process them\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the storage capacity for the SQL Azure Database Elastic Pool. | @Beta(Beta.SinceVersion.V1_7_0)
SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withStorageCapacity(SqlElasticPoolPremiumSorage storageCapacity); | [
"@Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withStorageCapacity(SqlElasticPoolStandardStorage storageCapacity);",
"public void setCapacity(int capacity);",
"public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the mth_count. Creation Date Wed Aug 31 19:08:02 CDT 2005 | public java.lang.String getMth_count() {
return mth_count;
} | [
"int getZiMoCountCount();",
"int getZiMoCount(int index);",
"public void setMth_count(final java.lang.String mth_count) {\n\t\tthis.mth_count = mth_count;\n\t}",
"int getCount510KCount();",
"int getTCount();",
"public int getMMSCount(){\r\n\t\t//if(_debug) Log.v(_context, \"NotificationViewFlipper.getMMSC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ returns true if str in ["+","","","/"] false otherwise | public boolean isOperator(String str)
{
if(str.equals("+") || str.equals("-") || str.equals("*") || str.equals("/"))
return true;
else
return false;
} | [
"public static boolean isOperator(String s){ \n if(s.equals(\"*\") || s.equals(\"-\") || s.equals(\"/\") || s.equals(\"+\")){\n return true; \n }\n return false; \n }",
"public boolean checkIfNormalNum(String str){\n\t\tif(!ifHaveNum(str))\n\t\t\treturn false;\n\t\tstr = removeB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a list of the named input ports for this component. | public final String[] getInputs() {
Log.v(getName(), "getInputPorts");
return mInputs;
} | [
"public List<SimulinkBlock> getInputPorts() {\r\n\t\treturn inputPorts;\r\n\t}",
"public String[] getPortNames() {\n SerialPort[] serialports = SerialPort.getCommPorts();\n String[] portNames = new String[serialports.length];\n int length = serialports.length;\n for (int i = 0; i < len... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Init() method actually sets up the sandbox and invokes the command inside it. Returns 1 on success, 0 on failure. | public int Init() {
try {
process = Runtime.getRuntime().exec(command);
} catch (Exception e) {
return 0;
}
if (process == null) {
return 0;
}
childStdin = new OutputStreamWatcher(process.getOutputStream());
childStdout = new InputStreamWatcher(process.getInputStream());
childStderr = new InputSt... | [
"private void invokeInitBlock(PythonFacet init, String env) {\n\t\tString body=init.getBody();\n\t\tPythonInterpreter environment = registerEnv(env);\n\t\tif (body !=null && !body.trim().equals(\"\")) {\n\t\t\tenvironment.exec(body);\n\t\t}\n\n\t}",
"@Test\n public void testConstructor() {\n interpreterInstan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a naming exception is thrown while attempting to fire a NamingEvent. | void namingExceptionThrown(NamingExceptionEvent evt) throws RemoteException; | [
"@Override\n public void renameFailed() {\n unbindSpecifiedService(rename_service_connection);\n DebugLog.w(\"File rename failed.\");\n }",
"public ClassicNameTakenException() {\n }",
"public ReservedNameException(String message, String name){\r\n super(message);\r\n this.na... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Given a defined path, run through its figure and add the whole path to our field shapes | private void addPath(Path2D.Double path) {
path.moveTo(xC[0], yC[0]);
for(int i = 0; i < xC.length; i++) {
path.lineTo(xC[i], yC[i]);
}
path.closePath();
shapes.add(path);
} | [
"private static void createPath(Path path) {\r\n\t\tString tempStr = \"\";\r\n\t\tint finished = 1;\r\n\t\tint tempId = -1;\r\n\t\tList<GeoCoordinate> polyline = new ArrayList<GeoCoordinate>();\r\n\t\tList<Place> placeList = new ArrayList<Place>();\r\n\t\tContainerNII pathNii = new ContainerNII();\r\n\t\tPlace plac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If object implements EOKeyValueCodingAdditions, this method invokes valuesForKeys on object. Otherwise it invokes EOKeyValueCodingAdditions.DefaultImplementation's valuesForKeys method with object as the object on which to operate. | public static com.webobjects.foundation.NSDictionary valuesForKeys(java.lang.Object object, com.webobjects.foundation.NSArray keys){
return null; //TODO codavaj!!
} | [
"public static com.webobjects.foundation.NSDictionary valuesForKeysWithMapping(java.lang.Object object, com.webobjects.foundation.NSDictionary mapping){\n return null; //TODO codavaj!!\n }",
"abstract com.webobjects.foundation.NSDictionary valuesForKeysWithMapping(com.webobjects.foundation.NSDic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a single employee's details to the client | public static void showEmployee(RequestHandler handler, Employee e) {
StringBuilder sb;
sb = new StringBuilder();
sb.append("\n*****************************************");
sb.append("\nEmployee ID: " + e.getId());
sb.append("\n Name: " + e.getName());
sb.append("\n Email: " + e.getEmail());
sb.... | [
"@POST\n @Consumes( { \"application/xml\", \"text/xml\", \"application/json\" })\n public Response createEmployee(Employee employee) {\n final int staffNo = this.employeeMgr.createEmployee(employee);\n final URI location = createdLocation(staffNo);\n return Response.created(location).buil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pull16 pops two bytes from the stack | public int pull16(){
int lo = this.pull();
int hi = this.pull();
return hi<<8 | lo;
} | [
"private int pull16 ()\r\n {\r\n int result;\r\n SP++;\r\n result = mem.MemRead(SP);\r\n SP++;\r\n result = (result << 8) + mem.MemRead(SP);\r\n return (result);\r\n }",
"private byte popByte()\n {\n return memory[sp--];\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method creates the Transform Points of a Graphic object given a Rectangle representing it's boundaries | private void createTransformPoints(Rectangle bnds, GraphicObject curr) {
double degreesAngle, radiansAngle;
Rectangle novo = bnds;
this.transformPoints = new VirtualGroup();
degreesAngle = curr.getRotation();
/** If the object is rotated, we need to rotate i back to the angle ... | [
"void createRectangles();",
"private void createPoints() {\n \t\n \tvertices[0] = ( Vector.K.scale(radius));\n vertices[1] = (new Rotation(0, Math.toRadians(90), Math.toRadians(9... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
deprecated; instead use: AcUspsIntl615ReportRowVoTools.DestinationAirportCodeComparator | public static JwComparator<AcUspsIntl615ReportRowVo> getDestinationAirportCodeComparator()
{
return AcUspsIntl615ReportRowVoTools.instance.getDestinationAirportCodeComparator();
} | [
"public static JwComparator<AcGlobalUspsDomesticDemand> getDestinationAirportCodeComparator()\n {\n return AcGlobalUspsDomesticDemandTools.instance.getDestinationAirportCodeComparator();\n }",
"public static JwComparator<AcUspsDomesticRouteStatusFlight> getDestinationAirportCodeComparator()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a pair of the category id and the category page id from the view pager's page position. The category page id is numbered in each category. And the view page position is the position of the current shown page in the view pager which contains all pages of all categories. | public Pair<Integer, Integer> getCategoryIdAndPageIdFromPagePosition(final int position) {
int sum = 0;
for (final CategoryProperties properties : mShownCategories) {
final int temp = sum;
sum += properties.mPageCount;
if (sum > position) {
return new ... | [
"public int getPageIdFromCategoryId(final int categoryId) {\n final int lastSavedCategoryPageId =\n Settings.readLastTypedEmojiCategoryPageId(mPrefs, categoryId);\n int sum = 0;\n for (int i = 0; i < mShownCategories.size(); ++i) {\n final CategoryProperties props = mS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
METHOD: getVideoList Implements: GET /video Returns the list of videos added to the server | @RequestMapping (value="/video", method=RequestMethod.GET)
public @ResponseBody Collection<Video> getVideoList() {
logger.info("--> getVideoList() <--");
return videos.values();
} | [
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.GET)\n\tpublic @ResponseBody Collection<Video> getVideoList(){\n\t\tCollection<Video> bla = videos.getVideos();\n\t\treturn bla;\n\t}",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.GET)\n\tpublic @ResponseBody Colle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the row identifier for this key. If the row identifier is nonnull then it will be appended to the value of the key in order to establish the key's uniqueness. A reference to the RID object is kept in this key, so subsequent changes to the RID object will be reflected in the value of the key. | void setRID(RID rid); | [
"@Override\r\n\tpublic void setRowKey(Object arg0) {\n\t\tthis.rowId = (Long) arg0;\r\n\t}",
"public void setRowId(Integer rowId) {\n this.rowId = rowId;\n }",
"public void setRowId(java.lang.String rowId) {\n this.rowId = rowId;\n }",
"public void setRowid (java.lang.Integer rowid) {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use QueryGetCertificateRequest.newBuilder() to construct. | private QueryGetCertificateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public yandex.cloud.api.organizationmanager.v1.saml.CertificateOuterClass.Certificate get(yandex.cloud.api.organizationmanager.v1.saml.CertificateServiceOuterClass.GetCertificateRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetMethod(), getCallOptions(), r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the list of density objects for 1 degree cells for the given type and key | public List<CellDensityDTO> get1DegCellDensities(EntityType type, String key) throws ServiceException; | [
"public List<CellDensityDTO> get0Point1DegCellDensities(EntityType type, List<String> keys, int cellId) throws ServiceException;",
"public List<CellDensityDTO> get1DegCellDensities(EntityType type, List<String> keys, Set<Integer> cellIds) throws ServiceException;",
"public List<CellDensityDTO> get0Point1DegCell... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
///////////////// Util, get object from this class ////////////////////////// get list of character in the input location. | public ArrayList<Character> getListCharacterInLocation(String inputLocation) {
ArrayList<Character> listOutput = new ArrayList<Character>();
for (Character curCharacter : listCharacter)
{
if (curCharacter.getLocation() == inputLocation)
listOutput.add(curCharacter);
}
return listOutput;
} | [
"String getListChars() throws Exception;",
"ArrayList<BasicCharacterModel> getAllCharacters();",
"private void listaChar(){\n ArrayList<Caracter> lista = new ArrayList<>(); //lista de caracteres encontrados\n int sizeEntrada,ascii,line,column;\n char caracter;\n sizeEntrada = this.en... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Starts tracking the users current location and changes of locations. If the users hasn't given permission for finding the location then the user is prompted when this method is called | private void startTrackingRoute(){
if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){
//Starts up alert dialog for getting permission
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUE... | [
"private void startCurrLocation()\n {\n if (Build.VERSION.SDK_INT >= 23) {\n String[] perms = {Manifest.permission.ACCESS_FINE_LOCATION};\n if (EasyPermissions.hasPermissions(this, perms)) {\n driverMeterPresenter.getCurrentLocation();\n } else {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column report_field_schema.field_id | public Integer getFieldId() {
return fieldId;
} | [
"String findFieldSchemaIdById(@DatasetId Long datasetId, String idField);",
"public String getFieldId() {\n\t\treturn fieldId;\n\t}",
"public Integer getFieldId() {\r\n\t\treturn fieldId;\r\n\t}",
"public int getFieldId()\n {\n return fieldId;\n }",
"private String sqlSelectFieldId(GoodwillSche... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the saved Database settings | static String[] getSavedDbSettings() {
File path = new File("save" + File.separatorChar + "dbSettings.mpy");
if (path.exists()) {
try {
FileInputStream file = new FileInputStream(path);
ObjectInputStream dbSettings = new ObjectInputStream(file);
String[] dbSet = (String[]) dbSettings.readObject();
... | [
"public static String getConfigDatabase() {\n\t return getConfig() + \"/db\";\n }",
"public List<OptionSetting<?>> getSavedSettings()\n\t{\n\t\treturn Collections.unmodifiableList(_settings);\n\t}",
"public String getConfigToSave() {\n return configToSave;\n }",
"public static ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets DAOFactory Properties. | private void setDAOFactoryProperties(Node childNode) throws
ParserConfigurationException, SAXException, IOException
{
setAttributesOfDAOFactory(childNode);
NodeList childlist = childNode.getChildNodes();
for (int m = 0; m < childlist.getLength(); m++)
{
Node childrenDAOFactory = childlist.item(m);
... | [
"public void setFactoryDAO(DAOFactory factoryDAO) {\n\t\tthis.factoryDAO = factoryDAO;\n\t}",
"private void setDefaultDAOProperties(Node childrenDAOFactory)\r\n\t{\r\n\t\tNodeList childDefaultDAO = childrenDAOFactory.getChildNodes();\r\n\t\tfor (int l = 0; l < childDefaultDAO.getLength(); l++)\r\n\t\t{\r\n\t\t\tN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form ReportJFrame | public ReportJFrame() {
initComponents();
} | [
"public frmReport() {\n initComponents();\n this.setExtendedState(this.getExtendedState()|JFrame.MAXIMIZED_BOTH);\n //jDesktopPane1.setUI(new MotifDesktopPaneUI());\n// JRDataSource dataSource = null;\n//\n// Map parameters = new HashMap();\n// parameters.put(\"id\", 42);\n//\n// ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an archive store for transparent read/write access to the directory referenced by the given path. | public static ArchiveStore directory(Path path) {
return new DirectoryStore(requireNonNull(path));
} | [
"public static ArchiveStore directory(String path) {\n return directory(Paths.get(path));\n }",
"public static ArchiveStore directory(File path) {\n return directory(path.toPath());\n }",
"public static ArchiveStore zip(final File path) {\n requireNonNull(path);\n return new Ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use CosiSign.newBuilder() to construct. | private CosiSign(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private CosiSignature(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\tsuper(builder);\n\t\t}",
"private SignInit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private SimpleSignTx(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the records that are displayed | public void update(){
this.loadRecords();
} | [
"public void updateContent(){\r\n\t\tthis.initRecords();\r\n\t\tlist.show(records);\r\n\t}",
"public static void refreshRecords() {\r\n \tObservableList<AbstractVehicle> currentFleet = Model.getCurrentInstance().getValues();\r\n \ttry (Connection con = ConnectionSetup.getConnection(DB_NAME);\r\n\t\t\t\tStat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method to recycle all players when game has ended to prevent keeping attributes from previous game. | public void recyclePlayerCars() {
for (Player p : players.values())
p.recycleCar();
} | [
"public void refreshPlayers() {\n\t\t\t\tloadPlayers();\n\t\t\t}",
"public void resetPlayers() {\n Player curPlayer;\n for(int i = 0; i < players.size(); i++){\n curPlayer = players.peek();\n curPlayer.resetRole();\n curPlayer.setLocation(board.getSet(\"trailer\"));\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
logic of expire date after this date you can not access this apk | private void expireDate() {
try {
int year;
int month;
int day;
final Calendar c = Calendar.getInstance();
year = c.get(Calendar.YEAR);
month = c.get(Calendar.MONTH);
day = c.get(Calendar.DAY_OF_MONTH);
String chDt... | [
"long getExpirationDate();",
"int getDecredExpiry();",
"Date getExpiredDate();",
"com.google.type.Date getExpireDate();",
"long getExpiration();",
"public abstract void calculateExpirationDate();",
"boolean hasDecredExpiry();",
"public Date getExpiredDate();",
"java.lang.String getExpirationDate();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Regression testing: SelectedItems contains null after removing unselected grandParent of selectedItem different problem in my own implementation: old selected still selected! Actually, no: accidentally, the value is the same, not the item. The selection is moved to the item following the removed grandParent which feels... | @Test
public void testSelectedItemsOnRemoveGrandParentOfSelectedItem() {
TreeItem grandParent = createBranch("grandParent", true);
TreeItem childWithSelection = createBranch("selected", true);
grandParent.getChildren().add(childWithSelection);
TreeItem selected = (TreeItem) chil... | [
"@Test\r\n public void testSelectedItemsOnRemoveGrandParentOfSelectedItemIfLast_38334() {\r\n TreeItem grandParent = createBranch(\"grandParent\", true);\r\n TreeItem childWithSelection = createBranch(\"selected\", true);\r\n grandParent.getChildren().add(childWithSelection);\r\n Tree... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a dot file at dest that contains a digraph for the structure of type | public static void drawToDot(final String dest, final AnnotatedTypeMirror type) {
drawToDot(new File(dest), type);
} | [
"public static void drawToDot(final File dest, final AnnotatedTypeMirror type) {\n final Drawing drawer = new Drawing(\"Type\", type);\n drawer.draw(dest);\n }",
"public static void drawToPng(final File dest, final AnnotatedTypeMirror type) {\n try {\n final File dotFile = File.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Establece modoDios de Bomberman. | public void setModoDios(boolean b){
this.modoDios = b;
} | [
"public void extraerInfoBD(){\n\t\tIRepuestoManager repuestoManager = new RepuestoManager();\r\n\t\ttry {\r\n\t\t\tlistaNombreManosDeObras = repuestoManager.listaNombreRepuestos(); // obtengo todas las manos de obras\r\n\t\t\tinicializar_jTextFieldNombre(listaNombreManosDeObras.iterator()); // completo con la lista... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests resizing a transparent image. | public void testScaleTransparent() throws Exception {
Simapi simapi = new Simapi();
BufferedImage result;
BufferedImage imgBull = Simapi.read(getClass().getResource("bull.jpg"));
result = simapi.resize(imgBull, 500, 500, Simapi.COLOR_TRANSPARENT, Simapi.POS_CENTER, true);... | [
"private static void testREsizeImage() throws IOException {\n\t\tresizeImage(\n\t\t\tnew File(\"/opt/bitnami/files/img/contabilidad.jpg\"),\n\t\t\tnew File(\"/opt/bitnami/files/img/contabilidad_100x100.jpg\"),\n\t\t\t\"jpg\", 100, 100, UtilImage.FIT_BOTH);\n\t}",
"public void testResize()\n {\n cover.re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Restart a targeted node. Restart a targeted node of a Hybrid AKS cluster. | void restartNode(HybridAksClusterRestartNodeParameters hybridAksClusterRestartNodeParameters); | [
"void restartNode(HybridAksClusterRestartNodeParameters hybridAksClusterRestartNodeParameters, Context context);",
"void restart(String resourceGroupName, String resourceName, String replicaName, Context context);",
"void restart(String resourceGroupName, String resourceName, String replicaName);",
"public Re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the list of all films associated with provided actors id | List<Film> getByCast(int actorId); | [
"public static List<List<String>> getFilmography(String actorID) throws IOException{\n\t\t\n\t\tList<List<String>> filmography = new ArrayList<List<String>>();\n\t\t\n\t\tURL url = new URL(\"https://api.themoviedb.org/3/person/\" + actorID + \"/movie_credits?api_key=cc10b91ab6be4842679242b80c13bb31&language=en-US\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: POS_ERR_DISC | public java.lang.String getPosErrDisc () {
return posErrDisc;
} | [
"public void setPosErrDisc (java.lang.String posErrDisc) {\r\n\t\tthis.posErrDisc = posErrDisc;\r\n\t}",
"public java.lang.String getErrDisc () {\r\n\t\treturn errDisc;\r\n\t}",
"public String getErrNo() {\n return errNo;\n }",
"public String getError() {\n return _cell.getE();\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of PermissionBean | public PermissionBean() {
} | [
"public Permission() {}",
"public RolePermissionManagedBean() {\n\n }",
"PermissionType createPermissionType();",
"public PortalPermission createPermission(PortalPermission permission);",
"public PermissionsDao() {\n super(Permissions.PERMISSIONS, lorgNew.tables.pojos.Permissions.class);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
filtercopy everything but the binaries | protected boolean copyNonBinaries(BuildSpec buildSpec, File distDir, File targDir) {
String excludes = Builder.BINARY_SOURCE_PATTERN;
String includes = Builder.ALL_PATTERN;
return copyFiles(distDir, targDir, includes, excludes, FILTER_ON);
} | [
"protected java.lang.Object batchFilesFilter () { throw new RuntimeException(); }",
"private void copy(File source, File target) throws IOException {\n if (source.isDirectory()) {\n FileUtils.copyDirectory(source, target, filter);\n } else {\n if (filter.accept(source)) {\n FileUtils... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
///////////////////////////////////////////////////////////////////// USING TEMPLATE ///////////////////////////////////////////////////////////////////// Loads a unique PersonnelBean pObject from a template one giving a c | public PersonnelBean loadUniqueUsingTemplate(PersonnelBean pObject) throws SQLException
{
PersonnelBean[] pReturn = loadUsingTemplate(pObject);
if (pReturn.length == 0)
return null;
if (pReturn.length > 1)
throw new SQLException("More than one element !!");... | [
"public PersonnelBean getPersonnelBean(PersonnelBean pObject) throws SQLException\r\n {\r\n PersonnelBean other = PersonnelManager.getInstance().createPersonnelBean();\r\n other.setPersonnelid(pObject.getChangebyid());\r\n return PersonnelManager.getInstance().loadUniqueUsingTemplate(other);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called with a job is started. This is the first time that we are notified of a new jobId for a launched job. Hence this method binds the jobId to the DAGNode and pushes a status event. | @Override
public void jobStartedNotification(String scriptId, String assignedJobId) {
log.info("jobStartedNotification - jobId " + assignedJobId + ", jobGraph:\n" + getJobGraph());
// for each job in the graph, check if the stats for a job with this name is found. If so, look
// up it's scope and bind th... | [
"@Override\n public void onStepStarting(FlowStep flowStep) {\n //getting Hadoop job client\n HadoopStepStats stats = (HadoopStepStats)((HadoopFlowStep)flowStep).getFlowStepStats();\n String assignedJobId = stats.getJobID();\n String jobName = flowStep.getName();\n JobClient jc = stats.getJobClient()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
code to update the delivery info for delivered parcel | public int updateDeliveryInfoDelivered(int parcel_id, int pod_id) {
mSQLiteDatabase = lOpenHelper.getWritableDatabase();
//Log.i("id", "" + parcel_id);
//Log.i("pod_id", "" + pod_id);
ContentValues values = new ContentValues();
values.put(DataUtils.POD_ROW_ID, pod_id);
v... | [
"Update withDeliveryPackage(DeliveryPackageInformation deliveryPackage);",
"public void deliverPO(DeliveryInfo delInfo) throws SPECjAppServerException, RemoteException;",
"DeliveryType update(DeliveryType deliveryType);",
"@Override\n public void updateDeliveryMan() {\n recreate();\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populate the message type table. | protected void populateMsgTypeTable() {
List<TableColumnData> columnNames = new ArrayList<TableColumnData>();
TableColumnData tcd = new TableColumnData("Message Type", 150);
columnNames.add(tcd);
tcd = new TableColumnData("Message Title", 250);
columnNames.add(tcd);
msgT... | [
"private void populateMsgTypeTableData() {\n List<MessageType> messageTypeList = null;\n try {\n messageTypeList = this.retrieveMessageTypes();\n } catch (Exception e) {\n statusHandler\n .error(\"Error retrieving message type data from the database: \",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This returns the user's gridScreen object. | public GridScreen gridScreen() {return gridScreen;} | [
"public Screen getCurrentScreen();",
"ScreenBase getCurrentScreen();",
"public Screen getScreen() {\n\t\treturn screen;\n\t}",
"public static Screen getScreen()\n\t{\n\t\tif(instance == null)\n\t\t\tinstance = new Screen();\n\t\treturn instance;\n\t}",
"public Screen getScreen() {\n return screen;\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ select from marketrankings mr, programmeversions pv where mr.publishversion > pv.exportversion and mr.updateversion > pv.exportversion | private static List<MarketRanking> filterMarketRankingsForProgrammeExport(List<MarketRanking> marketRankings,
ProgrammeVersion version) {
String versionStr = version.getExportVersion();
if (versionStr == null || versionStr.equals(ProgrammeConstants.DEFAULT_VERSION) || !versionStr.contains("... | [
"public QuarterPlanning[] findWhereProgramVersionEquals(String programVersion) throws QuarterPlanningDaoException;",
"public void compareSelectedVersions(List<String> agbversion1, List<String> agbversion2);",
"public LearningResultHasActivity[] findWhereVersionEquals(String version) throws LearningResultHasActi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the global context path, which will be prepended to the path. This way an application can retrieve the context path from a configuration and set it once. | public static void setContextPath(final String path) {
if (contextPath != null) {
throw new GeneralException("The href context path can be set only once.");
}
contextPath = path;
} | [
"public void setContextPath(String contextPath);",
"public final void setContextPath(final String path){\n this.contextPath = path;\n }",
"public void setContextPath(String conPath){\n\t\tcontextPath=conPath;\n\t}",
"private void setContextPath(String prefix) {\n if (prefix.isEmpty() || (pref... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Item amount including the tax, in minor units. | @ApiModelProperty(value = "Item amount including the tax, in minor units.")
@JsonProperty(JSON_PROPERTY_AMOUNT_INCLUDING_TAX)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getAmountIncludingTax() {
return amountIncludingTax;
} | [
"public java.math.BigDecimal getITEM_AMOUNT() {\r\n return ITEM_AMOUNT;\r\n }",
"BigDecimal getTaxAmount();",
"double getTaxAmount();",
"public double calcTax() {\n return 2.10 * (value / 1000);\n }",
"public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Referenced classes of package com.shazam.android.activities.streaming: StreamingProviderUpsellDialogActivity | private final class <init>
implements android.view.iderUpsellDialogActivity.b
{
final StreamingProviderUpsellDialogActivity a;
public final void onClick(View view)
{
StreamingProviderUpsellDialogActivity.a(a).logEvent(view, StreamingEventFactory.createStreamingProviderUpsellCancelUserEvent());... | [
"@OnClick(R.id.media_stream)\r\n protected void onStreamClick()\r\n {\r\n if (feedItem.hasMedia())\r\n {\r\n Intent startStreamer = new Intent(this, ItemStreamer.class);\r\n\r\n startStreamer.putExtra(Config.getKeyValue(\"feed_item\"), feedItem);\r\n\r\n startAct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the property 'orgApacheFelixEventadminThreadPoolSize' | @Test
public void orgApacheFelixEventadminThreadPoolSizeTest() {
// TODO: test orgApacheFelixEventadminThreadPoolSize
} | [
"@Test\n public void launchesEventhandlerThreadpoolMaxsizeTest() {\n // TODO: test launchesEventhandlerThreadpoolMaxsize\n }",
"@Test\n public void orgApacheFelixEventadminTimeoutTest() {\n // TODO: test orgApacheFelixEventadminTimeout\n }",
"@Test\n public void orgApacheFelixEventa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
generates a maze using an Input from the client, representing the maze dimensions. the maze is compressed by an original compressing algorithm the compressed maze is written to the client. | @Override
public void handleClient(InputStream inputStream, OutputStream outputStream)
{
try
{
lock.lock();
mazeGenerator = AMazeGenerator.generateType(mazeGeneratorString);
//AMazeGenerator mazeGenerator = new MyMazeGenerator();
ObjectOutputStrea... | [
"public void saveCompressedMazeToFile(String mazeName, String fileName) throws IOException;",
"@Override\n\tpublic void generateMaze(Maze maze) {\n\t\tRandom randomInt = new Random(System.currentTimeMillis());\n\t\tmMaze = maze;\n\t\tint mazeSize = 0;\n\n\t\tArrayList<Cell> adjacentCells = new ArrayList<>();\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EDataTypeBody__Group_1_2__3" $ANTLR start "rule__EDataTypeBody__Group_1_2__3__Impl" InternalAADMParser.g:6786:1: rule__EDataTypeBody__Group_1_2__3__Impl : ( RULE_END ) ; | public final void rule__EDataTypeBody__Group_1_2__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAADMParser.g:6790:1: ( ( RULE_END ) )
// InternalAADMParser.g:6791:1: ( RULE_END )
{
// InternalAADMPar... | [
"public final void rule__EDataTypeBody__Group_1_2__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:6779:1: ( rule__EDataTypeBody__Group_1_2__3__Impl )\n // InternalAADMParser.g:6780:2: rule__EDataTypeBody__G... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Select the provided Vertice and also Select corresponding texture Vertices | public void selectModelVertice(Vertice vertice) {
Segment tmpModelSegment;
Face tmpSegmentFace;
Vertice tmpTextureVertice, tmpVertice;
for (int s = 0; s < getSegmentCount(); s++) {
tmpModelSegment = segments.get(s);
for (int f = 0; f < tmpModelSegment.getFaceCount(); f++) {
tmpSegmentFace = tmpModel... | [
"public int selectTextureVertices(float x1, float y1, float x2, float y2) {\n\t\tint selectflag = 0;\n\n\t\tSegment tmpModelSegment;\n\t\tFace tmpSegmentFace;\n\t\tVertice tmpTextureVertice, tmpVertice;\n\n\t\tfor (int s = 0; s < getSegmentCount(); s++) {\n\t\t\ttmpModelSegment = segments.get(s);\n\t\t\tfor (int f ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests adding a member type with a wrong since tag | private void xInvalidMemberType(boolean incremental) throws Exception {
//$NON-NLS-1$
IPath filePath = WORKSPACE_CLASSES_PACKAGE_A.append("InvalidMemberType.java");
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
configureExpectedProblems(IDelta.CLASS_ELEMENT_TYPE, new String[] { "3.0", "1.0",... | [
"public void test_addDefinedTag_accuracy() {\n instance.addDefinedTag(tag);\n assertTrue(\"The tag is not added properly.\", instance.containsDefinedTag(tag));\n assertTrue(\"The tag is not added properly.\", instance == tag.getOwner());\n }",
"public void test_containsDefinedTag_accuracy(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the registNo value for this JPlanMainVo. | public void setRegistNo(java.lang.String registNo) {
this.registNo = registNo;
} | [
"public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }",
"public void setRegNumber(java.lang.String regNumber) {\r\n this.regNumber = regNumber;\r\n }",
"public java.lang.String getRegistNo() {\n return registNo;\n }",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tells if a collection contains any of the elements in another collection. | public static boolean containsAny(Collection a, Collection b) {
for (Object object : b) {
if (a.contains(object))
return true;
}
return false;
} | [
"public boolean containsAll(Collection<E> c);",
"boolean containsAll(Collection<?> c);",
"public static boolean anyValuesInCommon(Collection c1, Collection c2)\n {\n // Let's always iterate over smaller collection:\n if (c1.size() > c2.size()) {\n Collection tmp = c1;\n c1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Check stock symbol for length, type of characters | private boolean isValidStockSymbol(String s){
Pattern p = Pattern.compile("[A-Z0-9.]{0,8}");
Matcher m = p.matcher(s);
return m.matches();
} | [
"static private boolean checkStockStringValid(String s) {\n\t\tboolean bRet = false;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif (Character.isDigit(s.charAt(i)) || Character.isAlphabetic(s.charAt(i))) {\n\t\t\t\tbRet = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn bRet;\n\t}",
"private static bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Offer. | public Offer(){} | [
"public Offer(){\r\n \r\n }",
"@NotNull public static OfferCatalog.Builder offerCatalog() { return new OfferCatalog.Builder(new HashMap<String,Object>()); }",
"private Offer(Builder builder) {\n super(builder);\n }",
"public void setOffer(Offer offer) {\n this.offer = offer;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que indica si 2 archivos comparten palabras | public boolean compartenPalabrasComunes(GeneradorDocumento archivo){
return !this.palabrasLongitudSiete.interseccion(archivo.palabrasLongitudSiete).esVacia();
} | [
"private static void Ultimocommitpal(File slee1, File slee2) throws IOException {\n\t\tString s1;\n\t\tString s2;\n\t\tString s3;\n\t\tString s4;\n\t\tint pal_igual = 0;\n\t\tBufferedReader br1 = new BufferedReader(new FileReader(slee1));\n\t\ts1=br1.readLine();\n\t\tint numtokens1 =0;\n\t\tStringTokenizer st =new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears all loaded configurations. | static void emptyConfigurations() {
configurations.clear();
} | [
"private void clearAllLaunchConfigurations() {\n\t\tif (fLaunchConfigurationTypes != null) {\n\t\t\tfLaunchConfigurationTypes.clear();\n\t\t}\n\t\tif (fLaunchConfigurationIndex != null) {\n\t\t\tfLaunchConfigurationIndex.clear();\n\t\t}\n\t}",
"public static void clearConfig() {\n\t\tgameConfig.clear();\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the array list of the rounded rects | public List<RoundedRectangle> getRoundedRects() {
return roundedRects;
} | [
"public Rectangle[][] getRects() {\n Rectangle[][] bubblesRects = new Rectangle[10][18];//recatngle for every bubble\r\n for (int i = 0; i < bubblesRects.length; i++) {//go through each one\r\n for (int j = 0; j < bubblesRects[i].length; j++) {\r\n if (bubbles[i][j] != 0) {//... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Split date String format: yyyy/MM/dd to a list contains [year, month, day] | public static List<Integer> splitDate(String dateStr) {
List<Integer> listDate = new ArrayList<>();
String[] arrDateStr = dateStr.split("/");
for (int i = 0; i < arrDateStr.length; i++) {
listDate.add(Integer.parseInt(arrDateStr[i]));
}
return listDate;
} | [
"static ArrayList splitDate(String date){\n Locale locale = Locale.getDefault();\n\n String[] tabDate = localDate(date).split(\" \");\n if(String.valueOf(locale).contains(\"en\")){\n return arrayDate(tabDate[0], tabDate[2], tabDate[1], tabDate[3]);\n }\n else{\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of throttle incidents since the last reset | public long getThrottleIncidentCount() {
return throttleCounter.get();
} | [
"int getNumberOfInterruptions();",
"long getTotalStartedThreadCount();",
"public long getThrottleExceptionCounter() {\n\t\treturn throttleExceptionCounter.get();\n\t}",
"private int getNumberOfBuffers() {\n if(mThrottle == 0) {\n return 1;\n }\n long deltaT = System.currentTime... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column DOWNSYSFUNDTRANS.DATELASTMAINT | public Date getDatelastmaint() {
return datelastmaint;
} | [
"public Date getDatelastmaint() {\n\t\treturn datelastmaint;\n\t}",
"public String getLastPaymentDate() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"PAYMENT_DATE\").get(0);\n\t}",
"public Date getLastModifiedDate() {\n\n\t\tDate lastTransactionDate = null;\n\t\tfor ( ErpTransactionModel transaction :... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns a list of the map entries sorted by values (instanceCount) in ASC or DESC order | private List<Map.Entry<String, Integer>> getSortedMapEntriesList(final QueryStatisticsEntity.Order order) {
List<Map.Entry<String, Integer>> sortedEntriesList;
sortedEntriesList = new ArrayList<Map.Entry<String, Integer>>(instanceCountByUrlMap.entrySet());
Collections.sort(sortedEntries... | [
"public List<String> getEntriesByScore() {\r\n // entries is TreeMap so already in lexi order and then stream sorts\r\n // in descending order by value\r\n // TODO: 11/24/19 Look at alternative way to stream (shorter)\r\n Stream<Map.Entry<String, Integer>> descStream = scores.entrySet().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method generates a list of accounts with different bank | private static List<Account> generateBankAccounts() {
List<Account> accounts = new ArrayList<Account>();
// Add each generated account into a list
AccountDataGenerator accountGenerator = new AccountDataGenerator();
accounts.add(accountGenerator.getArthurAccount());
accounts.add(accountGenerator.getHatsuneAc... | [
"private static void assignBankAccounts() {\n\t\tfor (Customer customer : customerList) {\n\t\t\t//make sure customer has no current accounts before adding serialized accounts\n\t\t\tcustomer.clearAccounts();\n\t\t\t\n\t\t\tfor (BankAccount account : accountList) {\n\t\t\t\tif (account.getCustomer().getUsername().e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the connection by setting the address, port number and other settings of the multicast UDP socket, then joins the multicast group. | boolean initialize() {
// TODO from database
String group = "224.1.1.7";
int port = 42001;
try {
socket = new MulticastSocket(port);
socket.setTimeToLive(4); // TODO magic numbers
socket.setSoTimeout(10000);
socket.setLoopbackMode(true);
... | [
"public void initialize() {\n\t\ttry {\n\t\t\tprocessName = \"P\" + receiverID;\n\t\t\tgroup = InetAddress.getByName(\"239.1.2.3\");\n\t\t\ts = new MulticastSocket(3456);\n\t\t\ts.joinGroup(group);\n\t\t\tSystem.out.println(\"Initialized - \" + processName + \" (clock time: \" + localClock + \")\");\n\t\t} catch (E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the test name, which should either be specified in the config file for the test case (not in the root properties) or be equal to the directory name of the test. | protected String getTestName(File configFile, Properties configProps) {
if (configProps.containsKey(TEST_NAME)) {
return configProps.getProperty(TEST_NAME);
} else {
int lastSlash = configFile.getAbsolutePath().lastIndexOf('/');
int secondToLastSlash = configFile.getA... | [
"public static String getTestName() {\n return testName;\n }",
"private String getTestName(Path pathTOTest) {\n\t\treturn pathTOTest.toString().substring(pathTOTest.toString().lastIndexOf(\"tests\") + 5);\n\t}",
"public static String getDirectoryTestName() {\n\n String legalName = getDirectoryS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the time required to travel this arc if moving at the given speed. | public double getTravelTime(double speed) {
return getLength() * 3600.0 / (speed * 1000.0);
} | [
"public static long travelTime(Point p1, Point p2, double speed) {\n return DoubleMath\n .roundToLong((Point.distance(p1, p2) / speed) * 60d, RoundingMode.CEILING);\n }",
"public double travelTime(double distance) {\n return distance / this.topSpeed;\n }",
"public void travelOneS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to check whether user has permission to approve transition of the item | private boolean hasApproveTransition(PSApprovableItem item) throws PSValidationException {
if(isAdmin) {
return true;
}
boolean result = true;
if(!workflowHelper.isApproveAvailableToCurrentUser(item.getId()))
{
String msg = "You do not have permission to a... | [
"public boolean isUserApproval() {\n\n if (!ACTION_UserChoice.equals(getAction())) {\n return false;\n }\n\n return (getColumn() != null) && \"IsApproved\".equals(getColumn().getColumnName());\n\n }",
"private boolean isInApprovedState(PSApprovableItem item) throws PSValidationE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the TreeNode instance that is selected in the tree. If nothing is selected, null is returned. | protected DefaultMutableTreeNode getSelectedNode() {
TreePath selPath = tree.getSelectionPath();
if(selPath != null)
return (DefaultMutableTreeNode)selPath.getLastPathComponent();
return null;
} | [
"public TreeNode getSelectedNode() {\r\n final TreeNode node = new TreeNode(selenium, getExpression());\r\n return node.getSelectedNode();\r\n }",
"public Object getSelectedTreeObject() {\r\n \t\tfinal TreePath treePath = getSelectionPath();\r\n \r\n \t\tif (treePath == null) {\r\n \t\t\treturn null;\r\n \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the value for child leaf "umtssessactsuccessrate". | public void unsetUmtsSessActSuccessRateValue() throws JNCException {
delete("umts-sess-act-success-rate");
} | [
"public void unsetLteSessActSuccessRateValue() throws JNCException {\n delete(\"lte-sess-act-success-rate\");\n }",
"public void unsetGprsSessActSuccessRateValue() throws JNCException {\n delete(\"gprs-sess-act-success-rate\");\n }",
"public void unsetUmtsAttachSuccessRateValue() throws JNCE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: com.ss.android.newmedia.eplatform.api.EPlatformApi | public interface EPlatformApi {
/* renamed from: a */
public static final C19933a f54016a = C19933a.f54017a;
/* renamed from: com.ss.android.newmedia.eplatform.api.EPlatformApi$a */
public static final class C19933a {
/* renamed from: a */
static final /* synthetic */ C19933a f54017a ... | [
"public interface API {\n @C7730f(mo20420a = \"/aweme/v1/music/collect/\")\n C1592h<BaseResponse> collectMusic(@C7744t(mo20436a = \"music_id\") String str, @C7744t(mo20436a = \"action\") int i);\n\n @C7730f(mo20420a = \"/aweme/v1/hot/music/\")\n C1592h<MusicList> getHotMusicList(@C7744t(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Configuration__Group__1__Impl" $ANTLR start "rule__Configuration__Group__2" InternalDsl.g:7616:1: rule__Configuration__Group__2 : rule__Configuration__Group__2__Impl rule__Configuration__Group__3 ; | public final void rule__Configuration__Group__2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:7620:1: ( rule__Configuration__Group__2__Impl rule__Configuration__Group__3 )
// InternalDsl.g:7621:2: rule__Configuration__Group__... | [
"public final void rule__GenConfiguration__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:22536:1: ( ( ( rule__GenConfiguration__Group_2__0 )? ) )\n // InternalDsl.g:22537:1: ( ( rule__GenConfiguratio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the value of bookingDate | public void setBookingDate(String bookingDate) {
this.bookingDate = bookingDate;
} | [
"public void setBookintDate(Date bookintDate ){\n\tthis.bookingDate = bookintDate;\n}",
"public void setArrivalDate(Date arrivalDate);",
"abstract public void setServiceAppointment(Date serviceAppointment);",
"void setDateValue(final Date dateValue);",
"public void setDateOfArrival(Date dateOfArrival);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
content of the website Instantiates a new Website. | public Website(String name, String url, String content) {
this.name = name;
this.url = url;
this.content = content;
} | [
"@NotNull public static WebSite.Builder webSite() { return new WebSite.Builder(new HashMap<String,Object>()); }",
"public HomePage openSite() {\n log(\"Opens site\");\n try {\n driver.get(YamlParser.getYamlData().getUrl());\n } catch (IOException e) {\n e.printStackTrace... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of addFortalezaEnAreaSector method, of class Area. | @Test
public void testAddFortalezaEnAreaSector() {
System.out.println("addFortalezaEnAreaSector");
Area instance = new Area();
instance.addFortalezaEnAreaSector(fortaleza);
} | [
"@Test\r\n public void testAddAccionEnAreaSector() {\r\n System.out.println(\"addAccionEnAreaSector\");\r\n Area instance = new Area();\r\n instance.addAccionEnAreaSector(ACorrectiva);\r\n instance.addAccionEnAreaSector(APreventiva);\r\n instance.addAccionEnAreaSector(AMejora);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
duplicate checking for Zone Code | public void checkZoneCode() {
LOGGER.info("Entering into checkZoneCode method");
if (zoneMasterDTList.size() > 0) {
for (ZoneMasterDataTable zoneMasterDTOBJ : zoneMasterDTList) {
if (zoneMasterDTOBJ.getZoneCode().equals(getZoneCode())) {
clearAllFields();
RequestContext.getCurrentInstance().execute... | [
"public Zone canonicalZone(){\n\t\tZone zone = new Zone();\n\t\tint zoneDataStruct1[][][] = new int[clockCount+1][clockCount+1][2];\n\t\tint zoneDataStruct2[][][] = new int[clockCount+1][clockCount+1][2];\n\t\tfor(int i=0;i<=clockCount;i++){\n\t\t\tfor(int j=0;j<=clockCount;j++){\n\t\t\t\tzoneDataStruct1[i][j][0]=t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert from JSON Object to Limit Object | public static Limit parseLimit(JSONObject data) throws JSONException {
int dailyLimit = data.getInt("DailyLimit");
int monthlyLimit = data.getInt("MonthlyLimit");
return new Limit(dailyLimit, monthlyLimit);
} | [
"@GET\n @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})\n public List<Limit> getLimits() {\n return aclServiceDao.getLimits();\n }",
"Limit createLimit();",
"private Limit newLimit(long id) {\n\t\tLimit limit = new Limit();\n\t\tlimit.setId(id);\n\t\tlimit.setTimeLimit((int) i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
8 Count repairs per year and list them in ascending order | public static void ListTotalNumberOfRepairsPerYear(DBproject esql) {
Text_1.setText("");
Output_Label.setText("");
try{
String query = String.format("SELECT date_part('year', r.repair_date) AS \"year\", COUNT(r.rid) AS \"Repair times\" FROM Repairs r GROUP BY date_part('year', r.re... | [
"ArrayList<Integer> getAllDifferentYears();",
"public void initializeYears() {\n int j, k;\n WaterPurityReport earliest = _purityReportData.get(1);\n WaterPurityReport latest = _purityReportData.get(_purityReportData.getCount());\n if (earliest != null) {\n// j = earliest.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the time value to the run method. Also set the dx and dy( increment variables) on 1. That simulate the wait effect | public void setWait(int time)
{
this.dx = 1;
this.dy = 1;
this.time = time;
//run();
} | [
"public void step() { \n\t\tif (time == period){\n\t\t\ttime = 0;\t\t\t\n\t\t}\n\t\telse {\n\t\t\ttime++;\n\t\t}\n\t}",
"public void step (double dt){ \r\n setValues();\r\n //Do Step \r\n int steps=(int)dt;\r\n for (int i=0;i<steps;i++)\r\n eval(commandUpdate); \r\n getValues(); \r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub return this.mapper.getExecutingTasks(); | @Override
public List getExecutingTask() {
return null;
} | [
"@Input\n public List<String> getTasks() {\n return getStartParameter().getTaskNames();\n }",
"public long getExecutingTaskCount();",
"@Override\n\tpublic List<Task> getTasks() {\n\t\treturn details.getPendingTasks();\n\t}",
"public List<String> getExecutingMethods()\n\t{\n\t\treturn Collections.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |