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
performs create BoostAndBlock test
@SuppressWarnings("unused") @Test(dataProvider = "boostandblockdata", dataProviderClass=com.bestbuy.searchplatform.integrationtests.commons.TestDataProvider.class,dependsOnMethods = {"testFetchSkuId"}) public void testCreate(BoostsAndBlock boostAndBlock) throws Exception{ for (Entry<String, BoostsAndBlock> entry : ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TestBlock createTestBlock();", "TestFirstBlock createTestFirstBlock();", "TeststepBlock createTeststepBlock();", "@Test\n public void testBlock() {\n System.out.println(\"block\");\n //instance.block();\n }", "BAnyBlock createBAnyBlock();", "private void testAutoGenBlock(Class<Block> ...
[ "0.7554425", "0.68995976", "0.68811494", "0.65842354", "0.6581646", "0.6541452", "0.6467989", "0.63826406", "0.6288448", "0.62560713", "0.6233712", "0.6196383", "0.619446", "0.61825323", "0.60854244", "0.6002215", "0.59863466", "0.5961801", "0.594497", "0.5944526", "0.5870823...
0.7321684
1
performs Approve BoostAndBlock Test
@Test(dependsOnMethods = "testCreate") public void testApprove() throws Exception{ String url = getProperty(BT_REST_URL)+BOOSTBLOCK_APPROVE+"/"; log.info("approve boostandblock resturi = "+url); for (Integer boostBlockId : getBoostAndBlocksMap().keySet()) { HttpEntity<Integer> entity = new HttpEntity<Integer>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void updateBlock() throws Exception {\n\n }", "@Test\n public void testBlockadeCommand() {\n d_orderProcessor.processOrder(\"blockade china\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0...
[ "0.6398802", "0.60641825", "0.598096", "0.597096", "0.5870314", "0.57693464", "0.57551974", "0.5747747", "0.57292694", "0.56707925", "0.56660414", "0.56638324", "0.5560929", "0.5523144", "0.55169207", "0.5510951", "0.5495457", "0.54900986", "0.5468278", "0.5461708", "0.545735...
0.74366033
0
Creates a new instance of MbCoordDpto
public MbCoordDpto() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "Coordinate createCoordinate();", "public Coordenada() {\n }", "protected Coord() {\n\t}", "public static Coordinate create2DM(double x, double y, double m) {\r\n return new Coordinate(x, y, Doubl...
[ "0.69149095", "0.6544297", "0.63817513", "0.631331", "0.6278666", "0.61754555", "0.60270923", "0.5979874", "0.5919122", "0.5790457", "0.57414794", "0.56790835", "0.5676022", "0.56665957", "0.5655138", "0.5651067", "0.5616703", "0.55842245", "0.5556886", "0.5537704", "0.550901...
0.8367677
0
Turn a pair of iterators over intervals and locatables, into a single iterator over pairs made up of an interval and the locatables that overlap it. Intervals with no overlapping locatables are included.
static <L extends Locatable, I extends Locatable> Iterator<Tuple2<I, Iterable<L>>> locatablesPerShard(Iterator<L> locatables, Iterator<I> shards, SAMSequenceDictionary sequenceDictionary, int maxLocatableLength) { if (!shards.hasNext()) { return Collections.emptyIterator(); } Peeking...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static List<Interval> merge(List<Interval> intervals) {\n intervals.sort((Interval interval1, Interval interval2) -> Integer.compare(interval1.start, interval2.start));\n\n Iterator<Interval> itr = intervals.iterator();\n\n List<Interval> result = new ArrayList<>();\n Interval first = i...
[ "0.5699106", "0.553382", "0.53820086", "0.5366496", "0.5317475", "0.5288288", "0.52698827", "0.52483404", "0.5246091", "0.5205066", "0.5195333", "0.51680547", "0.5134447", "0.5125952", "0.5081982", "0.50627816", "0.50181913", "0.497735", "0.49652404", "0.49377614", "0.4936559...
0.45552963
53
For each partition, find the interval that spans it, ordered by start position.
static <L extends Locatable> List<PartitionLocatable<SimpleInterval>> computePartitionReadExtents(JavaRDD<L> locatables, SAMSequenceDictionary sequenceDictionary, int maxLocatableLength) { // Find the first locatable in each partition. This is very efficient since only the first record in each partition is read...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<Integer> getSplitBeginIndexes(TimeSeries series, Duration splitDuration) {\n ArrayList<Integer> beginIndexes = new ArrayList<>();\n\n int beginIndex = series.getBeginIndex();\n int endIndex = series.getEndIndex();\n \n // Adding the first begin index\n ...
[ "0.61192906", "0.6009955", "0.58471733", "0.5676837", "0.5568429", "0.55632716", "0.5536709", "0.54824567", "0.54821736", "0.5477219", "0.5436388", "0.54359674", "0.5413345", "0.5396969", "0.53928375", "0.5370994", "0.52958184", "0.52927065", "0.52520335", "0.5235065", "0.520...
0.48293182
72
TODO Autogenerated method stub
@Override public String getMatch() { return match; }
{ "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
TODO Autogenerated method stub
@Override public String getTeam() { return team; }
{ "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
The Package for the model. It contains accessors for the meta objects to represent each class, each feature of each class, each enum, and each data type
public interface ChecklistPackage extends EPackage { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String copyright = "Copyright (c) 2010 National Aeronautics and Space Administration"; //$NON-NLS-1$ /** * The package name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IoT_metamodelPackage getIoT_metamodelPackage();", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AG...
[ "0.6518851", "0.6064014", "0.60479456", "0.6018953", "0.59963036", "0.5955223", "0.59520876", "0.5933447", "0.59185934", "0.59100384", "0.59010386", "0.5899567", "0.5875668", "0.58519924", "0.58457804", "0.5837373", "0.5829919", "0.58254254", "0.5811207", "0.5808459", "0.5808...
0.0
-1
Returns the factory that creates the instances of the model.
ChecklistFactory getChecklistFactory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ModelsFactory getModelsFactory();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "TestModelFactory getTestModelFactory();", "BehaviouralModelFactory getBehaviouralModelFactory();", "public static Factory factory() {\n return ext_dbf::new;\n }", "public ValueFactory<K...
[ "0.73656464", "0.71467894", "0.70424396", "0.6673694", "0.66426784", "0.65413994", "0.6425904", "0.63775754", "0.6323315", "0.6280802", "0.6186989", "0.61752236", "0.6167794", "0.61507034", "0.6150288", "0.6131696", "0.61302555", "0.6126224", "0.61256546", "0.6124755", "0.611...
0.0
-1
Defines literals for the meta objects that represent each class, each feature of each class, each enum, and each data type
interface Literals { /** * The meta object literal for the '{@link net.certware.verification.checklist.impl.CategoryImpl <em>Category</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see net.certware.verification.checklist.impl.CategoryImpl * @see net.certware.verification.checklist.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateCoreTypes() {\n\t\tvoidDt = new VoidDataType(progDataTypes);\n\t\tArrayList<TypeMap> typeList = new ArrayList<>();\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"undefined\", \"unknown\", false, false));\n\n\t\tfor (DataType dt : Undefined.getUndefinedDataTypes()) {\n\t\t\ttypeList.add(new ...
[ "0.60051614", "0.5938192", "0.5877417", "0.5877374", "0.585194", "0.5744547", "0.5740427", "0.5658544", "0.5519597", "0.5480652", "0.5469793", "0.54398733", "0.54359275", "0.5429559", "0.541197", "0.5405765", "0.5381098", "0.5372225", "0.53683186", "0.5366885", "0.53476644", ...
0.5296305
27
Created by hocks on 27122016.
public interface AggregateRepository { void save(Aggregate aggregate); <T extends Aggregate> T byId(String id, Class<T> cls); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.6005887", "0.59037954", "0.58402663", "0.5823821", "0.57468784", "0.5715929", "0.5715929", "0.5701974", "0.56925654", "0.56723297", "0.56663203", "0.5643272", "0.56281334", "0.56281286", "0.56171286", "0.5614986", "0.5614986", "0.5614986", "0.5614986", "0.5614986", "0.5595...
0.0
-1
makes sure the generated TestBundle contains this import!
@ProbeBuilder public TestProbeBuilder probeConfiguration(TestProbeBuilder probe) { probe.setHeader(Constants.DYNAMICIMPORT_PACKAGE, "*"); return probe; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void isBundleTest() {\n // TODO: test isBundle\n }", "public void testBasicWeavingNoDynamicImport() throws Exception {\n\t\t// Install the bundles necessary for this test\n\t\tServiceRegistration<WeavingHook> reg = null;\n\t\tConfigurableWeavingHook hook = new ConfigurableWeavingHook(...
[ "0.6417814", "0.6258839", "0.60935724", "0.60765547", "0.60232216", "0.59381366", "0.59037775", "0.58884823", "0.58139753", "0.57454985", "0.5740788", "0.569271", "0.56846625", "0.5671998", "0.5667556", "0.56506526", "0.5619391", "0.55936027", "0.55748135", "0.5536052", "0.55...
0.0
-1
TODO Type Consumer cannot be used for this method signature to avoid bundle dependency to pax tinybundles
protected Bundle installBlueprintAsBundle(String name, URL url, boolean start, Consumer<Object> consumer) throws BundleException { TinyBundle bundle = TinyBundles.bundle(); bundle.add("OSGI-INF/blueprint/blueprint-" + name.toLowerCase(Locale.ENGLISH) + ".xml", url); bundle.set("Manifest-Version"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C2331r<T> {\n /* renamed from: g */\n Bundle mo7259g();\n}", "public abstract void bundle(Bundle bundle);", "@ProviderType\npublic interface AtomosContent extends Comparable<AtomosContent>\n{\n\n /**\n * The location of the Atomos content. The location\n * always includes the ...
[ "0.59915006", "0.5928021", "0.57860076", "0.5495066", "0.5401971", "0.53964174", "0.53614044", "0.53431994", "0.52723813", "0.52080405", "0.52011824", "0.51677656", "0.51476187", "0.5143339", "0.5125185", "0.5119178", "0.509958", "0.50783944", "0.5061284", "0.5047796", "0.503...
0.0
-1
TODO Type Consumer cannot be used for this method signature to avoid bundle dependency to pax tinybundles
protected Bundle installSpringAsBundle(String name, URL url, boolean start, Consumer<Object> consumer) throws BundleException { TinyBundle bundle = TinyBundles.bundle(); bundle.add("META-INF/spring/spring-" + name.toLowerCase(Locale.ENGLISH) + ".xml", url); bundle.set("Manifest-Version", "2") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C2331r<T> {\n /* renamed from: g */\n Bundle mo7259g();\n}", "public abstract void bundle(Bundle bundle);", "@ProviderType\npublic interface AtomosContent extends Comparable<AtomosContent>\n{\n\n /**\n * The location of the Atomos content. The location\n * always includes the ...
[ "0.59907734", "0.59238464", "0.57843995", "0.54910964", "0.5403692", "0.5395438", "0.53616667", "0.53417337", "0.5274519", "0.5203496", "0.5199633", "0.5171071", "0.5148087", "0.51430386", "0.51260984", "0.5120105", "0.5102702", "0.50773317", "0.505827", "0.5049505", "0.50409...
0.0
-1
Explode the dictionary into a , delimited list of key=value pairs.
private static String explode(Dictionary<?, ?> dictionary) { Enumeration<?> keys = dictionary.keys(); StringBuilder result = new StringBuilder(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); result.append(String.format("%s=%s", key, dictionary.get(key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String explode(Dictionary dictionary) {\n Enumeration keys = dictionary.keys();\n StringBuffer result = new StringBuffer();\n while (keys.hasMoreElements()) {\n Object key = keys.nextElement();\n result.append(String.format(\"%s=%s\", key, dictionary.get(ke...
[ "0.67595994", "0.5475782", "0.53188604", "0.5312207", "0.5311498", "0.51371527", "0.5072214", "0.48831308", "0.48828423", "0.48712415", "0.47834158", "0.47682208", "0.47671056", "0.47394505", "0.47289228", "0.472152", "0.46534735", "0.46275613", "0.4600168", "0.45900917", "0....
0.65477574
1
Provides an iterable collection of references, even if the original array is null.
private static Collection<ServiceReference> asCollection(ServiceReference[] references) { return references == null ? new ArrayList<>(0) : Arrays.asList(references); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Reference> getReferences();", "public final List<Element> getReferences() {\r\n return this.getReferences(true, true);\r\n }", "public java.lang.Object[] getRelationsAsReference() {\n return relationsAsReference;\n }", "public Set<DependencyElement> getReferences() {\n\t...
[ "0.67887026", "0.65790844", "0.62887675", "0.62168545", "0.6166108", "0.61626136", "0.5956519", "0.5907558", "0.5824696", "0.58063704", "0.5797959", "0.575067", "0.57384026", "0.56757116", "0.5566762", "0.5556379", "0.55395365", "0.55334157", "0.55148697", "0.5513643", "0.546...
0.5193128
45
todo: search making a class overridable
public PacketHandler() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void checkSubclass() {\n }", "Object getClass_();", "Object getClass_();", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void ch...
[ "0.6830852", "0.67406774", "0.67406774", "0.66773236", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", "0.6635029", ...
0.0
-1
Once the map has been loaded by the Webview, initialize the map details.
@Override public void mapInitialized() { final LatLong center = new LatLong(32.777, 35.0225); System.out.println("got here"); mapComponent.addMapReadyListener(() -> checkCenter(center)); // lblClick.setText((center + "")); final MapOptions options = new MapOptions(); options.center(center).zoom(12).overvie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupWebView() {\n\t\twebView = (WebView) findViewById(R.id.webview);\n\t\twebView.getSettings().setJavaScriptEnabled(true);\n\t\twebView.addJavascriptInterface(new JavaScriptInterface(this), \"Android\");\n\t\twebView.loadUrl(MAP_URL);\n\t}", "@Override\n public void onMapReady(GoogleMap googleM...
[ "0.7273918", "0.7231142", "0.7211071", "0.7174598", "0.71012944", "0.70948523", "0.7081313", "0.7048324", "0.70262", "0.70075434", "0.69751984", "0.6963323", "0.69559216", "0.6945963", "0.6937398", "0.6925278", "0.6921275", "0.69149184", "0.6907227", "0.6903614", "0.688404", ...
0.65132445
77
/ Check whether the component has any static constraints that would prevent it from being added to the container.
static boolean canAddComponentToContainer(IDisplayModel displayModel, IComponent component, IContainer container, boolean forPalette, StatusHolder holder) { StatusBuilder builder = new StatusBuilder(ComponentSystemPlugin.getDefault()); IAttributes attr = (IAttributes) component.getAdapter(IAttributes.cla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasInputConstraints();", "private boolean hasValidBounds() {\n\n\n\n return false;\n }", "static boolean requiresContainmentQuery(IComponent component, IContainer container, StatusHolder holder) {\r\n\t\tStatusBuilder builder = new StatusBuilder(ComponentSystemPlugin.getDefault());\r\n\t\tIAt...
[ "0.62891614", "0.61942744", "0.60792935", "0.5899314", "0.579674", "0.5756912", "0.569866", "0.5677509", "0.56751436", "0.56751436", "0.5631898", "0.5611415", "0.5610201", "0.5585012", "0.5563027", "0.5545686", "0.5503607", "0.5489586", "0.54827976", "0.5462487", "0.5446627",...
0.5450025
20
/ Checks "never add" attribute and returns result and status
static boolean requiresContainmentQuery(IComponent component, IContainer container, StatusHolder holder) { StatusBuilder builder = new StatusBuilder(ComponentSystemPlugin.getDefault()); IAttributes attr = (IAttributes) component.getAdapter(IAttributes.class); if (attr == null) { if (holder != null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getPossiblyBad();", "public boolean getExempt();", "public boolean isDontCare(){\n return hasDontCare;\n }", "public boolean isExempt();", "boolean ignoresPermission();", "public Boolean getNotHasPermission()\r\n {\r\n return notHasPermission;\r\n }", "@Override\n publ...
[ "0.6275071", "0.6195006", "0.6185633", "0.6159247", "0.61051816", "0.6001337", "0.5983729", "0.5956738", "0.5883759", "0.58648247", "0.5862195", "0.5853995", "0.58344626", "0.5830798", "0.5804785", "0.57807493", "0.5763015", "0.57587606", "0.57369244", "0.572776", "0.5724642"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { char [][] tableau = new char [10] [10]; for(int i = 0 ; i < 10 ; i++ ){ for(int y = 0 ; y < 10 ; y++ ){ if (i %2 == 0 && y %2 == 1 ) { tableau [i] [y] = 'X'; } ...
{ "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
Ubah state menjadi loading
@Override public void onClick(View v) { btn_login.setEnabled(false); btn_login.setText("Loading.."); final String username = xusername.getText().toString(); final String password = xpassword.getText().toString(); reference = F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadStatus (){\n\t}", "public void load(BSGameState state);", "private void init() {\n StateManager.setState(new MenuState());\n }", "public void loading() {\n if (state == null) {\n state = new NodeState();\n }\n state.setState(ENodeState.Loading);\n ...
[ "0.65549624", "0.64733034", "0.637369", "0.6341336", "0.6304118", "0.62878525", "0.6240368", "0.6111904", "0.6107511", "0.6023469", "0.6023176", "0.59889525", "0.59455335", "0.5929854", "0.5911961", "0.59041256", "0.58937466", "0.5888474", "0.58720607", "0.5860736", "0.585605...
0.0
-1
no fields, only class is copied
public String getMode() { return "FUNC"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void copyConstructor(){\n\t}", "public void copy() {\n\n\t}", "public StudyClass getCopy(){\r\n String nc = className;\r\n String[] rc = roomConstraint.clone();\r\n return new StudyClass(internalId, classNum, nc, sks, rc, tConstraint.getCopy());\r\n }", "public abstract ...
[ "0.7100687", "0.692049", "0.6834525", "0.6801369", "0.6773242", "0.6730012", "0.6597238", "0.6595384", "0.65900356", "0.6551667", "0.6549155", "0.65085053", "0.65035933", "0.65035933", "0.6491138", "0.6490172", "0.6444513", "0.64413744", "0.6428335", "0.6412125", "0.6410966",...
0.0
-1
TODO Autogenerated method stub
public String getBulletinCount(String companyId) { long count = 0; Session session = getSession(); String hql = "select count(id) from AuctionBulletin a " + "where a.deleteFlag=0 and a.companyId=:companyId "; count = Long.parseLong(session.createQuery(hql).setString("companyId", companyId) .uniqueResult(...
{ "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
TODO Autogenerated method stub
@SuppressWarnings("unchecked") public List<AuctionBulletin> getBulletinList(String companyId, BasePage basePage) { List<AuctionBulletin> list = null; Session session = getSession(); String baseSql = "from AuctionBulletin a " + "where a.deleteFlag=0 and a.companyId=:companyId "; String baseOrder = " order...
{ "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
TODO Autogenerated method stub
public void saveAuctionBulletin(AuctionBulletin auctionBulletin) { getHibernateTemplate().saveOrUpdate(auctionBulletin); }
{ "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
TODO Autogenerated method stub
public AuctionBulletin getAuctionBulletin(String id) { return getHibernateTemplate().get(AuctionBulletin.class, Long.parseLong(id)); }
{ "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
TODO Autogenerated method stub
@SuppressWarnings("unchecked") public List<AuctionBulletin> getBulletinTopList(String companyId) { List<AuctionBulletin> list = null; Session session = getSession(); String baseSql = "from AuctionBulletin a " + "where a.deleteFlag=0 and a.companyId=:companyId "; String baseOrder = " order by cast(a.sortFlag...
{ "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
/ JADX WARN: Failed to parse method signature: (TE)V
private zzdov(zzdor zzdor, Object obj) { this.zzhgu = zzdor; this.zzhgq = obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatch...
[ "0.5930178", "0.5912139", "0.59022284", "0.59004664", "0.5884191", "0.5871579", "0.5825894", "0.5789113", "0.5770744", "0.5767323", "0.57628417", "0.5744093", "0.56989944", "0.568283", "0.5680035", "0.56718796", "0.5666154", "0.5656425", "0.56489545", "0.56293", "0.56147516",...
0.0
-1
Adds process directly to queue's tail
public void addProcess(Process p, PriorityQueue<Process> queue){ // FCFS add's process directly to the end. p.setOrder(order); order++; queue.add(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enqueue(process p) {\n\t\tqueue.addLast(p);\n\t}", "@Override\n\tpublic void addToQueue() {\n\t}", "public boolean addProcess(Process p){\n\t\tioQueue.insert(p);\n\t\tstats.maxIOQueueSize = Math.max(stats.maxIOQueueSize, ioQueue.getQueueLength());\n\t\tif(currentProcess == null){\n\t\t\tstart();\n\...
[ "0.6994554", "0.61847425", "0.61261845", "0.60335493", "0.5921869", "0.58606124", "0.58406216", "0.5801402", "0.57652694", "0.5751078", "0.5741115", "0.5716672", "0.5704917", "0.56822395", "0.56645304", "0.5654346", "0.56287295", "0.5628589", "0.5623061", "0.5622135", "0.5620...
0.68219507
1
Removes pold process from ready queue and then adds the new one in the same order
public void updProcess(Process pold, Process pnew, PriorityQueue<Process> queue) { int oldorder = pold.getOrder(); pnew.setOrder(oldorder); queue.add(pnew); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "private void killOverdueProcesses() {\r\n \t\tlong testTime = System.currentTimeMillis();\r\n \r\n \t\t// Kill off old ones\r\n\t\tMaximaProcess mp = pool.poll();\r\n \t\twhile (mp != null && mp.isOverdue(testTime)) {\r\n \t\t\tmp.kill();\r\...
[ "0.6639098", "0.65808994", "0.6530974", "0.63786817", "0.6355419", "0.6310398", "0.6307701", "0.6227091", "0.60878706", "0.6075729", "0.6056195", "0.6054831", "0.605122", "0.6028881", "0.5994728", "0.595455", "0.5927701", "0.5868079", "0.5852657", "0.585251", "0.5842308", "...
0.63744295
4
This method should be overriden in subclasses for different kinds.
protected boolean isAHit( int code ) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void type() {\n\t\t\n\t}", "protected Text getKind() {\n return null;\n }", "@Override\n public void perish() {\n \n }", "@Override\n public String getType() {\n return \"\";\n }", "@Override\n\tpublic int...
[ "0.6156259", "0.61550033", "0.60774976", "0.5960296", "0.5925999", "0.5899703", "0.58943135", "0.5860719", "0.5846787", "0.5825892", "0.5825892", "0.5825892", "0.5789055", "0.5787799", "0.57632005", "0.57388574", "0.57219005", "0.57141525", "0.5695679", "0.5668276", "0.564732...
0.0
-1
Function to update top screen
private void updatescreen2(){ screen2.setText(displayscreen2);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScreen()\n {\n super.updateScreen();\n }", "public void updateScreen(){}", "public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}", "@Override\n\tpublic void updateScreen() {\n\t\tfield_154330_a.tick();\n\t\tsuper.updateScreen();\n\t}", "public void updateScreen()\r\...
[ "0.74352", "0.7358041", "0.7052512", "0.6665359", "0.6663492", "0.66430306", "0.6610842", "0.66024655", "0.6537734", "0.65291333", "0.6512327", "0.64562863", "0.64315885", "0.6345494", "0.6280103", "0.62771606", "0.6269259", "0.62633026", "0.6251245", "0.6247464", "0.6235808"...
0.6479585
11
Function to update bottom screen
public void onclickmemplus(View v){ Button b = (Button)v; displayscreen=screen.getText().toString(); displayscreen2=screen2.getText().toString(); screen3.setText("M"); // Displays M if there is a number stored in the memory. if (displayscreen.equals("") && dis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScreen(){}", "public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}", "public void updateScreen()\n {\n super.updateScreen();\n }", "void update(){\r\n\t\twindowHeight = this.getHeight();\r\n\t}", "@Override\n\tpublic void updateScreen()\n {\n super.updateS...
[ "0.7494465", "0.72860146", "0.7265769", "0.6949711", "0.672729", "0.6711084", "0.6698413", "0.6691171", "0.6628448", "0.64305466", "0.6409146", "0.6407045", "0.63947535", "0.63924044", "0.637775", "0.6373216", "0.6368405", "0.63167214", "0.627804", "0.6275671", "0.6270149", ...
0.0
-1
memory recall button diplays the latest number in the memory.
public void onclickmrc(View v){ Button b = (Button)v; String t; t=df2.format(total); screen.setText(t); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showNextNumber(){\r\n int maximumNumberToDisplay = 1000;\r\n this.numberToDisplay++;\r\n resetIfNecessary(maximumNumberToDisplay);\r\n }", "private void updateMemInfo() {\n\t\tproNum = getRunningNum();\r\n\r\n\t\ttv_pronum.setText(\"进程总数:\" + proNum);\r\n\r\n\t\ttv_mem.setText...
[ "0.6773181", "0.6337253", "0.61107826", "0.6008429", "0.5999766", "0.5999127", "0.59134763", "0.5912758", "0.5912758", "0.5912758", "0.5912758", "0.5912758", "0.5912758", "0.5912758", "0.5899642", "0.58982915", "0.58950156", "0.58891624", "0.5862604", "0.5825828", "0.58160794...
0.0
-1
Function to evaluate percentage of a number
public void onclickpercent(View v){ Button b = (Button) v; String temp; double t; String y; displayscreen = screen.getText().toString(); displayscreen2 = screen2.getText().toString(); if (displayscreen.equals("") && displayscreen2.equals("")) //handle if display...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPercentageHeated();", "boolean hasPercentage();", "public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }", "java.lang.String getPercentage();", "int getRemainderPercent();", "public static double calculateValueInPercentage(double value) {\r\...
[ "0.7337811", "0.7284756", "0.7049473", "0.7025629", "0.6981395", "0.69066834", "0.6814697", "0.6766188", "0.67530847", "0.66735506", "0.665879", "0.6650909", "0.64566696", "0.64450896", "0.6393055", "0.6369869", "0.6364581", "0.635321", "0.63393533", "0.63256323", "0.63138103...
0.0
-1
Function for various operation
public double operation( String a, String b, String o){ switch (o){ case "+": return Double.valueOf(a) + Double.valueOf(b); case "-": return Double.valueOf(a) - Double.valueOf(b); case "x": return Double.valueOf(a) * Double.valueOf(b); case "÷":try{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operations operations();", "public static double operation(int num1,int num2,int operation){\r\n \r\n int result =0 ;\r\n switch(operation){\r\n case 1:\r\n result=num1+num2;\r\n break;\r\n case 2:\r\n result=num1-num2;\r\n break;\r\n case 3...
[ "0.7926094", "0.6718546", "0.66022676", "0.6524535", "0.6521723", "0.626541", "0.61832625", "0.6146536", "0.6145975", "0.6103591", "0.59784806", "0.5956634", "0.5956634", "0.5956634", "0.588109", "0.58790994", "0.5823713", "0.5823713", "0.58184594", "0.581094", "0.5792744", ...
0.563636
36
TODO Autogenerated method stub
@Override public String toString() { return this.name+" "+this.eid; }
{ "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
Add your code here
public Queue<E> uniquify() { String items = ""; int countBot = 0; while (!isEmpty()) { items += dequeue() + ","; countBot++; } Queue<E> toBeRetured = new LinkedQueue<>(); String temporary = ""; for (int x = 0; x < countBot; x++) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n // TODO Insert awesome here!\n \n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "CD...
[ "0.5855988", "0.5838013", "0.56610227", "0.5648113", "0.5616867", "0.5611202", "0.5548033", "0.5546017", "0.5516648", "0.5496705", "0.54831094", "0.54781085", "0.5477492", "0.5465211", "0.5456774", "0.54481786", "0.5441892", "0.5417797", "0.5408559", "0.53966296", "0.53951764...
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 700, 480); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JPanel panel = new JPanel(); panel.setBorder(new LineBorder(new Color(0, 0, 0))); panel.setBounds(14, 13, 250, 300);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_second); silent=(EditText)findViewById(R.id.silent); ring=(EditText)findViewById(R.id.ring); vibrate=(EditText)findViewById(R.id.vibrate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.7916877", "0.77266175", "0.7692944", "0.7692944", "0.7692944", "0.7692944", "0.7692944", "0.7692944", "0.76370615", "0.76370615", "0.7631434", "0.76186925", "0.76186925", "0.7543847", "0.75398576", "0.75398576", "0.75394464", "0.7527356", "0.75151396", "0.75092477", "0.750...
0.0
-1
TODO Autogenerated method stub
@SuppressLint("ShowToast") @Override public void onClick(View arg0) { StaticDB.setSilent( new String(silent.getText().toString())); StaticDB.setRing(new String(ring.getText().toString())); StaticDB.setVibrate(new String(vibrate.getText().toString())); Toast.makeText(getApplicationContext()...
{ "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
This method generates Hunger level
public static void Generatehungerlevels(int[] hungers, String [] aliens) { for( int i = 0; i<hungers.length ; i++){ String CurrentAlienName = aliens[i]; hungers[i] = getRandomStat(); CheckHunger(CurrentAlienName,hungers[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHungerLevel() {\n\t\treturn this.hungerCounter;\n\t}", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n ...
[ "0.68600476", "0.67638755", "0.67080534", "0.65801877", "0.6543049", "0.638467", "0.63100886", "0.63100886", "0.63018644", "0.63006616", "0.6275115", "0.6268821", "0.6205148", "0.61791986", "0.6178274", "0.6178274", "0.6178274", "0.6178274", "0.6178274", "0.6173009", "0.61447...
0.6499107
5
This method generates happiness level
public static void Generatehappinesslevels(int [] happy,String [] aliens) { for( int i = 0; i<happy.length ; i++){ String CurrentAlienName = aliens[i]; happy[i] = getRandomStat(); CheckHappy(CurrentAlienName,happy[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHappiness(int happiness);", "public int getHappiness() {\n \t\treturn happiness;\n \t}", "private void GenerateHealth(){\t\t\n\t\t\n\t\t//Update for the health powerup\n\t\tint randGen = rand.nextInt((int)((float)HEALTH_FREQUENCY * RANDOM_DEVIATION));\n\t\trandGen = (rand.nextBoolean()) ?-randGen :rand...
[ "0.6146664", "0.59571475", "0.59509534", "0.5876295", "0.58358437", "0.5752756", "0.56755346", "0.5631737", "0.5509906", "0.54631853", "0.5436984", "0.54151016", "0.5289052", "0.52382195", "0.51976115", "0.5160185", "0.51532745", "0.5111851", "0.5101559", "0.5075853", "0.5073...
0.6101583
1
Checks Hunger rate and prints out their mood they are in.
public static int CheckHunger(String name, int hunger){ System.out.println("On a Scale of 1-10,Alien Leader "+name+"`s hunger rate is "+hunger); // It will check the pet`s hunger level. if( hunger<4){ System.out.println("Calm"); }else if(hunger<6){ System.out.println("Tetchy"); }else if(hunger<=10){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkIfHungry(){\r\n\t\tif (myRC.getEnergonLevel() * 2.5 < myRC.getMaxEnergonLevel()) {\r\n\t\t\tmission = Mission.HUNGRY;\r\n\t\t}\r\n\t}", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.print...
[ "0.61159706", "0.5951692", "0.59500116", "0.56661797", "0.55624175", "0.5499999", "0.5493374", "0.5479539", "0.5477783", "0.5463459", "0.54584515", "0.54481256", "0.5430671", "0.54229003", "0.5421189", "0.5415578", "0.538382", "0.53655255", "0.5356441", "0.53533673", "0.53489...
0.68339074
0
This method check Alien`s Hunger level and Happy level
public static void printAliens(String[] aliens, int[] hungers,int [] happy) { for(int i = 0; i < aliens.length ; i++){ System.out.println(aliens[i] +" hunger level is " + hungers[i] + " and happy level is " + happy[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int CheckHunger(String name, int hunger){\n\t\tSystem.out.println(\"On a Scale of 1-10,Alien Leader \"+name+\"`s hunger rate is \"+hunger); // It will check the pet`s hunger level.\n\t\t\n\t\tif( hunger<4){\n\t\t\tSystem.out.println(\"Calm\"); \n\t\t}else if(hunger<6){\n\t\t\tSystem.out.println(\"Tet...
[ "0.6728753", "0.66632134", "0.61008537", "0.5811785", "0.5805859", "0.56958467", "0.56958467", "0.56958467", "0.56958467", "0.56814224", "0.56613487", "0.5612358", "0.5604055", "0.55918914", "0.5572708", "0.55517876", "0.5529091", "0.5517628", "0.5491802", "0.5472697", "0.544...
0.5595739
13
/ ............................................. / ............................................. / ATRIBUTOS ................................... / ............................................. / ............................................. / ............................................. / CONSTRUCTOR .....................
public Despeje55__() { super.setInicio(55); super.setFin(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Asignatura()\r\n\t{}", "public Alojamiento() {\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public Caso_de_uso () {\n }", "public Aktie() {\n }", "public Transportista() {\n }", "public DarAyudaAcceso() {\r\n }", "public AfiliadoVista() {\r\n }", "public Principal() {...
[ "0.76101965", "0.7264483", "0.7135666", "0.71065617", "0.69807416", "0.69426626", "0.6920083", "0.69180495", "0.6912009", "0.69099295", "0.688259", "0.68722117", "0.6848767", "0.6841491", "0.6774465", "0.6755661", "0.6708328", "0.66882867", "0.6675173", "0.6640867", "0.663746...
0.0
-1
/ ............................................. / ............................................. / METODOS ..................................... / .............................................
@Override public boolean contiene(Alarma alarma_actual) { try { int tiempo_transcurrido = diferenciaEntreFechas(alarma_actual); if (tiempo_transcurrido >= getInicio()) return true; } catch (NullPointerException excepcion) { return false; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void grabarMetaDato (Campo cm) throws IOException\r\n {\r\n cm.fWrite(maestro); \r\n }", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.gen...
[ "0.61293215", "0.6048646", "0.59757483", "0.5966347", "0.5960014", "0.59413016", "0.5915218", "0.58467925", "0.5775443", "0.5768375", "0.574818", "0.5744839", "0.57284135", "0.57141155", "0.57112455", "0.57100356", "0.5686719", "0.56615406", "0.56546503", "0.56498563", "0.564...
0.0
-1
/ Initialise _your_ module
public static void main(String args[]){ final Injector injector = Guice.createInjector(new FluxClientComponentModule(), new FluxClientInterceptorModule()); SampleReplayEventOnStateWithMultipleReplayEvent SampleReplayEventOnStateWithMultipleReplayEvent = injector.getInstance(SampleReplayEventOnStateWithM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initModules()\n {\n\n }", "private void init() {\n\n\t}", "public void init() {}", "public void init() {}", "void init();", "void init();", "void init();", "void init();", "void init();", "void init();", "void init();", "void init();", "void init();", "void init();", ...
[ "0.81408745", "0.76852006", "0.7575894", "0.7575894", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.7567853", "0.75662905", "0.75383544", "0.75383544", "0.75383544...
0.0
-1
PP4314 These methods duplicated from the CardResource. This kind of handling shouldn't be there in the first place, so will refactor to be embedded in services rather than at resource level
protected Response handleGatewayAuthoriseResponse(String chargeId, GatewayResponse<? extends BaseAuthoriseResponse> response) { return response.getGatewayError() .map(error -> handleError(chargeId, error)) .orElseGet(() -> response.getBaseResponse() .map(r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Card getCard(UUID cardId);", "public interface CardService {\n\n /**\n * Save a card.\n *\n * @param cardDTO the entity to save\n * @return the persisted entity\n */\n CardDTO save(CardDTO cardDTO);\n\n /**\n * Get all the cards.\n *\n * @param pageable the pagination inf...
[ "0.67087513", "0.64689666", "0.6418968", "0.64184844", "0.6393115", "0.63254637", "0.6296422", "0.6190865", "0.6166575", "0.6151837", "0.6071148", "0.60367733", "0.60367733", "0.60339135", "0.601933", "0.59563524", "0.5935702", "0.59335387", "0.59276587", "0.5893009", "0.5881...
0.0
-1
/ / / / / / / / / / / /
public Control[] getMemberControls() { /* 78 */ Control[] arrayOfControl = new Control[this.controls.length]; /* */ /* 80 */ for (byte b = 0; b < this.controls.length; b++) { /* 81 */ arrayOfControl[b] = this.controls[b]; /* */ } /* */ /* 84 */ return arrayOfControl; /* ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth()...
[ "0.5528792", "0.54315263", "0.51737124", "0.5150286", "0.5077775", "0.5064908", "0.50597715", "0.5045933", "0.5037415", "0.5019393", "0.50050676", "0.50032693", "0.499702", "0.49949083", "0.49852678", "0.4973753", "0.4970428", "0.49669605", "0.49542087", "0.4945966", "0.49211...
0.0
-1
/ / / / / / / / / / /
public String toString() { /* 97 */ StringBuffer stringBuffer = new StringBuffer(); /* 98 */ for (byte b = 0; b < this.controls.length; b++) { /* 99 */ if (b != 0) { /* 100 */ stringBuffer.append(", "); /* 101 */ if (b + 1 == this.controls.length) { /* 102 */ stringBuffer.appe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadra...
[ "0.5540745", "0.5444497", "0.5205538", "0.5182055", "0.5094161", "0.50587463", "0.5053648", "0.50452423", "0.50258267", "0.50122976", "0.5012191", "0.50119436", "0.50044477", "0.49989554", "0.49980396", "0.49847832", "0.49795863", "0.49785143", "0.4966902", "0.49588826", "0.4...
0.0
-1
Returns true if this PasserelleToken is the same as the o argument.
public boolean equals(Object o) { if (o == null) { return false; } if (this == o) { return true; } if (o.getClass() != getClass()) { return false; } PasserelleToken castedObj = (PasserelleToken) o; return ((this.message == null ? castedObj.message == null : this.message...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equivalent(Operation o) {\n return o.token == this.token && o.op == this.op;\n }", "@Override\r\n\t\tpublic boolean equals(Object obj) {\r\n\t\t\tif (this == obj)\r\n\t\t\t\treturn true;\r\n\t\t\tif (obj == null)\r\n\t\t\t\treturn false;\r\n\t\t\tif (getClass() != obj.getClass())...
[ "0.68099654", "0.6463778", "0.64347816", "0.63113445", "0.62217265", "0.6104558", "0.5971796", "0.5970866", "0.5958805", "0.58468485", "0.58468485", "0.58468485", "0.58468485", "0.58468485", "0.58468485", "0.5830841", "0.5790158", "0.57827115", "0.57269716", "0.56864697", "0....
0.76263094
0
Return the value of this token as a string that can be parsed by the expression language to recover a token with the same value. The returned syntax looks like a function call to a one argument method named "object". The argument is the string representation of the contained object, or the string "null" if the object i...
public String toString() { if (getMessage() != null) { return "message(" + getMessage().toString() + ")"; } else { return "message(null)"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public Object getExpression();", "public String toString()\n {\n return \"LiteralOPToken(\" + getValue() + \")\";\n }", "public String toString() {\n return m_expression;\n }", "priv...
[ "0.67842454", "0.6276399", "0.6060912", "0.5921727", "0.59086883", "0.58732444", "0.58725566", "0.5841999", "0.58045053", "0.5754889", "0.57507604", "0.57408255", "0.57366306", "0.5719385", "0.5709678", "0.5708276", "0.57060164", "0.56755584", "0.56539404", "0.56539404", "0.5...
0.0
-1
read all user tests
@Test public void readAll_UserExists_Authorized() { given(userExists(), permissionValidationSuccess()); Collection<User> retrievedUsers = userService.readAll(SOME_AUTH_ATTRIBUTES); assertEquals(1, retrievedUsers.size()); assertEquals(USER_THAT_EXISTS, retrievedUsers.iterator().next()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n void getAllUsers() throws IOException {\r\n }", "@Test\n public void testGetAllUsers() {\n }", "@Test\n void testGetAllUsers() {\n List<User> users = userData.crud.getAll();\n int currentSize = users.size();\n assertEquals(currentSize, users.size());\n logge...
[ "0.75105685", "0.69256455", "0.6734223", "0.65527016", "0.64140475", "0.62630117", "0.62494755", "0.6220584", "0.6207852", "0.6182789", "0.6166381", "0.6146329", "0.6135359", "0.61209327", "0.611089", "0.6078294", "0.6071733", "0.6063542", "0.6054684", "0.60354275", "0.602582...
0.58780843
36
return " + urls[new Random().nextInt(urls.length)] + "/iloong/pui/ServicesEngineV1/DataService";
public static final String getDataServerUrl() { return "http://uifolder.coolauncher.com.cn/iloong/pui/ServicesEngineV1/DataService"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GET(\"random.php\")\n Call<MealData> getRandomMeal();", "public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exce...
[ "0.61935514", "0.5874692", "0.57856715", "0.5612849", "0.553329", "0.5523526", "0.5520557", "0.55155456", "0.5462736", "0.54248154", "0.54176277", "0.54134595", "0.539286", "0.5386662", "0.53803575", "0.5322761", "0.53045267", "0.5259154", "0.52412266", "0.5237282", "0.523107...
0.58909273
1
Joins a list of groups
@SuppressWarnings("rawtypes") public void join(StringBuffer buf, List list, Integer currentElement) throws Exception { if(currentElement < list.size()) { if(getOperator() == null || !getOperator().isGroupOp()) throw new Exception("You must specify a AND/OR operator type for joining groups"); buf.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setJoinedGroups(List<Group> joinedGroups) {\n this.joinedGroups = joinedGroups;\n }", "public void joinGroups(Double sourceGroup, Double destGroup) {\n\t\tMap<String, ChesspairingPlayer> sourcePlayers = groupsByResult.get(sourceGroup);\n\t\tMap<String, ChesspairingPlayer> destPlayers = grou...
[ "0.6004881", "0.59137505", "0.5602794", "0.5602171", "0.5575929", "0.554022", "0.54696256", "0.546483", "0.54533046", "0.5318133", "0.53011125", "0.5281582", "0.52614236", "0.52611524", "0.5250237", "0.5210343", "0.51965916", "0.51892287", "0.51890564", "0.51751703", "0.51713...
0.53741974
9
Program Printable Author Christian Makoma Created Nov 29, 2019
public interface Printable { void print(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n ...
[ "0.67272884", "0.6656763", "0.6549186", "0.6527682", "0.65173066", "0.6510209", "0.6509937", "0.6505932", "0.6449472", "0.64403063", "0.6433874", "0.6433741", "0.6431088", "0.6399796", "0.6369366", "0.63385147", "0.6337788", "0.6330696", "0.6320873", "0.6317675", "0.63172424"...
0.0
-1
Retrieve a schema from the store if it exists for the given id
default Schema getSchemaById(int schemaId) { return (Schema) this.getTargetById(schemaId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ShareableSchema getSchemaById(Long id) {\n\n\t\t//Connecting to data base\n\t\tconnect();\n\n\t\tShareableSchema schema = null;\n\n\t\tif (dbConnection == null)\t\t\t\t\t\t\t//failed connection\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t//Proceeding, if database connection is successful\n\t\tResu...
[ "0.68345976", "0.6518935", "0.64798397", "0.58582664", "0.57590467", "0.5739668", "0.56656903", "0.5626054", "0.55927473", "0.5537089", "0.54718053", "0.5466306", "0.5461109", "0.5451431", "0.5413621", "0.54038227", "0.53951484", "0.5391432", "0.5373005", "0.5368897", "0.5361...
0.6373301
3
Looks for an ID that can be assigned to a new schema.
int getUnusedSchemaId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SchemaId getValidId() throws IOException {\n SchemaId id = new SchemaIdImpl(UUID.randomUUID());\n byte[] rowId = id.getBytes();\n // The chance it would already exist is small\n if (typeTable.exists(new Get(rowId))) {\n return getValidId();\n }\n // The ...
[ "0.624506", "0.6127668", "0.5822339", "0.5626555", "0.55958486", "0.55958486", "0.55958486", "0.55958486", "0.55958486", "0.55958486", "0.55958486", "0.55958486", "0.55958486", "0.55816084", "0.5530761", "0.5493824", "0.5464241", "0.5464241", "0.5464241", "0.5464241", "0.5464...
0.622798
1
Looks for an ID that can be assigned to a new algorithm.
int getUnusedAlgorithmId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AlgorithmIdentifier getAlgorithmIdentifier();", "String getExistingId();", "String idProvider();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "Identifier ...
[ "0.66760445", "0.6011307", "0.5884683", "0.5754582", "0.5754582", "0.5754582", "0.5754582", "0.5754582", "0.5754582", "0.5754582", "0.5754582", "0.5754582", "0.5672335", "0.5652205", "0.5652205", "0.5652205", "0.5652205", "0.5652205", "0.5652205", "0.5652205", "0.5652205", ...
0.672563
0
Looks for an ID that can be assigned to a new experiment.
int getUnusedExperimentId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setExperimentId(final int newExperimentID);", "String getExistingId();", "String experimentId();", "int incExperimentId();", "ExperimenterId getExperimenterId();", "Identifications loadExperimentIdentifications(String experimentAccession);", "public void testGetId(){\n exp = new Experiment(...
[ "0.6430637", "0.641865", "0.60913455", "0.60458", "0.6042296", "0.59562474", "0.58876365", "0.5817666", "0.5817666", "0.5817666", "0.5817666", "0.5817666", "0.5817666", "0.5817666", "0.5817666", "0.5817666", "0.56719214", "0.56674147", "0.5620438", "0.5620438", "0.5620438", ...
0.61717504
2
Looks for an ID that can be assigned to a new table within the given schema.
int getUnusedTableId(Schema schema);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SchemaId getValidId() throws IOException {\n SchemaId id = new SchemaIdImpl(UUID.randomUUID());\n byte[] rowId = id.getBytes();\n // The chance it would already exist is small\n if (typeTable.exists(new Get(rowId))) {\n return getValidId();\n }\n // The ...
[ "0.55384505", "0.5535123", "0.5520046", "0.54684067", "0.54297495", "0.5405686", "0.5401865", "0.53944474", "0.53690463", "0.5210733", "0.5205802", "0.51800597", "0.5165676", "0.5164392", "0.513413", "0.5128843", "0.5118662", "0.51181453", "0.5114561", "0.50753", "0.50716394"...
0.6541836
0
Saves any pending changes in the metadata store.
void flush() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "public void save() {\n\t\tpreferences().flush();\n\t}", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n ...
[ "0.6849288", "0.6823539", "0.67775196", "0.6606316", "0.65842414", "0.657765", "0.6569068", "0.6508652", "0.6491754", "0.6448844", "0.64450455", "0.6425513", "0.63912404", "0.6388209", "0.6367063", "0.6367063", "0.6349456", "0.6349456", "0.63368315", "0.63299197", "0.6324128"...
0.0
-1
Constructs the test invoker with default values
public TestInvoker() { super(new TestClient(), new ThreadPoolExecutorImpl(3)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TeststepRunner() {}", "public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }", "public TestDriverProgram(){\n iTestList = new SortableArray(iSize); // tests i...
[ "0.65307504", "0.64260757", "0.6424195", "0.63454324", "0.62774765", "0.6260171", "0.624053", "0.6235115", "0.6214037", "0.6199845", "0.6153247", "0.61321884", "0.612978", "0.6114846", "0.61092794", "0.609187", "0.6064572", "0.60390526", "0.60261035", "0.60054374", "0.6000814...
0.6325058
4
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JButton btnNewButton = new JButton("1"); btnNewButton.addActionListener(new ActionListener() { public void actionPerforme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
This verifies multifunctional login
@Test(enabled = true, groups = {"functest", "part a"}) public void testLoginLogout() throws IOException, InterruptedException { pm.getQicPortalLoginHelper().loginAsRole("provider"); pm.getQicPortalLoginHelper().loginAsPlanAdmin(); System.out.println("Done"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean checkUserCorrispondenceLogin(String emailLogin, String passwordLogin);", "boolean hasLogin();", "boolean hasLogin();", "public boolean loginUser();", "public abstract boolean isLoginRequired();", "@Test\r\n\tpublic void testLogin5() {\r\n\t\tassertFalse(t1.login(\"userrrrrrrrrrrrrrrrrrrrrrrrrrrrr...
[ "0.7117655", "0.69748205", "0.69748205", "0.6752457", "0.6711028", "0.66957986", "0.6663828", "0.6638183", "0.6605801", "0.6589747", "0.65586996", "0.65586996", "0.6545326", "0.6534511", "0.6449111", "0.6445408", "0.6406489", "0.6398537", "0.6384503", "0.6354554", "0.6347586"...
0.0
-1
Private constructor only for the enumeration itself
private FileFormats(String fileFormat, TeaFileReader reader, TeaFileWriter writer, String description) { this.fileFormat = fileFormat; this.reader = reader; this.writer = writer; this.description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Unreachable\n private Enums()\n {\n // Empty default ctor, defined to override access scope.\n }", "Enumeration createEnumeration();", "public sym_complex_enum() {\n }", "private CommonEnum(int value) {\n\t\tthis.value = value;\n\t}", "public Enum() \n { \n set(\"\");\n }", "@com...
[ "0.72942716", "0.70961076", "0.7047847", "0.68622464", "0.6812545", "0.66319644", "0.66010994", "0.6586848", "0.65593374", "0.6554694", "0.65081567", "0.6477354", "0.63844496", "0.637693", "0.6314538", "0.6306279", "0.6266206", "0.6191403", "0.61904186", "0.61748844", "0.6168...
0.0
-1
Iterate through the file formats that matches the input file format. Return a reader object for the specific input file format
public static TeaFileReader getReader(String fileFormat) { for(FileFormats ff : FileFormats.values()) { if(ff.equals(fileFormat)) { return ff.reader; } } // Default. Should never happen :) return new TextReader(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object readObject(File file, int format) throws IOException, FileNotFoundException;", "private static IIteratingChemObjectReader<IAtomContainer> getInputReader(\n ArgumentHandler argsH, IChemObjectBuilder builder) throws FileNotFoundException {\n DataFormat inputFormat = argsH.getInputFo...
[ "0.64293474", "0.6188484", "0.6130993", "0.59983736", "0.58291095", "0.57468385", "0.5743298", "0.5686786", "0.5663057", "0.563475", "0.5627146", "0.5597705", "0.55847937", "0.55492383", "0.547269", "0.54162073", "0.5407208", "0.53829795", "0.5356269", "0.53498954", "0.533131...
0.60604143
3
Iterate through the file formats that matches the input file format. Return a writer object for the specific output file format
public static TeaFileWriter getWriter(String fileFormat) { for(FileFormats ff : FileFormats.values()) { if(ff.equals(fileFormat)) { return ff.writer; } } // Default. Should never happen :) return new TextWriter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FileFormat getFormat();", "public void setOutputFormat(OutputFormat format);", "String getOutputFormat();", "void setOutputFormat(String outputFormat);", "@Override\n public Format[] getSupportedOutputFormats(Format input)\n {\n if(input == null)\n return supportedOutputFormats;...
[ "0.6022094", "0.5646364", "0.5644335", "0.5619254", "0.56037766", "0.5588745", "0.5519242", "0.5490168", "0.5489255", "0.5354606", "0.52841425", "0.52731603", "0.52654004", "0.52412283", "0.5232", "0.5214249", "0.52049005", "0.51745254", "0.51736265", "0.5167834", "0.513356",...
0.52696085
12
Iterate through the file formats and build a string to show a complete description for all file formats
public static String getSupportedformats() { String description = ""; for(FileFormats ff : FileFormats.values()) { description += ff.description +"\n"; } return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getFileFormatName();", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "private String inFormat() {\n Fil...
[ "0.7013737", "0.67586905", "0.65782934", "0.6527724", "0.64434814", "0.64368516", "0.62994075", "0.61986756", "0.61985433", "0.5940181", "0.5861764", "0.57996637", "0.5791153", "0.5783499", "0.57733667", "0.5763144", "0.57575107", "0.5757168", "0.5738386", "0.5737883", "0.573...
0.74732345
0
Checks if the current file format is equal to another
public boolean equals(String fileFormat) { return this.fileFormat.equalsIgnoreCase(fileFormat); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(FileFormats fileFormat) {\r\n\t\treturn this.equals(fileFormat.fileFormat);\r\n\t}", "public boolean fileFormatSupported(String fmt);", "public boolean mo25013a(Format other) {\n if (this.f16509i.size() != other.f16509i.size()) {\n return false;\n }\n for (...
[ "0.6783312", "0.6287013", "0.6216903", "0.602289", "0.60117704", "0.59530675", "0.5946064", "0.5890396", "0.57631546", "0.56483525", "0.56248075", "0.5623681", "0.55943125", "0.5593991", "0.5552961", "0.5535261", "0.5516145", "0.5512179", "0.5503316", "0.54951936", "0.5482013...
0.66999835
1
Checks if the current file format is equal to another
public boolean equals(FileFormats fileFormat) { return this.equals(fileFormat.fileFormat); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(String fileFormat) {\r\n\t\treturn this.fileFormat.equalsIgnoreCase(fileFormat);\r\n\t}", "public boolean fileFormatSupported(String fmt);", "public boolean mo25013a(Format other) {\n if (this.f16509i.size() != other.f16509i.size()) {\n return false;\n }\n ...
[ "0.67007035", "0.62884796", "0.6216858", "0.60237676", "0.6011328", "0.59553516", "0.59472793", "0.58920026", "0.5761885", "0.5647645", "0.56262594", "0.562411", "0.55959547", "0.55950224", "0.5554792", "0.55371475", "0.55175763", "0.5512185", "0.5503068", "0.54977804", "0.54...
0.6784336
0
Checks if the string contains a file format that is part of the enumeration
public static boolean isValid(String fileFormat) { for(FileFormats ff : FileFormats.values()) { if(ff.equals(fileFormat)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean fileFormatSupported(String fmt);", "private static boolean checkFileType(String filename) {\r\n\t\treturn (filename.matches(\"(.*).bf\") || filename.matches(\"(.*).bmp\"));\r\n\t}", "public boolean isFileformatRegistered(String fileformat)\r\n\t\t\tthrows ProcessingException;", "public boolean...
[ "0.67850906", "0.6369476", "0.6279788", "0.62266296", "0.5915483", "0.5906164", "0.58934504", "0.5890058", "0.58432597", "0.5838523", "0.5823153", "0.58144784", "0.57822734", "0.57012737", "0.56957597", "0.5675694", "0.5671932", "0.56393534", "0.5638906", "0.56358474", "0.563...
0.64254135
1
Checks if the file format is part of the enumeration
public static boolean isValid(FileFormats fileFormat) { return FileFormats.isValid(fileFormat.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean fileFormatSupported(String fmt);", "public boolean isFileformatRegistered(String fileformat)\r\n\t\t\tthrows ProcessingException;", "public static boolean isValid(String fileFormat) {\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn true;...
[ "0.71963483", "0.69367254", "0.6634772", "0.6369342", "0.63659173", "0.63559896", "0.6303448", "0.6258087", "0.6252788", "0.6225496", "0.6210627", "0.6051315", "0.6050933", "0.60466963", "0.60455203", "0.60401875", "0.6011042", "0.598456", "0.5945043", "0.59365714", "0.591786...
0.6296914
7
desenvolvido para agilizar a busca por tweets neutros
public void montaQuery(ArquivoBase arquivoOrigem) { LinkedList<String> lista; try { lista = arquivoOrigem.ArquivoParaMatriz(); for (Iterator iterator = lista.iterator(); iterator.hasNext();) { this.cConsulta = (String) iterator.next() + "lang:pt"; this.cNomeFile = (String) iterator.next(); exec(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void busqueda() {\r\n\r\n try {\r\n\r\n String preg = JOptionPane.showInputDialog(\"Buscar:\");\r\n Query query = new Query(preg);\r\n QueryResult result = twitter.search(query);\r\n for (Status status : result.getTweets()) {\r\n System.out.p...
[ "0.69884944", "0.6808083", "0.6366934", "0.62696093", "0.62365746", "0.623073", "0.62183285", "0.6198307", "0.6164697", "0.6024486", "0.6016229", "0.596915", "0.5966343", "0.5951661", "0.594627", "0.5923459", "0.59219605", "0.5915185", "0.5901601", "0.59003323", "0.5889971", ...
0.0
-1
area de getters e setters
public Twitter getTwitter() { return twitter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\n public void get() {}", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public void setNombre(String nombre) {this.nombre = nombre;}", "@Override // Métodos que fazem a anulação\n\tpubli...
[ "0.64431256", "0.62874097", "0.6231078", "0.6222045", "0.619527", "0.61225367", "0.60900223", "0.60875475", "0.60855305", "0.6083843", "0.60703254", "0.6053608", "0.60531116", "0.6046477", "0.6026318", "0.6025185", "0.6015144", "0.60081637", "0.60035163", "0.5999883", "0.5955...
0.0
-1
Mark arr[i] as visited by making arr[arr[i] 1] negative. Note that 1 is subtracted because index start from 0 and positive numbers start from 1
public int findMissingPositive(ArrayList<Integer> a, int size) { for(int i = 0; i < size; i++) { if(Math.abs(a.get(i)) - 1 < a.size() && a.get(Math.abs(a.get(i))-1) > 0) a.set((Math.abs(a.get(i))-1),(Math.abs(a.get(i))-1)); } // Return the first index value at which is positive for(int i ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] eleminateNegativeNumbers(int[] arr){\n for(int i = 0; i < arr.length; i++){\n if(arr[i] < 0){\n arr[i] = 0;\n }\n }\n return arr;\n }", "private void markNegativeCycle(boolean[] checked, int nodeIndex) {\n\t\thasNegativeCycle[nodeIndex] = ...
[ "0.6497228", "0.6483676", "0.6105872", "0.5762541", "0.56249124", "0.55792683", "0.5567532", "0.556032", "0.5479725", "0.5456352", "0.54406476", "0.54258686", "0.54188716", "0.5410928", "0.5409736", "0.5409561", "0.540263", "0.5361515", "0.5303744", "0.52871823", "0.5271064",...
0.0
-1
Realiza uma espera por um determinado milisegundos
public static void pause(long millis) { try { Thread.sleep(millis); } catch (InterruptedException e) { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "public void coMina(){\n espM=true;\r\n }", "public...
[ "0.5766845", "0.55394423", "0.5464401", "0.54423404", "0.54314584", "0.54193205", "0.5336847", "0.53127", "0.530306", "0.53023756", "0.5269312", "0.5261818", "0.5260557", "0.5260276", "0.5249832", "0.5217374", "0.5199968", "0.5184747", "0.51803386", "0.51590097", "0.5153943",...
0.0
-1
Realiza o processamento da tarefa
public void execute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\r\n\t\t\tthis.setName(\"Vista.CacheUploaderDaemon\");\r\n\t\t\tint frac = 0;\r\n\t\t\tint prog = 0; // Progreso de la cola\r\n\t\t\twhile (alive) {\r\n\t\t\t\tif (!colaEscritura.isEmpty()) {\r\n\t\t\t\t\tfrac = 100/colaEscritura.size();\r\n\t\t\t\t\tprog = 0;\r\n\t\t\t\t}\r\n\t\t\t\twhile (!col...
[ "0.6283162", "0.62330014", "0.6196541", "0.6174039", "0.61623627", "0.6141512", "0.60983485", "0.60709953", "0.6040082", "0.6037369", "0.6037369", "0.59756154", "0.5934", "0.5933901", "0.5921138", "0.5884816", "0.5822233", "0.5819205", "0.5813085", "0.57964975", "0.57814735",...
0.0
-1
Converts from hexadecimal to decimal
private int hexToDecimal(String s) { String digits = "0123456789ABCDEF";//digits to define value based on position on this string s = s.toUpperCase();//changes the parameter value to uppercase int val = 0;//value starts with 0 //loop fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int hex2dec(int hex) {\n if (hex > 0x255 || hex < 0) {\n throw new IllegalArgumentException(\"Value must be between 0 and 0x255 (597)\");\n }\n return (hex / 256) * 100 + ((hex % 256) / 16) * 10 + hex % 256 % 16;\n }", "public int hexaToDecimal(String hexa) {\n\t\tSystem.out.print(\...
[ "0.7523446", "0.7519282", "0.7463694", "0.6876039", "0.68468463", "0.66927916", "0.66720814", "0.66276306", "0.6601681", "0.6449937", "0.6384453", "0.61455745", "0.6088056", "0.60702246", "0.60405177", "0.60376775", "0.59997976", "0.599772", "0.59547573", "0.5921761", "0.5887...
0.7226683
3
Converts from decimal to octal
private int decToOctal(int decimal) { ArrayList<Integer> oct_num = new ArrayList<Integer>(); int octal= 0; while(decimal != 0) { oct_num.add(decimal%8);//remainder represents one digit in octal. Adding it to the arraylist. decimal /= 8;//"%" does not divide the number,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String decimalToOcta(int numero) {\n\t\tSystem.out.print(\"Convirtiendo decimal (\" + numero + \") a octal >> \");\n\t\treturn Integer.toOctalString(numero);\n\t}", "public static String octalEquivalent(int num) {\n\t\tString octal = Integer.toOctalString(num);\n\t\treturn octal;\n\t}", "public int octa...
[ "0.77221644", "0.7518209", "0.7271026", "0.7256363", "0.7109142", "0.70623153", "0.6921748", "0.6833753", "0.67004937", "0.65538996", "0.6482112", "0.64351785", "0.6411456", "0.63897127", "0.63768333", "0.5951606", "0.57300925", "0.56265074", "0.56152755", "0.5540151", "0.551...
0.75308245
1
Converts from decimal to binary as an array list for each digit (right to left)
private ArrayList<Integer> decToBinary(int decimal) { ArrayList<Integer> bin_num = new ArrayList<Integer>(); while(decimal != 0) { bin_num.add(decimal%2) ;//remainder represents one digit in Binary. decimal /= 2;//Keep dividing by 2 to reach 0 } return bin_num;//returns the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void DtoB(int num,int[] rem) {\n\t\tint j=0,m;\n\t\twhile(num>0) {\n\t\t\tm=num%2;\n\t\t\trem[j++]=m;\n\t\t\tnum=num/2;\n\t\t}\n\t\tj--;\n\t\tSystem.out.println(\"Decimal to Binary Conversion \");\n\t\tfor(int i=j;i>=0;i--) {\n\t\t\tSystem.out.print(rem[i]+\" \");\n\t\t}\n\t}", "public static int[] intege...
[ "0.67069435", "0.64191556", "0.64046055", "0.6342051", "0.63092947", "0.62856436", "0.6253152", "0.6230578", "0.62260246", "0.6221249", "0.6161966", "0.6142643", "0.6125293", "0.60507035", "0.60006225", "0.5975752", "0.59460396", "0.59080774", "0.5907153", "0.5884083", "0.587...
0.73158157
0
method that returns a string of values from an ArrayList with reversed order.
public String reverseArray(ArrayList<Integer> array) { String num = ""; for (int i = array.size()-1; i >= 0; i--) { num = num + array.get(i); } return num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayReverse(ArrayList<String> list){\r\n //Loop through the list\r\n for(int i = list.size()-1; i >= 0; i--){\r\n System.out.print(list.get(i) + \" \"); \r\n }\r\n System.out.println();\r\n }", "@Override\n\tpublic String toString() {\n\t\tString string = \"\...
[ "0.7234216", "0.6660272", "0.65124756", "0.6234125", "0.6111613", "0.60739887", "0.6063724", "0.6002968", "0.59747654", "0.5974587", "0.5962329", "0.5909996", "0.5865269", "0.58329135", "0.5824487", "0.5823132", "0.58211", "0.5766539", "0.5763808", "0.57316315", "0.5701367", ...
0.6860987
1
System.out.println("[Request ApiService Param] : " + request.getRequestURL().toString() + "/" + getParameterMap(request).toString());
@RequestMapping(value = "daStdWordDic", method = RequestMethod.GET) public String daStdWordDic ( @RequestParam(value = "word", required = false) String word, Model model) throws URISyntaxException, IOException { model.addAttribute("serverTime", getCurrentTime()); final Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRequest();", "@RequestMapping(value = \"/testRequestMethod\", method = { RequestMethod.GET, RequestMethod.POST })\n @ResponseBody\n public String testF(final HttpServletRequest request) {\n System.out.println(\"testReqeustMethod\");\n final String key = request.getParameterNames().n...
[ "0.66468596", "0.6644178", "0.65784025", "0.63874304", "0.6367997", "0.636703", "0.636703", "0.6289647", "0.6277664", "0.6257354", "0.62472594", "0.6236372", "0.62353384", "0.6231264", "0.61689484", "0.61617804", "0.6145595", "0.61428607", "0.61401075", "0.61149234", "0.60885...
0.0
-1
Este constructor se usa cuando aun no tengo un ModelContext ni remoteHandle, pero si tengo el HttpContext. Basicamente es el punto de entrada en los servlets.
public GXWebObjectBase(HttpContext httpContext, Class contextClass) { init(httpContext, contextClass); castHttpContext(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GXWebObjectBase(int remoteHandle, ModelContext context)\n\t{\n\t\tsuper(remoteHandle, context);\n\t\tcastHttpContext();\n\t}", "public GXWebObjectBase(HttpContext httpContext)\n\t{\n\t\tsuper(httpContext);\n\t\tcastHttpContext();\n\t}", "public ServletPersonne() {\n super();\n }", "public Se...
[ "0.71600187", "0.6012241", "0.58051586", "0.5800119", "0.5750073", "0.56918365", "0.5617849", "0.56041914", "0.54723555", "0.54488164", "0.53602046", "0.5343167", "0.5332534", "0.5311725", "0.53052926", "0.5283767", "0.52524453", "0.5247841", "0.5234541", "0.52266", "0.521138...
0.5602846
8
Este constructor se usa cuando aun no tengo un ModelContext ni remoteHandle, pero si tengo el HttpContext. Basicamente es el punto de entrada en los servlets.
public GXWebObjectBase(HttpContext httpContext) { super(httpContext); castHttpContext(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GXWebObjectBase(int remoteHandle, ModelContext context)\n\t{\n\t\tsuper(remoteHandle, context);\n\t\tcastHttpContext();\n\t}", "public ServletPersonne() {\n super();\n }", "public ServletServerHttpRequest(HttpServletRequest servletRequest)\r\n/* 33: */ {\r\n/* 34: 65 */ Assert.notNu...
[ "0.7160114", "0.5804008", "0.5799062", "0.57499325", "0.5692648", "0.5617708", "0.5606969", "0.560378", "0.54717106", "0.54500747", "0.5359302", "0.53418434", "0.5333837", "0.53126025", "0.53070635", "0.52837557", "0.5251862", "0.5249658", "0.52348673", "0.5229448", "0.521208...
0.6012544
1
Este constructor se usa cuando ya tengo un ModelContext y remoteHandle. Basicamente es el punto de entrada para webcomponents, webwrappers, etc.
public GXWebObjectBase(int remoteHandle, ModelContext context) { super(remoteHandle, context); castHttpContext(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected MVC_model() throws RemoteException {\n\t\tsuper();\n\t}", "public VolleyRepositoryImpl(Context context, BaseDO model) {\n setContext(context);\n url = \"\";\n this.model = model;\n\n HttpsTrustManager.allowAllSSL();\n defaultRetryPolicy = new DefaultRetryPolicy(EXTRA_...
[ "0.5811483", "0.5640809", "0.5573432", "0.55491275", "0.5543585", "0.551414", "0.5445264", "0.54300916", "0.5404526", "0.5328997", "0.52889943", "0.5271328", "0.5244872", "0.52344763", "0.5200784", "0.5169209", "0.5144392", "0.5136442", "0.51267266", "0.5121688", "0.51216316"...
0.7797846
0
Return the DefaultTheme for all WebPanels and Transactions.
@SuppressWarnings("unused") protected void initializeTheme() { this.httpContext.setDefaultTheme(ConfigurationManager.getValue("Theme")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDefaultThemeName() {\n\treturn resources.getString(\"defaultTheme\", null);\n }", "@Override\n public EStandardChartTheme getDefaultChartTheme() {\n ChartThemeParameters ctp = this.getDefaultChartThemeParameters();\n ctp.applyToChartTheme(standardChartTheme);\n SimpleColorPalette sc...
[ "0.6675091", "0.64900726", "0.63261896", "0.62315774", "0.6104561", "0.59557205", "0.58875144", "0.5861949", "0.5823228", "0.58141595", "0.5812574", "0.5812574", "0.5812574", "0.58003426", "0.57927704", "0.5699647", "0.5686028", "0.5651186", "0.563095", "0.5592181", "0.558096...
0.5291459
34
SPA is disabled for objects without master page. However, SPA response headers are sent anyway, so the client side replaces the full content using AJAX.
protected void validateSpaRequest() { if (isSpaRequest()) { httpContext.disableSpaRequest(); sendSpaHeaders(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/\")\n public @ResponseBody String homePage()\n {\n return \"homePage\";\n }", "@RequestMapping(\"/main\")\r\n @Produces(\"text/plain\")\r\n @ResponseBody\r\n @GET\r\n public String mainPage() {\r\n System.out.println(\"mainPage\");\r\n return \"Main\";...
[ "0.54824156", "0.5426597", "0.53513813", "0.52828217", "0.52434224", "0.5187123", "0.5170003", "0.5149338", "0.5135985", "0.5127154", "0.5119697", "0.5110112", "0.50991684", "0.5070535", "0.5043036", "0.50358117", "0.500478", "0.49731264", "0.49418348", "0.49192196", "0.49184...
0.0
-1
Create a chain with the specified name
public Chain(String name) { if (name == null) throw new IllegalArgumentException("Invalid chain name"); this.chainName = name; rules = new ArrayList<Rule>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Chain createChain();", "public Chain(String name)\n\t{\n\t\tthis.name = name; \n\t\tcars = new HashSet<RollingStock>(); \n\t}", "NodeChain createNodeChain();", "private final void createAndAddNode(String name) {\n\t}", "TargetChain createTargetChain();", "Chain getChain();", "public ResidueLocator(Stri...
[ "0.74307007", "0.70124084", "0.6549889", "0.64718676", "0.6305347", "0.58234537", "0.5713729", "0.55873215", "0.55382234", "0.5507579", "0.55063415", "0.5474804", "0.52640396", "0.52636486", "0.5254927", "0.5244285", "0.5239648", "0.52359873", "0.52214783", "0.5180481", "0.51...
0.76108474
0
Try to parse an iptables chain definition
protected static Chain parse(String chain) throws ParsingException,UnsupportedDefaultActionException { if (chain == null) throw new NullPointerException(); // System.out.println(chain); Matcher chainMatcher = chainPattern.matcher(chain); if (!chainMatcher.find()) throw new ParsingException("Invalid cha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parse( IFilter<? extends IDescribable> filter ) throws ParseException;", "private Descriptor parseDescriptorLine(String line) {\n\t\tDescriptor result = new Descriptor();\n\t\t// set descriptor name\n\t\tString descName = parseDescrName(line);\n\t\tresult.setName(descName);\n\t\tString dom = descName...
[ "0.48732147", "0.48133874", "0.47574842", "0.47363174", "0.473321", "0.47278044", "0.46976483", "0.46674508", "0.46632564", "0.46265796", "0.46041387", "0.46020287", "0.45935023", "0.4588704", "0.45724946", "0.45635748", "0.45291364", "0.44808725", "0.44766247", "0.44676325", ...
0.59482914
0
Set the default policy of the chain
public void setDefaultPolicy(Policy defaultPolicy) { if (defaultPolicy == null) throw new NullPointerException(); this.defaultPolicy = defaultPolicy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DefaultPolicyFilter()\n\t{\n\t\tthis.compiler = new StackMachineCompiler();\n\t\tthis.executionEngine = new StackMachine();\n\t}", "public void setPolicy(short policy) {\n\t\t_policy = policy;\n\t}", "void clearPolicy() {\n policy = new Policy();\n }", "@Test\n public void testSetPolicy2(...
[ "0.6389235", "0.5986211", "0.5718498", "0.5718143", "0.5691913", "0.562832", "0.56171525", "0.5585703", "0.55221695", "0.54435676", "0.53477925", "0.53390884", "0.5333045", "0.5330204", "0.53172857", "0.53026474", "0.52692103", "0.52576405", "0.5246989", "0.52276003", "0.5190...
0.72698444
0
Set the number of packets that matches this chain
public void setPacketsNum(long packets) { if (packets < 0) throw new IllegalArgumentException("The packets number cannot be less than 0, " + packets + " given"); this.packetsNum = packets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MavlinkFieldInfo(\n position = 5,\n unitSize = 2,\n description = \"Number of packets being sent (set on ACK only).\"\n )\n public final Builder packets(int packets) {\n this.packets = packets;\n return this;\n }", "@Overrid...
[ "0.6495094", "0.6242752", "0.61259365", "0.61259365", "0.61259365", "0.6024272", "0.59344745", "0.58980167", "0.5859262", "0.5833896", "0.5832162", "0.5810269", "0.5809501", "0.57863224", "0.5786274", "0.57844454", "0.57570994", "0.5730427", "0.57297", "0.5709298", "0.570522"...
0.64981014
0
Set the number of bytes that matches this chain
public void setBytesNum(long bytes) { if (bytes < 0) throw new IllegalArgumentException("The bytes number cannot be less than 0, " + bytes + " given"); this.bytesNum = bytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChainLength(int c)\n {\n this.chainLength = c;\n }", "void setLength( long length );", "public void setLength(long length);", "public void setLength(long length);", "void setLength(int length);", "public void setOutboundNumberOfLengthBytes(int length, SECSItemNumLengthBytes de...
[ "0.6615873", "0.63402164", "0.6331369", "0.6331369", "0.6227682", "0.6143884", "0.6091609", "0.6090095", "0.60851324", "0.6049681", "0.60492164", "0.60019827", "0.5941608", "0.5921271", "0.59076786", "0.5887181", "0.5874159", "0.5865637", "0.5844926", "0.58317983", "0.5830465...
0.5683221
32
Verwijder alle opgegeven regels. De regel nummers van de te verwijderen regels zijn meegegeven als parameter. Regelnummers beginnen vanaf 1. Eerste regel heeft regelnummer 1, enzovoort.
public void removeAll(ArrayList<Integer> ruleNrs){ List<Rule> toRemove = new ArrayList<Rule>(); for(int i=0;i<ruleNrs.size();i++){ toRemove.add(rules.get(ruleNrs.get(i) - 1)); } removeAll(toRemove); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void verwijderTrein(int id){\r\n for(int i = 0;i < treinaantal;i++)\r\n {\r\n if(treinlijst[i].getId() == id){\r\n treinlijst[i] = null;\r\n for(int j = i; j < treinaantal; j++)\r\n {\r\n treinlijst[j] = treinlijst[j...
[ "0.6299453", "0.5961406", "0.565847", "0.55368453", "0.55145746", "0.54770255", "0.547152", "0.5304534", "0.52450365", "0.5221502", "0.5146856", "0.5142875", "0.51343113", "0.50741816", "0.50475514", "0.5024103", "0.50219923", "0.5012198", "0.49889392", "0.4974804", "0.490220...
0.0
-1
/ / / / / / /
public BufferedImage getImage() { /* 81 */ return this.bufImg; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int rightChild(int i){return 2*i+2;}", "public abstract void b...
[ "0.5456686", "0.53679234", "0.53644997", "0.52577114", "0.5214248", "0.517261", "0.51407987", "0.5086957", "0.50725245", "0.5048793", "0.5026405", "0.50003296", "0.49736977", "0.4944071", "0.49409905", "0.49371254", "0.49095342", "0.48941776", "0.4871963", "0.4861245", "0.486...
0.0
-1
/ / / / / / / /
public Rectangle2D getAnchorRect() { /* 91 */ return new Rectangle2D.Double(this.tx, this.ty, this.sx * this.bufImg /* 92 */ .getWidth(), this.sy * this.bufImg /* 93 */ .getHeight()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.55049527", "0.54132545", "0.5298104", "0.52380925", "0.52058434", "0.5148157", "0.5101382", "0.507637", "0.50369906", "0.5031998", "0.5009869", "0.49817902", "0.4981198", "0.4978498", "0.49735028", "0.49626762", "0.4937221", "0.492919", "0.49037388", "0.48935315", "0.48789...
0.0
-1
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
public PaintContext createContext(ColorModel paramColorModel, Rectangle paramRectangle, Rectangle2D paramRectangle2D, AffineTransform paramAffineTransform, RenderingHints paramRenderingHints) { /* 129 */ if (paramAffineTransform == null) { /* 130 */ paramAffineTransform = new AffineTransform(); /* */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo33732Px();", "double passer();", "static int getNumPatterns() { return 64; }", "public void method_4270() {}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "@Override\n public void func_104112_b() {\n \n }", "public vo...
[ "0.5158049", "0.51481354", "0.51446706", "0.5139339", "0.5101083", "0.50420874", "0.50310296", "0.50247717", "0.5022696", "0.50015914", "0.4996765", "0.49902666", "0.49886805", "0.49716935", "0.49714574", "0.4967896", "0.49645004", "0.49634388", "0.49620977", "0.49476725", "0...
0.0
-1
/ / / / / / / / /
public int getTransparency() { /* 148 */ return this.bufImg.getColorModel().getTransparency(); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void b...
[ "0.5531016", "0.54378587", "0.52516115", "0.52405924", "0.5151045", "0.5127977", "0.50680465", "0.5066997", "0.50218964", "0.5013022", "0.5007318", "0.50048536", "0.49997565", "0.4994835", "0.49735898", "0.49699947", "0.49680406", "0.49594593", "0.4937881", "0.49361676", "0.4...
0.0
-1