blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
2d0891bc4027bd691b13ec886de040d65668dec8 | Java | CallMeHeda/PDB-parking | /src/dao/IStationnementDAO.java | UTF-8 | 1,085 | 2.515625 | 3 | [] | no_license | package dao;
import java.sql.SQLException;
import model.SortieVoiture;
import model.Stationnement;
public interface IStationnementDAO extends IDAO<Stationnement, String>{
/**
* ARRIVEE_VOIT(String immatr)
* @param immatr de la voiture
* @return un objet de type Stationnement en faisant appel à la m... | true |
64929f8dfafbe62ddbb22b9d333ffae2015ebe9e | Java | rortiz13/solicitudes-sdisc-responsable-portlet | /docroot/WEB-INF/src-liferay/la/netco/solicitudes_sdisc/model/model/impl/ParametrosCacheModel.java | UTF-8 | 2,968 | 1.945313 | 2 | [] | no_license | /**
* Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later... | true |
95d908034a00d689f4bab83a22f5641128332b57 | Java | averder/Obligatorio-Programacion2 | /UY.ORT.Ing.Sist.Obligatorio2/src/interfaz/VentanaLista.java | UTF-8 | 2,094 | 2.125 | 2 | [] | no_license | package interfaz;
import dominio.Sistema;
import java.util.Collections;
import javax.swing.JFrame;
public class VentanaLista extends javax.swing.JDialog {
private Sistema modelo;
public Sistema getModelo() {
return modelo;
}
public void setModelo(Sistema modelo) {
this.modelo = mode... | true |
496047040e303e97384eaa814a2d0d0f3e12a010 | Java | LearninAndroid/Eat_Out_0.0.2 | /app/src/main/java/dev/brian/com/eatout/Cart.java | UTF-8 | 4,812 | 2.171875 | 2 | [] | no_license | package dev.brian.com.eatout;
import android.content.DialogInterface;
import android.icu.text.NumberFormat;
import android.os.Build;
import android.provider.ContactsContract;
import android.support.annotation.RequiresApi;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AlertDialog;
import ... | true |
47f67e24effdfbce25a25e1bcbeaed98c1274121 | Java | captainjspace/dmpro | /src/main/java/dmpro/attributes/Wisdom.java | UTF-8 | 3,438 | 2.84375 | 3 | [] | no_license | package dmpro.attributes;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import dmpro.spells.Spell;
public class Wisdom extends Attribute {
static final int fieldCount = 5;
// beguiling, charmming, fear, hypnosis, illusion,magic jar
// mas... | true |
cb4b031e20aa6ad4f7aae037211e511589a0c0b1 | Java | mageru/softwarereuse | /reuze/gb_IntersectionData.java | UTF-8 | 1,705 | 2.328125 | 2 | [] | no_license | package reuze;
/*
* Copyright (c) 2006-2011 Karsten Schmidt
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ve... | true |
8ab0d74e997621f46797161a14f5de0a098a4e13 | Java | ypsliu/serviceplatform | /serviceplatform/commons/validation/StringEnum.java | UTF-8 | 836 | 2 | 2 | [] | no_license | /**
*
*/
package com.ruixue.serviceplatform.commons.validation;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validati... | true |
3165033615a3ed19e74fe0054cc53310f8c90b0a | Java | cherkavi/java-web | /applet-javascript2/src/gui/EnterPoint/JInternalFrameMain.java | WINDOWS-1251 | 6,217 | 2.625 | 3 | [] | no_license | package gui.EnterPoint;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.*;
import javax.swing.event.InternalFrameEvent;
import javax.swing.event.InternalFram... | true |
8be45767795b662a43c838c905b2a2b9f1309066 | Java | cooperay/cop-all | /cop-facade-admin/src/main/java/com/cooperay/facade/admin/service/GroupFacade.java | UTF-8 | 516 | 1.71875 | 2 | [] | no_license | package com.cooperay.facade.admin.service;
import java.util.List;
import com.cooperay.common.exceptions.BizException;
import com.cooperay.common.facade.BaseFacade;
import com.cooperay.facade.admin.entity.Group;
import com.cooperay.facade.admin.entity.GroupResource;
public interface GroupFacade extends BaseFacade<Gro... | true |
1e2ea5afcf64a4d5259654257ecb33b42b92bb99 | Java | mazeRn/mazeNet | /mazenet-server-master-new/src/clientPackages/client/Player.java | UTF-8 | 676 | 2.109375 | 2 | [] | no_license | package clientPackages.client;
import generated.AwaitMoveMessageType;
import generated.MoveMessageType;
import generated.PositionType;
public class Player implements InterfaceKI {
@Override
public MoveMessageType getMove(AwaitMoveMessageType status) {
MoveMessageType message = new MoveMessageType();
PositionTy... | true |
a2fc29c3bd73d323890a8bcbe6504bc92474d2a3 | Java | kotoroshinoto/HoNApp | /HoNApp/src/akirashino/honapp/DBAdapter.java | UTF-8 | 6,233 | 2.375 | 2 | [] | no_license | package akirashino.honapp;
import java.lang.reflect.Field;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
public class DBAdapter{
// ///////////////////////////////////////////////////////////////////
// Constants &... | true |
b7bebf059facfdb951b29e4c3ce5741e143d8ae7 | Java | Witold101/comecofinale | /src/by/vistar/comeco/entity/autor/PackageSoft.java | UTF-8 | 665 | 2.25 | 2 | [] | no_license | package by.vistar.comeco.entity.autor;
public class PackageSoft {
private Long id;
private Integer key;
private String name;
private String info;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getKey() {
retu... | true |
d716d61e1cca7fdeb0b2a667d6151dcc75ca0da1 | Java | xugeiyangguang/test2 | /src/ExperienceOfferTest/ConvertBinarySearchTree.java | UTF-8 | 3,028 | 3.625 | 4 | [] | no_license | package ExperienceOfferTest;
/*?????????????*/
public class ConvertBinarySearchTree {
static TreeNode head = null;
static TreeNode realHead = null;
public static TreeNode Convert(TreeNode pRootOfTree) {
ConvertSub(pRootOfTree);
return realHead;
}
private static void ConvertSub(TreeN... | true |
7410424a301d8be9bd8d0c8e38ab212746401465 | Java | yohanwahyudi/mdsreport | /GradleDyReports/src/main/java/com/vdi/batch/mds/repository/dao/impl/StagingAgentDAOImpl.java | UTF-8 | 1,874 | 2.28125 | 2 | [] | no_license | package com.vdi.batch.mds.repository.dao.impl;
import java.util.Collection;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaDelete;
import javax.transaction... | true |
2baaaf65a89d6cde56c0005e81e09fb33b493723 | Java | boubah/demo | /src/main/java/com/sncf/fusion/demo/patternity/annotation/designpattern/Facade.java | UTF-8 | 544 | 2.328125 | 2 | [] | no_license | package com.sncf.fusion.demo.patternity.annotation.designpattern;
import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.CLASS)
@Inherited
@Documented
public @interface Facade {
... | true |
5df4647cbc52963dd38605f41ccbc80bc758687c | Java | mguetlein/TestAmbitSmarts | /src/test/java/org/kramerlab/test/TestAmbit.java | UTF-8 | 9,403 | 1.953125 | 2 | [] | no_license | package org.kramerlab.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
impo... | true |
ff2d397df0d0aaf1c9289447715c06f94615a19f | Java | veione/WebFrameByNetty | /src/main/java/com/lianxi/server/StaticRequestHandler.java | UTF-8 | 5,591 | 2.265625 | 2 | [] | no_license | package com.lianxi.server;
import com.lianxi.server.interfs.WebRequestHandler;
import io.netty.buffer.ByteBuf;
import io.netty.channel.DefaultFileRegion;
import io.netty.handler.codec.DateFormatter;
import io.netty.handler.codec.http.*;
import org.apache.tika.Tika;
import java.io.File;
import java.io.IOException;
imp... | true |
67b9f68e47a63a5210a72f661a442f4d17f0f439 | Java | djdwosk97/UIUC | /CS242 - FA16/Poker/src/drawPoker/Deck.java | UTF-8 | 1,081 | 3.4375 | 3 | [] | no_license | package drawPoker;
//SUITS: HEARTS = 0, SPADES = 1, DIAMONDS = 2, CLUBS = 3, joker = 4
//COLORS: RED = 0, BLACK = 1, joker = 2
//Card: Ace (1), 2, 3, 4, 5, 6, 7, 8, 9, 10, jack (11), queen (12), king (13)
//Players: deck = 0, board = 1, players >= 2
public class Deck {
private static Card[] deck;
public static C... | true |
bf7b55d1d8f434df9404dde520da2b3a68457a01 | Java | cracken47/ShaktimanApp | /app/src/main/java/com/alabhya/Shaktiman/utils/AgeCalculator.java | UTF-8 | 796 | 3.28125 | 3 | [] | no_license | package com.alabhya.Shaktiman.utils;
import java.util.Calendar;
public class AgeCalculator {
public AgeCalculator() {
}
public String getAge(String DateOfBirth){
Calendar dob = Calendar.getInstance();
Calendar today = Calendar.getInstance();
int year = Integer.parseInt(DateOfBir... | true |
6c56eb16e23b0102a6ca0fec74df9a307b9aee16 | Java | JenyaKnyazev/coupon-system-part2 | /src/main/java/com/spring/CouponSystempart3/controller/AdminController.java | UTF-8 | 8,985 | 2.28125 | 2 | [] | no_license | package com.spring.CouponSystempart3.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.we... | true |
b14e9e8b03da59d1f2ce0eec692b64561e14ba3a | Java | 2chfl/GeoIP | /src/main/java/com/alexander/geoip/Start.java | UTF-8 | 378 | 1.929688 | 2 | [] | no_license | package com.alexander.geoip;
import com.alexander.geoip.view.MainView;
import javafx.application.Application;
import javafx.stage.Stage;
public class Start extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) {
... | true |
f2ec730ee3a24be7c462cfbfc1e17b529f3dcbd0 | Java | sriragcs/Misc-1 | /problem2/StreamChecker.java | UTF-8 | 1,910 | 3.59375 | 4 | [] | no_license | // Time Complexity : Query -> O(q), q -> Length of query, O(m*n), m -> Number of words, n -> Average length of word
// Space Complexity : Query -> O(q), q -> Length of query, O(m*n), m -> Number of words, n -> Average length of word
// Did this code successfully run on Leetcode : Yes
// Any problem you faced while cod... | true |
b8eb5182bfbb2bacc41e7466465eab8c90e84aa9 | Java | ahsxsk/tsharding | /tsharding-client/src/test/java/com/mogujie/service/tsharding/annotation/SimpleDaoWithAnotationTest.java | UTF-8 | 2,532 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.mogujie.service.tsharding.annotation;
import com.alibaba.fastjson.JSON;
import com.mogujie.trade.tsharding.annotation.parameter.ShardingBuyerPara;
import org.apache.ibatis.annotations.Param;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method... | true |
3321f300b266b265a4e07ea3e3289b76595be02e | Java | jessicaplm/projetoFinalVS | /ProjetoAlimentosSuadaveis/src/com/vidasaudavel/service/SugestaoServiceImpl.java | UTF-8 | 1,151 | 1.9375 | 2 | [] | no_license | package com.vidasaudavel.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.vidasaudavel.dao.SugestaoDAO;
import com.vidasaudavel.model.Sugestao;
@Service
@Transactional(readOnly = true)
public class Suge... | true |
90c554807f790ba59d5ace7408cb4cce56abaa8b | Java | sanjeevan7/Ass2-RecyclingMachine | /44/Week4/src/com/perisic/beds/ReceiptBasis.java | UTF-8 | 1,076 | 3.34375 | 3 | [] | no_license | package com.perisic.beds;
import java.util.Vector;
/**
* The database of the system.
* @author Jake Scott
*
*/
public class ReceiptBasis {
private Vector<DepositItem> myItems = new Vector<DepositItem>();
/**
* adds the item being added to a list of all items in machine
* @param item
*/
pub... | true |
5a62e8943d921d56fcacf29b59bd79619444afcd | Java | alxio/ify | /libs/ifyAPI/src/pl/poznan/put/cs/ify/api/core/ActivityHandler.java | UTF-8 | 2,109 | 2.09375 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2014 if{y} team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | true |
1f165d11c41ac237615835c9d49ae5069aba4307 | Java | zhuangYuFeiHelloGit/whj1103 | /Day56_Mybatis02/src/main/java/com/lanou/dao/impl/UserDaoImpl.java | UTF-8 | 857 | 2.09375 | 2 | [] | no_license | package com.lanou.dao.impl;
import com.lanou.dao.UserDao;
import com.lanou.domain.User;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import java.io.IOException;
import ... | true |
5c05100feeb795bd75af3b0df234c93f83632f40 | Java | arkilis/pyramid | /java/src/com/pyramidframework/sdi/SDIContext.java | GB18030 | 723 | 2.34375 | 2 | [] | no_license | package com.pyramidframework.sdi;
/**
* Ҫתݵݷװһcontext
*
* @author Mikab Peng
* @version 2008-7-26
*/
public class SDIContext {
SDIDocument parent = null; // ĵ
SDIDocument child = null; // õĵ
SDIDocument rule = null; // ̳жĵ
public SDIDocument getParent() {
return parent;
}
public void s... | true |
b47eb1d34b3fb5702601aa7bbe1e0ec1d05917d1 | Java | dwaps/navigation-console | /src/fr/dwaps/business/RepListAction.java | UTF-8 | 222 | 1.765625 | 2 | [
"MIT"
] | permissive | package fr.dwaps.business;
import fr.dwaps.main.ScreenDisplayer;
public class RepListAction extends AbstractAction {
@Override
public void executeAction(ScreenDisplayer displayer) {
displayer.repListScreen();
}
}
| true |
9ff3d0be86353f7deb641e23fecd49185391d0d8 | Java | ImanH1/Jax-person | /src/java/util/Converter.java | UTF-8 | 986 | 2.546875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package util;
import com.google.common.reflect.TypeToken;
import com.google.gson.Gson;
import entity.Person;
import java.uti... | true |
23e951e687bfcbedc72a6a7ebb08d3b6684e001e | Java | atlassian/hazelcast | /hazelcast/src/main/java/com/hazelcast/cache/impl/LatencyTrackingCacheWriter.java | UTF-8 | 2,986 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | true |
acd6e41a9825a300e7a02bb88ffd683689170715 | Java | BongHoLee/Modern_Java | /src/main/java/PrettyPrint.java | UTF-8 | 70 | 2.109375 | 2 | [] | no_license | public interface PrettyPrint {
String prettyPrint(Apple apple);
}
| true |
6fbe94a7087b5ee647b10ce45b84f0e200e8a6b1 | Java | yanbigot/NiFiCustomProc | /nifi-Processors-processors/src/main/java/com/socgen/drgh/processors/Processors/mapper/ObjectAttribute.java | UTF-8 | 549 | 2.078125 | 2 | [] | no_license | package com.socgen.drgh.processors.Processors.mapper;
import java.util.Map;
public class ObjectAttribute extends AbstractAttribute {
private Map<String,AbstractAttribute> attributes;
private String objectName ;
public Map<String, AbstractAttribute> getAttributes() {
return attributes;
}
public void setAttri... | true |
9270c8b2a0dd80bb49fb26e1c947a480f0c38011 | Java | kaleksandrov/social-media-player | /application/app/src/main/java/com/kaleksandrov/smp/model/Model.java | UTF-8 | 367 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.kaleksandrov.smp.model;
/**
* Created by kaleksandrov on 4/25/15.
*/
public class Model {
private int mId;
private String mTitle;
public Model(int id, String title) {
this.mId = id;
this.mTitle = title;
}
public int getId() {
return mId;
}
public Str... | true |
0c07f72c3e0eb126e39bfebae7c03cf5d31a6d60 | Java | Romejanic/jMarch | /src/com/romejanic/jmarch/test/HighDefTest.java | UTF-8 | 1,835 | 2.671875 | 3 | [] | no_license | package com.romejanic.jmarch.test;
import java.awt.Color;
import java.io.File;
import com.romejanic.jmarch.Raymarcher;
import com.romejanic.jmarch.Scene;
import com.romejanic.jmarch.debug.Debug;
import com.romejanic.jmarch.lighting.DirectionalLight;
import com.romejanic.jmarch.lighting.Light;
import com.romejanic.jma... | true |
987f6aa66e462fde4b41dab6026f5469c1207a3e | Java | waLLxAck/Sparta-Global-SortManager | /src/main/java/com/sparta/svilen/Main.java | UTF-8 | 307 | 1.757813 | 2 | [] | no_license | package com.sparta.svilen;
import com.sparta.svilen.start.Starter;
import com.sparta.svilen.utility.FileRetriever;
/**
* Main.java - application starts from here.
* @author Svilen Petrov
* @version 1.0
*/
public class Main {
public static void main( String[] args ) {
Starter.start();
}
}
| true |
2866d50a8180461a969008a118b93980c7d2d331 | Java | incoding/api-usage | /src/main/java/com/javaapi/test/spring/spring/pattern/templatev2/factory/base/BaseResponseDTO.java | UTF-8 | 838 | 2.390625 | 2 | [] | no_license | package com.javaapi.test.spring.spring.pattern.templatev2.factory.base;
public class BaseResponseDTO extends BaseResult {
private static final long serialVersionUID = -6141372643933452297L;
private String traceId;
public BaseResponseDTO() {
}
public String getTraceId() {
return this.trace... | true |
bc95550330bd274dc5022d5ab87284dde275ec7f | Java | nghoang/myPHD | /src/DataStructure/GeneralizedTransactionDataSet.java | UTF-8 | 7,747 | 2.703125 | 3 | [] | no_license | package DataStructure;
import java.util.Collections;
import java.util.Vector;
public class GeneralizedTransactionDataSet {
// Vector<Hashtable<String, Boolean>> itemMatrix = new
// Vector<Hashtable<String, Boolean>>();
Vector<GeneralizedTransaction> records = new Vector<GeneralizedTransaction>();
Vector<Transacti... | true |
e56e6f42452cf1a89c7741f78a27fe3e4d729016 | Java | mr-yhl/javajybc | /day11/src/cn/com/mryhl/demo08_list/Task.java | UTF-8 | 753 | 3.484375 | 3 | [] | no_license | package cn.com.mryhl.demo08_list;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/*
ArrayList是线程不安全的,多个线程一起对ArrayList进行操作有可能会有安全问题
CopyOnWriteArrayList是线程安全的,可以使用它来解决这个问题
*/
public class Task implements Runnable {
//List<Integer> list=new ArrayList<>();
List<Integer> list=new Cop... | true |
d56be655de3b774727a403abd7f3914d7bf313f7 | Java | SUDIP2222/Java-practice | /src/main/java/Java8/SOILD/LiskovSubstitution/Violate/Bicycle.java | UTF-8 | 259 | 2.078125 | 2 | [] | no_license | package Java8.SOILD.LiskovSubstitution.Violate;
public class Bicycle extends Trasportation {
//violate Liskov Substitution Principle
public void startEngine() {
//problem
throw new AssertionError("Bicycle don't have Engine");
}
}
| true |
84c57c8386d51a3be259879ae032f4429fb23fcb | Java | ischelsea/test | /MemokeyBlog/src/entity/Pinlun.java | UTF-8 | 319 | 1.953125 | 2 | [] | no_license | package entity;
public class Pinlun {
private int count;
private int articleid;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public int getArticleid() {
return articleid;
}
public void setArticleid(int articleid) {
this.articleid = articleid;
}
}
| true |
46c982bffcc224cfd47faedbae578c9ceeb00b32 | Java | HIHIroom/getTheJob | /Allen/java/code/rfib/RFIB.java | UTF-8 | 966 | 3.0625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package rfib;
import java.util.Scanner;
/**
*
* @User:Huang Yi
*/
public class RFIB {
/**
* @param args the command lin... | true |
48aa6f6c888b575f38cbcf30c9dd349aa9306189 | Java | Rugal/gracker | /src/test/java/ga/rugal/gracker/core/service/impl/DetailTerminalServiceImplIntegrationTest.java | UTF-8 | 1,141 | 2.03125 | 2 | [] | no_license | package ga.rugal.gracker.core.service.impl;
import javax.annotation.Resource;
import config.TestConstant;
import ga.rugal.IntegrationTestBase;
import ga.rugal.gracker.core.entity.Issue;
import ga.rugal.gracker.core.service.TerminalService;
import lombok.SneakyThrows;
import org.eclipse.jgit.lib.ObjectId;
import org... | true |
348d96eec06079d6eee556b57110ddd5ff052f82 | Java | elithz/leetcode_questions | /src/LeetCodeQuestions/Medium/TopKFrequentElements_m.java | UTF-8 | 1,051 | 3.34375 | 3 | [] | no_license | package LeetCodeQuestions.Medium;
import java.util.HashMap;
import java.util.Map;
import java.util.PriorityQueue;
public class TopKFrequentElements_m {
class Solution {
public int[] topKFrequent(int[] nums, int k) {
// counter, entry map
int[] ans = new int[k];
Map<Inte... | true |
f40c9379546b37d46ad2ed1a29282508dec41b5b | Java | CustomROMs/android_vendor | /st-ericsson/tools/platform/RefMan/test/com/stericsson/RefMan/Toc/TestElementFactory.java | WINDOWS-1250 | 13,141 | 1.859375 | 2 | [] | no_license | /**
* Copyright ST-Ericsson 2010. All rights reserved.
*/
package com.stericsson.RefMan.Toc;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;... | true |
f3a58a02878cbd45afd9fef96b4f303c32f94e55 | Java | wooui/JavaBattleField | /src/com/wooui/mail/SendMailTest.java | UTF-8 | 840 | 2.640625 | 3 | [] | no_license | package com.wooui.mail;
import java.util.Date;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.MimeMessage;
public class SendMailTest {
public static void main(String[] args) {
Properti... | true |
1732fa05d210f2e7f7eb87cc10242b6e4da2917a | Java | XuCpeng/LeetCode_PTA | /JavaCodeSpace/src/cn/medemede/leecode/MinOperations.java | UTF-8 | 1,374 | 3.5625 | 4 | [] | no_license | package cn.medemede.leecode;
import java.util.ArrayList;
import java.util.HashMap;
/**
* 得到子序列的最少操作次数
* <p>
* 转换为最长单调子序列问题,贪心+二分查找
*/
public class MinOperations {
public int minOperations(int[] target, int[] arr) {
HashMap<Integer, Integer> numToIndex = new HashMap<>();
for (int i = 0; i < tar... | true |
4d78446754816dbf316bde8143d7acd06b14eed8 | Java | pinky07/EmployeeAppraisal | /src/test/java/com/gft/employeeappraisal/helper/builder/model/EmployeeEvaluationFormAnswerBuilder.java | UTF-8 | 3,353 | 2.546875 | 3 | [] | no_license | package com.gft.employeeappraisal.helper.builder.model;
import com.gft.employeeappraisal.helper.builder.ObjectBuilder;
import com.gft.employeeappraisal.model.EmployeeEvaluationForm;
import com.gft.employeeappraisal.model.EmployeeEvaluationFormAnswer;
import com.gft.employeeappraisal.model.EvaluationFormTemplateXSectio... | true |
0e32351a9e096a5e5dfcd0069d36e47881081489 | Java | chdryra/Startouch | /src/main/java/com/chdryra/android/startouch/ApplicationPlugins/PlugIns/PersistencePlugin/SQLiteFirebase/LocalReviewerDb/SqLiteDb/Implementation/FactoryTransactorSqLite.java | UTF-8 | 1,174 | 2.078125 | 2 | [] | no_license | /*
* Copyright (c) Rizwan Choudrey 2016 - All Rights Reserved
* Unauthorized copying of this file via any medium is strictly prohibited
* Proprietary and confidential
* rizwan.choudrey@gmail.com
*
*/
package com.chdryra.android.startouch.ApplicationPlugins.PlugIns.PersistencePlugin.SQLiteFirebase
.LocalR... | true |
768c20e376336e8a9a445d5e6513321dfedbfc9f | Java | IlknurAslan/KayipBulMobil | /Kanpaylasmaproje/app/src/main/java/com/example/asus/kanpaylasmaproje/InsanKayipListe.java | UTF-8 | 3,652 | 2.015625 | 2 | [] | no_license | package com.example.asus.kanpaylasmaproje;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.widget.ListView;
import android.widget.Toast;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.d... | true |
0764d7779a6351f391de6fcea6223b3513f381b3 | Java | SunWen991/pc | /web/src/main/java/com/heidian/reptile/WeiBoArticleProcessor.java | UTF-8 | 2,661 | 1.648438 | 2 | [] | no_license | package com.heidian.reptile;
import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.Site;
import us.codecraft.webmagic.processor.PageProcessor;
import java.util.List;
/**
* @author :SunWen
* @date :Created in 2019/12/19 18:25
* @description:微博文章
* @modified By:
* @version: 1.0.0$
*/
public class WeiBo... | true |
51abf95a3aa36b3ce2d536b7b3f962fa472d3e1a | Java | YezenRashid/Coding-Problems | /Knights Tour (Java)/Optimized with a Chess Board/HorseVisit.java | UTF-8 | 2,971 | 3.53125 | 4 | [] | no_license | import java.util.*;
public class HorseVisit {
public static final int SIZE = 5;
private Tile[][] chessBoard = new Tile[SIZE][SIZE];
public class Tile {
boolean visited;
int col;
int row;
Tile() {
col = 0;
row = 0;
visited = false;
}
Tile(int col, int row, boolean visited) {
this.col ... | true |
5379b9bb6be0b723fbcadd4477b5e06d0a1916cb | Java | developeratdaguanyuan/ikkyu | /utils/nlp/src/main/java/nlp/tokenizer/EnglishTokenizer.java | UTF-8 | 1,059 | 3.0625 | 3 | [] | no_license | package nlp.tokenizer;
import java.io.IOException;
import java.io.StringReader;
import java.util.LinkedList;
import java.util.List;
import edu.stanford.nlp.ling.CoreLabel;
import edu.stanford.nlp.process.CoreLabelTokenFactory;
import edu.stanford.nlp.process.PTBTokenizer;
public class EnglishTokenizer {
public sta... | true |
90e45dafbbad988cb1c6308902d3457c232cad77 | Java | sergeylukichev/JavaCourse | /Drafts/project-tracker/src/main/java/com/telran/project/tracker/repository/UserSessionRepository.java | UTF-8 | 321 | 1.890625 | 2 | [] | no_license | package com.telran.project.tracker.repository;
import com.telran.project.tracker.model.entity.UserSession;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserSessionRepository extends JpaRepository<UserSession, Long> {
UserSession findBySessionIdAndIsValidTrue(String sessionId);
}... | true |
32618ae19efd8758827e6760afb113780dce3f0e | Java | stefanjcollier/ThirdYearProject | /test/sjc/dissertation/retailer/state/quality/QualityTest.java | UTF-8 | 7,990 | 3.234375 | 3 | [] | no_license | package sjc.dissertation.retailer.state.quality;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Set;
import org.junit.Test;
public class QualityTest {
final double HIGH_QU... | true |
cbbbc7975cb883e277dbe3400960c455909c57f7 | Java | brunoSS07/aula-2-JAVA | /aula09/exemplos/Exemplo02.java | UTF-8 | 581 | 3.390625 | 3 | [] | no_license | package exemplos;
import java.util.ArrayList;
public class Exemplo02 {
//public boolean ativar(int p){
// return p > 1;
//}
public static void main(String[] args) {
ArrayList<Integer> lista = new ArrayList<>();
lista.add(1);
lista.add(2);
lista.add(3);
... | true |
1907d8b91b089e0d3e69b3ec51c373466b6f3659 | Java | qiu2421653/AndroidProject | /MyApplication/app/src/main/java/com/qiu/retrofit/view/activity/WallPaperActivity.java | UTF-8 | 1,422 | 1.859375 | 2 | [] | no_license | package com.qiu.retrofit.view.activity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.CompoundButton;
import com.qiu.retrofit.R;
import com.qiu.retrofit.core.service.VideoLiveWallpaper;
import com.qiu.retrofit.presenter.BasePresenter;
import com.qiu.retrofit.view.activity.b... | true |
9730e5fd51d496387d448242fd4c41afd1d7cb8e | Java | Xzhou556/amhs | /src/main/java/amhs/amhs/dao/RoleMenuDao.java | UTF-8 | 1,374 | 2.21875 | 2 | [] | no_license | package amhs.amhs.dao;
import amhs.amhs.entity.Role;
import amhs.amhs.entity.RoleMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.rep... | true |
a773e566746d2b457f68edb455d5ed65f9f8af1f | Java | mcfloonyloo/EInvVatOutcoming | /src/by/gomelagro/outcoming/gui/frames/count/ILoadCount.java | UTF-8 | 283 | 1.640625 | 2 | [] | no_license | package by.gomelagro.outcoming.gui.frames.count;
public interface ILoadCount extends ICount {
public void addBaseCount();
public void addMissCount();
public void addErrorCount();
public int getBaseCount();
public int getMissCount();
public int getErrorCount();
}
| true |
4469f9e0a21c924c57e72987cef4887a5b947bcd | Java | Franklin2412/Laminin | /apkToolexipiry/working/libs/classes-dex2jar/com/payu/india/Model/StoredCard.java | UTF-8 | 5,360 | 2.09375 | 2 | [] | no_license | package com.payu.india.Model;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
public class StoredCard implements Parcelable {
public static final Creator<StoredCard> CREATOR;
private String cardBin;
private String cardBrand;
private String cardMode;
pr... | true |
77787837e53d44d03731bdb819ee5f2e3a307796 | Java | KnnethKong/BaseMvp | /app/src/main/java/com/base/welcome/WelcomeActivity.java | UTF-8 | 1,804 | 2.140625 | 2 | [] | no_license | package com.base.welcome;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import com.base.mvp.R;
/**
* Creat... | true |
c6f73cd37d87a38957398d7518c0a071c310a330 | Java | favorit72/appium-androidTests | /src/test/java/javaTests/pageObjects/DemoPage.java | UTF-8 | 634 | 1.84375 | 2 | [] | no_license | package javaTests.pageObjects;
import helpers.DriverWait;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.pagefactory.AndroidFindBy;
public class DemoPage extends DriverWait {
public DemoPage(AndroidDriver androidDriver) {
super(... | true |
a829e6bc1b024c1c50e02baf8c503de2e6fd9dc3 | Java | fanok1/AudioBooks | /app/src/main/java/com/fanok/audiobooks/interface_pacatge/books/GenreModel.java | UTF-8 | 263 | 1.898438 | 2 | [] | no_license | package com.fanok.audiobooks.interface_pacatge.books;
import com.fanok.audiobooks.pojo.GenrePOJO;
import java.util.ArrayList;
import io.reactivex.Observable;
public interface GenreModel {
Observable<ArrayList<GenrePOJO>> getBooks(String url, int page);
}
| true |
0947112cd810a8cc61ec33e3073ae1a2cac794a8 | Java | Yahayawebmaster/StatusSaver-1 | /app/src/main/java/com/collabcreation/statussaver/Activity/InstaStory.java | UTF-8 | 1,412 | 2.078125 | 2 | [] | no_license | package com.collabcreation.statussaver.Activity;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.collabcreation.statussaver.Adapte... | true |
1c3c8708d713bf10e66215046f5b85af823d99b0 | Java | brunoarakaki/mensageiro-p2p | /app/src/main/java/com/poli/usp/whatsp2p/data/local/Contact.java | UTF-8 | 2,628 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.poli.usp.whatsp2p.data.local;
import android.content.Context;
import com.poli.usp.whatsp2p.utils.exceptions.ContactNotFoundException;
import com.poli.tcc.dht.DHT;
import java.io.IOException;
import java.io.Serializable;
import java.security.PublicKey;
/**
* Created by Bruno on 14-Aug-17.
*/
public cl... | true |
cee45d5145b2cf5b262fc6ab7d0182fc96cd8d62 | Java | livinglh/leetcode_record | /src/笔试题/网易8_8/Main3.java | UTF-8 | 2,225 | 3.640625 | 4 | [] | no_license | package 笔试题.网易8_8;
import java.util.Scanner;
/*
给了 n 个物品和它对应的价值。可以舍弃一部分物品,要两个人平分这些物品(数量可以不一样,价值总和要一样),问最少舍弃多少价值。
*/
public class Main3 {
static int min = Integer.MAX_VALUE;
static int sum = 0;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt(... | true |
0f751ed3e816640898dfa201f9e1006fb1752071 | Java | spartan2015/jpajsf | /proiectCap2/src/proiectCap2/Main.java | UTF-8 | 495 | 2.640625 | 3 | [] | no_license | package proiectCap2;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
//1 catalog
Catalog catalog = new Catalog(1, "Catalog 2011");
//2produse
Categorie categorie1 = new Categorie(1, "Software", null);
Categorie categorie2 =new Categorie(2, "Hardware", null)... | true |
62fb0cc2216b0beaa963b148926c39664754bd04 | Java | tss0823/mnote | /mnote-service/src/main/java/com/loong/mnote/service/SubPubMessageConsumeService.java | UTF-8 | 1,087 | 1.984375 | 2 | [] | no_license | package com.loong.mnote.service;
import com.loong.mnote.common.constants.SubPubConstants;
import com.loong.mnote.service.component.AuthComponent;
import com.loong.mnote.service.component.SystemConfigComponent;
import com.loong.mnote.service.component.redis.SubPubMessage;
import com.loong.mnote.service.component.redis.... | true |
7649b54b893e84c9748d7290540686faae033b07 | Java | luoxiao5566/basic-api-implementation | /src/test/java/com/thoughtworks/rslist/UserControllerTest.java | UTF-8 | 6,223 | 2.171875 | 2 | [] | no_license | package com.thoughtworks.rslist;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.thoughtworks.rslist.domain.User;
import com.thoughtworks.rslist.po.UserPo;
import com.thoughtworks.rslist.repository.UserRepository;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org... | true |
5a46179042dddd0c5c17aa977b04deb5cfa5fbd5 | Java | NamanAgg/pep_foundation | /src/LEVEL_UP/advanceLinkedList/mergeSort.java | UTF-8 | 2,545 | 3.984375 | 4 | [] | no_license | //*******Mergesort Linkedlist
// Given the head of a linked list, return the list after sorting it in increasing order.
// Time Complexity : O(nlogn)
// Space Complexity : constant space
// Input Format
// 1->7->2->6->3->5->4->null
// Output Format
// 1->2->3->4->5->6->7->null
// Constraints
// 0 <= N <= 10^6
// Sampl... | true |
847e32295ab6937b02d0e7b2b1365004710aad62 | Java | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/arc085/A/1765519.java | UTF-8 | 471 | 3.03125 | 3 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
double x = 0;
int y = 0;
if(n-m>0){
y = (n-m)*100;
}
double k = Math.pow(2, m);
double p,q;
p=1-1/k;
for(in... | true |
08e627561d533a470e6a03205edf9f5f53fe6ef8 | Java | BGCX261/zpi-4-svn-to-git | /trunk/rozpoznawanie_wzorca/src/uslugi/AuthorizationService.java | UTF-8 | 2,525 | 2.71875 | 3 | [] | no_license | package uslugi;
import java.util.ArrayList;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import autoryzacja.AuthorizationMethod;
import baza_danych.model.Uzytkownik;
import com.google.inject.Inject;
import com.google.inject.name.Named;
im... | true |
e12d664f6e5bbf9ebd0573d328b13b95e59eb907 | Java | kyungsubbb/Coding-Test | /Baekjoon/Java/1759.java | UTF-8 | 1,509 | 2.9375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class BOJ_1759 {
static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer st;
static int L, C;
static String[] output, arr;
static boole... | true |
84d1cf28b67cfc12b6023c8d2e628347b3327c7c | Java | przsul/Reflections-Java | /src/main/java/pl/edu/utp/wtie/ControlCreator.java | UTF-8 | 3,084 | 2.625 | 3 | [] | no_license | package pl.edu.utp.wtie;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.LinkedH... | true |
c4de3a35c8b8c492afcae8f93a8d9d34b29bdb6e | Java | Corginator4000/FleshCraft | /src/main/java/com/Corginator4000/fleshcraft/library/registration/ItemDeferredRegister.java | UTF-8 | 1,689 | 2.328125 | 2 | [] | no_license | package com.Corginator4000.fleshcraft.library.registration;
import com.Corginator4000.fleshcraft.library.mantle.registration.object.ItemObject;
import net.minecraft.item.Item;
import net.minecraft.util.IStringSerializable;
import net.minecraftforge.registries.ForgeRegistries;
import java.util.function.BiFunction;
imp... | true |
164bea3a51f4b9f1555db2520a97e02e5b188b1f | Java | Krelix/spring_file_injector | /src/main/java/com/github/krelix/storage/StorageService.java | UTF-8 | 3,407 | 2.40625 | 2 | [] | no_license | package com.github.krelix.storage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.ht... | true |
12c9207e9d5cf1741eee577791ddb56a81777898 | Java | katejay/Selenium-Exercise | /EndToEnd/EndToEnd + Cucumber/EndToEnd/src/test/java/stepDefinations/StepDefination.java | UTF-8 | 1,532 | 2.390625 | 2 | [] | no_license | package stepDefinations;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
import endtoend.pageobject.HomePage;
import endtoend.pageobject.LoginPage;
import endtoend.resources.Browser;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.And;
public class StepDefination extends Browser {
... | true |
0c32863e5822adbc6238a08b992d6a169902c4d0 | Java | bhumikamarolia/Algo_dsa_cc | /BitManipulation/HammingDistance.java | UTF-8 | 630 | 3.75 | 4 | [] | no_license | package demo;
/*
* The Hamming distance between two integers is the number of positions at which the corresponding bits are different.
Given two integers x and y, return the Hamming distance between them.
Example 1:
Input: x = 1, y = 4
Output: 2
Explanation:
1 (0 0 0 1)
4 (0 1 0 0)
↑ ↑
The above arrows p... | true |
d7c4858e3f5b8821d8a99df35d89efddf9fe4053 | Java | yuanchengprojectteam/mailMgr | /mailMgr/src/main/java/com/yc/mailMgr/dao/OrderBy.java | UTF-8 | 955 | 1.757813 | 2 | [] | no_license | package com.yc.mailMgr.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.yc.mailMgr.bean.Goods;
import com.yc.mailMgr.bean.OrderdetailsOderBy;
public interface OrderBy {
@Select("select count(gid)as gnum , gid from orderdeta... | true |
4b2b2a29452747c9e172a67183fc2c73fad09a11 | Java | nOy39/Address-Book-v2.0 | /src/main/java/dao/ConnectDB.java | UTF-8 | 513 | 2.5 | 2 | [] | no_license | package dao;
import helpers.Constant;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectDB {
public Connection connect() {
Connection connection = null;
try {
connection = DriverManager.getConnection(Constant.getURL(),
... | true |
3edc2ef44cd5c359f27e492dc45d3ebf3017f9d9 | Java | LemonTea387/Chat-Client | /src/client/network/ClientConnection.java | UTF-8 | 4,100 | 2.734375 | 3 | [] | no_license | package client.network;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.... | true |
367a067f56bf7ae98e26e6ff630fb8ba330cc558 | Java | SchweitzerGAO/OlympicGames | /src/test/moduletest/StrategyTest.java | UTF-8 | 1,333 | 3.40625 | 3 | [] | no_license | package test.moduletest;
import com.team.olympics.athlete.Athlete;
import com.team.olympics.athlete.AmericanAthleteFactory;
import com.team.olympics.athlete.Sleep;
/**
* @author Wu Fei
* @description the test class for strategy pattern
* @date 2021/11/2
*/
public class StrategyTest {
public static void strat... | true |
4a0e1ab5c7595b83f0caa3ec54e891a2ce43cf86 | Java | BhavsarMeet/studentmanagingapp | /src/main/java/com/controller/student/AddStudentController.java | UTF-8 | 2,575 | 2.4375 | 2 | [] | no_license | package com.controller.student;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.xml.ws.Response;
import com.bean.stu... | true |
772fa21982fc3580145821c1342f93846419a888 | Java | Darshitkuwadia/CloudAPM | /apm/src/main/java/edu/sjsu/cmpe295/dto/ApplicationMetrics.java | UTF-8 | 15,812 | 2.203125 | 2 | [] | no_license | package edu.sjsu.cmpe295.dto;
import java.io.StringReader;
import javax.ws.rs.core.MultivaluedMap;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.codehaus.jettison.Node;
import org.json.JSONObject;
import org.json.XML;
import org.w3c.dom.Do... | true |
7ff9013521e07c008b6e83d42b616654f2c7f81a | Java | artvinicius/EstruturaDeDados | /src/com/arthur/estruturadados/vetor/teste/curso/Aula12.java | ISO-8859-1 | 1,041 | 3.8125 | 4 | [] | no_license | package com.arthur.estruturadados.vetor.teste.curso;
import java.util.ArrayList;
public class Aula12 {
public static void main(String[] args) {
ArrayList<String> arrayList = new ArrayList();
arrayList.add("A");
arrayList.add("C");
System.out.println(arrayList);
arrayList.add(1, "B");
System.out.pri... | true |
7dbe40deace44bba0ff4418e9cfa2473e85608fd | Java | AnuKrithiga/EmployeeAttendance | /getDataFroomDB/src/getDataFroomDB/check.java | UTF-8 | 679 | 2.5 | 2 | [] | no_license | package getDataFroomDB;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class check {
public static boolean verify(String n)
{
boolean status=false;
System.out.println(n);
try{
Class.forName("com.mysql.jdbc.Driver");
Connec... | true |
a718cd9346beab12574ef1a35d7623ca6f3aea2a | Java | coderjia0618/basic-study | /src/main/java/cn/coderjia/netty/action/Client.java | UTF-8 | 1,655 | 2.421875 | 2 | [] | no_license | package cn.coderjia.netty.action;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;... | true |
ee5deb50b70c4821a64ed62165140c6cd2e82464 | Java | netty/netty | /transport/src/main/java/io/netty/channel/socket/nio/NioDatagramChannel.java | UTF-8 | 22,122 | 1.6875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"CC-PDDC",
"BSD-3-Clause",
"APSL-2.0",
"MIT"
] | permissive | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | true |
fbb2c2a8b59e2f763beb060b0df24d3a3ff58f3e | Java | dikshya321/Emenu | /emenu/src/main/java/com/ncit/emenu/repository/OrderItemRepo.java | UTF-8 | 433 | 1.9375 | 2 | [] | no_license | package com.ncit.emenu.repository;
import java.util.List;
import com.ncit.emenu.model.Item;
import com.ncit.emenu.model.OrderItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface OrderItemRepo extends JpaReposito... | true |
0649fd24f7cdbdaae69c0285d0801ef7d863411f | Java | ncontrerasn/AFD | /AFD/src/CadenaAFD.java | UTF-8 | 2,298 | 3.3125 | 3 | [] | no_license | import java.util.ArrayList;
public class CadenaAFD {
/*
clase que calcula el camino que debe cruzar una cadena de prueba en el AFD.
calcula el tiempo que tarda en procesar la cadena en la variable tiempo.
llena el array orden que guarda las posciones de los estados que tiene que atravesar.
*/
A... | true |
4f1864867baae191a03f3926a0592f7e9160225f | Java | visautomates/seleniummavenframework | /src/test/java/utilities/BaseClass.java | UTF-8 | 2,343 | 2.09375 | 2 | [] | no_license | package utilities;
import java.io.File;
import java.io.IOException;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Ac... | true |
25141c8764d6007deb8c298772555c485a791f37 | Java | vmj/skew-consumer | /skew-consumer-app/src/main/java/fi/linuxbox/skew/consumer/app/Boot.java | UTF-8 | 1,159 | 2.234375 | 2 | [] | no_license | package fi.linuxbox.skew.consumer.app;
import org.apache.webbeans.config.*;
import org.apache.webbeans.spi.*;
import org.slf4j.*;
/**
*
*/
public class Boot
{
public static void main(final String[] args) throws InterruptedException
{
final ContainerLifecycle containerLifecycle = WebBeansContext.curr... | true |
44f3ec51c9f10abcdc93084e396fef52ee380059 | Java | guilherme-dev/tap-trabalho-ru | /src/model/entity/Ingredient.java | UTF-8 | 1,095 | 2.953125 | 3 | [] | no_license | /**
*
*/
package model.entity;
import java.io.Serializable;
import model.dao.*;
/**
* @author ana araujo, guilherme santos
*
*/
public class Ingredient implements Serializable {
private String name;
private int calories;
private int quantity;
public Ingredient() {
this.name = "";
this.calories = 0;
... | true |
1dabe9624bc2f6d12a92b59354fad94b539df553 | Java | trebaud/FunkBaz | /src/baz/TreeVisualizer.java | UTF-8 | 1,485 | 3.046875 | 3 | [] | no_license |
package baz;
import java.util.*;
import baz.syntax.analysis.*;
import baz.syntax.node.*;
public class TreeVisualizer
extends DepthFirstAdapter {
private HashMap<Node, Integer> ids = new HashMap<Node, Integer>();
int nextID = 1;
@Override
public void inStart(
Start node) {
... | true |
de1d601d6e9fad9b13c046a89dafa88504327bda | Java | swings134man/java_project | /day12/src/배열/이차원배열2.java | UTF-8 | 719 | 3.703125 | 4 | [] | no_license | package 배열;
public class 이차원배열2 {
public static void main(String[] args) {
int[] arr1 = new int[3];
int[] arr2 = new int[5];
int[] arr3 = new int[4];
int[][] arrList = new int[3][]; //정방형이 아니라 열을 지정해줄수 없음.
arrList[0] = arr1 ; //열의 갯수가 다르다면 1차원으로 만들어서 대입.
arrList[1] = arr2 ;
arrList[2] = arr3... | true |
a056e3fa2cc94a3e72d482a0c8505e93f90ae47e | Java | hartmga/java-exercises | /src/main/java/com/hcl/accounts2/SavingsAccount.java | UTF-8 | 1,303 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | package com.hcl.accounts2;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter(AccessLevel.PROTECTED)
public class SavingsAccount extends BankAccount {
public static final Logger logger = LogManag... | true |
c7bc1a182730ac226c98dcf773993cb2fd2518e4 | Java | alexace013/test_items | /tasks/src/hw2/university/Student.java | UTF-8 | 1,547 | 3.9375 | 4 | [] | no_license | package hw2.university;
/**
* Студент
поля:
Имя
Адрес
Предметы
методы:
учиться
добавить предмет
удалить предмет из списка последний
показать всю информацию о предметах
получить средний бал за все предметы
*/
public class Student {
private String name;
private String address;
private Subject[]... | true |
4a27f1d5830ead0cedbbb1d56c5aa34d012bc9b1 | Java | ernestpascual/progap3 | /PostMidtermActivity/src/LoginCategoryServlet.java | UTF-8 | 1,318 | 2.296875 | 2 | [] | no_license |
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class LoginCategoryServlet
*/
@WebServlet(... | true |
e354c2de62f79eb53d67cb1ac71a818f792c1460 | Java | Dxita/Booze | /app/src/main/java/com/sky21/liquor_app/Login/LoginActivity.java | UTF-8 | 5,181 | 1.992188 | 2 | [] | no_license | package com.sky21.liquor_app.Login;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.wi... | true |
9630affd40dd897f7fd641ca62cad899ad010199 | Java | kuanglongwokong/UserManagementSystem | /src/main/java/com/qubo/learning/rest/controller/BBSController.java | UTF-8 | 5,341 | 2.171875 | 2 | [] | no_license | package com.qubo.learning.rest.controller;
import com.qubo.learning.common.model.SysPost;
import com.qubo.learning.common.model.SysReply;
import com.qubo.learning.common.model.SysUser;
import com.qubo.learning.common.service.PostDao;
import com.qubo.learning.common.service.UserDao;
import org.springframework.beans.fac... | true |