query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Base interface for the network access. Covers access to all objects in the ECM system. Covers access to the authentication provider as well. NOTE: There is one instance of this class in each user session. To be implemented with the specific ECM system. Alfresco Workdesk Copyright (c) Alfresco Software, Inc. All rights ...
public interface OwNetwork<O extends OwObject> extends OwRepository<O>, OwAuthenticationProvider { // === Object types for application objects from the ECM Adapter, see method getApplicationObject(s) /** object type for the virtual folders (Type: OwVirtualFolderObjectFactory) * @deprecated since 4.2.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SecurityMechanism extends EObject {\r\n}", "public NetworkManager() {\n okHttpClient = new OkHttpClientProvider().getClient();\n retrofit = new RetrofitInstanceProvider(new RelatedTopicTypeAdapterFactory(), okHttpClient).getRetrofitInstance();\n }", "public interface SingleAcc...
[ "0.58601534", "0.57852197", "0.57733566", "0.57077193", "0.5641226", "0.5559247", "0.55260164", "0.5508715", "0.5465689", "0.54393953", "0.54021895", "0.53911287", "0.5386646", "0.5385476", "0.5385476", "0.5371971", "0.53572935", "0.5308199", "0.5298758", "0.5298347", "0.5286...
0.5683982
4
=== custom dispatcher functions to extend the functionality for special usage like sending fax get an additional interface, e.g. interface to a workflow engine, implements a service locator
public abstract Object getInterface(String strInterfaceName_p, Object oObject_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void dispatch(ExchangeContext context);", "public interface CommonDispatcher extends javax.ejb.EJBObject {\n\t\n\t/**\n\t * An example business method\n\t * \n\t * @throws EJBException\n\t * Thrown if method fails due to system-level error.\n\t */\n\tpublic DataHolder processRequest(D...
[ "0.6882834", "0.6618683", "0.63852787", "0.6343007", "0.6338396", "0.6211582", "0.619126", "0.6143926", "0.60249126", "0.5946254", "0.58677226", "0.5860141", "0.58310336", "0.5830882", "0.58164227", "0.5790212", "0.5782673", "0.5777432", "0.57675093", "0.5759275", "0.5728818"...
0.0
-1
check if an additional interface is available, e.g. interface to a workflow engine
public abstract boolean hasInterface(String strInterfaceName_p);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isInterface();", "public boolean isInterface()\n {\n ensureLoaded();\n return m_flags.isInterface();\n }", "public boolean checkInterface(Object obj) {\n return true;\n }", "private boolean isSupportedInternal() {\n boolean z = false;\n synch...
[ "0.73374116", "0.7100991", "0.6961121", "0.65886915", "0.6522431", "0.6381913", "0.6372652", "0.634461", "0.634461", "0.6336163", "0.6333689", "0.6276069", "0.6200878", "0.61941046", "0.6149386", "0.6117174", "0.61116534", "0.6094618", "0.607438", "0.60453844", "0.60447645", ...
0.74573463
0
=== Initialization initialize the network Adapter
public abstract void init(OwNetworkContext context_p, OwXMLUtil networkSettings_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NetworkAdapter() {\n }", "private void initializeAdapter() {\n }", "protected void initializeNetwork() {\n logger.debug(\"Initialising ZWave controller\");\n\n // Create config parameters\n Map<String, String> config = new HashMap<String, String>();\n config.put(\"maste...
[ "0.7840709", "0.7007534", "0.67932874", "0.6692352", "0.6587188", "0.6525738", "0.65082145", "0.650186", "0.6489489", "0.6464269", "0.6463547", "0.64346313", "0.6431787", "0.64122444", "0.64115685", "0.6356959", "0.63480544", "0.63444227", "0.6339717", "0.6332117", "0.6306811...
0.6431248
13
return the network context that was past during initialization
public OwNetworkContext getContext();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cl_context getContext() {\r\n return context;\r\n }", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "CTX_Context getContext();", "public com.google.protobuf.ByteString getContext() {\n return context_;\n }", "public IRuntimeContext getCo...
[ "0.64126647", "0.63346684", "0.6288993", "0.62863094", "0.6241376", "0.62400866", "0.6174457", "0.61298764", "0.60817313", "0.6049375", "0.6049375", "0.6017015", "0.6012597", "0.60098773", "0.6008936", "0.5992937", "0.59839696", "0.5977796", "0.5974981", "0.5960313", "0.59465...
0.71672094
0
set the rolemanager to use
public abstract void setRoleManager(OwRoleManager roleManager_p);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRoboboManagerStarted(RoboboManager robobom) {\n robobo = robobom;\n\n //dismiss the wait dialog\n waitDialog.dismiss();\n\n //start the \"custom\" robobo application\n\n startRoboboApplication();\n\n ...
[ "0.64464986", "0.6224552", "0.59291494", "0.58918214", "0.5858403", "0.5849482", "0.5812978", "0.577413", "0.567098", "0.5666411", "0.5648839", "0.55826104", "0.55822", "0.55668914", "0.55251265", "0.5493074", "0.5450819", "0.54025465", "0.53942096", "0.53872514", "0.5385736"...
0.51293033
47
set the rolemanager to use
public abstract void setEventManager(OwEventManager eventManager_p);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRoboboManagerStarted(RoboboManager robobom) {\n robobo = robobom;\n\n //dismiss the wait dialog\n waitDialog.dismiss();\n\n //start the \"custom\" robobo application\n\n startRoboboApplication();\n\n ...
[ "0.64464986", "0.6224552", "0.59291494", "0.58918214", "0.5858403", "0.5849482", "0.5812978", "0.577413", "0.567098", "0.5666411", "0.5648839", "0.55826104", "0.55822", "0.55668914", "0.55251265", "0.5493074", "0.5450819", "0.54025465", "0.53942096", "0.53872514", "0.5385736"...
0.4995904
63
=== permission functions get an instance of the edit access rights UI submodule for editing document access rights Access rights are very specific to the ECM System and can not be handled generically
public abstract OwUIAccessRightsModul getEditAccessRightsSubModul(OwObject object_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;", "Menu getMenuEdit();", "public interface SecurityOptionIFace\n{\n /**\n * @return a unique name (without a security prefix) used by the security system, \n * doesn't need to be localized and is not intended to be huma...
[ "0.6503615", "0.6368486", "0.6114197", "0.60719365", "0.58714104", "0.5753129", "0.571736", "0.571371", "0.5675559", "0.5674618", "0.5668686", "0.56318367", "0.56135386", "0.5603282", "0.5603138", "0.5571924", "0.5531266", "0.5498105", "0.54822934", "0.54801923", "0.54544586"...
0.7521454
0
check if access rights can be edited on the Object. I.e. if a AccessRightsSubModul can be obtained
public abstract boolean canEditAccessRights(OwObject object_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkAccess(HasUuid object) {\n // Allow newly-instantiated objects\n if (!wasResolved(object)) {\n return true;\n }\n // Allow anything when there are no roles in use\n if (getRoles().isEmpty()) {\n return true;\n }\n Principal principal = getPrincipal();\n // Chec...
[ "0.74329054", "0.72367394", "0.6898852", "0.6863531", "0.66934544", "0.66672117", "0.6527757", "0.63674235", "0.63134944", "0.6247393", "0.62114805", "0.6204891", "0.61834425", "0.61182636", "0.6097959", "0.6079239", "0.60623085", "0.60623085", "0.6046055", "0.60337865", "0.6...
0.82381237
0
creates a new object on the ECM System using the given parameters
public abstract String createNewObject(OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CMObject newInstance();", "EisModel createEisModel();", "public void create(){}", "Elevage createElevage();", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public System(String implClassName, Params param) {\n\t\tSimLogger.log(Level.INFO, \"New System Crea...
[ "0.6984149", "0.6304263", "0.6121716", "0.6092427", "0.60386485", "0.6023237", "0.6002724", "0.5926805", "0.592658", "0.592658", "0.59063375", "0.58964056", "0.5893188", "0.58812916", "0.5857822", "0.58544785", "0.5848131", "0.5840965", "0.5831216", "0.58140576", "0.5803301",...
0.0
-1
creates a new object on the ECM System using the given parameters has additional promote and checkin mode parameters for versionable objects
public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p, bo...
[ "0.61710495", "0.5843043", "0.5557812", "0.55413216", "0.5532543", "0.5283002", "0.526302", "0.51821357", "0.5170096", "0.5131497", "0.5120654", "0.509395", "0.5087524", "0.5079915", "0.506433", "0.5041386", "0.5037549", "0.50343275", "0.5029635", "0.50225925", "0.5018296", ...
0.6098469
1
Creates a new object on the ECM System using the given parameters. Has additional promote and checkin mode parameters for versionable objects and the extra parameter fKeepCheckedOut_p to control whether the new objects are checked in automatically or not. ATTENTION: If keepCheckedOut is true, the promote flag (major/mi...
public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p, String strMimeParameter_p, boolean f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p) th...
[ "0.58581316", "0.5355499", "0.4871697", "0.47949374", "0.47017917", "0.46562758", "0.46145195", "0.45564097", "0.45446816", "0.4501527", "0.44848543", "0.44790742", "0.44635114", "0.44631967", "0.4455026", "0.44400018", "0.4432092", "0.44299987", "0.442183", "0.44192076", "0....
0.6381631
0
creates a new empty object which can be used to set properties and then submitted to the createNewObject function
public abstract OwObjectSkeleton createObjectSkeleton(OwObjectClass objectclass_p, OwResource resource_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OBJECT createOBJECT();", "public void create(){}", "private SingleObject(){}", "private SingleObject()\r\n {\r\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {\r\n\t}", "@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\t...
[ "0.68846124", "0.6564999", "0.65323025", "0.6491341", "0.6351126", "0.6351126", "0.6351126", "0.6319165", "0.63125306", "0.6280197", "0.627463", "0.62363005", "0.62218916", "0.6196228", "0.6186515", "0.61478055", "0.61267835", "0.6118459", "0.6099918", "0.6099479", "0.6086609...
0.0
-1
creates a cloned object with new properties on the ECM system copies the content as well
public abstract String createObjectCopy(OwObject obj_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwObject parent_p, int[] childTypes_p) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CMObject copyOf();", "Object clone();", "Object clone();", "public DescriptiveFramework clone();", "public void testCopyConstructor() throws EdmException {\n entity = new EdmEntity(\"example.edl\");\n EdmAttribute a1 = setupAttribute(val1);\n EdmAttribute a2 = setupAttribute(val...
[ "0.645238", "0.6440294", "0.6440294", "0.64251417", "0.63749284", "0.62971777", "0.6253004", "0.6193353", "0.61618036", "0.6124606", "0.61226285", "0.61054873", "0.6093112", "0.60703164", "0.60539407", "0.60539407", "0.60539407", "0.60539407", "0.6025663", "0.6017801", "0.600...
0.5874424
42
Header Instances created on page creation Construction
public ImportExcelData (ASPManager mgr, String page_path) { super(mgr,page_path); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PageHeader getPageHeader();", "PageHeader getPageHeader();", "public HeaderSettingsPage()\n {\n initialize();\n }", "Header createHeader();", "private void validatedHeader() {\n\t\tif(loginView != null){\n\t\t\tLabel greeting = new Label(T.get(\"LABEL_TOP_BAR_GREETING\") + T.get(\"LABEL_GUEST_...
[ "0.68295175", "0.68295175", "0.6771846", "0.66233134", "0.66206056", "0.6529737", "0.6529737", "0.64588755", "0.64485836", "0.6417534", "0.640949", "0.63558775", "0.634535", "0.6284494", "0.625108", "0.6217664", "0.62160856", "0.6215937", "0.61718786", "0.6137949", "0.6131472...
0.0
-1
Adds a file to a tar archive: Tar.addFile(filePath, fileName, tarFile);
public static void addFile(String filePath, String fileName, org.apache.tools.tar.TarOutputStream tarFile) throws IOException { // change to the path // File f = new File(filePath + "."); // Create a buffer for reading the files byte[] buf = new byte[2048]; // Compress the f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addFile(final String file);", "private void addToTarFile(File tableFile,TarArchiveOutputStream tarOutput) throws IOException {\n try (FileInputStream fileInput = new FileInputStream(tableFile)) {\n TarArchiveEntry tarEntry = new TarArchiveEntry(tableFile);\n tarEntry.setN...
[ "0.7110923", "0.67008054", "0.6610463", "0.65217745", "0.64660424", "0.63589877", "0.6212223", "0.61856264", "0.6134955", "0.61235154", "0.6081185", "0.6040432", "0.60146713", "0.6013233", "0.58362216", "0.5693441", "0.567684", "0.56514484", "0.5624661", "0.5618075", "0.55769...
0.87853616
0
2_Les constructeurs 2_Les constructeurs Constructeur vide
public ClientSoapMBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ControleurAcceuil(){ }", "public AntrianPasien() {\r\n\r\n }", "public Pasien() {\r\n }", "public Caso_de_uso () {\n }", "public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n ...
[ "0.73397887", "0.7310296", "0.72801805", "0.7230036", "0.7197753", "0.7154796", "0.7139862", "0.7088856", "0.70835304", "0.70245486", "0.6904713", "0.68948936", "0.6878655", "0.68758327", "0.6863235", "0.68055445", "0.6776962", "0.6772298", "0.6765706", "0.6732786", "0.670988...
0.0
-1
3_Les Getters et Setters 3_Les Getters et Setters
public BarChartModel getBarModel() { return barModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setdat()\n {\n }", "protected abstract Set method_1559();", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public void setNombre(String nombre){\n...
[ "0.6815128", "0.6772174", "0.6462276", "0.6460035", "0.6400728", "0.6355441", "0.6342186", "0.633869", "0.6331871", "0.63049614", "0.62339693", "0.6156957", "0.6150489", "0.6150142", "0.6102513", "0.6100548", "0.6099166", "0.6091646", "0.60783434", "0.60650957", "0.60594887",...
0.0
-1
specifies text file and word document
public static void main(String[] args) { File text = new File("Quote.txt"); File doc = new File("Quote.docx"); // makes sure both files exist if (text.exists() && doc.exists()) { // calculates word document length to text document length ratio long ratio = doc.length() / text.length(); // outputs te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ach_doc_type_txt_test () {\n\t\t\n\t}", "public abstract TextDocument getTextDocumentFromFile(String path) throws FileNotFoundException, IOException;", "private void createDocWords() {\n\t\tArrayList<DocWords> docList=new ArrayList<>();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new F...
[ "0.708026", "0.67316586", "0.64542687", "0.630097", "0.62286735", "0.6222728", "0.61278856", "0.6092442", "0.60883826", "0.60757387", "0.60711753", "0.6055379", "0.60548645", "0.60103524", "0.6008929", "0.59392637", "0.59362566", "0.591027", "0.59079987", "0.5886511", "0.5849...
0.59952337
15
Creates new form Data1Frame
public Plot6Frame() { initComponents(); this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/draw/h.jpg"))); this.setTitle(LocaleManager.getInstance("Taiwan").getString("fig_plot6")); setPanelInitVal(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RDataframe() {\n\t\tsuper();\n\t}", "public DataFrame copy() {\n return new DataFrame(data.values, header.values, index.values);\n }", "DataFrame<R,C> copy();", "private JInternalFrame createInternalFrame() {\n\n initializeChartPanel();\n\n chartPanel.setPreferredSize(new Dimen...
[ "0.6617628", "0.63948506", "0.6184503", "0.6082186", "0.6062307", "0.59031117", "0.57908446", "0.57623607", "0.57071203", "0.5684128", "0.5663814", "0.563697", "0.5438734", "0.54310304", "0.54134274", "0.54031223", "0.5401797", "0.53887266", "0.5369376", "0.533187", "0.530600...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { pitchPanel = new tw.com.hasco.MSFS.ui.Plot1Panel(); rollPanel = new tw.com.hasco.MSFS.ui.Plot1Panel(); yawPanel = new tw.com.hasco.MSF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
End of variables declaration//GENEND:variables
@Override public void update(FSBasic fsBasic) { int time = fsBasic.hour() * 3600 + fsBasic.min() * 60 + fsBasic.sec(); // if (currTime == time) { // return; //} currTime = time; upPanel.addData(currTime); downPanel.addData(currTime); pitchPanel.add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Do something when server starting event dispatched.
@SubscribeEvent public void onServerStarting(final FMLServerStartingEvent event) { LOGGER.info("server starting..."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onServerStarted();", "@SubscribeEvent\n public void onServerStarting(FMLServerStartingEvent event) {\n // do something when the server starts\n Server server = new Server(event.getServer());\n }", "@SubscribeEvent\n public void onServerStarting(FMLServerStartingEvent event) {\n ...
[ "0.78394496", "0.78318083", "0.74557763", "0.74238616", "0.71824485", "0.71267456", "0.7126087", "0.701329", "0.70126975", "0.6997693", "0.6980449", "0.69466645", "0.68456084", "0.68234825", "0.6728248", "0.66981965", "0.66907537", "0.66903555", "0.6671707", "0.66705847", "0....
0.8064511
0
Do something when client setup event dispatched.
@SubscribeEvent public void onClientStarting(final FMLClientSetupEvent event) { LOGGER.info("client setting up"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onSetup(ProcessingSetup processingSetup);", "@Override\r\n\tprotected final void setup() {\r\n \tsuper.setup();\r\n\r\n \tdoSetup();\r\n }", "public void send_setup()\n {\n out.println(\"chain_setup\");\n }", "private void commonSetup(FMLCommonSetupEvent event) {\n WorldGen....
[ "0.66120344", "0.641776", "0.6411881", "0.6386369", "0.6354009", "0.63386595", "0.6272844", "0.6272844", "0.61889106", "0.6174571", "0.6172607", "0.6108849", "0.6079519", "0.6051608", "0.6021239", "0.59921265", "0.59794736", "0.5963063", "0.5956539", "0.5948703", "0.5924805",...
0.80781525
0
Unregisters all the watchers.
public void clearAllWatchers() { if (registeredWatchers.size() > 0) { boolean isRemoved = false; LOG.info("About to unregister all watchers."); for (WatchKey watchKey : registeredWatchers.keySet()) { try { isRemoved = notifier.removeWatcher(watchKey); if (isRemoved) { registeredWatchers.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unregisterAll();", "public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }", "public synchronized final void deleteWidgetWatchers() {\n _watchers.removeAllElements();\n }", "private void unregisterReceivers() {\n \t\t\n\t\tunregisterReceiver(newReadingsReceiver);\...
[ "0.75906837", "0.7384652", "0.73738873", "0.70732033", "0.6969986", "0.69356644", "0.68418777", "0.682043", "0.6744174", "0.67214537", "0.6622998", "0.65704256", "0.65482384", "0.65289956", "0.64489615", "0.6405453", "0.63626933", "0.6361786", "0.6309553", "0.62994", "0.62992...
0.8422791
0
number of spaces per tab
public OutputFormatter( final Jetty jetty, PlatformIO io ) { super( jetty ); _platform_io = io; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void processTab() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (charCount == MAX_W) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline[charCount] = ' ';\n\t\t\tcharCount++;\n\t\t}\n\t\tcurrentWord = charCount;\n\t}", "void setTabLength(int tabLength) {\n\tGC gc = getGC();\n\tStringBuffer tabBuffer = new Str...
[ "0.71428925", "0.67789525", "0.6622277", "0.6606109", "0.6605084", "0.65797096", "0.6489289", "0.6453726", "0.6382567", "0.63362014", "0.6303802", "0.6301777", "0.62806183", "0.6279555", "0.6196582", "0.61748385", "0.6140346", "0.60977656", "0.60668063", "0.60427815", "0.6019...
0.0
-1
possibly filter it first:
public void print( String text ) throws ParseException, ReparseException, HaltTurnException, GameOverException { if ( _filter != null ) { TValue arg = newTValue( TValue.SSTRING, text ); TValue ret = getRunner().run( _filter.get_data(), this.arg_array( arg ) ); if ( ret.get_type() == TValue.SSTRING ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean doFilter() { return false; }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public abstract void filter();", "boolean isPreFiltered();",...
[ "0.6762645", "0.6699698", "0.6699698", "0.64500684", "0.6260368", "0.61056596", "0.5889433", "0.58422744", "0.5814763", "0.5808386", "0.57897997", "0.56999284", "0.5672978", "0.5632314", "0.56083184", "0.55796814", "0.5550233", "0.55480814", "0.55443186", "0.5536748", "0.5521...
0.0
-1
switch into or out of statuslineprinting mode (and when we switch out, actually send the updated status line to the screen)
public void print_statusline( boolean start, boolean left ) { if ( start ) { flush(); _status_line = new StringBuffer( 10 ); _status_line.append( _last_printed ); // store this here return; } // this always prints to the statusline and is not affected by // outhide() or outcapture() flush(); _p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printStatus(){\n System.out.println();\n System.out.println(\"Status: \");\n System.out.println(currentRoom.getLongDescription());\n currentRoom.printItems();\n System.out.println(\"You have made \" + moves + \" moves so far.\");\n }", "private boolean printing_s...
[ "0.65059763", "0.63177246", "0.6299405", "0.61880875", "0.6149791", "0.60362726", "0.60298276", "0.58570266", "0.5825224", "0.5807538", "0.5783068", "0.5747635", "0.5737283", "0.57090324", "0.5630827", "0.560804", "0.55965835", "0.55945724", "0.55834013", "0.55822915", "0.556...
0.66778946
0
note that it can be relatively expensive to construct the string argument to this function, even if it's not printed. For higher debug levels (3 and 4) you probably want to make sure this function is never called, not just that it doesn't do anything. so wrap the call in an actual if statement.
public void print_error( String text, int level ) { if ( get_debug_level() >= level ) { _platform_io.print_error( text ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void printDebug(String s)\n {\n }", "private void debug(String str) {\n }", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "public void logDebug(String str) {\n }", "private static void debug(@Nullable String s) {\n LOG.debug(s);\n }", "public vo...
[ "0.6534124", "0.64542717", "0.62346745", "0.61791253", "0.6139408", "0.60879326", "0.5939424", "0.5877455", "0.5766069", "0.5728181", "0.57177883", "0.5715586", "0.56787497", "0.567294", "0.5627957", "0.55980927", "0.559014", "0.5585328", "0.5584512", "0.5541258", "0.55332875...
0.0
-1
wrap if necessary and print out what we've got so far
public void flush() { if ( !printing_status() ) { int sz = _platform_io.size_text( _current_word.toString() ); if ( _last_column + sz >= _wrap_column ) { inc_line(); } _last_column += sz; _platform_io.print_text( _current_word.toString() ); _current_word.setLength( 0 ); } else { _status_li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void print() {\n\t\t// reorganize a wraparound queue and print\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(bq[(head + i) % bq.length] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t}", "private ResultHandler print() {\n\t\treturn null;\r\n\t}", "public void wrap() {\n if ...
[ "0.6297837", "0.5953728", "0.5798798", "0.5776909", "0.57745653", "0.5767572", "0.57103425", "0.568606", "0.56759924", "0.5654663", "0.561888", "0.56047785", "0.55722696", "0.55550647", "0.5551453", "0.55393326", "0.55356836", "0.55269104", "0.5498152", "0.5498152", "0.549502...
0.0
-1
check if this word is longer than the wrap length just by itself:
private void wrap_long_words() { if ( printing_status() ) { return; } String cur = _current_word.toString(); if ( _platform_io.size_text( cur ) >= _wrap_column ) { // print out the first bit: String trim = cur; while ( _platform_io.size_text( trim ) >= _wrap_column ) { trim = trim.substring( 0,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean checkLength(String detail);", "public boolean checkWord(String word) {\n if (word.length() < longestWordLength) {\n return false;\n } else if (word.length() > longestWordLength) {\n longestWordLength = word.length();\n longestWords = new HashSet<>();\n ...
[ "0.65578544", "0.64257747", "0.6359306", "0.6283284", "0.6169356", "0.6165757", "0.6122775", "0.6117083", "0.6074723", "0.60328335", "0.5933797", "0.5927836", "0.59174865", "0.59100413", "0.5880513", "0.58411807", "0.5827659", "0.5827659", "0.5827659", "0.5822545", "0.5791631...
0.5874168
15
reset the column marker to start of line and clear the line count
public void input_entered() { _last_column = 0; _last_line = 0; _last_printed = '\n'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetLine() {\n eof = (cursor == lineMark);\n cursor = lineMark;\n }", "public void resetClearedLines() {\n this.myClearedLines = 0;\n this.myLineCleared.setText(Integer.toString(this.myClearedLines));\n }", "public void reset() {\r\n\t\tcursor = mark;\r\n\t}", "public ...
[ "0.75887734", "0.71087223", "0.6986753", "0.6925525", "0.66859263", "0.65507334", "0.6546158", "0.64605683", "0.64375544", "0.64181936", "0.63517845", "0.6315665", "0.62945104", "0.62284577", "0.62063915", "0.6202762", "0.6155561", "0.6146362", "0.6141518", "0.6096555", "0.60...
0.0
-1
abort all output hiding/capturing
public void cancel_outhiding() { _outcaptures.removeAllElements(); _outhides.removeAllElements(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void halt();", "void suspendOutput();", "public void suppress() {\n\t\tstop = true;\n\t}", "public void abort() {\n isAborted = true;\n cancelCommands();\n cancel(true);\n }", "public void halt ( )\n\t{\n\t\tthis.running = false;\n\t}", "private void exit() {\n audre...
[ "0.6863185", "0.6767065", "0.6647831", "0.6617326", "0.6484687", "0.6422548", "0.64141554", "0.6409144", "0.6360323", "0.634652", "0.6338261", "0.63227934", "0.631952", "0.62413764", "0.62172395", "0.61972165", "0.6162128", "0.612603", "0.61126447", "0.6103961", "0.60620856",...
0.58926386
45
returns true if output is not being displayed
private boolean no_output() { return _outcaptures.size() > 0 || _outhides.size() > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasOutput();", "@Override\r\n\tpublic boolean getOutput() {\n\t\treturn false;\r\n\t}", "public boolean hasOutput() {\n return output_ != null;\n }", "public boolean getOutput(){\n if (output){\n System.out.println(\"Archivo Cocol/R Aceptado\");\n return true;\n ...
[ "0.775425", "0.74648744", "0.7278991", "0.6931494", "0.6863898", "0.6726795", "0.66335267", "0.6544673", "0.654414", "0.6533904", "0.65247715", "0.64794654", "0.6409133", "0.6401458", "0.63840944", "0.6366521", "0.635726", "0.6350808", "0.63453656", "0.62528384", "0.6244749",...
0.8246935
0
returns true if we're printing the status line
private boolean printing_status() { return _status_line != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printStatus();", "private void printTestingStatus(final boolean status) {\n this.out.println();\n this.print(\n new If<Text>(\n () -> status,\n () -> new GreenText(\"Testing successful.\"),\n () -> new RedText(\"Testing failed.\")\...
[ "0.6997846", "0.6744095", "0.66022736", "0.6567389", "0.6379448", "0.6263842", "0.6225436", "0.6225436", "0.6225436", "0.6225436", "0.6225436", "0.6213701", "0.5997988", "0.596804", "0.5961676", "0.5961676", "0.5961676", "0.59499496", "0.59499496", "0.59499496", "0.59499496",...
0.882086
0
Gets the next hop IP address of this route entry.
public InetAddress getNextHop() { return nextHop; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Address getNextHop()\n {\n return (Address)route.get(getHopCount()+1);\n }", "public IpAddress nextHop() {\n return nextHop;\n }", "public IPv4Address nextHop(IPv4Address ip){\n\t\tIterator<RouteEntry> it = routeTable.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tRouteEntry r = it....
[ "0.7842046", "0.75475824", "0.68794423", "0.6100319", "0.6045413", "0.6040402", "0.5988154", "0.5974946", "0.5933811", "0.593037", "0.5914276", "0.59010935", "0.5892044", "0.58215433", "0.579115", "0.57416993", "0.57416993", "0.5711695", "0.569022", "0.569022", "0.56850725", ...
0.77845067
1
Gets the sysuptime parameter sent with the update from BGPd.
public long getSysUpTime() { return sysUpTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public long getSysUpTime() {\n return sysUpTime ;\n }", "public int getUptime() {\n return (int) _uptime;\n }", "public long getUptime() {\n return uptime;\n }", "public long getUptime() {\n\t\treturn System.currentTimeMillis()-uptime;\n\t}", "public abstract long getUpt...
[ "0.67059034", "0.66914207", "0.6566337", "0.65222096", "0.6510367", "0.60343605", "0.6007771", "0.59296495", "0.592819", "0.5766334", "0.57614565", "0.5757509", "0.5673269", "0.5672381", "0.5638015", "0.55841285", "0.554198", "0.5502302", "0.5502302", "0.5491878", "0.54711217...
0.66820484
2
Gets the sequencenum parameter sent with the update from BGPd.
public long getSequenceNum() { return sequenceNum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "long getSeqnum();", "public int getSeqNo();", "public int getSeqNo();", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "@MavlinkField...
[ "0.6679556", "0.6679556", "0.6679556", "0.6679556", "0.6679556", "0.6679556", "0.6679556", "0.652751", "0.652751", "0.64704764", "0.643962", "0.6352093", "0.6341182", "0.6317732", "0.6317732", "0.6317732", "0.63150746", "0.6241829", "0.6241829", "0.6241829", "0.62267214", "...
0.5845663
67
UnifedMain implements this interface and uses listener to recieve updates from the dialog
public interface StationFragmentListener{ public void onDialogPositiveClick(DialogFragment dialog); public void onDialogNegativeClick(DialogFragment dialog); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DialogListener {\n\n /**\n * Called when a dialog completes.\n *\n * Executed by the thread that initiated the dialog.\n *\n * @param values\n * Key-value string pairs extracted from the response.\n */\n public void onComplete(Bundle values);\n\n \n ...
[ "0.63924456", "0.6272692", "0.62588984", "0.6194653", "0.61095226", "0.6094304", "0.599431", "0.5987251", "0.59410673", "0.5904902", "0.5901505", "0.5886782", "0.5883253", "0.58678716", "0.58462036", "0.58377475", "0.5835879", "0.58311945", "0.58193594", "0.5818849", "0.58167...
0.0
-1
attempts to initialize the listener that UnifedMain will eventually use onAttach uses Context and converts to Activity par Android's depreciating direct usage of Activity in onAttach
@Override public void onAttach(Context context){ super.onAttach(context); Activity activity = (Activity) context; if (context instanceof Activity){ activity = (Activity) context; } try{ listener = (StationFragmentListener) activity; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onAttach(Context context) {\n super.onAttach(context);\n\n if (context instanceof MainActivity) {\n this.mainActivity = (MainActivity) context;\n }\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n ...
[ "0.7052331", "0.69153243", "0.68751025", "0.6829609", "0.67725855", "0.6705177", "0.66541797", "0.66300124", "0.6535174", "0.6534456", "0.6500873", "0.6487565", "0.64752305", "0.6464475", "0.64550626", "0.64462525", "0.6417279", "0.6412567", "0.6367258", "0.63641626", "0.6359...
0.64524394
15
creates the actual dialog the listener is called such that UnifedMain is notified that the user has tapped
public Dialog onCreateDialog(Bundle savedInstanceState){ AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity()); sample_builder.setView("activity_main"); sample_builder.setMessage("This is a sample prompt. No new networks should be scanned while this prompt is up"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initDialog() {\n }", "@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\tIntent intent = getIntent();\n\t\tfinal DatabaseUtil mDatabaseUtil = new DatabaseUtil(this); \n\t\tfinal UiManager mUiManager = new ...
[ "0.654332", "0.6539097", "0.6435143", "0.6364623", "0.6335545", "0.6317723", "0.631396", "0.63137895", "0.627607", "0.62716186", "0.62420565", "0.6232228", "0.621411", "0.6198495", "0.6197982", "0.6191343", "0.6190843", "0.6185656", "0.61812705", "0.6134826", "0.61271834", ...
0.6181439
18
TODO Autogenerated method stub /System.out.println("Hiiii"); System.out.println("Hiiii");
public static void main(String[] args) { HelloWorld.init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void haha(){\n System.out.println(\"thavasi\");\n }", "@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println...
[ "0.7244117", "0.7208302", "0.7019177", "0.6997366", "0.69719136", "0.6888461", "0.6873664", "0.68495256", "0.681639", "0.6772099", "0.6752139", "0.67517656", "0.6742545", "0.67337734", "0.6733137", "0.67102796", "0.67016923", "0.66960216", "0.6669317", "0.66379154", "0.662333...
0.0
-1
Contructor de la Clase
public Ventana(){ super.setTitle("Operaciones"); super.setSize(320, 480); super.setDefaultCloseOperation(EXIT_ON_CLOSE); //para el botón de cerrar cargarControles(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Clade() {}", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public Coche() {\n super();\n }", "public Carrera(){\n }", "public Curso() {\r\n }", "public Chauffeur() {\r\n\t}", "public Alojamiento() {\r\n\t}", "public AntrianPasi...
[ "0.83088136", "0.7941088", "0.7861839", "0.752394", "0.7496708", "0.7469222", "0.742694", "0.74126345", "0.74062765", "0.73980707", "0.7383979", "0.73755157", "0.73509103", "0.73065877", "0.7295485", "0.7284737", "0.7227689", "0.72232014", "0.7209255", "0.7200684", "0.7180614...
0.0
-1
se declaran los objetos
private void cargarControles() { c.setLayout(null); //acomodar los objetos como yo quiera lbN1.setBounds(10, 10, 280, 30); c.add(lbN1); //se asigna al contenedor txtN1.setBounds(10, 40, 280,30); c.add(txtN1); lbN2.setBounds(10,80,300,30); c.add(lbN2); txtN2.setBounds(10,110, 280,30); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "private void initObjects() {\n inputValidation = new InputV...
[ "0.69599575", "0.6931502", "0.68728673", "0.68502825", "0.68464863", "0.6743485", "0.6663418", "0.6650304", "0.6586089", "0.65802157", "0.65750897", "0.65539163", "0.6553552", "0.64956176", "0.64636016", "0.6450821", "0.6359968", "0.63454556", "0.6344946", "0.63323045", "0.63...
0.0
-1
Solicita al manejador activar el sensor requerido.
public void requestSensor(String sensorType){ switch(sensorType){ case "SENSOR_ACC": accelerometer = phoneSensorsMan.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); phoneSensorsMan.registerListener(sel,accelerometer, SensorManager.SENSOR_DELAY_GAME); brea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleSensorActivated() {\n if (securityRepository.getArmingStatus() == ArmingStatus.DISARMED) {\n return; //no problem if the system is disarmed\n }\n switch (securityRepository.getAlarmStatus()) {\n case NO_ALARM -> setAlarmStatus(AlarmStatus.PENDING_ALARM)...
[ "0.68671995", "0.65612864", "0.6420422", "0.64073384", "0.6317842", "0.6246352", "0.6244884", "0.6164428", "0.6159508", "0.6140017", "0.6132721", "0.6127805", "0.6113042", "0.6095382", "0.6085696", "0.6085176", "0.60597426", "0.60334855", "0.59576964", "0.5942244", "0.5922196...
0.0
-1
DListNode2() constructor(one parameter) this sets vertex1 to its corresponding vertex.
DListNode2(Object vertex1) { vertex = vertex1; list = null; prev = null; next = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AdjListNode(int n) {\n\t\tvertexIndex = n;\n\t}", "DListNode() {\n item[0] = 0;\n item[1] = 0;\n item[2] = 0;\n prev = null;\n next = null;\n }", "public Edge(T node_1, T node_2,S label) {\n\t\tparent = node_1;\n\t\tchild = node_2;\n\t\tl = label;\n\t\tcheckRep();\n\t}", "public ListNo...
[ "0.64440304", "0.6350428", "0.6346573", "0.63447994", "0.625479", "0.6238969", "0.6220903", "0.621804", "0.61809045", "0.6136964", "0.61078143", "0.61054564", "0.60596085", "0.60056365", "0.59687483", "0.5931966", "0.59172934", "0.5899608", "0.58941686", "0.58737606", "0.5873...
0.88870454
0
getVertex() gets the correcsponding vertex
public Object getVertex(){ return this.vertex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Vertex getVertex();", "Vertex getVertex(int index);", "public V getVertex(int index);", "public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }", "public Vertex getVertex() {\n return curr;\n }", "public int getvertex() {\n\t\treturn this.v;\n\t}"...
[ "0.8772969", "0.8285322", "0.78824043", "0.7774464", "0.7657529", "0.76104844", "0.75517446", "0.74839044", "0.74307114", "0.7353803", "0.72341293", "0.71912616", "0.7163185", "0.7108085", "0.7090032", "0.70617247", "0.7019972", "0.69913703", "0.68717045", "0.6838569", "0.682...
0.80935717
2
next() gets the next that corresponds to this.
public DListNode2 next(){ return this.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T next() {\n return cur.next();\n }", "@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }", "public T next()\n {\n T data = cu...
[ "0.81542426", "0.8041521", "0.79856265", "0.79847777", "0.7944997", "0.79245496", "0.7916355", "0.79003906", "0.78778064", "0.78626174", "0.7844902", "0.7824325", "0.7794654", "0.7794401", "0.7773138", "0.77446", "0.7723263", "0.76597846", "0.76597846", "0.76454574", "0.76224...
0.0
-1
prev() gets the previous DListNode that corresponds to this.
public DListNode2 prev(){ return this.prev; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DNode getPrev() { return prev; }", "public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}", "public Node getPrev()\n {\n return this.prev;\n }", "public Node getPrev() {\n return prev;\n }", "public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}", "public DoublyLinkedNode<E>...
[ "0.85450405", "0.83357096", "0.8291084", "0.8234557", "0.80533034", "0.8034113", "0.80181223", "0.7971181", "0.79621375", "0.794406", "0.7929377", "0.7882817", "0.7850862", "0.7815919", "0.77602524", "0.77426153", "0.7724679", "0.7678657", "0.7673709", "0.7642869", "0.7638179...
0.8790844
0
setNext() sets a DListNode next1 as the next node to this.
public void setNext(DListNode2 next1){ this.next = next1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNext(ListNode next)\r\n {\r\n this.next = next;\r\n }", "public void setNext(ListNode<E> next)\n {\n nextNode = next;\n }", "public void setNext(ListNode<Item> next) {\n this.next = next;\n }", "public void setNext(DNode newNext) { next = newNext; }", "pub...
[ "0.76578563", "0.754305", "0.7504752", "0.7456251", "0.74450475", "0.7400928", "0.73983747", "0.739708", "0.73311424", "0.73281944", "0.73142433", "0.73042995", "0.7302645", "0.72955626", "0.7251533", "0.7229072", "0.7223858", "0.7176413", "0.7155717", "0.7108662", "0.7096032...
0.8456417
0
setPrev() sets a DListNode prev1 as the prev node to this.
public void setPrev(DListNode2 prev1){ this.prev = prev1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrev(Node prev) {\n this.prev = prev;\n }", "public void setPrev(Node prev)\r\n\t{\r\n\t\tthis.prev = prev;\r\n\t}", "public void setPrev(DNode newPrev) { prev = newPrev; }", "public void setPrev(Node<T> prev) {\n\t\tthis.prev = prev;\n\t}", "public void setPrev(ListEntry prev) {\n...
[ "0.83510107", "0.83268785", "0.8157075", "0.80953974", "0.8022872", "0.79652846", "0.7901918", "0.757924", "0.753811", "0.74881655", "0.72969997", "0.7266988", "0.7250001", "0.72157323", "0.72030765", "0.7169839", "0.70970535", "0.7074867", "0.70605135", "0.70130265", "0.6967...
0.891098
0
This sets the corresponding list field to list1.
public void setList(DList2 list1){ list = list1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setListData(int list, int data) {\n\t\tm_lists.setField(list, 5, data);\n\t}", "public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }", "public static void fillArrayList(List<String> list1){\n\t\tlist1.add(new String...
[ "0.66595423", "0.6442549", "0.63892287", "0.63738006", "0.636686", "0.6361863", "0.63402843", "0.6335449", "0.6304103", "0.62943", "0.622411", "0.6185776", "0.61565137", "0.61506397", "0.6090158", "0.6073473", "0.59956837", "0.5979374", "0.5935225", "0.5915317", "0.59093446",...
0.82599974
0
setVertex() sets the corresponding vertex of the DListNode to the object vertex2.
public void setVertex(Object vertex2){ this.vertex = vertex2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DListNode2(Object vertex1) {\r\n vertex = vertex1;\r\n list = null;\r\n prev = null;\r\n next = null;\r\n }", "public void setEdge(int v1, int v2, int weight) {\n LinkedList<Integer> tmp = adjList.elementAt(v1);\n if(adjList.elementAt(v1).contains(v2) == false) {\n tmp.add(v...
[ "0.69426626", "0.61946666", "0.583091", "0.57722324", "0.57111055", "0.5709168", "0.568533", "0.5653076", "0.55505145", "0.55411386", "0.55343217", "0.55123717", "0.5421155", "0.5360641", "0.5320913", "0.5242012", "0.5235718", "0.5231566", "0.52307576", "0.52194196", "0.52089...
0.7964433
0
list() returns the DList that the DListNode is pointing to.
public DList2 list(){ return this.list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DOCKSList getList() {\r\n return localList;\r\n }", "public final List getList()\n {\n return this.list;\n }", "public LinkedList getList() {\n\treturn this.roomList;\n}", "public java.util.List getList() {\n\t\treturn list;\n\t}", "public JList obtenirList() {\r\n\t\t...
[ "0.72557575", "0.68750626", "0.68680245", "0.68161935", "0.67291427", "0.6658374", "0.6545863", "0.651792", "0.6480127", "0.6470668", "0.6364845", "0.63419956", "0.62937456", "0.62616456", "0.6221443", "0.62129325", "0.62023294", "0.61347204", "0.61187595", "0.6099762", "0.60...
0.7696434
0
correspondingPair() returns the DListNode that the current node is pointing to.
public DListNode2 correspondingPair(){ return this.correspondingPair; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "@Override\n\tpublic Pair getPair() {\n\t\tlock.lock();\n\t\ttry {\n\t\t\treturn new Pair(pair.getX(), pair.getY());\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\t\t\n\t}", "public String getPairName() {\n retur...
[ "0.6336382", "0.59359574", "0.5686506", "0.5668219", "0.55408627", "0.5487483", "0.54874206", "0.54512537", "0.54179466", "0.5343117", "0.53106815", "0.529453", "0.527752", "0.5273919", "0.5272585", "0.52485895", "0.52342933", "0.5206522", "0.5191527", "0.5188395", "0.518511"...
0.8697003
0
toString() method for debugging purposes.
public String toString(){ String result = "[ "; result = result + vertex + " ]"; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() ;", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "public String toString() { return stringify(this, true); }", "public String toDebugString();", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "@Overri...
[ "0.84261656", "0.8401338", "0.8385066", "0.83607477", "0.83131295", "0.8283722", "0.82588863", "0.82576704", "0.8249275", "0.8241425", "0.82045346", "0.8202796", "0.8194334", "0.819351", "0.819351", "0.819351", "0.819351", "0.819351", "0.819351", "0.819351", "0.819351", "0....
0.0
-1
For schedule job / (nonJavadoc)
@Asynchronous @TransactionTimeout(value = 30000, unit = TimeUnit.SECONDS) public void executeTask(Timer timer) { try { //setType("SCP_TO_SAP"); run(); } catch(Exception e) { String msg = MessageFormatorUtil.getParameterizedStringFromExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scheduleJob() {\n\n }", "void schedule(ScheduledJob job);", "void deschedule(ScheduledJob job);", "public void scheduleJobs();", "public void generateSchedule(){\n\t\t\n\t}", "public abstract void schedule();", "Schedule createSchedule();", "abstract public void computeSchedule();", ...
[ "0.822606", "0.7942527", "0.7766178", "0.7758761", "0.7250524", "0.7180258", "0.6820567", "0.6815108", "0.6800957", "0.67385656", "0.66911256", "0.6690968", "0.6665913", "0.66137576", "0.6505845", "0.65022796", "0.6410479", "0.64088", "0.64030707", "0.6400947", "0.63785756", ...
0.0
-1
Decides if the update should fail if no matching handler is found for the loaded event type.
public Builder withFailOnMissingHandler(boolean failOnMissingHandler) { this.failOnMissingHandler = failOnMissingHandler; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean handlesEventsOfType(RuleEventType type);", "public boolean check(EventType event);", "public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }", "public boolean isEventUpdated(Event event) \n\t{\n\t\treturn false;\n\t}", "@Override\n protected boolean acceptEvent...
[ "0.58645844", "0.55981386", "0.54549754", "0.54314286", "0.5362737", "0.5317935", "0.5186893", "0.5154073", "0.512362", "0.5122732", "0.50860316", "0.5081372", "0.50443274", "0.50405514", "0.50069314", "0.49942508", "0.4969595", "0.4969595", "0.4969376", "0.49637142", "0.4961...
0.0
-1
Created by Administrator on 2016/9/2.
@Repository public interface MessagePushDao extends JpaRepository<MessagePush, Long> { MessagePush findByClientId(String clientId); MessagePush findByUserIdAndPlatform(long userId, String platform); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Ov...
[ "0.62003464", "0.6162013", "0.6080362", "0.606293", "0.5987922", "0.59828216", "0.5971636", "0.594515", "0.5884756", "0.58738285", "0.58738285", "0.5862111", "0.5862111", "0.5853303", "0.58527356", "0.58402795", "0.58374065", "0.5809253", "0.57971567", "0.57811105", "0.574350...
0.0
-1
Get the data item for this position
@Override public View getView(int position, View convertView, ViewGroup parent) { Post post = getItem(position); // Check if an existing view is being reused, otherwise inflate the view if (convertView == null) { convertView = LayoutInflater.from(getContext()).inflate(R.layout.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}", "public E getData(int pos) {\n\t\tif (pos >= 0 && pos < dataSize()) {\n\t\t\treturn data.get(pos);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mDatas.get(position);\n\t\t}",...
[ "0.7668654", "0.731151", "0.72089416", "0.71677965", "0.7130208", "0.7076344", "0.70645505", "0.70532256", "0.7042189", "0.7042189", "0.7042189", "0.70360523", "0.7032629", "0.6959", "0.6956786", "0.6956786", "0.69467556", "0.69467556", "0.69104123", "0.6871041", "0.6827699",...
0.0
-1
Instantiates a new index.
public Index(TokenBasedAnalyzer myAnalyzer,boolean lowercase, Set<String> stopWords) { //Index Creation this.lowercase = lowercase; this.stopWords = stopWords; this.myAnalyzer = myAnalyzer; idx = new RAMDirectory(); IndexWriterConfig indexWriterConfiguration = new IndexWriterConfig(Version.LUCEN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SimpleIndexFactory() {\n\t}", "public H_index() {\n\t\tsuper();\n\t}", "InstAssignIndex createInstAssignIndex();", "public Index initIndex(String indexName) {\n return new Index(this, indexName);\n }", "public Indexer() {\n }", "public void createIndex(Configuration configuration){\n ...
[ "0.7936821", "0.7361606", "0.7182701", "0.71712434", "0.71273607", "0.7107343", "0.6911286", "0.688435", "0.68312716", "0.68311304", "0.67950535", "0.67895275", "0.676004", "0.6739662", "0.6689379", "0.66687655", "0.66634023", "0.6639029", "0.6617656", "0.65589416", "0.655609...
0.5945095
53
Adds the document to the index.
public void addDocument(TokenizedDocument document) { try { indexWriter.addDocument(createDocument(document),myAnalyzer); } catch (CorruptIndexException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addDocument(IDocument document) {\n if (indexedFile == null) {\n indexedFile= index.addDocument(document);\n } else {\n throw new IllegalStateException(); } }", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.p...
[ "0.7694297", "0.73839915", "0.70007974", "0.6926096", "0.65725", "0.65555537", "0.6544636", "0.6531199", "0.6470441", "0.6397763", "0.6367806", "0.6360126", "0.62860364", "0.6185825", "0.60839516", "0.6062179", "0.60363734", "0.6006108", "0.6005824", "0.59945846", "0.5992627"...
0.7000517
3
Closes and optimize the index.
public void close() { try { indexWriter.optimize(); indexWriter.close(); IndexSearcher = new IndexSearcher(idx); } catch (CorruptIndexException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStack...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void close() throws CorruptIndexException, IOException {\n\n\t\tidxWriter.forceMerge(1);\n\t\tidxWriter.commit();\n\t\tidxWriter.close();\n\t}", "public void close() throws IndexException {\n }", "public void close() throws IndexerException {\n\t\t//TODO\n\t\t\n\t}", "@Override\n public void cl...
[ "0.7603", "0.75056356", "0.73376375", "0.7309579", "0.7051186", "0.6885101", "0.68546885", "0.6846058", "0.6798949", "0.6700758", "0.64933115", "0.6298487", "0.6191159", "0.6191006", "0.6160146", "0.6160146", "0.6126419", "0.60910314", "0.6082501", "0.5997777", "0.593998", ...
0.8227059
0
Search the query in the index.
public List<edu.columbia.cs.ref.model.TokenizedDocument> search(Query query, int n) { TopDocs result = null; try { result = IndexSearcher.search(query, n); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } List<TokenizedDocument> searchResults = new ArrayList<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public void search() {\r\n \t\r\n }", "public void search() {\n try {\n for...
[ "0.7114037", "0.70888203", "0.7007515", "0.6898825", "0.68955934", "0.685382", "0.67685795", "0.6725217", "0.6724627", "0.670876", "0.6656794", "0.66468704", "0.66386354", "0.6591133", "0.6587623", "0.654739", "0.6535751", "0.6535751", "0.65306", "0.65280026", "0.6522313", ...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { updateHistoryButtonText(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
int minMakespan = 0; RKSchedule r = S.get(i).copyOf();
public static rk getBestSolutionMax(ArrayList<rk> Sched) { rk best = Sched.get(0).copyOf(); for (int i = 1; i < Sched.size(); i++) { rk S = Sched.get(i).copyOf(); if (S.getFitness() > best.getFitness()) { best = S; } } return best; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize(){\n// Schedule initializeList1, initializeList2, initializeList3, initializeList4,initializeList5,\n// initializeList6,initializeList7,initializeList8,initializeList9,\n// initializeList10,initializeList11,initializeList12,initia...
[ "0.5668172", "0.5568091", "0.5549635", "0.54582894", "0.53865564", "0.5327895", "0.5224997", "0.5177688", "0.5175095", "0.51612663", "0.5139494", "0.5061209", "0.5061086", "0.5057539", "0.50447965", "0.5015928", "0.5014814", "0.50116503", "0.5007716", "0.49971458", "0.4978282...
0.0
-1
int minMakespan = 0; RKSchedule r = S.get(i).copyOf();
public static rk getBestSolutionMin(ArrayList<rk> Sched) { rk best = Sched.get(0).copyOf(); for (int i = 1; i < Sched.size(); i++) { rk S = Sched.get(i).copyOf(); if (S.getFitness() < best.getFitness()) { best = S; } } return best; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize(){\n// Schedule initializeList1, initializeList2, initializeList3, initializeList4,initializeList5,\n// initializeList6,initializeList7,initializeList8,initializeList9,\n// initializeList10,initializeList11,initializeList12,initia...
[ "0.5668172", "0.5568091", "0.5549635", "0.54582894", "0.53865564", "0.5327895", "0.5224997", "0.5177688", "0.5175095", "0.51612663", "0.5139494", "0.5061209", "0.5061086", "0.5057539", "0.50447965", "0.5015928", "0.5014814", "0.50116503", "0.5007716", "0.49971458", "0.4978282...
0.0
-1
Create a new Folder
public static void main(String[] args) { File f=new File("C:\\Users\\DELL\\Desktop\\","CheckFolder"); f.mkdir(); System.out.println(f.isDirectory()); System.out.println(f.getName()); System.out.println(f.getParent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Folder createFolder();", "public void createFolder (String folderName, long parentFolderId, Long userId) throws BookMarkException;", "WithCreate withFolderPath(String folderPath);", "private void createLocalFolder(File newFolder) {\n\n if (!newFolder.exists()) {\n newFolder.mkdirs();\n ...
[ "0.86448646", "0.780103", "0.7707089", "0.7635434", "0.74418557", "0.743286", "0.7399411", "0.7370476", "0.7344938", "0.73014176", "0.7284769", "0.7261802", "0.72544295", "0.72271764", "0.71534586", "0.71481186", "0.71051574", "0.7104786", "0.70903087", "0.70327497", "0.69850...
0.0
-1
Created by dumingwei on 2017/9/3.
public interface Presenter<V> { void attachView(V view); void detachView(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n...
[ "0.61049306", "0.59209055", "0.58070326", "0.58070326", "0.5801899", "0.57870984", "0.57472324", "0.57277536", "0.5671025", "0.5657757", "0.56333196", "0.56285405", "0.56217575", "0.5589117", "0.55884457", "0.55734414", "0.5564747", "0.55644894", "0.55615807", "0.55614865", "...
0.0
-1
Approach 1: Direct create the object of implementation class /Airtel airtel = new Airtel(); airtel.calling(); airtel.data(); Approach 2: Use the interface reference to hold the object of implementation class This is nothing but runtime polymorphism. /Sim sim = new Airtel(); sim.calling(); sim.data(); Challenges in abov...
public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml"); System.out.println("context loaded"); // Sim sim = (Sim) context.getBean("sim"); /** * Avoid above type casting */ Sim sim = context.getBean("sim", Sim.class); sim.calling(); sim.da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void main()\n {\n ContextImplementation context = new ContextImplementation(new StrategyAImplementation());\n context.doSomething();\n\n context.setStrategy(new StrategyBImplementation());\n context.doSomething();\n\n // Define a one-to-many dependency between objects s...
[ "0.6276752", "0.6110541", "0.6058006", "0.6030678", "0.59851676", "0.59519976", "0.5928752", "0.59071684", "0.5872855", "0.5863399", "0.58559555", "0.581638", "0.57587725", "0.5752466", "0.5748981", "0.5747686", "0.5734888", "0.5730722", "0.57077765", "0.56981045", "0.5686348...
0.0
-1
MN implemented chooseTargetRels method to support target reusability 3 May 2014 MN assumptions (1): attrRemainder =0 3 May 2014
@Override protected boolean chooseTargetRels() throws Exception { List<RelationType> rels = new ArrayList<RelationType> (); int numTries = 0; int created = 0; boolean found = false; RelationType rel; //MN wanted to preserve the initial values of numOfTgtTables and attsPerTargetRel - 26 April 2014 String[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "N getTarget();", "public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\...
[ "0.5981682", "0.5734855", "0.5633182", "0.5537188", "0.5487734", "0.5456225", "0.5447635", "0.539962", "0.5395699", "0.5384148", "0.5376247", "0.5336951", "0.5322357", "0.53194076", "0.5301935", "0.52994084", "0.52942324", "0.5255084", "0.525408", "0.5250722", "0.5236851", ...
0.7637484
0
MN FIXED addFKs 24 June 2014
private void addFKsNoReuse() { for(int i = 1; i < numOfTgtTables; i++) { // add a variable number of foreign keys per table (always the first keySize attributes) //MN fixed the errors of incorrectly generating foreign key - 24 June 2014 //for (int j = 0; j < keySize; j++) //addFK(i, j, 0, j, f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void creatEmptyFixData() {\n fixInserts.put(ZcSettingConstants.FIX, \"上架费\");\r\n fixInserts.put(ZcSettingConstants.US, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.UK, new BigDecimal(0));\r\n fixInserts.put(ZcSettingConstants.DE, new BigDecimal(0));\r\n fixInserts.put(ZcSetting...
[ "0.544784", "0.538616", "0.53826964", "0.5362194", "0.5269986", "0.52122396", "0.51971376", "0.51924133", "0.5145193", "0.5134191", "0.5091372", "0.50747526", "0.50718915", "0.50715333", "0.5051602", "0.50423056", "0.5039183", "0.5024072", "0.5009842", "0.4972677", "0.497093"...
0.54721093
0
MN FIXED addFKs 24 June 2014
private void addFKs(String attrs[], int relNum) { //for(int i = 1; i < numOfTgtTables; i++) //{ // add a variable number of foreign keys per table (always the first keySize attributes) //MN fixed the errors of incorrectly generating foreign key - 24 June 2014 //for (int j = 0; j < keySize; j++) //ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFKsNoReuse() \n\t{\n\t\t\tfor(int i = 1; i < numOfTgtTables; i++) \n\t\t\t{\n\t\t\t\t// add a variable number of foreign keys per table (always the first keySize attributes)\n\t\t\t\t//MN fixed the errors of incorrectly generating foreign key - 24 June 2014\n\t\t\t\t//for (int j = 0; j < keySize; j...
[ "0.5470918", "0.544711", "0.53869414", "0.5381968", "0.5362013", "0.52125597", "0.51981705", "0.51926476", "0.51457113", "0.5135086", "0.50925857", "0.5074853", "0.5071794", "0.5070333", "0.50521827", "0.50441194", "0.50389045", "0.5023327", "0.5009262", "0.49720109", "0.4971...
0.526976
5
Created by nengneng on 2017/6/6.
public interface UserService { ResponseEntity<?> login(String username, String password, HttpSession session); //用户登录 ResponseEntity<?> auth(String username,String password); //获取token ResponseEntity<?> register(String username,String password); //用户注册 ResponseEntity<?> getOne(long userId); Res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Ov...
[ "0.63257724", "0.6236422", "0.61054385", "0.605081", "0.60470825", "0.60281485", "0.59948474", "0.59700054", "0.59700054", "0.5948236", "0.5899361", "0.58991545", "0.58988774", "0.58789194", "0.58788526", "0.58788526", "0.58679736", "0.58592623", "0.58582264", "0.5839622", "0...
0.0
-1
DA layer for access to Account
public interface AccountDao { /** * Get one account with accountNumber * * @param accountNumber unique number for account * @return Account or null */ Account getAccount(Integer accountNumber); /** * Get one account with accountNumber * * @param accountNumber unique...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Account getAccount();", "public void openAccount(Account a) {}", "public interface Account extends LrsObject {\n /**\n * The canonical home page for the system the account is on. This is based on FOAF's accountServiceHomePage.\n */\n InternationalizedResourceLocator getHomePage();\n\n /**\n ...
[ "0.69053257", "0.6790178", "0.64661086", "0.64269614", "0.6404597", "0.6404597", "0.6390048", "0.63707346", "0.63478416", "0.63133115", "0.6248354", "0.62457025", "0.6233993", "0.62316084", "0.62293893", "0.6213538", "0.6211717", "0.61708087", "0.6159211", "0.6150878", "0.615...
0.57295823
88
Get one account with accountNumber
Account getAccount(Integer accountNumber);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AccountDetail getAccount(String number) throws Exception;", "private Account getAccount( int accountNumber )\n {\n for( Account currentAccount : accounts )\n {\n if( currentAccount.getAccountNumber() == accountNumber )\n {\n return currentAccount;\n ...
[ "0.8464238", "0.8278287", "0.8094078", "0.7742639", "0.75002456", "0.7479184", "0.7350438", "0.7312385", "0.72948843", "0.72535276", "0.71504086", "0.7080233", "0.7057111", "0.70547855", "0.7039471", "0.69862235", "0.6979657", "0.6968448", "0.6923725", "0.69206846", "0.689317...
0.8571854
0
Get all accounts for user with login
List<Account> getAccounts(String login);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "Collection<Account> getAll();", "@Override\n\tpublic List<Account> findAllAccounts() {\n\t\treturn m_accountDao.findAll();\n\t}", "public List<Account> getAllAccounts() {\n List<Account> accounts = new Arr...
[ "0.7379987", "0.710506", "0.6919115", "0.6909216", "0.68929327", "0.68928826", "0.6842814", "0.6842814", "0.68127024", "0.68104964", "0.6784805", "0.6770508", "0.6747536", "0.67350686", "0.66938925", "0.6677502", "0.6673529", "0.66595227", "0.6656679", "0.66285443", "0.660732...
0.8038137
0
turns on vision then tracks
public AutoVisionTurretCommand() { addParallel(new VisionCommand(), 5); addSequential(new DelayedAimCommand()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void turn_on () {\n this.on = true;\n }", "public void setTurned(){\n\tIS_TURNED = true;\n\tvimage = turnedVimImage;\n }", "public void turnOn() {\n\t\tisOn = true;\n\t}", "public void turnOn( ) {\n\t\t\t\tSystem.out.println(\"Light is on \");\n\t\t}", "private void turnOnCamera() {\n ...
[ "0.6585142", "0.6583487", "0.64984214", "0.6438942", "0.63838786", "0.62422544", "0.61719", "0.61717093", "0.61076945", "0.607654", "0.6057839", "0.60056996", "0.60041595", "0.5999707", "0.59693646", "0.59536797", "0.59410506", "0.5923412", "0.59012246", "0.58696944", "0.5864...
0.0
-1
Constructor takes the context to allow the database to be opened/created
public StoreDataInSQLite(Context ctx) { this.mCtx = ctx; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Database(Context context)\n\t{\n\t\t/* Instanciation de l'openHelper */\n\t\tDBOpenHelper helper = new DBOpenHelper(context);\n\t\t\n\t\t/* Load de la database */\n\t\t//TODO passer en asynchrone pour les perfs\n\t\tmainDatabase = helper.getWritableDatabase();\n\t\t\n\t\t/* DEBUG PRINT */\n\t\tLog.i(\"info\...
[ "0.82127976", "0.8172776", "0.79335254", "0.7910171", "0.78970575", "0.78838015", "0.7859239", "0.7779108", "0.77768016", "0.7761403", "0.7725226", "0.77057046", "0.7638482", "0.76245964", "0.7620207", "0.761612", "0.7555823", "0.75352603", "0.7511463", "0.7485957", "0.745304...
0.0
-1
Before the test is run set up the test data store helper and create a new instance of the
@Before public void setUp() throws Exception { testHelper.setUp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_COD...
[ "0.7190607", "0.69202185", "0.6878658", "0.67928916", "0.6759698", "0.67040193", "0.6683036", "0.6678973", "0.66649634", "0.6642202", "0.66134113", "0.65744615", "0.65262944", "0.64912534", "0.64276975", "0.6422596", "0.6412321", "0.6393823", "0.63898575", "0.6383117", "0.637...
0.63317347
25
After the test is run, user the helper to remove the data store entities that were involved in the test as they are unneeded
@After public void tearDown() throws Exception { testHelper.tearDown(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeEach\n\tpublic void cleanDataBase()\n\t{\n\t\taddRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t\t\n\t\tdomRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t}", "@After\n public void after() {\n pl.getEntityManager().clear();\n }", "@After\n ...
[ "0.73327", "0.72661763", "0.7209942", "0.71508723", "0.7072379", "0.70622414", "0.70130163", "0.6950393", "0.6733236", "0.6719222", "0.67101055", "0.6693262", "0.6679986", "0.66674554", "0.66334414", "0.66294783", "0.66081846", "0.660699", "0.65990305", "0.6590608", "0.658447...
0.0
-1
Created by Edgar on 2016/6/30.
@ProxyGen @VertxGen public interface MyService { void say(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.6045984", "0.58730847", "0.5850888", "0.5843326", "0.5737674", "0.5728922", "0.5728922", "0.5717737", "0.57115257", "0.5656691", "0.5629494", "0.56149834", "0.5610957", "0.5597055", "0.55926543", "0.5584092", "0.5575276", "0.55602014", "0.5557739", "0.5557607", "0.5537692"...
0.0
-1
add a new depaarture to collection
public void addFlight(String flightNumber, String terminalname, String destinationCity, String departureTime) { flightList.putIfAbsent(flightNumber, new Departures(flightNumber, terminalname, destinationCity, departureTime)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AddDep(Department dep) {\n\t\tddi.Add(dep);\n\t\t\n\t}", "private void addPayeeToCollection() {\n\t\tif (getForm().getType() != TRANSFER) {\n\t\t\tPayee payee = new Payee(getForm().getPayFrom());\n\n\t\t\tif (payee.getIdentifier().length() != 0) {\n\t\t\t\tgetPayees().add(payee);\n\t\t\t\tgetForm().g...
[ "0.6334456", "0.5838828", "0.56833947", "0.5682055", "0.56581235", "0.56483775", "0.5611292", "0.55729324", "0.5572892", "0.5567881", "0.5560132", "0.55594057", "0.5559177", "0.555658", "0.5555826", "0.5555425", "0.5542961", "0.55263454", "0.5509454", "0.5473235", "0.54719067...
0.5086458
85
private static final String serverPath = "d:\\test\\111\\";
public TestServerApi() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setServerPath(@NotNull String serverPath) { this.myServerPath = serverPath; }", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "@Test\n public void testSetFolderNamePath() {\n System.out.println(\"setFol...
[ "0.64179057", "0.6258224", "0.5925306", "0.5878752", "0.58712626", "0.584947", "0.58263654", "0.57165647", "0.56283545", "0.56277865", "0.5549731", "0.55461794", "0.553083", "0.5525501", "0.53908116", "0.5385961", "0.5381913", "0.5379627", "0.5346286", "0.5322216", "0.5312598...
0.0
-1
A newCachedThreadPool with given ThreadFactory can execute runnables
public void testNewCachedThreadPool2() { final ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory()); try (PoolCleaner cleaner = cleaner(e)) { e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void useCachedThreadPool() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n\n executor.execute(() -> {\n System.out.println(\"==========\");\n });\n\n System.out...
[ "0.62284935", "0.6080023", "0.6014803", "0.5887917", "0.58762616", "0.58698195", "0.57630974", "0.5736035", "0.57247484", "0.568378", "0.5655777", "0.5630085", "0.5625458", "0.56235856", "0.561875", "0.5614708", "0.56144345", "0.5585072", "0.5550768", "0.55237573", "0.5506100...
0.6286632
0
A newCachedThreadPool with null ThreadFactory throws NPE
public void testNewCachedThreadPool3() { try { ExecutorService e = Executors.newCachedThreadPool(null); shouldThrow(); } catch (NullPointerException success) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewFixedThreadPool3() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(2, null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void testNewCachedThreadPool2() {\n final ExecutorService e = Executors.newCachedTh...
[ "0.7106065", "0.7025443", "0.6940468", "0.6734056", "0.6456616", "0.6418117", "0.63256854", "0.62741643", "0.6247198", "0.6205201", "0.6168833", "0.6112017", "0.6106656", "0.60664827", "0.6041328", "0.6019585", "0.5936152", "0.5906643", "0.59020144", "0.58992034", "0.58664954...
0.79828906
0
A new SingleThreadExecutor can execute runnables
public void testNewSingleThreadExecutor1() { final ExecutorService e = Executors.newSingleThreadExecutor(); try (PoolCleaner cleaner = cleaner(e)) { e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewSingleThreadExecutor2() {\n final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunn...
[ "0.7046557", "0.6530956", "0.65187436", "0.6336594", "0.63001096", "0.6285842", "0.62422657", "0.61904365", "0.61297035", "0.6085775", "0.6067942", "0.6058564", "0.6016937", "0.5942038", "0.5909074", "0.5888382", "0.5877324", "0.58646846", "0.58632606", "0.5859741", "0.585651...
0.70716035
0
A new SingleThreadExecutor with given ThreadFactory can execute runnables
public void testNewSingleThreadExecutor2() { final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory()); try (PoolCleaner cleaner = cleaner(e)) { e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n ...
[ "0.6373823", "0.60498536", "0.5993801", "0.5892734", "0.58380765", "0.58209115", "0.5817539", "0.5810148", "0.57851666", "0.5728959", "0.5726606", "0.5706181", "0.5681519", "0.5647635", "0.56137335", "0.5588258", "0.5573986", "0.5573961", "0.5560554", "0.55366296", "0.5535197...
0.6503955
0
A new SingleThreadExecutor with null ThreadFactory throws NPE
public void testNewSingleThreadExecutor3() { try { ExecutorService e = Executors.newSingleThreadExecutor(null); shouldThrow(); } catch (NullPointerException success) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n }", "public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable(...
[ "0.7044971", "0.701917", "0.70033735", "0.6456199", "0.6373457", "0.6365218", "0.63019973", "0.62990135", "0.6295157", "0.6225891", "0.6152439", "0.6150687", "0.6121072", "0.6112016", "0.6085198", "0.6063539", "0.6053164", "0.60204196", "0.60029566", "0.5934551", "0.5934414",...
0.74290174
0
A new SingleThreadExecutor cannot be casted to concrete implementation
public void testCastNewSingleThreadExecutor() { final ExecutorService e = Executors.newSingleThreadExecutor(); try (PoolCleaner cleaner = cleaner(e)) { try { ThreadPoolExecutor tpe = (ThreadPoolExecutor)e; shouldThrow(); } catch (ClassCastException...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ThreadExecutor extends Executor {\n}", "public abstract T executor(@Nullable Executor executor);", "@NonNull\n public static Executor directExecutor() {\n return DirectExecutor.getInstance();\n }", "public interface Executor<T> {\n\n void submit(T arg);\n\n}", "public void ...
[ "0.7375924", "0.66472745", "0.6350426", "0.6197253", "0.60984236", "0.60926497", "0.60592324", "0.60362214", "0.6013583", "0.5993712", "0.5986656", "0.59260976", "0.587074", "0.58471215", "0.58321655", "0.5813613", "0.5810744", "0.5787835", "0.5775828", "0.5763942", "0.572805...
0.7309522
1
A new newFixedThreadPool can execute runnables
public void testNewFixedThreadPool1() { final ExecutorService e = Executors.newFixedThreadPool(2); try (PoolCleaner cleaner = cleaner(e)) { e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds...
[ "0.7172644", "0.6886567", "0.685927", "0.6632945", "0.66283894", "0.65816295", "0.65438056", "0.65070564", "0.6497593", "0.6392227", "0.62993705", "0.6291912", "0.6286407", "0.62736887", "0.6263639", "0.624488", "0.62435627", "0.6236415", "0.62149256", "0.6213128", "0.6204833...
0.7154762
1
A new newFixedThreadPool with given ThreadFactory can execute runnables
public void testNewFixedThreadPool2() { final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory()); try (PoolCleaner cleaner = cleaner(e)) { e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "pu...
[ "0.6574999", "0.63586587", "0.6282074", "0.61708266", "0.6155707", "0.6104234", "0.6100526", "0.5955829", "0.5937834", "0.5899761", "0.5896704", "0.58858716", "0.58777654", "0.5847829", "0.5824794", "0.5817545", "0.5809743", "0.57958883", "0.5794031", "0.5770858", "0.5747284"...
0.6457985
1
A new newFixedThreadPool with null ThreadFactory throws NPE
public void testNewFixedThreadPool3() { try { ExecutorService e = Executors.newFixedThreadPool(2, null); shouldThrow(); } catch (NullPointerException success) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewCachedThreadPool3() {\n try {\n ExecutorService e = Executors.newCachedThreadPool(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n ...
[ "0.7415301", "0.720249", "0.7147715", "0.71385926", "0.6943975", "0.6750585", "0.65135384", "0.64957917", "0.63587564", "0.63559157", "0.6352082", "0.6348036", "0.63211167", "0.62340844", "0.62330556", "0.6207553", "0.6201797", "0.61878437", "0.61704487", "0.6141263", "0.6078...
0.77599525
0
A new newFixedThreadPool with 0 threads throws IAE
public void testNewFixedThreadPool4() { try { ExecutorService e = Executors.newFixedThreadPool(0); shouldThrow(); } catch (IllegalArgumentException success) {} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewFixedThreadPool3() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(2, null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void testNewCachedThreadPool3() {\n try {\n ExecutorService e = Executor...
[ "0.74492854", "0.6935998", "0.6881092", "0.67339855", "0.6620809", "0.6546968", "0.6533831", "0.64518344", "0.6367379", "0.63422287", "0.62211806", "0.6159708", "0.6151389", "0.6139049", "0.6129588", "0.6114435", "0.6008699", "0.6001511", "0.59468853", "0.5917783", "0.5904822...
0.78610384
0
An unconfigurable newFixedThreadPool can execute runnables
public void testUnconfigurableExecutorService() { final ExecutorService e = Executors.unconfigurableExecutorService(Executors.newFixedThreadPool(2)); try (PoolCleaner cleaner = cleaner(e)) { e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewFixedThreadPool4() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(0);\n shouldThrow();\n } catch (IllegalArgumentException success) {}\n }", "public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThread...
[ "0.70430773", "0.6852535", "0.673844", "0.6681156", "0.6555826", "0.65535015", "0.6504719", "0.626137", "0.62439007", "0.62385195", "0.6229549", "0.6206264", "0.6196264", "0.6187316", "0.6183845", "0.6178413", "0.6134481", "0.6133776", "0.6100384", "0.60999155", "0.6060156", ...
0.60825986
20
a newSingleThreadScheduledExecutor successfully runs delayed task
public void testNewSingleThreadScheduledExecutor() throws Exception { final ScheduledExecutorService p = Executors.newSingleThreadScheduledExecutor(); try (PoolCleaner cleaner = cleaner(p)) { final CountDownLatch proceed = new CountDownLatch(1); final Runnable task = new CheckedR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n Measur...
[ "0.67787766", "0.6532767", "0.6485708", "0.64654326", "0.6405001", "0.6359963", "0.63524115", "0.6289068", "0.62847537", "0.62659305", "0.6265618", "0.62583625", "0.61419433", "0.61418134", "0.6098422", "0.60940397", "0.6089948", "0.6052775", "0.6026015", "0.60177875", "0.601...
0.6579664
1
a newScheduledThreadPool successfully runs delayed task
public void testNewScheduledThreadPool() throws Exception { final ScheduledExecutorService p = Executors.newScheduledThreadPool(2); try (PoolCleaner cleaner = cleaner(p)) { final CountDownLatch proceed = new CountDownLatch(1); final Runnable task = new CheckedRunnable() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scheduledTask() {\n connectToNewViews();\n removeDisconnectedViews();\n try {\n Thread.sleep(SCHEDULED_TASK_PERIOD);\n // Scheduling future execution\n\n synchronized (threadPool) {\n if (!threadPool.isShutdown()) {\n ...
[ "0.7236823", "0.70600593", "0.6727243", "0.67061895", "0.663097", "0.66304153", "0.6535021", "0.6531509", "0.64821666", "0.6422245", "0.6401466", "0.637604", "0.62836355", "0.62767786", "0.62553436", "0.62311333", "0.6229418", "0.62156487", "0.619482", "0.6182855", "0.6152842...
0.7105438
1
an unconfigurable newScheduledThreadPool successfully runs delayed task
public void testUnconfigurableScheduledExecutorService() throws Exception { final ScheduledExecutorService p = Executors.unconfigurableScheduledExecutorService (Executors.newScheduledThreadPool(2)); try (PoolCleaner cleaner = cleaner(p)) { final CountDownLatch proceed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNewScheduledThreadPool() throws Exception {\n final ScheduledExecutorService p = Executors.newScheduledThreadPool(2);\n try (PoolCleaner cleaner = cleaner(p)) {\n final CountDownLatch proceed = new CountDownLatch(1);\n final Runnable task = new CheckedRunnable() ...
[ "0.72077656", "0.71684086", "0.7163372", "0.67716396", "0.6743569", "0.6643054", "0.6619646", "0.658632", "0.65660775", "0.65652156", "0.64955014", "0.64943933", "0.6365527", "0.63384694", "0.63333565", "0.6282191", "0.6221466", "0.62105983", "0.6189641", "0.61824477", "0.617...
0.68004364
3
Future.get on submitted tasks will time out if they compute too long.
public void testTimedCallable() throws Exception { final ExecutorService[] executors = { Executors.newSingleThreadExecutor(), Executors.newCachedThreadPool(), Executors.newFixedThreadPool(2), Executors.newScheduledThreadPool(2), }; final Runnable ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "V m19259a(long j) throws TimeoutException, CancellationException, ExecutionException, InterruptedException {\n if (tryAcquireSharedNanos(-1, j)) {\n return getValue();\n }\n throw new TimeoutException(\"Timeout waiting for task.\");\n }", "Future_<V> submit(...
[ "0.6242825", "0.61916685", "0.61274385", "0.6084953", "0.6037387", "0.60134447", "0.59675765", "0.5924886", "0.58773667", "0.5813602", "0.5808056", "0.57163656", "0.5675867", "0.56449306", "0.56325525", "0.56103474", "0.5582323", "0.5533586", "0.5501042", "0.5496935", "0.5494...
0.0
-1
ThreadPoolExecutor using defaultThreadFactory has specified group, priority, daemon status, and name
public void testDefaultThreadFactory() throws Exception { final ThreadGroup egroup = Thread.currentThread().getThreadGroup(); final CountDownLatch done = new CountDownLatch(1); Runnable r = new CheckedRunnable() { public void realRun() { try { Thre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ThreadPool getDefaultThreadPool();", "@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n }", "public NamedThreadFactory(String name)\n {\n this(name, null);\n }", "public ExecutorService createExecutor() {\n return getCamelContext().getExec...
[ "0.6785512", "0.6641957", "0.6521807", "0.64724976", "0.6350054", "0.63274413", "0.6303769", "0.62401867", "0.621776", "0.61935407", "0.61266", "0.60664976", "0.6066467", "0.6051026", "0.6019021", "0.59847504", "0.59794575", "0.59766734", "0.59531814", "0.59131294", "0.589558...
0.77024835
0