anchor stringlengths 10 14.3k | positive stringlengths 10 14.9k |
|---|---|
public Long zremrangeByRank(String key, long start, long end) {
Jedis jedis = null;
try {
jedis = jedisPool.getResource();
return jedis.zremrangeByRank(key, start, end);
} finally {
if (jedis != null) {
jedis.close();
}
}
... | Remove all elements in the sorted set at key with rank between start and end. Start and end are 0based with rank 0 being the element with the lowest score. Both start and end can be negative numbers, where they indicate offsets starting at the element with the highest rank. For example: 1 is the element with the highes... |
@SuppressWarnings("unused")
@Repository
public interface GOtherVoucherDetailsRepository extends JpaRepository<GOtherVoucherDetails, UUID>, GOtherVoucherDetailsRepositoryCustom {
@Query(value = "select * from GOtherVoucherDetail where GOtherVoucherID = ?1 order by OrderPriority ", nativeQuery = true)
List<GOthe... | Spring Data repository for the GOtherVoucherDetails entity. |
java.lang.String getTitle(); | The title of the Drive item. string title = 2; |
void m70531a(Throwable th) {
try {
this.f61096d.call(th);
} catch (Throwable th2) {
this.f61095c.unsubscribe();
}
this.f61095c.unsubscribe();
} | / renamed from: a |
protected void keyHit(int keyCode) {
} | Called when a key is released. |
BuildingBlock findBuildingBlockById(Long id) throws BusinessException; | Retrieves the building block by id. |
public void afficherInfo(View v){
Intent intent=new Intent(CarteActivity.this,InfoActivity.class);
startActivity(intent);
} | afficher info d'un produit |
public static void copyTreeNoParent(File from, File to, FileFilter filter) throws IOException {
File[] files;
Check.checkArg(from.isDirectory());
files = from.listFiles(filter);
to.mkdirs();
for (int i = 0; i < files.length; i++) {
... | Copy files or directories from 'from' to 'to'. Recursively descends if 'from' is a directory. Does not create 'from' tail directory in 'to', e.g.: from = c:/foo/bar contains a,b,c to = c:/temp > c:/temp/a c:/temp/b c:/temp/c |
public void setSeGrpName(String seGrpName) {
this.seGrpName = seGrpName;
} | This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null. |
public static <T> T getBean(String beanName) {
return (T) applicationContext.getBean(beanName);
} | get bean by bean name |
@Override
public List<Evento> listarDisponivelPorDataAsc() {
return repository.findByFimAfterToday(sortByInicioAsc());
} | TODO Autogenerated method stub |
public void onClick(View arg0) {
int seledtedId = radioSex.getCheckedRadioButtonId();
RadioButton radioMale = (RadioButton) findViewById(seledtedId);
Toast.makeText(ExampleRadio.this, radioMale.getText(), Toast.LENGTH_LONG).show();
} | TODO Autogenerated method stub |
public String getCpuSerialNo()
{
return cpuSerialNo;
} | Gets the value of cpuSerialNo |
java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate>
getCertificateList(); | repeated .liubaninc.m0.pki.Certificate Certificate = 1; |
public Map getAttributeValueMap() {
return m_attributeValueMap;
} | Gets the attribute values map |
public Future<Void> stop(Integer id) throws DynamicCallException, ExecutionException{
return call("stop", id);
} | returns true if the method is currently running |
public static IntStrategy minDom_LB(IntVar... VARS) {
return custom(minDomainSize_var_selector(), min_value_selector(), VARS);
} | Assigns the noninstantiated variable of smallest domain size to its lower bound. |
public void friendSearchClick(ActionEvent event) throws Exception{
displayAddFriendresults();
} | Button Click Event for Edit Profile Button |
int updateByPrimaryKeySelective(QtActivitytype record); | This method was generated by MyBatis Generator. This method corresponds to the database table qt_activitytype |
public void removeProperty(Object key) {
properties.remove(key);
} | Remove data from the context |
public void draw(Frame frame) {
// Draw vehicle corner points.
if (this.points != null) {
for (int i = 0; i < 3; i++) {
if (this.points[i] == null) continue;
Imgproc.circle(frame.getSource(), this.points[i], 3, new Scalar(0, 0, 255));
}
}
// Draw the vehicles back point.
if (this.back != null... | Draw the vehicle points on the screen. |
@Override
public List<PhatVay> findAll(
int start, int end, OrderByComparator<PhatVay> orderByComparator,
boolean retrieveFromCache) {
boolean pagination = true;
FinderPath finderPath = null;
Object[] finderArgs = null;
if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&
(orderByComparat... | Returns an ordered range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set.... |
public abstract String getIntentActionString(); | / access modifiers changed from: protected |
double average() { // used double b/c I want decimal places
int sum = 0;
for (int i = 0; i < array.length; i++) {
sum = sum + array[i];
}
double average = (double) sum / array.length;
return average;
} | returns the average of the array |
public static <E extends Comparable<E>> Optional<E>
max2(Collection<E> c){
if(c.isEmpty()){
return Optional.empty();
}
E result = null;
for(E e : c){
if(result == null || e.compareTo(result) > 0){
result = Objects.requireNonNull(e);
... | Returns maximum value in collection as an Optional |
public Integer fromString(String s) {
if (s == null || s.trim().length() == 0)
return 0;
try {
return Integer.parseInt(s);
}
catch (NumberFormatException e) {
return null;
}
... | This custom string converter will convert a bad input string to null, instead of just failing. And it will display a null value as "Bad Value" and an empty string value as 0. |
@SuppressWarnings("unused")
@Repository
public interface VisiteurRepository extends JpaRepository<Visiteur, Long> {
} | Spring Data dao for the Visiteur entity. |
public static void main(String[] args) throws Exception {
ApplicationContext factory = new AnnotationConfigApplicationContext(AppConfig.class);
ProductService service = (ProductServiceImpl) factory.getBean(ProductServiceImpl.class);
System.out.println("Scanning Items.... ");
service.scanProductId("Item... | ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml"); |
public File getFile() {
return file;
} | Returns the File backing this HeapFile on disk. |
private void nextDate() {
Calendar calendar = Calendar.getInstance();
long hourMills = this.nextHourMills;
int day;
calendar.setTimeInMillis(this.nextHourMills);
calendar.add(Calendar.HOUR_OF_DAY, 1);
this.nextHourMills = calendar.getTimeInMillis();
day = calendar.get(Calendar.DATE);
... | next hour or next day |
@Test
public void testSetRooms_Empty_NoIllegalArgumentException() {
HashSet<Room> rooms = new HashSet<Room>();
teachu1.setRooms(rooms);
assertTrue(teachu1.getRooms().size() == 0);
} | Testet, ob ein leeres Set von Raumen erlaubt ist. |
public static int isNumber(String num)
{
int[][] table = new int[9][7];
for (int i = 0; i < 9; i++)
{
for (int j = 0; j < 6; j++)
{
table[i][j] = -1;
}
}
table[0][0] = 1;
table[0][2] = 2;
table[0][4] = 3;
table[1][3] = 4;
table[1][6] = 6;
table[2][0] = 1;
table[2][4] = 3;
table[3][... | Parsing Table: 0 123456 0+.cde 0|123 1|46 2|13 3|436 4|5 5|56 6|778 7|8 8|8 here: c = 19 d = 09 e = E|e accepting state: 1,3,5,8 |
public Session getSysSessionForScript(Database db) {
Session session = new Session(db, db.getUserManager().getSysUser(),
false, false, 0, null, 0);
// some old 1.8.0 do not have SET SCHEMA PUBLIC
session.setCurrentSchemaHsqlName(
db.schemaManag... | Retrieves a new SYS Session. |
public boolean add(RegistrationPlate plate, String owner){
if(this.registrationList.containsKey(plate)){
return false;
}
else {
this.registrationList.put(plate, owner);
return true;
}
} | Object methods Adds info to a hashMap and returns false if it already exists and true if added |
public void setBalance(double balance){
this.balance = balance;
} | Set the balance for this account |
private void initialize() {
frame = new JFrame();
frame.getContentPane().setBackground(new Color(64, 64, 64));
frame.getContentPane().setForeground(Color.WHITE);
frame.setBounds(100, 100, 450, 401);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
te... | Initialize the contents of the frame. |
public String connectAndGetPage(String url) throws IOException {
URL page = new URL(url);
HttpURLConnection conn = (HttpURLConnection) page.openConnection();
conn.connect();
InputStreamReader in = new InputStreamReader((InputStream) conn.getContent());
BufferedReader buff = new B... | Get connection and return the page as a string. |
public static boolean deleteEmptyDir(File directory) {
return directory.exists() && directory.isDirectory() && directory.list() != null &&
directory.list().length == 0 && directory.delete();
} | Delete the directory if it is empty. |
public synchronized boolean ffree(FileTableEntry ftEnt) {
// count is zero so return false
if (ftEnt.inode.count == 0) {
return false;
}
// subtract 1 from the count
ftEnt.inode.count -= 1;
// if the count is zero after the decrement
// then it can be... | receive a file table entry reference save the corresponding inode to the disk free this file table entry. return true if this file table entry found in my table |
public void setTotalAlocRolls(Number value) {
setAttributeInternal(TOTALALOCROLLS, value);
} | Sets value as the attribute value for TotalAlocRolls. |
public String getParentKey() {
return this.parentKey;
} | Getter for property parentKey. |
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
LayoutInflater layoutInflater = LayoutInflater.from(context);
View viewCelda;
FragmentActivity unaActivity = (FragmentActivity) context;
FragmentManager fragmentManager = (FragmentManag... | crear vista y viewholder |
public Observable<EvaluateInner> evaluateMethodAsync() {
return evaluateMethodWithServiceResponseAsync().map(new Func1<ServiceResponse<EvaluateInner>, EvaluateInner>() {
@Override
public EvaluateInner call(ServiceResponse<EvaluateInner> response) {
return response.body();... | Returns probabilities of the image containing racy or adult content. |
@Basic @Raw @Immutable
public double getMaxVelocity(){
return this.maxVelocity = SPEED_OF_LIGHT;
} | Returns the maximum velocity of the entity. |
public void acquire(PriorityQueue waitQueue)
{
waitQueue = null;
donation = 0;
lastEffectivePriority = -1; //Need to recalculate the effectivePriority as the leaving thread might take off its donation effects or
... | Called when the associated thread has acquired access to whatever is guarded by waitQueue. This can occur either as a result of acquire(thread) being invoked on waitQueue (where thread is the associated thread), or as a result of nextThread() being invoked on waitQueue. |
@SkipValidation
public String importantNewsSearchForm() {
return SUCCESS;
} | To View the Important News Search Form |
public void downloadWeatherForCurrentLocation() {
if(checkConnection()) {
LocationManager locationManager = LocationManager.getInstance(this, view);
locationManager.getCoordinates();
} else {
showNoConnectionDialog();
}
} | TODO: I'm working here!! |
public void setOverview(String overview) {
this.overview = overview;
} | Sets the plot synopsis of the movie. |
protected void setRoutes(WriteFileResponse response) {
routes[ response.getSequence() ] = response.getRoutingPath();
if ( ableToWrite && totalReceived.incrementAndGet() == routes.length )
{
unlock();
}
} | Calling method checked for validity of routes; |
@Override
public Object instantiateItem(ViewGroup container, int position) {
((ViewPager)container).addView(viewContainter.get(position));
return viewContainter.get(position);
} | TODO Autogenerated method stub return super.instantiateItem(container, position); |
public void setCategoriaDescripcion(String descripcion); | metodos usuados para el menu Setea la descripcion de la categoria del usuario |
MultiSearchResponse executeMultiSearchRequest(List<SearchRequest> searchRequestList, Boolean primaryOrNot); | public ElasticSearchDictator createSearchDictator(String indexName, String documentType, CummulativeDataRequestDto dto, String tenant) throws Exception ; |
private void addAllCertificate(
java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
ensureCertificateIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, certificate_);
} | DERencoded X.509 certificate chain repeated bytes certificate = 1; |
private void waitForConnection() throws IOException {
System.out.println("Waiting for connection" + myConID + "\n");
connection = server.accept(); // allow server to accept connection
System.out.println("Connection " + myConID + " received from: "
+ connection.getInetAddress().getHostName());
} | end try wait for connection to arrive, then display connection info |
JPanel createButtonPane()
{
// create the Ok button
_okButton = new JButton("OK");
_okButton.addActionListener(this);
_panel.add(_okButton);
// create the Cancel button
_cancelButton = new JButton("Cancel");
_cancelButton.addActionListener(this);
_panel.add(_cancelBut... | Create the ok and cancel button pane and its components. |
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, SqliteActivity.class);
startActivity(intent);
} | TODO Autogenerated method stub |
public Results doQuery(String[] settings)
{
if (queryThread != null)
{
// create the query object and to hand to the thread
QueryObject query = new QueryObject(settings);
synchronized (query)
{
synchronized (this)
{
// hand the query object to the thread
... | if the thread is not running return null |
@Override
public void onEvent(String name, String params, byte[] data, int offset,
int length) {
String result = "name:" + name;
//if(params != null && !params.isEmpty()){
// result+=";params:"+params;
//}
if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_PARTIAL)){
if(params.contains("\"final_result\""... | TODO Autogenerated method stub |
public boolean isServicesDiSplayed() {
return isDisplayed(servicesTextLocator);
} | / Confirm that it's in the services info |
public static JDialog waitForJDialog(String title) {
int totalTime = 0;
while (totalTime <= DEFAULT_WINDOW_TIMEOUT) {
Set<Window> winList = getAllWindows();
Iterator<Window> iter = winList.iterator();
while (iter.hasNext()) {
Window w = iter.next();
if ((w instanceof JDialog) && w.isShowing()) {
... | Waits for the JDialog with the given title Note: Sometimes the task dialog might have the same title as the dialog you pop up and you want to get yours instead of the one for the task monitor. |
public static synchronized int getCred_IDByBean(Credentials cred){
int cred_ID=0;
Connection connection;
PreparedStatement statement = null;
String preparedSQL = "Select Credentials_ID From credential Where Email = ? " +
"And Pass= ? And Role= ? And Validated= ? And RegKey= ?";
try{
connecti... | Method.........................................getCred_IDByBean Author......................................................JLH This method retrieves the Credential ID based on the Credential Bean Return Value (int) cred_ID: Returns a credential ID, this is an int that is automatically incremented in the database when ... |
@Override
public List<Chitietdonhang> findByIdChiTietDonHangActive() {
return chiTietDonHangRepository.findByIdChiTietDonHangActive();
} | TODO Autogenerated method stub |
@Override
public boolean isLabelProperty(Object element, String property) {
return false;
} | TODO Autogenerated method stub |
@Override
public void onLocalAudioStats(LocalAudioStats stats) {
if (timeCodeIndicator % TIME_CODE_FREQUENCY == 0) {
appointment.setTimeCode(new DatabaseUser(MainUser.getMainUser().getId()), System.currentTimeMillis());
}
timeCodeIndicator ... | Time code is set at a given frequency |
private void testAndUpdateControlFields(int startFieldNr) {
boolean consistent = true;
//test and correct y
for (int i = 0; i < _controlPoints.length; i++) {
if (parseTextFieldValue(_controlPoints[i][1]) == -1.0f) {
consistent = false;
}
}
//test and correct x at startFieldNr and above
fo... | checks for all y controlPoint fields if they are in the interval 0..1 checks for all x controlPoint fields if they are in the interval 0..1 and if they form a increasing row. First controlPoints x has to be <= 2nds... If necessary tries to auto correct errors in the ordering. |
public void setFirstName(final String value)
{
setFirstName( getSession().getSessionContext(), value );
} | Generated method Setter of the MyCustomer.firstName attribute. |
public static List<String> getNames() {
return Collections.unmodifiableList(widgetNames);
} | Returns the widget names as a list. This is an example of a safe get method. Instead of returning the reference to our private mutable data directly, it is first made unmodifiable. While code in this class will still be able to mutate the data, code outside of this class will not. |
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
owner_ = value;
onChanged();
... | Short alias or acronym of the owner of the node string owner = 3; |
@Override
protected void onPause() {
super.onPause();
onPause = true;
} | TODO Autogenerated method stub |
private synchronized static void internalLog(StringBuilder msg) {
//add time header
String timeStamp = simpleDateFormat.format(new Date());
msg.insert(0, timeStamp);
byte[] contentArray = msg.toString().getBytes();
int length = contentArray.length;
int srcPos = 0;
... | Produce internal log format and save to SD card. |
@Test(expected = java.io.UnsupportedEncodingException.class)
public void testRenderMergedOutputModel_5()
throws Exception {
RedirectView fixture = new RedirectView("", true, true);
fixture.setUrl("");
fixture.setEncodingScheme("");
Map model = new LinkedHashMap();
HttpServletRequest request = new JSecurity... | Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test. |
public int uncompress(InputStream in, OutputStream out) throws IOException {
int codeCount = 0;
int code = 0;
BitInputStream bitIn = new BitInputStream(in);
StringBuilder codeString = new StringBuilder(0);
// *** Bellow for building array of encoded values ****
// ****... | "Decompresses" files that were previously "compressed" by this program |
public Builder addCases(
int index, build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) {
if (casesBuilder_ == null) {
ensureCasesIsMutable();
cases_.add(index, builderForValue.build());
onChanged();
} else {
casesBuilder_.addMessage(index, buil... | List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"]; |
public static void main(String[] args) {
Person p1 = new Person("1", "Nishant");
Person p2 = new Person("2", "Nikhil");
PersonStack ps = new PersonStack();
ps.push(p1);
ps.push(p2);
System.out.println(ps.pop().toString());
System.out.println(ps.pop().toString());
} | IntStack no1 = new IntStack(); no1.push(10); no1.push(20); no1.push(30); no1.push(40); no1.push(50); System.out.println(no1.pop()); System.out.println(no1.pop()); System.out.println(no1.pop()); Output 50 40 30 |
@Override
@Transactional
public String addOrUpdateRole(ApplicationUserRole applicationUserRoleBean) {
String ex=null;
try
{
Session session = sessionFactory.getCurrentSession();
session.merge(applicationUserRoleBean);
}
catch(HibernateException e)
{
e.printStackTrace();
}
return ex;
} | TODO Autogenerated method stub |
public interface Selectable
{
boolean isSelected();
void setSelected(boolean selected);
void setGroup(SelectionGroup group);
} | Created by JCM on 25.11.2018. |
private void m20461b() {
this.f16556a.f16545b = 1;
this.f16556a.m20453f();
this.f16556a.m20444b(this.f16557b);
} | / renamed from: b |
private void loginForm(HttpServletRequest req, HttpServletResponse res)
throws IOException {
String url = req.getRequestURI();
String query = req.getQueryString();
if (query != null) {
url = url + '?' +query;
}
ProtectedRequest target = new ProtectedRequest(url);
// Store in curren... | Save the protected request |
public MainActivityFragment() {
} | final static String BASE_URL = " // BASE_URL to fetch movie data |
@SuppressWarnings( {"raw", "unchecked"} )
public static <T> GeSpecification<T> ge( Property<T> property, Variable variable )
{
return new GeSpecification( property( property ), variable );
} | Create a new GREATER OR EQUALS specification for a Property using a named Variable. |
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
addres... | string address = 2; |
int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition); | Compare the values in the specified block at the specified positions equal. |
private ServerSocket createServerSocket() throws IOException {
ServerSocket serverSocket = new ServerSocket(Constants.SERVER_PORT);
System.out.printf("Server for chatting started at %d\n", Constants.SERVER_PORT);
return serverSocket;
} | Creates the server socket. |
public boolean valid() {
if (newFlag) {
if (procNameText.getText() == null || StringUtil.isEmpty(procNameText.getText())) {
CommonUITool.openErrorBox(getShell(), Messages.errInputProcedureName);
return false;
}
if (!ValidateUtil.isValidIdentifier(procNameText.getText())) {
CommonUITool.openErrorB... | Check the data validation |
public void setIsDel(Integer isDel) {
this.isDel = isDel;
} | This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.is_del |
private boolean containsOnlyProjects(IResource[] resources) {
int types = getSelectedResourceTypes(resources);
// note that the selection may contain multiple types of resource
return types == IResource.PROJECT;
} | Returns whether the selection contains only projects. |
java.lang.String getPkiType(); | none / x509+sha256 / x509+sha1 optional string pki_type = 2 [default = "none"]; |
private AbsentYear findAbsentYear(Employee emp, LocalDate startDate) {
AbsentYear absentYear = absYearRepo.findByEmployeeAndYear(emp, (short)startDate.getYear());
if(absentYear == null) {
absentYear = createAbsentYear(emp, startDate);
}
return absentYear;
} | Find the year for an employee's absenteeism. |
private void initComponents() {
frame = new JFrame();
JPanel panel2 = new JPanel();
enrereButton = new JButton();
JLabel label1 = new JLabel();
JPanel panel3 = new JPanel();
textField1 = new JTextField();
JLabel label2 = new JLabel();
JPanel panel4 ... | JFormDesigner Component initialization DO NOT MODIFY //GENBEGIN:initComponents Generated using JFormDesigner Evaluation license Mariano Rajoy |
private static double[][] moments(double[][] data, int K) {
double[] expectedX = new double[K];
double[] expectedXSquared = new double[K];
for (double[] theta : data) {
if (theta.length != K) {
throw new IllegalArgumentException("Dimensions of data and alpha do not match!");
}
for (int k = 0; k < ... | Index 0 of returned value is E[x]; Index 1 is E[x^2] (noncentral) |
private void loadConfig() throws IOException {
final boolean hasPropertiesFile = configFile != null && configFile.exists()
&& configFile.canRead() && configFile.isFile();
if (hasPropertiesFile) {
Properties props = new Properties();
FileInputStream fis = nu... | Load the configured parameters through the properties file. TODO: Move to XML instead of properties file |
public vn.com.ecopharma.hrm.rc.model.InterviewSchedule findByVacancyCandidate_First(
long vacancyCandidateId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
vn.com.ecopharma.hrm.rc.NoSuchInterviewScheduleException; | Returns the first interview schedule in the ordered set where vacancyCandidateId = &63;. |
public String getEmail()
{
return getEmail( getSession().getSessionContext() );
} | Generated method Getter of the BraintreeCustomerDetails.email attribute. |
private static int minDepth(TreeNode node) {
if (node == null) return 0;
return 1 + Math.min(minDepth(node.left), minDepth(node.right));
} | Find the minimum depth in the tree using recursion. |
public M csmiUpdateTimeStart(Object start){this.put("csmiUpdateTimeStart", start);return this;} | and csmi_update_time >= ? |
public Builder addTransactions(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addTransactions(value);
return this;
} | Signed transactions that satisfy PaymentDetails.outputs repeated bytes transactions = 2; |
public void setPhone(final SessionContext ctx, final String value)
{
setProperty(ctx, PHONE,value);
} | Generated method Setter of the BraintreeCustomerDetails.phone attribute. |
public static void main(String[] args) throws IOException {
File file = new File("testeArquivo.txt");
file.createNewFile();
FileWriter writer = new FileWriter(file);
writer.write("Arquivo criado");
writer.flush();
writer.close();
FileReader fr = new FileReader(file);
char [] a = new char[50];
f... | TODO Autogenerated method stub |
private static FunctionCycle findCycleWithHashingInternal(IntUnaryOperator func, int x0) {
IntHashSet detectedValues = new IntHashSet();
int curValue = x0;
while (!detectedValues.contains(curValue)) {
detectedValues.add(curValue);
curValue = func.applyAsInt(curValue);
... | Find function cycle using HashSet |
private void countAndPadding(int type, int fill) {
if ( sealed ) return;
final Buffer dest;
final boolean dSigned;
final int e;
switch (type) {
case VERTEX:
dest = vertexArray;
dSigned = vDataTypeSigned;
... | Fourth element default value for color (alpha), vertex (w) is '1', as specified w/ VertexAttributes (ES2/GL3). vec4 v = vec4(0, 0, 0, 1); vec4 c = vec4(0, 0, 0, 1); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.