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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1ce0e6302677d248ad6d4fe96becc0fac906a900 | Java | JPitkala/Ohjelmointiharkka | /src/servlet/TilausServlet.java | ISO-8859-1 | 6,125 | 2.421875 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servle... | true |
9346882b668560f28c51a4dd070b2698d75d16d2 | Java | adityanjr/code-DS-ALGO | /Problems in Java/medium/WidthOfBinaryTree.java | UTF-8 | 669 | 3.453125 | 3 | [
"MIT"
] | permissive | package problems.medium;
import problems.utils.TreeNode;
/**
* Created by sherxon on 3/5/17.
*/
/**
* Diameter of binary tree
*/
public class WidthOfBinaryTree {
public int width(TreeNode root) {
if (root == null) return 0;
int heightLeft = height(root.left);
int heightRight = heigh... | true |
a50d8b159e44500ec47c6afcec293e65d5b3b4c3 | Java | longshihan1/Thread | /src/ltttcode/zhan/Testzhan2.java | UTF-8 | 1,356 | 3.6875 | 4 | [] | no_license | package ltttcode.zhan;
import java.util.Stack;
/**
* 仅用递归函数和栈操作逆序一个栈
* 一个栈一次压入了1、2、3、4、5,那么从栈顶到栈底分别为5、4、3、2、1.将这个栈转置后,
* 从栈顶到栈底为1、2、3、4、5,也就是实现栈中元素的逆序,但是只能用递归函数来实现,不能用其他数据结构。
* Created by dell on 2017/3/3.
*/
public class Testzhan2 {
public static class Stacket {
private Stack<Integer> stack;
... | true |
9859ccbbcb74c7e3563350d60a71bf499782e16c | Java | hikyoumono/test | /ecsite/src/dao/BuyItemCompleteDAO.java | UTF-8 | 538 | 2.171875 | 2 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import util.DBConnector;
import util.DateUtil;
public class BuyItemCompleteDAO {
private DBConnector db =new DBConnector();
private Connection con =db.getConnection();
private DateUtil dateUtil =new DateUtil();
pr... | true |
13cd4bf56839b4e762d3d45e935e32eedec81e43 | Java | chenyaowu/dcwj | /Dcwj/src/cc/mixin/domain/UserShowBean.java | UTF-8 | 1,362 | 2.0625 | 2 | [] | no_license | package cc.mixin.domain;
import java.math.BigDecimal;
import java.math.BigInteger;
public class UserShowBean implements Comparable<UserShowBean> {
private Integer teaId;
private String teaName;
private String className;
private String courName;
private BigDecimal score;
private int num1;
private int num2;
... | true |
a1193de510c38a5c3eb23bf96e60a7fc04e24280 | Java | zengsn/jwebtop-core | /src/sts/src/main/java/org/jwebtop/core/dao/orm/HibernateProfileDao.java | UTF-8 | 1,182 | 2.140625 | 2 | [] | no_license | /**
*
*/
package org.jwebtop.core.dao.orm;
import java.util.Date;
import org.jwebtop.core.dao.ProfileDao;
import org.jwebtop.core.model.Profile;
import org.zengsource.util.spring.dao.orm.HibernateDaoTemplate;
/**
* @author Zeng Shao-Ning
* @since 6.0
*/
public class HibernateProfileDao extends... | true |
91898a1a6e324ff5944336669a99d48202b30f68 | Java | oussemaAr/YoutubeApi | /app/src/main/java/com/android/youtubeapi/adapters/VideosAdapter.java | UTF-8 | 2,027 | 2.34375 | 2 | [] | no_license | package com.android.youtubeapi.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.android.youtubeapi.R;
import com.android.youtubeapi.mo... | true |
656cd64f7c327feb6bd721aba7d133c5ab5b1155 | Java | davidgh86/buildAWallOO | /src/main/java/Wall.java | UTF-8 | 2,409 | 3.359375 | 3 | [] | no_license | import Exceptions.IncorrectNumberOfBricksException;
import Exceptions.IncorrectNumberOfRowsException;
import Exceptions.MaximumNumberOfBricksExceded;
import java.util.ArrayList;
import java.util.List;
public class Wall {
public static final int MAXIMUM_NUMBER_OF_BRICKS = 1000;
private List<RowOfBricks> rowsO... | true |
c7a8c4932aaa5f389584617c1f04bc708a087532 | Java | ANAHUIN/SoftIT | /Victor-Sesion1/src/edu/victor/service/NivelService.java | UTF-8 | 342 | 1.75 | 2 | [] | no_license | package edu.victor.service;
import java.util.List;
import edu.victor.jpa.NivelJPA;
public interface NivelService {
public abstract String eliminarNivel(NivelJPA objNJPA )throws Exception;
public abstract List<NivelJPA> listaNivel()throws Exception;
public abstract String altaNivel(NivelJPA objNJPA )th... | true |
16a3d0074c5238147094289bbe4519338b9a4659 | Java | sethmcallister/Calculator | /calculator/src/main/java/uk/co/sethy/calculator/dto/Operator.java | UTF-8 | 474 | 2.84375 | 3 | [] | no_license | package uk.co.sethy.calculator.dto;
public enum Operator {
DIV,
ADD,
SUB,
MULT,
SQUARE;
public static Operator findByCode(char c) {
switch (c) {
case '/':
return DIV;
case '+':
return ADD;
case '-':
ret... | true |
59af48ef836510e3b338c49f3c29c7a888c64c0e | Java | sshling/trade-center | /src/main/java/cn/shaolingweb/rml/tradecenter/domain/auth/Role.java | UTF-8 | 366 | 1.695313 | 2 | [] | no_license | package cn.shaolingweb.rml.tradecenter.domain.auth;
import lombok.Data;
import java.util.Date;
@Data
public class Role {
private Integer id;
private String name;
private String srcIds;
private String desId;
private Integer type;
private String desc;
private String creator;
private Dat... | true |
4e4efe7c6c63a4b8ede9f2ec01076fec6862cc49 | Java | seven927/IndoorDB | /src/com/example/indoordb/Landmarks.java | UTF-8 | 470 | 2.25 | 2 | [] | no_license | package com.example.indoordb;
import java.util.HashMap;
import java.util.Map;
import com.google.android.gms.maps.model.Marker;
public class Landmarks {
private Map<String,Marker> markers;
public Landmarks(){
markers = new HashMap<String, Marker>();
}
public void addMarker(String id, Marker ... | true |
f88c43789dbc6a4463efb920bcd2f6571a25d482 | Java | SrikanthGadde/MaGE-JavaFS | /Week-1/Aug27/Demos/CustomDefinedExceptionDemo/src/com/telstra/exceptions/Main.java | UTF-8 | 518 | 2.71875 | 3 | [] | no_license | package com.telstra.exceptions;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Employee e = new Employee(7823, 12);
try {
System.out.println(e.applyLeave(10));
} catch (InsufficientLeaveException e1) {
// TODO Auto-generated catch block
e1.printSta... | true |
951e9553372a10ec3a023ca0e1a0927f17242dc9 | Java | 294945339/p2s | /src/main/java/com/example/modules/goods/dao/GoodsDAO.java | UTF-8 | 826 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package com.example.modules.goods.dao;
import com.example.modules.goods.domain.GoodsDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author: dj
* @create: 2019-12-16 13:22
* @description:
*/
@Repository
public interf... | true |
1baaadddfcfad11b70069c945cf648b040c89b2a | Java | edgeowner/redscarf | /redscarf-pay/pay-common/src/main/java/com/baiye/redscarf/pay/wechat/WechatPayResponse.java | UTF-8 | 819 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.baiye.redscarf.pay.wechat;
import com.baiye.redscarf.pay.constant.WechatPayConstants;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author 白也
* @date 2021/1/20 11:34 上午
*/
@Data
@ToString(callSuper = true)
@Equal... | true |
fed594ed2db77844374947897e28e46cda23d977 | Java | xiangxianghuang/communicate_app | /communicate_app/src/main/java/com/yongyida/robot/communicate/app/client/Receivers.java | UTF-8 | 768 | 2.40625 | 2 | [] | no_license | package com.yongyida.robot.communicate.app.client;
import android.content.Context;
import java.util.HashMap;
/**
* Created by HuangXiangXiang on 2017/11/29.
*/
public class Receivers {
private Context context ;
private String action ;
Receivers(Context context, String action){
this.context =... | true |
e3c21f99e43a6c42efcab4b5db44447d2539b9af | Java | MahApp/Pfi2Project15 | /Pfi2Project15/src/se/mah/k3/pfi2/project/kronox/ParserUpdateThread.java | UTF-8 | 1,017 | 2.609375 | 3 | [] | no_license | package se.mah.k3.pfi2.project.kronox;
import javax.swing.JPanel;
public class ParserUpdateThread extends Thread {
/**
*
*
*
*
*
*
* */
KronoxPanel kronoxPanel;
final int parserRefreshInterval=30;
int refreshRate = parserRefreshInterval * 1000;
private volatile boole... | true |
67b1fa74267c0baa98d5e520100033742ec9a071 | Java | MikeB32/Room1 | /app/src/main/java/com/task/room/model/Result.java | UTF-8 | 953 | 2.046875 | 2 | [] | no_license | package com.task.room.model;
import com.google.gson.annotations.SerializedName;
public class Result {
@SerializedName("sectionName")
private String sectionName;
@SerializedName("webTitle")
private String webTitle;
@SerializedName("webUrl")
private String webUrl;
... | true |
10724535b2e15038905bb9dc199820035f0f5057 | Java | wanxin0001/Problem_Practice | /Frequent Questions/Set_Map_Traversal/HashSet_Traversal.java | UTF-8 | 559 | 3.65625 | 4 | [] | no_license | import java.util.*;
public class HashSet_Traversal {
public static void main (String[] args) {
Set<String> set = new HashSet<String>();
set.add("f");
set.add("a");
set.add("b");
set.add("c");
set.add("d");
set.add("e");
set.add("e");
for (Iterator<String> iterator = set.itera... | true |
80c8ae432e0edb92f7943393a4380879f34a1e3b | Java | Nkeoualionel/Bwala | /app/src/main/java/com/lionelnkeoua/com/bwala/view/fragment/youlou/PresidentQuestionBank.java | UTF-8 | 2,950 | 2.40625 | 2 | [] | no_license | package com.lionelnkeoua.com.bwala.view.fragment.youlou;
/**
* Created by Lionel on 25/08/2018.
*/
public class PresidentQuestionBank {
public String[] mPresidentsQuestion= {
"1- Quel est ce président congolais qui fut prète, maire et député avant de devenir président de la republique ?",
... | true |
6fc5e12693760a3474859f8a06ad27312b71d975 | Java | Matzkee/TeamProject | /Source_Code/AndroidApp/Server/NCT/src/com/nct/net/Login.java | GB18030 | 6,206 | 2.421875 | 2 | [] | no_license | package com.nct.net;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.htt... | true |
14875bb9322078cb9718905f3182d4e4f3b687b0 | Java | timsanwald/CoWolf | /de.uni_stuttgart.iste.cowolf.model.lqn/src/de/uni_stuttgart/iste/cowolf/model/LqnCore/EntryActivityDefType.java | UTF-8 | 5,416 | 1.757813 | 2 | [] | no_license | /**
*/
package de.uni_stuttgart.iste.cowolf.model.LqnCore;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.util.FeatureMap;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Entry Activity Def Type</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following fea... | true |
1a2edc9fd672bf5a8d963656f2e799c146910046 | Java | SakinahYunus/PP2019 | /H071191046/Tugas Praktikum 3/Modul4.java | UTF-8 | 1,356 | 3.5 | 4 | [] | no_license | import java.util.Scanner;
class Modul04 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Harga barang = " );
int hargaBarang = sc.nextInt();
System.out.print("Bayar = ");
int bayar = sc.nextInt();
int kembalian = bayar-... | true |
22e412e3650c3d07775340487de5023a25130631 | Java | appyuyi/ViewPagerandFragment | /app/src/main/java/com/example/yuyiz/viewpagerandfragment/fragment/FragmentOne.java | UTF-8 | 7,774 | 2.234375 | 2 | [] | no_license | package com.example.yuyiz.viewpagerandfragment.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... | true |
ff3e52e3cc977e0605eb953dbc0d456f542032c5 | Java | sonwani237/learningJava | /DS/src/com/generics/GenericInterface.java | UTF-8 | 83 | 2.265625 | 2 | [] | no_license | package com.generics;
interface GenericInterface<T> {
T genericMethod(T t);
}
| true |
f84fb4d4e43904738b45bf8a9f55500e4b63a790 | Java | yazdani23/Teaching-Spring-Framework | /security-demo-form-login-session/src/main/java/com/mapsa/security/UserDetailsServiceImpl.java | UTF-8 | 1,150 | 2.328125 | 2 | [] | no_license | package com.mapsa.security;
import com.mapsa.model.User;
import com.mapsa.repo.UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userd... | true |
174683f95f6c2ab74c3fd526b68e038484e546fa | Java | gireeshsingh/Interview_practice_questions | /PascalsTriangle.java | UTF-8 | 591 | 2.96875 | 3 | [] | no_license | class Solution {
public List<List<Integer>> generate(int numRows) {
List<List<Integer>> res = new ArrayList<List<Integer>>();
if(numRows==0) return res;
res.add(new ArrayList<Integer>());
res.get(0).add(1);
for(int row=1; row<numRows; row++){
List<Integer> list =... | true |
be7012b3ebe0553dceb5ef2e051ec1800432694d | Java | bin-xie/homework | /day12/Computer.java | UTF-8 | 826 | 3.65625 | 4 | [] | no_license | package Homework.day12;
/**
* 电脑类-重载
*/
public class Computer {
String band; //品牌
double Price; //价格
String colour; //颜色
double weight; //重量
double time; //时间
public void network(){
System.out.println("今天在京东上看到了一台电脑!");
}
public void network(String band,double price){ ... | true |
8cba6aee0cb83e77376883227d182cfd5ee5ee28 | Java | sokogfb/Binder | /app/src/main/java/com/brosis/doubledate/Profile/adapter/CustomPagerAdapter.java | UTF-8 | 2,299 | 2.28125 | 2 | [] | no_license | package com.brosis.doubledate.Profile.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.brosis.doubledate.Profile.ModelObject;
import com.brosis.doubledate.R;
import androidx.viewpager.widget.PagerAdapter;
public class Cu... | true |
d4cfb347d2243b0c3972ab9c377c126f7a72ec39 | Java | jijdy/JYVM | /src/main/java/com/jyvm/classfile/constantpool/ConstantInfo.java | UTF-8 | 2,621 | 2.6875 | 3 | [] | no_license | package com.jyvm.classfile.constantpool;
import com.jyvm.classfile.ClassReader;
import com.jyvm.classfile.ConstantPool;
import com.jyvm.classfile.constantpool.implement.*;
public interface ConstantInfo {
//定义tag常量值判断
int CONSTANT_UTF8 = 1;
int CONSTANT_INTEGER = 3;
int CONSTANT_FLOAT = 4;
int CONS... | true |
bce5b6bcf03b6b51bf165140fcd2a723c61cfb70 | Java | BaseMax/PopularAndroidSource | /cab.snapp.passenger.play_184.apk-decompiled/sources/com/google/android/gms/common/images/WebImage.java | UTF-8 | 3,130 | 1.953125 | 2 | [] | no_license | package com.google.android.gms.common.images;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.ag;
import com.google.android.gms.internal.el;
import com.google.android.gms.internal.zzbfm;
import java.util.Arrays;
import java.util.Locale;
impo... | true |
10920ec77058707928f39002f5dd900b79f6c0cb | Java | yl0598/myproject_ylsport | /babasport/src/main/java/cn/ly/webservice/WeatherWebService.java | GB18030 | 875 | 2.453125 | 2 | [] | no_license | package cn.ly.webservice;
import java.io.IOException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
public class WeatherWebService{
public static void main(String[] args) throws IOException {
//wsdldurl
URL url = new URL("http://ws.webxml.com.cn/WebServices/MobileCodeWS.... | true |
2f283021e3c3bda8e85972d19398f1c4125e3ffa | Java | kurashovp/Minesweeper | /Problems/Floor-space of the room/src/Main.java | UTF-8 | 1,575 | 3.796875 | 4 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String shape = reader.readLine();
switch (shape... | true |
cb2e809a54340ce61dd61fa4cdc709d3945f1686 | Java | virelixinmin/dianshang | /lixinmin_project_demo/app/src/main/java/com/bw/project_demo/ui/fragment/wode/fragment/address/AddressModel/AddressModelmpl.java | UTF-8 | 2,012 | 1.945313 | 2 | [] | no_license | package com.bw.project_demo.ui.fragment.wode.fragment.address.AddressModel;
import android.app.Service;
import com.bw.project_demo.data.contractPath.CheckPath;
import com.bw.project_demo.data.contractPath.ServiceApp;
import com.bw.project_demo.data.utils.RetrofitUtils;
import com.bw.project_demo.ui.fragment.wode.frag... | true |
aed94758ae7bb6dd624653ff04e4cd1be63d2db7 | Java | the-dimensionless/CompetetiveFever-August-2021 | /src/data_structures/graphs/ssspath/bfs_solution/UsingAdjMatrix.java | UTF-8 | 1,153 | 2.96875 | 3 | [] | no_license | package data_structures.graphs.ssspath.bfs_solution;
import data_structures.graphs.representation.adj_matrix.Graph;
import data_structures.graphs.representation.adj_matrix.Node;
import java.util.ArrayList;
public class UsingAdjMatrix {
public static void main(String[] args) {
ArrayList<Node> nodelist = n... | true |
4befc9cc9081d19c0c11dd256a8be733405977e5 | Java | sergio921214/carrenting | /java-arquitectura-hexagonal/microservicio/dominio/src/test/java/com/ceiba/auto/servicio/testdatabuilder/AutoTestDataBuilder.java | UTF-8 | 675 | 2.515625 | 3 | [] | no_license | package com.ceiba.auto.servicio.testdatabuilder;
import com.ceiba.auto.modelo.entidad.Auto;
public class AutoTestDataBuilder {
private Long id;
private String placa;
private String tipoCombustible;
private Boolean rentado;
public AutoTestDataBuilder() {
placa = "abc123";
tipoCo... | true |
1045a9d982ad1a5b10c7794fca6fb36eed8644c8 | Java | OleksandrDatso/Java_Core_Logos | /lesson-002/src/ua/lviv/lgs/Application.java | UTF-8 | 532 | 2.984375 | 3 | [] | no_license | package ua.lviv.lgs;
public class Application {
public static void main(String[] args) {
Rectangle r1 = new Rectangle(16, 4);
r1.Perimetr();
r1.Square();
System.out.println(); // Пробел между 1 и 2 значениями прямоугольников
Rectangle r2 = new Rectangle();
r2.Perimetr();
r2.Square();
... | true |
6612f4e58a06eaafdde2909d849f6c0ae7f0caba | Java | ishita302000/mini-project | /app/src/main/java/com/example/attendence/MainActivity.java | UTF-8 | 1,249 | 2.1875 | 2 | [] | no_license | package com.example.attendence;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private ImageView teacherimag... | true |
df0060dd33b2f469f2862063f2a9e08364a2bc03 | Java | infinispan/infinispan | /integrationtests/endpoints-interop-it/src/test/java/org/infinispan/it/endpoints/EmbeddedRestMemcachedHotRodTest.java | UTF-8 | 7,199 | 2.171875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | package org.infinispan.it.endpoints;
import static org.infinispan.util.concurrent.CompletionStages.join;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotSame;
import static org.testng.AssertJUnit.assertNull;
import static org.testng.AssertJUnit.assertTrue;
import java.... | true |
3bd9acd8394a543c318528eb8d43d106c6187469 | Java | thanhz/Monopoly | /Monopoly 7.0/Jail.java | UTF-8 | 718 | 3.1875 | 3 | [] | no_license |
/**
* This is a jail sqaure players who land on here via stepping on go to jail square or via chance/community
* will be held here for 3 goes or if they pay £50.
*
* @author (Tri Lam)
* @version (7.0)
*/
public class Jail extends Squares
{
private int turns;
//put a state injail in player cla... | true |
8c604ac0b585be58695fc6bc5828367789e0bbff | Java | zhouyongcheng/zzn | /src/main/java/cn/tradewin/angular/pages/test/angular.java | UTF-8 | 738 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | package cn.tradewin.angular.pages.test;
import org.apache.tapestry5.annotations.Events;
import org.apache.tapestry5.annotations.OnEvent;
import org.apache.tapestry5.json.JSONArray;
import org.apache.tapestry5.json.JSONObject;
//@Import(stack={"AngularStack"}, library={"context:js/controllers/controllers-angular.js"})... | true |
06d2a59054c8566f8c02bc49854114d8d143ed11 | Java | naveenanem22/timesheets | /src/main/java/com/tmsht/model/Timesheet.java | UTF-8 | 2,075 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.tmsht.model;
import java.time.LocalDate;
import java.time.LocalTime;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pc.deserializers.JsonDateDeserializer;
imp... | true |
f519d713d81d136b2f0117772c3ba803f3b51b26 | Java | nexuspad/NexusPadAndroid | /src/com/nexuspad/service/dataservice/NPWebServiceUtil.java | UTF-8 | 4,242 | 2.3125 | 2 | [] | no_license | /**
* Copyright (C), NexusPad LLC
*/
package com.nexuspad.service.dataservice;
import android.content.Context;
import android.util.Log;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.nexuspad.service.account.AccountManager;
import com.nexuspad.service.datamodel.AccessEn... | true |
8d116a1f1c4cc167c10a108bc251806bafd2ca39 | Java | Harrypulvirenti/RaspberryPiControlAndroid | /app/src/main/java/com/hpdev/picontrol/XMLRoom.java | UTF-8 | 2,292 | 2.890625 | 3 | [] | no_license | package com.hpdev.picontrol;
import java.util.ArrayList;
/**
* Created by harry on 11/10/2016.
*/
public class XMLRoom {
//UPDATE BOTH TYPE HERE AND IN STRING.XML IN THE ARRAY WITH THE SAME ORDER
public final static int TYPE_ROOM=0;
public final static int TYPE_LIVING_ROOM=1;
public final static ... | true |
c6c19db40faf5e568edb0eb140509a217ebe4c36 | Java | us-hrms/myhrms | /hrms Maven Webapp/src/main/java/com/hrms/service/PositionService.java | GB18030 | 921 | 2 | 2 | [] | no_license | package com.hrms.service;
import java.util.List;
import com.hrms.entity.Position;
import com.hrms.page.Page;
public interface PositionService {
/**
*ְλ
* @param position
* @return
*/
Boolean savePosition(Position position);
/**
* ְλ
* @param position
* @return
*/
Boolean u... | true |
87eb6cd85989be390d3ee34f564d3b8d2e23d732 | Java | Explorer1092/vox | /utopia-service/utopia-afenti/utopia-afenti-impl/src/main/java/com/voxlearning/utopia/service/afenti/impl/service/processor/quiz/FQR_LoadBookId.java | UTF-8 | 2,233 | 2.03125 | 2 | [] | no_license | package com.voxlearning.utopia.service.afenti.impl.service.processor.quiz;
import com.voxlearning.alps.lang.util.SpringContainerSupport;
import com.voxlearning.utopia.service.afenti.api.constant.AfentiLearningType;
import com.voxlearning.utopia.service.afenti.api.constant.UtopiaAfentiConstants;
import com.voxlearning.... | true |
3b8ef293fb5249916f889548999ac39853dfe423 | Java | pratikaambani/struts-practise | /Struts2Test4UsingModelObjects2/src/com/java/service/LoginService.java | UTF-8 | 341 | 2.609375 | 3 | [] | no_license | package com.java.service;
import com.java.model.*;
public class LoginService {
public boolean verifyUser(User user) {
String a = user.getUserID();
String b = user.getPassword();
System.out.println("a = " + a + " and b = " + b);
if (a.equalsIgnoreCase("Pratik") && b.equals("Ambani")) {
return true;
}
... | true |
b5f4e83b18d238bf89fa67a2f3c807344052afc4 | Java | gspandy/zx-parent | /ink-route/ink-route-service/src/main/java/com/ink/route/platform/service/impl/AsileInfoServiceImpl.java | UTF-8 | 3,843 | 2.015625 | 2 | [] | no_license | /**
* yinker.com Copyright (c) 2016-2025 All Rights Reserved.
*
* @Description
* @author xuguoqi
* @date 2016年7月7日 上午11:41:32
*/
package com.ink.route.platform.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
im... | true |
8214cdf01aefd36d82bd86d2052c34b35fb92f02 | Java | dsisconeto/Capsula-do-Tempo | /Java - Maquina de Produtos de Shop/src/view/produto/Consultar.java | UTF-8 | 11,759 | 2.21875 | 2 | [] | 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 view.produto;
import controler.ProdutoController;
import db.Mensagem;
import java.sql.ResultSet;
import java.sql.SQLException;... | true |
5553e4e7774bfa406816397b1af476e03e966c31 | Java | generalic/AVSP | /Lab4/src/hr/fer/zemris/avsp/lab2/test/TestImplementation.java | UTF-8 | 5,240 | 2.6875 | 3 | [] | no_license | package hr.fer.zemris.avsp.lab2.test;
import hr.fer.zemris.avsp.lab2.data.Bucket;
import hr.fer.zemris.avsp.lab2.data.Pair;
import hr.fer.zemris.avsp.lab2.util.Utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Pa... | true |
52398ce59e7fda52561aba0b7bc2582c7fdf927e | Java | hylxj/- | /src/main/java/com/zlt/dao/BusDao.java | UTF-8 | 2,075 | 2.1875 | 2 | [] | no_license | package com.zlt.dao;
import com.zlt.pojo.*;
import java.util.List;
import java.util.Map;
/**
* 公交车bus的dao层
*/
public interface BusDao {
//查询所有的bus
List<BusLineDriver> findAll();
//添加一个bus
void saveBus(Bus bus);
//通过公交车名字查询bus
List<Map> findByBusName(String key);
//通过公... | true |
0dc54cf89c4286ff390a1bd1742a9dae12ae6c47 | Java | 616c/java-com.sphenon.components.basics.application | /src/main/java/com/sphenon/basics/application/ApplicationContext.java | UTF-8 | 6,559 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.sphenon.basics.application;
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
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 L... | true |
55da916d3a53b5e09944e40405b9a5ae47bd1d9b | Java | baygoit/GoJava | /trunk/GoJava3/GoJava3_1/PaintingTool/src/ua/goit/graphElements/PointImpl.java | UTF-8 | 584 | 3.203125 | 3 | [] | no_license | package ua.goit.graphElements;
public class PointImpl implements Point {
private int x;
private int y;
/**
* Point constructor
*
* @param x point's x coordinate
* @param y point's y coordinate
*/
public PointImpl(int x, int y) {
this.x = x;
this.y = y;
}... | true |
d2d03a31646ae743564c7712cfec03a46ac70514 | Java | yinwenjie1991/candice | /src/main/java/io/candice/parser/ast/expression/primary/function/string/Field.java | UTF-8 | 496 | 2.15625 | 2 | [] | no_license | package io.candice.parser.ast.expression.primary.function.string;
import io.candice.parser.ast.expression.Expression;
import io.candice.parser.ast.expression.primary.function.FunctionExpression;
import java.util.List;
public class Field extends FunctionExpression {
public Field(List<Expression> arguments) {
... | true |
af8b71456b1f2445d3be59e59fcbbeabc8073eb7 | Java | Illy-GIS/DiHelper | /src/ru/gis/app/managers/GenreManager.java | UTF-8 | 981 | 2.71875 | 3 | [] | no_license | package ru.gis.app.managers;
import ru.gis.app.ApplicationMain;
import ru.gis.app.entities.GenreEntity;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class GenreManager {
public sta... | true |
6182b4492444aa61d49961076662ca9286e74003 | Java | lepakshiagarwal/myCommencement | /comm_butWorks/src/edu/ycp/cs320/prodb/persist/IDatabase2.java | UTF-8 | 1,235 | 2.03125 | 2 | [] | no_license | package edu.ycp.cs320.prodb.persist;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import java.util.List;
import edu.ycp.cs320.comm.model.Advisor;
import edu.ycp.cs320.comm.model.Student;
public interface IDatabase2 {
String findContentURLByStudentUsername(String username);
String findCon... | true |
564ad2a4aecbe326d264fdd27b17f6687201c505 | Java | kizyma8/DotaStats | /src/main/java/com/stats/connections/HttpConnection.java | UTF-8 | 391 | 2.046875 | 2 | [] | no_license | package com.stats.connections;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpResponseException;
import org.json.JSONObject;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.Map;
public interface HttpConnection {
public JSONObject get(String path, String p... | true |
a079ea348e59db0188e652c6bf109bb629a57da0 | Java | AlonYao/flyz | /app/src/main/java/com/appublisher/quizbank/common/vip/netdata/VipExerciseFilterResp.java | UTF-8 | 3,433 | 2.1875 | 2 | [] | no_license | package com.appublisher.quizbank.common.vip.netdata;
import java.util.List;
/**
* Created by jinbao on 2016/9/1.
*/
public class VipExerciseFilterResp {
private int response_code;
private List<StatusFilterBean> status_filter;
private List<CategoryFilterBean> category_filter;
private List<CourseB... | true |
866def6f3a1169cd4db1de37187dea206e71dc6b | Java | Chenrenzhan/iStockManager | /iStock_v1/src/controller/DrawStackedChart.java | UTF-8 | 3,950 | 2.703125 | 3 | [] | no_license | package controller;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import models.RecordsSet;
import org.json.JSONArray;
import org.json.JSONException;
import org.json... | true |
dc4ddce6d8d9b5a82f7f12fefc11e0f42b2b813b | Java | ildar66/WSAD_NRI | /2005/webcommon/com/hps/july/web/util/StringAndSqlDateProperty.java | WINDOWS-1251 | 2,355 | 3.015625 | 3 | [] | no_license | package com.hps.july.web.util;
import java.sql.Date;
import java.util.Calendar;
/**
* Date.
* Creation date: (24.04.2002 12:13:35)
* @author: Oleg Gashnikov
*/
public class StringAndSqlDateProperty
extends TwainProperty
{
private String stringVal;
private Date dateVal;
private static java.text.SimpleDateF... | true |
aff4d81e52f1e82ba5990fe503d2032a81d526fa | Java | contact4harish/seleniumWebDriver | /src/checkSelenium/driver.java | UTF-8 | 1,081 | 2.609375 | 3 | [] | no_license | package checkSelenium;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class driver {
public static void main(String args[]){
//firefox driver
System.setProper... | true |
4ce75bfe6eeb9b7a8a374666a4b84f9012012393 | Java | 616c/java-com.sphenon.components.basics.data | /src/main/java/com/sphenon/basics/data/conversion/DataConverter_MediaObject_SystemProcess.java | UTF-8 | 3,710 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.sphenon.basics.data.conversion;
/****************************************************************************
Copyright 2001-2018 Sphenon GmbH
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 t... | true |
3cbbbdc314455b7e1e2ada091e852ae100f9da98 | Java | samperson1997/Trillionaire | /Trillionaire/src/test/java/envtest/MinuteTest.java | UTF-8 | 1,864 | 2.3125 | 2 | [] | no_license | package envtest;
import org.hibernate.SessionFactory;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import trillionaire.service.MinutePriceDataService;
import trillionaire.service.impl.MinutePriceDataServiceImpl;... | true |
6ebd7b50fa05527b87d008050f540eb0f53bec3f | Java | jazznerd206/DataStructures | /Java/ArrayList/ArrayList.java | UTF-8 | 4,527 | 3.671875 | 4 | [] | no_license | class ArrayList {
static String[] table;
static int size;
ArrayList() {
table = new String[8];
size = 0;
}
// insert
public void add(int index, String element) {
indexCheck(index);
growCheck();
// if we are inserting at the size index
if (index ... | true |
9b55cc2fd57cf3e7f675dea736eb442b5b2c6611 | Java | zyinn/MMarket | /Java/src/main/java/com/sumscope/optimus/moneymarket/wsandlocalmessage/GatewayQuoteMessageService.java | UTF-8 | 1,725 | 2.234375 | 2 | [] | no_license | package com.sumscope.optimus.moneymarket.wsandlocalmessage;
import com.sumscope.optimus.commons.exceptions.BusinessRuntimeException;
import com.sumscope.optimus.commons.exceptions.BusinessRuntimeExceptionType;
import com.sumscope.optimus.commons.log.LogManager;
import com.sumscope.optimus.commons.messagebus.MessageBus... | true |
2d8279ec8c2ff333d6f4ef07244ea368eecfd2fa | Java | UCB-RAC/kc | /coeus-code/src/main/java/org/kuali/kra/web/krad/TransactionalDocumentControllerService.java | UTF-8 | 6,189 | 1.59375 | 2 | [] | no_license | /*
* Copyright 2005-2010 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | true |
0ddd7f360778a19b8c46d0e0addd785cd43373f2 | Java | Haufe-Lexware/octane-gocd-plugin | /src/main/java/com/haufelexware/gocd/service/GoGetArtifact.java | UTF-8 | 1,223 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.haufelexware.gocd.service;
import com.thoughtworks.go.plugin.api.logging.Logger;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpGet;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
/**
* This class encapsulat... | true |
3ce04dd4af24a77612db1a68ea944789acf3d637 | Java | lin9999/OOP_final_project | /HOTEL/src/Hotel.java | UTF-8 | 2,329 | 3.28125 | 3 | [] | no_license | import com.google.gson.annotations.SerializedName;
/*
* This is the class of the Hotel read from the HotelList.json.
*/
public class Hotel {
@SerializedName("HotelID")
private int ID;
@SerializedName("HotelStar")
private int Star;
private String Locality;
@SerializedName("Street-Address")
private String Addre... | true |
5e4ac423b0fe58e16828f9e244f62da2d8371a06 | Java | selala/codingground | /pretest pemahaman java/Tugas6.java | UTF-8 | 450 | 3.4375 | 3 | [] | no_license | public class Tugas6{
public static void main(String []args){
Scanner scanner = new Scanner(System.in);
System.out.print("Masukkan Nilai anda = ");
int n = scanner.nextInt();
String hasil = Tampilkan(n);
System.out.println("Nilai yang anda masukkan adalah = " + n + "berarti anda " + hasil);
}
public static Strin... | true |
f5cadc496b8479b6d746d5d0b7845211e3273823 | Java | dswami8801/gecko | /src/main/java/com/esphere/gecko/annotation/Endpoint.java | UTF-8 | 628 | 2.1875 | 2 | [] | no_license | package com.esphere.gecko.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.esphere.gecko.constant.RequestMethod;
@Target({ java.lang.annotation.ElementType.TYPE })
@Retention(Retentio... | true |
e7da7b5516cb7e83b9ae7f3c4e414f5aae094da8 | Java | MikeGoldsmith/opentelemetry-java | /sdk/src/test/java/io/opentelemetry/sdk/metrics/DoubleObserverSdkTest.java | UTF-8 | 2,614 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020, OpenTelemetry Authors
*
* 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 by applicable law or... | true |
5e51b696c68ca3dc8fa3523515690b4696ab3ee2 | Java | tang1996/Dz | /Dz/images/com/dz/service/impl/ImagesServiceImpl.java | UTF-8 | 1,174 | 1.9375 | 2 | [] | no_license | package com.dz.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.dz.dao.IImagesDao;
import com.dz.entity.Images;
import com.dz.service.IImagesS... | true |
c8abea728cef1b6681b0b7166f0590089eff463a | Java | victoriamanicom/SpringPlants | /src/main/java/com/bae/plants/service/PlantServiceDB.java | UTF-8 | 1,450 | 2.46875 | 2 | [] | no_license | package com.bae.plants.service;
import java.util.List;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.bae.plants.data.Plant;
import com.bae.plants.data.repos.PlantRepo;
@Service
@Primary
public class PlantServiceDB implements PlantService {
private... | true |
915834b83e5b7ac9cf48ce9dbeb14c55f7b8bda3 | Java | xiyt/JiraTools | /src/main/java/cn/daxi/jira/JiraTools/App.java | UTF-8 | 3,653 | 2.53125 | 3 | [] | no_license | package cn.daxi.jira.JiraTools;
import cn.daxi.jira.JiraTools.common.Const;
import cn.daxi.jira.JiraTools.service.FisheyeService;
import cn.daxi.jira.JiraTools.service.JiraService;
import cn.daxi.jira.JiraTools.utils.PropertiesUtils;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUti... | true |
fa00b69ff6b235430323dc1b4cf9d7f017479164 | Java | grayberry/book_service | /src/main/java/am/dreamteam/bookservice/controllers/CustomErrorController.java | UTF-8 | 970 | 2.140625 | 2 | [] | no_license | package am.dreamteam.bookservice.controllers;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.RequestDispatcher;... | true |
826c41a8d892abea118f08ba99b5610775bd8f7b | Java | truongduongkhang277/AccessoriesPhoneStore-ReactJS | /backend-java/src/main/java/com/java/backend/controller/BrandController.java | UTF-8 | 2,794 | 2.421875 | 2 | [] | no_license | package com.java.backend.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.java.backend.exception.ResourceNotFoundException;
import com.java.backend.model.Brand;
import com.java.backend.repository.BrandRepository;
import org.springframework.beans.factory.annotation.Autowir... | true |
f9183fb288a6227d5f25264764787d6d49bded9f | Java | gkgupta11k/PacMan | /PacMan/src/food/FoodImpl.java | UTF-8 | 1,063 | 3.3125 | 3 | [] | no_license | package edu.ysu.csis.food;
import edu.ysu.csis.Location;
import java.awt.Color;
public class FoodImpl implements Food {
private Integer points;
private Location location;
private FoodType foodType;
public FoodImpl(Integer points, Location location, FoodType foodType) {
this.points = point... | true |
473ae5f66abfbcc924250eb26f82064a9fc89377 | Java | gsrinike/BusinessPulse | /test.businesspulse.service/src/main/java/com/infosys/test/businesspulse/service/test/BillingServiceInvoker.java | UTF-8 | 1,174 | 2.3125 | 2 | [] | no_license | package com.infosys.test.businesspulse.service.test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.infosys.test.businesspulse.service.ejb.BillingService;
import com.infosys.test.businesspulse.service.utils.ServerContextUtils;
public class BillingServiceInvoker {
private static fina... | true |
db1999c8ac406a1760dcf8be07e87f251ff381e6 | Java | Skillnet-test/IHUB-OMS-saptarshi | /hbi_oms_saptarshi/src/main/java/oracle/retail/stores/domain/arts/JdbcRetrieveTransactionIDsByBatchID.java | UTF-8 | 27,947 | 1.570313 | 2 | [] | no_license | /* ===========================================================================
* Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
* ===========================================================================
* $Header: rgbustores/modules/domain/src/oracle/retail/stores/domain/arts/JdbcRet... | true |
f0e943de0f21fe74e5ae9e37246d20b0f5b2ed97 | Java | youup99/ENSF-409-Final-Project | /ENSF409FinalProject-Final-Client/controllers/SendOrderListener.java | UTF-8 | 1,068 | 2.515625 | 3 | [] | no_license | package controllers;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
import client.Communicator;
import views.GenerateOrderView;
/**
* This class is responsible for controlling the send order item to ... | true |
2536ae98886056e08d44a62a47652d6c21c6a72e | Java | CesarChaMal/greenbeans | /services/src/test/java/com/greensopinion/finance/services/persistence/CategoriesPersistenceServiceTest.java | UTF-8 | 3,793 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2015, 2016 David Green.
*
* 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:/... | true |
1a2755d2a6fd9a235ceca6a1177ba21eb813da38 | Java | mrjko/CPSC304 | /src/pkg304application/GroupInfoForm.java | UTF-8 | 11,988 | 2.25 | 2 | [] | 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 pkg304application;
import java.sql.*;
import java.text.DateFormat;
import java.util.Date;
import java.text.SimpleDateFormat;
i... | true |
251d3d1a5ad378a087cdc79ff2dbfdb49a03bf04 | Java | Teemo-Yordles/AWS-DevOps-Demo | /view/view-admin/src/main/java/com/unisys/aos/view/admin/service/SmmRoleService.java | UTF-8 | 1,587 | 2.046875 | 2 | [] | no_license | package com.unisys.aos.view.admin.service;
import com.unisys.aos.view.admin.entity.SmmRole;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
import org.w3c.dom.stylesheets.LinkStyle;
import java.util.List;
/**
* <p>
* system role table 服务类... | true |
87224769ca05e2c50caaba373c4b68169e1f6f5c | Java | gcgongchao/the-tech-frontier-app | /src/com/tech/frontier/presenters/SharePresenter.java | UTF-8 | 3,662 | 2.0625 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Umeng, Inc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... | true |
d0bbdb9e2e7930e44dcf95646612aa0fd1bd7207 | Java | cheolyeing/BaekJoon | /N10809.java | UTF-8 | 596 | 3.09375 | 3 | [] | no_license | import java.io.*;
import java.util.Arrays;
public class N10809 {
static int[] alpha = new int[26];
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = br.readLine();
Arrays.fill(alpha, -1);
for... | true |
94c1388dea7476650c3065a515f91aa8fbf91c80 | Java | InfomediaUK/testdb | /src/main/java/com/helmet/persistence/impl/DefaultClientReEnterPwdDAO.java | UTF-8 | 5,697 | 2.015625 | 2 | [] | no_license | package com.helmet.persistence.impl;
import java.sql.Timestamp;
import java.util.List;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import com.helmet.bean.ClientReEnterPwd;
import com.helmet.bean.ClientReEnterPwdUser;
import com.helmet.persistence.ClientReEnterPwdDAO;
import com.helmet.persistence.Re... | true |
a20ad2fd5fcff66c5b0c0c2dee7250df81713902 | Java | chernovprog/hotprice | /src/main/java/ua/hotprice/services/ProductService.java | UTF-8 | 6,959 | 2.5 | 2 | [] | no_license | package ua.hotprice.services;
import org.jsoup.nodes.Document;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ua.hotprice.dao.StoreDAO;
import ua.hotprice.exceptions.EmptyProductListException;
import ua.hotprice.model.product.Product;
import ua.hotp... | true |
99104b3a4b21a2b332f79d87c7ece9d5ecc483a3 | Java | aroobacs/NoviceVsExpert | /SourceCode/src/ackerman.java | UTF-8 | 824 | 3.609375 | 4 | [] | no_license | /**
* How much do you like the snippet in a scale from (1(bad) to 5(good)), may leave your comments below
*
* Anabelle: 4 but how can a participant calcuate this?
* Norman: 4,5: computationally pretty complex, but a good candidate for this study
* Jonas
*
*/
public class ackerman {
public static void main(... | true |
e4d6f96d87abd93c8f5f367da86f6945b9cd38da | Java | tochyvn/luxiel-evaluation | /src/main/java/lu/luxiel/luxielevaluation/service/impl/MaladieServiceImpl.java | UTF-8 | 2,658 | 2.5 | 2 | [] | no_license | package lu.luxiel.luxielevaluation.service.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ste... | true |
f49131d661e2949d9a984a4a5c9c40bfabdce6b9 | Java | bellmit/dht | /sbj-root/sbj-common/src/main/java/com/retailers/sbj/common/entity/ScanCode.java | UTF-8 | 1,232 | 2.125 | 2 | [] | no_license | package com.retailers.sbj.common.entity;
import org.hibernate.validator.constraints.NotEmpty;
/**
* 描述:扫码人员关系表对象
* @author wangjue
* @version 1.0
* @since 1.8
* @date 2017-12-31 12:47:06
*/
public class ScanCode implements java.io.Serializable {
/**扫码员ID*/
@NotEmpty
private Long scId;
/**开盘ID*/
@NotEmpty
... | true |
3cc27a65f67411afcf2c56298024b7e1403def02 | Java | chrisdemonte/I-AM-A-CELL | /ImACellGame/src/Models/Enzyme.java | UTF-8 | 3,511 | 2.4375 | 2 | [] | no_license | package Models;
import java.util.HashMap;
import java.util.Random;
import Utilities.EnviornmentUtil;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.image.ImageView;
import java... | true |
d11c21be928526546424095722db244d97015ce9 | Java | sanakazi/03-CustomList-view-and-displaying-details-on-click-of-each-list-view-using-ArrayAdapter | /TimeSaverz/src/com/example/timesaverz/model/WorkModel.java | UTF-8 | 545 | 2.1875 | 2 | [] | no_license | package com.example.timesaverz.model;
public class WorkModel {
String name , email, image , img2 ;
public String getName() {
return name;
}
public String getImg2() {
return img2;
}
public void setImg2(String img2) {
this.img2 = img2;
}
public void setName(String name) {
this.name = name;
}
publi... | true |
69710115e9ce950227722144a54508ef5bcade31 | Java | ConnorLH/security | /security-core/src/main/java/cn/corner/web/core/validate/code/dto/ValidateCode.java | UTF-8 | 464 | 2 | 2 | [] | no_license | package cn.corner.web.core.validate.code.dto;
import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 验证码封装类
*/
@Data
public abstract class ValidateCode implements Serializable {
private static final long serialVersionUID = 2582470088978715703L;
protected String code;
pr... | true |
15456e7974f85269a79c8e5ad3476a666b6d1056 | Java | triplekill/bctrace | /core/src/main/java/io/shiftleft/bctrace/jmx/MethodMetrics.java | UTF-8 | 6,621 | 1.671875 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* ShiftLeft, Inc. CONFIDENTIAL
* Unpublished Copyright (c) 2017 ShiftLeft, Inc., All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of ShiftLeft, Inc.
* The intellectual and technical concepts contained herein are proprietary to ShiftLeft, Inc.
* and may be covered b... | true |
4d4508779bc511756ad90c82daaa88b81929b297 | Java | Jacsep/LoopManiaWorld | /src/unsw/loopmania/Items/Staff.java | UTF-8 | 1,364 | 3.203125 | 3 | [] | no_license | package unsw.loopmania.Items;
import java.util.List;
import java.util.Random;
import javafx.beans.property.SimpleIntegerProperty;
import unsw.loopmania.Enemies.BasicEnemy;
public class Staff extends Weapon {
public static final int DAMAGE = 2;
public static final int TRANCE = 30;
/**
* Create a staf... | true |
e85b28c3f4f12fd7b1d80ed2957f4b31a02cb736 | Java | jverbraeken/DoodleJump | /src/test/java/system/CrashTest.java | UTF-8 | 2,117 | 2.140625 | 2 | [] | no_license | package system;
import org.junit.Before;
import org.junit.Test;
import org.powermock.reflect.Whitebox;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class CrashTest {
private IServiceLocator sL;
@Before
public void Init() throws Exception {
... | true |
0003a36f44803638194fbe23d421bc8fbab970c1 | Java | mattisboeckle/mdb-engine-core | /src/main/java/de/mdb/engine/core/gui/style/GUIWhiteStyle.java | UTF-8 | 2,029 | 2.203125 | 2 | [
"MIT"
] | permissive | package de.mdb.engine.core.gui.style;
import static org.lwjgl.nuklear.Nuklear.nk_rgba;
import org.lwjgl.nuklear.NkColor;
public class GUIWhiteStyle extends GUIStyle {
public GUIWhiteStyle() {
TEXT = nk_rgba(70, 70, 70, 255, NkColor.create());
WINDOW = nk_rgba(175, 175, 175, 255, NkColor.create());
... | true |
fdea3dfd18d8b2fb6ea59bfbda35ebae053cf235 | Java | ainulhamdani/opensrp-client | /opensrp-indonesia/src/main/java/org/ei/opensrp/indonesia/view/viewHolder/NativeKIANCRegisterViewHolder.java | UTF-8 | 3,828 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package org.ei.opensrp.indonesia.view.viewHolder;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;
import org.ei.opensrp.indonesia.R;
import org.ei.opensrp.indonesia.view.customControls.BidanClientProfileView;
import org.w3c.dom.Te... | true |
2305ec86fa96949fb6f56884398558718f948544 | Java | sichuanpepper/future | /src/main/java/com/future/round2/Problem161.java | UTF-8 | 6,336 | 3.78125 | 4 | [] | no_license | package com.future.round2;
import java.util.Arrays;
/**
* https://leetcode.com/problems/one-edit-distance/description/
*
* Given two strings S and T, determine if they are both one edit distance apart.
*
* Created by someone on 11/16/17.
*/
public class Problem161 {
/**
* Analyze:
* The problem i... | true |
4f68b1fe3c5a2db918a353f78d3178f1765140b0 | Java | nico1510/Threads | /threads/src/implementation/ForumDistribution.java | UTF-8 | 1,996 | 3.28125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package implementation;
import java.util.Map.Entry;
import java.util.TreeMap;
/**
*
* @author nico
*/
public class ForumDistribution implements Comparable {
private TreeMap<Integer, Integer> distribution = new ... | true |