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
Copy another header's members to me.
protected void copy(DsSipHeader header) { super.copy(header); DsSipNameAddressHeader source = (DsSipNameAddressHeader) header; m_nameAddress = source.m_nameAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void copy(DsSipHeader header) {\n super.copy(header);\n DsSipEventHeaderBase source = (DsSipEventHeaderBase) header;\n m_strPackage = source.m_strPackage;\n m_subPackages = source.m_subPackages;\n }", "public Headers(Headers other)\n\t{\n\t\tthis.headers = new HashMap<>();\n\t\tfor (String...
[ "0.6959407", "0.6559081", "0.6342414", "0.59167343", "0.5909901", "0.58377343", "0.58027893", "0.5717902", "0.568835", "0.5610661", "0.5586693", "0.54923713", "0.548371", "0.54471123", "0.5403097", "0.53781086", "0.5369374", "0.5361332", "0.5360487", "0.5350597", "0.5325715",...
0.6941051
1
This method makes a copy of the header.
public Object clone() { DsSipNameAddressHeader clonedHeader = (DsSipNameAddressHeader) super.clone(); if (m_nameAddress != null) clonedHeader.m_nameAddress = (DsSipNameAddress) m_nameAddress.clone(); return clonedHeader; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void copy(DsSipHeader header) {\n super.copy(header);\n DsSipEventHeaderBase source = (DsSipEventHeaderBase) header;\n m_strPackage = source.m_strPackage;\n m_subPackages = source.m_subPackages;\n }", "protected void updateHeader() {\n\t}", "protected void copy(DsSipHeader header) {\n ...
[ "0.6932503", "0.68567806", "0.67183423", "0.6695815", "0.653544", "0.65036935", "0.6480708", "0.6429147", "0.6425519", "0.6410658", "0.63975817", "0.63677204", "0.63497514", "0.6329681", "0.6257353", "0.6247237", "0.6227853", "0.6205076", "0.61902696", "0.61816424", "0.612281...
0.63196707
14
Checks for equality of headers.
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } DsSipNameAddressHeader header = null; try { header = (DsSipNameAddressHeader) obj; } catch (ClassCastException e) { return false; } if (getHeaderID() != he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean equals(Object other)\r\n/* 436: */ {\r\n/* 437:598 */ if (this == other) {\r\n/* 438:599 */ return true;\r\n/* 439: */ }\r\n/* 440:601 */ if (!(other instanceof HttpHeaders)) {\r\n/* 441:602 */ return false;\r\n/* 442: */ }\r\n/* 443:604 */ HttpHeaders othe...
[ "0.74502414", "0.7264617", "0.6981582", "0.6536002", "0.6523204", "0.6293349", "0.6279105", "0.6101111", "0.6073828", "0.60735947", "0.6073152", "0.6016407", "0.58936477", "0.58875877", "0.58697164", "0.5868541", "0.58489144", "0.5846002", "0.58431184", "0.5838132", "0.582577...
0.5720756
27
Serializes the value of this header to the specified out byte output stream.
public void writeValue(OutputStream out) throws IOException { if (m_nameAddress != null) { // To, From, Record, Record-Route headers should always have <> brackets. // In case of Contact, <> are must if the URI contains ',' | ';' | '?'. // That can be checked in the setURI() method of DsSipNameAdd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeTo(ByteBuf out) {\n/* 77 */ if (this.value == null) {\n/* */ return;\n/* */ }\n/* 80 */ out.writeByte(this.value.byteValue());\n/* */ }", "public void writeValue(OutputStream out) throws IOException {\n if (m_strPackage != null) {\n m_strPackage.write(out);\n...
[ "0.67766845", "0.62218815", "0.612223", "0.61068827", "0.60047156", "0.5986582", "0.59686303", "0.5922315", "0.58962137", "0.5872945", "0.5827829", "0.58208185", "0.57818955", "0.56386036", "0.56371975", "0.56320286", "0.5631122", "0.5607113", "0.5571258", "0.55593807", "0.55...
0.69385284
0
Clears all the member data and made this header reusable. The various components (subelements) of this headers can be set again. In this case, we reuse already constructed objects like (URI, Name Address, Parameter Tables, Dates, etc), to avoid expensive object creation.
public void reInit() { super.reInit(); if (m_nameAddress != null) { m_nameAddress.reInit(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear()\r\n/* 416: */ {\r\n/* 417:580 */ this.headers.clear();\r\n/* 418: */ }", "public void reuse() {\n method = null;\n uriPath = null;\n versionRange = 0;\n uriFragmentRange = queryStringRange = 0;\n contentOffset = 0;\n contentLength = 0;\n...
[ "0.68397653", "0.6508299", "0.6427682", "0.6405268", "0.6281142", "0.62436163", "0.615337", "0.60474086", "0.59339744", "0.5789243", "0.5745008", "0.573811", "0.5729546", "0.5728559", "0.5716764", "0.5682397", "0.5658145", "0.5634079", "0.56053597", "0.56026417", "0.5581192",...
0.0
-1
////////////////////////////////////////////////////////////////////////////// DsSipElementListener Interface implementation ////////////////////////////////////////////////////////////////////////////// / javadoc inherited.
public DsSipElementListener elementBegin(int contextId, int elementId) throws DsSipParserListenerException { if (DsSipMessage.DEBUG) { System.out.println( "elementBegin - contextId = [" + contextId + "][" + DsSipMsgParser.HEADER_NAMES[contextId] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DsSipMessageListener extends DsMimeMessageListener {\n /**\n * Notify the message listener that the beginning of the Request-URI was found. Always called\n * first for requests, not called for responses.\n *\n * @param buffer holds the URL scheme\n * @param schemeOffset the start of the...
[ "0.66490775", "0.6162988", "0.61376464", "0.5834655", "0.57910776", "0.57249105", "0.56893045", "0.5650074", "0.5633376", "0.55685997", "0.551247", "0.5506543", "0.5490036", "0.54783434", "0.54769886", "0.5466947", "0.544572", "0.5437958", "0.5429968", "0.5429212", "0.5422615...
0.543494
18
Use this factory method to create a new instance of this fragment using the provided parameters.
public static HomeFragment newInstance(String param1, String param2) { HomeFragment fragment = new HomeFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_home, container, false); blog_list_view = view.findViewById(R.id.recyclerView_list_blog); blog_list = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Not efficient due to unparse
@Override public int compare(Effect o1, Effect o2) { return o1.unparseForPromise().compareTo(o2.unparseForPromise()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseData() {\n\t\t\r\n\t}", "public abstract T parse(String s);", "public abstract T parse(String str);", "void parse();", "@Override\n\tpublic String unparse() {\n\t\treturn null;\n\t}", "protected abstract SimpleType doParseString(String s);", "private T parse(String value)\n\t\t{\n\t\t...
[ "0.61927384", "0.60609996", "0.60179156", "0.59423137", "0.59353685", "0.58402735", "0.57771194", "0.5771227", "0.5741534", "0.5670575", "0.5644224", "0.5640889", "0.5580151", "0.5534758", "0.550411", "0.5489015", "0.5489015", "0.5486565", "0.54641366", "0.54559016", "0.54545...
0.0
-1
Get the effects of an expression Construct a new effects query to be used on a particular flow unit.
public Query getEffectsQuery( final IRNode flowUnit, final BindingContextAnalysis.Query query) { return new Query(flowUnit, query); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImplementedEffects getImplementationEffects(\r\n final IRNode flowUnit, final BindingContextAnalysis bca) {\r\n final EffectsVisitor visitor = new EffectsVisitor(\r\n flowUnit, bca.getExpressionObjectsQuery(flowUnit), CreateTransformer.YES);\r\n visitor.doAccept(flowUnit);\r\n return vi...
[ "0.6280824", "0.5904398", "0.5890959", "0.55577826", "0.55281854", "0.54559934", "0.5374762", "0.5349571", "0.53361714", "0.5312057", "0.53073055", "0.5261261", "0.52164745", "0.5111998", "0.5066826", "0.5035769", "0.4998038", "0.495019", "0.49449185", "0.4939642", "0.4891905...
0.6624362
0
Get the effects of a method/constructor implementation. This method is equivalent too, but hopefully slightly faster than, this.getEffectsQuery(flowUnit, bca.getExpressionObjectsQuery(flowUnit)).getResultsFor(flowUnit).
public ImplementedEffects getImplementationEffects( final IRNode flowUnit, final BindingContextAnalysis bca) { final EffectsVisitor visitor = new EffectsVisitor( flowUnit, bca.getExpressionObjectsQuery(flowUnit), CreateTransformer.YES); visitor.doAccept(flowUnit); return visitor.getResult...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Effect> getMethodEffects(\r\n final IRNode mDecl, final IRNode callSite) {\r\n final List<Effect> effects = getDeclaredMethodEffects(mDecl, callSite);\r\n if (effects == null) {\r\n final Target anything =\r\n new ClassTarget(getAllRegion(callSite), NoEvidence.INSTANCE);\r\n ...
[ "0.6410832", "0.63513255", "0.6230798", "0.5881639", "0.5765805", "0.5521991", "0.5414586", "0.53429043", "0.5315224", "0.529833", "0.52273774", "0.5204771", "0.518107", "0.51530385", "0.5099304", "0.5095672", "0.5035459", "0.480756", "0.4772965", "0.4760105", "0.47244972", ...
0.70465183
0
Remove the maskable effects from a set of effects.
public Set<Effect> maskEffects(final Set<Effect> effects) { if (effects.isEmpty()) { return Collections.emptySet(); } else { final ImmutableSet.Builder<Effect> newEffects = ImmutableSet.builder(); for (final Effect e : effects) { final Effect masked = e.mask(binder); if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAll () {\n\t\teffects.clear();\n\t}", "public void removeTempStatusEffects()\n\t{\n\t\tfor(Pokemon pokemon : getParty())\n\t\t\tif(pokemon != null)\n\t\t\t\tpokemon.removeStatusEffects(false);\n\t}", "void unsetMultiple();", "protected void applyEffects()\n\t{\n\t\tfor(int i = 0; i < effect...
[ "0.71339", "0.6145008", "0.58366096", "0.578272", "0.5768659", "0.56717634", "0.5588067", "0.5510123", "0.5388767", "0.53543055", "0.53533924", "0.5315687", "0.5308775", "0.5262438", "0.5256853", "0.52227217", "0.5211088", "0.5163652", "0.5162294", "0.51486367", "0.51465386",...
0.7812671
0
Get the declared effects for a method/constructor or writes(All) if no effects are declared. This method compensates for unannotated methods. We still need a systemwide approach to dealing with this.
public List<Effect> getMethodEffects( final IRNode mDecl, final IRNode callSite) { final List<Effect> effects = getDeclaredMethodEffects(mDecl, callSite); if (effects == null) { final Target anything = new ClassTarget(getAllRegion(callSite), NoEvidence.INSTANCE); return Immutab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final Effect[] getEffects() {\n/* 3082 */ if (this.effects != null) {\n/* 3083 */ return this.effects.<Effect>toArray(new Effect[this.effects.size()]);\n/* */ }\n/* 3085 */ return emptyEffects;\n/* */ }", "public List<Effect> getEffects()\n {\n return m_effects;\n }", "protec...
[ "0.6060737", "0.56055534", "0.53633994", "0.5274059", "0.5185696", "0.5177281", "0.50964266", "0.50370854", "0.49644727", "0.4923677", "0.49132147", "0.48854208", "0.48734614", "0.4849301", "0.47845843", "0.47733748", "0.4752071", "0.4703226", "0.46210766", "0.4611654", "0.46...
0.6779151
0
Purposely alias the effects set
public static Context forConstructorCall( final Map<IRNode, QueryTransformer> transformerMap, final Context oldContext, final IRNode ccall) { return new Context( oldContext.theEffects, transformerMap, oldContext.theReceiverNode, oldContext.bcaQuery.getSubAnalysisQuery(ccal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void applyEffects();", "public void effect() {\n }", "public abstract void setEffects(Tank t);", "protected void applyEffects()\n\t{\n\t\tfor(int i = 0; i < effects.length; i++)\n\t\t{\n\t\t\tif(effects[i] != null)\n\t\t\t{\n\t\t\t\teffects[i].applyEffect();\n\t\t\t}\n\t\t}\n\t}", "@Override\n pu...
[ "0.6710467", "0.6314538", "0.624326", "0.61321986", "0.6019423", "0.6016201", "0.59548825", "0.58994436", "0.5856136", "0.5722118", "0.5719891", "0.56804943", "0.5651641", "0.56377524", "0.558407", "0.5570786", "0.5513954", "0.54491603", "0.54293084", "0.54204327", "0.5415213...
0.0
-1
Construct a new Effects Visitor.
public EffectsVisitor(final IRNode flowUnit, final BindingContextAnalysis.Query query, final CreateTransformer createTransformers) { super(VisitInsideTypes.NO, flowUnit, SkipAnnotations.YES, createTransformers); thisExprBinder = new EVThisExpressionBinder(binder); lockFactory = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ParticleVisitor {\r\n\t/** Invoked for an empty type.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid emptyType(ComplexTypeSG type) throws SAXException;\r\n\t/** Invoked for a complex type with simple content.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid ...
[ "0.54430175", "0.506821", "0.5057502", "0.49813306", "0.49191576", "0.48582068", "0.48554128", "0.4760704", "0.47605044", "0.4755283", "0.47267312", "0.47050363", "0.46598235", "0.4654192", "0.4654074", "0.46437982", "0.46415147", "0.46146286", "0.46033317", "0.45948127", "0....
0.5773325
0
(1) getEnclosingDecl() refers to the original enclosing method again (2) context and oldContext are identical at this point
@Override public void afterVisit() { final MethodCallUtils.EnclosingRefs enclosing = MethodCallUtils.getEnclosingInstanceReferences( thisExprBinder, expr, superClassDecl, context.theReceiverNode, getEnclosingSyntacticDecl()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InstrumentedType withEnclosingMethod(MethodDescription.InDefinedShape enclosingMethod);", "protected Scope computeEnclosingScope()\n/* */ {\n/* 48 */ Class localClass1 = (Class)getRecvr();\n/* */ \n/* 50 */ Method localMethod = localClass1.getEnclosingMethod();\n/* 51 */ if (localMethod !...
[ "0.5803236", "0.57632786", "0.5750059", "0.5599612", "0.55169535", "0.5489916", "0.5385967", "0.53803545", "0.52209103", "0.5206279", "0.5137865", "0.51311463", "0.51193535", "0.4979527", "0.49077162", "0.48897067", "0.48703954", "0.4867084", "0.48495388", "0.48365632", "0.48...
0.53067034
8
Don't worry about initialization of final variables
@Override protected void handleLocalVariableDeclaration(final IRNode varDecl) { if (!TypeUtil.isJSureFinal(varDecl)) { // TODO: Really replace with isEffectivelyFinal() /* LOCAL VARIABLE: 'varDecl' is already the declaration of the variable, * so we don't have to bind it. */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initVars() {}", "@Override\n boolean isFinal() {\n return false;\n }", "@Override\n public boolean isFinal() {\n return true;\n }", "void doStuff() {\n\t\tfinal int y = 20; \n\t\t\n\t}", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private zzfl$zz...
[ "0.6765478", "0.6714506", "0.65055394", "0.6476521", "0.64375395", "0.631193", "0.63037276", "0.6285348", "0.6277778", "0.6274297", "0.6202651", "0.61881506", "0.61881506", "0.61881506", "0.61881506", "0.613902", "0.61278176", "0.6093087", "0.6074656", "0.60672814", "0.603463...
0.0
-1
Construct a new effects query to be used on a particular flow unit.
private Query(final IRNode flowUnit, final BindingContextAnalysis.Query query) { this.flowUnit = flowUnit; this.bcaQuery = query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Query getEffectsQuery(\r\n final IRNode flowUnit, final BindingContextAnalysis.Query query) {\r\n return new Query(flowUnit, query);\r\n }", "public EffectsVisitor(final IRNode flowUnit,\r\n final BindingContextAnalysis.Query query,\r\n final CreateTransformer createTransformers) {\...
[ "0.7800147", "0.5808351", "0.5150975", "0.5079715", "0.49211672", "0.47932398", "0.46872714", "0.46726036", "0.4644969", "0.45825988", "0.4563503", "0.4552716", "0.45439515", "0.4510897", "0.44864956", "0.4478142", "0.44225106", "0.4388925", "0.4383629", "0.43720058", "0.4366...
0.5278957
2
Start listening behaviour for ShareMapData agent inform.
public void startShareMapDataBehaviour() { groupAgent.addBehaviour(new Conversation(groupAgent, comStandard , Group1Ontology.SHAREMAPDATA) { @Override public void onStart() { groupAgent.log(Level.INFO, "listening to ShareMapData messages"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n ...
[ "0.6055304", "0.60461783", "0.5945108", "0.58744276", "0.58386344", "0.57373375", "0.5710708", "0.5697822", "0.5658664", "0.5632365", "0.5571042", "0.5490488", "0.54841727", "0.5484083", "0.5476392", "0.5445107", "0.54435045", "0.54375464", "0.54318833", "0.54217815", "0.5413...
0.7784471
0
them tim kiem dt
@WebMethod(operationName = "getListNoSerialInventoryByCondition") @WebResult(name = "noSerialInventoryDTO", targetNamespace = "http://wms.viettel.vn") public List<NoSerialInventoryDTO> getListNoSerialInventoryByCondition(@WebParam(name = "lstCondition") List<ConditionBean> lstCondition, @WebParam(name = "rowSta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTime();", "int getTime();", "int getTime();", "int getTtiSeconds();", "public double getTime() {return _time;}", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResulta...
[ "0.6636901", "0.64148426", "0.64148426", "0.6367513", "0.6344658", "0.63422674", "0.63420945", "0.6311498", "0.6306887", "0.63061047", "0.6266699", "0.62648845", "0.62604076", "0.62044907", "0.6172534", "0.61567646", "0.61474454", "0.61325276", "0.61186343", "0.6113139", "0.6...
0.0
-1
/ JADX WARNING: Missing block: B:9:?, code: r1.flush(); / JADX WARNING: Missing block: B:11:?, code: r1.getFD().sync(); / JADX WARNING: Missing block: B:32:?, code: android.util.Log.d("ANRManager", "copyToFile: getFD fail"); / Code decompiled incorrectly, please refer to instructions dump.
public boolean copyToFile(InputStream inputStream, File file) { FileOutputStream fileOutputStream; try { fileOutputStream = new FileOutputStream(file, true); byte[] bArr = new byte[4096]; while (true) { int read = inputStream.read(bArr); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void sync() {\n /*\n int r0 = android.os.Build.VERSION.SDK_INT\n r1 = 24\n if (r0 >= r1) goto L_0x001f\n java.io.File r0 = new java.io.File\n java.lang.String r1 = mStrPath\n r0.<init>(r1)\n r2 = 0\n java.i...
[ "0.64981896", "0.6424885", "0.6248767", "0.60868245", "0.60083115", "0.5997049", "0.58390135", "0.5747716", "0.57267964", "0.56818193", "0.558365", "0.5577525", "0.556597", "0.55336356", "0.55225825", "0.5496049", "0.54483193", "0.53977466", "0.5395019", "0.53816587", "0.5376...
0.0
-1
Creates a Parameterized with no parameters.
public Parameterized() { setParameters(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parameter createParameter();", "Param createParam();", "Param createParam();", "Param createParam();", "public ParameterizedInstantiateFactory() {\r\n super();\r\n }", "public Parameters() {\n\t}", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public Builder clear...
[ "0.65680593", "0.6334937", "0.6334937", "0.6334937", "0.63245267", "0.6276821", "0.6210947", "0.6098203", "0.60905486", "0.5932235", "0.5920302", "0.5917706", "0.58687687", "0.5832083", "0.58314174", "0.5827432", "0.5806268", "0.5791653", "0.57879835", "0.5774189", "0.57564",...
0.79538804
0
Creates a Parameterized with namevalue pairs from the supplied Map.
public Parameterized(Map<String, String> parameters) { setParameters(parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParamMap createParamMap();", "public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}", "ParamMapEntry createParamMapEntry();", "Map<String, String[]> getParameterMap();", "void setParameters(Map<String, Objec...
[ "0.6988541", "0.6976025", "0.67345405", "0.6466314", "0.6139349", "0.60800666", "0.60678804", "0.60330856", "0.6015451", "0.6000294", "0.5995343", "0.5934989", "0.59001625", "0.5833236", "0.57996005", "0.57987195", "0.57628554", "0.5757376", "0.5692962", "0.5692962", "0.56778...
0.6705115
3
Sets the parameters with namevalue pairs from the supplied Map. This is protected because it is intended to only be called by subclasses where super(Map m) is not possible to call at the start of the constructor. Server.java:Server(URL) is an example of this.
protected final void setParameters(Map<String, String> parameters) { m_parameters = parameters; if (m_parameters == null) { m_parameters = new HashMap<String, String>(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameters(Map<String, Object> propertyValues);", "void setParameters(Map<String, String[]> parameters);", "public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}", "public void setParameters(Map<String...
[ "0.7296062", "0.7252126", "0.71329343", "0.69967544", "0.69515663", "0.68174857", "0.6734342", "0.665266", "0.6560421", "0.65540725", "0.6519361", "0.6479818", "0.64093375", "0.6374977", "0.6334434", "0.63259697", "0.63231117", "0.62814254", "0.6212065", "0.6208536", "0.61879...
0.6861724
5
Gets the value of a named configuration parameter. Same as getParameter(String name) but prepends the location of FEDORA_HOME if asAbsolutePath is true and the parameter location does not already specify an absolute pathname.
public final String getParameter(String name, boolean asAbsolutePath) { String paramValue = m_parameters.get(name); if (asAbsolutePath && paramValue != null) { File f = new File(paramValue); if (!f.isAbsolute()) { paramValue = FEDORA_HOME + File.separator + paramV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParameterConfiguration getParameterConfiguration(String name);", "public String getParameter(String key, String def) {\n return isStandalone ? System.getProperty(key, def) :\n (getParameter(key) != null ? getParameter(key) : def);\n }", "public String getParameter( String name, String default_value ...
[ "0.6038055", "0.5966523", "0.5900548", "0.5851331", "0.5773139", "0.5755968", "0.5597901", "0.5573716", "0.55717933", "0.54670775", "0.5463417", "0.5458021", "0.54448724", "0.5425624", "0.5386262", "0.52889895", "0.52271867", "0.5204305", "0.51962316", "0.51647997", "0.513886...
0.7763506
0
Gets the value of a named configuration parameter.
public final String getParameter(String name) { return getParameter(name, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParameterConfiguration getParameterConfiguration(String name);", "public String getConfigurationValue(String name);", "public String getParameter(String name)\n {\n return parameters.get(name);\n }", "public String getParameter(String name) {\r\n return _parameters.get(name);\r\n }", "public Strin...
[ "0.78889394", "0.75433743", "0.7133274", "0.7070974", "0.7035033", "0.7027109", "0.6983806", "0.6959068", "0.69386744", "0.6887742", "0.6827782", "0.68153", "0.67744946", "0.67620146", "0.67306155", "0.67192423", "0.66119516", "0.6609452", "0.6604558", "0.65291953", "0.651993...
0.6782122
12
Gets an Iterator over the names of parameters for this component.
public final Iterator<String> parameterNames() { return m_parameters.keySet().iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<String> getParamNames();", "public String[] getParameterNames() {\r\n return parameterNames;\r\n }", "public static Iterator paramKeyIterator() {\n return getCurrentConfig().keyIterator();\n }", "@Override\n\t\tpublic Enumeration getParameterNames() {\n\t\t\treturn null;\n\t\t...
[ "0.72227997", "0.70824033", "0.70820093", "0.68684834", "0.6856818", "0.68389416", "0.68113947", "0.6809546", "0.68034774", "0.6761568", "0.66741836", "0.6613859", "0.6562632", "0.6544597", "0.65417475", "0.6526834", "0.6497104", "0.6495531", "0.64695317", "0.64579254", "0.64...
0.8466419
0
Test data f /Users/apolonxviii/Pictures/BecomeJavaSeniorLogo5mini.png t 3000
public static void main(String[] args) throws Exception { CommandLine cmd = parseParameters(args); String inputFilePath = cmd.getOptionValue("file"); String time = cmd.getOptionValue("time"); System.out.println("arg file: " + inputFilePath); System.out.println("arg time: " + tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i ...
[ "0.6662091", "0.645258", "0.64398897", "0.6426026", "0.64124894", "0.6393423", "0.6367082", "0.6358335", "0.6288066", "0.6282814", "0.6251444", "0.624404", "0.6218076", "0.61788136", "0.6155167", "0.6153634", "0.61454767", "0.61342436", "0.60989815", "0.60283214", "0.6022629"...
0.0
-1
TODO Autogenerated method stub
@Override public List<TStanTargetRule> findTarget(TStanTargetRule tStanTargetRule) throws Exception { return targetRuleMapper.findTarget(tStanTargetRule); }
{ "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
WebElement header = d.findElement(By.id("headerlogin"));
public Boolean apply(WebDriver d) { return d.getCurrentUrl().equals("http://172.16.62.26/index.html#/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WebElement headerDiv() {\r\n return driver.findElement(By.id(\"header\"));\r\n }", "public WebElement userLoginDiv() {\r\n return driver.findElement(By.id(\"block-system-main\"));\r\n\r\n}", "public String getbyHeader(){\n String byHed=driver.findElement(byHeader).getText();\n ...
[ "0.755038", "0.72867805", "0.6891083", "0.6749713", "0.6534962", "0.65064347", "0.6406919", "0.63468826", "0.6254488", "0.62074435", "0.6171724", "0.6072016", "0.6067717", "0.6010758", "0.59521854", "0.59240353", "0.5922269", "0.5888556", "0.58631426", "0.5857462", "0.5855472...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = inflater.inflate(R.layout.fragment_image_link, container, false); ivChoose = root.findViewById(R.id.bt_choose); ivUpload = root.findViewById(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Staff s1 = new Staff();
public static void main(String[] args) { Person[] staffs = new Person[3]; Staff staff [] = new Staff[3]; //JOptionPane.showMessageDialog(null,s1.toString()); for(int i=1;i<=staff.length;i++){ staff[i].setName(JOptionPane.showInputDialog("Enter Name: ")); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StaffMember() {\r\n }", "public StaffMember(){\r\n\t\tsuper();\r\n\t\tthis.job = \"\";\r\n\t\tthis.staffShows = new ArrayList<ScheduledConcert>();\r\n\t\tthis.setStaffID();\r\n\t}", "public Staff() {\n\t\tthis.staffId = null;\n\t\tthis.staffPass = null;\n\t}", "public Staff2 ()\n {\n staffLi...
[ "0.6789311", "0.67184573", "0.6509693", "0.64396113", "0.63926595", "0.63322526", "0.6253681", "0.62258613", "0.62085783", "0.6168164", "0.61557806", "0.6141244", "0.60507697", "0.6040629", "0.6038056", "0.60330474", "0.60285556", "0.59684014", "0.5920325", "0.59123945", "0.5...
0.0
-1
gets the filename without extension of this file
@Test public void getNameWithoutExt() { assertEquals("My File", JseFileUtils.getNameWithoutExt(new File("some/path/with - space/My File.txt"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFilename();", "java.lang.String getFilename();", "private static String getFileNameWithoutExtension(File file) {\n String fileName = \"\";\n \n try {\n if (file != null && file.exists()) {\n String name = file.getName();\n fileName = na...
[ "0.8185356", "0.8185356", "0.8076109", "0.80635685", "0.80175036", "0.80175036", "0.80175036", "0.80175036", "0.80175036", "0.80175036", "0.80175036", "0.80175036", "0.80175036", "0.78977394", "0.7872923", "0.7808194", "0.76973975", "0.76886874", "0.7651006", "0.76173526", "0...
0.72193927
42
Gets a list of articles for the
public List<MTSDocumentVO> getArticles(String cat, String pubId, int count, boolean isPagePreview) { // Create the structure List<Object> vals = new ArrayList<>(); vals.add(cat); StringBuilder sql = new StringBuilder(464); sql.append("select action_nm, action_desc, a.action_id, document_id, "); sql.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Article> getArticles() {\n List<Article> articles=articleDAO.getArticles();\n knownArticles.addAll(articles);\n return articles;\n }", "@Override\n\tpublic List<Article> getAllArticles() {\n\t\tArticle[] article = restTemplate.getForObject(serviceUrl+\"/\", Arti...
[ "0.7967536", "0.79481536", "0.7676759", "0.7623267", "0.75881207", "0.75009084", "0.74589396", "0.74499387", "0.7217277", "0.7208072", "0.7164832", "0.7109286", "0.70003706", "0.69971865", "0.68474334", "0.67250067", "0.670848", "0.6684445", "0.6650289", "0.6642546", "0.65691...
0.573608
78
Gets an image asset for a given document
public void assignDocumentAsset(List<MTSDocumentVO> docs, String cat) throws SQLException { Map<String, AssetVO> assets = new HashMap<>(); StringBuilder sql = new StringBuilder(256); sql.append("select object_key_id, document_path, document_asset_id, asset_type_cd "); sql.append("from ").append(getCustomSchema...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.ads.googleads.v6.resources.Asset getAsset();", "public void getImageFromAlbum() {\n\t\tIntent intent = new Intent();\n\t\tintent.addCategory(Intent.CATEGORY_OPENABLE);\n\t\tintent.setType(\"image/*\");\n\t\t// 根据版本号不同使用不同的Action\n\t\tif (Build.VERSION.SDK_INT < 19) {\n\t\t\tintent.setAction(Intent.ACT...
[ "0.699322", "0.6194164", "0.6114955", "0.60375065", "0.5882369", "0.5745729", "0.5715147", "0.5713468", "0.56737465", "0.5651858", "0.56446004", "0.56121504", "0.55827117", "0.55798084", "0.5569249", "0.55611014", "0.55514514", "0.5530801", "0.5501632", "0.5486027", "0.548168...
0.53050816
38
Legger til en ny node
@Override public void innKoe(T element){ LinearNode<T> nyNode= new LinearNode<T>(element); if(erTom()){ front = nyNode; }else{ bak.setNeste(nyNode); } bak = nyNode; antall++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNodeLabel ();", "@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new In...
[ "0.64632946", "0.6366011", "0.6268944", "0.620198", "0.6085367", "0.60212183", "0.5973582", "0.5960375", "0.59521055", "0.5908568", "0.5887593", "0.58776814", "0.58670074", "0.5828265", "0.58236426", "0.58211535", "0.5802937", "0.5802937", "0.5796542", "0.579627", "0.5791746"...
0.6019245
6
Sjekker om koen er tom
@Override public boolean erTom() { return (bak == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendeSpielfeld();", "public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n ...
[ "0.7093162", "0.65025985", "0.6388733", "0.63853043", "0.6322104", "0.6286742", "0.6283991", "0.616857", "0.61376345", "0.60829675", "0.60698825", "0.6059271", "0.60263366", "0.59776044", "0.5975932", "0.59655577", "0.5963392", "0.59576404", "0.59395707", "0.59375405", "0.593...
0.0
-1
Test of find method, of class LoginSessionBean.
@Test public void testFind() throws Exception { Map props = new HashMap(); // props.put("org.glassfish.ejb.embedded.glassfish.instance.root", // "/Applications/GlassFish/glassfishv3-webprofile/glassfish/domains/domain1"); props.put(EJBContainer.MODULES, new File[]{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean findLogin(Account account) throws Exception {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tflag = this.dao.findLogin(account);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "@Override\n\tpublic b...
[ "0.659093", "0.6586708", "0.64663", "0.6455154", "0.6454507", "0.6318539", "0.6294439", "0.62780935", "0.6229822", "0.6209659", "0.6209376", "0.6159424", "0.6106349", "0.6087329", "0.60777974", "0.60646856", "0.5964245", "0.5912184", "0.5896055", "0.5885686", "0.5873627", "...
0.77088666
0
Implements the model of the user during a Thinklab session. Only one user model should exist per session, and it can be retrieved from it; it may also be null for noninteractive sessions. Application tasks and interface components will check the lineage of the user model in order to enable or disable operations.
public interface IUserModel { /** * Sessions may have an input and an output stream associated in case they can interact * with the user through them. * * @return */ public abstract InputStream getInputStream(); /** * Sessions may have an input and an output stream associated in case they ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic User getModel() {\n\t\treturn user;\r\n\t}", "@Override\n\tpublic User getModel() {\n\t\treturn user;\n\t}", "public UserModel getUserModel() {\n return localUserModel;\n }", "@Override\n\tpublic userinfo getModel() {\n\t\treturn user;\n\t}", "@Override\r\n\tpublic U...
[ "0.7135184", "0.71142274", "0.70830786", "0.7073108", "0.7037503", "0.6894495", "0.6834925", "0.67576087", "0.6689826", "0.6452546", "0.6419085", "0.64087397", "0.64087397", "0.64087397", "0.6328184", "0.62869835", "0.6243205", "0.61537117", "0.61278695", "0.6036894", "0.6036...
0.64974964
9
Sessions may have an input and an output stream associated in case they can interact with the user through them.
public abstract InputStream getInputStream();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputStream getStdin();", "public interface IInputListener {\n\t\n\tpublic void onImmediateSessionCreationReady(String name,int rate);\n\t\n\tpublic void onPreparedSessionCreationReady(String name, int rate, String password,\n\t\t\tString startDate, String endDate);\n\t\n\tpublic void onSessionContributionReady...
[ "0.59468096", "0.5816326", "0.5791881", "0.5773399", "0.56215954", "0.55494285", "0.55261785", "0.5512631", "0.5461051", "0.5430398", "0.5403818", "0.5400812", "0.5373554", "0.5365798", "0.5341961", "0.53326005", "0.5329512", "0.5328754", "0.53260016", "0.5321237", "0.5299808...
0.0
-1
Sessions may have an input and an output stream associated in case they can interact with the user through them.
public abstract PrintStream getOutputStream();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputStream getStdin();", "public interface IInputListener {\n\t\n\tpublic void onImmediateSessionCreationReady(String name,int rate);\n\t\n\tpublic void onPreparedSessionCreationReady(String name, int rate, String password,\n\t\t\tString startDate, String endDate);\n\t\n\tpublic void onSessionContributionReady...
[ "0.5948047", "0.5816901", "0.5790701", "0.5773507", "0.5622618", "0.5548378", "0.5526756", "0.5512329", "0.5462706", "0.54302996", "0.54048586", "0.5402203", "0.53735286", "0.536549", "0.53421575", "0.5333126", "0.5329356", "0.53277296", "0.53252363", "0.5321847", "0.5300177"...
0.5173861
33
/ initialize, passing the session that this user works in
public abstract void initialize(ISession session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initUser(ActiveSession user) {\n this.user = user;\n }", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "public U...
[ "0.72105217", "0.6985225", "0.6799011", "0.67517996", "0.6711257", "0.66129386", "0.6376589", "0.63259184", "0.6303544", "0.62781763", "0.6236109", "0.6236109", "0.61521864", "0.61462456", "0.6137346", "0.61274797", "0.6118025", "0.611102", "0.61107206", "0.60953045", "0.6072...
0.7370017
0
/ set properties for user
public abstract void setProperties(Properties uprop);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "public static void setUserProperties(JSONObject userproperties){\n\n DataStore.setUserProperties(context, userproperties);\n sendUserProperties(Constants.Z_USER_PROPS_UPLOAD_PERIOD_MILLIS);\n }",...
[ "0.69655347", "0.6940485", "0.6852873", "0.6825005", "0.67098165", "0.66534024", "0.66502833", "0.6650206", "0.66464186", "0.64638835", "0.6441789", "0.64232075", "0.6413569", "0.6392307", "0.6380588", "0.6368578", "0.636324", "0.6361206", "0.63538545", "0.6333839", "0.632598...
0.62811655
25
/ get properties for user. Should never return null.
public abstract Properties getProperties();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }", "UserProperty getUserProperty(BaseUser u);", "public abstract Properties getProfileProperties();", "public static Map<Property, String> getProperties...
[ "0.76847017", "0.74203444", "0.70896053", "0.6906945", "0.6857419", "0.6850772", "0.6729145", "0.66901916", "0.66790795", "0.65234417", "0.65177256", "0.6497936", "0.64455605", "0.6443196", "0.64235085", "0.64099306", "0.63898206", "0.6372952", "0.63543165", "0.63409007", "0....
0.6492543
12
The Constructor Gets a deck, shuffles it and initializes the two players.
public Game(boolean _isFirst){ init(); isFirst = _isFirst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Deck()\n\t{\n\t\t//call other Constructor defining one deck with out shuffling\n\t\tthis(false);\n\t}", "public void initialDeck()\t{\n\t\tdeck1 = new Deck();\n\t\tdeck2 = new Deck();\n\t\tdeck1.shuffle();\n\t\tdeck2.shuffle();\n\t\tdeck1 = deck1.combine(deck2);\n\t\tdeck1.shuffle();\n\t}", "public void...
[ "0.7428516", "0.74180996", "0.7163939", "0.71350104", "0.7119766", "0.71062833", "0.70806736", "0.69925267", "0.6984166", "0.69637173", "0.6926409", "0.68221253", "0.6796992", "0.67217094", "0.6708797", "0.67058146", "0.66959554", "0.6683661", "0.66477674", "0.6636583", "0.66...
0.0
-1
Deals cards to both players
private void beginDeal() { for (int i = 0; i < DEAL; i++) { FirstPlayer.addCard(gameDeck.dealCard()); SecondPlayer.addCard(gameDeck.dealCard()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cardToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tcardToOne(player);\n\t\t\ttry {Thread.sleep(200);}catch(Exception exc) {exc.printStackTrace();}\n\t\t}\n\t}", "public void dealPlayer() {\n //Deal two cards to the player\n playerStack.add(cards[talonStack]);\n playerS...
[ "0.700381", "0.6955357", "0.69319236", "0.68956137", "0.68204314", "0.6785574", "0.6774837", "0.66321796", "0.6597938", "0.6592191", "0.6591598", "0.6580756", "0.6545482", "0.6541203", "0.6534612", "0.6529638", "0.65156764", "0.64995295", "0.6499521", "0.6499154", "0.64895374...
0.7217702
0
Displays a dialogue that shows the player the cards he has in player and asks if the player wants to add a card to his player
private int drawCards(){ int input = JOptionPane.showConfirmDialog(null, FirstPlayer.showHand() + SecondPlayer.showHand() + "Would you like to continue the game?\n", "Draw another card?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); return input; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addCard() { \n\t\tint sic_idHolder; // declares sic_idHolder\n\t\tString titleHolder; // declares titleHolder\n\t\tString authorHolder; // declares authorHolder\n\t\tdouble priceHolder; // declares priceHolder\n\t\tint quantityHolder; // declares quantityHolder\n\t\t\n\t\t\n\t\tSystem.out.println(\"Ma...
[ "0.6719426", "0.6633842", "0.6628725", "0.65566504", "0.64047474", "0.6335397", "0.6329631", "0.63217", "0.6306254", "0.6259029", "0.6204325", "0.61967146", "0.6180365", "0.617623", "0.61638325", "0.6163516", "0.6155284", "0.61488795", "0.61023474", "0.6094237", "0.60745347",...
0.6956368
0
function that is handling the state of war between the players meaning if the 2 players had the same card
private void War() { Player tempPlayer = new Player(); Card First,Second; First=FirstPlayer.removeTheCard(); Second=SecondPlayer.removeTheCard(); for(int i=0;i<3;i++) { tempPlayer.addCardToBegining(First); tempPlayer.addCardToBegining(Secon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void warBattleHandling()\n\t{\n\t\tplayedCards.add(player1.draw());\n\t\tplayedCards.add(player2.draw());\n\t\t\n\t\tactivePlayerOneCard = player1.draw();\n\t\tactivePlayerTwoCard = player2.draw();\n\t\t\n\t\tplayedCards.add(activePlayerOneCard);\n\t\tplayedCards.add(activePlayerTwoCard);\n\t\t\n\t\tif(acti...
[ "0.7402324", "0.7204602", "0.71920234", "0.7022752", "0.69884133", "0.6730668", "0.6697201", "0.666141", "0.6651325", "0.66307604", "0.6584704", "0.6540009", "0.65204644", "0.64958686", "0.6409026", "0.63574725", "0.63459736", "0.632878", "0.6322706", "0.63124645", "0.6285624...
0.70719236
3
/ after war situation is handeled moves all the cards from the temp array list to the wining player
private void moveTheCardsTotheWinner(int winPlayer,Player tempPlayer) { for(int i=0;i<tempPlayer.getLastIndex();i++) if(winPlayer == 1) FirstPlayer.addCardToBegining(tempPlayer.removeTheCard()); else if (winPlayer == 2) SecondPlayer.addCardToBeginin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void transferCards(Player player) {\r\n\t\twhile(warPile.size() > 0) {\r\n\t\t\tplayer.addToWinningsPile(warPile.remove(0));\r\n\t\t}\r\n\t}", "private void War() \n { Player tempPlayer = new Player();\n Card First,Second;\n First=FirstPlayer.removeTheCard();\n Second=SecondPlay...
[ "0.77750313", "0.77393675", "0.7423838", "0.70851207", "0.7053657", "0.68910986", "0.68704575", "0.6770715", "0.67501307", "0.6721603", "0.6712057", "0.66919416", "0.6690714", "0.66540754", "0.66445655", "0.66113555", "0.65831333", "0.65716255", "0.65413165", "0.65351146", "0...
0.7888251
0
While the player wants to draw cards, draws. If player busts, displays a message that stops the game and displays the results.
private void gameMove() { Card First,Second; First=FirstPlayer.removeTheCard(); Second=SecondPlayer.removeTheCard(); while (drawCards() == JOptionPane.YES_OPTION && determineWinLose() == 0) { if (First.getCardValue() > Second.getCardValue() ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int playerTurn() {\n List<Card> drawnCards = new LinkedList<>();\n boolean exit = false;\n\n // Ask the player to draw more cards\n do {\n // Draw cards\n Card drawn = drawCard();\n drawnCards.add(drawn);\n Ui.cls();\n Ui.pr...
[ "0.7266923", "0.71793824", "0.70740247", "0.7057716", "0.6949208", "0.6938067", "0.6861246", "0.6848366", "0.6775902", "0.6773399", "0.6737197", "0.6732739", "0.67255145", "0.6719115", "0.6702104", "0.6659785", "0.6652635", "0.66398305", "0.6585497", "0.6568109", "0.6553137",...
0.62790143
43
Asks the player if he wants to play again.
private void newGame() { int input = JOptionPane.showConfirmDialog(null, "Would you like to play again?\n","Game has ended",JOptionPane.YES_NO_OPTION); if (input == JOptionPane.NO_OPTION){ JOptionPane.showMessageDialog(null, "Thank you for playing! \n\nBye Bye!","Game Over", JOptionPane...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean PlayAgain() {\n int choice = Main.HandleInput(\"Play Again\", 2);\n if (choice == 1){\n ResetGame();\n return true;\n }\n else{\n return false;\n }\n }", "public void playAgain();", "public void playAgain() {\r\n\t\t\r\n\t\t...
[ "0.7845606", "0.78016007", "0.7636058", "0.7399189", "0.7310889", "0.7087639", "0.7011454", "0.6802566", "0.6797833", "0.6785005", "0.67714286", "0.6718222", "0.6636318", "0.6629576", "0.66197085", "0.658965", "0.6548205", "0.6540999", "0.6532285", "0.64527667", "0.6447063", ...
0.59097886
88
Intitializes the discovery thread.
public AgentDiscoveryThread(AgentServer owner, InetAddress multicastAddress, int multicastPort, int interval) { this.multicastAddress = multicastAddress; this.multicastPort = multicastPort; this.owner = owner; this.interval = interval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }", "private void startDiscovery() {\n\t\tbtAdapter.cancelDiscovery();\n\t\tbtAdapter.startDiscovery();\n\t}", "public static void initC...
[ "0.61698526", "0.59563035", "0.58903927", "0.5818642", "0.580603", "0.57585937", "0.5742687", "0.56450456", "0.5565115", "0.54803526", "0.54373467", "0.5435594", "0.542481", "0.5418858", "0.54119706", "0.54031503", "0.53752357", "0.53648865", "0.5333476", "0.5324022", "0.5311...
0.55458283
9
Now start signin process
public void callSignIn(String email, String password) { // progress bar progress = new ProgressDialog(LoginActivity.this); progress.setTitle("Sign In !!"); progress.setMessage("Please Wait !!"); progress.setCancelable(true); progress.setProgressStyle(ProgressDialog.ST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startSignIn() {\n Intent intent = AuthUI.getInstance().createSignInIntentBuilder()\n .setIsSmartLockEnabled(!BuildConfig.DEBUG)\n .setAvailableProviders(Arrays.asList(\n new AuthUI.IdpConfig.EmailBuilder().build(),\n ne...
[ "0.7145824", "0.7090119", "0.7042799", "0.6955943", "0.69287765", "0.685401", "0.68170834", "0.67878747", "0.675967", "0.67401", "0.6728523", "0.67198837", "0.67162496", "0.67162496", "0.67162496", "0.6712919", "0.6643558", "0.65638775", "0.65072364", "0.65023845", "0.6491567...
0.0
-1
NOTE When modify this method consider what it is used to create ParagonDictionaryManager object state trace
@Override public String toString() { return "Shopping{" + "sku='" + sku + '\'' + ", price=" + price + ", subscriptionPeriod=" + subscriptionPeriod + '}'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AgentBuilderDictionary() {\n\t\tsuper();\n\t}", "@CalledByNative\n public void onDictionaryAdded() {\n // Left blank;\n }", "@Override\n public Map<String, Object> currentState() {\n\n return new HashMap<>();\n }", "public void initializeDictionary() {\n\t\tmyDictionary = new...
[ "0.55288744", "0.5399482", "0.5316556", "0.51222616", "0.5104782", "0.5103559", "0.50842834", "0.5054297", "0.50372446", "0.5013983", "0.5008667", "0.5003175", "0.5001921", "0.4996575", "0.49893945", "0.49880645", "0.49633834", "0.49623486", "0.4956386", "0.49544054", "0.4932...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String str = bf.readLine(); int N = Integer.parseInt(str); String[] temp = bf.readLine().split(" "); // 숫자들 저장하는 배열 int[] dp = new int[N];...
{ "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
Find parameter format errors first
@SuppressWarnings({ "rawtypes", "unchecked" }) private Bet createBetInstance(final LinkedHashMap map, final EntityStash entityStash, final Locale locale) throws BetException { final List errorMessages = new ArrayList(); final Bet bet = this.createBetInstanceByType(map, errorMessages, locale); if (bet == null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void InvalidFormat();", "private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDoub...
[ "0.5959317", "0.5889481", "0.58816314", "0.5759796", "0.5706682", "0.5680333", "0.5665201", "0.55859554", "0.55483013", "0.55399066", "0.55399066", "0.55399066", "0.55399066", "0.5354954", "0.53391874", "0.532881", "0.5278405", "0.5258712", "0.52327836", "0.5227062", "0.52268...
0.0
-1
TestInterface testInterface = ()>System.out.println("sssssss"); testInterface.doSomeThing(); testInterface.printTest(); ParamsInterface p = (a,b) > a + b; System.out.println(p.add(5,6)); Function function1 = x > x 2; System.out.println(function1.apply(4));// 8 Function function2 = x > x 2 + "dd"; System.out.println(fun...
public static void main(String[] args) { Function<String, String> function1 = (string) -> string +string; System.out.println(function1.apply("aaa")); Function<String,String> function2 =s -> new String(s); System.out.println(function2.apply(function2.apply("sss"))); // Function<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Foo fooByIC= new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string);\n }\n };\n Foo fooByIc2=new Foo() {\n @Override\n public void method(String ...
[ "0.6911945", "0.67820895", "0.6487609", "0.6424185", "0.63071185", "0.61547506", "0.61353946", "0.6129405", "0.6112499", "0.6100361", "0.6041945", "0.60117495", "0.5992112", "0.5915199", "0.5913128", "0.5884506", "0.5851264", "0.5839773", "0.5814768", "0.58082086", "0.5796174...
0.64394116
3
Constructs a PopulatedPlace object that extends LocatedPlace
public PopulatedPlace(String zip, String town, String state, double latitude, double longitude, int population){ super(zip, town, state, latitude, longitude); this.population = population; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Place() {\r\n\t\tthis.name = \"Unknown Place\";\r\n\t\tthis.data = new LinkedHashMap<Integer, Data>();\r\n\t\tthis.populateData();\r\n\t}", "Place getPlace();", "private static Place buildPlace(Place parent, BindingSet bindings) {\n Value placeValue = bindings.getValue(\"place\");\n Value ...
[ "0.7222895", "0.6689423", "0.66166466", "0.63896126", "0.63319135", "0.63179845", "0.63179845", "0.63179845", "0.62846243", "0.6246318", "0.6215991", "0.6151602", "0.6114566", "0.61144435", "0.610227", "0.60783345", "0.60616714", "0.60297275", "0.5996472", "0.59953946", "0.59...
0.636717
4
Created by youngwa on 2019/01/22. 23:08
public interface GroupService { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "public void mo38117a() {\n }", "public void mo6081a() {\n }", "@Override\n public void perish() {\n ...
[ "0.5582706", "0.55636203", "0.5539517", "0.5519013", "0.5503035", "0.5448753", "0.5400594", "0.53650635", "0.5333193", "0.5333193", "0.5333193", "0.5333193", "0.5333193", "0.5333193", "0.5333193", "0.5287721", "0.52769166", "0.52769166", "0.52710724", "0.526423", "0.5261954",...
0.0
-1
call of db funktion to get list with articles with filter []
public LinkedList<Article> filterArticleList(int filter) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Article> findAll();", "List<Article> selectAll();", "ArrayList<News> findByAuthor(String author) throws DAOException, ConnectionPoolDataSourceException;", "public List<Articles> listArticlesService();", "public void setupArticlesList();", "public void listArticles() {\n\t\tSystem.out.println(...
[ "0.71516275", "0.7124012", "0.68395096", "0.65772396", "0.6509229", "0.6485481", "0.64830965", "0.64816463", "0.64354134", "0.63432497", "0.62745", "0.62454045", "0.62289786", "0.6220652", "0.6219227", "0.6218771", "0.62014776", "0.6198277", "0.61973244", "0.6181818", "0.6148...
0.6088497
22
/ access modifiers changed from: protected
public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public abstract ManagedChannelBuilder<?> builderForTarget(String str);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public abstract boolean isAvailable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public abstract int priority();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
Number of events recorded in the EventStore.
long getDbCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numberOfEvents() {\n List<Events> listOfEvents = retrieveEvents();\n if (listOfEvents != null) {\n return listOfEvents.size();\n } else {\n return 0;\n }\n }", "public int getCount() {\n\t\treturn events.size();\n\t}", "int getNumEvents() {...
[ "0.81602484", "0.8133082", "0.7737741", "0.75931877", "0.7554891", "0.7366047", "0.72796965", "0.7139127", "0.70438653", "0.6754222", "0.6725496", "0.6717464", "0.6707895", "0.65677583", "0.6530777", "0.65271693", "0.65207875", "0.65173066", "0.6513791", "0.65029347", "0.6467...
0.0
-1
Whether the emitter is currently sending events.
boolean isSending();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "public boolean isSelfMessageProcessingEvent();", "public boolean isEventsSuppressed() {\r\n\t\treturn eventsSuppressed;\r\n\t}", "public boolean hasSendRea...
[ "0.7306643", "0.7306643", "0.7306643", "0.7306643", "0.7306643", "0.7306643", "0.7255882", "0.7098537", "0.69066435", "0.6887667", "0.6880602", "0.6804325", "0.67572975", "0.67282206", "0.6709057", "0.66840696", "0.6676343", "0.66529757", "0.66419226", "0.66307765", "0.661106...
0.7027065
8
Pause emitting events. Emitting events will be suspended until resumed again. Suitable for low bandwidth situations.
void pause();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pause() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_PAUSE, this, null));\n\t}", "public synchronized void pause() {\r\n\r\n\t\tpaused = true;\r\n\t}", "public void pause() {\n\t\tsynchronized(this) {\n\t\t\tpaused = true;\n\t\t}\n\t}", "synchronized void pause() {\n\t\tpaused = true...
[ "0.6789662", "0.65193063", "0.64871746", "0.6427259", "0.64099777", "0.63288707", "0.626645", "0.625899", "0.6247859", "0.6225853", "0.62199944", "0.6204115", "0.6179658", "0.6151975", "0.6149188", "0.614384", "0.614384", "0.61394614", "0.6119121", "0.6112508", "0.6103036", ...
0.0
-1
Resume emitting events if previously paused. The emitter will resume emitting events again.
void resume();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void resume() {\r\n\r\n\t\tpaused = false;\r\n\t\tnotifyAll();\r\n\t}", "public synchronized void resume() {\n paused = false;\n this.notify();\n }", "public void resume() {\n paused = false;\n }", "public void resume()\n\t{\n\t\tisPaused = false;\n\t}", "publ...
[ "0.73437965", "0.73176664", "0.72487503", "0.71126336", "0.6833954", "0.67467505", "0.66804576", "0.6602893", "0.65073293", "0.6504229", "0.64880085", "0.644913", "0.6391471", "0.637075", "0.6368262", "0.6357993", "0.63371086", "0.6327109", "0.63240224", "0.6316435", "0.62797...
0.0
-1
on upgrade drop older tables
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL(DELETE_TABLE_ZADLAWIENIA); db.execSQL(DELETE_TABLE_TONIECIE); db.execSQL(DELETE_TABLE_PORAZENIE); db.execSQL(DELETE_TABLE_OPARZENIE); db.execSQL(DELETE_TABLE_RANY); db.exec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDc...
[ "0.8163109", "0.770959", "0.75683373", "0.7524388", "0.74309754", "0.7356155", "0.7311341", "0.72487235", "0.7237594", "0.7222855", "0.7128809", "0.70926255", "0.70651925", "0.70604795", "0.7022588", "0.69892496", "0.6922954", "0.6890829", "0.68854535", "0.6878749", "0.687810...
0.0
-1
TODO: consider allowing local
public static boolean isEmailValid(String email) { return email != null && ! email.isEmpty() && EmailValidator.getInstance(true).isValid(email); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLocal();", "public boolean isLocal()\n {\n return true;\n }", "public boolean isLocal();", "protected void setupLocal() {}", "private LocalParameters() {\n\n\t}", "@Override\n\tpublic void visitXlocal(Xlocal p) {\n\n\t}", "public boolean _is_local() {\n throw new NO_IMPLEM...
[ "0.65560734", "0.6403165", "0.6242011", "0.62293386", "0.598843", "0.59814787", "0.5973649", "0.5792153", "0.5635142", "0.55515045", "0.55515045", "0.55515045", "0.55515045", "0.55251527", "0.54644364", "0.54634815", "0.54535705", "0.5448931", "0.54279745", "0.54279745", "0.5...
0.0
-1
/ Toast.makeText(MainActivity.this,e.getText().toString(),Toast.LENGTH_LONG).show(); Intent i=new Intent(MainActivity.this,SecondActivity.class); i.putExtra("x",e.getText().toString()); startActivity(i); / Exercice 2
@Override public void onClick(View v) { if(e.getText().toString().equals("admin") && e2.getText().toString().equals("admin")) { Intent i=new Intent(MainActivity.this,SecondActivity.class); i.putExtra("x",e.getText().toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n GREETER=edit.getText().toString();\n\n //Acceder al segundo Activity y mandarle un string\n Intent intent=new Intent(MainActivity.this,SecondActivity.class);\n intent.putExtra(\"greeter\",GREETER); //...
[ "0.82818604", "0.8018333", "0.7985584", "0.7976507", "0.7908805", "0.76213205", "0.7573022", "0.7354493", "0.7350376", "0.7349671", "0.7346037", "0.72811747", "0.7243656", "0.7195977", "0.71868324", "0.7136624", "0.7091402", "0.7091177", "0.708215", "0.70670694", "0.701863", ...
0.83406854
0
this function lets you save the info if you rotate the phone or pause the activity
protected void onSaveInstanceState(Bundle savedInstance) { for (int i = 0; i < numInList; i++) { String name = shared.getString("ItemName" + Integer.toString(i), ""); float price = shared.getFloat("ItemPrice" + Integer.toString(i), 0); int quantity = shared.getInt("ItemQuant...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPause() {\n \t\t//Save settings Enabled, Alarm Hour, Alarm Minute\n SharedPreferences settings = getSharedPreferences(MainActivity.PREFS_NAME, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(MainActivity.ALARM_ENABLED, AlarmEnabled)...
[ "0.68603384", "0.66236675", "0.6574384", "0.656694", "0.6546696", "0.65337956", "0.65320367", "0.63372695", "0.63174075", "0.6314899", "0.6306767", "0.6298614", "0.62945855", "0.6291043", "0.62783515", "0.62635434", "0.62576383", "0.6248828", "0.618368", "0.61658674", "0.6146...
0.0
-1
opens the saved info from previous function
@Override public void onRestoreInstanceState(Bundle savedInstance) { for (int i = 0; i < numInList; i++) { int val = savedInstance.getInt("quantity"+i, 0); e.putInt("ItemQuantity"+i, val); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rememberOpenedlab(){\n try {\n FileOutputStream out = new FileOutputStream(iniFile);\n if(currentLab != null){\n writeValueToINI(out, \"prevLab\", currentLab.getPath());\n }\n else{\n writeValueToINI(out, \"prevLab\", \"\...
[ "0.6424432", "0.6412233", "0.63609487", "0.61596215", "0.60651743", "0.6057097", "0.60220176", "0.5980978", "0.5941192", "0.5915987", "0.5912207", "0.5910088", "0.5863627", "0.58615375", "0.584168", "0.5832468", "0.5808027", "0.578402", "0.5766891", "0.57509923", "0.5717882",...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_Customize) { Intent I = new Intent("com.example.Scott.concessionstand.Customize"); startActivity(I); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904043", "0.780547", "0.7765812", "0.7727281", "0.7631724", "0.76220447", "0.7583647", "0.75300074", "0.7487301", "0.7457336", "0.7457336", "0.74384063", "0.7421303", "0.7403516", "0.7391635", "0.7386828", "0.73791105", "0.737036", "0.73622394", "0.7355855", "0.7345513", ...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_seting); sharedPreferences = getSharedPreferences(MobileGuard.SHARE_PREFERENCE, MODE_PRIVATE); siv_update = (SwitchImageView) findViewById(R.id.siv_update); siv_intercep = ...
{ "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 void onClick(View v) { siv_update.changeSwitchStatus(); Editor editor = sharedPreferences.edit(); editor.putBoolean(MobileGuard.APP_AUTO_UPDATE, siv_update.getSwitchStatus()); editor.commit(); }
{ "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 void onClick(View v) { siv_intercep.changeSwitchStatus(); boolean status = siv_intercep.getSwitchStatus(); Intent intent = new Intent(SettingActivity.this, MgInCallStateService.class); if (status) { startService(intent); } else { stopService(intent); } }
{ "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 void onClick(View v) { siv_showlocation.changeSwitchStatus(); boolean status = siv_showlocation.getSwitchStatus(); Intent intent = new Intent(SettingActivity.this, MgCallLocationService.class); if (status) { startService(intent); } else { stopService(intent); ...
{ "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 void onClick(View v) { AlertDialog.Builder builder = new AlertDialog.Builder( SettingActivity.this); builder.setTitle("归属地查询风格"); builder.setSingleChoiceItems(MGApplication.bgNames, sharedPreferences.getInt( MobileGuard.SHOW_LOCATION_WHICHSTYLE, 0), new DialogIn...
{ "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 void onClick(DialogInterface dialog, int which) { Editor editor = sharedPreferences.edit(); editor.putInt( MobileGuard.SHOW_LOCATION_WHICHSTYLE, which); editor.commit(); dialog.dismiss(); }
{ "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
Gets the JSR311 URI information.
public UriInfo getUriInfo() { return _uriInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUri();", "java.lang.String getUri();", "String getURI();", "String getURI();", "String getURI();", "URI getUri();", "String getUri();", "String getUri( );", "public URI getURI()\r\n/* 36: */ {\r\n/* 37:64 */ return this.httpRequest.getURI();\r\n/* 38: */ }", "@Over...
[ "0.66600657", "0.66600657", "0.65501785", "0.65501785", "0.65501785", "0.64530736", "0.64360064", "0.63689953", "0.6326293", "0.62856305", "0.6259882", "0.62579995", "0.62473994", "0.61715937", "0.61652917", "0.6157561", "0.614911", "0.6063854", "0.60573024", "0.60254914", "0...
0.64910287
5
Sets the JSR311 URI information.
public void setUriInfo(UriInfo uriInfo) { this._uriInfo = uriInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLocationURI(URI locationURI);", "public void setRequestURI(URI requestURI);", "public void setUri(URI uri)\n {\n this.uri = uri;\n }", "public void setUri(URI uri) {\n this.uri = uri;\n }", "public void setUri(URI uri) {\n this.uri = uri;\n }", "public void setURI(DsURI a...
[ "0.64961565", "0.6186041", "0.6064756", "0.5934873", "0.5934873", "0.57301", "0.5691386", "0.5690404", "0.5651278", "0.56001854", "0.5590307", "0.5581312", "0.5550363", "0.5499182", "0.5499182", "0.5499182", "0.54865813", "0.5482796", "0.5478486", "0.54164296", "0.5399134", ...
0.61781955
2
Gets the clients tracker
public ClientTracker getClientTracker() { return _clientTracker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HashMap<String, Profile> getClients() {\n\t\treturn clients;\n\t}", "public static ArrayList<Client> getClients() {\n return clients;\n }", "public List<ClientThread> getClients(){\n return clients;\n }", "public ClientList getClients() {\r\n return this.clients;\r\n }"...
[ "0.6949658", "0.69100666", "0.6802796", "0.665763", "0.64307255", "0.64055866", "0.6396858", "0.63912374", "0.63785946", "0.6275247", "0.6205552", "0.6204783", "0.6199887", "0.6151799", "0.6140951", "0.6135321", "0.61177707", "0.60961175", "0.60762864", "0.60622287", "0.60602...
0.7586677
0
Sets the clients tracker
public void setClientTracker(ClientTracker clientTracker) { this._clientTracker = clientTracker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setClients(final List<RunDataClient> clients) {\r\n\t\tthis.clients=clients;\r\n\t\tcount=clients.size();\r\n\t}", "public synchronized void setClients(ClientList clients) {\r\n this.clients.clear();\r\n \r\n if (clients != null) {\r\n this.clients.addAll(clients);\r\n ...
[ "0.6965018", "0.68087417", "0.656444", "0.6512101", "0.6498115", "0.644567", "0.637378", "0.6349563", "0.62971133", "0.62029153", "0.61655813", "0.61606246", "0.61238897", "0.6112788", "0.60883015", "0.60856235", "0.60823077", "0.59968245", "0.59784096", "0.5975639", "0.59724...
0.7805231
0
Gets the users data tracker
public UserDataTracker getUserDataTracker() { return _userDataTracker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TrackerUsers getTrackerUsers(final Integer id);", "public Collection<String> getUsers() {\r\n \t\tCollection<String> users = new TreeSet<>();\r\n \t\tusers.addAll(this.dataLayer.getUser());\r\n \r\n \t\treturn users;\r\n \t}", "public HashMap<String, Integer> getUsers() {\n HashMap<String, Integer> user...
[ "0.67777514", "0.6628828", "0.63451856", "0.6288305", "0.62296355", "0.60904586", "0.6003331", "0.5975957", "0.5974711", "0.5960987", "0.5909296", "0.587978", "0.5863455", "0.58292043", "0.5824666", "0.57985955", "0.57850724", "0.5761148", "0.57427776", "0.57118726", "0.57010...
0.73935395
0
Sets the users data tracker
public void setUserDataTracker(UserDataTracker userDataTracker) { this._userDataTracker = userDataTracker; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }", "public void setUser(j...
[ "0.66896904", "0.66896904", "0.66896904", "0.6652864", "0.6628888", "0.65013355", "0.64789057", "0.638256", "0.63778335", "0.6321587", "0.62936926", "0.62932914", "0.62932914", "0.62932914", "0.62708753", "0.6232599", "0.62003833", "0.6104607", "0.60980284", "0.60606796", "0....
0.73850846
0
Gets the users resource context
public UsersResourceContext getContext() { return _context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UserContext getUserContext();", "protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}", "public void setContext(UsersResourceContext context) {\n this._context = context;...
[ "0.76189446", "0.6338554", "0.62541837", "0.62434953", "0.6112213", "0.6098642", "0.60717505", "0.60490364", "0.6029044", "0.5915566", "0.58954614", "0.58954614", "0.5863127", "0.584249", "0.58366156", "0.58322215", "0.5830003", "0.58293015", "0.58260876", "0.58230066", "0.58...
0.8408337
0
Sets the users resource context
public void setContext(UsersResourceContext context) { this._context = context; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserContext(UserContext userContext);", "public UsersResourceContext getContext() {\n return _context;\n }", "public void setContext(Context context) {\n this.contextMain = context;\n }", "public Context() {\n this.usersList = JsonParser.getUsersFromJsonArray();\n t...
[ "0.73525304", "0.67374265", "0.61645335", "0.61370015", "0.61035967", "0.60983235", "0.6033192", "0.5959279", "0.59565353", "0.59557194", "0.5950383", "0.59408045", "0.5934512", "0.58980316", "0.5897507", "0.58353645", "0.5832191", "0.5819048", "0.58179355", "0.5759567", "0.5...
0.8192387
0
Incrementa la puntuacion del jugador pasivamente
private void puntuacion(){ timer++; if(timer == 10){ contador++; timer = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }", "private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }", "public void increment() {\n increment(1);\n }", "public void incrementa(View view) {\n ...
[ "0.7704018", "0.66907334", "0.6533123", "0.65198165", "0.6443175", "0.6443175", "0.64381725", "0.64078003", "0.6343903", "0.6307989", "0.62800664", "0.6249443", "0.623414", "0.62291586", "0.62170124", "0.61975545", "0.61873484", "0.61869544", "0.61752725", "0.61625355", "0.61...
0.63352126
9
Agrega 100pts a la puntuacion
public void add(){ contador += 100; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void poder(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n if(experiencia>=100){ //condicion de aumento de nivel\n nivel=nivel+1;\n System.out.println(\"Aumento de nivel exitoso\");\n }\n else{\n ...
[ "0.59881425", "0.59033704", "0.56551874", "0.5584761", "0.54161996", "0.541029", "0.54071623", "0.53770065", "0.5371465", "0.5355062", "0.53207695", "0.52761644", "0.52673763", "0.5240833", "0.52276886", "0.5215334", "0.5201815", "0.5195759", "0.5160448", "0.5156189", "0.5148...
0.51110923
23
Check the device to make sure it has the Google Play Services APK. If it doesn't, display a dialog that allows users to download the APK from the Google Play Store or enable it in the device's system settings.
private boolean checkPlayServices() { GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance(); int resultCode = apiAvailability.isGooglePlayServicesAvailable(this); if (resultCode != ConnectionResult.SUCCESS) { if (apiAvailability.isUserResolvableError(resultCode)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkPlayServices()\n {\n\tint resultCode=-5000;\n\ttry {\n\t\tresultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n\tif (resultCode != ConnectionResult.SUCCESS)\n\t{\n\t ...
[ "0.75552595", "0.75122166", "0.73876226", "0.7371352", "0.7371352", "0.73672897", "0.7356874", "0.7318252", "0.72830766", "0.72814476", "0.72292435", "0.72255594", "0.72129226", "0.7204639", "0.7171566", "0.7158338", "0.70941454", "0.7065435", "0.70397514", "0.7012936", "0.69...
0.72206545
12
s = "chopper is not a tanuki", k = 5
public String truncateSentence(String s, int k) { int j = 0; String res = ""; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == ' ') { j++; } if (j == k) { res = s.substring(0, i); break; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int preSpace(String s, int k){\n \twhile(k >= 0){\n \t\tif(s.substring(k,k+1).equals(\" \"))\n \t\t\tbreak;\n \t\tk--;\n \t}\n \treturn k;\n }", "private int preNonSpace(String s, int k){\n \twhile(k>=0){\n \t\tif(!s.substring(k,k+1).equals(\" \"))\n \t\t\tbreak;\n \t\tk-...
[ "0.71941507", "0.7149667", "0.6989698", "0.68951285", "0.6820286", "0.67282426", "0.6709157", "0.66124296", "0.6524243", "0.6520386", "0.6496922", "0.6418101", "0.63737154", "0.63583887", "0.6338732", "0.6332859", "0.6316314", "0.63112205", "0.62928075", "0.6291774", "0.62155...
0.6727266
6
SimpleElementList wordKeyList=new SimpleElementList(folder+"/wordkey.list",true); HashMap phraseFrequencyIndex = new HashMap(); SimpleElementList phraseIndexList = new SimpleElementList(folder+"/phraseIndex.list",true); phraseDocumentsRelation = new HashMap>(); documentTermRelation = new HashMap>();
public void translate() { if(!init) return; termPhraseTranslation.clear(); // document threshold: number of terms / / 8 // docThreshold = (int) (wordKeyList.size() / computeAvgTermNum(documentTermRelation) / 8.0); // useDocFrequency = true; int minFrequency=1; emBkgCoefficient=0.5; probThres...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "public static void testDictionary()...
[ "0.68241626", "0.661834", "0.64825666", "0.6369946", "0.6324021", "0.63117886", "0.62974566", "0.6279682", "0.6259654", "0.6212815", "0.6167113", "0.6165232", "0.6160992", "0.613152", "0.61219156", "0.610277", "0.610277", "0.610277", "0.6069331", "0.60621285", "0.605865", "...
0.59672844
26
/ if(useEM) return Math.min(0.0001,probThreshold); else return probThreshold;
private double getMinInitProb(){ return probThreshold; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getSpecialProb();", "double getLowerThreshold();", "float getThreshold();", "double getExtremeSpikeProbability();", "public double getLowThreshold(){\n return lowThreshold;\n }", "private double getMinThreshold() {\n return minThreshold;\n }", "double getUpperT...
[ "0.7196149", "0.71099204", "0.6983833", "0.6702873", "0.66380787", "0.6605362", "0.6595531", "0.6341324", "0.6228388", "0.6224746", "0.6199374", "0.61476326", "0.6128711", "0.6122189", "0.61204964", "0.6101325", "0.6069622", "0.60692626", "0.6063898", "0.60374415", "0.6033122...
0.7649982
0
int[] location = new int[2]; view.getLocationInWindow(location);
private void videoVisible() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getLocationOnScreen(View v) {\r\n //DisplayMetrics dm = new DisplayMetrics();\r\n //((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(dm);\r\n //DisplayMetrics dm2 = getResources().getDisplayMetrics();\r\n int[] location = new int[2];\r\n v....
[ "0.64978325", "0.6430096", "0.6369958", "0.63122267", "0.62399465", "0.6222848", "0.6132197", "0.61001825", "0.6095695", "0.6091428", "0.59511936", "0.589194", "0.5848503", "0.5825809", "0.582506", "0.5825055", "0.58193046", "0.58173853", "0.58013195", "0.57803696", "0.574544...
0.0
-1
android debug debugImplementation 'com.amitshekhar.android:debugdb:1.0.3'
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); ButterKnife.bind(this, SplashActivity.this); getSupportActionBar().hide(); startService(new Intent(this, AppExitService.class)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public boolean isDebug() {\n return BuildConfig.DEBUG;\r\n }", "@Override\n public boolean isDebug() {\n return BuildConfig.DEBUG;\n }", "public void debug() {\n\n }", "public static void setDebug(boolean db) {\n\n\t\tdebug = db;\n\n\t}", "@Override\n\tpublic void...
[ "0.5993098", "0.5888468", "0.58222544", "0.567561", "0.5663596", "0.5546767", "0.55453056", "0.5542994", "0.55387753", "0.55285656", "0.5528043", "0.55019", "0.54687357", "0.54623246", "0.54623246", "0.5421136", "0.5355162", "0.53545547", "0.53300685", "0.5246716", "0.5230964...
0.0
-1
edit/remove doesn't have some fields, set it from old order
private void enhanceOrder(Order newOrder, Order oldOrder) { newOrder.setSymbol(oldOrder.getSymbol()); newOrder.setBuy(oldOrder.isBuy()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNewFieldOrder(List<Field> newOrder)\n\t{\n\t\tif (newOrder.size()!=fieldList.size())\n\t\t\tthrow new IllegalArgumentException(\"Field lists have different sizes\");\n\t\tfor (Field f: newOrder)\n\t\t\tif (!fieldList.contains(f))\n\t\t\t\tthrow new IllegalArgumentException(\"New field list has unexp...
[ "0.6501079", "0.61135805", "0.6101438", "0.59824353", "0.5981494", "0.59667206", "0.5883421", "0.5869347", "0.58210987", "0.5812709", "0.56698287", "0.56293434", "0.5625215", "0.56177324", "0.558879", "0.5583837", "0.5578979", "0.55734164", "0.5562344", "0.5527524", "0.552745...
0.53290284
48
TODO: Implement this method
@Override public int getCount() { return TITLE.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t...
[ "0.6146684", "0.5972078", "0.5951665", "0.5893627", "0.5893573", "0.58674604", "0.57714313", "0.57463145", "0.5679119", "0.5679119", "0.56602454", "0.5640005", "0.56188494", "0.5614183", "0.5613904", "0.5604922", "0.55885965", "0.5585748", "0.5544809", "0.5542787", "0.5460681...
0.0
-1
TODO: Implement this method
@Override public Fragment getItem(int position) { switch(position){ case 0: return new FragmentBeritaTerbaru(); case 1: return new FragmentBeritaTeknologi(); case 2: return new FragmentBeritaBisnis(); case 3: return new FragmentBeritaOlahraga(); case 4: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t...
[ "0.6146684", "0.5972078", "0.5951665", "0.5893627", "0.5893573", "0.58674604", "0.57714313", "0.57463145", "0.5679119", "0.5679119", "0.56602454", "0.5640005", "0.56188494", "0.5614183", "0.5613904", "0.5604922", "0.55885965", "0.5585748", "0.5544809", "0.5542787", "0.5460681...
0.0
-1