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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8e75c17f1da2937f396d157bce565d03b4862123 | Java | project-cs-2012/frontend | /LisaTest/src/project/cs/lisa/application/http/test/NetInfRetrieveTest.java | UTF-8 | 6,714 | 2.40625 | 2 | [] | no_license | package project.cs.lisa.application.http.test;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.json.simple.JSONObject;
import org.restlet.data.Status;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
import project.cs.lisa.application.http.NetI... | true |
6b8cd91c050ccdb831cf554be030db85f7ae636d | Java | pantro14/BiometricAutenticator | /src/carvajal/autenticador/android/bl/TemplatesBL.java | UTF-8 | 1,745 | 2.484375 | 2 | [] | no_license | package carvajal.autenticador.android.bl;
import android.content.Context;
import carvajal.autenticador.android.bl.exception.TemplatesBLException;
import carvajal.autenticador.android.dal.greendao.read.DaoSession;
import carvajal.autenticador.android.dal.greendao.read.Templates;
import carvajal.autenticador.andro... | true |
e78da0c349a03da2c2d3ce6cfaf8deb453aa81b4 | Java | miralsapariya/Organization | /app/src/main/java/com/onlineeducationsystemorganization/model/CheckCourse.java | UTF-8 | 1,363 | 2.328125 | 2 | [] | no_license | package com.onlineeducationsystemorganization.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class CheckCourse {
@SerializedName("status")
@Expose
private Integer status;
@SerializedName("message")
@Expose
private String message;
@S... | true |
80ee60d751833e5f5a7562aed9ec90f8ef4f54bf | Java | sarahwss/algorithm004-05 | /leetcode-plugin/leetcode/editor/cn/[69]x 的平方根.java | UTF-8 | 1,308 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | package leetcode.editor.cn;//实现 int sqrt(int x) 函数。
//
// 计算并返回 x 的平方根,其中 x 是非负整数。
//
// 由于返回类型是整数,结果只保留整数的部分,小数部分将被舍去。
//
// 示例 1:
//
// 输入: 4
//输出: 2
//
//
// 示例 2:
//
// 输入: 8
//输出: 2
//说明: 8 的平方根是 2.82842...,
// 由于返回类型是整数,小数部分将被舍去。
//
// Related Topics 数学 二分查找
// 👍 731 👎 0
//leetcode submit region b... | true |
542a3694458f57f9b593efb299df9405efe67db6 | Java | moutainhigh/zjxt | /src/com/sinosoft/maker/BLSMaker.java | GB18030 | 15,086 | 2.75 | 3 | [] | no_license | /*
* <p>ClassName: BLSMaker </p>
* <p>Description: TablenameBLS.java ļ </p>
* <p>Copyright: Copyright (c) 2002</p>
* <p>Company: sinosoft </p>
* @author: GYJ
* @version: 1.0
* @date: 2002-06-17
*/
package com.sinosoft.maker;
import java.io.*;
import java.util.*;
import com.sinosoft.utility.JdbcUrl;
public class BLS... | true |
c211c0e964c10ae415045c58860a138c2d28563a | Java | wlm1314/ZCGL | /gdzc/src/main/java/com/gdzc/widget/recycleview/MultiBindingAdapter.java | UTF-8 | 2,967 | 2.390625 | 2 | [] | no_license | package com.gdzc.widget.recycleview;
import android.databinding.DataBindingUtil;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import java.util.List;
import java.util.Map;
/**
* Created by 王少岩 on 2016/11/3.
*/
public class MultiBindingAdapter ext... | true |
14b82409ba886f9658b0c3ac17401b5016070623 | Java | yhb2010/spring_demo | /src/main/java/com/mvc/chapter7/domain/User.java | UTF-8 | 1,704 | 2.75 | 3 | [] | no_license | package com.mvc.chapter7.domain;
import java.io.Serializable;
//JSR-303(javax.validation)只是一个规范,而Spring也没有对这一规范进行实现,那么当我们在SpringMVC中需要使用到JSR-303的时候就需要我们提供一个对JSR-303规范的实现,
//Hibernate Validator是实现了这一规范的,这里我将以它作为JSR-303的实现来讲解SpringMVC对JSR-303的支持。
import javax.validation.constraints.Pattern;
import javax.validati... | true |
9489b88b23abfc9a6792a046a2ac98826fd35bfc | Java | CoolAndroidTeam/JITranslate | /JITranslate/app/src/main/java/com/coolcode/jittranslate/ui/shop/BookQuery.java | UTF-8 | 253 | 1.65625 | 2 | [] | no_license | package com.coolcode.jittranslate.ui.shop;
import com.google.gson.JsonObject;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Url;
public interface BookQuery {
@GET
Call<JsonObject> getBooks(@Url String url) ;
}
| true |
b2de8c8803d74f66ff7818e145e0dc4ccda93aa4 | Java | MrLightWood/Java-Spring-SimpleAPI | /src/main/java/ee/taltech/calculator/util/Odds.java | UTF-8 | 471 | 2.421875 | 2 | [] | no_license | package ee.taltech.calculator.util;
import org.apache.commons.collections4.CollectionUtils;
import java.util.List;
import java.util.stream.Collectors;
public class Odds {
public static List<Integer> getResult(List<Integer> params) {
if(CollectionUtils.isEmpty(params)){ return null;}
List<Integer>... | true |
202b2c0194e36eccc7c863e699ac22802338f5de | Java | xiaoyesoso/LeetCode | /algorithms/java/src/Move/Zeroes/Solution.java | UTF-8 | 455 | 2.828125 | 3 | [] | no_license | package Move.Zeroes;
public class Solution {
public void moveZeroes(int[] nums) {
int pnozero = 0;
int pzero = 0;
int len = nums.length;
while (true) {
while (pnozero < len && nums[pnozero] == 0)
++pnozero;
if (pnozero == len)
break;
while (pzero < len && nums[pzero] != 0)
++pzero;
if ... | true |
fe07b450022f8cced99dc0c7630144449a4e17d2 | Java | pradeep-kumar-1705807/Java-Practice-Programs | /File Handling in java/Example7.java | UTF-8 | 350 | 2.875 | 3 | [] | no_license | import java.io.*;
public class Example7
{
public static void main(String[] args) throws Exception
{
InputStreamReader f=new InputStreamReader(System.in);
BufferedReader bout=new BufferedReader(f);
System.out.println("Enter Your Name :-");
String name=bout.readLine();
System.out.print... | true |
001662cf89f1d8b83a44fd4e0786a808d7e7db08 | Java | stefano8/game_platform_objectoriented | /source/DAO/RecensioneDao.java | UTF-8 | 689 | 1.859375 | 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 DAO;
import MODEL.Review;
import java.sql.SQLException;
import java.util.List;
/**
*
* @author tom
*/
public interface R... | true |
499b26288d2ea6d2569f07f9a330b649f4a3e7f5 | Java | russellboyd/javaII | /src/Flower.java | UTF-8 | 723 | 3.328125 | 3 | [] | no_license | public class Flower extends plant
{
// Declare attributes here
private String name;
private String color;
private boolean isThorny;
private boolean isSmelly;
// Create an overridden constructor here
public Flower(String name, String color, boolean isThorny, boolean isSmelly)
{
this.name =... | true |
75121bae4c194326341ec504a518b0e91d9390b6 | Java | efraimas/bcaproject | /bca/bca/src/sailpoint/bca/web/ResetAppsPasswordBean.java | UTF-8 | 16,708 | 1.6875 | 2 | [] | no_license | package sailpoint.bca.web;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.apache.log4j.Logger;
import sailpoint.object.Lin... | true |
334a9a702efd9b32d86b6df4c4841195b7f93fac | Java | StarodubOleksiy/springLibrary | /server/src/main/java/springLibrary/model/request/BookRequest.java | UTF-8 | 3,492 | 2.296875 | 2 | [] | no_license | package springLibrary.model.request;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import springLibrary.entities.Book;
import springLibrary.enums.Room;
import springLibrary.enums.Type;
import java.util.Base64;
@Data
public class BookRequest {
private Long id;
private Str... | true |
ae731e46856ed1f1d87e1d2859a394335e46e746 | Java | nsensfel/tabellion | /ast-to-instr/src/VHDLFile.java | UTF-8 | 3,473 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressionException;
import java.util.Stack;
public class VHDLFile extends ParsableXML
{
private static final XPathExpression XPE_FIND_ENTITIES;
priva... | true |
9567876d4a4656b9dc8873d0037562469ceaced5 | Java | chenyongshuai/register-demo | /src/main/java/com/chenys/controller/ProductController.java | UTF-8 | 1,044 | 1.960938 | 2 | [] | no_license | package com.chenys.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.chenys... | true |
0325115f9a1d56234a243eaef5f6591150b08fa7 | Java | mrjoechen/RxDebounceClick | /app/src/main/java/com/smartdengg/example/Entity.java | UTF-8 | 729 | 2.484375 | 2 | [
"MIT"
] | permissive | package com.smartdengg.example;
import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Locale;
/**
* Created by SmartDengg on 2016/4/30.
*/
public class Entity {
@SuppressLint("SimpleDateFormat")
private SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss·S", Lo... | true |
b3007a168a0b7d01e3f936a6167aa47190e8054d | Java | JBEortiz/Example-Web-Service- | /src/main/java/com/example/negocio/service/BancoService.java | UTF-8 | 282 | 1.71875 | 2 | [] | no_license | package com.example.negocio.service;
import java.util.Optional;
import com.example.negocio.entity.Banco;
public interface BancoService {
Iterable<Banco> findAllBanco();
Optional<Banco> finByIdBanco(Long id);
Banco saveBanco(Banco banco);
void deleteByIdBanco(Long id);
}
| true |
1a20726683a118cc0a394fe3aec27f51bae977aa | Java | arenapm/spring | /SpringConAnnotations/src/com/spring/annotations/InformeFinanciero2.java | WINDOWS-1250 | 269 | 1.929688 | 2 | [] | no_license | package com.spring.annotations;
import org.springframework.stereotype.Component;
@Component
public class InformeFinanciero2 implements CreacionInformeFinanciero {
@Override
public String getInformeFinanciero() {
return "Presentacin de informe periodo 3";
}
} | true |
d02114d9afc64c15e71a728263e0e12382e4d105 | Java | kiuchikeisuke/HouseholdBudget | /src/jp/ne/nissing/util/householdbudget/forms/CategorySettingForm.java | UTF-8 | 7,387 | 2.109375 | 2 | [] | no_license | package jp.ne.nissing.util.householdbudget.forms;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view... | true |
5f6960e39d57bb8464750f78b581ece04ef1150c | Java | varunyakkanti/knowledgebasesystem | /test/target/generated-sources/antlr4/listfor.java | UTF-8 | 301 | 2.5 | 2 | [] | no_license |
import java.util.ArrayList;
public class listfor {
ArrayList<String[]>a=new ArrayList<String[]>();
public listfor(String[] factname){
a.add(factname);
}
public void add(String[] factname){
a.add(factname);
}
public ArrayList<String[]> getlist(){
return a;
}
}
| true |
00bec3cbd1a562d906fa4353e44fb06bfa82bf5f | Java | gunurunagasivakumar/TravelApplication | /src/main/java/com/capco/travel/service/ProjectDetailsService.java | UTF-8 | 468 | 1.921875 | 2 | [] | no_license | package com.capco.travel.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.capco.travel.custom.exception.TravelException.TravelServiceException;
import com.capco.travel.vo.ProjectDetailsVO;
@Service
public interface ProjectDetailsService {
public List<ProjectDetailsVO> ge... | true |
c29c5e395f1c0c6957fb6a3281b8a836e3a0aa5e | Java | AndreyVMarkelov/pint-example | /pint/src/test/java/test/hb/pint/base/ext/simplesd/SimpleSdExtention.java | UTF-8 | 697 | 2.046875 | 2 | [] | no_license | package test.hb.pint.base.ext.simplesd;
import org.junit.jupiter.api.extension.AfterAllCallback;
import org.junit.jupiter.api.extension.BeforeAllCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import test.hb.pint.base.ext.NetworkHolder;
public class SimpleSdExtention implements BeforeAllCallback, ... | true |
3a5be63afed46a6e24dc4ca8b08ad7e26c4f15f1 | Java | gongyf15/LeetCodePractice | /LeetCode060_PermutationSequence/src/Solution.java | UTF-8 | 957 | 3.625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
/**
* Created by gongyuanfeng on 2017/8/30.
* 数组过界。边界条件没弄好
*/
public class Solution {
public String getPermutation(int n, int k) {
StringBuilder sb = new StringBuilder();
List<Integer> list = new ArrayList<>();
for(int i=0;i<n;i++) list.... | true |
7583f920ea863c9b2c6df1aae4bf2aa59c179dc3 | Java | whoKnowsss/Lost_ShiWuJiXun | /src/main/java/com/dianshang/lost/service/FeedBackService.java | UTF-8 | 498 | 1.921875 | 2 | [] | no_license | package com.dianshang.lost.service;
import com.dianshang.lost.dao.FeedbackMapper;
import com.dianshang.lost.model.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Created by 11655 on 2017/3/24.
*/
@Service
public class FeedBackService {
... | true |
7c7af2b04fa9bd0c009ae5faaa6201975007fd02 | Java | ZicknerPizza/order-system | /order-core/src/main/java/pizza/zickner/ordersystem/core/domain/order/Status.java | UTF-8 | 901 | 2.53125 | 3 | [] | no_license | package pizza.zickner.ordersystem.core.domain.order;
import java.util.Arrays;
/**
* @author Valentin Zickner
*/
public enum Status {
INACTIVE,
WAITING,
TOPPING,
BAKING,
EATING,
DELETED;
static {
INACTIVE.destinationStates = new Status[]{WAITING, DELETED};
WAITING.destina... | true |
066fde316181ce0b02a8eec2445a68fd54eeda5f | Java | chenyuf2/FieldMonitor | /app/src/main/java/daslab/com/fieldmonitoringv2/LatLong2LatLngs.java | UTF-8 | 814 | 2.671875 | 3 | [] | no_license | package daslab.com.fieldmonitoringv2;
import com.google.android.gms.maps.model.LatLng;
import com.o3dr.services.android.lib.coordinate.LatLong;
import java.util.LinkedList;
import java.util.List;
public class LatLong2LatLngs {
private List<LatLng> latLngs;
/**
* Takes LatLong list and converts it to L... | true |
ac2c3e06236e302b09fe395a489cda1185c112bd | Java | czubocha/so-page-replacement-algorithms | /src/Algorytmy.java | WINDOWS-1250 | 7,224 | 3.296875 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
public class Algorytmy {
private int pamiecWirtualna;
private int pamiecFizyczna;
private int odwolania;
private int lokalnosc;
static ArrayList<Integer> listaOdwolan = new ArrayList<Integer>();
Random r = new Random... | true |
d3ef9e97676f1d2ef8dc3603c7ecc3e8745a7a6b | Java | press0/kata-blockingQueue | /src/main/java/message/Queue.java | UTF-8 | 546 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package message;
/**
* Created by q on 1/7/14.
*/
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class Queue {
public static void main(String[] args) {
final int COUNT = 50;
final int SECONDS_TIMEOUT = 3;
BlockingQueue<Message> queue ... | true |
f452b5f66bf383335b039a0b69dec94c76b5f428 | Java | Crugudar/OPP-Homework-Unit-2- | /src/test/java/com/ironhack/utils/CommandTest.java | UTF-8 | 6,511 | 2.65625 | 3 | [] | no_license | package com.ironhack.utils;
import com.ironhack.classes.*;
import com.ironhack.enums.*;
import org.junit.jupiter.api.*;
import java.util.*;
import static org.junit.jupiter.api.Assertions.*;
class CommandTest {
Lead testValid;
Lead testInvalid;
HashMap<Integer, Lead> leadListTest;
Contact contactVal... | true |
5c6c7b3c60b25af0efb9683f2e34432d27d4e7fc | Java | edwinrjrc/rhviajes2 | /RHViajes2/src/pe/com/rhviajes/web/servlet/ServletParametros.java | UTF-8 | 2,896 | 2.171875 | 2 | [] | no_license | package pe.com.rhviajes.web.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpS... | true |
0639e294d5bb511728de63582b338144346ad5ba | Java | yyy-jl/logistics | /src/com/servlet/ArriveServlet.java | UTF-8 | 2,118 | 2.1875 | 2 | [] | no_license | package com.servlet;
import com.entity.Arrive;
import com.service.ArriveService;
import com.service.impl.ArriveServiceImpl;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;
pub... | true |
5034addaf22bf1ba7d372b9536d764618f17ea5d | Java | Swethad98761/Assignments | /src/Assignment/FindFile.java | UTF-8 | 1,770 | 3.5625 | 4 | [] | no_license | package Assignment;
import java.io.File;
import java.io.FilenameFilter;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;
import java.util.regex.Pattern;
public class FindFile {
public static void main(String[] args) {
/*Scanner object for reading the input*/
Scanner... | true |
256675f30420485c4779a9c314a52f111d2b437d | Java | puneteamsangsoftwares/SanguineERP | /src/com/sanguine/service/clsTCTransServiceImpl.java | UTF-8 | 1,341 | 1.90625 | 2 | [] | no_license | package com.sanguine.service;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactiona... | true |
1a264af0e371834e9d72cbbc30ef26af7be98c00 | Java | mmc-tudelft/likelines-smila | /code/src/cubrikproject/tud/likelines/webservice/Aggregate.java | UTF-8 | 8,415 | 2.71875 | 3 | [
"MIT"
] | permissive | package cubrikproject.tud.likelines.webservice;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import ... | true |
4a598d6a456066619cb316560d46fa17509b73f0 | Java | liupeng110/AndroidMathKeyboard | /MathKeyboard/src/main/java/com/tianshaokai/mathkeyboard/utils/FileUtil.java | UTF-8 | 20,833 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.tianshaokai.mathkeyboard.utils;
import android.annotation.TargetApi;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.Do... | true |
09603e6c884c74bac063b0ecb9018f2f68a62c95 | Java | shaq5035/myRealJavaClass | /src/com/class9/CarMiles.java | UTF-8 | 284 | 2.734375 | 3 | [] | no_license | package com.class9;
public class CarMiles {
public static void main(String[] args) {
for(int a=0; a<=9; a++) {
for(int b=0; b<=9;b++) {
for(int c=0; c<=9;c++) {
for(int d=0; d<=9;d++) {
System.out.println(a+""+b+""+c+""+d);
}
}
}
}
}
}
| true |
06fac66781e9963de58ddadbda48aabdd5a3b503 | Java | fototheory/ProjectBoard | /src/com/controller/AdminUserListController.java | UTF-8 | 13,408 | 2.046875 | 2 | [] | no_license | package com.controller;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springfr... | true |
1c42e147f8d4d1cc594617a78d21da2c2536cf9a | Java | Oaks907/bookspace | /JavaTest/src/main/java/DesignPattern/createmode/FactoryMethod/ConcreteProductB.java | UTF-8 | 242 | 2.5625 | 3 | [] | no_license | package DesignPattern.createmode.FactoryMethod;
/**
* Create by haifei on 21/12/2018 11:54 AM.
*/
public class ConcreteProductB extends AbstractProduct{
@Override
public void show() {
System.out.println("ConcreteProductB");
}
}
| true |
901aab13aa219409f357efd4e522c69ad571f44b | Java | cxddlmu/myJava | /myJava-core/src/main/java/designModel/TestDecorator.java | UTF-8 | 1,069 | 3.140625 | 3 | [] | no_license | package designModel;
/**
* Created by cuixiaodong on 2017/4/2.
*/
public class TestDecorator {
public static void main(String[] args) {
Decorator decorator = new DecoratorImpl1(new DecoratorImpl(new source()));
decorator.method();
}
}
interface Decorator{
void method();
}
class Decorator... | true |
7412dd06cbcb755e5698d913e34212ff30006102 | Java | xieliang2003bb/leetcode-java | /src/main/java/shopping_offers/ShoppingOffers.java | UTF-8 | 1,091 | 2.96875 | 3 | [] | no_license | package shopping_offers;
import java.util.List;
/**
* Created by lxie on 9/9/18.
*/
public class ShoppingOffers {
public class Solution {
public int shoppingOffers(List<Integer> price, List<List<Integer>> special, List<Integer> needs) {
int res = 0, n = price.size();
for (int i... | true |
bc437d91ada119aa54c43321ac217c5683d0a5d5 | Java | micrometer-metrics/micrometer | /micrometer-core/src/test/java/io/micrometer/core/instrument/binder/jersey/server/MetricsRequestEventListenerTimedTest.java | UTF-8 | 6,954 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 VMware, Inc.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
2910d2c3c6a61afb828ee78f41d7fbbecd26f7f4 | Java | ono-lab/FreshMan2018_RexNJgg_kobayashi | /src/myjgoalga/TVectorTest.java | UTF-8 | 5,467 | 2.71875 | 3 | [] | no_license | package myjgoalga;
import static org.junit.jupiter.api.Assertions.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import org.junit.jupiter.api.Test;
class T... | true |
36a828e9bfc84b358c9b6332b91f3b5307f78bc8 | Java | johnlatona/DataStructures | /src/com/latona/MinPQImpl.java | UTF-8 | 3,254 | 3.46875 | 3 | [] | no_license | package com.latona;
import java.util.ArrayList;
public class MinPQImpl implements MinPQ {
int[] nodes;
public MinPQImpl(int[] nodes) {
this.nodes = nodes;
}
@Override
public void add(int x) {
// copies the array and adds new int into last position
int[] newNodesArray = n... | true |
cbd448736bdcd79717aa81a0728f5a9bb7958d02 | Java | DropHXZ/Components | /app/src/main/java/com/base/components/ui/MainActivity.java | UTF-8 | 2,006 | 1.875 | 2 | [] | no_license | package com.base.components.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.base.components.R;
public class MainActivity extends AppCompatActivity {
private Button btn_service;
pr... | true |
cc6bfbf6896fe07dea81f4843c78b9014bbfbaaf | Java | heartsoul/estate-android | /app/src/main/java/com/glodon/bim/business/main/adapter/ChooseCategoryItemAdapter.java | UTF-8 | 2,475 | 2.296875 | 2 | [] | no_license | package com.glodon.bim.business.main.adapter;
import android.app.Activity;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
im... | true |
f8a872ef45dfb9fae732798ce86668b23dc2dc2a | Java | umranbozan/SeleniumWebOtomasyon | /SeleniumWebOtomasyon/src/test/java/searchTest.java | UTF-8 | 3,193 | 2.21875 | 2 | [] | no_license | import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.suppor... | true |
0bbe0c5ceb11fb5fcc9a57d6330fb432a562042f | Java | nullXer0/DiscordBot | /src/com/crimsonvalkyrie/discordbot/commands/Commands.java | UTF-8 | 338 | 1.757813 | 2 | [] | no_license | package com.crimsonvalkyrie.discordbot.commands;
import com.jagrosh.jdautilities.command.CommandClientBuilder;
import com.crimsonvalkyrie.discordbot.commands.owner.Shutdown;
public class Commands
{
public static void initialize(CommandClientBuilder cmdClient)
{
cmdClient.addCommands(
//Owner Commands
new... | true |
f521bec35b78705dc80d1ba02aeac43e56f4b37d | Java | bitwiseTek/rivson-web | /rssson-master/persistence/src/main/java/com/bitwise/manageme/rssson/domain/projects/StudentProject_.java | UTF-8 | 697 | 1.960938 | 2 | [] | no_license | package com.bitwise.manageme.rssson.domain.projects;
/**
*
* @author Sika Kay
* @date 14/06/16
*
*/
import javax.persistence.metamodel.SetAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import com.bitwise.manageme.rssson.domain.students.Studen... | true |
9a4e604d656ff24b408e70deece8e24e2b507051 | Java | gcsr/btech-practice-codes | /gc program/handling/dialogframe.java | UTF-8 | 827 | 2.796875 | 3 | [] | no_license | package gui;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import javax.swing.JLabel;
import java.awt.event.*;
import javax.swing.JPanel;
public class dialogframe extends JFrame
{
aboutdialog dialog;
public dialogframe()
{
dialog=new aboutdial... | true |
c346b82731aa30ef0a685be6549d0fa38448608c | Java | oosthuizenr/CodeSample | /app/src/test/java/za/co/flatrocksolutions/frscodesample/di/TestViewModule.java | UTF-8 | 687 | 1.789063 | 2 | [] | no_license | package za.co.flatrocksolutions.frscodesample.di;
import org.mockito.Mockito;
import dagger.Module;
import dagger.Provides;
import za.co.flatrocksolutions.frscodesample.profile.contract.ProfileContract;
import za.co.flatrocksolutions.frscodesample.profile_list.contract.ProfileListContract;
/**
* Created by renier o... | true |
cf7be83e37cd4e57154a7dc9efdd17fd13aedbe9 | Java | pradyumnbk/Automation | /Automation/src/practice/CloseAllBrowserWithoutUsingQuitNaukri.java | UTF-8 | 861 | 2.46875 | 2 | [] | no_license | package practice;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class CloseAllBrowserWithoutUsingQuitNaukri
{
static
{
System.setProperty("webdriver.chrome.driver", "./driver/chromedriver.exe")... | true |
5058e69eec029bc4e1bd93599830076aa895f9fa | Java | Apocalpyse/NJU-SE3 | /CSEIII/StockHubWeb/src/Servlet/BuyStockBlSer/getHoldBuy.java | UTF-8 | 2,022 | 2.4375 | 2 | [] | no_license | package Servlet.BuyStockBlSer;
import VO.stockVO.HoldVO;
import bl.buyStockBl.BuyStock;
import org.json.JSONException;
import org.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... | true |
9b5a913115c75b8bea03a2470a887154b80d4ccd | Java | eldora/IVA | /JavaMonkey/src/com/exam/javaMonkey/CharcterRecognizer.java | UTF-8 | 1,834 | 2.703125 | 3 | [] | no_license | package com.exam.javaMonkey;
import java.io.*;
import java.util.*;
import javax.swing.text.html.parser.*;
import javax.xml.parsers.*;
import org.xml.sax.*;
import net.sourceforge.tess4j.*;
public class CharcterRecognizer {
String language;
static ArrayList<String> text;
public static ArrayList<String> getText(... | true |
5f3ef9aa34d3db095ae3e025af1f9f9cbe58b19b | Java | mramesh92/Ontology_matching | /src/main/java/edu/ktlab/ontology/utils/RandomIntSelection.java | UTF-8 | 1,073 | 3.171875 | 3 | [] | no_license | package edu.ktlab.ontology.utils;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
public class RandomIntSelection {
private List<Integer> ints;
public RandomIntSelection(int min, int max){
ints = new ArrayList<Integer>();
for(int i = 0; i < max-min... | true |
8d30e6abae685bfea765a2e144493ca6b67969a0 | Java | raquelh1n1/Actividad-4-Manejo-de-Rotacion | /main/java/raquelh1n1/fca/actividad4manejoderotacion/MainActivity.java | UTF-8 | 2,935 | 2.53125 | 3 | [] | no_license | package raquelh1n1.fca.actividad4manejoderotacion;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.time.LocalDateTime;
public class MainActivity extends AppCompatActivity {
... | true |
9e4160de46cf581297e867d563d2441ede729ce0 | Java | blueaken/JianTestPlayGround | /src/main/java/lintcode/matrix/CyclicallyRotatingGrid_LE_1914.java | UTF-8 | 3,004 | 3.609375 | 4 | [] | no_license | package lintcode.matrix;
public class CyclicallyRotatingGrid_LE_1914 {
/*
ref discussion - https://leetcode.com/problems/cyclically-rotating-a-grid/discuss/2005621/My-Java-solution%3A-4ms-beats-85-verbose-but-logic-is-clean
- like his comment: code is read more than written, let's keep it simple an... | true |
3e012b2e8581dc5ac1393480c92568593cf1fbfb | Java | tangguhtriprasetyo/-RSBK-EJB-Calculator | /StatefulCalc/StatefulCalc-war/src/java/Calculator.java | UTF-8 | 6,343 | 2.484375 | 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.
*/
import com.calculator.stateful.CalcBeanLocal;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.logging.Level;
... | true |
fdf47364d5fade8f1c3e9b93a1f27c22c17c0e85 | Java | khushboorays2020/ORS_Proj_0 | /src/main/java/in/co/rays/project0/DAO/MarksheetDAOInt.java | UTF-8 | 1,390 | 2.421875 | 2 | [] | no_license | package in.co.rays.project0.DAO;
import java.util.List;
import in.co.rays.project0.DTO.MarksheetDTO;
/**
* Marksheet DAO interface.
*
* @author DAO
* @version 1.0
* @Copyright (c) SunilOS
*/
public interface MarksheetDAOInt {
/**
* Adds a Marksheet.
*
* @param dto
* @return
*/
... | true |
4b11f034eb26e78feacdbf1ef48ce9887ecd5ea3 | Java | DeCodeHWDP/mcCore | /mcCore/src/pl/gr4ss/core/utils/Utils.java | UTF-8 | 831 | 2.515625 | 3 | [] | no_license | package pl.gr4ss.core.utils;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
public class Utils {
public static String fixColor(String text) {
return ChatColor.translateAlternateColorCodes('&', text.replace... | true |
7706b2beaca4ede8039e6490b4848f0520a43e70 | Java | sandy3lu/hardsm | /src/main/java/com/yunjingit/common/CSMApi.java | UTF-8 | 398 | 1.78125 | 2 | [] | no_license | package com.yunjingit.common;
import com.sun.jna.Library;
import com.sun.jna.Native;
public interface CSMApi extends Library {
CSMApi INSTANCE = (CSMApi)Native.loadLibrary("yjsmwst", CSMApi.class);
int api_init(byte[] out);
int api_final(byte[] out);
int api_print_context(int verbose, byte[] out... | true |
5b8685bc49d209c89cce7709054f96c0ced32af9 | Java | Trang6998/QuanLyBanHang_Java | /SbMySqlRestful/src/main/java/nhom18/com/restful/controller/MediaController.java | UTF-8 | 2,403 | 2.15625 | 2 | [] | no_license | package nhom18.com.restful.controller;
import java.util.Optional;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.De... | true |
567a91399c6e4e5f7a49a183ce4b7e0f7294bf27 | Java | B3Partners/milton-b3p | /src/main/java/com/bradmcevoy/http/PostableResource.java | UTF-8 | 203 | 1.6875 | 2 | [] | no_license | package com.bradmcevoy.http;
import java.util.Map;
public interface PostableResource extends GetableResource {
String processForm(Map<String,String> parameters, Map<String,FileItem> files);
}
| true |
69cc7379ef9663316bc0219aee7cedd362eb8bae | Java | heqiangsc/dive-in-spring-boot | /hello-spring-boot-ac/src/main/java/com/swift/hello/spring/boot/profile/Call.java | UTF-8 | 98 | 1.609375 | 2 | [] | no_license | package com.swift.hello.spring.boot.profile;
public interface Call {
int call(int... cc);
}
| true |
6fd66ef3c5cbb39c00620bdf159dce77a2450c2a | Java | JkZhuang/run_help_app | /app/src/main/java/com/zjk/common/ui/MyPageAdapter.java | UTF-8 | 1,169 | 2.359375 | 2 | [] | no_license | package com.zjk.common.ui;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by pandengzhe on 2018/3/31.
*/
public class MyPageAdapter<T extends View> extends PagerAdapter {
private Context mContext;
private ... | true |
eed7a6a52dc0f290bf6cc67d3c9ba039da26174c | Java | M-Fly/GS_2015-2016 | /src/panels/ScrollingDataText.java | UTF-8 | 2,521 | 3.0625 | 3 | [] | no_license | package panels;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.AdjustmentEvent;
import java.awt.event.AdjustmentListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
im... | true |
09623f93f6c8db233006a774162114b789789e58 | Java | rafaelCarinha/completems | /src/main/java/com/completems/controller/PostController.java | UTF-8 | 1,059 | 2.15625 | 2 | [] | no_license | package com.completems.controller;
import com.completems.dto.PostDTO;
import com.completems.model.DynamoPost;
import com.completems.model.Post;
import com.completems.service.PostService;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/api/v1/post")
public class PostController {
... | true |
1d711eeb8d186cc51e2067f235a2e89229eaffbf | Java | legolas-GG/Sorts | /HeapSort.java | UTF-8 | 1,924 | 4.125 | 4 | [] | no_license | package com.legolas.sorts;
/**
* Created with IntelliJ IDEA.
* User: Legolas
* Date: 2016/9/21 0021
* Time: 10:19
*/
/**
* 堆排序:堆排序的过程就是首先构建大根堆,然后对顶元素(及最大元素)与最后个元素替换位置,
* heapsize减1,重新调整堆变成大根堆。重复上面操作直到heapsize等于一的时候。排序完成
*/
public class HeapSort {
public static void heapSort(int[] arr){
buildHeap(a... | true |
21de31b4f0870bffcd352dea7cb2196a1928f27e | Java | zengqi1119/OA | /src/main/java/com/woniuxy/mapper/AcceptMapper.java | UTF-8 | 1,011 | 1.882813 | 2 | [] | no_license | package com.woniuxy.mapper;
import com.woniuxy.entity.Accept;
import com.woniuxy.entity.AcceptExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface AcceptMapper {
int countByExample(AcceptExample example);
int deleteByExample(AcceptExample example);
int... | true |
cdd9e8ae12037773374b1d14e82f7317c019fe85 | Java | longmt99/fairanb-merchant | /src/main/java/com/fairanb/service/ManufacturerService.java | UTF-8 | 385 | 1.9375 | 2 | [] | no_license | package com.fairanb.service;
import com.fairanb.model.Manufacturer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
public interface ManufacturerService {
Manufacturer getById (Long id) ;
Page<Manufacturer> getAll(Pageable pageable);
vo... | true |
3bb8295dc90d311324a827f8de1179563db50825 | Java | VitorFernandes2/ProjPA | /projpa/GameLogic/StateMachine/StateAdapter.java | UTF-8 | 2,925 | 2.484375 | 2 | [] | no_license | package projpa.GameLogic.StateMachine;
import java.io.Serializable;
import java.util.ArrayList;
import projpa.GameLogic.GameData;
/**
* StateAdapter
*/
public class StateAdapter implements IStates,Serializable{
GameData game;
public StateAdapter(GameData game) {
this.game = game;
}
publ... | true |
2dc37a156182f98991283db7fbb1d5079705db3e | Java | bellmit/erpservice | /erpservice-datacenter/src/main/java/com/huobanplus/erpservice/datacenter/service/logs/impl/ChannelOrderSyncLogServiceImpl.java | UTF-8 | 2,508 | 2.03125 | 2 | [] | no_license | /*
* 版权所有:杭州火图科技有限公司
* 地址:浙江省杭州市滨江区西兴街道阡陌路智慧E谷B幢4楼在地图中查看
*
* (c) Copyright Hangzhou Hot Technology Co., Ltd.
* Floor 4,Block B,Wisdom E Valley,Qianmo Road,Binjiang District
* 2013-2016. All rights reserved.
*/
package com.huobanplus.erpservice.datacenter.service.logs.impl;
import com.huobanplus.erpservice.comm... | true |
2af867af07dfa0b9f14c0d63b5dbe80d8bdc7d1e | Java | swapnadeshmukh006/Learning | /WriteFile.java | UTF-8 | 500 | 3.015625 | 3 | [] | no_license | package com.sampleFileHandling;
import java.io.FileWriter;
import java.io.IOException;
public class WriteFile{
public static void main(String args[]){
try{
FileWriter fileWrite = new FileWriter("SampleFile.txt");
fileWrite.write("Hi ,i am writing file handling looks easy");
fileWrite.clos... | true |
7993849056e34cf0571c3790acd6755cb24c1cbb | Java | mohitharshan123/ghrreal | /app/src/main/java/com/example/reubro/ghr/Retrofit/sync/Category4.java | UTF-8 | 1,703 | 2.078125 | 2 | [] | no_license |
package com.example.reubro.ghr.Retrofit.sync;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Category4 {
@SerializedName("Category Name")
@Expose
private String categoryName;
@SerializedName("medical_category_id")
@Expose
private In... | true |
8897d1e4337c0796b71fc6816004ad9ce8a99178 | Java | DavidJung1460/JSBLOG_SRC | /src/main/java/com/cos/blog/controller/UserController.java | UTF-8 | 10,734 | 1.898438 | 2 | [] | no_license | package com.cos.blog.controller;
import java.time.LocalDate;
import java.time.LocalDateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort.Direction;... | true |
33be74acd6a226440108d4c5bd6b830de06cf984 | Java | ifoets/teaching | /algorithms/src/main/java/com/design/analysis/core/algo/branchandbound/node/PointNode.java | UTF-8 | 337 | 2.5 | 2 | [] | no_license | package com.design.analysis.core.algo.branchandbound.node;
import com.design.analysis.core.algo.branchandbound.model.Point;
public class PointNode {
public Point p;
public int level;
public double dist; // distance between points
public PointNode(Point p) {
this.level = -1;
this.p = p;
this.dist = Integer... | true |
4463ce934048b19c8e649562609494bf796854ac | Java | varietas/instrumentum-simul | /src/main/java/io/varietas/instrumentum/simul/io/ResourceLoader.java | UTF-8 | 1,506 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Michael Rhöse.
*
* 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 agreed... | true |
286330f5fbf8340eeb7e396d61ecf2bc2d2ae0f8 | Java | MustaphaEbrahim/TMR | /app/src/main/java/com/tefa/tamer/draftmvvm/UI/EskanEgtamy/View/EgtmayFragment.java | UTF-8 | 13,864 | 1.734375 | 2 | [] | no_license | package com.tefa.tamer.draftmvvm.UI.EskanEgtamy.View;
import android.app.AlertDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.LayoutI... | true |
6b8ace3889619f86f766ee62a32f352b65687b9c | Java | Twasi/twasi-variables | /src/main/java/net/twasiplugin/customvariables/CustomVariablePlugin.java | UTF-8 | 885 | 1.828125 | 2 | [] | no_license | package net.twasiplugin.customvariables;
import com.coxautodev.graphql.tools.GraphQLQueryResolver;
import net.twasi.core.plugin.TwasiPlugin;
import net.twasi.core.plugin.api.TwasiUserPlugin;
import net.twasi.core.services.ServiceRegistry;
import net.twasiplugin.customvariables.api.CustomVariableResolver;
import net.tw... | true |
54c19071e6757c5320f9af520e368fc54644d70a | Java | factoryfx/factoryfx | /factory/src/main/java/io/github/factoryfx/factory/log/FactoryLogEntryEventType.java | UTF-8 | 124 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package io.github.factoryfx.factory.log;
public enum FactoryLogEntryEventType {
CREATE,RECREATE,START,DESTROY,UPDATE
}
| true |
a1fd14ec0ee604073f59d271f856b20757cc7f22 | Java | hectorzx/hello-world | /CinesaVip/CinesaViP/src/servicios/BloquearAlarma.java | UTF-8 | 9,871 | 1.9375 | 2 | [] | no_license | package servicios;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
... | true |
a1bb4d966ed08d211d4d6cbd0a35227749246b1f | Java | BhavanaPydipala/BackGround-Verification-Sprint-2- | /SetStatus-Service/src/main/java/com/cg/backgroundverification/exception/InvalidDetailsException.java | UTF-8 | 207 | 2.046875 | 2 | [] | no_license | package com.cg.backgroundverification.exception;
@SuppressWarnings("serial")
public class InvalidDetailsException extends Exception{
public InvalidDetailsException(String message) {
super(message);
}
}
| true |
eb8e647db0fe99b43b16737bdf8921a9e4e490b5 | Java | lemonJun/TakinMQ | /takinmq-broker/src/test/java/test/broker/MapDbTest.java | UTF-8 | 587 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package test.broker;
import org.apache.log4j.PropertyConfigurator;
import com.takin.mq.delay.DelayMessageService;
import com.takin.rpc.server.GuiceDI;
public class MapDbTest {
static {
PropertyConfigurator.configure("D:/log4j.properties");
GuiceDI.init();
}
public stat... | true |
716be741a8b8900e6885f51b16adb5e4b0b8fbe8 | Java | kollis/biblioService1 | /src/main/java/com/sow/biblio/service/ExampleService3.java | UTF-8 | 1,102 | 2.4375 | 2 | [] | no_license | package com.sow.biblio.service;
import java.util.HashSet;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.sow.biblio.service.model.Department3;
import com.sow.bibl... | true |
2e66d1c244c3df64a5475c0f6a054a9d8caec2fe | Java | rockguo2015/newmed | /com.fudanmed.platform.core/src/main/java/com/fudanmed/platform/core/domain/impl/RCRepairTask4SettlementCriteriaImpl.java | UTF-8 | 4,350 | 2.03125 | 2 | [] | no_license | package com.fudanmed.platform.core.domain.impl;
import com.fudanmed.platform.core.domain.RCMaintenanceTeam;
import com.fudanmed.platform.core.domain.RCOrganization;
import com.fudanmed.platform.core.domain.RCRepairTask;
import com.fudanmed.platform.core.domain.RCRepairTask4SettlementCriteria;
import com.fudanmed.platf... | true |
33838c3e5fab731e06bc87af854e3249be532cfb | Java | ChrisJBurns/aws-qldb-demo | /src/main/java/shop/backend/api/table/TableController.java | UTF-8 | 1,898 | 2.15625 | 2 | [] | no_license | package shop.backend.api.table;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.... | true |
e0a1c22cbe9a5e66036a69379c7a7e3d137f61ca | Java | VictorMarquesBRA/nabrasa | /NABRASA/NABRASA-war/src/java/com/nabrasa/controller/ControllerFactory.java | UTF-8 | 691 | 2.703125 | 3 | [] | no_license | package com.nabrasa.controller;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author
*/
public class ControllerFactory {
public static Controller getInstanceByName(String name){
Controller instance = null;
String className = "com.nabrasa.contro... | true |
7f9a6ca5cbd237fc7b362b428bd46caad353379d | Java | akaFrank888/DesignPattern | /src/buildPattern/abstractFactoryPattern/test.java | UTF-8 | 522 | 2.8125 | 3 | [] | no_license | package buildPattern.abstractFactoryPattern;
import buildPattern.abstractFactoryPattern.factory.HuaWeiFactory;
/**
* @Auther: yxl15
* @Date: 2021/2/2 15:43
* @Description:
*/
public class test {
public static void main(String[] args) {
// 一、创建 华为手机
// 1. 先创建华为厂商
AbstractFactory facto... | true |
5958a830a5f84ff2542eb83f0731c7e287f55289 | Java | eternita/workflow | /neuro4j-workflow-core/src/test/java/org/neuro4j/tests/base/BaseFlowTestCase.java | UTF-8 | 3,056 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2013-2016, Neuro4j
*
* 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 l... | true |
a5718ce21af29463deda006018be870b0bab744c | Java | tgapps/android | /com/google/android/gms/internal/measurement/zzga.java | UTF-8 | 5,449 | 1.898438 | 2 | [] | no_license | package com.google.android.gms.internal.measurement;
import java.io.IOException;
public final class zzga extends zzza<zzga> {
private static volatile zzga[] zzawa;
public String name;
public Boolean zzawb;
public Boolean zzawc;
public Integer zzawd;
public static zzga[] zzmm() {
if (z... | true |
b67e607d6946da87e10973e21d6efec30920e7d7 | Java | Andoromeda-Foundation/java-server-template | /pb-administration/pb-administration-resource-server/src/main/java/com/powerbroker/resource/service/DefaultAccidentService.java | UTF-8 | 551 | 1.664063 | 2 | [] | no_license | package com.powerbroker.resource.service;
import com.powerbroker.resource.dao.AccidentDAO;
import com.powerbroker.resource.entity.Accident;
import com.powerbroker.resource.model.AccidentDTO;
import com.powerbroker.common.service.AbstractJPAService;
import org.springframework.stereotype.Service;
import org.springframew... | true |
a24b14286ff88f828ea24554282e04b05eea0cc4 | Java | fusco2k/java-alg-exe | /percolation/PercolationStats.java | UTF-8 | 2,234 | 3.171875 | 3 | [
"MIT"
] | permissive | /* *****************************************************************************
* Name:
* Date:
* Description:
**************************************************************************** */
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import edu.princeton.cs.algs4.StdStats;
... | true |
df30d53a3624edcbdd0943f49d1bb498edab44c2 | Java | bhanu-p/UPDATE | /app/src/main/java/com/example/delevere/cbook/Greetings.java | UTF-8 | 1,669 | 2.125 | 2 | [] | no_license | package com.example.delevere.cbook;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class Greetings extends AppCompatActivity {
TextView name;
Button send,c... | true |
6d910c4d0e82ab040f5b8a37ee02b40e80f2b27d | Java | YannisYao/AlgorithmsExercise | /src/com/yannis/part1/Part1_4_18.java | GB18030 | 595 | 3.046875 | 3 | [] | no_license | package com.yannis.part1;
import java.util.Arrays;
/**
* ֲСԪ a[i]<a[i+1] a[i] < a[i-1];
* @author Administrator
*
*/
public class Part1_4_18 {
public static int areaMin(int[] a) {
//Arrays.sort(a);
int hi = a.length -1;
int lo = 0;
if(a.length <3) return -1;
while(lo <= hi) {
int mid = lo + (hi... | true |
cc26e33b0b155cb92dda69e2f5636707c89e2d63 | Java | C-Wwb/SummerCourse | /Part7-一维数组/7.3/src/Main.java | UTF-8 | 1,400 | 3.703125 | 4 | [] | no_license | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int[] numbers = new int[100];
int[] count = new int[101];
int times = 0;
for(int i = 0; i < numbers.length; i++)
{
int numbe... | true |
d593d3719720a3b916aa5ebc2137cc8964609d62 | Java | proost/drama-manager | /src/main/java/com/rpa/dramascrapper/controller/WatchedDramasController.java | UTF-8 | 2,778 | 2.375 | 2 | [] | no_license | package com.rpa.dramascrapper.controller;
import com.rpa.dramascrapper.dto.Drama;
import com.rpa.dramascrapper.service.WatchedDramasService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.Medi... | true |
339d0a278927a1e263065ee597fef0664bf3fb05 | Java | wahahasssss/SpringMvcTest | /SpringMvcXmlProjects/src/main/java/ct/dc/mobile/api/dao/mobilearea/login/AggregateUtil.java | UTF-8 | 7,160 | 2.21875 | 2 | [] | no_license | package ct.dc.mobile.api.dao.mobilearea.login;
import com.mongodb.client.MongoCollection;
import ct.dc.mobile.api.dao.mobilearea.login.callable.AreaAppAggregateCallable;
import ct.dc.mobile.api.dao.mobilearea.login.callable.AreaAppDetailsAggregateCallable;
import ct.dc.mobile.api.enums.StatTypeEnum;
import ct.dc.mobil... | true |
cf4322430e12e9e6fb2f21957e91879fb27496fc | Java | jaewook3203/word_test_v | /JDBC_cnt_pr.java | UHC | 2,048 | 2.75 | 3 | [
"Unlicense"
] | permissive | import java.sql.*;
import java.util.*;
import java.io.*;
public class JDBC_cnt_pr {
int rs_cnt;
int num;
int i=0;
String program;
String stop = "//stop";
String help = "//help";
Scanner sc = new Scanner(System.in);
String Answer_scan;
JDBC_cnt_pr(){
try {
Class.forName("com.mysql.cj.jdbc.D... | true |
afb185eb11f880415588c0dc99dd5654a249733d | Java | AndyZWGu/ChuMeetFinish | /src/com/member/model/MemberDAO_interface.java | UTF-8 | 992 | 1.882813 | 2 | [] | no_license | package com.member.model;
import java.sql.ResultSet;
import java.util.List;
import java.util.Map;
public interface MemberDAO_interface {
//绠$悊鍝$敤
public void insert(MemberVO memberVO);
public void update(MemberVO memberVO);
public void delete(Integer memID);
public MemberVO findByPrimaryKey(Integer m... | true |