query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Created by yi on 2016/11/27.
@UserScope @Component(modules = PhoneJuQingModule.class,dependencies = NetComponent.class) public interface PhoneJuQingComponent { void inject(PhoneJuQingListFragment fragment); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of toArray method, of class FixedArrayList.
@Test public void testToArray_0args() { Object[] objects = baseList.toArray(); assertEquals( baseList, new FixedArrayList<Object>( Arrays.asList( objects ) ) ); }
[ "@Test\n\tvoid testToArray() {\n\t\tl1 = new BookList();\n\t\tassertTrue(l1.isEmpty());\n\t\tassertEquals(0, l1.getLength());\n\t\t\t\t\n\t\t//Add to set and Test\n\t\tl1.add(b1);\n\t\tl1.add(b2);\n\t\tl1.add(b3);\n\t\tassertTrue(l1.contains(b1));\n\t\tassertTrue(l1.contains(b2));\n\t\tassertTrue(l1.contains(b3));\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set List of IDs of the user's secondary organizations. Note: this field may return null, indicating that no valid values can be obtained.
public void setSecondaryOrgNodeIdList(String [] SecondaryOrgNodeIdList) { this.SecondaryOrgNodeIdList = SecondaryOrgNodeIdList; }
[ "public List<com.jic.tnw.db.mysql.tables.pojos.UserOrg> fetchById(Integer... values) {\n return fetch(UserOrg.USER_ORG.ID, values);\n }", "@Override\n\tpublic List<Organ> getOrganByOrgIds(List<Integer> userOrgIds) {\n\t\treturn organMapper.getOrganByOrgIds(userOrgIds);\n\t}", "java.util.List<com.elari...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables
public void btn_hasil(ActionListener a) { this.btn_jawaban.addActionListener(a); }
[ "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tprotected void initVariable() {\n\t\n\t}", "public void mo17751g() {\n }", "public void mo1857d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "public void mo3914b() {\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs the settings for a matching situation with a constructor for the target. It is assumed that the first gettermethod provides the value for the first constructor parameter, the second getter for the second constructor parameter, and so on.
public ClassMatcher( Class<?> source, Class<?> target, Method[] getter, Constructor<?> constructor, Class<?>[] type, boolean isRepeated ){ this.source = source; this.target = target; this.getter = getter; this.constructor = constructor; this.type = type; this.isRepeated = isRepeated; ...
[ "private T construct() {\n\t\ttry {\n\t\t\tObject[] args = new Object[values.size()];\n\t\t\tint i = 0;\n\t\t\tfor (ObservableValue v : values) {\n\t\t\t\targs[i++] = v.getValue();\n\t\t\t}\n\t\t\treturn constructor.newInstance(args);\n\t\t}\n\t\tcatch (InstantiationError|IllegalAccessException|InstantiationExcepti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Title: INumericalDataClassifier Description: basic algorithmic model that learns label information for numerical features. The labels are strings, thus, classifierlike models are trained. Copyright: (c) 20162018 Juergen Bernard,
public interface INumericalDataClassifier extends IClassifier<NumericalFeatureVector> { }
[ "public interface IClassifier extends Parametrable {\r\n /**\r\n * A method that should be used to build the model for the classifier from\r\n * the given {@link Dataset} of example instances.\r\n * \r\n * @param instances\r\n * the example instances\r\n */\r\n void buildCla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove all storms with the name storm from the database. If there are no storms with the name storm in the database, return false; otherwise (i.e., the removal is successful) return true.
boolean removeStormsWithName(String storm) { Iterator<County> countyItr = database.iterator(); while (countyItr.hasNext()) { County curr = countyItr.next(); if (curr.getStorms().contains(storm)) { curr.getStorms().remove(storm); return true; } } return false; }
[ "public boolean remove(final String name) {\r\n int pos = search(name);\r\n if (pos >= 0) {\r\n String[] temp = new String[database.length - 1];\r\n System.arraycopy(database, 0, temp, 0, pos);\r\n System.arraycopy(database, pos + 1, temp, pos, database.length - pos - ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Coordinates coordinates = new Coordinates(APP_W/2,APP_H/2); coordinates.setLocationX(1.22); coordinates.setLocationY(0); Ball ball= new Ball(coordinates, 5,BALL_RADIUS,Color.ALICEBLUE);
private Parent createContent() { Pane root = new Pane(); root.setPrefSize(APP_W, APP_H); // Coordinates batCoordinates = new Coordinates(APP_W / 2, APP_H - 250); // bat = new Paddle(BAT_W, BAT_H, Color.ALICEBLUE, batCoordinates); // // Coordinates brickCoordinates = new Coordinates(APP_W - 300, APP_H - 1...
[ "private void createBall() {\n\t\tball = new GOval((WIDTH - BALL_RADIUS) /2, (HEIGHT - BALL_RADIUS)/ 2, BALL_RADIUS * 2, BALL_RADIUS * 2);\n\t\tball.setFilled(true);\n\t\tball.setColor(Color.white);\n\t\tadd(ball);\n\t}", "@SuppressWarnings(\"static-access\")\r\n\tpublic Ball() {\r\n\t\tthis.x = 0.0;\r\n\t\tthis....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the apk's package name.
public String getAPKPackageName() { return packageName; }
[ "String getPackage_name();", "public static String getPackageName(){\n try {\n return BuildConfig.APPLICATION_ID;\n } catch (Exception e){\n return null;\n }\n }", "public static String getPackageName() {\n\t\treturn packageName;\n\t}", "public String getPackageNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
bossgroup listen connection use epoll(linux) when the epoll_wait() method back and the socket accept() method back then the connected channel run in the workgroup listenning the read and write request socket = listener.accept() >bossgroup socket.read() or socket.write()>workgroup
public static void main(String[] args) throws InterruptedException { EventLoopGroup boss = new NioEventLoopGroup(1); EventLoopGroup work = new NioEventLoopGroup(); try { ServerBootstrap bootstrap = new ServerBootstrap(); bootstrap.group(boss, work) ...
[ "public static void main(String[] args) throws IOException {\n ServerSocketChannel serverSocketChannel = ServerSocketChannel.open();\n //getting the socket\n ServerSocket serverSocket = serverSocketChannel.socket();\n\n serverSocketChannel.configureBlocking(false);\n //binding soc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the data of this data iterator
public void setData (Data2D trajectory) { // declare the variables for the algorithm Iterator<Point2D.Double> iterator = trajectory.iterator(); this.rows.clear(); Point2D.Double p1, p2, extremum; double var1_x, var1_y, var2_x, var2_y, variation, curvature; // get the two first points of the list extremum = p1 ...
[ "public void setData(E data) {\n\tthis.data = data;\n }", "public void setData(Object data) {\n this.mData = data;\n }", "public void setData(Object data){\n\t\t\tthis.data = data;\n\t\t}", "public void setData(E data)\r\n\t{\tmyData = data;\t}", "public void setData(E _data) {\n\t\tdata = _dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create exception with specific message.
public NotFoundException(String message) { super(message); }
[ "static <T extends Throwable> T constructException(Class<T> exceptionClass, String message) {\r\n return createException(exceptionClass, new Class<?>[] {String.class}, new Object[] {message});\r\n }", "Message create(Message message) throws NotFoundException, ValidationException;", "public CustomExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void remove(Post e) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes Model File Type Combo Box
private JComboBox getModelFileTypeComboBox() { if (modelFileTypeComboBox == null) { modelFileTypeComboBox = new JComboBox(); modelFileTypeComboBox.setToolTipText("Specify whether the object/data model file was created using Enterprise Architect (EA) or ArgoUML (ARGO)"); ...
[ "public void initializeItemTypeComboBox() {\n itemTypeCB.getItems().setAll(ItemType.values());\n itemTypeCB.getSelectionModel().selectFirst();\n }", "private FileTypes() { }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n dataTypeSelect.getItems().addAll(dataType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .protobuf.CameraOrVoiceResponse cameraOrVoiceResponse = 7;
public Builder clearCameraOrVoiceResponse() { if (cameraOrVoiceResponseBuilder_ == null) { if (dataBodyCase_ == 7) { dataBodyCase_ = 0; dataBody_ = null; onChanged(); } } else { if (dataBodyCase_ == 7) { dataBodyCase_ = 0; ...
[ "kpi.trspo.restapp.CameraGrpc getCamera();", "public kpi.trspo.restapp.CameraGrpcOrBuilder getCameraOrBuilder() {\n if (cameraBuilder_ != null) {\n return cameraBuilder_.getMessageOrBuilder();\n } else {\n return camera_ == null ?\n kpi.trspo.restapp.CameraGrpc.getDefaultInstanc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert the method's description here. Creation date: (21.06.2005 18:10:05)
private void updateRateVO() { if (rateVO != null) { rateVO.setSource(new Integer(0)); rateVO.setByhand("Y"); try { boolean ok = CDBC_LeaseCalcRates_Object.editLeaseCalcRate(getRateVO()); if (!ok) { String errorStr = "Ошибка редактирования записи: rateVO:id=...
[ "@Override\n }", "public void mo5201a() {\n }", "protected void method_5557() {}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "public void mo9609a() {\n }", "protected void method_2117() {\n }", "@Override\r\n\tpublic void hablar()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set setpoint for PID loop to use
protected void setSetpoint(double setpoint) { this.getController().setSetpoint(setpoint); }
[ "public void tunePID() {\n\n\t}", "void setPID(int id) {\r\n\t\tpid = id;\r\n\t\t}", "public void setProcess(String pid)\r\n/* 22: */ throws Exception\r\n/* 23: */ {\r\n/* 24: 22 */ this.pid = pid;\r\n/* 25: 23 */ this.p = TestXUIDB.getInstance().getProcess(pid);\r\n/* 26: */ }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Checks if the Queue is empty returns boolean
public boolean isEmpty() { return size == 0; }
[ "public boolean isQueueEmpty(){\n\t\tboolean status=false;\n\t\tif(currentSize==0){\n\t\t\tstatus=true;\n\t\t}\n\t\treturn status;\n\t}", "public boolean checkQueueEmpty()\n { \n //checks if the Queue is empty\n return aList.isEmpty();\n }", "public boolean empty()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Multiplies matrix m1 by matrix m2, does an SVD normalization of the result, and places the result into this matrix this = SVDnorm(m1m2).
public final Matrix mulNormalize(Matrix m1, Matrix m2) { }
[ "public double[] normal(double[] p0, double p1[], double p2[]) {\n\t\tdouble[] u = { p1[0] - p0[0], p1[1] - p0[1], p1[2] - p0[2] };\n\t\tdouble[] v = { p2[0] - p0[0], p2[1] - p0[1], p2[2] - p0[2] };\n\t\tdouble[] normal = cross(u, v);\n\t\treturn normalise(normal);\n\t}", "public static Matrix Multiply(Matrix m1,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to add special fishes
public List<Animal> includeSpecialFishService() { animalList.clear(); Animal fish = includeAnimalData(AnimalConstants.AnimalName.FISH, AnimalConstants.AnimalType.SEA_ANIMAL, AnimalConstants.Species.FISH, AnimalConstants.MovementType.SWIM, AnimalConstants.AnimalSound.NOT_D...
[ "private void addWish() {\n\n\t}", "private AddFishAction(){\r\n\t\t\r\n\t}", "private void addFavourites() {\n\t\t\n\t}", "public void AddFlames()\n {\n ///Adaugarea flacarii centrale (unde a fost bomba)\n Flame flame = new Flame(refLink, this.x, this.y, Tile.TILE_WIDTH, Tile.TILE_HE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parseo de cordenadas para cualquier tipo de dato
public boolean parseAnyCoordGMS() { // 26º 84' 817N / 102º 08' 58.4''W coordenadas pueden venir asi //35° 55.116' StringTokenizer st = new StringTokenizer(coordenadas, "'�°WNSEO "); //descomentar para hectofiles!! // String latLong = st.nextToken(); String gTmp; d...
[ "public Zocalo(String cadena) {\n ArrayList<Object> elementos = new ArrayList<>();\n StringTokenizer tokenizer = new StringTokenizer(cadena, DELIMITADOR);\n while (tokenizer.hasMoreElements()) {\n elementos.add(tokenizer.nextToken());\n }\n this.id = Integer.parseInt((S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
variavel de instancia metodo para definir o nome no objeto
public static void setName(String name) { Account.name = name; // armazena o nome }
[ "ContaNani(String nome) {\r\n super();\r\n setName(nome);\r\n }", "public String getName(){\n\t\treturn nome;\n\t}", "protected String getName(){\n return new String(name);\n }", "public void setName(String n) {this.name = n; }", "protected String getName(){\n return \"\";\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Logic for the NorGate, if both of the inputs are false the the output will be on otherwise it will be off
public boolean LogicOperation(){ if(inputOne == false && inputTwo == false){ return true; } else{ return false; } }
[ "boolean isNegateEnabled();", "public static InputExtractor<Boolean> nand(final InputExtractor<Boolean> inputExtractor1, final InputExtractor<Boolean> inputExtractor2) {\n return new InputExtractor<Boolean>() {\n @Override\n public Boolean getValue() {\n return !(inputE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles frames received from authorised clients.
private void handleFrameFromAuthedClients( final PongClientConnection client, final PongClientBundle bundle, final PongFrame frame) { if (frame.getType() == Type.PING_REPLY) { final long ping = System.currentTimeMillis() - bundle.lastPingSentTime; ...
[ "private void handleWebSocketFrame(ChannelHandlerContext ctx, WebSocketFrame frame) {\n\t\tif (frame instanceof CloseWebSocketFrame) {\n\t\t\thandshaker.close(ctx.channel(), (CloseWebSocketFrame) frame.retain());\n\t\t\tlogger.info(ctx.channel().toString() + \" was closed.\");\n\t\t\t\n\t\t\t/** A closed channel is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This will set a marker.
public static void setMarker(final IFile file, final String message, final int line, final int errorLevel, final String location) throws CoreException { if (file != null) { String markerKind = IMarker.PROBLEM; final Hashtable attributes = new Hashtable(); MarkerUtili...
[ "private void setMarker() {\n\t\t//Code to set a marker\n\t\t// latitude and longitude\n\t\tdouble latitude = 46;\n\t\tdouble longitude = 21;\n\t\t\t\n\t\t\n\t\tLatLng position = new LatLng(latitude, longitude);\n\t\t\n\t\t// create marker\n\t\tMarkerOptions marker = new MarkerOptions().position(position).title(\"H...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XClosure__Group__2" $ANTLR start "rule__XClosure__Group__2__Impl" ../org.yakindu.sct.generator.genmodel.ui/srcgen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6744:1: rule__XClosure__Group__2__Impl : ( ( rule__XClosure__Group_2__0 )? ) ;
public final void rule__XClosure__Group__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6748:1: ( ( ( rule__XC...
[ "public final void rule__XClosure__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:18876:1: ( rule__XClosure__Group__2__Impl rule__XClosure__Group_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 202 /Coverage entropy=2.3641994115047673
@Test(timeout = 4000) public void test202() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); TableRow tableRow0 = new TableRow(errorPage0); Submit submit0 = new Submit(tableRow0, "B=<E!", "B=<E!"); // Undeclared exception! try { submit0.noframes(); fail("Expe...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a GetAdminTopicReply instance.
public GetAdminTopicReply(GetAdminTopicRequest request, String id) { super(request.getRequestId()); this.id = id; }
[ "public QueryReply() {\n\t}", "public yandex.cloud.api.datatransfer.v1.endpoint.Kafka.KafkaTargetTopic.Builder getTopicBuilder() {\n return getTopicFieldBuilder().getBuilder();\n }", "ConversationThread addReplyThread();", "gov.nih.nlm.ncbi.www.Blast4QueueSearchReplyDocument.Blast4QueueSearchReply...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a path in the form of a string and returns the entire file as a byte array
public static byte[] readFileContent(String pathName) throws IOException { return Files.readAllBytes(Paths.get(pathName)); }
[ "public byte[] getBytesFromFile(String path) throws IOException {\t\t\n\t\treturn Files.readAllBytes(Paths.get(path));\t\n\t}", "private byte[] readInFile(String path) throws IOException {\n // TODO Auto-generated method stub\n byte[] data = null;\n File file = new File(path);\n InputS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by romanmudryi on 05.08.15.
public interface OrganizationRepository extends JpaRepository<Organization,Long>, QueryDslPredicateExecutor<Organization> { Organization findByName(String name); @Query("FROM Organization org WHERE UPPER(org.name) LIKE UPPER(:nameParam)") List<Organization> findByNameCaseInsensitive(@Param("nameParam"...
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create arrays of integer,double and character
public static void main(String[] args) { Integer[] intArray= {1,2,3,4,5}; Double[] doubleArray= {1.1,2.2,3.3,4.4,5.5}; Character[] charArray= {'H','E','L','L','o'}; System.out.println("Array integerArray contains : "); printArray(intArray);//pass an integer array System.out.println("Array doubleArray contai...
[ "public List doubleArrayFromString(String sArrays);", "public double[] doubleArrayFromSimpleString(String sArrays);", "public abstract double[] asArray(Features features);", "public static void main(String[] args) {\n\t\t\n\t\tint i[] = new int[4];\n\t\ti[0] = 10;\n\t\ti[1] =20;\n\t\ti[2] = 30;\n\t\ti[3] = 4...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gives a TypeReference for usage with Jackson DataBind
public static com.fasterxml.jackson.core.type.TypeReference<CustomerSetSalutationAction> typeReference() { return new com.fasterxml.jackson.core.type.TypeReference<CustomerSetSalutationAction>() { @Override public String toString() { return "TypeReference<CustomerSetSalut...
[ "public static com.fasterxml.jackson.core.type.TypeReference<AddFieldDefinitionChange> typeReference() {\n return new com.fasterxml.jackson.core.type.TypeReference<AddFieldDefinitionChange>() {\n @Override\n public String toString() {\n return \"TypeReference<AddFieldDefi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use for special subroutines that aren't in RoutineCommand
public Command getCommand(String command) { switch(command) { case("gear"): return new Gear(); case("safereset"): return new Routine("BumpConveyer;ResetConveyer"); default: return new RoutineCommand(command); } }
[ "@Override\n\tprotected void routines() {\n\n\t}", "@Override\n\tprotected void visitFanoutRoutine(FanoutRoutine routine) {\n\t\tsuper.visitFanoutRoutine(routine);\n\t\tthis.routine = routine.getName();\n\t\t//System.out.println(\"RTN: \" + routine.getName());\n\t}", "public void special();", "abstract String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the getter for name.
public String getName() { return name; }
[ "public String getName() { return name.get(); }", "public String getName()\n {\n return (String)(name.value);\n }", "public String getName() {\n return name.get();\n }", "public String getName() { return getString(NAME); }", "@Override\n\tpublic String getName() {\n\t\t// Return v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the action listener.
public synchronized void addActionListener(ActionListener listener) { if (!registeredActionListeners.contains(listener)) { registeredActionListeners.add(listener); } }
[ "public void addActionListener( ActionListener listener)\n {\n \n Action_list.addElement( listener);\n }", "@Override\r\n\tpublic void addActionListener(ActionListener l) {\n\r\n\t}", "public void addActionListener(ActionListener listener) {\n\t\tthis.actionListeners.add(listener);\n\t}", "public void a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 35 /Coverage entropy=0.8675632284814612
@Test(timeout = 4000) public void test35() throws Throwable { SimpleNode simpleNode0 = new SimpleNode(63); StringWriter stringWriter0 = new StringWriter(); simpleNode0.setIdentifier("{"); simpleNode0.dump("{", stringWriter0); assertEquals("<Literal>\n<identifier>Literal Value</identifi...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Integer count(Stock stock) { return stockDao.count(stock); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs the proof panel.
public ProofPanel(Logic logic) { super(); this.logic = logic; this.clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); this.buttons = new ArrayList<>(); this.copied = new ArrayList<>(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel labelPane...
[ "public static Proof setUpNewTestProof () {\n\t\tTheoremSet t = new TheoremSet();\n\t\ttry {\n\t\t\tt.put(\"easy\", new Expression(\"(p=>q)\"));\n\t\t}\n\t\tcatch (IllegalLineException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn new Proof(t);\t\t\n\t}", "private JPanel criarPainelSuperior()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { time_.stop(); start_record.setBackgroundResource(R.drawable.start); progress_.setProgress(0); cmpt=0; time_.setBase(SystemClock.elapsedRealtime()); // start_record.setEnabled(true); // stopRecording(); //message.setTitle("stop"); //message.setMessage("But...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_notice.context
public void setContext(String context) { this.context = context; }
[ "public void setNotice(Clob notice) \n {\n _notice = notice;\n }", "public synchronized static void setContext(Context context){\n\t\tDatabase.context = context;\n\t}", "public void mo44669l(CONTEXT context) {\n }", "@Override\n\tpublic void modifyNotice(Notice notice ) {\n\t\tdao.modifyNotice...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 29 /Coverage entropy=3.2580965380214835
@Test(timeout = 4000) public void test029() throws Throwable { ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(); assertNotNull(resultMatrixSignificance0); assertFalse(resultMatrixSignificance0.getDefaultShowAverage()); assertFalse(resultMatrixSignificance0....
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the first linked operationName
public String get_firstLinkedOpName() { Object obj = linkedOpList.get( 0 ); if( (AsnValue.class).isInstance( obj ) ) { return "isValue"; } else if( (ASNDefinedType.class).isInstance( obj ) ) { return ((ASNDefinedType) obj).getType(); } else ...
[ "public int GetOperationID (String opName);", "OperationId getOperationId();", "public Operation GetOperationByIDOrNameNoAccurate (int opID, String opName, String wsName);", "public com.google.protobuf.ByteString\n getOperationNameBytes() {\n java.lang.Object ref = operationName_;\n if (ref instanc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The corresponding subscription that found this event.
@SuppressFBWarnings("EI_EXPOSE_REP") public AFTIPCTopologySubscription getSubscription() { return subscription; }
[ "public abstract Subscriber getSubscriber();", "@Override\n\tpublic Subscriber getSubscriber(int subId) {\n\t\tfor (Subscriber subscriber : subs) {\n\t\t\tif (subscriber.getId() == subId) {\n\t\t\t\treturn subscriber;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getSubEvent() {\n return subEve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
f0 > PrimaryExpression() f1 > "" f2 > PrimaryExpression()
public Object visit(MinusExpression n, Object argu) { ExpressionResult operand1Expression=(ExpressionResult)n.f0.accept(this, argu); n.f1.accept(this, argu); ExpressionResult operand2Expression=(ExpressionResult)n.f2.accept(this, argu); MethodArgument methodArgu=(MethodArgument)argu; ...
[ "NameOrPrimaryExpression getNameOrPrimaryExpression();", "public R visit(PrimaryExpression n, A argu) {\n R _ret=null;\n String a = n.f0.accept(this, argu).toString();\n //if(!a.equals(\"null\"))\n _ret = (R)a;\n\n return _ret;\n }", "public static String expr(String expr1) { return S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
JUnitCore runner = new JUnitCore(); ExecutionListener listener = new ExecutionListener(); runner.addListener(listener); initTestData("", 1); runner.run(AddTest.class); ResultRecorder recorder = listener.recorder; System.out.println(recorder);
public static void main(String[] args) { Application.launch(Tool.class,args); // launch(args); }
[ "public interface TestRecorder {\n /**\n * When a simple test passes, for example a simple calculation performed,\n * and the result matched the expected result, then this is called to\n * indicate that the test has succeeded.\n * <p>\n * This will record the fact the that test succeeded and ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FuncionesSwing.enableDisablePanels(false,this.jTabbedPaneBusquedasTipoDescripcionAsiento ,this.jPanelParametrosReportesTipoDescripcionAsiento, this.jScrollPanelDatosTipoDescripcionAsiento,this.jPanelPaginacionTipoDescripcionAsiento, this.jScrollPanelDatosEdicionTipoDescripcionAsiento, this.jPanelAccionesTipoDescripcion...
public void startProcessTipoDescripcionAsiento(Boolean conSplash) throws Exception { final JTabbedPane jTabbedPaneBusquedasTipoDescripcionAsiento=this.jTabbedPaneBusquedasTipoDescripcionAsiento; final JPanel jPanelParametrosReportesTipoDescripcionAsiento=this.jPanelParametrosReportesTipoDescripcionAsiento...
[ "public void disabledatatablepanels() {\r\n setChallanpanel(false);\r\n setCourtpanel(false);\r\n setDapanel(false);\r\n setDapenaltypanel(false);\r\n setExspanel(false);\r\n setOffencepanel(false);\r\n setOffPnlpanel(false);\r\n setSectnpanel(false);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set's the visibility of the SimpleImage
public void setVisible(boolean isVisible) { node.setVisible(isVisible); }
[ "private void setVisible(boolean b) {\n\t\t\t\t\n\t\t\t}", "private void setUnVisible() {\n\t}", "public void setVisible( boolean val ) \n {\n visible = val; \n }", "public void setIsVisible() {\n\t\tisVisible = !isVisible;\n\t}", "private void setVisible(){\n\t\tImageButton btn_recalc = (ImageButton) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment added
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootview =inflater.inflate(R.layout.fragment_fragment__query, container, false); customer_session = new Customer_Session(getContext()); sharebtn=root...
[ "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_outlets, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, View...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
protected: ............................................................. package: ............................................................... / Packageprivate to be accessble by CoverageOptionsFactory (the factory is in a separate source file to avoid spurious classloading dependency via InnerClasses attr)
CoverageOptions (final boolean excludeSyntheticMethods, final boolean excludeBridgeMethods, final boolean doSUIDCompensation) { m_excludeSyntheticMethods = excludeSyntheticMethods; m_excludeBridgeMethods = excludeBridgeMethods; m_doSUIDCompensation =...
[ "public CoverageFactoryImpl() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"static-method\")\n\t@Test\n\tpublic void coverage()\n\t{\n\t\tClassTest.construct(SystemProperties.class);\n\t}", "protected SourceCodeGeneratorFactory() {\n\t}", "public void createCoverages() {\n ((com.guidewire.pc.domain.coverag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the "lang" attribute
public void setLang(java.lang.String lang) { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.SimpleValue target = null; target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$4); if (target == null) ...
[ "public void setXMLlang(String lang) {\n/* 132 */ setAttributeNS(\"http://www.w3.org/XML/1998/namespace\", \"xml:lang\", lang);\n/* */ }", "public void setLang(java.lang.String param){\r\n \r\n if (param != null){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for property cell.
public String getCell() { return cell; }
[ "public Cell getCell() {\n return this.cell;\n }", "public String getCell() {\r\n\t\treturn (cell==null)?\"\":cell;\r\n\t}", "public AbstractCell getCell() {\n return cell;\n }", "Cell getCell() {\n return this;\n }", "protected abstract PropertyCellFormatter<B> getFormatterPro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compare 'this' object to another object to see if their contents are the same.
public boolean abstractEqualTo(AbstractData that) { return equalTo((Sequence_)that); }
[ "public boolean isSame();", "boolean areEqual(Object actual, Object other);", "boolean isEqual(java.lang.Object toSource, java.lang.Object toNewValue);", "protected boolean mutatesTo(Object o1, Object o2) {\n return null != o1 && null != o2 && o1.getClass() == o2.getClass();\n }", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We also want to collect all assignable types of a method invocation.
public /*@non_null*/ Object visitMethodInvocation(final /*@non_null*/ MethodInvocation x, final Object o) { //add assignable pragma types to fTypeSet for (int i = 0; i < x.decl.pmodifiers.size(); i++) { if (x.decl.pmodifiers.elementAt(i).getTag() == TagConstants.MODIFIESGROUPPRAGMA) { final Mod...
[ "protected InstanceData[] getArgTypesForInvocation(ParenthesizedExpressionList pel) {\n Expression[] exprs = pel.getExpressions();\n InstanceData[] newArgs = new InstanceData[exprs.length];\n TypeData[] args = new TypeData[exprs.length];\n ExpressionTypeChecker etc = new ExpressionTypeChecker(_data, _fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean performClick() { if (mDontConsumeNonUrlClicks) { return super.performClick(); } return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by gondals on 24/08/16.
public interface Target { void setName(String name); void setSalary(double salary); void printDetails(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notifies all the observers to add an operator into its display.
public void notifyAddOperator(char c) { for (CalculatorObserver cobs : observers) cobs.addOperator(c); }
[ "@Override\n public void addNotify() {\n manager = ExplorerManager.find(this);\n manager.addVetoableChangeListener(iListener);\n manager.addPropertyChangeListener(iListener);\n\n updateChoice();\n\n addActionListener(iListener);\n\n super.addNotify();\n }", "@Overri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Basically, just get the correct parameters, create a Socket, and send a "/n/n".
protected void handleTCPConnectBackRedirect(TCPConnectBackRedirect tcp, Connection source) { // only allow other UPs to send you this message.... if (!source.getConnectionCapabilities().isSupernodeSupernodeConnection()) return; final i...
[ "public Socket createSocket(HttpParams params) throws IOException {\n/* 387 */ return createSocket((HttpContext)null);\n/* */ }", "public void send(String input) throws IOException {\n \t getSocket();\n \t pout.println(input);\n \t pout.flush();\n\n \t try {\n \t p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static boolean getSinImpresora(Context ctx) { SharedPreferences preferences = ctx.getSharedPreferences(Const.SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE); return preferences.getBoolean(Const.IS_SIN_IMPRESORA, false); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets JSON data back when passed an id at this url
@RequestMapping(value = "api/products/{id}", method = RequestMethod.GET) public Products getInquiries(@PathVariable int id) { //returns the requested data from the database return productService.getProductById(id); }
[ "@GET\n @Path(\"/{id}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String show(@PathParam(\"id\") Integer id){\n Base.open(\"org.postgresql.Driver\", \"jdbc:postgresql://localhost/base\", \"postgres\", \"chacho77\");\n Personas persona = Personas.findFirst(\"id = ?\", id); \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets that the file should be automatically uploaded when the user adds it
public FileUpload autoUpload() { this.autoUpload = true; return this; }
[ "private void uploadFile() {\n\t String fileName = FileUtil.showFileOpenDialog(this);\r\n\t this.fileName.setText(fileName);\r\n\t ImageIcon image = new ImageIcon(fileName);\r\n\t image.setImage(image.getImage().getScaledInstance(this.image.getWidth(), this.image.getHeight(), Image.SCALE_AREA_AVERAGING)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the next Resource from the pool and returns it for allocation. The Resource returned should be the next Resource as defined by the subclass implementation.
protected abstract Resource getNextResource(Object inData) throws ResourcePoolException;
[ "private void destroyNextPendingResource() {\n int listSize = destructionList.size();\n if(listSize == 0) return;\n\n long handle = destructionList.remove(destructionList.size() - 1);\n ServerResource serverResource;\n synchronized(resources) {\n serverResource = resour...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets a backwardEdge from the graph
public BackwardEdge getEdge(HashSet sources, ModelGraphVertex destination) { Iterator it = backwardEdges.iterator(); while (it.hasNext()) { BackwardEdge e = (BackwardEdge) it.next(); if (e.equals(sources, destination)) { return e; } } return null; }
[ "public Edge getLastEdge() {\r\n \tint size = path.size();\r\n \tString sNode = path.get(size - 2);\r\n \tString dNode = path.get(size - 1);\r\n \treturn new Edge(sNode,dNode,null);\r\n }", "public LinkedList<Edge> backEdges() \n { \n return backEdges; \n }", "EdgePair<K, E> getLastE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When set to true, Workitems will be sent to the queue of the Worktype as they are created. Default value is false.
public WorktypeVersion assignmentEnabled(Boolean assignmentEnabled) { this.assignmentEnabled = assignmentEnabled; return this; }
[ "boolean getAllowQueueing();", "public boolean isQueued(){\n\t\treturn queued;\n\t}", "public boolean isQueued() {\n\treturn queued;\n }", "public boolean getIsWorker() {\r\n\t\treturn type.isWorker();\r\n\t}", "default boolean isBuilding(){\n return buildQueue().size != 0;\n }", "@java.lang....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a new vent task
@TrimAllArgs public void event(LinkedHashMap<String, String> args) throws DukeException { event(this.taskHistory, args.get("description"), args.get("/at")); }
[ "public void addTask(Task t){\n\t\ttasks.add(t);\n\t}", "private void createAndAddNewTask() {\n String taskNameString = taskName.getText();\n String dueDateString = dueDate.getText();\n try {\n Task createdTask = null;\n createdTask = new Task(taskNam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated uint32 current_roster = 8;
public Builder clearCurrentRoster() { currentRoster_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; }
[ "private static int getnextPeople() {\n\t\tif(dirction)\n\t\t\treturn (handindex+1)%4;\n\t\telse{\n\t\t\tif(handindex==0){\n\t\t\t\treturn 3;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn handindex-1;\n\t\t}\n\t}", "org.ga4gh.protobuf.Common.PositionOrBuilder getNextMatePositionOrBuilder();", "int getNextplayer();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Prints out sorted list of most common words in this county
public String printDictionary() { TreeMap<Integer,LinkedList<String>> sortedDic = new TreeMap<Integer,LinkedList<String>>(); //iterate through dictionary, using count of words as new key for (Map.Entry<String, Integer> entry : dictionary.entrySet()) { String word = entry.getKey(); int count = entry.get...
[ "public void mostCommonLength(){\n FileResource fr = new FileResource();\n int[] freqs = new int[20];\n \n for(String w: fr.words()){\n int length = w.length();\n freqs[length] += 1;\n }\n \n for(int i = 0; i < freqs.length; i++){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a new Quaternion by copying the given Quaternion.
public Quaternion(Quaternion quaternion) { set(quaternion); }
[ "public Quaternion(Quaternion q) {\n\t\tthis(q.x, q.y, q.z, q.w);\n\t}", "public Quaternion() {\n this(0.0, 0.0, 0.0, 1.0);\n }", "public Quaternion equal(Quaternion other) {\n\t\tthis.w = other.w;\n\t\tthis.x = other.x;\n\t\tthis.y = other.y;\n\t\tthis.z = other.z;\n\t\treturn this;\n\t}", "Quaternion se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes entity with provided ID from the storage.
@Override public boolean removeEntity(final long id) throws ServiceException { try { if (!validator.isValidValue(id)) { LOGGER.error("The ID for removing entity is not valid!"); throw new ServiceException("The ID for removing entity is not" ...
[ "void remove(final Long id, final T entity);", "@Override\n\n public void delete(Long id) {\n em.remove(findOne(id));\n }", "@Override\n\tpublic void remove(Integer id) {\n\t\tebr.deleteById(id);\n\t}", "@Override public void deleteById(long id) {\n\n repo.deleteById(id);\n }", "@Over...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the short hw1_1000LOC9method3(float,byte,String,long,int,float) method test.
@Test public void testHw1_1000LOC9method3_5() throws Exception { float var0 = 1.0f; byte var1 = (byte) 1; String var2 = ""; long var3 = 1L; int var4 = 1; float var5 = 1.0f; short result = hw1_1000LOC9.hw1_1000LOC9method3(var0, var1, var2, var3, var4, var5); // add additional test code here assert...
[ "@Test\n\tpublic void testHw1_1000LOC33method9_1()\n\t\tthrows Exception {\n\t\thw1_1000LOC33 fixture = new hw1_1000LOC33();\n\t\tfixture.f0 = \"\";\n\t\tfixture.f1 = new char[] {};\n\t\tfloat var0 = 1.0f;\n\t\tfloat var1 = 1.0f;\n\t\tint var2 = 1;\n\t\tbyte var3 = (byte) 1;\n\t\tfloat var4 = 1.0f;\n\t\tfloat var5 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Internal method to find the smallest item in a subtree.
private BinaryNode<AnyKey, AnyValue> findMin( BinaryNode<AnyKey, AnyValue> t ) { if( t != null ) while( t.left != null ) t = t.left; return t; }
[ "public E findMin() {\n\t\t// start from the root, slowly traverse leftwards to find the smallest value\n\t\tTreeNode<E> current = root;\n\t\twhile (current != null) {\n\t\t\tif(current.getLeftChild() == null) {\n\t\t\t\t// there is no more smaller child than this one, return this\n\t\t\t\treturn current.getElement...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor with a message.
public InvalidTokenException(String message) { super(message); }
[ "public Message() {\n this.message = prepareString(0);\n }", "public Message() {\n this(\"\", false);\n }", "private Message() {\n }", "public Message() {\n\n\t}", "public Message() {\n // No-arg, No-op constructor\n }", "public Message(Environment environment) {\n\t\tsupe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test failure with CryptoService
@Test public void testCryptoServiceFailure() throws Exception { if (testEncryption) { cryptoService.exceptionOnDecryption.set(PutManagerTest.GSE); assertOperationFailure(UnexpectedInternalError); } }
[ "@Override\n public void onCryptoError(CryptoException e) {\n }", "@Test\n public void testInvalidChainExpiredIntermediate() throws Exception\n {\n // Setup fixture.\n\n // Execute system under test.\n assertThrows(CertificateException.class, () -> systemUnderTest.checkClientTrust...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void delete(LignePlat lignePlat) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of AcceptElementList and populates its with the parsed Strings passed as a parameter.
public static AcceptElementList parseAcceptElementList(String acceptHeaderValue) throws HttpHeaderParseException { AcceptElementList newAcceptElementList = new AcceptElementList(); if(acceptHeaderValue == null) return newAcceptElementList; String[] acceptHeaderValues = acceptHeaderValue.split(","); ...
[ "public void setAccept(ArrayList<String> accept) {\n\t\tthis.accept = accept;\n\t}", "public ParseList(String in_in) {\n in = in_in;\n state = new ParseState(in);\n parselist = true;\n }", "public Elements(List<String> lines) {\n\n elements = lines;\n }", "@Override\n prote...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the DBdefinition used by this DBDatabase Every DBDatabase has a DBDefinition that defines the syntax used in that database. While DBDefinition is important, unless you are implementing support for a new database you probably don't need this. Support DBvolution at Patreon
public DBDefinition getDefinition() { return definition; }
[ "public String definition() { return this.definition; }", "public java.lang.String getDb() {\n return db;\n }", "DataTypeDefinition getDefinition();", "public String getDbms()\r\n\t\t{\r\n\t\t\treturn databaseCode;\r\n\t\t}", "public String getF_definition() {\n return f_definition;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field success is set (has been assigned a value) and false otherwise
public boolean isSetSuccess() { return this.success != null; }
[ "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the scene node associated with specified proxy name.
public ISceneNode Get( String name ) { if ( name.equals( ROOTNODE_NAME ) ) return m_root; return (ISceneNode)m_exportedNodes.get( name ); }
[ "public Node getNode(String name){\r\n for(Node n: nodes){\r\n if(n.getName().equals(name)){\r\n return n;\r\n }\r\n }\r\n return null;\r\n }", "protected ProxyMarker<Node> getNodeMarkerWithName(String name) {\n\t\tProxyMarker<Node> node = nodes.get(nam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts broadcasting the messages to the guilds specified on object instanciation.
@SuppressWarnings("unchecked") public void broadcast(int threadCount) { if (threadCount < 1) throw new IllegalArgumentException("Thread count cannot be zero or negative !"); this.result = new ArrayList<>(); Collection<GuildSettings>[] subCollections = (Collection<GuildSettings>[]) new Collection[threadCoun...
[ "public void startBroadcast() {\n UUID uuid = settingsProvider.getPersonalUUID();\n currentMessage.postValue(new LobbyMessage(uuid));\n\n dbUpdateTimer = new Timer();\n dbUpdateTimer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
actors exit regions repeated .innova.protocol.Region exited_regions = 401;
int getExitedRegionsCount();
[ "@Override\n public void didExitRegion(Region region) {\n logthis(\"I no longer see any beacons\", 1);\n\n }", "public void exitRegion(IBeacon ibeacon);", "void onlineRegion(Region region);", "public abstract void userLeaveRegion(\n com.google.protobuf.RpcControll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public VertexBuffer getBuffer(Type color) { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo6738a(int i, int i2, String str, C1207m c1207m, boolean z) { AppMethodBeat.m2504i(18183); C4990ab.m7417i("MicroMsg.WXCustomSchemeEntryActivity", "DeepLinkHelper.DeepLinkCallback, %d, %d, %s, %b", Integer.valueOf(i), Integer.valueOf(i2), str, Boolean.valueOf(z)); i...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The class holding records for this type
@Override public Class<M_BUSHO_BANK_ACCOUNT_RECORD> getRecordType() { return M_BUSHO_BANK_ACCOUNT_RECORD.class; }
[ "@Override\n public Class<ClazzRecord> getRecordType() {\n return ClazzRecord.class;\n }", "@Override\r\n\tpublic Collection<RecordType> getRecords() {\r\n\t\treturn records.values();\r\n\t}", "public ProviderRecords(){\n\t\tproviderDetails = new ArrayList<Provider>();\n\t}", "@Override\n publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Switches from TCM to GSV mode by notifying the main thread.
public static void switchToGSV() { synchronized (commandMutex) { gsvMode = true; commandMutex.notifyAll(); } }
[ "private void triggerVSyncInterrupt() {\n\t\tvdp.setStatusINT(true);\n\t\tif (vdp.getStatusINT() && vdp.getGINT()) {\n\t\t\tcpu.interrupt();\n\t\t}\n\t}", "boolean switchAtvChannel(int channel);", "public void switchChanged() {\n\n final Switch controlSwitch = (Switch) findViewById(R.id.switch_button);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a byte of this buffer.
default byte get() { return byteBuffer().get(); }
[ "public byte get() {\n return buffer[position++];\n }", "public static byte getByte()\n {\n return getBytes(1)[0];\n }", "public byte getByte()\n {\n checkSensor();\n return raw.get(calcRawOffset());\n }", "byte getByte(long position) throws IOException;", "@Overri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implementations of this class are used to handle customizing installation. The defined methods are called from the unpacker at different, well defined points of installation.
public interface InstallerListener extends InstallationListener { // ------------------------------------------------------------------------ // Constant Definitions // ------------------------------------------------------------------------ @Deprecated public static final int BEFORE_FILE = 1; ...
[ "@Override\n\t\t\tpublic void install() {\n\t\t\t}", "public interface Unpacker {\r\n\r\n\t/**\r\n\t * Get default value for a property.\r\n\t * @param key Installation setting / property name\r\n\t * @return default value\r\n\t */\r\n\tpublic String getDefaultValue(String key);\r\n\r\n\t/**\r\n\t * Validate an i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ VkCopyDescriptorSet vkObj = (VkCopyDescriptorSet)(ptr); code for simple past value vkObj>srcBinding = (uint32_t) (_srcBinding); Native GET method for field srcBinding[int] Prototype: uint32_t srcBinding
private static native int getSrcBinding0(Buffer ptr);
[ "private static native int getDstBinding0(Buffer ptr);", "private static native void setDstBinding0(Buffer ptr, int _dstBinding);", "public BindingSet getBindingSet();", "@DISPID(-2147412056)\n @PropGet\n java.lang.Object oncopy();", "private void populate(VkImageCopy copy) {\n\t\t\tcopy.srcSubresource = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by z00382545 on 8/24/17.
public interface RoleRepository extends CrudRepository<Role, Long> { }
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "public void mo28221a() {\n }", "protected...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a hashing salt
public static byte[] getSalt(int saltLength) throws NoSuchAlgorithmException { SecureRandom sr = SecureRandom.getInstance("SHA1PRNG"); byte[] salt = new byte[saltLength]; sr.nextBytes(salt); return salt; }
[ "private void generateSalt(){\n int saltLength = KEYLENGTH / 8; // same size as key output\n mSalt = new byte[saltLength];\n secureRandom.nextBytes(mSalt);\n }", "protected void generateSalt(){\n random = new SecureRandom();\n // byte[] salt = new byte[16];\n salt = new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
navigates to the end of the list the end of the list is at the last valid item in the list
public void Last() { while(currentNode.getLink() != null) { currentNode = currentNode.getLink(); } }
[ "private void isAtEnd(ArrayList<ArrayList<Integer>> list){\n\t\tfor(ArrayList<Integer> l : list){\n\t\t\tfor(Node n : listOfNodes){\n\t\t\t\tif(l.get(l.size()-1) == n.NodeID && n.isExit()){\n\t\t\t\t\tl.add(-1);\n\t\t\t\t\tsetHumanHasPath(l);\n\t\t\t\t\tsetHasPath(l);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test(ex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for finding maximum number from given three string using compare to
private static void findMaximumNo(String a, String b, String c) { String max = a; if (b.compareTo(max)>0) { max = b; } if (c.compareTo(max)>0) { max = c; } System.out.println("Maximum String of given three is " +max); }
[ "public int findMax(String s, int max) {\n\t\tif(s.length() == 0) {\r\n\t\t\treturn max;\r\n\t\t}\r\n\t\t\r\n\t\t/* Checks if there is more than one character in the given string,\r\n\t\t * if so then builds a string to hold every consecutive number after our start point.\r\n\t\t * This is how we have multi-digit n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method for reading variable amount of bytes
public long readLongValue(int bytes) throws SeratoLibraryException, SeratoEofException { long nameLength = 0; for (int i = 0; i < bytes; i++) { nameLength <<= 8; nameLength |= readUnsignedByteInternal(); } return nameLength; }
[ "abstract public int read(byte[] buffer, int num_to_read) throws IOException;", "public abstract byte[] tryReadBytes();", "public abstract int readBytesSize() throws IOException;", "public byte[] read(int offset, int length);", "public abstract int read(byte[] bs, int off, int len) throws IOException;", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.map); GooglePlayServicesUtil.isGooglePlayServicesAvailable(MapActivity.this); locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); ...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Title: RequestAttributes.java Description: bboss workgroup Copyright (c) 2008
public interface RequestAttributes { /** * Constant that indicates request scope. */ int SCOPE_REQUEST = 0; /** * Constant that indicates session scope. * <p>This preferably refers to a locally isolated session, if such * a distinction is available (for example, in a Portlet environment). * El...
[ "io.envoyproxy.envoy.service.auth.v3.AttributeContext.RequestOrBuilder getRequestOrBuilder();", "public interface REQUEST\n\t\t{\n\n\t\t\t// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\t\t\t// Request-scope attribute name conventions\n\t\t\t// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n\t\t\tpublic interfac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table author
List<Author> selectByExample(AuthorExample example) throws SQLException;
[ "public AccountName getAuthor() {\n return author;\n }", "public int getAuthor(){\r\n\t\treturn author;\r\n\t}", "public String getAuthor()\r\n\t{\r\n\t\treturn(\"Written by Ciara Power\");\r\n\t}", "public int getAuthorID() \r\n\t{\n\t\treturn authorID;\r\n\t}", "public String getAuthor(){\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof ContactDTO)) { return false; } ContactDTO other = (ContactDTO) object; if ((this.contactID == null && other.contactID != null) || (this.contactID != null && !this.contactID.equals(other.contactID))) ...
[ "public int getId () { return id; }", "public int getId(){ return this.id;}", "public int id() {return this.id;}", "@Override\n public int getId() { return id; }", "public void setId(long id){ \r\n this.id = id; \r\n }", "public void setId( int id ) { this.id = id; }", "public void setId( l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Model Reference'.
ModelReference createModelReference();
[ "public WhiteSameNameRefRef newEntity() { return new WhiteSameNameRefRef(); }", "@Override\r\n\tpublic AddReferenceActionPojo getModel() {\n\t\treturn addReferencePOJO;\r\n\t}", "public static Model create_copy(Collection<Model> ref){\n\t\tModel m = ModelFactory.createDefaultModel();\n\t\tupdate_copy(m, ref);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the call Ids represented by the current call log row.
private long[] getCallIds(final Cursor cursor, final int groupSize) { // We want to restore the position in the cursor at the end. int startingPosition = cursor.getPosition(); long[] ids = new long[groupSize]; // Copy the ids of the rows in the group. for (int index = 0; index < groupSize; ++index) ...
[ "public long getCallId();", "public long getCallId() {\n return instance.getCallId();\n }", "public String getCallId() {\n\t\treturn session.getCallId();\r\n\t}", "public String getCallIdentifier() {\n return callIdentifier;\n }", "@Override\n\tpublic List<Call> getCallsByContactId(int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
just for adding from xlex
@PostMapping(value="/addAllCashewReceiveCheck") public void addAllCashewReceiveCheck(@RequestBody List<QualityCheckDTO> listChanges) { System.out.println(listChanges); listChanges.forEach(k -> { System.out.println(k); qualityChecks.addCashewReceiptCheck(k); }); }
[ "public void addX(double movex){\n dballx = dballx + movex;\n x = (int)dballx;\n }", "public void add(ElementType x)\n {\n Node node = new Node();\n node.setInfo(x);\n node.setNext(first.getNext());\n first.setNext(node);\n }", "public void addToX(double addMe)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor, build an AI player
public AI(Gomoku gomoku) { this.gomoku = gomoku; this.winLength = gomoku.getWinLength(); //hard copy gomoku.board for board initialization int[][] board = gomoku.getBoard(); this.rowSize = board.length; this.colSize = board[0].length; this.board = new int[rowSize][colSize]; this.p1Score = new int[row...
[ "Player(){}", "public GameState() {\n\n\t\t//initialize rooms on the board\n\t\tGenerateRoom();\n\t\ttimes = 0;\n\t\t\n\t\t//initialize players on the board\n\t\t//(name, learn, craft, integrity, playerId)\n\t\t\n\t\tRandom r = new Random();\n\t\tif (r.nextInt()%3 == 0){\n\t\t\thumanPlayer = new Player(\"player1\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Atribui nivel a cada 500 pontos
public int getNivel() { return nivel; }
[ "public void cantidadDepersonal(){\n this.personal += 10;\n this.precios += 30000;\n this.atencion =true;\n }", "public void asignarPuntajes() {\n Thread th = new Thread(() -> {\n while (j.getPosicion().size() != 5) {\n try {\n Thread.sle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }