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
Calc distance for one point.
public double calcDistance(final Move otherPoint) { final double x = this.currentMove.getX(); final double y = this.currentMove.getY(); final double x2 = otherPoint.getX(); final double y2 = otherPoint.getY(); final double distx = Math.abs(x2 - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double distance(double x, double y);", "public int distance(Coord coord1, Coord coord2);", "double getDistance(Point p);", "private double Distance(Point first, Point second){ // distance between two points \n\t\treturn Math.sqrt(Math.pow(second.getY()-first.getY(),2) + Math.pow(second.getX()-first.ge...
[ "0.74184185", "0.72780764", "0.7257786", "0.71631676", "0.70974064", "0.70554703", "0.7052986", "0.704932", "0.70250905", "0.7013566", "0.699575", "0.6962632", "0.6960641", "0.6885158", "0.68707335", "0.6861633", "0.68264335", "0.6793614", "0.6791826", "0.67850053", "0.677795...
0.65458906
53
Created by pascke on 02/08/16.
public interface PesquisaEndpoint { @POST("pesquisa/filtrar") Call<ProcessoPagingModel> filtrar(@Body PesquisaModel pesquisaModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpu...
[ "0.5951255", "0.59100956", "0.5861402", "0.57850826", "0.5721186", "0.5717654", "0.5717654", "0.56771755", "0.56756955", "0.5671815", "0.5666701", "0.56596124", "0.56391406", "0.5631988", "0.56201476", "0.56201476", "0.56201476", "0.56201476", "0.56201476", "0.5608609", "0.56...
0.0
-1
Inflate the layout for this fragment Bundle bundle = this.getArguments(); username = bundle.getString("USER_NAME"); useremail = bundle.getString("USER_EMAIL"); userphone = bundle.getString("USER_PHONE"); usergender = bundle.getString("USER_GENDER");
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { SharedPreferences prefs =getContext().getSharedPreferences(MY_PREFS_NAME, MODE_PRIVATE); username= prefs.getString("USER_MOBILE", null); useremail= prefs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\ttv1 = (TextView)getActivity().findViewById(R.id.username);\n//\t\ttv1.setText(this.getArguments().getString(\"user\"));\n\t\treturn inflater.inflate(R.layout.activity_personal_info, containe...
[ "0.73985404", "0.7314453", "0.7086658", "0.7050867", "0.7035578", "0.6982773", "0.6921515", "0.6921515", "0.6869326", "0.6851221", "0.6829567", "0.68233967", "0.6821943", "0.6814037", "0.6779705", "0.67159915", "0.67118615", "0.6708073", "0.6682286", "0.66439295", "0.6624282"...
0.7665514
0
TODO Autogenerated method stub
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); editButton=(Button)getView().findViewById(R.id.edit_details); updateButton=(Button)getView().findViewById(R.id.update_details); final TextView view_username=(TextView)getView().findVi...
{ "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
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_sign_up, container, false); mAuth = FirebaseAuth.getInstance(); db = FirebaseFirestore.getInstance(); ...
{ "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.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
Data for "images/island.jpg" is returns, use this as needed
@Override public void onSuccess(byte[] bytes) { storageRef.child("profilepics/" + authUser.getUid()+ ".jpg") .putBytes(bytes) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getImage();", "String getImage();", "WorldImage getImage();", "public String getImage() {\n\t\tString ans=\"Data/NF.png\";\n\t\tif(image!=null)\n\t\t\tans=\"Data/Users/Pics/\"+image;\n\t\treturn ans;\n\t}", "java.lang.String getImagePath();", "public String getImg(){\n switch(imag...
[ "0.6903025", "0.6685787", "0.64853674", "0.64749813", "0.6461522", "0.64543295", "0.6436521", "0.64268774", "0.64268774", "0.62923837", "0.6187688", "0.615854", "0.614038", "0.6104876", "0.60941786", "0.6049735", "0.5930312", "0.58816177", "0.5867243", "0.584652", "0.58363473...
0.0
-1
which output resource is the productionRate associated with?
public String getName() { return name;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.yandex.ydb.rate_limiter.Resource getResource();", "public double getProduction()\n {\n\n return this.production;\n }", "private double getDynamicRate(String resourceName) {\n logger.trace(\"BEGIN double getDynamicRate(String resourceName)\");\n double rate;\n RateEngineRes...
[ "0.5934903", "0.58440566", "0.58032405", "0.57940364", "0.56771183", "0.56767815", "0.5638577", "0.5622927", "0.56195474", "0.5610783", "0.55791396", "0.55788124", "0.5572072", "0.55450296", "0.55014527", "0.5499529", "0.5482382", "0.54814774", "0.54713756", "0.54713756", "0....
0.0
-1
volume is rate per minute, with inputs having a negative rate
private void calculateRates() { if (rateOutput == null || !outputs.containsKey(rateOutput)) throw new RuntimeException("Insufficient data to calculate recipe rates"); recipesPerMinute = productionRate / outputs.get(rateOutput); for (String resource : inputs.keySet()) { ratesPerMinut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double volume();", "public abstract double calcVolume();", "public abstract double calcVolume();", "@Override\n\tpublic void calcularVolume() {\n\t\t\n\t}", "public abstract float volume();", "public float getVolumeMultiplier();", "double volume() {\n\t\treturn 0;\n\t}", "public doubl...
[ "0.6871559", "0.68449384", "0.68449384", "0.67678475", "0.67380106", "0.6717317", "0.66868347", "0.6675937", "0.6557882", "0.6546353", "0.65377074", "0.6525566", "0.6505687", "0.6505687", "0.6498828", "0.6457932", "0.64247566", "0.63650775", "0.62626535", "0.61886746", "0.614...
0.0
-1
returns the EC2 region set for the administrator
public static List<String> getEC2Regions(Long adminId) { List<String> ec2RegionList = new ArrayList<String>(); Connection con = null; try { con = DBUtils.getConn(); PreparedStatement stmt = con.prepareStatement("select * from ec2_region where admin_id=?"); s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "IRegion getRegion();", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }...
[ "0.6749359", "0.669396", "0.6546345", "0.6546345", "0.6546345", "0.6529835", "0.6529835", "0.6529835", "0.6529835", "0.6529835", "0.652377", "0.652377", "0.65119356", "0.64806217", "0.6473248", "0.6473248", "0.6473248", "0.6473248", "0.6468165", "0.64298296", "0.63609904", ...
0.6729616
1
sets the EC2 region for admin user
public static void setRegion(Long adminId, List<String> ec2RegionList) { Connection con = null; try { con = DBUtils.getConn(); //delete region PreparedStatement stmt = con.prepareStatement("delete from ec2_region where admin_id=?"); stmt.setLong(1, adminI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeGroups(groups = \"REGION_ADMIN\")\n protected void loginRegionAdmin() throws Exception {\n login(\"region@eos.cz\", \"region\");\n }", "public void setRegion(String region);", "public void setRegion(String region) {\n this.region = region;\n }", "public void setRegion(String region) {...
[ "0.6511021", "0.60071874", "0.5834073", "0.5782353", "0.5767279", "0.5767279", "0.5767279", "0.5694749", "0.5678433", "0.5678433", "0.5678433", "0.5644982", "0.5388487", "0.5359159", "0.5359159", "0.5355614", "0.5340673", "0.5269053", "0.52426237", "0.52413064", "0.5235191", ...
0.6711285
0
Tests the methods of the Employee class.
public static void main(String[] args) { Employee harry = new Employee("Hacker Harry", 5000); harry.raiseSalary(10); double salary = harry.getSalary(); System.out.println(salary); System.out.println("The expected: 5500"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void EmployeesTest() {\n\n }", "@Test\r\n\tpublic void addEmployeeTestCase3() {\n\t\tEmployee employee3 = new Employee();\r\n\t\temployee3.name = \"Lingtan\";\r\n\t\temployee3.role = \"Ui designer\";\r\n\t\temployee3.email = \"lingtan@chainsys.com\";\r\n\t\temployee3.employeeID = \"Ling2655\...
[ "0.777356", "0.7586604", "0.7483968", "0.7420682", "0.73841166", "0.7108935", "0.68831223", "0.68609583", "0.682081", "0.6780084", "0.6761019", "0.6648124", "0.66101843", "0.66044533", "0.65644103", "0.65546256", "0.655458", "0.6527269", "0.65196115", "0.6491626", "0.6466049"...
0.0
-1
Default constructor. Used to internal transactions.
public ProvisioningEngineerController() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transaction() {\n this(0, 0, null);\n }", "public Transaction() {\n }", "public TokenTransactions() {}", "public Txn() {\n }", "public VerifyTransactionImpl() {\n super();\n }", "protected Settlement() {\n // empty constructor\n }", "public Transaction(){\n\...
[ "0.8042317", "0.76308215", "0.7435229", "0.71628493", "0.6909412", "0.6861925", "0.68332523", "0.67854697", "0.6777501", "0.6749927", "0.6737407", "0.6686776", "0.6664397", "0.6657259", "0.6655172", "0.6617471", "0.6617471", "0.66094893", "0.6599678", "0.6533714", "0.65310675...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
public void run() { /* r8 = this; r1 = com.umeng.commonsdk.proguard.b.b; Catch:{ Throwable -> 0x00c9 } monitor-enter(r1); Catch:{ Throwable -> 0x00c9 } r0 = r8.a; Catch:{ all -> 0x00c6 } if (r0 == 0) goto L_0x00c4; L_0x0009: r0 = r8.b; Catch:{ all -> 0x00c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.7616838", "0.7573048", "0.7525757", "0.74508786", "0.7450473", "0.7437555", "0.7381664", "0.7381664", "0.7366731", "0.735352", "0.7341992", "0.7314967", "0.73080236", "0.73053473", "0.7273281", "0.72523504", "0.722139", "0.719779", "0.7177453", "0.7136381", "0.7105981", ...
0.0
-1
TODO Autogenerated method stub
protected Class[] getDestinationClassesImpl() throws Exception { return null; }
{ "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
protected Class[] getSourceClassesImpl() throws Exception { return null; }
{ "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
Activity must implement this
public interface OnUserCenterFragmentInteractionListener { void OnUserCenterFragmentInteractionListener(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}", "@Override\n\tpublic void starctActivity(Context context) {\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }"...
[ "0.72386795", "0.71330786", "0.70794415", "0.6991057", "0.6830289", "0.6754049", "0.67311007", "0.67068255", "0.668494", "0.668494", "0.6618008", "0.6613616", "0.6518534", "0.65151036", "0.650465", "0.648688", "0.6452704", "0.64524186", "0.64412344", "0.64278185", "0.642037",...
0.0
-1
name > parameter Constructs a new web service gateway decomposition.
public YAWLServiceGateway(String id, YSpecification specification) { super(id, specification); _yawlServices = new HashMap<String, YAWLServiceReference>(); _enablementParameters = new HashMap<String, YParameter>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ShipmentGatewayDhl createShipmentGatewayDhl();", "ServiceEndpointPolicy.DefinitionStages.Blank define(String name);", "ORGateway createORGateway();", "public WebService_Detalle_alquiler_factura() {\n }", "ShipmentGatewayConfig createShipmentGatewayConfig();", "Service(){\r\n\t\tserviceName =\"x\";\r\n...
[ "0.59182936", "0.571827", "0.56925344", "0.5669096", "0.566493", "0.55806464", "0.55634815", "0.5547306", "0.55443573", "0.55215406", "0.5515064", "0.5507447", "0.54988736", "0.54769087", "0.5419831", "0.5414575", "0.5404591", "0.5397998", "0.53648984", "0.5352251", "0.534111...
0.0
-1
Verifies this service gateway decomposition against YAWL semantics.
public void verify(YVerificationHandler handler) { super.verify(handler); for (YParameter parameter : _enablementParameters.values()) { parameter.verify(handler); } for (YAWLServiceReference yawlService : _yawlServices.values()) { yawlService.verify(handler); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean verify(String hostname, SSLSession ssls) {\n return true;\n }", "int isValid() throws IOException, SoapException;", "protected void verifyProtocol() throws IOException {\n try {\n outputStream.writeBytes(new RootRequest(repositor...
[ "0.4872605", "0.48407736", "0.48215064", "0.48131728", "0.46851337", "0.4672299", "0.46460974", "0.46309352", "0.46203235", "0.46053603", "0.45850724", "0.4571998", "0.4561228", "0.45567575", "0.45323193", "0.4523657", "0.448363", "0.44781685", "0.44781685", "0.44590273", "0....
0.5331748
0
Outputs this service gateway to an XML representation.
public String toXML() { StringBuilder xml = new StringBuilder(); //just do the decomposition facts (not the surrounding element) - to keep life simple xml.append(super.toXML()); for (YParameter parameter : _enablementParameters.values()) { xml.append(parameter.toXML()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}", "protected void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\...
[ "0.5960349", "0.5904195", "0.56770533", "0.5659082", "0.56271136", "0.5624035", "0.55944306", "0.5565504", "0.55458367", "0.5529325", "0.5520956", "0.54821956", "0.5449634", "0.5444618", "0.54283285", "0.5417705", "0.5394326", "0.53900415", "0.538715", "0.53780895", "0.537808...
0.589704
2
Gets the named YAWL Service associated with this gateway.
public YAWLServiceReference getYawlService(String yawlServiceID) { return _yawlServices.get(yawlServiceID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public YAWLServiceReference getYawlService() {\n if (_yawlServices.values().size() > 0) {\n return _yawlServices.values().iterator().next();\n }\n return null;\n }", "String getServiceName();", "String getServiceName();", "java.lang.String getServiceName();", "java.lang.S...
[ "0.6802498", "0.5717001", "0.5717001", "0.56943554", "0.56943554", "0.5642872", "0.56212205", "0.53843457", "0.53617096", "0.52967346", "0.5296496", "0.52942646", "0.5282528", "0.5271209", "0.52495205", "0.5246327", "0.52432483", "0.5241653", "0.5225424", "0.5224739", "0.5200...
0.6609036
1
Gets the YAWL Service associated with this gateway.
public YAWLServiceReference getYawlService() { if (_yawlServices.values().size() > 0) { return _yawlServices.values().iterator().next(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public YAWLServiceReference getYawlService(String yawlServiceID) {\n return _yawlServices.get(yawlServiceID);\n }", "public LocationService getService()\n {\n return LocationService.this;\n }", "public TTSService getService() {\n return TTSService.this;\n }"...
[ "0.65011513", "0.55856276", "0.53546464", "0.5350463", "0.52978534", "0.5268066", "0.52636695", "0.5228919", "0.5214975", "0.5193907", "0.51892287", "0.51839256", "0.5160044", "0.51429886", "0.51429886", "0.51429886", "0.50993174", "0.50820297", "0.5069198", "0.50542796", "0....
0.68952286
0
Sets the YAWL Service associated with this gateway.
public void setYawlService(YAWLServiceReference yawlService) { if (yawlService != null) { _yawlServices.put(yawlService.getURI(), yawlService); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public YAWLServiceGateway(String id, YSpecification specification) {\n super(id, specification);\n _yawlServices = new HashMap<String, YAWLServiceReference>();\n _enablementParameters = new HashMap<String, YParameter>();\n }", "public abstract void setYjaService(AbsYJACommonService yjaSer...
[ "0.6269435", "0.5978348", "0.5455875", "0.5162967", "0.50912887", "0.50082433", "0.50002897", "0.49995238", "0.4981743", "0.49052262", "0.48723054", "0.48593092", "0.48574013", "0.4843249", "0.4840039", "0.47794896", "0.47638363", "0.4740767", "0.47387788", "0.4719918", "0.47...
0.6567575
0
Gets the enablement parameters.
public Map<String, YParameter> getEnablementParameters() { return _enablementParameters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Set<String> getEnablementParameterNames() {\n return _enablementParameters.keySet();\n }", "public EngineParameters getEngineParameters() {\n\t\treturn engineParameters;\n\t}", "@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n ...
[ "0.7715468", "0.64735013", "0.5892701", "0.58602834", "0.58536303", "0.58434945", "0.579251", "0.57786477", "0.5716546", "0.56985486", "0.56782514", "0.5649314", "0.56337065", "0.5628194", "0.56054187", "0.56034386", "0.55974185", "0.55927724", "0.5586075", "0.5583779", "0.55...
0.83780783
0
Returns the parameter names for enablement.
protected Set<String> getEnablementParameterNames() { return _enablementParameters.keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, YParameter> getEnablementParameters() {\n return _enablementParameters;\n }", "public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }", "public Collection<String> getParamNames();", "public String[] getParameterName...
[ "0.75663555", "0.72233063", "0.71781725", "0.7104104", "0.6838347", "0.6837371", "0.6817234", "0.67965287", "0.67887676", "0.6712132", "0.6687627", "0.6682469", "0.6613998", "0.6553053", "0.6526915", "0.64719516", "0.6465228", "0.6424316", "0.64104295", "0.6390538", "0.637311...
0.8754484
0
These parameters become available to yawl services when a task is enabled.
public void setEnablementParameter(YParameter parameter) { if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) { if (null != parameter.getName()) { _enablementParameters.put(parameter.getName(), parameter); } else if (null != parameter.getElementName()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initTsnParams(){\n }", "public CustomEntitiesTaskParameters() {}", "@Override\r\n\tpublic void PreExecute(TaskConfig config){\n\t}", "public void updateTaskDetailsInDB(UniverseDefinitionTaskParams taskParams) {\n getRunnableTask().setTaskDetails(RedactingService.filterSecretFields(Json.toJs...
[ "0.5671398", "0.56510746", "0.5612066", "0.5500709", "0.5484891", "0.5473475", "0.5435301", "0.54311365", "0.5396615", "0.53623444", "0.5327999", "0.5304106", "0.5301988", "0.52856183", "0.52555025", "0.52479553", "0.52270925", "0.52217823", "0.52115923", "0.5167247", "0.5107...
0.0
-1
write your code here
public static void main(String[] args) throws Exception { int[] i = {1,2,3,4,4}; List<String> l = Files.readAllLines(Paths.get("C:\\Temp\\a.txt")); for (String s:l) System.out.println(s); String[] s = {"aaa", "bbb", "ccc"}; for (String str:s) System.out...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { super.run(); try { // 循环等待对话 while (!interrupted()) { readStr = readString(); type = getXmlType(readStr);// 解析类型 actionType(type);// 根据类型做出反应 } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{ "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
FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULE, RequestMethod.POST);
@Override public void mySchedule(String date) { FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST); request.add("username", application.getSystemUtils().getDefaultUsername()); request.add("token", applic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity...
[ "0.59909123", "0.5924405", "0.58874595", "0.5884898", "0.58635265", "0.58367974", "0.5811394", "0.57828516", "0.57498235", "0.5736886", "0.5734366", "0.56997293", "0.5689201", "0.5679024", "0.5650599", "0.5641006", "0.5627458", "0.56028605", "0.559295", "0.55876833", "0.55813...
0.6766161
0
FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MONTHCALENDAR, RequestMethod.POST);
@Override public void monthCalendar(String date) { FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MONTHCALENDARV2, RequestMethod.POST); request.add("token", application.getSystemUtils().getToken()); request.add("username", applicatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"to...
[ "0.6395004", "0.59887695", "0.59001887", "0.58118707", "0.5790491", "0.5774205", "0.57084614", "0.56385577", "0.56165725", "0.55972856", "0.5538303", "0.5509586", "0.5501614", "0.54949725", "0.54862696", "0.54798675", "0.54723823", "0.5467723", "0.5464927", "0.54558945", "0.5...
0.61702013
1
TODO Autogenerated method stub
@Override public void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3) throws Exception { }
{ "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 postHandle(HttpServletRequest request, HttpServletResponse arg1, Object arg2, ModelAndView arg3) throws Exception { }
{ "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
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.7884413", "0.7549383", "0.7497253" ]
0.74617267
98
Checks if a string can be sent
public static boolean canSend(String check) { for (final String check2 : checks) { if (check.contains(check2)) return false; if (check.contains("," + check2.substring(1))) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canProvideString();", "public abstract boolean accepts(String string);", "private boolean canSend() {\n\n if (StringUtils.isEmpty(constructedCommand())) return false;\n\n int beginIndex = constructedCommand()\n .indexOf(serialProperties.getCmdBeginMarker());\n ...
[ "0.74992156", "0.6915792", "0.6452882", "0.61817676", "0.61249137", "0.60780925", "0.60779214", "0.605438", "0.60418266", "0.6010373", "0.6010373", "0.59868664", "0.5959307", "0.5950863", "0.59484035", "0.5944265", "0.5937749", "0.5935179", "0.5932103", "0.58922285", "0.58603...
0.0
-1
Checks for a snitch. Uses three divideandconquer searches on world, x, z (in that order) to narrow search within a sorted list. This works because the sorted list is sorted using keys world, x, z, y in that order. First the slice holding snitches in the same world is found, then the slice of that holding the X of inter...
public static void checkSnitchArea(String world, int x, int y, int z, ArrayList<Snitch> snitchList, boolean removeSnitch) { try { searchChecks = 0l; int min = 0; findLowerLimit(Search.WORLD, world, 0, snitchList.size() - 1, snitchList); int max = snitchList.size()-1; findUpperLimit(Search.WORLD, wo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static ArrayList<int[]> searcherTopLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\...
[ "0.5636033", "0.55184346", "0.5406719", "0.5342322", "0.52996033", "0.52564216", "0.5233353", "0.51994437", "0.51945615", "0.51866734", "0.5175769", "0.5159035", "0.51576024", "0.51455677", "0.51405317", "0.5126461", "0.5120413", "0.51050436", "0.50626993", "0.501729", "0.501...
0.74931204
0
Set the servletContext, users and counter to null
public synchronized void contextDestroyed(ServletContextEvent event) { servletContext = null; userOnlineCounter = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearCurrentUser() {\n currentUser = null;\n }", "public static void clearContext() {\n log.debug(\"Clearing the current HTTP Request Headers context\");\n context.remove();\n }", "private void initialize()\r\n {\r\n this.workspace = null;\r\n this.currentUser = null...
[ "0.6079954", "0.60456514", "0.59755516", "0.59410256", "0.5931124", "0.5870799", "0.5845967", "0.58442885", "0.58365494", "0.5802413", "0.5785437", "0.57393634", "0.5733481", "0.57327116", "0.5722722", "0.5704846", "0.5691719", "0.564957", "0.564957", "0.5638778", "0.56314725...
0.67434275
0
Write the merged canvas
@Override public void close(TaskAttemptContext context) throws IOException, InterruptedException { mergedCanvas.write(outFile); outFile.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n graphicsEnvironmentImpl.save(canvas);\n }", "public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); ...
[ "0.572593", "0.5598752", "0.54493445", "0.54318523", "0.5367676", "0.53538376", "0.5318566", "0.52897936", "0.5256047", "0.52451426", "0.52071446", "0.5204596", "0.51927936", "0.5167401", "0.5151917", "0.5132515", "0.5116068", "0.5111119", "0.5083687", "0.5076802", "0.5075871...
0.66084415
0
Initializes an instance of DataSourcesImpl.
DataSourcesImpl(SearchServiceClientImpl client) { this.service = RestProxy.create(DataSourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataSourceFactory() {}", "public DataSourcesImpl dataSources() {\n return this.dataSources;\n }", "synchronized void initDataSource()\n throws SQLException\n {\n if (_isStarted)\n return;\n \n _isStarted = true;\n \n for (int i = 0; i < _driverList.size(); i++) {\n ...
[ "0.686326", "0.65357614", "0.65247816", "0.64846605", "0.6480676", "0.6464266", "0.6452319", "0.64070183", "0.6351217", "0.6332066", "0.6292477", "0.6285412", "0.6251011", "0.61844337", "0.6163195", "0.61594176", "0.61362445", "0.60818654", "0.59961975", "0.59775573", "0.5974...
0.0
-1
The interface defining all the services for SearchServiceClientDataSources to be used by the proxy service to perform REST calls.
@Host("{endpoint}") @ServiceInterface(name = "SearchServiceClientD") public interface DataSourcesService { @Put("/datasources('{dataSourceName}')") @ExpectedResponses({200, 201}) @UnexpectedResponseExceptionType(SearchErrorException.class) Mono<Response<SearchIndexerDataSourceCon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataSourcesImpl(SearchServiceClientImpl client) {\n this.service =\n RestProxy.create(DataSourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter());\n this.client = client;\n }", "public interface SearchClientService {\r\n\t/**\r\n\t * Get Search engine client...
[ "0.7729329", "0.59201163", "0.58811724", "0.5632606", "0.5573845", "0.5572894", "0.55336106", "0.5461923", "0.54429543", "0.54297084", "0.53890365", "0.5371905", "0.5370064", "0.52827215", "0.5265876", "0.5259381", "0.5232016", "0.5231449", "0.522722", "0.5197813", "0.5196246...
0.65638995
1
Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_login, menu);
@Override public boolean onCreateOptionsMenu(Menu menu) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_login, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu)\r\n\t{\n\t\tgetMenuInflate...
[ "0.8108427", "0.80867785", "0.8078204", "0.8078204", "0.8078204", "0.8078204", "0.8078204", "0.8078204", "0.8067871", "0.80578095", "0.8034486", "0.8034205", "0.8034205", "0.8034205", "0.8034205", "0.8034205", "0.8034205", "0.8034205", "0.8034205", "0.8034205", "0.8034205", ...
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_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "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.7904035", "0.78057915", "0.77662706", "0.7727266", "0.76317817", "0.76219225", "0.7584542", "0.7530336", "0.7487623", "0.7457442", "0.7457442", "0.7438915", "0.7421425", "0.7403424", "0.73923", "0.7387485", "0.7379756", "0.7370862", "0.73622537", "0.73564696", "0.7345994",...
0.0
-1
Given a collection of items this will randomly pick an item. The random choice is via `java.util.Random` with the default constructor.
public static <X> X randomPick(Collection<X> xs) { checkNotEmpty(xs, "xs cannot be null"); List<X> asList = xs instanceof List ? (List<X>) xs : new ArrayList<>(xs); return randomPick(asList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RandomFromCollectionGenerator(@Nonnull Collection<T> items) {\n this.items = ImmutableList.copyOf(checkNotNull(items, \"Collection for generation can't be null\"));\n exclusiveIndex = this.items.size();\n }", "private ExtractedItemsCollection selectItemByChance(Collection<ExtractedItemsCo...
[ "0.7407498", "0.7383643", "0.7383643", "0.73521215", "0.71355826", "0.7083974", "0.69958085", "0.6982267", "0.6933931", "0.6799121", "0.6785702", "0.66705483", "0.662567", "0.6604544", "0.658781", "0.6552821", "0.65357894", "0.6499535", "0.6497292", "0.6491921", "0.64915437",...
0.6453786
21
maintains the order of the VariableUnits that are parsed from input
public Equation() { alpha_arr = new ArrayList<LinkedList<VariableUnit>>(); for (int i = 0; i < 26; i++) { LinkedList<VariableUnit> list = new LinkedList<VariableUnit>(); alpha_arr.add(list); } op_order = new LinkedList<VariableUnit>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setUnits() {\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.units != null) {\r\n\r\n if (element.name.equals(\"xspace\")) {\r\n\r\n if (element.units.equals(\"mm\")) {\r\n setUnitsOfMeasure(Un...
[ "0.6329346", "0.59954685", "0.5847224", "0.5352626", "0.53008044", "0.52993184", "0.5221491", "0.5215454", "0.5211204", "0.51967466", "0.51967466", "0.51967466", "0.5086575", "0.5080731", "0.5070887", "0.50449055", "0.50425756", "0.50410956", "0.50375986", "0.5026019", "0.502...
0.0
-1
/ This is currently a test of the algorithm for solving an Equation
public VariableUnit solve() { LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>(); VariableUnit vu1 = new VariableUnit(250.0, 'x'); VariableUnit vu2 = new VariableUnit('+'); VariableUnit vu3 = new VariableUnit(250.0, 'x'); VariableUnit vu4 = new V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void equationsTest() {\n }", "@Test\r\n public void test() {\r\n String[][] equations = { { \"a\", \"b\" }, { \"b\", \"c\" } },\r\n queries = { { \"a\", \"c\" }, { \"b\", \"a\" }, { \"a\", \"e\" }, { \"a\", \"a\" }, { \"x\", \"x\" } };\r\n double[] values = { 2.0, 3.0 };\r\n as...
[ "0.7618557", "0.72323537", "0.70746523", "0.70285565", "0.6992299", "0.69520366", "0.69512284", "0.69395286", "0.6910878", "0.6848633", "0.6830054", "0.68268025", "0.6800201", "0.6772984", "0.673591", "0.6725853", "0.67033327", "0.66816366", "0.6656718", "0.6639246", "0.65922...
0.6869455
9
Simple flags have no values; treat presence/absence as true/false
private static String asPropertyValue( List<?> values, boolean present ) { return values.isEmpty() ? String.valueOf( present ) : Joiner.on( "," ).join( values ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasFlag();", "boolean hasFlags();", "public abstract int flags();", "boolean booleanOf();", "@Test\r\n public void testBooleanFlagAndNoValue() throws Exception {\r\n PluginTestCase<I>[] inputs = getTestData().getFlagCases();\r\n for (PluginTestCase<I> testCase : inputs) {\r\n ...
[ "0.70811564", "0.6951984", "0.66085887", "0.6519021", "0.64728105", "0.6436195", "0.63963366", "0.63746566", "0.63746566", "0.6356945", "0.6321065", "0.63000464", "0.62893844", "0.6269461", "0.6252478", "0.6163214", "0.615934", "0.615934", "0.615934", "0.615934", "0.6151313",...
0.0
-1
BA.debugLineNum = 23;BA.debugLine="Sub Globals"; BA.debugLineNum = 24;BA.debugLine="Private Icon As BitmapDrawable";
public static RemoteObject _globals() throws Exception{ requests3.mostCurrent._icon = RemoteObject.createNew ("anywheresoftware.b4a.objects.drawable.BitmapDrawable"); //BA.debugLineNum = 25;BA.debugLine="Private xui As XUI"; requests3.mostCurrent._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLine...
[ "0.69283795", "0.65326416", "0.6400401", "0.6229679", "0.6144756", "0.61426854", "0.6111996", "0.60626906", "0.58290267", "0.5826658", "0.5795791", "0.57781553", "0.575903", "0.57416654", "0.57415235", "0.5683153", "0.56670964", "0.5650977", "0.562631", "0.5606145", "0.554267...
0.5717854
15
BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals"; BA.debugLineNum = 11;BA.debugLine="Public Device As Phone";
public static RemoteObject _process_globals() throws Exception{ requests3._device = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone"); //BA.debugLineNum = 13;BA.debugLine="Private TileSource As String"; requests3._tilesource = RemoteObject.createImmutable(""); //BA.debugLineNum = 14;BA.debugLine="Private Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Ti...
[ "0.6913164", "0.686232", "0.6399442", "0.63709176", "0.6207551", "0.59787244", "0.5867059", "0.5768359", "0.57075346", "0.56371963", "0.56059086", "0.5574812", "0.552857", "0.5453127", "0.54351366", "0.5418048", "0.5398186", "0.5380824", "0.5337484", "0.5317465", "0.53155094"...
0.62866485
4
/ access modifiers changed from: packageprivate
public void checkDelimiters() { UnicodeSet unicodeSet = this.m_delimiters_; int i = 0; if (unicodeSet == null || unicodeSet.size() == 0) { this.delims = new boolean[0]; return; } UnicodeSet unicodeSet2 = this.m_delimiters_; int rangeEnd = u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
Enumerate all Solutions to the problem described in a LockScreen
public ArrayList<float[]> getSolutions( LockScreen problem ) { ArrayList<float[]> solutions = new ArrayList<float[]>(); int pbSize = problem._disks.size(); // init all to -PI for (LockDisk disk : problem._disks) { disk.reset(); disk._rotAngle = - MathUtils.PI; } // Solution System.out.println...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean evaluateSolution( LockScreen problem ) {\n\t\tfor (LockDisk disk : problem._disks) {\n\t\t\tfor (LaserSrc laser : disk._lasers) {\n\t\t\t\tlaser._distBeam = -1.0f;\n\t\t\t\tif( disk._nextDisk != null ) {\n\t\t\t\t\tlaser._distBeam = disk._nextDisk.isBlocking(\n\t\t\t\t\t\t\tdisk.normalizeAngleRad( laser._a...
[ "0.55123657", "0.5487722", "0.5396705", "0.53518796", "0.5239681", "0.516994", "0.5161601", "0.5155078", "0.51009333", "0.50986046", "0.50960946", "0.5079916", "0.50544506", "0.49812338", "0.4977455", "0.497412", "0.49537048", "0.49456215", "0.4937579", "0.4936998", "0.492676...
0.58859277
0
Need to evaluate the distance for each laser
boolean evaluateSolution( LockScreen problem ) { for (LockDisk disk : problem._disks) { for (LaserSrc laser : disk._lasers) { laser._distBeam = -1.0f; if( disk._nextDisk != null ) { laser._distBeam = disk._nextDisk.isBlocking( disk.normalizeAngleRad( laser._angLaser + disk._rotAngle - disk._nex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }", "privat...
[ "0.6755936", "0.66077393", "0.65016806", "0.6479271", "0.64780676", "0.62742734", "0.6256415", "0.6254487", "0.6189598", "0.6116574", "0.6113442", "0.6097413", "0.6059156", "0.60501724", "0.60434073", "0.6032214", "0.60161966", "0.6015085", "0.59710366", "0.5967728", "0.58620...
0.0
-1
ycoordinate of this point Initializes a new point.
public Point(int x, int y) { /* DO NOT MODIFY */ this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY(double point) {\n this.y = point;\n }", "void setY(final Number y) {\n this.yCoordinate = y;\n }", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", ...
[ "0.7445294", "0.740083", "0.7375481", "0.7356984", "0.7307103", "0.7292456", "0.7272895", "0.7267107", "0.726491", "0.7247131", "0.7245219", "0.72439414", "0.72253084", "0.7206983", "0.71776295", "0.71764696", "0.71743387", "0.71578103", "0.71578103", "0.71578103", "0.714918"...
0.0
-1
Draws this point to standard draw.
public void draw() { /* DO NOT MODIFY */ StdDraw.point(x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "public void drawTo(Point that) {\r\n /* DO NOT MODIFY */\r\n StdDraw.line(this.x, this.y, that.x, that.y);\r\n }", "public void drawTo(Point that) {\n /* DO NOT MODIFY */\n StdDraw.lin...
[ "0.80359924", "0.71873075", "0.71825695", "0.71825695", "0.71825695", "0.71825695", "0.7170866", "0.7138526", "0.711635", "0.695633", "0.69459975", "0.68482095", "0.68248", "0.6772052", "0.6764642", "0.6759165", "0.671562", "0.66303027", "0.661976", "0.66051966", "0.6593306",...
0.805948
3
Draws the line segment between this point and the specified point to standard draw.
public void drawTo(Point that) { /* DO NOT MODIFY */ StdDraw.line(this.x, this.y, that.x, that.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawLine(Point2D startPoint, Point2D endPoint, double lineStroke, int EndType);", "public void drawLine(int x, int y, int x2, int y2, int color);", "public void drawLine(int x1, int y1, int x2, int y2);", "private void drawLine(GraphicsContext canvas, Point start, Point end) {\n canvas.str...
[ "0.72415006", "0.70916426", "0.7048941", "0.69983244", "0.6927731", "0.69134146", "0.6835305", "0.6828243", "0.6819863", "0.6792469", "0.67858595", "0.6713705", "0.66874397", "0.6668853", "0.66057104", "0.6495798", "0.64528716", "0.64528716", "0.64528716", "0.64528716", "0.64...
0.6941427
7
Returns the slope between this point and the specified point. Formally, if the two points are (x0, y0) and (x1, y1), then the slope is (y1 y0) / (x1 x0). For completeness, the slope is defined to be +0.0 if the line segment connecting the two points is horizontal; Double.POSITIVE_INFINITY if the line segment is vertica...
public double slopeTo(Point that) { if (that.x == x && that.y == y) return Double.NEGATIVE_INFINITY; else if (that.x == x && that.y != y) return Double.POSITIVE_INFINITY; else if (that.x != x && that.y == y) return +0.0; return (double) (that.y - y) / (that.x - x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double slope() throws VerticalLineRuntimeException {\n if(this.isVertical()) \n throw new VerticalLineRuntimeException(\n \"You can't compute the slope of a vertical line.\");\n else \n return((point2.getSecond()-point1.getSecond())/\n (point2.getFirst()-point1.getF...
[ "0.7934883", "0.777518", "0.7672909", "0.7616454", "0.7605469", "0.7585993", "0.75089544", "0.74279785", "0.7389036", "0.73427653", "0.73275775", "0.7287065", "0.72448385", "0.72130245", "0.71160126", "0.7053105", "0.69749385", "0.6925853", "0.6393567", "0.6388538", "0.611711...
0.7394536
8
Compares two points by ycoordinate, breaking ties by xcoordinate. Formally, the invoking point (x0, y0) is less than the argument point (x1, y1) if and only if either y0 < y1 or if y0 = y1 and x0 < x1.
public int compareTo(Point that) { if (y < that.y || (y == that.y && x < that.x)) return -1; else if (x == that.x && y == that.y) return 0; return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.y - b.y));\n }", "@Override\n public int compare(QuickHull.Point p1, QuickHull.Point p2){\n if(p1.x== p2.x && p1.y==p2.y)\n return 0;\n //if x coordinate less or x coordinate equal, b...
[ "0.6869067", "0.68122935", "0.6804685", "0.6762705", "0.66226184", "0.66086364", "0.6492272", "0.6447281", "0.6352061", "0.6341507", "0.63310987", "0.6276339", "0.62569326", "0.6249785", "0.6233951", "0.62111664", "0.6174498", "0.61285555", "0.6111189", "0.61003995", "0.59673...
0.6419028
8
Compares two points by the slope they make with this point. The slope is defined as in the slopeTo() method.
public Comparator<Point> slopeOrder() { return new Comparator<Point>() { @Override public int compare(Point o1, Point o2) { if (slopeTo(o1) < slopeTo(o2)) return -1; else if (slopeTo(o1) == slopeTo(o2)) return 0; els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double slopeTo(Point that) {\n// System.out.printf(\"in slope %d %d %d %d\\n\", this.x , this.y, that.x, that.y);\n if (this.compareTo(that) == 0)\n return Double.NEGATIVE_INFINITY;\n if (this.x == that.x)\n return Double.POSITIVE_INFINITY;\n if (this.y == t...
[ "0.71421397", "0.6977321", "0.6965073", "0.69290274", "0.6836311", "0.68358284", "0.68260694", "0.67218065", "0.67060184", "0.6665413", "0.6354583", "0.6284609", "0.6273099", "0.623313", "0.61945194", "0.61584663", "0.60364854", "0.59297705", "0.5869299", "0.58622533", "0.583...
0.67113984
8
Returns a string representation of this point. This method is provide for debugging; your program should not rely on the format of the string representation.
public String toString() { /* DO NOT MODIFY */ return "(" + x + ", " + y + ")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn \"#Point {x: \" + this.getX() + \", y: \" + this.getY() + \"}\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Point x=\"+x+\" y=\"+y;\n\t}", "public String toString()\n\t{\n\t\tString data = \"(\" + x + \", \" + y + \")\";\n\t\treturn data;\t\t\t\t\t\t\t\...
[ "0.8186063", "0.80700475", "0.79832184", "0.77531165", "0.7584916", "0.7580891", "0.7580699", "0.756612", "0.75328547", "0.75060695", "0.7495054", "0.7444795", "0.74280006", "0.73963344", "0.7394032", "0.7379329", "0.7377226", "0.7358632", "0.7341362", "0.7288161", "0.7280497...
0.7067834
45
Unit tests the Point data type.
public static void main(String[] args) { Point p1 = new Point(10, 0); Point p2 = new Point(0, 10); Point p3 = new Point(3, 7); Point p4 = new Point(7, 3); Point p5 = new Point(20, 21); Point p6 = new Point(3, 4); Point p7 = new Point(14, 15); Point p8 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void test2() {\r\n\t\t\t\t\tPoint3D p = new Point3D(32.103315,35.209039,670);\r\n\t\t\t\t\tassertEquals(true,myCoords.isValid_GPS_Point(p));\r\n\t\t\t\t}", "public Point getTestPoint() {\n WKTReader reader = new WKTReader();\n try {\n Point point = (Point) reader.read(TEST_POINT_WKT);\n ...
[ "0.6961049", "0.68580943", "0.6312498", "0.63086283", "0.6279404", "0.62431157", "0.6096818", "0.6096818", "0.60328907", "0.6017686", "0.6008273", "0.59986067", "0.5975305", "0.5952036", "0.594958", "0.5934172", "0.59340185", "0.5908056", "0.5906925", "0.5866726", "0.58542943...
0.0
-1
Creates a new BoardFactory that will create a board with the provided background sprites.
public BoardFactory(PacManSprites spriteStore) {Collect.Hit("BoardFactory.java","BoardFactory(PacManSprites spriteStore)");this.sprites = spriteStore; Collect.Hit("BoardFactory.java","BoardFactory(PacManSprites spriteStore)", "689");}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Texture createBackground() {\n Pixmap backgroundPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n backgroundPixmap.setColor(0, 0, 0, 0.3f);\n backgroundPixmap.fill();\n Texture texture = new Texture(backgroundPixmap);\n backgroundPixmap.dispose();\n return textu...
[ "0.59439445", "0.5853144", "0.5782191", "0.56723917", "0.5645936", "0.5498398", "0.5451358", "0.54286987", "0.538784", "0.5340696", "0.5327028", "0.5297162", "0.52824974", "0.5253488", "0.5253372", "0.5252043", "0.5242734", "0.5196618", "0.5156702", "0.5155471", "0.5119725", ...
0.53737915
9
Creates a new board from a grid of cells and connects it.
public Board createBoard(Square[][] grid) {Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)");assert grid != null; Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1053"); Board board = new Board(grid); Collect.Hit("BoardFactory.java","createBoard(Square[][] grid)", "1079"); int width = boa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx,...
[ "0.70344156", "0.69177383", "0.6905985", "0.686853", "0.663711", "0.6616", "0.65556103", "0.6551734", "0.6472274", "0.6416313", "0.6416113", "0.64040995", "0.6401278", "0.63806045", "0.63644385", "0.63245755", "0.6324315", "0.632223", "0.6301679", "0.627769", "0.62775254", ...
0.7323382
0
Creates a new square that can be occupied by any unit.
public Square createGround() {Collect.Hit("BoardFactory.java","createGround()"); Collect.Hit("BoardFactory.java","createGround()", "1746");return new Ground(sprites.getGroundSprite()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Square(int w)\n {\n width = w;\n }", "public Square() {\n this(\"x\", false, false);\n }", "Square getSquare(int x, int y);", "public Square() {\r\n\r\n }", "Rectangle(int width, int height){\n area = width * height;\n }", "@Test\n public void testSetTypeOccupied...
[ "0.62833774", "0.62249136", "0.6098229", "0.6094201", "0.6078408", "0.60470086", "0.604453", "0.6018759", "0.60071117", "0.5954429", "0.59519595", "0.5929053", "0.59021425", "0.5851412", "0.58317894", "0.5819015", "0.58181834", "0.5797909", "0.5793137", "0.5779344", "0.577585...
0.58105767
17
Creates a new square that cannot be occupied by any unit.
public Square createWall() {Collect.Hit("BoardFactory.java","createWall()"); Collect.Hit("BoardFactory.java","createWall()", "1976");return new Wall(sprites.getWallSprite()) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Square() {\n this(\"x\", false, false);\n }", "@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tg...
[ "0.62933767", "0.6128897", "0.61039066", "0.6021218", "0.600527", "0.598458", "0.59805894", "0.5980523", "0.594957", "0.5938596", "0.59339905", "0.58523464", "0.5848329", "0.5846364", "0.57789046", "0.5776939", "0.5750347", "0.57448274", "0.57356495", "0.5725062", "0.57211643...
0.57463986
17
Creates a new wall square.
Wall(Sprite sprite) {Collect.Hit("BoardFactory.java","Wall(Sprite sprite)");this.background = sprite; Collect.Hit("BoardFactory.java","Wall(Sprite sprite)", "2420");}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java\",\"createWall()\", \"1976\");return new Wall(sprites.getWallSprite()) ; }", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n ...
[ "0.817905", "0.7711221", "0.7402422", "0.72814435", "0.703192", "0.6881929", "0.6658767", "0.660774", "0.65312004", "0.65184677", "0.6514328", "0.6508831", "0.6455846", "0.64349914", "0.6409747", "0.637631", "0.63744575", "0.63722163", "0.63545144", "0.63497627", "0.6347518",...
0.5542823
85
Creates a new ground square.
Ground(Sprite sprite) {Collect.Hit("BoardFactory.java","Ground(Sprite sprite)");this.background = sprite; Collect.Hit("BoardFactory.java","Ground(Sprite sprite)", "3015");}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Square createGround() {Collect.Hit(\"BoardFactory.java\",\"createGround()\"); Collect.Hit(\"BoardFactory.java\",\"createGround()\", \"1746\");return new Ground(sprites.getGroundSprite()) ; }", "public Square createWall() {Collect.Hit(\"BoardFactory.java\",\"createWall()\"); Collect.Hit(\"BoardFactory.java...
[ "0.8204302", "0.6603824", "0.6510459", "0.6359681", "0.6340222", "0.6217697", "0.614666", "0.6133004", "0.6087789", "0.6082773", "0.6048692", "0.60451823", "0.6039916", "0.6039263", "0.6008301", "0.59886086", "0.5973383", "0.5951604", "0.59489596", "0.59394884", "0.59352934",...
0.54898006
83
Creates new form bookDetails
public bookDetails() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "@RequestMapping(value=\"/book\",method=RequestMethod.POST)\n\tpublic @ResponseBody ResponseEntity<Books> createBooks(@RequestBody Books bookDetails) ...
[ "0.7396128", "0.7034798", "0.69581294", "0.673665", "0.6683837", "0.65349865", "0.6399423", "0.6302117", "0.6274836", "0.6234821", "0.6196227", "0.6135894", "0.61066604", "0.60973954", "0.60805994", "0.6077713", "0.6059976", "0.6027549", "0.6012411", "0.60000557", "0.59907305...
0.64943236
6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jButton1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
/ Complete the 'stockPairs' function below. The function is expected to return an INTEGER. The function accepts following parameters: 1. INTEGER_ARRAY stocksProfit 2. LONG_INTEGER target
public static int stockPairs(List<Integer> stocksProfit, long target) { var stockCounters = new HashMap<Integer, Integer>(); var pairs = 0; for (var stock : stocksProfit) { var pair = Math.toIntExact(target - stock); if (stockCounters.containsKey(pair)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void analyzeStocks(JSONArray stockArray){\n\t\tbuyArray = new JSONArray();\n\t\tsellArray = new JSONArray();\n\n\t\tfor(int a = 0; a < stockArray.length(); a++){\n\n\t\t\t// Some objects dont always have correct values\n\t\t\tif (!stockArray.getJSONObject(a).isNull(\"DividendYield\") \n\t\t\t\t\t&& !stockA...
[ "0.5932236", "0.5782952", "0.5749592", "0.56015575", "0.5551276", "0.54911566", "0.5294133", "0.51892066", "0.51865125", "0.5171032", "0.5168246", "0.5152801", "0.51379853", "0.5107297", "0.5095889", "0.5071074", "0.50438637", "0.5019748", "0.49581766", "0.49107805", "0.49098...
0.6624044
0
Inside abstract class we can take abstract as well as concrete methods
abstract void move();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void method();", "public abstract void abstractMethodToImplement();", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\r\n\tprotected void abstractMethod() {\n\t\tSystem.out.println(\"I'm from the abstract method\...
[ "0.8092027", "0.7711296", "0.7448615", "0.7333677", "0.7180898", "0.71773756", "0.7066552", "0.70177245", "0.6913452", "0.69068855", "0.6886295", "0.6767709", "0.6767709", "0.6764453", "0.6749366", "0.6729039", "0.6728381", "0.672786", "0.6714439", "0.6666695", "0.66327405", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Animal a = new Dog(); a.move(); a.eat(); Animal b= new Cow(); b.move(); b.eat(); }
{ "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
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_home, container, false); }
{ "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.6740675", "0.6725193", "0.67224836", "0.6699259", "0.6691596", "0.668896", "0.6687658", "0.66861755", "0.667755", "0.66756433", "0.6667425", "0.66667783", "0.6665166", "0.66614723", "0.66549766", "0.665031", "0.6643759", "0.6639389", "0.66378653", "0.66345453", "0.6626348"...
0.0
-1
NOTE: this pipeline is primarily run as a remote pipeline, but on TeamCity it runs locally. this is primarily designed to guess the location of the R exe, without needing extra TeamCity config for this to run.
private String inferRPath() { String path; //preferentially use R config setup in scripting props. only works if running locally. if (PipelineJobService.get().getLocationType() == PipelineJobService.LocationType.WebServer) { LabKeyScriptEngineManager svc = LabKeyScriptE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getExecutable();", "File getExecutable();", "public String getExecutable();", "public String tryGetIncomingRsyncExecutable();", "public String getStrPipelineExeURL() {\n return strPipelineExeURL;\n }", "public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFil...
[ "0.5519091", "0.54975045", "0.5410083", "0.5336622", "0.5256367", "0.5212604", "0.5181548", "0.51689607", "0.5163847", "0.51011384", "0.50869673", "0.5055581", "0.50192964", "0.49635857", "0.49528694", "0.4950895", "0.49221584", "0.4864525", "0.4849541", "0.4835941", "0.48202...
0.6881935
0
[Durga,CEO,30000.000000,Hyderabad] String string = String.format("%s,%s,%f,%s", name, designation, salary, city); [Durga,CEO,30000.00,Hyderabad] String string = String.format("%s,%s,%.2f,%s", name, designation, salary, city); [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore] String string = String.format("%s...
@Override public String toString() { // [Durga,CEO,30000.00,Hyderabad, THEJA,COO,29000.00,Bangalore] // String string = String.format("%s,%s,%.2f,%s", name, designation, salary, city); String string = String.format("(%s,%s,%.2f,%s)", name, designation, salary, city); return string; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String StringifyBody(String[] line , double... args){\n\n String output = String.format(\"%-20s %-20s\" , line[0] , line[1]);\n\n for(int i = 0; i < line.length - 2 ;i++){\n output += String.format(\"%-10s\",line[2 + i]); // Skip the first two element City & Country\n\n ...
[ "0.614829", "0.61404127", "0.5934497", "0.5848042", "0.58133185", "0.5802575", "0.5758733", "0.56739664", "0.56191194", "0.5589726", "0.5541513", "0.5528173", "0.54822105", "0.54731554", "0.54552555", "0.54511607", "0.54484826", "0.54212", "0.5398145", "0.5363824", "0.5302819...
0.6738651
0
History string that record all action.
public Calculator () { total = 0; // not needed - included for clarity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString ()\r\n\t{\r\n\t\treturn history + \" \";\r\n\t}", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public String getHistory () {\r\n\t\treturn history;\r\n\t}", "public String getHistory () {\n\t\treturn history;\n\t}", "public String history(){\n return this.in...
[ "0.7705352", "0.72050726", "0.72050726", "0.7144025", "0.6828622", "0.68074137", "0.6454979", "0.6388075", "0.6385467", "0.6173623", "0.6081833", "0.6065303", "0.6030715", "0.60099494", "0.5981026", "0.5930139", "0.5924455", "0.5920703", "0.591725", "0.590697", "0.5867926", ...
0.0
-1
This method will return the total number.
public int getTotal () { return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int getTotalNumber() {\n\t\treturn totalNum;\n\t}", "public Integer getTotalNum() {\n return totalNum;\n }", "public int getTotal () {\n return total;\n }", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "public int getTotal () {\n\t\treturn total;\n\t}"...
[ "0.8400831", "0.8334001", "0.8272691", "0.8229696", "0.8225558", "0.82188404", "0.82188404", "0.8142767", "0.8124673", "0.8124673", "0.8116954", "0.8104153", "0.80936927", "0.80936927", "0.8056917", "0.80373824", "0.79624295", "0.79555625", "0.7940852", "0.78300995", "0.77763...
0.8280396
3
This method will return a history string that include all action history.
public String getHistory () { return history; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString ()\r\n\t{\r\n\t\treturn history + \" \";\r\n\t}", "public String getHistory () {\n\t\treturn history;\n\t}", "public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}", "public String getOrderHistory() {\n\n\t\treturn getOrderHistory(\"\");\n\t}", "public String history(){\n...
[ "0.79099613", "0.7388078", "0.7281695", "0.7086282", "0.6952652", "0.6784429", "0.6466935", "0.6369719", "0.62707883", "0.6263477", "0.61930907", "0.6148144", "0.6092443", "0.608415", "0.60426354", "0.5882633", "0.58724886", "0.58475333", "0.5791281", "0.5788245", "0.57789016...
0.7443181
2
/ access modifiers changed from: protected
public float getProperty(View view) { return view.getScaleX(); }
{ "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 void setProperty(View view, float f2) { view.setScaleX(f2); }
{ "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
TODO Autogenerated method stub
public int getCount() { return arName.size(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public Object getItem(int position) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public long getItemId(int position) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; LayoutInflater inflater = context.getLayoutInflater(); if (convertView == null) { convertView = inflater.inflate(R.layout.activity_table_list, null); holder = new View...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Logo oo=new Logo(); oo.title(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO return proper representation object
@GET @Produces(MediaType.TEXT_PLAIN) public String instructions() { return "To register a [ USER ] the following " + "format is used:\n" + ".../USER/{name}/{pass}/{type}\n" + "Example: \n" + ".../USER/Lucas/Ld123/admin\n" + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRepresentation();", "public String represent();", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "public abstract String serialise();", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "String toJSON();", "@Override...
[ "0.69268763", "0.6905137", "0.6856155", "0.67587054", "0.6706433", "0.67056555", "0.67020136", "0.6592714", "0.65798044", "0.64739865", "0.6443312", "0.6443312", "0.6436106", "0.6424025", "0.64216286", "0.6420928", "0.64159775", "0.63972116", "0.6379036", "0.6329203", "0.6316...
0.0
-1
PUT method for updating or creating an instance of register
@PUT @Consumes(MediaType.APPLICATION_XML) public void putXml(String content) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PUT\n @Path(\"/{register_id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n Response update(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @PathParam(\"register_id\") Long registerId);", "User update(User userToUpdate, RegisterRequest registerRequest);", "@PUT\n @Pat...
[ "0.74457955", "0.7358418", "0.70772713", "0.60379577", "0.59495836", "0.5929845", "0.5916215", "0.5889955", "0.5842785", "0.5818545", "0.5814269", "0.58015865", "0.5789242", "0.57173306", "0.57165545", "0.5678713", "0.5662185", "0.56245303", "0.55836517", "0.5578874", "0.5562...
0.0
-1
SubsamplingScaleImageView gets = ivContent.getSSIV(); ivContent.showImage(Uri.fromFile(new File(path)));
private void loadImage(final String path) { ivContent.setImageURI(Uri.fromFile(new File(path))); /*Glide.with(getActivity()) .load(path) .apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.AUTOMATIC)) .into(ivContent);*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n\n float x = ivImage.getScaleX();\n float y = ivImage.getScaleY();\n\n ivImage.setScaleX((float) (x - 1));\n ivImage.setScaleY((float) (y - 1));\n }", "private Bitmap getScaledBitmap(Ima...
[ "0.5806355", "0.57632655", "0.57334685", "0.57221395", "0.55535316", "0.54718256", "0.54485375", "0.5428127", "0.54189074", "0.5417179", "0.5395472", "0.53844744", "0.53844553", "0.5371565", "0.5362432", "0.53220266", "0.5321921", "0.53146476", "0.5308242", "0.53015894", "0.5...
0.49602365
67
/ Given an instance of an object that has a particular property this method will set the object property with the provided value. It assumes that the object has the setter method for the specified interface
public void setObjectProperty(Object object, String property, Object propertyValue) throws WBSerializerException { try { PropertyDescriptor pd = new PropertyDescriptor(property, object.getClass()); pd.getWriteMethod().invoke(object, propertyValue); } catch (Exception e) { throw new WBS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T set(T obj);", "void setValue(Object object, Object value);", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessExcepti...
[ "0.70891815", "0.7017199", "0.67483586", "0.67392075", "0.6712117", "0.65077364", "0.6460384", "0.64525133", "0.6446329", "0.6406688", "0.63676757", "0.63250065", "0.62990606", "0.62891716", "0.6221818", "0.6213506", "0.621147", "0.6205067", "0.62005645", "0.61958975", "0.619...
0.6199218
19
Test step visitor interface.
public interface TestStepVisitor { /** * Handles email test step entity. * * @param emailTestStepEntity - email test step entity */ default void visit(EmailTestStepEntity emailTestStepEntity) { throw new UnsupportedOperationException( String.format("Unsupported email...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void step();", "public void step();", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n for (Step step : steps) {\n step.accept(visitor);\n }\n }", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "v...
[ "0.69819283", "0.69819283", "0.6908452", "0.68938607", "0.68938607", "0.68722343", "0.6871309", "0.6871309", "0.66795117", "0.66091555", "0.6545729", "0.65216976", "0.6429993", "0.6394805", "0.6387144", "0.6357183", "0.6341387", "0.6238448", "0.6236647", "0.62177175", "0.6215...
0.785288
0
Handles email test step entity.
default void visit(EmailTestStepEntity emailTestStepEntity) { throw new UnsupportedOperationException( String.format("Unsupported email step for request [%s]", emailTestStepEntity.getEvaluationRequestEntity().getRequestId()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void emailTest() {\n // TODO: test email\n }", "@Test\n public void emailTest() {\n // TODO: test email\n }", "@Override\n\tpublic void handleEmail(OrderDTO orderDTO) {\n\t\t\n\t}", "void sendEmail(Task task, String taskTypeName, String plantName);", "@Override\n\tp...
[ "0.6178936", "0.6178936", "0.6173322", "0.6170953", "0.61015403", "0.60487306", "0.5944949", "0.59228444", "0.5884945", "0.58842343", "0.5883561", "0.5844808", "0.582991", "0.5796565", "0.5770173", "0.573936", "0.56891406", "0.5683232", "0.56269187", "0.56186503", "0.5588075"...
0.6298778
0
Handles experiment results test step entity.
default void visit(ExperimentResultsTestStepEntity experimentResultsTestStepEntity) { throw new UnsupportedOperationException( String.format("Unsupported experiment results step for request [%s]", experimentResultsTestStepEntity.getEvaluationRequestEntity().getRequestId()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AfterMethod\n\tpublic void getResult(ITestResult result) throws IOException {\n\t\tString cellContent = this.getClass().getSimpleName();\n\t\tSystem.out.println(cellContent);\n\t\t// Searches for the Class name in Excel and return step name\n\t\tString StepName = ts.GetStepName(fileName, cellContent, i, 7);\n\t\t...
[ "0.6293114", "0.60707295", "0.59835273", "0.59659374", "0.5935806", "0.5920818", "0.5881578", "0.5828004", "0.5785156", "0.5783868", "0.5776184", "0.57693905", "0.5743804", "0.5743524", "0.5727093", "0.57091933", "0.56835103", "0.5679928", "0.56648374", "0.56384605", "0.56171...
0.6417266
0
Handles evaluation results test step entity.
default void visit(EvaluationResultsTestStepEntity evaluationResultsTestStepEntity) { throw new UnsupportedOperationException( String.format("Unsupported evaluation results step for request [%s]", evaluationResultsTestStepEntity.getEvaluationRequestEntity().getRequestId()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}", "protected abstract Value evaluate();", "Result evaluate();", "float getEvaluationResult();", "@Override\n void execute(RolapEvaluator evaluator) {\n }", "@Override\n public void doEvaluation(Individual sample, boolean isTrai...
[ "0.6386045", "0.6322867", "0.6320774", "0.6266674", "0.62371343", "0.62321687", "0.6173243", "0.61712646", "0.611368", "0.59741765", "0.5968006", "0.58623934", "0.58311373", "0.5773228", "0.5733967", "0.5712285", "0.5698342", "0.56956714", "0.5655522", "0.5648506", "0.560857"...
0.59882253
9
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.read_phone_state); resource = new AndroidResource(this, (TelephonyManager) this.getSystemService(TELEPHONY_SERVICE)); this.mapViews = new HashMap<Integer, String>(); this.initializeViewMap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.79177165", "0.77268666", "0.7693204", "0.7693204", "0.7693204", "0.7693204", "0.7693204", "0.7693204", "0.7637164", "0.7637164", "0.76318395", "0.7618896", "0.7618896", "0.75437796", "0.7539822", "0.7539822", "0.7539348", "0.75277805", "0.751581", "0.7510227", "0.7501691",...
0.0
-1
TODO: find better place for method
public EmployeeResponse convertToDto(Employee employee) { return new EmployeeResponse(employee.getId(), employee.getName(), employee.getSalary().getValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private stendhal() {\n\t}", "protected abstract Set method_1559();", "@Override\n\tpublic void com...
[ "0.60197747", "0.5971423", "0.5817981", "0.5793965", "0.57938236", "0.5777609", "0.5765103", "0.5754715", "0.5742497", "0.5716561", "0.57128096", "0.56868863", "0.56616557", "0.56455654", "0.56455654", "0.5625738", "0.56136787", "0.5612084", "0.55663645", "0.555174", "0.55421...
0.0
-1
This is the constructor of BooleanProperty.
public BooleanProperty(int index) { super(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyBoolean(String name) {\n super(name);\n }", "public Boolean() {\n\t\tsuper(false);\n\t}", "public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }", "public BooleanV...
[ "0.798163", "0.7686922", "0.7368044", "0.704086", "0.70178294", "0.7008803", "0.6991352", "0.6873205", "0.6834422", "0.6834422", "0.68041116", "0.68041116", "0.6802909", "0.6779066", "0.6673318", "0.6673318", "0.6673318", "0.6673318", "0.66732407", "0.6632283", "0.66154915", ...
0.76692015
2
Passing an argument to the constructor means
public Department(String name){ this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constructor(){\n\t\t\n\t}", "MyArg(int value){\n this.value = value;\n }", "Constructor() {\r\n\t\t \r\n\t }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "public MockClass(String arg) {\n\t}", "protected abstract void construct();", "pu...
[ "0.6889701", "0.6856903", "0.670658", "0.66657394", "0.66039336", "0.65523624", "0.6522905", "0.6496911", "0.6483921", "0.64570075", "0.6443925", "0.6393337", "0.6392247", "0.63876104", "0.63709116", "0.63471377", "0.63402104", "0.6325935", "0.6294783", "0.62664294", "0.62588...
0.0
-1
Calculate the bonuses of all the individuals (Employees and Managers) for this department
public void calculateBonuses(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer costOfDepartment() {\n Integer total = 0;\n for (Manager manager :\n departmentHeads) {\n total += manager.costOfTeam();\n }\n return total;\n }", "private void updateAllBonuses() {\n\t\tfor(int i = 0; i < bonuses.length; i++)\n\t\t\tbonuses...
[ "0.55781394", "0.52641964", "0.5117843", "0.5015633", "0.49773747", "0.49663022", "0.49472064", "0.49429193", "0.49368602", "0.48369765", "0.48369765", "0.4816875", "0.4816243", "0.47472495", "0.47251195", "0.47220334", "0.47164822", "0.47053194", "0.46761858", "0.46680924", ...
0.5695143
0
Calculate the vacation days of all the people working for this department
public void calculateVacationDays(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getVacationDays() {\n\t\treturn super.getVacationDays()+ 3;\n\t}", "public List<LocalDate> getWorkingDaysVacations(List<Vacation> vacationList) {\n\n List<LocalDate> listToReturn = new ArrayList<>();\n\n for (LocalDate date : getDaysBetweenDates(vacationList)) {\n\n if (dateDi...
[ "0.6590203", "0.6441208", "0.64144623", "0.6335659", "0.61981", "0.61287284", "0.60029036", "0.5945206", "0.59258884", "0.5799677", "0.57993656", "0.5777278", "0.57256794", "0.57114375", "0.56835306", "0.5648655", "0.56424916", "0.56255573", "0.5606082", "0.5591096", "0.55585...
0.7687346
0
This getter uses a string as input, creates a working variable object from it so the method can then use the generic get method from the super class to find the matching object in the dictionary. If that get request succeeds, this method then returns the value attribute (double) from that objects, otherwise, an excepti...
public double getValue(String s) throws DictionaryException{ Variable v = get(new Variable(s,0)); // Try to get the dictionary entry with this identifier if (v != null) return v.getValue(); // if it comes back not null, use it to access the value throw new DictionaryException("Variable <" + s + "> not defined...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void getDoubleImpl(String str, double d, Resolver<Double> resolver);", "double getDouble(String key, double defaultValue);", "double getBasedOnValue();", "public double getVariableValue(){\n\t\tObject valueKey = getEntries().keySet().stream().findFirst().orElseGet(()->{return 0d;});\n\t\tif (...
[ "0.66929483", "0.6445099", "0.6441789", "0.64339095", "0.64180046", "0.63841647", "0.6382182", "0.62604403", "0.6213485", "0.6201644", "0.6147053", "0.6119464", "0.6089187", "0.607961", "0.60343736", "0.6031358", "0.6030957", "0.6000832", "0.5995678", "0.5980709", "0.59770805...
0.6766648
0
This setter creates a variable object from the specified parameters and then uses that object to replace the most previous value in the dictionary, if it is already there, or to add it
public void setValue(String s, double d){ set(new Variable(s,d)); // Create a new variable and then use it to set the value in the dictionary }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DynamicVariable createDynamicVariable();", "VarAssignment createVarAssignment();", "Variable createVariable();", "Variable createVariable();", "public Object call(Context cx, Scriptable xxx, Scriptable thisObj, Object[] args) {\n\t\t\t Object newValue = args[0];\n\t\t\t valueStorage = newValue;\n\t\t...
[ "0.58142555", "0.5734778", "0.5557868", "0.5557868", "0.5470631", "0.54650384", "0.5444085", "0.5393691", "0.5309033", "0.5253878", "0.52406275", "0.52115214", "0.5197963", "0.5184018", "0.5181238", "0.5171313", "0.51707035", "0.5160458", "0.5147336", "0.5146553", "0.51190484...
0.47567627
88
TODO Autogenerated method stub
@Override public FlatJdbcDO mapRow(ResultSet rs, int rowNum) throws SQLException { System.out.println("studentDOJdbcDoWrapper.mapRow() rownum"+rowNum); FlatJdbcDO studentdo=new FlatJdbcDO(); studentdo.setFlatId(rs.getString("flatid")); studentdo.setFlatOwner(rs.getString("flatowner")); studentdo.setSociety...
{ "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
getting for one message messages
@GET @Path("/{messageId}")// so for seperate methods also we have //@path .. so outside class its /messages.. //for this method we need /messages/test.. so just "/test" //inside{} there is variable any variable passed and again the //configuration is done in such a way that the varaibl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Message getNextMessage();", "@Override\n public final void removeNextMessage() {\n }", "Message getCurrentMessage();", "private void viewMessage()\n {\n System.out.println( inbox );\n inbox = \"\";\n }", "Message getPreviousMessage();", "public String getNextMessage(){\r\n String msg = t...
[ "0.67716414", "0.6582528", "0.6567104", "0.6528206", "0.6476622", "0.6466856", "0.64637196", "0.63321024", "0.6305858", "0.6305621", "0.6300816", "0.62817746", "0.6269361", "0.6243361", "0.62292033", "0.62253195", "0.62186915", "0.6211788", "0.6208119", "0.6186191", "0.616615...
0.0
-1
TODO: change this to a better approach.
private boolean matchUrl(String url) { return url.contains("v1/gifs/"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poet...
[ "0.56146336", "0.55485463", "0.5490097", "0.54275995", "0.5377817", "0.53766435", "0.5338971", "0.52949584", "0.5293679", "0.52065873", "0.5202418", "0.51804006", "0.5173672", "0.5165669", "0.51488334", "0.5130106", "0.5123918", "0.5105582", "0.5093689", "0.5058704", "0.50539...
0.0
-1