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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b411c861e149b68f02a8607ca42bd78030a78cb8 | Java | andrepl/Saddlebags | /src/main/java/com/norcode/bukkit/saddlebags/SerializationUtil.java | UTF-8 | 2,636 | 2.671875 | 3 | [] | no_license | package com.norcode.bukkit.saddlebags;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.bukkit.configuration.serialization.ConfigurationSerializable;
import org.bukkit.configuration.serialization.ConfigurationSerialization;
pub... | true |
145ff801269f9ef56574b591ad354c26297c3063 | Java | lgazo/liferay-ide | /eclipse/portal/plugins/com.liferay.ide.eclipse.layouttpl.ui/src/com/liferay/ide/eclipse/layouttpl/ui/editor/LayoutTplMultiPageEditorActionBarContributor.java | UTF-8 | 3,800 | 1.898438 | 2 | [] | no_license | package com.liferay.ide.eclipse.layouttpl.ui.editor;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IEditorActionBarContributor;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.part.MultiPageEditorActionBarContributor;
import org.eclipse.ui.part.MultiPageEditorPart;
import org.eclipse.ui.text... | true |
75e0a195b474dca82ec7b44ebc8dddeaee4bf00a | Java | prateekguptaoyo/CMS | /src/main/java/com/sample/cash/management/system/controller/MappingController.java | UTF-8 | 889 | 2.09375 | 2 | [] | no_license | package com.sample.cash.management.system.controller;
import com.sample.cash.management.system.model.Response.ServiceResponse;
import com.sample.cash.management.system.service.MappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.u... | true |
f15d7d79b0e29ea8f4d4accaa09cd5c5e91c4225 | Java | wchen-oxy/The-Blank-Dictionary | /Android/app/src/main/java/com/blankdictionary/myapplication/HelperInterfaces/IFragmentCommunicator.java | UTF-8 | 477 | 1.867188 | 2 | [] | no_license | package com.blankdictionary.myapplication.HelperInterfaces;
import android.os.Bundle;
//we use an interface rather than a view model because we are communicating from frag to activity
public interface IFragmentCommunicator {
// void textPass(String string);
void bundPass(Bundle args, boolean forPreservingS... | true |
600f02dafae325461c060572a1c22310a5260e15 | Java | ArminasMiliauskis/Jaxb-Transformation | /src/main/java/lt/eif/viko/amiliauskis/jaxb/model/Planet.java | UTF-8 | 4,959 | 2.75 | 3 | [] | no_license | package lt.eif.viko.amiliauskis.jaxb.model;
import java.util.List;
import java.util.stream.Collectors;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Represents planet object which is a child element of Inner planets element or
* outer planets element. Has seven main pr... | true |
95f2210c375366fd8a75579b6d5c7902840c3073 | Java | GMadorell/jtransc | /jtransc-rt/src/java/util/regex/Matcher.java | UTF-8 | 5,313 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Carlos Ballesteros Velasco
*
* 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 |
1ee442fa095c951a0a0b240a9c802ed67025d3ca | Java | AssigmentsGit/junit-demo | /junit-demo/src/main/java/com/example/junitdemo/model/Address.java | UTF-8 | 284 | 2.203125 | 2 | [] | no_license | package com.example.junitdemo.model;
import lombok.*;
@NoArgsConstructor
@AllArgsConstructor
public class Address {
String city;
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
}
| true |
39ba9ac4ca68f122dc53c70392a18e9e64ef699f | Java | lubnin/java-projects | /holidays/src/main/java/ru/rti/holidays/service/SystemParameterService.java | UTF-8 | 580 | 2.015625 | 2 | [] | no_license | package ru.rti.holidays.service;
import ru.rti.holidays.entity.Department;
import ru.rti.holidays.entity.SystemParameter;
import java.util.List;
@SuppressWarnings("unused")
public interface SystemParameterService {
SystemParameter saveSystemParameter(SystemParameter systemParameter);
SystemParameter getSyste... | true |
81bfb262de31d09ce687ea55521f4c732a83f45d | Java | thierrysup/notesBackend | /src/main/java/com/douwe/notes/web/beans/EvaluationBean.java | UTF-8 | 3,541 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.douwe.notes.web.beans;
import com.douwe.notes.entities.Evaluation;
import com.douwe.notes.service.IEvaluationService;
import com.douwe.notes.service.ServiceException;
import java.util.List;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;
import javax.faces.a... | true |
c5cbd90d5269590e3b8db553e5d95438e6dc82de | Java | xiongzhengjian/onepiece | /captain/src/main/java/com/wistron/service/impl/WatServiceImpl.java | UTF-8 | 1,121 | 2.015625 | 2 | [] | no_license | package com.wistron.service.impl;
import com.wistron.dao.WatDao;
import com.wistron.pojo.Wat;
import com.wistron.pojo.vo.Limit;
import com.wistron.service.WatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.ann... | true |
3f37550f65884467197b7a89de9d902484e1dd07 | Java | danielbr08/MonthlyBudget | /app/src/main/java/monthlybudget/apps/danielbrosh/monthlybudget/myDBAdapter.java | UTF-8 | 46,118 | 2.078125 | 2 | [] | no_license | /*
* Copyright (c) Daniel Brosh.
*/
package monthlybudget.apps.danielbrosh.monthlybudget;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
... | true |
c14f7984e7add668cc25caac192ca11653c0576c | Java | EROS0820/TUTV_Frontend | /app/src/main/java/com/backstagesupporters/fasttrack/models/Driver.java | UTF-8 | 5,499 | 2.140625 | 2 | [] | no_license | package com.backstagesupporters.fasttrack.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Driver {
@SerializedName("vehicle_id")
@Expose
private String vehicle_id;
@SerializedName("token")
@Expose
private String token;
... | true |
197ec3ac63e22d2c13010c66ceb840e743a77b55 | Java | hmerciol/sirh-gestion-personnel | /src/main/java/dev/sgp/service/CollaborateurService.java | UTF-8 | 916 | 2.53125 | 3 | [] | no_license | package dev.sgp.service;
import java.util.ArrayList;
import java.util.List;
import dev.sgp.entite.Collaborateur;
import dev.sgp.util.Constantes;
public class CollaborateurService {
private List<Collaborateur> listeCollaborateurs = new ArrayList<>();
public List<Collaborateur> listerCollaborateurs() {
Constante... | true |
78dcf6dca65c03d4af4f565e27071a1ab62ecd53 | Java | dtkmn/algorithms | /src/leetcode/UnivaluedBinaryTree.java | UTF-8 | 814 | 3.265625 | 3 | [] | no_license | package leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* https://leetcode.com/problems/univalued-binary-tree/
*/
public class UnivaluedBinaryTree {
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) { val = x; }
}
private ... | true |
16506a31895676b40f14eeb87d908308bec995d7 | Java | obsidiandynamics/runway | /capacitor/src/main/java/com/obsidiandynamics/runway/capacitor/NegotiateLock.java | UTF-8 | 705 | 2.640625 | 3 | [
"BSD-3-Clause"
] | permissive | package com.obsidiandynamics.runway.capacitor;
import java.util.concurrent.locks.*;
final class NegotiateLock {
private NegotiateLock() {}
static void alter(ReadWriteLock lock, LockMode from, LockMode to) {
if (from == to) return;
if (to == LockMode.EXCLUSIVE) {
if (from == LockMode.SHARED) ... | true |
127d6de48a07aa3ad1df7b7121a94ee9ca480713 | Java | amitsrivastava4all/CoreJavaBatchDec1230 | /Codes9/Demo.java | UTF-8 | 264 | 2.21875 | 2 | [] | no_license | abstract class Animal
{
abstract void walk();
}
class Cat extends Animal{
void walk(){
}
}
public class Demo {
public static void main(String[] args) {
// TODO Auto-generated method stub
Animal blackCat = new Cat();
//Animal a = new Animal();
}
}
| true |
14d1b34485b66d967b11b8bfa8d3c89fbbbc966d | Java | grapefroot/mipt | /fizteh-java-2014/src/ru/fizteh/fivt/students/VasilevKirill/multimap/MultiMap.java | UTF-8 | 3,577 | 2.9375 | 3 | [] | no_license | package ru.fizteh.fivt.students.VasilevKirill.multimap;
import ru.fizteh.fivt.students.VasilevKirill.multimap.db.shell.RmCommand;
import ru.fizteh.fivt.students.VasilevKirill.multimap.db.shell.Status;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* Created by K... | true |
c63494e1a90828a057645695341af20f2d55a7bb | Java | achangco24/mge_selenium | /MGE_GITHUB/src/main/java/ey/manila/qa/error/ErrorHandle.java | UTF-8 | 1,525 | 2.25 | 2 | [] | no_license | /*
*************************************************************************************
*
* PROGRAM DESCRIPTION:
*
* Error Handle
*
*************************************************************... | true |
b72fc3a1c47f609be9636b029dbf998ad1c716fb | Java | Hercules0402/conference_j2ee | /jee-with-ejb-war/src/test/java/JitTest.java | UTF-8 | 698 | 2.9375 | 3 | [] | no_license | import org.junit.Ignore;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
@Ignore
public class JitTest {
@Test
public void jitTesting() throws InterruptedException {
int cpt = 0;
while(cpt < 10){
this.doSomething();
TimeUnit.SECONDS.sleep(1L);
... | true |
9be31974707f4d7ba28e37895861a971ecdba493 | Java | shroggle/Shroggle | /src/com/shroggle/presentation/form/filledForms/.svn/text-base/ShowFormRecordsService.java.svn-base | UTF-8 | 6,334 | 1.742188 | 2 | [] | no_license | /*********************************************************************
* *
* Copyright (c) 2007-2011 by Web-Deva. *
* All rights reserved. *
* ... | true |
f5922a62a0eb388908c8abacbaa7eb152b225f27 | Java | wallacejuniorwv/M-todos-Avan-ados-de-Programa-o | /AtividadeBuild/Dough.java | UTF-8 | 154 | 2.171875 | 2 | [] | no_license | package AtividadeBuild;
public enum Dough {
FINA, GROSSA, BORDA_RECHEADA;
public String toString() {
return name().toLowerCase();
}
}
| true |
5c91b702f590a934b0fd8e62d6a420620efb473e | Java | FRC3620/FRC3620_2017_DaVincisCode | /FRC36202017DaVincisCode/src/org/usfirst/frc3620/FRC36202017DaVincisCode/commands/ShiftGearCommand.java | UTF-8 | 1,612 | 2.53125 | 3 | [] | no_license | package org.usfirst.frc3620.FRC36202017DaVincisCode.commands;
import org.usfirst.frc3620.FRC36202017DaVincisCode.Robot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
*
*/
public class ShiftGearCommand extends Command {
public ShiftGearCommand() {... | true |
3a37e77dc16c4efe74303b805406c192cb5e25d1 | Java | deyanskiq/TaskManager | /manager/src/main/java/manager/model/Course.java | UTF-8 | 3,535 | 2.5 | 2 | [] | no_license | package manager.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
imp... | true |
7a3cd489a98ef2446c716651d930a375182a2554 | Java | ByeongGil-Jung/Spring-Boot-Basics | /__4_spring-boot-data/src/main/java/com/example/springbootdata/jpa/AccountRepository.java | UTF-8 | 920 | 2.5 | 2 | [] | no_license | package com.example.springbootdata.jpa;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.Optional;
/**
* Created by IntelliJ IDEA.
* Project: spring-boot-start
* ===========================================
* User: ByeongGil Jung
... | true |
0c6c22432bf7fe2870401c3a5f63c555aaba47f5 | Java | dixu11/procedural-console-boardgame | /src/boardgame/logic/movement/MovementType.java | UTF-8 | 143 | 2.09375 | 2 | [] | no_license | package boardgame.logic.movement;
public enum MovementType {
RANDOM,EVENT;
public static final MovementType DEFAULT_TYPE = RANDOM;
}
| true |
6eabfcfa273ede7b899d186f2089a937c82bed66 | Java | huanglongf/enterprise_project | /service-interface-wms/src/main/java/com/jumbo/pms/model/SysInterfaceQueueType.java | UTF-8 | 1,123 | 2.515625 | 3 | [] | no_license | package com.jumbo.pms.model;
public enum SysInterfaceQueueType {
PARCEL_DELIVERED_NOTIFY_PAC(1), //包裹出库通知PAC
PARCEL_CHANGE_STATUS_NOTIFY_PAC(2), //包裹状态更新通知PAC
PARCEL_PICK_UP_NOTIFY(3), //通知快递上门取件
PARCEL_DELIVERED_NOTIFY_SHOPDOG(4), //包裹出库通知SD
PARCEL_DELIVERED_NOTIFY_SD(5); //包裹出库通知SD
private int value;
... | true |
04ef169bb161c30e05b58e7cb03d4236aa28b393 | Java | karsaii/thorium-selenium | /src/main/java/com/neathorium/framework/selenium/namespaces/WaitPredicateFunctions.java | UTF-8 | 1,059 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.neathorium.framework.selenium.namespaces;
import com.neathorium.framework.selenium.namespaces.utilities.SeleniumUtilities;
import com.neathorium.framework.selenium.records.lazy.LazyElement;
import com.neathorium.core.extensions.namespaces.CoreUtilities;
import com.neathorium.core.namespaces.predicates.Data... | true |
a225d720c2d7d277a464979bc14e1877f6e02f70 | Java | adnanbf/MobileCibodas | /app/src/main/java/com/example/ngapap/cibodas/Model/Reservation.java | UTF-8 | 6,671 | 2.359375 | 2 | [] | no_license | package com.example.ngapap.cibodas.Model;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by user on 04/05/2016.
*/
public class Reservation implements Serializable {
private S... | true |
e0429c4f77c03220432eeb6093a7aaab16553f4e | Java | DevilzOwn/AbstractFactory | /src/main/java/com/factory/abstractfactory/store/NYPizzaStore.java | UTF-8 | 1,003 | 2.9375 | 3 | [] | no_license | package com.factory.abstractfactory.store;
import com.factory.abstractfactory.factories.CaliforniaPizzaFactory;
import com.factory.abstractfactory.factories.NYPizzaFactory;
import com.factory.abstractfactory.pizza.CheesePizza;
import com.factory.abstractfactory.pizza.ClamPizza;
import com.factory.abstractfactory.pizza... | true |
5e1b17ad14e639dd439fa20a8e7e1024d875e347 | Java | panyongjiang/project | /secSituationAPI_GX/src/main/java/com/uway/mobile/service/impl/UserServiceImpl.java | UTF-8 | 1,777 | 2.3125 | 2 | [] | no_license | package com.uway.mobile.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.DigestUtils;
import com.uway.mobile.common.Constance;
import com.uway.mobile.common.Result;
... | true |
4483ad372fab03f9ea71832b115c9cf4f9faaafd | Java | cristiantanas/Incidencies-2.0 | /androidclient/src/org/uab/android/eventreporter/GeneralIncDetailActivity.java | UTF-8 | 4,989 | 2.09375 | 2 | [
"MIT"
] | permissive | package org.uab.android.eventreporter;
import org.apache.commons.codec.binary.Base64;
import org.uab.android.eventreporter.lists.GeneralIncCommentsActivity;
import org.uab.android.eventreporter.net.NetworkUtils;
import org.uab.android.eventreporter.utils.GeneralNotification;
import org.uab.android.eventreporter.utils.... | true |
75af97cda5d4788e2cb212d03ce7e174220bf58c | Java | RedElect/ses-server | /ses-app/ses-web-website/src/main/java/com/redescooter/ses/web/website/vo/payment/InstallmentPayResult.java | UTF-8 | 621 | 1.820313 | 2 | [
"MIT"
] | permissive | package com.redescooter.ses.web.website.vo.payment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @Description
* @Author Chris
* @Date 2021/4/27 18:01
*/
@Data
@EqualsAndHashCode
public class In... | true |
e253c5ae9b9dada36808172f8b7cc5fa1592d094 | Java | GabrielAmerico/TrabalhoJavaUP | /ReceitaDaVovo/src/view/ReceitaView.java | UTF-8 | 6,342 | 2.609375 | 3 | [] | no_license | package view;
import Controller.ReceitaController;
import dal.conexaoList;
import interfaces.PadraoView;
import java.util.ArrayList;
import java.util.Scanner;
import model.MateriaPrima;
import model.Receita;
public class ReceitaView implements PadraoView {
private static Scanner scan = new Scanner(Sy... | true |
b82ba9c2d6aa17f312d87454fa666589fd38770f | Java | massimilianopolito/AutonomyProject | /AutonomyReportProject/src/model/LogThreadStruttura.java | UTF-8 | 1,295 | 2.484375 | 2 | [] | no_license | package model;
import java.sql.Timestamp;
public class LogThreadStruttura {
public static String INFO = "INFO";
public static String WARNING = "WARN";
public static String ERROR = "ERROR";
private String ID;
private Timestamp dataEsecuzione;
private String idQueryEseguita;
private String livello;... | true |
6895979d0c2ccd455697176477807e7abac68659 | Java | gexiaotong1994/wapple | /src/main/java/com/wapple/common/Json.java | UTF-8 | 764 | 2.375 | 2 | [] | no_license | package com.wapple.common;
import lombok.Getter;
@Getter
public class Json<T> {
private boolean success;
private String msg;
private T data;
@SuppressWarnings("unused")
private Json() {
}
public Json(boolean suc) {
this.success = suc;
}
public Json(boolean suc, T data) {
this.succ... | true |
2d3c8d03569dff9709de474c7bac86317512e581 | Java | kulik/crop-tool | /app/src/main/java/com/tac/cropsample/MainActivity.java | UTF-8 | 6,809 | 1.882813 | 2 | [] | no_license | package com.tac.cropsample;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android... | true |
30091e334c9c1e0f8369f035b5303139ae5ae824 | Java | gupengcheng/MeinvxiuPro | /app/src/main/java/com/gpc/meinvxiupro/fragments/MeFragment.java | UTF-8 | 3,434 | 2 | 2 | [
"MIT"
] | permissive | package com.gpc.meinvxiupro.fragments;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.gpc.meinvxiupro.R;
import com.gpc.meinvxiupro.activities.AboutUsActivity;
import com.gpc.meinvxiupro.activities.FeedbackActivity;
import com.gpc.meinvxiupro.activities.MyCollectActivit... | true |
131200755f4df83306ab0e3e7f2b6bafa95f35e5 | Java | brajeev333/springpoceclipse | /src/main/java/com/hcl/demo/dataobject/Vpbv05Wrapper.java | UTF-8 | 2,178 | 1.945313 | 2 | [] | no_license | package com.hcl.demo.dataobject;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/*************************************************************************
*
* HCL CONFIDENTIAL
* _________________________________________________________________________________... | true |
1692354962a26e57f7842e656265499e1e5fca5b | Java | Sprotte/Computergrafik-1-Raytracer-Java | /src/cgm/Demo/ImageSaver.java | IBM852 | 4,357 | 3.15625 | 3 | [] | no_license | package cgm.Aufgaben;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
impor... | true |
157feedc1fff545f9dd5c26367d3689ea1cc485f | Java | MattiBSH/startcode | /src/main/java/rest/MovieResource.java | UTF-8 | 1,613 | 2.484375 | 2 | [] | no_license | package rest;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import entities.Movie;
import utils.EMF_Creator;
import facades.MovieFarcade;
import javax.persistence.EntityManagerFactory;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import ... | true |
bc9a6e1d0353998520ff8ee9e925e23052d2c0c4 | Java | metno/kvjava | /kvutil/src/main/java/no/met/kvutil/dbutil/SqlHelper/SqlHelperMain.java | UTF-8 | 3,569 | 2.328125 | 2 | [] | no_license | /*
Kvalobs - Free Quality Control Software for Meteorological Observations
$Id: SqlHelperMain.java,v 1.1.2.3 2007/09/27 09:02:42 paule Exp $
Copyright (C) 2007 met.no
Contact information:
Norwegian Meteorological Institute
Box 43 Blindern
0313 OSL... | true |
aa63d4bcbbf607b95a0e6d724fc06dc9f82bb848 | Java | tiancaizaiyou/hello | /src/cn/anygloble/clone/CloneTest.java | UTF-8 | 456 | 2.78125 | 3 | [] | no_license | package cn.anygloble.clone;
public class CloneTest {
public static void main(String[] args) throws CloneNotSupportedException {
Book book = new Book("数学");
StudentClone stu1 = new StudentClone("11",12,book);
StudentClone stu2 = stu1.clone();
book.setBookname("语文");
stu2.setA... | true |
46807425fe7be75f90c8eece88c080696d2d2693 | Java | brunollopes/testgraphsql | /src/main/java/io/zeebe/App.java | UTF-8 | 3,608 | 2.203125 | 2 | [] | no_license | package io.zeebe;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import graphql.ExceptionWhileDa... | true |
a71aca8bf8e72a98fb44564acf67da35039f7f4a | Java | f27/qa_api_ui_tests | /src/test/java/tests/ShopTests.java | UTF-8 | 1,035 | 2.328125 | 2 | [] | no_license | package tests;
import io.qameta.allure.Owner;
import org.junit.jupiter.api.*;
import tests.steps.ApiSteps;
@Owner("f27")
@DisplayName("Shop tests")
public class ShopTests extends TestBase {
@Test
@Tag("API")
@DisplayName("Add to cart from catalog via API")
void addSimpleItemToCartTest() {
Str... | true |
bc43fc0a709b986fdeb015127c89853e9e539f6d | Java | SHINDONGDONG/Springboot-JPA-Project | /src/main/java/com/cos/blog1/repository/BoardRepository1.java | UTF-8 | 307 | 1.820313 | 2 | [] | no_license | package com.cos.blog1.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.cos.blog1.model.Board1;
public interface BoardRepository1 extends JpaRepository<Board1, Integer>{ //이 테이블을 관리하는 것은 user1이고 프라이머리키는 integer이다 라는
}
| true |
1b1f8ce564918adf6a0a4e214e775d332dd8b6de | Java | HHHHH-Y/Data-Structure | /数据结构/二叉树/src/traverse/BinaryTree.java | UTF-8 | 6,014 | 4.125 | 4 | [] | no_license | package traverse;
/**
* Created with IntelliJ IDEA.
* Description: 二叉树的 4 种遍历方式 ( 在遍历的时候, 打印的之一都是根节点 ) :
* 1. 前序遍历 / 先根遍历: 根 -> 左 -> 右
* 2. 中序遍历: 左 -> 根 -> 右
* 3. 后序遍历 左 -> 右 -> 根
* User: HHH.Y
* Date: 2020-05-16
*/
class Node {
public char val;
public Node left;
public Node right;
public Node... | true |
7aab2f51debef8b15f23df42189555212f4d6b43 | Java | Danayal0902/SD3_Practical_Exercises | /workspace/SD3-wk5/src/Decaff.java | UTF-8 | 172 | 2.171875 | 2 | [] | no_license |
public class Decaff extends Coffee {
public Decaff() {
setDescription("Decaff");
}
public double cost() {
// TODO Auto-generated method stub
return 2.89;
}
}
| true |
dd4bbd8f888b9860d97af49ab2ed8f91c60061db | Java | jdzero/meal-time | /backend/src/main/java/com/techelevator/dao/JdbcMealPlanDao.java | UTF-8 | 11,175 | 2.671875 | 3 | [] | no_license | package com.techelevator.dao;
import com.techelevator.model.*;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.*;
@Service
public c... | true |
45dc03714d95f28db987445fde2e3ae69aec1dde | Java | jnozsc/gettext | /Simple-Android-OCR/src/com/gettext/MyDatabase.java | UTF-8 | 2,632 | 2.6875 | 3 | [] | no_license | package com.gettext;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class... | true |
8bb4c20d0c5c2bbed260ef20161654c06078776c | Java | shirbal/The-Ruta | /src/com/maintabs/CameraTab.java | UTF-8 | 1,898 | 2.640625 | 3 | [] | no_license | package com.maintabs;
import com.security.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
//import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
/**Responsible f... | true |
5e265793ec67959650bba0f42e2cd5f4f45e0906 | Java | jasonrogena/charaza | /src/com/charaza/resources/DatabaseHelper.java | UTF-8 | 4,902 | 2.3125 | 2 | [] | no_license | package com.charaza.resources;
import java.io.Serializable;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
public class DatabaseHelper extend... | true |
473bc3f1a94818230bf070dc2a8dadfc03b27c5b | Java | steveharwell1/Hotel_Booking_Swing | /src/views/VacantView.java | UTF-8 | 2,305 | 2.3125 | 2 | [] | no_license | package views;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.time.LocalDate;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import controlers.LoginListener;
import controlers.UserEvent;
import models.Room;
import ... | true |
c78b26588749db39a690b562192c2538a22ebb38 | Java | GSon02/Test2_sonagph14343 | /app/src/main/java/com/example/test2_sonagph14343/MainActivity.java | UTF-8 | 1,162 | 2.0625 | 2 | [] | no_license | package com.example.test2_sonagph14343;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
public class MainActivity extends App... | true |
1b2b047554d20f1e1df02265723211e0ba4dea74 | Java | nec-baas/baas-client-android | /android/src/main/java/com/nec/jp/sde4sd/commons/db/sqlite/BaseKey.java | UTF-8 | 448 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* NEC Mobile Backend Platform
*
* Copyright (c) 2013-2018, NEC Corporation.
*/
package com.nec.jp.sde4sd.commons.db.sqlite;
/**
* データベースの暗号化キーのベースとなる文字列を管理するクラス。
*/
public class BaseKey {
/**
* データベースの暗号化キーのベースとなる文字列。プロジェクトに合わせて設定必要。
*/
public static final String CIPHER_BASE_KEY = "NEC";
}
| true |
d0eda9a48f8fa8cdc707ba3d77980660390ad94a | Java | WestRamos/VisEditor | /Editor/src/com/kotcrab/vis/editor/serializer/SpriterComponentSerializer.java | UTF-8 | 2,816 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014-2015 See AUTHORS file.
*
* 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 agr... | true |
2113814bfc8949066ed1833a4fea3602d42c14ea | Java | Jamen1147/Group-1 | /UTSLoanApp/app/src/main/java/com/sep/utsloanapp/activities/studentMyFormsActivity/StudentMyFormsContract.java | UTF-8 | 1,105 | 2.4375 | 2 | [] | no_license | package com.sep.utsloanapp.activities.studentMyFormsActivity;
import com.google.firebase.database.DatabaseError;
import com.sep.utsloanapp.activities.utils.BasePresenter;
import com.sep.utsloanapp.activities.utils.BaseView;
import com.sep.utsloanapp.models.Application;
import java.util.ArrayList;
public interface St... | true |
ce4d58e4d10477a46e3c67796ef0259908efaeee | Java | worldsanjeev600/Swagger | /swagger.webservice/src/main/java/com/oneassist/swagger/Bootstrap.java | UTF-8 | 919 | 2.1875 | 2 | [] | no_license | package com.oneassist.swagger;
import io.swagger.jaxrs.config.SwaggerContextService;
import io.swagger.models.Info;
import io.swagger.models.License;
import io.swagger.models.Swagger;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
/**
*
* @author ... | true |
576a6e1b1168b26d55b1b2f58c4387592a96d4df | Java | cdevoto/SyntheticAnalyzerPrototype | /SyntheticAnalyzer/test/com/compuware/apm/ruxit/synth/analyzer/resptime/clock/TestTupleDrivenClockService.java | UTF-8 | 5,349 | 2.4375 | 2 | [] | no_license | package com.compuware.apm.ruxit.synth.analyzer.resptime.clock;
import static com.compuware.apm.ruxit.synth.analyzer.resptime.clock.TupleDrivenClockService.newSimulatedClock;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import java.util.ArrayList;
import java.util.HashSet... | true |
927daa1bc292f59aef50e9d4622ee94d5c6cd67c | Java | neilstevenson/devoxxma2018 | /service-2-transaction/src/main/java/neil/demo/devoxx/TransactionRestController.java | UTF-8 | 2,680 | 2.484375 | 2 | [] | no_license | package neil.demo.devoxx;
import java.util.Collection;
import java.util.Set;
import java.util.TreeSet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.b... | true |
45114a1cb054f26290967d15597d4b4582189019 | Java | Monster155/Last_Hero | /core/src/ru/itlab/lasthero/GameServer/Players/PlayerActor.java | UTF-8 | 3,968 | 2.5 | 2 | [] | no_license | package ru.itlab.lasthero.GameServer.Players;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gd... | true |
4e9b0e561e995e0dd4ec845629153855ab984744 | Java | JellyB/code_back | /tk_code/tiku-essay-app/essay-common/src/main/java/com/huatu/tiku/essay/constant/status/EssayAreaConstant.java | UTF-8 | 1,535 | 2.1875 | 2 | [] | no_license | package com.huatu.tiku.essay.constant.status;
/**
* Created by x6 on 2017/12/3.
*/
public class EssayAreaConstant {
public enum EssayAreaBizStatusEnum {
ONLINE(1, "上线"), INIT(0, "初始化(下线)");
private EssayAreaBizStatusEnum(int bizStatus, String description) {
this.bizStatus = bizS... | true |
bd4c5f2b5724c0e1d627378a623284778ded2a4a | Java | edo-vi/ER | /src/main/java/System/InterfaceFactories/NURInterfaceFactory/NURSearch.java | UTF-8 | 265 | 2.3125 | 2 | [] | no_license | package System.InterfaceFactories.NURInterfaceFactory;
public class NURSearch implements NURInterface {
private String file;
public NURSearch() {
this.file = "/N_Search.fxml";
}
public String getFile() {
return this.file;
}
}
| true |
8e2686c3fc0ea4f268ed0a9776aaa56a209a91aa | Java | Sagardarekar80/KleanCard | /KC/src/com/signup/signuppage.java | UTF-8 | 4,722 | 2.0625 | 2 | [] | no_license | package com.signup;
import java.awt.AWTException;
import java.awt.Robot;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.Firefox... | true |
01d494030cd53f1a3f894e4540e2dff31c492ad2 | Java | apache/ace | /org.apache.ace.client.repository/src/org/apache/ace/client/repository/impl/RepositoryAdminLoginContextImpl.java | UTF-8 | 9,035 | 1.773438 | 2 | [] | no_license | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
5f56986ccb87e56eaaac796040ea1771975788b3 | Java | RomanPo/LuxoftTest | /src/main/java/pages/LoginPage.java | UTF-8 | 1,457 | 2.21875 | 2 | [] | no_license | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util.Array... | true |
38049fb35664864d87df6be4e90c45bb094cb496 | Java | tedneward/Demos | /2009/NFJS/AtlantaFall/Hacking/MelaniePatch/App.java | UTF-8 | 1,733 | 3.0625 | 3 | [] | no_license | import java.io.*;
import java.lang.reflect.*;
import java.net.*;
class CustomObjectInputStream extends ObjectInputStream
{
private ClassLoader classLoader;
public CustomObjectInputStream(InputStream in, ClassLoader classLoader)
throws IOException
{
super(in);
this.c... | true |
c337b9f0820fa73458d560e5ceb07db7c98ac609 | Java | jstarkman/EECS-132 | /projects/2013-10-04/Cash.java | UTF-8 | 4,011 | 3.546875 | 4 | [] | no_license | /**
* James Starkman (jas497)<br/>
* Cash class<br/><br/>
*
* Represents cash on hand ("an account holding money reserves"). Can be used to
* store money and manipulate it. One account per customer.
*/
public class Cash{
//money in account
private double balance = 0.0;
//rate applied to pos bala... | true |
e381964aa4916fd6aba2eba6e2bc42c89d1a1959 | Java | valverdethiago/wallet-hub-java-mysql-test | /parser/src/main/java/com/ef/service/HttpAccessService.java | UTF-8 | 1,797 | 2.5 | 2 | [] | no_license | package com.ef.service;
import com.ef.model.BlockedIp;
import com.ef.model.Duration;
import com.ef.repository.BlockedIpRepository;
import com.ef.repository.HttpAccessRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.NonNull;
import org.springframework.stereotype... | true |
94529ad01896292442376efc1ad1e508ed6f22a0 | Java | wondershow/gsu-zhu-he | /Tennis/WEB-INF/classes/edu/gsu/vis/ReadTennisLogServlet.java | UTF-8 | 22,168 | 2.375 | 2 | [] | no_license | package edu.gsu.vis;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonArray;
import com.google.gson.JsonParser;
import java.net.URL;
import java.net.URLConnection;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java... | true |
ea45a74dfe6b208c94766990fb412e97c844d58e | Java | hudawei996/Taolibao | /app/src/main/java/com/jhs/taolibao/code/market/StockDetailActivity.java | UTF-8 | 12,814 | 1.703125 | 2 | [] | no_license | package com.jhs.taolibao.code.market;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.widget.SwipeRefreshLayout;
import android.v... | true |
5fc65c1e00228bdb227296182c850f20c1b1ef60 | Java | syzh1991/DigitalEarth | /DartEarth/src/org/gfg/dartearth/layer/model3d/.svn/text-base/MaxLoader.java.svn-base | UTF-8 | 12,045 | 2.515625 | 3 | [] | no_license | /*
* MaxLoader.java
*
* Created on February 12, 2008, 10:19 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.gfg.dartearth.layer.model3d;
import java.awt.Color;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStre... | true |
5ca5103c00d89d8645b17e74a208a79c6639ba74 | Java | jsing287/Programming-Labs | /Jsing287_lab02/src/jsing287/Jsing287_lab02_q1.java | UTF-8 | 2,565 | 4.28125 | 4 | [] | no_license | /**
* This class determines if integers are divisors of a reference integer.
* Author: Jasdeep Singh
* Date: February 12, 2019
*/
package jsing287;
import java.util.Scanner;
public class Jsing287_lab02_q1 {
// This method accepts three integer variables and determines if the first variable is divisible by the ... | true |
6fc5aaacca5d5e47d764a8c4a3938f02305e51b3 | Java | JoshuaKoh/2017-StateFarm-CodingCompetitionProblem | /src/main/java/sf/codingcomp/blocks/solution/BuildingBlockImpl.java | UTF-8 | 4,259 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | package sf.codingcomp.blocks.solution;
import java.util.Iterator;
import sf.codingcomp.blocks.BuildingBlock;
import sf.codingcomp.blocks.CircularReferenceException;
public class BuildingBlockImpl implements BuildingBlock {
private BuildingBlock blockAbove;
private BuildingBlock blockBelow;
@Override
public Ite... | true |
0d3f069e98ae7b7df6030648b860ca20f578ccea | Java | env-tools/env-monitor | /env-monitor/env-monitor-provider/src/main/java/org/envtools/monitor/provider/applications/configurable/mapper/ConfigurableModelMapperImpl.java | UTF-8 | 5,015 | 2.21875 | 2 | [] | no_license | package org.envtools.monitor.provider.applications.configurable.mapper;
import org.envtools.monitor.model.applications.*;
import org.envtools.monitor.provider.applications.configurable.model.VersionedApplicationPropertiesXml;
import org.envtools.monitor.provider.applications.configurable.model.VersionedApplicationXml;... | true |
19a7ac18362dc2a3ea01c1aa690ad9d450fdd5c7 | Java | 601695931/sdc | /openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/datatypes/heattotosca/unifiedmodel/consolidation/ConsolidationDataTest.java | UTF-8 | 2,492 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright © 2016-2018 European Support Limited
*
* 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 applica... | true |
277ab2d594ea990abf19b3bf8a4333248e349909 | Java | mkouba/jbugcz01 | /src/test/java/org/jboss/jbug/cz01/servlet/GreetingServlet.java | UTF-8 | 869 | 2.671875 | 3 | [] | no_license | package org.jboss.jbug.cz01.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.Strin... | true |
3da5f6b7371dda034b8f4ed2341b5cdf205626c3 | Java | Harepitlord/MC-Java_2021 | /src/miniProject/StudentManagement/StudentDatabase.java | UTF-8 | 7,511 | 3.40625 | 3 | [] | no_license | package miniProject.StudentManagement;
// To select and open a file using a select dialog box
import edu.duke.FileResource;
// To read the CSV records from the CSV file and store it in the database
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVRecord;
// To use the HashMap and Scanner uti... | true |
09248030ca4755b36d4b4c62d05920ea04b6a602 | Java | ZYF99/flowerRecords2 | /app/src/main/java/com/example/zzyyff/flowerrecords/adapter_wantlist.java | UTF-8 | 6,377 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.example.zzyyff.flowerrecords;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.Ca... | true |
d526066ed12b02109bd7b0bd863692c17353ceb6 | Java | xeraph/kraken | /siem/kraken-eventstorage/src/main/java/org/krakenapps/eventstorage/engine/EventTableRegistryImpl.java | UTF-8 | 5,477 | 2.09375 | 2 | [] | no_license | package org.krakenapps.eventstorage.engine;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.felix... | true |
b5d24fd9e23a60eec62d8272a1748100cb12bf5b | Java | rheehot/spring-webservice1 | /src/main/java/com/rheehot/webservice/dto/posts/PostsSaveRequestDto.java | UTF-8 | 628 | 2.09375 | 2 | [] | no_license | package com.rheehot.webservice.dto.posts;
import com.rheehot.webservice.domain.posts.Posts;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Created by rheehot@gmail.com on 2018-11-19
* Blog : http://jowlee.blog.me
* Github : http://github.com/rheehot
*/
@Getter
@Setter
@NoArgsCo... | true |
de5e1a7e8f68b1244c8fcf004759fb01a8455304 | Java | robertsmit/light-bson | /src/main/java/com/github/light/bson/generator/state/InnerWriteState.java | UTF-8 | 2,891 | 2.546875 | 3 | [] | no_license | package com.github.light.bson.generator.state;
import com.github.light.bson.util.BsonConstants;
import com.github.light.bson.util.BsonOutputStream;
import java.io.IOException;
/**
* Created by rob on 20-10-14.
*/
public abstract class InnerWriteState extends WriteState {
private final WriteState parent;
pr... | true |
117ce901b22e2f3e60ae482880a19acdf634245b | Java | bhumo/StyleTwo | /WEB-INF/classes/com/thinking/machines/school/dao/DAOConnection.java | UTF-8 | 444 | 2.328125 | 2 | [] | no_license | package com.thinking.machines.school.dao;
import com.thinking.machines.school.dao.*;
import java.sql.*;
public class DAOConnection
{
public static Connection getConnection() throws DAOException
{
try
{
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection c = DriverManager.getConnection("jdbc:derb... | true |
d1bae1113ecb24687eaf0b5c95c04b36bf9d5742 | Java | NinoWang01/OldDemo | /day4/ShuZuTest/src/com/pb/a/ShuZuMaxAndMin.java | GB18030 | 536 | 3.109375 | 3 | [] | no_license | package com.pb.a;
public class ShuZuMaxAndMin {
public static int[] a = { 10, 5, 200, 8, 3, 90 };
// 0 1 2 3 4 5
public static int b;
public static int i;
public static int j;
public static void main(String[] args) {
for (j = 0; j < a.length ; j++) {
for (i = 0; i < a.length -j- 1; i++) {
/*
* ... | true |
a14c77457653a38c6c277e6237f15aca803625e1 | Java | maojimin/code-libray | /src/main/sevenstar_new/persistentframework/org/sevenstar/persistent/db/ibatis/IbatisHelper.java | UTF-8 | 2,142 | 2.1875 | 2 | [] | no_license | package org.sevenstar.persistent.db.ibatis;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import o... | true |
3a906b741dbf047691522e934d72a3f6fc7835f0 | Java | jackcailj/ddreader | /src/main/java/com/dangdang/readerV5/bookstore/Block.java | UTF-8 | 8,264 | 2.171875 | 2 | [] | no_license | package com.dangdang.readerV5.bookstore;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.dangdang.autotest.common.FixtureBase;
import com.dangdang.ddframework.dataverify.ExpressionVerif... | true |
223e93ab62f4c19680593dd51497a342e0b9890b | Java | sunzhongqiang/system | /src/main/java/com/mmk/system/dao/impl/OrganizationDaoImpl.java | UTF-8 | 3,340 | 2.015625 | 2 | [] | no_license | /*
*
* OrganizationDaoImpl 创建于 2016-10-24 10:07:36 版权归作者和作者当前组织所有
*/
package com.mmk.system.dao.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.data.domain.Page... | true |
80b4cd9083077b9d779b1ba843cfd6be35ebae4a | Java | txrx-research/teku | /validator/client/src/test/java/tech/pegasys/teku/validator/client/BlockDutySchedulerTest.java | UTF-8 | 10,041 | 1.625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright 2020 ConsenSys AG.
*
* 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 wr... | true |
e3f38c3502fa7dd77ed2dd2bf96397da59c12488 | Java | chenhua-China/common | /src/main/java/com/chenhua/common/service/BaseService.java | UTF-8 | 856 | 2.03125 | 2 | [] | no_license | package com.chenhua.common.service;
import com.chenhua.common.model.Model;
import com.chenhua.common.model.PageParam;
import com.chenhua.common.model.PageResult;
/**
* 公共的服务类
* @auther chp
* @date 2018年12月3日12:24:37
* @param <T>
*/
public interface BaseService<T extends Model> {
/**
* 获取记录
* @para... | true |
1a3a7daf5a83bf79a5727b2e76077000f7f8619d | Java | inngvar/spring-social-vkontakte | /spring-social-vkontakte/src/main/java/org/springframework/social/vkontakte/api/IGroupsOperations.java | UTF-8 | 2,785 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package org.springframework.social.vkontakte.api;
import java.util.Collection;
import java.util.List;
/**
* Defines operations for interacting with a user's groups.
* @author dIsoVi
*/
public interface IGroupsOperations {
List<Group> getGroups();
List<Group> getGroups(long offset, long count);
List<G... | true |
127bf8d73cb0c641a966cc75a6c69d53f2651845 | Java | max827/Recommendation-system | /src/main/java/com/yan/movielens/annotation/util/RunTime.java | UTF-8 | 790 | 2.78125 | 3 | [] | no_license | package com.yan.movielens.annotation.util;
import com.yan.movielens.annotation.Time;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class RunTime {
public static void runTime(Object object) throws InvocationTargetException, IllegalAccessException {
Method[... | true |
e6cec2d29b50a3d404130f62d1c1ae1cb9dd1cda | Java | burketr/RobotRace | /src/RaceLab_C.java | UTF-8 | 668 | 3.515625 | 4 | [] | no_license | import edu.fcps.karel2.Display;
import edu.fcps.karel2.Robot;
/**
* Creates multiple Robots and makes them race across the screen
*
* Can you find examples of weak coding?
*
* @author Kent Collins
* @version 8 December, 2014
*
*/
public class RaceLab_C {
public static void main(String[] args) {
Display... | true |
60d6d6cfde94eab32162762aa6530cdd6a0a4f21 | Java | alldatacenter/alldata | /studio/micro-services/tis/tis-3.7.2/tis-manage-pojo/src/main/java/com/qlangtech/tis/fullbuild/phasestatus/impl/BuildSharedPhaseStatus.java | UTF-8 | 2,663 | 2.15625 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "Li... | true |
05f342f2c6b2351e4af42bb05b92fed8544956b0 | Java | brigittapap/Tax-Calculator | /src/main/java/com/taxcalculator/service/InternTaxCalculator.java | UTF-8 | 263 | 2.890625 | 3 | [] | no_license | package com.taxcalculator.service;
public class InternTaxCalculator implements TaxCalculator {
public static final double INCOME_TAX_PERCENTAGE = 16;
public double calculate(double salary) {
return salary * INCOME_TAX_PERCENTAGE / 100;
}
}
| true |
3e1fe043737bd80b242a693cbc03134dfcd98833 | Java | manudubinsky/simymod-2017-2c | /geneticos/resolucion/matias/Profesor.java | UTF-8 | 1,237 | 2.578125 | 3 | [] | no_license | package sistema;
import java.util.ArrayList;
public class Profesor {
private int idProfesor;
private String nombreProfesor;
private ArrayList<DiaTurno> diasTurnosProfesor = new ArrayList<DiaTurno>();
private ArrayList<Integer> materiasProfesor = new ArrayList<Integer>();
public Profesor() {}
public Profes... | true |
66f23983dc9f85a541b527811b002fa3c426cfcd | Java | ArvinHu/myNavicat | /src/main/java/com/milla/navicat/constant/ValueConstant.java | UTF-8 | 608 | 2.125 | 2 | [] | no_license | package com.milla.navicat.constant;
/**
* @Package: com.milla.navicat.constant
* @Description: <值常量>
* @Author: MILLA
* @CreateDate: 2019/8/28 16:53
* @UpdateUser: MILLA
* @UpdateDate: 2019/8/28 16:53
* @UpdateRemark: <>
* @Version: 1.0
*/
public final class ValueConstant {
/**
* yes 字符串
*/
... | true |
1ca64401ef6fc86de7a7dd07faa3408352f47984 | Java | rogojagad/RAnalyzer | /src/ranalyzer/Statement.java | UTF-8 | 801 | 2.40625 | 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 ranalyzer;
/**
*
* @author 5115100168
*/
public class Statement {
public String Id_statement;
public String Nama_st... | true |
97e85eaf1d2eea5203b45e619f38adc9d20d6de2 | Java | wzhw2008/common-generator | /src/main/resources/template/all/src/main/java/${basepackage_dir}/listener/InitEnvironmentListener.java | UTF-8 | 4,646 | 2.5 | 2 | [] | no_license | <#include "/java_copyright.include">
<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
package ${basepackage}.listener;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.InputStream;
imp... | true |
5825a6560b3df636f34830462e660a8b3a34b541 | Java | lqsavage/springBoot | /springboot-shiro2/src/main/java/cn/abel/rest/shiro/credentials/ThirdPartySupportedToken.java | UTF-8 | 1,943 | 2.5625 | 3 | [] | no_license | package cn.abel.rest.shiro.credentials;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.springframework.stereotype.Component;
/**
* 支持第三方登录的shiro token。
*/
public class ThirdPartySupportedToken extends UsernamePasswordToken {
private String username;
private char[] password;
private bool... | true |
5428f93dbda51d67f986b26774f08960554e2367 | Java | deoxyseia/vindbrein-java | /src/main/java/vindbrein/service/ActividadAcademicaService.java | UTF-8 | 521 | 2 | 2 | [] | no_license | package vindbrein.service;
import java.util.ArrayList;
import vindbrein.domain.model.ActividadAcademica;
public interface ActividadAcademicaService {
public void addActividadAcademica(ActividadAcademica actividadAcademica);
public void updateActividadAcademica(ActividadAcademica actividadAcademica);
public vo... | true |
9d2c72b9cb151deb4c82c6d6a965290754d7fdb4 | Java | leopold89/test | /src/main/java/test/TestTaskWiki/service/Parser.java | UTF-8 | 835 | 2.390625 | 2 | [] | no_license | package test.TestTaskWiki.service;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import test.TestTaskWiki.model.Offer;
public class Parser {
private Parser() {}
public static Map<Integer, Offer> parse(String f... | true |