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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
46149402d7d225b7a644200d2ae9f935de4d645b | Java | Alibabster/REP3 | /HIA_9/src/main/java/com/example/library/repository/PublisherRepository.java | UTF-8 | 331 | 1.96875 | 2 | [] | no_license | package com.example.library.repository;
import com.example.library.entities.Publisher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PublisherRepository extends JpaRepository<Publisher, Integer> {
Publisher getById(Inte... | true |
365aba4e74433b2bc0b486e50ad8466fa6982cc9 | Java | team484/Shmendwarf | /Shmendwarf/src/org/usfirst/frc/team484/robot/subsystems/Shooter.java | UTF-8 | 531 | 2.28125 | 2 | [] | no_license | package org.usfirst.frc.team484.robot.subsystems;
import org.usfirst.frc.team484.robot.Robot;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
*/
public class Shooter extends Subsystem {
// Put methods for controlling this subsystem
// here. Call these from Commands.
public void initDefaultComma... | true |
07228495b6ba7e4b2213ff06a6a32c62649fa2b9 | Java | huuphuc0261993/vpdt | /src/main/java/com/example/demo/controller/admin/rest/NhanVienResController.java | UTF-8 | 1,560 | 2.078125 | 2 | [] | no_license | package com.example.demo.controller.admin.rest;
import com.example.demo.model.NhanVien;
import com.example.demo.model.PhongBan;
import com.example.demo.model.ThongBao;
import com.example.demo.service.NhanVienService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpSta... | true |
d23197228fbb4a1e9ebfc6ff21bdb36923d7ee0d | Java | PaulDimalante/GCA-FInal | /src/DAO/GCA_MemberDAO.java | UTF-8 | 7,966 | 2.46875 | 2 | [] | no_license | package DAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.TreeMap;
import commonFunctions.CommonFunctions;
import java.util.Map;
import customExceptions.GCAException;
import models.GCA_Member;
import systemInterf... | true |
7b9f1854890c6c9da1e2433bbea87d6ce14610be | Java | Jawad-Jatri/Radar-Personal-Tracker | /app/src/main/java/com/example/summittracker/TrackingActivity.java | UTF-8 | 9,341 | 1.710938 | 2 | [] | no_license | package com.example.summittracker;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import android.Manifest;
import android.content.BroadcastReceiver;
import android.conten... | true |
4138f255bed20a044ff45e0ad3a531329c38c3c6 | Java | proliuxz/Lintcode | /src/S801TO1000/S846.java | UTF-8 | 830 | 3.296875 | 3 | [] | no_license | package S801TO1000;
import java.util.Arrays;
import java.util.Comparator;
public class S846 {
public int[][] multiSort(int[][] array) {
// Write your code here
Arrays.sort(array, new Comparator<int[]>() {
public int compare(int[] o1, int[] o2) {
return o2[1] == o1[1] ? ... | true |
2e2d3da774fdc5cb44c2474d00b24e7d930c2b85 | Java | SuruEarnest/catalog-app | /src/main/java/com/omnirio/catalog/app/api/ProductApi.java | UTF-8 | 4,142 | 2.46875 | 2 | [] | no_license | package com.omnirio.catalog.app.api;
import com.omnirio.catalog.app.exceptions.BadRequestException;
import com.omnirio.catalog.app.exceptions.CustomResponse;
import com.omnirio.catalog.app.model.Product;
import com.omnirio.catalog.app.service.ProductService;
import com.omnirio.catalog.app.utils.ErrorResponseManager;
i... | true |
23670784ecf92049dcafe53752f100d0a30c1123 | Java | zhangchi8620/CrackCode | /src/org/crackcode/ch2/FindBeginning.java | UTF-8 | 1,497 | 3.6875 | 4 | [] | no_license | package org.crackcode.ch2;
import java.util.HashSet;
import org.crackcode.library.LinkedListNode;
public class FindBeginning {
// Method 1: fast / slow pointer
public static LinkedListNode findBeginning(LinkedListNode head){
LinkedListNode slow = head;
LinkedListNode fast = head;
while (fast != null && ... | true |
bc453a8d4448764645b8ef3aa170e4d27dfc04ea | Java | cpunion/xruby | /src/com/xruby/compiler/codedom/UnaryOperatorExpressionTest.java | UTF-8 | 742 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2005-2007 Xue Yong Zhi
* Distributed under the Apache License
*/
package com.xruby.compiler.codedom;
public class UnaryOperatorExpressionTest extends TestingAstTestCase {
public void test_negative_one() {
String program_text = "-1";
String expected_result =
"1\n" +
"-@\... | true |
8ac24a63268f8ecb45e4553df3174254dde0b997 | Java | KUSYS-LAB/Authentication-Server-for-SCAP | /src/main/java/ac/kr/korea/sans/as/restresponse/CaAppResponse.java | UTF-8 | 427 | 2.203125 | 2 | [] | no_license | package ac.kr.korea.sans.as.restresponse;
import org.springframework.lang.NonNull;
public class CaAppResponse<T> {
@NonNull
private T data;
public CaAppResponse() {
}
public CaAppResponse(T data) {
this.data = data;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data... | true |
95c0bb7433d49222d183acaa08e831b550e033d0 | Java | jlkyl/springcloud | /service/src/main/java/com/aaa/service/entity/Bed.java | UTF-8 | 185 | 1.78125 | 2 | [] | no_license | package com.aaa.service.entity;
import lombok.Data;
@Data
public class Bed {
private Integer id;
private Integer number;
private Double width;
private String bed;
} | true |
b0d59fcf210d7cb187afd2ec3c34afdfe2771cf1 | Java | elenabejper/java_prueba | /src/TestLibro.java | UTF-8 | 768 | 2.625 | 3 | [] | no_license |
import java.time.*;
import java.util.ArrayList;
import java.util.List;
public class TestLibro {
public static void main(String[] args) {
// TODO Auto-generated method stub
LocalDate fechaAdquisicion = LocalDate.of(2015, 01, 06);
Libro libro1 = new Libro("Divergente", "Veronica Roth", 463,... | true |
8bfc62ecb6ca31ff6c1c507f65566d2936cb8871 | Java | raminorujov/qafqaz-java-web-2015 | /20151205/BookProject/src/java/bookproject/web/ControllerServlet.java | UTF-8 | 5,811 | 2.515625 | 3 | [] | no_license | package bookproject.web;
import bookproject.db.BookDatabaseHelper;
import bookproject.db.Database;
import bookproject.domain.Author;
import bookproject.domain.Book;
import bookproject.domain.Publisher;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import jav... | true |
9b9ae4737e55a1f06ccb75e74cc3adc3cfce7b33 | Java | hmnshudev/RegistrationForm | /app/src/main/java/com/example/registrationform/MainActivity.java | UTF-8 | 4,662 | 2.21875 | 2 | [] | no_license | package com.example.registrationform;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.text.Spanned;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import androidx.app... | true |
e590440d05d496f6212c0c88d966b5dc7c1b5a4e | Java | vedisquori/editor | /src/org/ulco/Group.java | UTF-8 | 191 | 1.625 | 2 | [] | no_license | package org.ulco;
import java.util.Vector;
public class Group extends Contener {
public Group() {
super();
}
public Group(String json) {
super(json);
}
}
| true |
88171d3ac7160f43e6efdaa304e274c2a3a8a45d | Java | STAMP-project/Cling-application | /results/randoop5/math-org.apache.commons.math.stat.StatUtils-15/RegressionTest3.java | UTF-8 | 2,627,126 | 2.328125 | 2 | [] | no_license | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest3 {
public static boolean debug = false;
@Test
public void test1501() throws Throwable {
if (debug)
System.out.forma... | true |
11235fbb5aa0e1f517a83c7b370426179462b53f | Java | mugiwaradz/livrily | /src/main/java/com/zinou/Livrily/repository/LivraisonRepository.java | UTF-8 | 536 | 1.984375 | 2 | [] | no_license | package com.zinou.Livrily.repository;
import java.util.List;
import com.zinou.Livrily.model.Livraison;
import com.zinou.Livrily.model.Livraison_Line;
import com.zinou.Livrily.model.Livraisoncomplette;
public interface LivraisonRepository {
List<Livraisoncomplette> getLivraisons(Boolean estlivre);
Livraisoncompl... | true |
88b0ea05d01f104c1dde4459e3b98568718254c1 | Java | smallrye/smallrye-common | /vertx-context/src/test/java/io/smallrye/common/vertx/ContextLocalsTest.java | UTF-8 | 3,609 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package io.smallrye.common.vertx;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import io.vertx.core.Context;
import io.vertx.core.Vertx;
import io.vertx.core.impl.ContextInternal;
import io.vertx.junit5.Checkpoint;
import io.vertx.junit5... | true |
5242cc8a5d623679b1a3f52dc4394ef4d6b94e45 | Java | soneyahossain/hcc-gap-recommender | /experiments/subjects/plexus-utils/src/test/java/org/codehaus/plexus/util/dag/CycleDetectorTest.java | UTF-8 | 5,037 | 2.625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | package org.codehaus.plexus.util.dag;
/*
* Copyright The Codehaus Foundation.
*
* 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
*
* ... | true |
59ce04ba1e8152325e9cb509e876d656b30cb4e6 | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-advisor-share/src/main/java/com/aliyuncs/advisor_share/transform/v20180608/ListTagResourcesInfoResponseUnmarshaller.java | UTF-8 | 3,083 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 to in writing, software
* distributed u... | true |
899a6c7ba2e9bdd0e8cf57a258935dc694c8460d | Java | ebchen/APCS_SE_2017-19 | /object_oriented_design/Class_Notes/WalletTester.java | UTF-8 | 583 | 2.765625 | 3 | [] | no_license |
public class WalletTester
{
public static void main (String [] args)
{
//StudentIDCard idCard = new StudentIDCard("Eric Chen", "62347");
ATMCard atmCard = new ATMCard ("Eric Chen", "123010239", "1234");
DriverLicense license = new DriverLicense("Eric Chen", 2015);
Wallet wallet ... | true |
6a634e7a374d9ee9f02dd8c8722ce41dc5424108 | Java | TanTran-Dev/E-Com-Android | /app/src/main/java/com/teamadr/ecommerceapp/view/registration/RegistrationActivity.java | UTF-8 | 9,600 | 1.773438 | 2 | [] | no_license | package com.teamadr.ecommerceapp.view.registration;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import and... | true |
366c674240d5255a9f49603cf2fe287453f16e2e | Java | franjmartin21/MyDailyTasks | /app/src/main/java/com/franjmartin21/mydailytasks/data/dao/TaskOccurrenceDao.java | UTF-8 | 1,696 | 2.171875 | 2 | [] | no_license | package com.franjmartin21.mydailytasks.data.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Quer... | true |
8df582a47508dc40a52226464d5ab51a7fad6239 | Java | Irsacfac/Analisis-Proyecto-3 | /src/otros/DatosGenetico.java | UTF-8 | 1,247 | 2.71875 | 3 | [] | no_license | package otros;
public class DatosGenetico implements IConstants{
private int[] filas;
private int[] columnas;
private int[] bateriaRestante;
private int[] pasosDados;
private int[] tiempo;
public DatosGenetico() {
filas = new int[CANT_PRUEBAS];
columnas = new int[CANT_PRUEBAS];
bateriaRestante = new in... | true |
cd19b135bbfe9980b05af24691188ccbb79d1fd2 | Java | sergsnmail/jl4fcloud | /netty-server/src/main/java/com/sergsnmail/server/db/DbStorage.java | UTF-8 | 641 | 2.453125 | 2 | [] | no_license | package com.sergsnmail.server.db;
import java.sql.*;
public class DbStorage {
private final String DEFAULT_DATABASE = "c:\\temp\\storage.db";
private String dbName;
/*public DbStorage() {
this.dbName = DEFAULT_DATABASE;
}*/
public DbStorage(String dbName) {
if (dbName == null){
... | true |
57b29703dce26348992f86519d50ce433975342b | Java | StasKundro/TMS_Lesson_3_HW | /src/Main.java | UTF-8 | 2,156 | 2.84375 | 3 | [] | no_license | import com.tms.document.DocumentProducts;
import com.tms.document.DocumentContract;
import com.tms.document.DocumentFinance;
import com.tms.terminal.Register;
import java.sql.Date;
/**
* создаем 3 разных документа и задаем им необходимые значения. сохраняем документы и выводим в консоль их информацию
* R... | true |
9afd52a06ce9f63e87577d41debebc8b0be6ec15 | Java | caibojian/Gcs_WeChat | /Gcs_WeChat/src/main/java/com/gcs/app/service/impl/WechatTaskServiceImpl.java | UTF-8 | 1,011 | 2.046875 | 2 | [] | no_license | package com.gcs.app.service.impl;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gcs.app.dao.*;
import com.gcs.app.entity.*;
import com.gcs.ap... | true |
0b69934b9c9e0a65fe3683536fc4efb5b1ad17ce | Java | SetsunaLi/WareHouseCheckCar | /app/src/main/java/com/example/mumu/warehousecheckcar/adapter/BRecyclerAdapter.java | UTF-8 | 7,386 | 2.03125 | 2 | [] | no_license | package com.example.mumu.warehousecheckcar.adapter;
import android.animation.Animator;
import android.content.Context;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
impor... | true |
e334bbaffe43f66073fef76b825db3946f1fdd42 | Java | zxp0505/Mes2 | /workstation/src/main/java/workstation/zjyk/workstation/modle/bean/WSFollowedBean.java | UTF-8 | 1,160 | 2.046875 | 2 | [] | no_license | package workstation.zjyk.workstation.modle.bean;
import java.io.Serializable;
import java.math.BigDecimal;
public class WSFollowedBean implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 关注工序名称
*/
private String procedureName;
/**
* 关注物料编号
*/
pri... | true |
6016193d3e999ebe71116faa8aa5df5fcbf7b6b9 | Java | AliesYangpai/HuaAnWater | /app/src/main/java/org/huaanwater/work/presenter/PresenterGoodsList.java | UTF-8 | 5,255 | 2.171875 | 2 | [] | no_license | package org.huaanwater.work.presenter;
import org.huaanwater.work.constant.ConstError;
import org.huaanwater.work.entity.ErrorEntity;
import org.huaanwater.work.entity.Goods;
import org.huaanwater.work.http.ParseSerilizable;
import org.huaanwater.work.listener.OnDataBackListener;
import org.huaanwater.work.method.IGoo... | true |
52c87b25918d2d4c69ec9676dd9fa16dedf765b2 | Java | yfrfelipe/storemanager | /src/main/java/br/com/storemanager/service/convertor/BarcodeConverter.java | UTF-8 | 920 | 2.34375 | 2 | [] | no_license | package br.com.storemanager.service.convertor;
import br.com.storemanager.dto.product.BarcodeDTO;
import br.com.storemanager.model.product.Barcode;
import javax.annotation.PostConstruct;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereo... | true |
252b268413246cb4763354427ef409ab9be1653d | Java | isisbusapps/docker-workshop-backend | /src/main/java/org/stfc/datasource/HardcodedDataSource.java | UTF-8 | 536 | 2.4375 | 2 | [
"BSD-3-Clause"
] | permissive | package org.stfc.datasource;
import org.stfc.model.Proposal;
import java.util.ArrayList;
import java.util.List;
public class HardcodedDataSource implements DataSource {
@Override
public List<Proposal> getLatestProposals() {
List<Proposal> proposals = new ArrayList<>();
for(int i = 0; i < 10;... | true |
4c9e2b8ada7ec34025a6ba0b08ea140f96963adb | Java | nicolasfei/SheBangsCashier | /app/src/main/java/com/nicolas/shebangscashier/ui/cash/ReturnGoodsViewModel.java | UTF-8 | 9,538 | 1.992188 | 2 | [] | no_license | package com.nicolas.shebangscashier.ui.cash;
import android.text.TextUtils;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.nicolas.shebangscashier.R;
import com.nicolas.shebangscashier.app.MyApp;
import com.nicolas.shebangscashier.common... | true |
58f8add4b1cac56d5aea1a7972fdd444e1cdd782 | Java | GenesisGateway/genesis_java | /src/main/java/com/emerchantpay/gateway/util/Http.java | UTF-8 | 14,456 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.emerchantpay.gateway.util;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLDecoder;
import java.text.SimpleDateFormat;
import java.util.Base64;
import java.util.Date;
import java.util.logging.Level;
import java.util.regex.Matcher;
import java.util.regex.Pattern;... | true |
ee3aa4d36b18b029c2be37baa220928e04ee12e9 | Java | intrack/BoofCV-master | /main/ip/test/boofcv/struct/image/TestImageBase.java | UTF-8 | 2,116 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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... | true |
1b73bd523a7202f51e39018e11248c6ce7105f24 | Java | KaiKeYi/KKY-Android | /KKY/xlgLib/src/main/java/com/xlg/library/utils/Utils.java | UTF-8 | 35,207 | 2.1875 | 2 | [] | no_license | package com.xlg.library.utils;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Dialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import and... | true |
df071015a42133651835a173eea27dbb674cd93f | Java | 207cheny/Dev_test | /space2_cheny_dev/ThreadTest2/src/com/cheny/dev/Service.java | UTF-8 | 701 | 3.0625 | 3 | [] | no_license | package com.cheny.dev;
public class Service {
public static void printA() {
synchronized (Service.class) {
try {
System.out.println("进入A打印区域。。。");
Thread.sleep(3000);
System.out.println("退出A打印区域。。。");
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace(... | true |
60e216b68cb25f45bc5c509856223e7ddc987a6a | Java | wangFCfthxc/Home | /src/tw/org/iii/Home/Home16.java | UTF-8 | 531 | 2.921875 | 3 | [] | no_license | package tw.org.iii.Home;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Home16 {
public static void main(String[] args) throws IOException{
System.out.println("請輸入整數");
BufferedReader in =
new BufferedReader(new InputStreamReader(System.i... | true |
b69f7bf75378079bd40ed665533fa391d45c8731 | Java | VJSriram/Kickass | /Soccer.java | UTF-8 | 309 | 2.390625 | 2 | [] | no_license |
public class Soccer {
// Main method
public static void main(String[] args) {
Goals players = new Goals("Cristiano", "Ronaldo");
Goals players1 = new Goals("Lionel", "Messi");
Goals players2 = new Goals("David", "Beckham");
Goals players3 = new Goals("Eden", "Hazard");
}
}
| true |
0f12b6f8423d2f1f0e1da95caefcf638e4d8cfc9 | Java | elliotcho/LeetCode-Questions | /Subsets.java | UTF-8 | 609 | 2.828125 | 3 | [] | no_license | class Solution {
public List<List<Integer>> subsets(int[] nums) {
ArrayList<List<Integer>> res=new ArrayList<>();
generate(0, nums, res, new ArrayList<>());
return res;
}
public void generate(int index, int[] nums, List<List<Integer>> res, List<Integer... | true |
93b075909f4cd48478fc7b63cfaffcef57ef5b3e | Java | X-Chuck/Screenhot | /app/src/main/java/com/example/screen/service/textserver.java | UTF-8 | 946 | 2.21875 | 2 | [] | no_license | package com.example.screen.service;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
public class textserver extends Service{
@Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return null;
}
@Override
public void... | true |
364050703985f3cec274a1c850a1e2e20d7c7621 | Java | buddhika9/OOP_project | /src/com/login/LoginDBUtil.java | UTF-8 | 1,451 | 2.5625 | 3 | [] | no_license | package com.login;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import com.Employee.DBConnect;
public class LoginDBUtil {
private static Connection con = null;
private static Statement stmt = null;
private stat... | true |
fb3b9bd43f3e20e5d1185398029f677d9d1d9935 | Java | AshkanM96/EECS-3481-Applied-Cryptography | /src/util/Binary.java | UTF-8 | 116,153 | 3.640625 | 4 | [
"MIT"
] | permissive | package util;
/**
* Utility binary methods.
*
* @author Professor Hamzeh Roumani
* @author Ashkan Moatamed
*/
public class Binary {
/**
* No dependencies.
*/
/**
* Binary radix value.
*/
public static final int RADIX = 2;
/**
* Number of bits needed to store one byte.
*/
p... | true |
97bf69bc9ae1a7a76ff6a0ab79f062dd38cc5dc8 | Java | huangdejie/fantasy-demo | /fantasy-microservice/src/main/java/com/cashbang/service01/SocketThread.java | UTF-8 | 1,090 | 3.125 | 3 | [] | no_license | package com.cashbang.service01;
import java.io.*;
import java.net.Socket;
/**
* @Author: huangdj
* @Date: 2020/6/11
*/
public class SocketThread implements Runnable {
private Socket socket;
public SocketThread(Socket socket){
this.socket = socket;
}
@Override
public void run() {
... | true |
659d896b0eff8de32a35795ef290bb4a78850bd0 | Java | yunjl1225/JavaWeb | /06_Servlet/src/yun/servlet2/ResponseIOServlet.java | UTF-8 | 1,631 | 3.25 | 3 | [
"MIT"
] | permissive | package yun.servlet2;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* 设置返回给客户端的信息
* 字节流 getOutputStream(); 常用于下载(传递二进制数据)
* 字符流 ... | true |
90536e5d74494f232dcf53a03c1a5ff9293a8a99 | Java | returntolife455/DemoList | /app/src/main/java/com/returntolife/jjcode/mydemolist/demo/function/webview/JsKit2.java | UTF-8 | 469 | 1.882813 | 2 | [] | no_license | package com.returntolife.jjcode.mydemolist.demo.function.webview;
import android.webkit.JavascriptInterface;
import android.widget.Toast;
import com.returntolife.jjcode.mydemolist.AppApplication;
/**
* @Author : hejiajun
* @Time : 2021/4/23
* @Email : hejiajun@lizhi.fm
* @Desc :
*/
public class JsKit2 {
@J... | true |
22e675178e894e8ca3fb99d05d68ea7273ab4b47 | Java | perdonare/web-test | /src/main/java/com/lance/persistence/mapper/AccountPOMapper.java | UTF-8 | 529 | 1.976563 | 2 | [] | no_license | package com.lance.persistence.mapper;
import com.lance.persistence.model.AccountPO;
import java.util.List;
import java.util.Map;
public interface AccountPOMapper {
AccountPO getAccountByName(String accountName);
int deleteByPrimaryKey(String id);
int insert(AccountPO record);
int insertSelective(A... | true |
09159623343e91ca223df50ec2de72a8ef43a749 | Java | marcelh89/DAS-SYSTEM-SERVER | /src/de/fhb/dassystem/chat/ChatMessageEncoder.java | UTF-8 | 658 | 2.359375 | 2 | [] | no_license | package de.fhb.dassystem.chat;
import javax.websocket.EncodeException;
import javax.websocket.Encoder;
import javax.websocket.EndpointConfig;
import org.json.JSONObject;
public class ChatMessageEncoder implements Encoder.Text<ChatMessage> {
@Override
public void init(final EndpointConfig config) {
}
@Override
... | true |
ff0dabb0722d0559489247f8769a23bcedfde133 | Java | rstasiuliony/Generator | /src/test/java/converter/BinaryConverterTest.java | UTF-8 | 476 | 2.359375 | 2 | [] | no_license | package converter;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class BinaryConverterTest {
private BinaryConverter binaryConverter;
@Before
public void setUp() throws Exception {
binaryConverter = new BinaryConverter();
}
@Test
... | true |
b2ae7bdc107d64333e8a9471caa646db73c068e6 | Java | 303489429/vip | /src/main/java/com/vip/redis/vip/redis/MyTemplet.java | UTF-8 | 758 | 1.945313 | 2 | [] | no_license | package com.vip.redis.vip.redis;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redi... | true |
4b2fbe86ee493558e7435802330b7a8c6a593f86 | Java | Hill1126/DesignPattern | /ConsistentHash/src/System/Request/Request.java | UTF-8 | 192 | 2.015625 | 2 | [] | no_license | package System.Request;
import java.util.Map;
public abstract class Request<K,V> {
protected abstract void DecodeRequest(String request);
public abstract Map<K,V> GetDetail();
}
| true |
a1e40d0369c555e32e7b05639bfbaed429fd7dec | Java | t-watari/study | /study/src/main/java/com/example/study/entity/TaskEntity.java | UTF-8 | 910 | 2.21875 | 2 | [] | no_license | package com.example.study.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax... | true |
a523fd99083beeb781d6cac25bb6df2af1dc26d3 | Java | yam86rus/road-to-OCA | /src/Lesson6/MethodOverloading.java | UTF-8 | 940 | 3.96875 | 4 | [] | no_license | package Lesson6;
public class MethodOverloading {
void show(int i) {
System.out.println(i);
}
void show(int a, int b){
System.out.println(a);
System.out.println(b);
}
void show(boolean b1){
System.out.println(b1);
}
void show(String s1){
... | true |
e3efee792510fe697f302d4af15bdf464f642e74 | Java | dividedbyzero360/SortableChallenge | /src/main/java/org/sortable/challenge/Bid.java | UTF-8 | 590 | 2.5625 | 3 | [] | no_license | package org.sortable.challenge;
public class Bid {
private final Bidder bidder;
private final String bidUnitName;
private final double bidAmount;
public Bid(final String bidderName, final String bidUnitName, final double bidAmount) {
this.bidder = Bidder.getNamed(bidderName);
this.bidU... | true |
97045f8e2142191fde371c124248a48b294b3be8 | Java | a576234489/lhx-small-server | /src/main/java/com/lhx/mall/mbg/model/SpManager.java | UTF-8 | 2,570 | 2.046875 | 2 | [] | no_license | package com.lhx.mall.mbg.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
public class SpManager implements Serializable {
@ApiModelProperty(value = "主键id")
private Integer mgId;
@ApiModelProperty(value = "名称")
private String mgName;
@ApiModelProperty(value = "... | true |
928b559981fe98d261bcec1d88e99a506b3da302 | Java | Talender/data-quality | /dataquality-converters/src/test/java/org/talend/dataquality/converters/DateCalendarConverterTest.java | UTF-8 | 17,836 | 2.078125 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"Minpack"
] | permissive | // ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | true |
04b0c5fcea98c3827cf42f7e04f3bef32dc48e70 | Java | mathieupedrero/eclihand | /eclihand/service-api/src/main/java/com/pedrero/eclihand/service/biz/UserService.java | UTF-8 | 1,168 | 2.34375 | 2 | [] | no_license | package com.pedrero.eclihand.service.biz;
import java.util.Set;
import com.pedrero.eclihand.model.domain.Credential;
import com.pedrero.eclihand.model.dto.UserDto;
import com.pedrero.eclihand.service.common.DataObjectService;
import com.pedrero.eclihand.service.runtime.exception.BadCredentialsException;
public inter... | true |
389646429e4968a9cbff95888987b5f1cf7adb65 | Java | vshapkarin/lunchvoter | /src/test/java/ru/lunchvoter/service/UserServiceTest.java | UTF-8 | 1,592 | 2.375 | 2 | [] | no_license | package ru.lunchvoter.service;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import ru.lunchvoter.AbstractServiceAndRepositoryTest;
import ru.lunchvoter.model.User;
import ru.lunchvoter.util.exception.NotFoundException;
import static ru.lunchvoter.data.UserTestData.... | true |
545f50571556d6804f39be9b42118b5a10706dbb | Java | AltQi/RingStringBuffer | /src/main/java/RingStringBuffer.java | UTF-8 | 2,263 | 3.59375 | 4 | [] | no_license | import java.util.Arrays;
//import javax.annotation.concurrent.ThreadSafe;
/**
* A ring string buffer with a initial size.
* When there is enough space in the buffer, append the input string.
* When there is not enough space in the buffer, double the size.
*
* The class should be thread safe.
*
* Example:
* As... | true |
db0489b86a1be7a73c4e183b3e254256e7f64b96 | Java | ricardomj0499/Genetic | /Caso8/src/caso8/ClassifyTarget.java | UTF-8 | 28,147 | 2.609375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package caso8;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
/**
*
* @author DAC_125
*/
pu... | true |
ab46f61d06db5d5f4947a6c7cb40dd1ab6d13e11 | Java | ruudvandenboomen/kwetter-backend | /src/main/java/domain/User.java | UTF-8 | 3,568 | 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 domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.pe... | true |
ac13288cb6e8310b664e0e15ffc70591139d19ae | Java | NayrozD/DD2476-Project | /Crawler/data/WebSocketManager.java | UTF-8 | 2,734 | 2.421875 | 2 | [] | no_license | 1
https://raw.githubusercontent.com/wangxingman/my_project/master/netty_game_app/netty_game_server/src/main/java/com/game/socket/netty/WebSocketManager.java
package com.game.socket.netty;
import com.game.common.connst.RedisKey;
import com.game.core.message.Request;
import com.game.core.util.RedisUtil;
import org.sprin... | true |
bebbab5fa91a6d4a5b226e8d3b6da777f24c3edd | Java | yassinechabli/RMI_Example | /src/client/BanqueClient.java | WINDOWS-1252 | 1,043 | 2.71875 | 3 | [] | no_license | package client;
//import java.net.MalformedURLException;
import java.rmi.*;
import java.rmi.registry.*;
import banque.Banque;
public class BanqueClient {
public static void main(String[] args) {
try {
/*System.setProperty("java.security.policy", "policy");
if (System.getSecurityManager() == null) {
... | true |
bd00709cba53a7eb65839c6c09691da5e41c4d65 | Java | kmifka/LightManagerAPI | /src/main/java/lightmanager/intefaces/objects/IScene.java | UTF-8 | 263 | 2.234375 | 2 | [] | no_license | package lightmanager.intefaces.objects;
/**
* Stellt eine Szene (Zusammenschluss mehrerer Anweisungen) dar.
*
* @author Korbinian, 23.09.16
*/
public interface IScene extends ILightManagerObject
{
/**
* Startet die Szene
*/
void start();
}
| true |
b0f1e10ee8d28f59c636960e337b88bfd34daf7c | Java | michaelrr72/webservice-example | /src/main/java/soa/example/service/TeamService.java | UTF-8 | 1,035 | 2.609375 | 3 | [] | no_license | /*
* Example web service
*/
package soa.example.service;
import javax.inject.Inject;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import soa.example.domain.Team;
import soa.example.logic.TeamLogic;
import soa.example.logic.TeamLogicException;
/**
* Webserice for information o... | true |
6c532b2cc94123207d9e949f045c037e410850db | Java | RoninLee/clazzManager | /src/main/java/com/school/manager/utils/FileUtil.java | UTF-8 | 5,504 | 2.40625 | 2 | [] | no_license | package com.school.manager.utils;
import com.school.manager.common.Constant;
import com.school.manager.common.Result;
import com.school.manager.entity.FileConfigConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Requ... | true |
489e3e9bbb3121b7dfe549dd6ccca6362800b333 | Java | vasamsetti-sivasubrahmanyam/java2 | /Registrationtest/src/main/java/com/capgemini/pr/ProjectDetails.java | UTF-8 | 1,558 | 1.882813 | 2 | [] | no_license | package com.capgemini.pr;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.ui.Select;
public class ProjectDetails {
private stat... | true |
5d4b0ccc75a07001425a8c830a364e0d56101b22 | Java | wangxinxin07/demo_lombok | /src/main/java/com/wxx/bj/data/DataDemo.java | UTF-8 | 442 | 2.140625 | 2 | [] | no_license | package com.wxx.bj.data;
import lombok.Data;
import java.math.BigDecimal;
/**
* DataDemo.java
*
* @author wangxinxin07
* @Data为类生成setter/getter、equals、hashcode、toString、canEqual方法
* @date 2019/8/4
*/
@Data
public class DataDemo extends DataDemoParent{
public static final String country = "China";
pri... | true |
d00b9fd570654540e09b967c57f102426d0a12ca | Java | weilaidb/PythonExample | /regularexpress/home/weilaidb/work/app/hadoop-2.7.3-src/hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java | UTF-8 | 2,287 | 1.703125 | 2 | [] | no_license | package org.apache.hadoop.fs.s3a;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent... | true |
725c69173d70577681848d319eba4db66c6b63dc | Java | xinghuangxu/XinghuangXu.LeetCode | /src/xinghuangxu/leetcode/Candy.java | UTF-8 | 1,516 | 3.4375 | 3 | [] | no_license | package xinghuangxu.leetcode;
public class Candy {
public static void main(String[] args) {
int N=2;
int[] ratings=new int[N];
for(int i=0;i<N;i++){
ratings[i]=i+1;
}
Candy c=new Candy();
System.out.println(c.candy(ratings));
}
public int candy(int[] ratings){
if(ratings.length==1)return 1;
in... | true |
eb39d0382691d3882bdd340a4a2edccb062103fc | Java | zakharenkodmytro/bot | /src/main/java/com/bot/model/Product.java | UTF-8 | 457 | 1.890625 | 2 | [] | no_license | package com.bot.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.math.BigDecimal;
@Getter
@Setter
@NoArgsConstructor
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Product {
... | true |
4edfa274b913ddfb58ba63a3ba46d133f9ce703b | Java | swapniljamdade/JMP2 | /SpringData/src/main/java/com/epam/jmp2/dbrepositories/AccidentRepository.java | UTF-8 | 987 | 2.125 | 2 | [] | no_license | package com.epam.jmp2.dbrepositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;
import c... | true |
74f398410686bd824b61ec90cbbe378f4f010dcb | Java | pfaffventer/ibear-co-za-eclipse-rcp | /template.za.co.ibear.code.gizmo/src/za/co/ibear/code/gizmo/unit/data/GizmoUnitSql.java | UTF-8 | 2,020 | 2.484375 | 2 | [] | no_license | package za.co.ibear.code.gizmo.unit.data;
import za.co.ibear.code.data.dictionary.system.database.DatabaseConstant;
import za.co.ibear.code.data.dictionary.system.field.Field;
import za.co.ibear.code.data.dictionary.system.index.Index;
import za.co.ibear.code.data.dictionary.system.primary.key.PrimaryKey;
import za.co... | true |
e473340dc48b24d5fc277183f4ee76fe37409075 | Java | hujianbest/huawei-codecraft | /code/ecs/src/com/elasticcloudservice/predict/funs/Cumulation.java | UTF-8 | 999 | 2.6875 | 3 | [] | no_license | package com.elasticcloudservice.predict.funs;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.elasticcloudservice.predict.base.*;;
public class Cumulation{
/**
* 统计累加值
*/
public static Map<Flavor,List<Integer>> getCumulation(Map<Fl... | true |
09816d3e38d99db9b8dd7c9b7a47faf7831658cb | Java | dnzyx/grpc_android | /app/src/main/java/com/learning/lenovo/grpc_android/MainActivity.java | UTF-8 | 2,024 | 2.359375 | 2 | [] | no_license | package com.learning.lenovo.grpc_android;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.rpc.mail.SendMailRequest;
import com.rpc.mail.SendMailResponse;
import com.rpc.mail.SendMailServiceGrp... | true |
36130ae6cd752371531e678eb5a46d04f7df15d0 | Java | Ja0ck5/zookeeper-exmples | /src/test/java/com/lyj/zoo/TestQueueZooKeeper.java | GB18030 | 2,907 | 2.828125 | 3 | [] | no_license | package com.lyj.zoo;
import java.io.IOException;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooDefs.Ids;
import org.apache.zookeeper.ZooKeeper;
import org.junit.After;
i... | true |
82bd68cc17b0db03f205ceff0fe571d1e6d8c2a7 | Java | ZhangZhi-ZG/cakes-course | /springboot/src/main/java/zzhg/boot/controller/OrderController.java | UTF-8 | 988 | 2.203125 | 2 | [] | no_license | package zzhg.boot.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotatio... | true |
b8b598a08d5c367f37e71ee68d056f3a00e361d0 | Java | dvc890/MyBilibili | /app/src/main/java/com/dvc/mybilibili/mvp/ui/activity/web/BaseWebViewActivity.java | UTF-8 | 2,564 | 1.867188 | 2 | [] | no_license | package com.dvc.mybilibili.mvp.ui.activity.web;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.widget.FrameLayout;
import com.dvc.base.MvpBaseActivity;
impor... | true |
c2a583184f6e57d1d26830e1efe99b4421ae7e86 | Java | Zac9742/4f5_ZACHARY_LABELLE_SERPENTS | /serpents_echelles/src/main/java/serpents_echelles/pages/partie_locale/PagePartieReseau.java | UTF-8 | 3,393 | 2 | 2 | [] | no_license |
package serpents_echelles.pages.partie_locale;
import javafx.application.Application;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
import ntro.debogage.DoitEtre;
import ntro.debogage.Erreur;
import ntro.debogage.J;
import ntro.javafx.Chargeur... | true |
c1d75617e1d9c5156e1193d851c9d83d1647bd19 | Java | AkshataHegde/lostandfound | /src/main/java/com/lostandfound/controller/UserController.java | UTF-8 | 971 | 2.09375 | 2 | [] | no_license | package com.lostandfound.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframewor... | true |
43393b2030153fa9a2ba54954e19f62e81365b97 | Java | Irwin1985/pic | /src/pic/v20/Environment.java | UTF-8 | 617 | 2.5625 | 3 | [] | no_license | package pic.v20;
import java.util.HashMap;
public class Environment {
public Environment parent;
private HashMap<String, SysObject> symbolTable;
public Environment() {
symbolTable = new HashMap<String, SysObject>();
}
public Environment(Environment parent) {
symbolTable = new HashMap<String, SysObject>();... | true |
e878e8109accede33d89257388f2a211e77e1ebb | Java | thad2020/SEP1 | /src/Model/Job.java | UTF-8 | 1,309 | 2.53125 | 3 | [] | no_license | package Model;
import java.util.Date;
public abstract class Job
{
int id, projectId, priority, estimatedTime;
String title, description, status;
Date deadline;
TeamMember responsibleTeamMember;
public Job(String title, String status)
{
this.title = title;
this.status = status;
}
public void ... | true |
41b80c835712f705f2aaa8549e784bafe6ff5fde | Java | albjoaov/ProjetoLPOO | /ProjetoLpooUber/src/br/acme/exception/NomeNullException.java | UTF-8 | 139 | 1.78125 | 2 | [] | no_license | package br.acme.exception;
public class NomeNullException extends Exception{
public NomeNullException(String msg) {
super(msg);
}
}
| true |
04681bb0451f051ab6ec233b3d43ea60622b084f | Java | JustasMarkauskas/Document-Management-System | /testing/DMS1_Testing/src/test/java/resources/page/UserPages/MyDocumentsPages/UserCreateDocumentPage.java | UTF-8 | 6,006 | 2.40625 | 2 | [] | no_license | package resources.page.UserPages.MyDocumentsPages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.op... | true |
b72e3395038fcc896a81b705dfa90673673951ce | Java | jmkourie92/java-bootcamp | /src/HTMLWriterForm.java | UTF-8 | 6,910 | 2.453125 | 2 | [] | no_license | import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.reflect.Array;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLExceptio... | true |
637a6c8296e9f5b9e00122acbcc377c8281b6cf7 | Java | 1096064232/lucky-project | /lucky-project-core/src/main/java/com/lucky/core/security/verification/sms/SmsValidateCodeProcessor.java | UTF-8 | 1,366 | 2.21875 | 2 | [] | no_license | /**
*
*/
package com.lucky.core.security.verification.sms;
import com.lucky.common.pojo.SimpleResponse;
import com.lucky.core.exception.ValidateCodeException;
import com.lucky.core.property.LuckyProperties;
import com.lucky.core.security.verification.ValidateCode;
import com.lucky.core.security.verification.impl.Ab... | true |
c851e68500f2d789524509cfaef52078a13735a8 | Java | ayang0422/db-excel-tools | /src/main/java/com/wql/database/tools/entity/ColumnInfo.java | UTF-8 | 572 | 1.890625 | 2 | [] | no_license | package com.wql.database.tools.entity;
import lombok.Data;
/**
* 字段元信息
* Created by wendrewshay on 2019/06/03
*/
@Data
public class ColumnInfo {
/**
* 字段名称
*/
private String columnName;
/**
* 字段类型
*/
private String columnType;
/**
* 字段键
*/
private String column... | true |
12cef29d23ee4c1371f66a550103c322c7aad057 | Java | Jxiaqiudong/FleaMarketAndroid | /FleaMarket/app/src/main/java/fleamarket/neworin/com/fleamarket/adapter/CommonAdapter.java | UTF-8 | 1,491 | 2.4375 | 2 | [] | no_license | package fleamarket.neworin.com.fleamarket.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import java.util.List;
import fleamarket.neworin.com.fleamarket.util.ViewHolder;
/**
* 万能适配器
* Created ... | true |
5bebe29c94b7bdba2fde62b181738dad682868ad | Java | arraycto/backend-parent | /backend-sales-coupon-template/backend-sales-coupon-template-impl/src/main/java/com/hyf/backend/coupon/template/controller/CouponTemplateController.java | UTF-8 | 4,478 | 2.03125 | 2 | [] | no_license | package com.hyf.backend.coupon.template.controller;
import com.hyf.backend.common.constant.Constant;
import com.hyf.backend.common.context.ContextHolder;
import com.hyf.backend.common.vo.ListVO;
import com.hyf.backend.coupon.template.api.dto.ApiQueryIdsDTO;
import com.hyf.backend.coupon.template.api.vo.ApiCouponTempla... | true |
adda15dc77b5bec680a036117c55fc5fda443528 | Java | apollowesley/jun_test | /tmp/util/utils_jutils/src/main/java/com/foo/common/base/reflect/ReflectHelper.java | UTF-8 | 1,508 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package com.foo.common.base.reflect;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang3.reflect.FieldUtils;
import com.foo.common.base.utils.CommonCrudHelper;
public class ReflectHelper {
private final ... | true |
d1a287cf4fe3c8d8e6b4a5e6f83406580fec96c3 | Java | fengyy51/springselect | /src/main/java/com/yy/dao/IUserDao.java | UTF-8 | 193 | 1.914063 | 2 | [] | no_license | package com.yy.dao;
import com.yy.model.User;
/**
* Created by yy on 2017/9/6.
*/
public interface IUserDao {
public User selectById(int id);
public User selectByName(String name);
}
| true |
36ae6bef4dbab3aedffc5f0ed92f79fd76019dda | Java | JohnnyLovesComplexity/MozzarellaProject | /MozzarellaWaterfox/src/org/jlc/arar/mozzarella/waterfox/Waterfox.java | UTF-8 | 9,409 | 2.8125 | 3 | [] | no_license | package org.jlc.arar.mozzarella.waterfox;
import org.jlc.arar.mozzarella.FileGenerator;
import java.io.*;
import java.net.*;
import java.util.Scanner;
public class Waterfox{
static byte data [];
static String path;
static boolean quitter = false;
private String adress = "127.0.0.1";
private Stri... | true |
79a18b757e8dc4c15e82ee089761325243bb9989 | Java | seava/seava.mod.bd | /seava.mod.bd.domain/src/main/java/seava/bd/domain/impl/classification/Classification.java | UTF-8 | 2,785 | 1.929688 | 2 | [] | no_license | /**
* Solutii Ecommerce, Automatizare, Validare si Analiza | Seava.ro
* Copyright: 2013 Nan21 Electronics SRL. All rights reserved.
* Use is subject to license terms.
*/
package seava.bd.domain.impl.classification;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
impor... | true |
832c161708d186a20468a4c6f9f12f52ac3b57bb | Java | djubithana/studentenvolgsysteem | /src/main/java/sr/havo1/webapp/studentenvolgsysteem/controller/DocentenVakkenController.java | UTF-8 | 1,227 | 2.328125 | 2 | [] | no_license | package sr.havo1.webapp.studentenvolgsysteem.controller;
import sr.havo1.webapp.studentenvolgsysteem.dao.DocentenVakkenDAO;
import sr.havo1.webapp.studentenvolgsysteem.entity.DocentenVakken;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
/**
* Created by DENCIO on 7/18/2018.
*/
@Path("/docentenVakken")
... | true |
8e545d529c3208abfdfc65eaa3f85c315af7f573 | Java | weizuoming/lianxi | /07_rxjava_retrofit_mvp/src/main/java/com/dash/a07_rxjava_retrofit_mvp/presenter/Ipresenter.java | UTF-8 | 237 | 1.804688 | 2 | [] | no_license | package com.dash.a07_rxjava_retrofit_mvp.presenter;
import java.util.Map;
/**
* Created by Dash on 2018/3/14.
*/
public interface Ipresenter {
void getDataFromNet(String url, Map<String,String> map);
void onUnsubscribe();
}
| true |
3dcb8720bb73bce87b419bbded57abcb1bee4166 | Java | anwar069/InForAll | /app/src/main/java/com/inforall/app/place/PlaceAdapter.java | UTF-8 | 6,609 | 2.25 | 2 | [] | no_license | package com.inforall.app.place;
/**
* Created by Ahmed on 12/01/2017.
*/
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.location.Location;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflate... | true |
c8cca728fb5ae9e8268a5e321a1dc4e0d1ca50ce | Java | zhenshiyiyang/Algorithm | /src/ToOfferNew/Title12.java | UTF-8 | 4,029 | 3.984375 | 4 | [] | no_license | package ToOfferNew;
import java.util.Stack;
public class Title12 {
//打印1到最大的n位数的主方法
public void printToMaxOfDigits(int n){
if(n <= 0){
System.out.println("输入的n没有意义");
return;
}
char number[] = new char[n];
for (int i = 0; i < number.length; i++) {
... | true |
8ac3f167035f7b3318597c16ae02dd2b7d225bc3 | Java | zhengjirui/zjrdemo | /bazaar/src/main/java/com/metshow/bz/commons/bean/TopicAndUser.java | UTF-8 | 636 | 1.875 | 2 | [] | no_license | package com.metshow.bz.commons.bean;
import com.kwan.base.bean.POJO;
import com.metshow.bz.commons.bean.topic.Topic;
import java.util.List;
/**
* Created by Mr.Kwan on 2016-8-30.
*/
public class TopicAndUser extends POJO {
private List<Topic> ArticleList;
private List<User> UserList;
public List<Use... | true |
2179fde98b1ae7c5bcff613b68c283ed039d7b05 | Java | helena-pereira/miniprojet | /src/main/java/ch/hevs/businessobject/Writer.java | UTF-8 | 1,749 | 2.65625 | 3 | [] | no_license | package ch.hevs.businessobject;
import javax.persistence.Entity;
import javax.persistence.PostPersist;
import javax.persistence.Table;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Ma... | true |
d0161137ffcbb1ca3b4d26b1aa4f4c02b6774387 | Java | x7c1/Cliche | /scala/android-linen/linen-app/src/main/java/x7c1/linen/app/AndroidLinen.java | UTF-8 | 246 | 1.976563 | 2 | [] | no_license | package x7c1.linen.app;
import x7c1.linen.lib.SampleImpl;
import x7c1.linen.struct.LinenStruct;
public class AndroidLinen {
public AndroidLinen() {
LinenStruct x = new SampleImpl();
System.out.println(x.getName());
}
}
| true |