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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0e7e8ae81665725275c9da6e3d5672efb5727587 | Java | UnstoppableN/Invasion-mod | /src/main/java/invmod/common/entity/PathNode.java | UTF-8 | 2,620 | 2.84375 | 3 | [] | no_license | package invmod.common.entity;
import invmod.common.util.IPosition;
import net.minecraft.util.MathHelper;
public class PathNode
implements IPosition {
public final int xCoord;
public final int yCoord;
public final int zCoord;
public final PathAction action;
private final int hash;
publi... | true |
937dbd7247ae66a6c2cd22f7c7afc14ba614f765 | Java | gyongyiovics/piratesDB | /src/main/java/application/models/Ship.java | UTF-8 | 1,821 | 2.96875 | 3 | [] | no_license | package application.models;
import java.util.List;
import java.util.Map;
public class Ship {
private int id;
private String name;
private int attackPower;
private int state;
//TODO: final fields and sql?
private final String weapon = "CANNON";
private final int cannonDamage = 25;
priva... | true |
2c48be15ce18c23df4ed5659c3bf55f40a42e872 | Java | BaiMaGod/buwangjiServer | /src/com/ttxs/buwangji/bean/UserTask.java | UTF-8 | 2,558 | 2.171875 | 2 | [] | no_license | /**
* @author yc
* @parameter
*/
package com.ttxs.buwangji.bean;
/**
* @author Administrator
*
*/
public class UserTask {
private String id;
private int taskCount;
private int finishCount;
private int taskDays;
private int finishDays;
private int issueCount;
private String updateTime;
... | true |
79a76772cb6ea9e0c399673a88a4632a13c9ad15 | Java | kmajetic/TinyLayerAroundGit | /src/tinylayeraroundgit/actions/GitGuiAction.java | UTF-8 | 1,427 | 1.859375 | 2 | [] | no_license | package tinylayeraroundgit.actions;
import java.util.List;
import java.util.logging.Logger;
import org.eclipse.core.internal.resources.Folder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.jface.action.IAction;
impo... | true |
c209c8a83d186534d337163928c246422198ab3c | Java | zhmdlmag/OOP-Intranet | /WSP/src/Tester/TestClass.java | UTF-8 | 1,168 | 2.390625 | 2 | [] | no_license | package Tester;
import java.util.Collections;
import java.util.Comparator;
import Enums.Faculty;
import Enums.PeriodOfStudy;
import Enums.State;
import Exceptions.InvalidMarkException;
import Intranet.Course;
import Intranet.DataBase;
import Intranet.IOUtils;
import Intranet.Student;
import Intranet.TableBuilder;
im... | true |
c321f438db7aae90605db175fe5b385df928cd14 | Java | liebeDY/EZ_Kit | /project_EZ_Kit/EZ_Kit/src/main/java/com/project/ezkit/user/UserMapper.java | UTF-8 | 452 | 1.734375 | 2 | [] | no_license | package com.project.ezkit.user;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserMapper {
void insertUser(User u);
User selectUserById(String user_id);
User selectUserByNick(String user_nick);
void updateUser(User u);
void updateUserRatin... | true |
e7b0956df5854cb88a4406a6672e1675b35ce812 | Java | qweetar/travel_agency_task2 | /src/main/java/ru/myfirstwebsite/dao/impl/CountryDaoImpl.java | UTF-8 | 2,398 | 2.515625 | 3 | [] | no_license | package ru.myfirstwebsite.dao.impl;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.query.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframe... | true |
27f3ba796af40ec5adb62db3479da48b7645a852 | Java | saymatrisha/OnlineDoctorAppointmentSite | /src/com/appoinment/DocUpdateServlet.java | UTF-8 | 2,847 | 2.25 | 2 | [] | no_license | package com.appoinment;
import java.io.IOException;
import java.sql.PreparedStatement;
import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http... | true |
bd04647cac1fd7a4dc779acbe1c4f169db3d2a2c | Java | renansantosmendes/PhD_MOEAD_02 | /src/main/java/Problems/DTLZ5.java | UTF-8 | 3,345 | 2.875 | 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 Problems;
import Implementations.AbstractDoubleProblem;
import Implementations.DoubleSolution;
import java.util.ArrayList;
imp... | true |
a7f1c85b1030a647299bddf4be270521499410b8 | Java | ReBicycle/Rebicycle_Ver1 | /Rebicycle_Ver1/src/main/java/org/kosta/rebicycle/model/dao/BicycleDAOImpl3.java | UTF-8 | 1,062 | 2.1875 | 2 | [] | no_license | package org.kosta.rebicycle.model.dao;
import java.util.List;
import javax.annotation.Resource;
import org.kosta.rebicycle.model.vo.BicycleVO;
import org.kosta.rebicycle.model.vo.CalendarVO;
import org.kosta.rebicycle.model.vo.RentVO;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework... | true |
2f5c76762758ab2d1152b7665275e7a5ff8dc43c | Java | wsongtiang/Process | /LogIn.java | UTF-8 | 9,824 | 2.34375 | 2 | [] | no_license | package ui;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.font.TextAttribute;
import java.util.Map;
import javax.swing.*;
import domain.*;
import control.*;
import java.sql.C... | true |
7a4b5d5638807b39237eff4c209b01f47f1559fd | Java | nwoodthorpe/BusStop | /Android/app/src/main/java/com/nwoodthorpe/busstop/TutorialMenuListAdapter.java | UTF-8 | 2,454 | 2.296875 | 2 | [] | no_license | package com.nwoodthorpe.busstop;
/**
* Created by Nathaniel on 3/23/2016.
*/
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | true |
1eaedbfc55486b2fbe751f13da7eae04713e9785 | Java | Goju-Ryu/xvm | /javatools/src/main/java/org/xvm/compiler/ast/CmpExpression.java | UTF-8 | 18,021 | 2.03125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"CC-BY-4.0"
] | permissive | package org.xvm.compiler.ast;
import org.xvm.asm.Argument;
import org.xvm.asm.Constant;
import org.xvm.asm.ConstantPool;
import org.xvm.asm.ErrorListener;
import org.xvm.asm.GenericTypeResolver;
import org.xvm.asm.MethodStructure.Code;
import org.xvm.asm.Op;
import org.xvm.asm.OpCondJump;
import org.xvm.asm.OpTest;
... | true |
68cb5047ca044c94418768313b8c36b8e0e6db64 | Java | guimattiello/CofreExemplo | /src/test/java/cucumbertests/CofreTest.java | UTF-8 | 646 | 1.703125 | 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 cucumbertests;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.Test;
import static o... | true |
0d924e24d8ce84517ef07a4664a1de6d73176505 | Java | ShauryaS99/MDBInventory | /app/src/main/java/com/jackie/mdbinventory/Inventory.java | UTF-8 | 1,348 | 2.375 | 2 | [] | no_license | package com.jackie.mdbinventory;
import android.provider.BaseColumns;
/** Represents the purchases made by MDB members.
* @author: Jacqueline Zhang
* @date: 03/05/2019
* */
public final class Inventory {
private Inventory() {}
public static class InventoryEntry implements BaseColumns {
public sta... | true |
fe6474789093adbaa37ed7c606f45c428ddf7411 | Java | recnederland/winter2021turkish | /src/javaProgramlamayaGirisInheritance2/KrediUI.java | UTF-8 | 323 | 2.015625 | 2 | [] | no_license | package javaProgramlamayaGirisInheritance2;
public class KrediUI {
// public void KrediHesapla(OgretmenKrediManager ogretmenKrediManager) {
// ogretmenKrediManager.Hesapla();
// } Bunun yerine asagidaki kullanilabilir
public void KrediHesapla(BaseKrediManager baseKrediManager) {
baseKrediManager.Hesapla();
}
... | true |
b039714ecb2caf260a851fb68b4901492f84b922 | Java | xiezhifeng/mysource | /jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/issue/issuetype/IssueTypeImpl.java | UTF-8 | 2,088 | 1.992188 | 2 | [] | no_license | /*
* Copyright (c) 2002-2004
* All rights reserved.
*/
package com.atlassian.jira.issue.issuetype;
import com.atlassian.jira.avatar.Avatar;
import com.atlassian.jira.avatar.AvatarManager;
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.IssueConstantImpl;
import com.atlassian.... | true |
dfa362ec1711d13e0d3e50596ee7cbd26290c521 | Java | SilverChu/LeetCode | /src/com/legend/easy/ExcelSheetColumnNumber.java | UTF-8 | 664 | 3.734375 | 4 | [] | no_license | package com.legend.easy;
/**
* #171 Given a column title as appear in an Excel sheet, return its
* corresponding column number.
* <p>
* For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28
*/
public class ExcelSheetColumnNumber {
public int titleToNumber(String s) {
int result = 0;
... | true |
c9d11c306ba031259d933ebe2b2338efe3afc86d | Java | leochinaliu/flink-cdc-connectors | /flink-connector-mongodb-cdc/src/main/java/com/alibaba/ververica/cdc/connectors/mongodb/internal/MongoDBCSConnector.java | UTF-8 | 489 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.alibaba.ververica.cdc.connectors.mongodb.internal;
import io.debezium.connector.mongodb.MongoDbConnector;
import org.apache.kafka.connect.connector.Task;
/**
* A Kafka Connect source connector that creates {@link MongoDBCSConnectorTask tasks} that replicate the context of one or more
* MongoDB replica s... | true |
873d857213af015f418fc69cbfaab17cb644fdb7 | Java | lnyhyzy/openapi-sdk-java | /src/main/java/com/xinrenxinshi/XrxsApprovalService.java | UTF-8 | 4,412 | 2.140625 | 2 | [] | no_license | package com.xinrenxinshi;
import com.xinrenxinshi.domain.approval.FlowType;
import com.xinrenxinshi.domain.approval.ProcessFlowInfo;
import com.xinrenxinshi.domain.approval.ProcessStepAndCopyInfo;
import com.xinrenxinshi.exception.ApiException;
import com.xinrenxinshi.openapi.XrxsOpenapiClient;
import com.xinrenxinshi... | true |
ca754b048377fb010682493c310548a90461258b | Java | yuanyixiong/esb | /uippush-client-api/src/main/java/com/sinoif/esb/query/model/dto/ApproveInfoDataDTO.java | UTF-8 | 1,887 | 2.0625 | 2 | [] | no_license | package com.sinoif.esb.query.model.dto;
import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
/**
* <p>待审核数据明细</p>
*
* @author chenxjuc
* @date 2019/11/11
*/
public class ApproveInfoDataDTO implements Serializable {
@JSONField(name = "_id")
private String id;
/***
* 待... | true |
2a9b061928250674250569c71cadc864350d0d93 | Java | AhmedMAghani/Wuzzuf-data-analysis-client | /src/main/java/service/WuzzufServiceImpl.java | UTF-8 | 558 | 2.34375 | 2 | [] | no_license | package service;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.client.Client;
import jakarta.ws.rs.core.MediaType;
@Consumes(MediaType.APPLICATION_JSON)
public class WuzzufServiceImpl implements WuzzufService {
private final Client restClient;
public WuzzufServiceImpl(Client restClient) {
this.... | true |
7f204c0d8334d69d2edfc6f689281521f1cef26c | Java | pralabhkumar/TonY | /tony-core/src/main/java/com/linkedin/tony/models/JobEvent.java | UTF-8 | 1,041 | 2.453125 | 2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | /**
* Copyright 2018 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.tony.models;
import com.linkedin.tony.events.Event;
import com.linkedin.tony.events.EventType;
import java.util.Date;
public c... | true |
e3aad7837fb9d06979985d146471961628a9420d | Java | pptsagar279/smps | /app/src/main/java/com/example/spasbynituk/student.java | UTF-8 | 2,952 | 2.03125 | 2 | [] | no_license | package com.example.spasbynituk;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import com.example.spasbynituk.databinding.ActivityS... | true |
9e7481fc2ba3c6e87207446008b2c18d050f54c3 | Java | lukspv/MoradoresHome | /src/modelo/dao/ApartamentoDao.java | UTF-8 | 7,678 | 2.25 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package modelo.dao;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Paragraph;... | true |
271d8e30f7e0bce31733d5e0ce01113bf4121e5a | Java | Tylian/labelmaker | /src/main/java/net/tylian/labelmaker/common/labels/Label.java | UTF-8 | 5,496 | 2.28125 | 2 | [] | no_license | package net.tylian.labelmaker.common.labels;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.rendere... | true |
17bf0b609ebad8db9e87356a9c80f3b1aed4d9bd | Java | peace710/AJLife | /ALifeRxJava/src/main/java/me/peace/rx/java/combining/CombinLatest.java | UTF-8 | 1,120 | 2.890625 | 3 | [] | no_license | package me.peace.rx.java.combining;
import io.reactivex.rxjava3.core.Observable;
import io.reactivex.rxjava3.functions.BiFunction;
import io.reactivex.rxjava3.functions.Consumer;
import me.peace.rx.LogUtils;
public class CombinLatest {
private static final String TAG = "CombinLatest";
public static void main... | true |
c3f0ad5590e8438323a8f4a331072329f480d52e | Java | MrBlackk/fix-me | /broker/src/main/java/com/mrb/fixme/broker/handler/ResultTagValidator.java | UTF-8 | 891 | 2.34375 | 2 | [] | no_license | package com.mrb.fixme.broker.handler;
import com.mrb.fixme.core.Core;
import com.mrb.fixme.core.FixTag;
import com.mrb.fixme.core.Result;
import com.mrb.fixme.core.exception.WrongFixTagException;
import com.mrb.fixme.core.handler.BaseMessageHandler;
import java.nio.channels.AsynchronousSocketChannel;
public class Re... | true |
1de4ad52be090e659b0e07ff0d53d53ba20b77a4 | Java | nothize/COWARD | /src/main/java/coward/big2/card/Suit.java | UTF-8 | 105 | 1.640625 | 2 | [] | no_license | package coward.big2.card;
public enum Suit {
SPADE__, //
HEART__, //
CLUB___, //
DIAMOND, //
;
}
| true |
4e66fcf751c32e3d225b264a2a950689940dbc9f | Java | LJIJCJ/Test | /src/com/homework/Super.java | GB18030 | 112 | 1.804688 | 2 | [
"MIT"
] | permissive | package com.homework;
public class Super {
public Super() {
System.out.println("ó");
}
}
| true |
df39126aa1effe571b5ec4111f5c2f36e6693e10 | Java | YuraLukyanov/versionsComparator | /src/main/java/yura/lukyanov/versionsComparator/hibernate/model/AttrObjectTypeID.java | UTF-8 | 937 | 2.125 | 2 | [] | no_license | package yura.lukyanov.versionsComparator.hibernate.model;
import javax.persistence.Embeddable;
import javax.persistence.ManyToOne;
/**
* Created by yuriylukyanov on 3/25/15.
*/
@Embeddable
public class AttrObjectTypeID implements java.io.Serializable {
private ObjectType objectType;
private Attribute attr;... | true |
b72ec3d6e1b99bdda6a640d5259c850f25a1ddbf | Java | hyoGirl/companyCode | /Buiness-Log/src/main/java/com/business/log/service/UserService.java | UTF-8 | 450 | 1.859375 | 2 | [] | no_license | package com.business.log.service;
import com.business.log.pojo.User;
import java.util.List;
/**
* @Auther: Administrator
* @Date: 2018/8/2 0002 10:58
* @Description:
*/
public interface UserService {
List<User> findAllUser();
User findUserById(long id);
void deleteUserById... | true |
a5fe4e0db7b34a4b4bfdcc024020824e4d17c79b | Java | fankbulli/util-play | /src/dos/Demo1.java | UTF-8 | 341 | 1.882813 | 2 | [] | no_license | package dos;
import java.io.IOException;
public class Demo1 {
public static void main(String[] args) {
try {
Runtime.getRuntime ().exec ("ffmpeg -i C:\\Users\\zxd\\qq.mp4 -vframes 30 -y -f gif C:\\Users\\zxd\\a.gif ");
} catch (IOException e) {
e.printStackTrace ();
... | true |
c8ab4812f4f2395069fd06c4a9d0f88549914314 | Java | avikabra/gradebook-final | /Gradebook.java | UTF-8 | 15,331 | 3.28125 | 3 | [] | no_license | import java.util.Scanner;
public class Gradebook {
public static void main(String []args) {
//variable declaration and initialization
String classTemp;
String creditsHolder;
String creditsTemp;
boolean classSizeReq = false;
boolean classesReq = false;
b... | true |
687b61e903fbc85dc1cbb5c952a90f694663bfc8 | Java | ssunyoung/Capstone | /Capstone/src/main/java/com/ssun/everybook/HomeController.java | UTF-8 | 1,522 | 2.28125 | 2 | [] | no_license | package com.ssun.everybook;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.anno... | true |
0900cbfda85a1b74e70750f8c34aa51a64154c8f | Java | moutainhigh/cloudconfig | /kuangchi/java/com/kuangchi/sdd/visitorConsole/checkUserLogin/service/impl/CheckUserLoginServiceImpl.java | UTF-8 | 4,964 | 1.992188 | 2 | [] | no_license | package com.kuangchi.sdd.visitorConsole.checkUserLogin.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.kuangchi.sdd.visitorConsole.checkUserLogin.dao.CheckUserLoginDao;
import com.kuangch... | true |
b5bf2ac58fedd79e9071342bd2c3c42e0a24a364 | Java | Black-Garlic/sandaerosrc | /src/main/java/com/sangdaero/walab/user/domain/repository/UserRepository.java | UTF-8 | 1,336 | 1.859375 | 2 | [] | no_license | package com.sangdaero.walab.user.domain.repository;
import com.sangdaero.walab.common.entity.User;
import com.sangdaero.walab.user.application.dto.SimpleUser;
import com.sangdaero.walab.user.application.dto.VolunteerRanking;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;... | true |
81310e4b79077fbf879e0937a015ec413eff37ab | Java | Kyoo32/NEXT2015-2 | /java/java0710/src/Manager.java | UTF-8 | 257 | 2.578125 | 3 | [] | no_license |
public class Manager extends Employee {
public String department;
public int i = 20;
public Manager(String name){
super(name);
//System.out.println("Manager()");
}
public String getDetail(){
return super.getDetail() + department ;
}
}
| true |
d719fbda45fb92237b3e237dfa9886413125d011 | Java | swapnilKurve20/SpringBoot-JPA-Demo | /demo/src/main/java/com/example/demo/rest/PostController.java | UTF-8 | 3,111 | 2.265625 | 2 | [] | no_license | package com.example.demo.rest;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.... | true |
2e3b95a5633437e0e5f0ef998781a83aec248d81 | Java | SMARTRACTECHNOLOGY/smartcosmos-edge-things | /src/test/java/net/smartcosmos/edge/things/service/metadata/DeleteMetadataRestServiceDefaultTest.java | UTF-8 | 3,269 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package net.smartcosmos.edge.things.service.metadata;
import org.junit.*;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.http.HttpStatus;
import org.springframework.http.Resp... | true |
3f384f1ba8e9bac6a9e71878a6a3cc3c009b72fd | Java | Vyacheslav-Lapin/spring-fundamwntals5 | /src/main/java/ru/vlapin/courses/spring/springfundamentals5/Country.java | UTF-8 | 663 | 2.296875 | 2 | [] | no_license | package ru.vlapin.courses.spring.springfundamentals5;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import lombok.experimental.FieldNameConstants;
import ru.vlapin.courses.spring.springfundamentals5.dao.Identifiable... | true |
1c05c234a00c10b4a7707a1d9df13669500889f8 | Java | JaneMoskalenko/CourseProjectApp | /app/src/main/java/com/example/admin/courseproject/View/activity/TranslateActivity.java | UTF-8 | 2,109 | 2.140625 | 2 | [] | no_license | package com.example.admin.courseproject.View.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.examp... | true |
d4e896197d3b2ca5d02e4453cd5f721fec3795bc | Java | Nacho-Fili/Learning-to-read-sheet-music | /src/main/java/com/learningsheetmusic/app/repository/UserRepository.java | UTF-8 | 501 | 2.03125 | 2 | [] | no_license | package com.learningsheetmusic.app.repository;
import com.learningsheetmusic.app.entity.MyUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;
@Repository
public interface UserRepository extends JpaRepo... | true |
3b6fc125bfa850cb90259148c0994c135457d135 | Java | liestory/spring-tablegame | /table-game-auth-api/src/main/java/ru/tablegame/auth/resource/AuthResource.java | UTF-8 | 1,231 | 1.851563 | 2 | [] | no_license | package ru.tablegame.auth.resource;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import or... | true |
e58594813788ca39bd06e11d9d4865986eb26dc6 | Java | KevinHuangpf/CodeExams | /src/Main25.java | UTF-8 | 737 | 3.265625 | 3 | [] | no_license | import java.util.Scanner;
public class Main25 {
public static void main(String args[]){
//输入
Scanner scanner = new Scanner(System.in);
String[] string = scanner.nextLine().split(";");
System.out.print(compareStrings(string[0],string[1]));
}
public static boolean comp... | true |
54dc366bdc702ae91954824a24ba5d4894016876 | Java | janainamilitao/hackathon | /src/main/java/com/marketpay/hackathon/controller/UsuarioController.java | UTF-8 | 1,064 | 2.21875 | 2 | [] | no_license | package com.marketpay.hackathon.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.... | true |
ab08dfdb4fe70222a3d0f087c91406ca559586d8 | Java | AlexanderNesterovich/tat_lab_training | /FourthWeek/GmailTests/src/main/java/step/GmailSteps.java | UTF-8 | 1,939 | 2.578125 | 3 | [] | no_license | package step;
import beans.Letter;
import beans.User;
import org.openqa.selenium.WebDriver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import page_object.LoginPage;
import page_object.MainPage;
/**
* Created by Aliaksandr_Nestsiarovich on 5/25/2016.
*/
public class GmailSteps {
private static fin... | true |
3949568ace5a78e03668907d0049069d47e12f77 | Java | Araksya-Hambaryan/ITC-9 | /Anush_Ghazaryan/Homeworks/Selenium/selenium-project-example/src/test/java/selenium/testcases/DoSomeThingWithCookiesIT.java | UTF-8 | 2,009 | 2.453125 | 2 | [] | no_license | package selenium.testcases;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
import static org.junit.Assume.assumeFalse;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.support.PageFactory;
import ... | true |
54ae981d48817f62bbaf8b1283de2d8d8349fe21 | Java | Sicelo24/Client-Server | /src/eventregistration/Event.java | UTF-8 | 5,077 | 3.09375 | 3 | [] | no_license | /**
* Event.java
* This class creates and stores the attendee details in a Derby database
* @author Sicelo Zitha (216140943)
* Date: 28 September 2020
*/
package eventregistration;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.... | true |
9f83bf00e7ad83878b243b1b4a05e94881407264 | Java | iryndin/misc | /expreval/src/test/java/net/iryndin/expreval/StringTokenEmitterTest.java | UTF-8 | 1,096 | 2.90625 | 3 | [] | no_license | package net.iryndin.expreval;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
/**
* @author iryndin
* @since 06/04/17
*/
public class StringTokenEmitterTest {
@Test
public void testParseExpress... | true |
0812c9942562f756177dc04ae956d9149413b44e | Java | pccr10001/BLEOperator | /src/adapter/BLENotificationServiceAdapter.java | UTF-8 | 2,874 | 2.4375 | 2 | [] | no_license | package adapter;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import tinyb.BluetoothGattCharacteristic;
import tinyb.BluetoothGattService;
import java.util.LinkedList;
import java.util.List;
/**
* Created by IDIC on 2017/1/4.
*/
public abstract class BLENotificationServiceAda... | true |
c5e152a9e2367f6a9650d68a4892da3a1cdf92a0 | Java | doricke/RepairShop | /j/Java_BlastParserOffset/Hit.java | UTF-8 | 24,101 | 1.992188 | 2 | [] | no_license |
// import OutputTools;
// import SeqTools;
// import Sequence;
/*
Author:: Darrell O. Ricke, Ph.D. (mailto: d_ricke@yahoo.com)
Copyright:: Copyright (c) 2002 Darrell O. Ricke, Ph.D., Paragon Software
License:: GNU GPL license (http://www.gnu.org/licenses/gpl.html)
Contact:: Paragon Software, 131... | true |
86f58b43b6fea5603a2f41750f1160c2812bf278 | Java | tkonieczek/pol72 | /src/main/java/dzien4/MinMax.java | UTF-8 | 399 | 3.25 | 3 | [] | no_license | package dzien4;
public class MinMax<T extends Comparable> {
private T first;
private T second;
public MinMax(T first, T second) {
this.first = first;
this.second = second;
}
public T getMin() {
return (first.compareTo(second) < 0 ? first : second);
}
public T get... | true |
e93e6ac177321d6143809cfc89b523e9d8a634f4 | Java | kapild/algorithms-design-and-analysis | /programming-practice/src/main/java/challenges/leetcode/StrobogrammaticNumberII.java | UTF-8 | 3,039 | 3.453125 | 3 | [] | no_license | package challenges.leetcode;
import static com.google.common.truth.Truth.assertThat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import challenges.AbstractCustomTestRunner;
/**
* 247. Strobogrammatic Number II
*
* A strobogrammatic number is a number that looks the same when rota... | true |
6554d1bb3596912a534019d99acc901c6a9432d8 | Java | andrewctran/subduction | /library/src/main/java/com/nextdoor/library/STFAnnotator.java | UTF-8 | 3,149 | 2.4375 | 2 | [] | no_license | package com.nextdoor.library;
import android.content.Context;
import android.content.ContextWrapper;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.os.Environment;
import android.view.View;
import java.io.File;
impo... | true |
edf39e49f5379ce2afd59432557cff8944e34721 | Java | yeonseo/AndroidWebAppEdu | /201908_JAVA_Study/chpter02/src/chpter02/BitOperator.java | UTF-8 | 368 | 3.03125 | 3 | [] | no_license | package chpter02;
public class BitOperator {
public static void main(String[] args) {
int x=0x0fff;
int y=0xfff0;
System.out.printf("%x ",(x&y));
System.out.printf("%x ",(x|y));
System.out.printf("%x ",(x^y));
System.out.printf("%x ",~x);
System.out.printf("%x ",(x<<4));
System.out.printf("%x ",(x>... | true |
7ca8cb18c876c1420027e0e03f53e54125517c7a | Java | VoxelIndustry/AshRunica | /src/main/java/net/vi/ashrunica/common/gui/GuiHandler.java | UTF-8 | 1,632 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package net.vi.ashrunica.common.gui;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.network.IGuiHandler;
import net.vi.ashrunica.client.gui.GuiRuneDesigner;
impo... | true |
518b9645d5410acb5c9713a67b30337dcb9e5dda | Java | krenog/muf | /src/main/java/com/krenog/myf/user/security/jwt/JwtConfig.java | UTF-8 | 1,653 | 2.015625 | 2 | [] | no_license | package com.krenog.myf.user.security.jwt;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class JwtConfig {
@Value("${security.jwt.token.header-string}")
private String header;
@Value("${security.jwt.token.expire-length}")
... | true |
048064f964942d45aadd5cfea798a1b62b61b544 | Java | dovakinlink/Netty-Dovakin-PushService | /src/main/java/org/dovakin/push/core/annotations/RequestController.java | UTF-8 | 547 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package org.dovakin.push.core.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by liuhuanchao on 2017/8/1.
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
publi... | true |
65f8f3015adb83f1f0e289d7f05b159d0b100418 | Java | fatiilluch/TP2019 | /src/test/java/domain/PrendasSuperponiblesTest.java | UTF-8 | 4,200 | 2.28125 | 2 | [] | no_license | package domain;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import domain.events.Protocolo;
import domain.repositorio.RepositorioMolde;
public class PrendasSuperponiblesTest {
Categoria superior = Categoria.Superior;
Categoria i... | true |
5d519ce313581c2f90da8c982faa48149b6a09d6 | Java | gd123yjy/OracleHomework | /src/main/java/cn/yjy/repository/imp/EnrollRepositoryImp.java | UTF-8 | 617 | 1.976563 | 2 | [] | no_license | package cn.yjy.repository.imp;
import cn.yjy.repository.EnrollRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
/**
* Created by yjy on 17-1-4.
*/
@Repository
public class EnrollRepositoryIm... | true |
cee6ee46399a8ea5b59dac12b6f76762972e41b1 | Java | Wazzap007/SeleniumPractice | /src/WebDriver/WebDriverManager.java | UTF-8 | 2,124 | 2.515625 | 3 | [] | no_license | package WebDriver;
import com.beust.jcommander.internal.Nullable;
import org.openqa.selenium.*;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium... | true |
2258d7bb11eee1072ab5d5e64cfdca01bcc6891b | Java | padob/pBlog | /src/main/java/pl/karolcz/pBlog/vote/VoteController.java | UTF-8 | 994 | 2.25 | 2 | [
"MIT"
] | permissive | package pl.karolcz.pBlog.vote;
import org.springframework.web.bind.annotation.*;
import pl.karolcz.pBlog.comment.CommentService;
import pl.karolcz.pBlog.common.web.Token;
import pl.karolcz.pBlog.post.PostService;
@RestController
@RequestMapping(value = "/vote")
class VoteController {
private PostService postServ... | true |
a9d5b424954b1d7d847f4782a7d888fd2607f813 | Java | kong0836/dashboard | /dashboard-consumer/src/main/java/com/dashboard/mq/listener/MqListener.java | UTF-8 | 921 | 2.078125 | 2 | [] | no_license | package com.dashboard.mq.listener;
import com.dashboard.mq.QueueConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.... | true |
4beadfa4324a2c9b41ebee48f8456c13d42a226b | Java | g6nfm/NFM-G6-REPO-MAIN | /xtGraphics.java | UTF-8 | 216,089 | 1.640625 | 2 | [] | no_license |
import java.applet.Applet;
import java.applet.AudioClip;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import java.net.URL;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.awt.Graphics2D;
import java.awt.color.ColorSpace;
import java.awt.image.BufferedImage;
import java.... | true |
86f9b2330f282881102a5f5054e671b9e3b5ce34 | Java | oooJerry/dibaidanche | /DBDC/app/src/main/java/com/wuwutongkeji/dibaidanche/common/util/TextUtil.java | UTF-8 | 2,745 | 2.6875 | 3 | [] | no_license | package com.wuwutongkeji.dibaidanche.common.util;
import android.text.TextUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by Mr.Bai on 2016/4/13.
*/
public class TextUtil {
/**
* 是否为空
*
* @param value
* @return
*/
public static boolean isEmpty(... | true |
7d42f88483fa52948a4004dbeb45974d93ac6335 | Java | ilumer/AlgTest | /src/alg4/directedgraphs/TransitiveClosure.java | UTF-8 | 447 | 3.140625 | 3 | [] | no_license | package alg4.directedgraphs;
/**
* Created by ilumer on 17-5-19.
* 如何判断图中任意两点是否是可达的
*/
public class TransitiveClosure {
DirectedDFS[] directedDfs;
public TransitiveClosure(Digraph G) {
directedDfs = new DirectedDFS[G.V()];
for (int i = 0 ; i < G.V();i++){
directedDfs[i] = new DirectedDFS(G,i);
... | true |
ae63a29609498bb91840ea533987fae532af7b1f | Java | wind-summer/basic | /core/src/main/java/com/basic/core/module/sys/entity/BaseEntity.java | UTF-8 | 466 | 1.976563 | 2 | [] | no_license | package com.basic.core.module.sys.entity;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
/**
* @author wenlf
* @since 2018/4/24
*/
public class BaseEntity<T extends Model> extends Model<T> implements Serializable {
@Tab... | true |
96e227e8cade5629e35a08235a269b3ad63201e7 | Java | CyberPlay1337/CyberPlayJava | /app/src/main/java/ru/startandroid/develop/cyberplayjava/FragmentNades.java | UTF-8 | 4,935 | 2.34375 | 2 | [] | no_license | package ru.startandroid.develop.cyberplayjava;
import android.content.Context;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
impo... | true |
faa800ff7cb0b74f1ff1dde5eb302de338eb824f | Java | mim321/NichapaWork | /nicha2.java | UTF-8 | 507 | 2.828125 | 3 | [] | no_license | class nicha2 {
public static void main(String args[]) {
String a1 = "nicha";
byte a2 = -17;
short a3 = 20;
char a4 = 'm';
int a5 = 3456;
long a6 = 456l;
float a7 = 567.76f;
double a8 = 345345.345;
System.out.println(a1 + a6);
System.out.println(a7 - a8);
System.out.pri... | true |
c39632d126d9fbc9c401dde974abbd50f55029b0 | Java | WangScaler/jetlinks-community | /jetlinks-manager/authentication-manager/src/main/java/org/jetlinks/community/auth/web/MenuController.java | UTF-8 | 3,827 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.jetlinks.community.auth.web;
import io.swagger.v3.oas.annotations.Hidden;
import org.hswebframework.web.api.crud.entity.TreeSupportEntity;
import org.hswebframework.web.authorization.Authentication;
import org.hswebframework.web.authorization.AuthenticationUtils;
import org.hswebframework.web.authorization... | true |
789ce098c60b0fae384ba0530ea427cef1b76ce9 | Java | killagu/SoftwareDevelopmentPrinciplesAndPatterns | /com/lianlianDesign/ISP/Timer.java | UTF-8 | 357 | 2.4375 | 2 | [] | no_license | package com.lianlianDesign.ISP;
import com.lianlianDesign.ISP.TimerClient;
public class Timer {
public void Register(int timeout,TimerClient client){
for(int i = 0;i< timeout;i++){
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace(... | true |
9d424b6bcf853c3a2c6aa4c7d99911643f08fa7c | Java | zmffjtmxjs/WiFi_Based_Todolist_Application | /app/src/main/java/com/cookandroid/wifi_based_todolist/page/MainActivity.java | UTF-8 | 4,758 | 2.359375 | 2 | [] | no_license | package com.cookandroid.wifi_based_todolist.page;
import androidx.appcompat.app.AppCompatActivity;
import androidx.drawerlayout.widget.DrawerLayout;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageV... | true |
2ff2421809a2cc9ffe648ba1d4ca41e93747773e | Java | mauriciocoder/sandbox | /src/main/java/com/bon/sand/CrossOver2.java | UTF-8 | 3,914 | 3.421875 | 3 | [] | no_license | // CrossOver2
package com.bon.sand;
import java.io.IOException;
import java.util.*;
public class CrossOver2 {
static boolean isBalanced(String str) {
Stack<Character> tagstack = new Stack<Character>();
boolean isBalanced = false;
String s = str.trim();
for(int i = 0; i < s.length()... | true |
87ca3ff82a26fcdfaef501b36467abeaee07d781 | Java | 254nm/ExploitsX | /src/main/java/me/bait/exploitfixer/util/Update.java | UTF-8 | 4,716 | 2.09375 | 2 | [] | no_license | /*
* .. _____________________ ..
* -- // WARNING \\ --
* -- THIS WORK IS UNDER EXCLUSIVE COPRIGHT FOR BAITCORP LABS. DISTRIBUTION, MODIFICATION, SELLING, OR SHARING WITHOUT EXPLICIT PERMISSION FROM BAITCORP LABS IS STRICTLY PROHIBITED.
* -- THIS PROGRAM IS LICENSED FOR MODIFICATION TO AND ONLY TO: "BAITCORP LABS... | true |
9490c281c3a8ff826c5f29a02fb75fcaad9e48ec | Java | Rexben001/Rexy | /app/src/main/java/com/android/rexben/rexy/Quiz4.java | UTF-8 | 3,967 | 2.671875 | 3 | [] | no_license | package com.android.rexben.rexy;
import android.content.Intent;
import android.support.annotation.IdRes;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.RadioGroup;
import android.widget.Toast;
public class Quiz4 extends AppCompatActivity {
private int score = 0;
... | true |
00bd16677eecd3746e38eb8823412fa8e8be4ec1 | Java | KrunalKaneriya/JavaProgramming | /Keywords Expressions Codeblocks And Methods/methodOverloading/src/Main.java | UTF-8 | 1,941 | 3.515625 | 4 | [] | no_license | public class Main {
public static void main(String[] args) {
// int newScore = calculateScore("Krunal",500);
//// System.out.println("New Score is "+newScore);
// calculateScore(newScore);
// calculateScore();
// public static int calculateScore(String playerName,int score... | true |
690049a4bbbf2e61fcccfd0eea5dfcda6c443f16 | Java | XM-XiaoMa/DemoRetrofit | /app/src/main/java/com/example/MainActivity.java | UTF-8 | 1,362 | 2.140625 | 2 | [] | no_license | package com.example;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.example.mabaochang.component_base.R;
import com.example.manager.AppManager;
import com.example.manager.HttpManager;
import retrofit2.Call;
import retrof... | true |
aa9b41474674aff151252845187d7ef8f96c5191 | Java | csabatini/daggermvpstarter | /app/src/main/java/com/csab/daggermvpstarter/mvp/view/NoteDialogView.java | UTF-8 | 163 | 1.601563 | 2 | [] | no_license | package com.csab.daggermvpstarter.mvp.view;
public interface NoteDialogView {
void createDialog();
void dismissDialog();
String captureInputText();
}
| true |
cdea8b2c1456ab18f9fa147511d10f01402b4949 | Java | roudane1994/PFE_Master_Big_Data | /rachid/src/main/java/ocp/sta4/Service.java | UTF-8 | 885 | 2.1875 | 2 | [] | no_license | package ocp.sta4;
import java.util.Set;
public class Service {
private String id;
private String nom;
private String email;
private String tele;
private String address;
private String specialite;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String... | true |
c26546ffe7d13e94e322a7205c30040b9cad2596 | Java | thymargo13/Java-OOP | /Combined_CFD/CFDress/src/java/cfd/db/AddressBook_DB.java | UTF-8 | 6,248 | 2.640625 | 3 | [] | no_license | package cfd.db;
import cfd.bean.CustomerAddressBean;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;
import java.util.List;
/**
*
* @author Daniel
*/
publi... | true |
05c6e01da1e6630e593c79da8dce7dc904fed3fa | Java | devlopper/org.cyk.system.sibua.client | /sibua-client-controller-impl/src/main/java/org/cyk/system/sibua/client/controller/impl/user/UserActivatePage.java | UTF-8 | 1,705 | 2.0625 | 2 | [] | no_license | package org.cyk.system.sibua.client.controller.impl.user;
import java.io.Serializable;
import javax.faces.view.ViewScoped;
import javax.inject.Named;
import org.cyk.system.sibua.client.controller.api.user.UserController;
import org.cyk.system.sibua.client.controller.entities.user.User;
import org.cyk.utilit... | true |
41f22324fc077e26068adb2eb0e310d237189f2a | Java | meghanacs277/Meghana | /Exception1/TestExam.java | UTF-8 | 2,589 | 3.015625 | 3 | [] | no_license | import java.util.Scanner;
public class TestExam {
public static void main(String []ar) {
Scanner sc=new Scanner(System.in);
System.out.println("Enter the choice :hallticket,idcard,pen,copy,calculator");
String a=sc.nextLine();
switch(a) {
case "hallticket":
System.out.println("type yes if hallticket is p... | true |
a20fe27cacf05566d3516a467b8c6df739d077ec | Java | JetBrains/intellij-community | /java/java-impl/src/com/intellij/ide/hierarchy/method/MethodHierarchyNodeDescriptor.java | UTF-8 | 5,157 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.hierarchy.method;
import com.intellij.icons.AllIcons;
import com.intellij.ide.hierarchy.HierarchyNodeDescriptor;
import com.intellij.id... | true |
8098fdf795e734d0037bd9c4349e2131e4947b66 | Java | ScreamHyy/anyidianManager | /src/com/anyidian/controller/ManagerController.java | UTF-8 | 7,257 | 2.140625 | 2 | [] | no_license | package com.anyidian.controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servl... | true |
d4f382dec01cc06c67245a1c3700580575963873 | Java | clagms/TrNet | /TrNetCompilation/test-src/activitymigrationgeneratedfromdsltransoriginal/TrNetPat249InstancePublisher.java | UTF-8 | 235 | 1.601563 | 2 | [] | no_license | package activitymigrationgeneratedfromdsltransoriginal;
public interface TrNetPat249InstancePublisher{
public void registerListener(TrNetPat249InstanceListener listener);
public void notifyListeners(TrNetPat249Instance element);
} | true |
a5db86e35792ef86a9288f06bd643d337d1440a1 | Java | duythien24/Android_lab3 | /src/bai5/Conection/ConnectionJDBC.java | UTF-8 | 747 | 2.640625 | 3 | [] | no_license | package bai5.Conection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionJDBC {
public static Connection getKetNoi() {
Connection ketNoi = null;
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String url = "jdbc:sqlserver:/... | true |
d1b049a52f143887d4a88325cb869fe8aaf876de | Java | Satkeev/codefellowship | /src/main/java/com/satkeev/codefellowship/Post.java | UTF-8 | 959 | 2.21875 | 2 | [] | no_license | package com.satkeev.codefellowship;
import javax.persistence.*;
import java.util.Date;
@Entity
public class Post {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private String body;
private String createdAt;
@ManyToOne
private ApplicationUser postedB... | true |
c4de0487d3bfff7eedec216fc6f357cb02fc27d7 | Java | andrey-kravchuk/java_elementary | /src/HomeWork/HomeWork9/Squre.java | UTF-8 | 500 | 3.203125 | 3 | [] | no_license | /**
* Created by user on 27.07.2017.
*/
public class Squre implements Shape {
private double a;
private double b;
private String color;
Squre(double a, double b, String color){
this.color = color;
this.a = a;
this.b = b;
}
@Override
public double size(){
... | true |
0fe61faa535142471a09db47fa94166c99af6fc2 | Java | CnLight/blog | /src/main/java/com/wl/blog/service/admin/PictureService.java | UTF-8 | 928 | 1.96875 | 2 | [] | no_license | package com.wl.blog.service.admin;
import com.wl.blog.dao.ArticleMapper;
import com.wl.blog.dao.PictureMapper;
import com.wl.blog.pojo.BlogArticle;
import com.wl.blog.pojo.Picture;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class PictureSer... | true |
e28d86b6b9537384a9aa1925df6d8e985f68c95c | Java | gabrielfeo/DaggerMultibindingLimit | /build/generated/sources/annotationProcessor/java/main/HeavyMultibindingModule_ProvideObject415Factory.java | UTF-8 | 1,033 | 1.929688 | 2 | [] | no_license | import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.annotation.processing.Generated;
@DaggerGenerated
@Generated(
value = "dagger.internal.codegen.ComponentProcessor",
comments = "https://dagger.dev"
)
@SuppressWarnings({
"unchecked",
... | true |
21035c5fbb80302012bd1ac2572b83b5fd12b9b0 | Java | Mariano95/Algomon | /Algomon/src/ataque/AtaqueDeAgua.java | UTF-8 | 285 | 2.5 | 2 | [] | no_license | package ataque;
import excepciones.PokemonSeDebilitoException;
import pokemon.Pokemon;
public abstract class AtaqueDeAgua extends Ataque {
protected double realizarAtaqueContra(Pokemon objetivo) throws PokemonSeDebilitoException{
return objetivo.recibirAtaqueDeAgua(this);
}
}
| true |
6b27366d672594ee01edf981630ac07c1da7b2d6 | Java | JavaMoney/javamoney-examples | /swing/javamoney-ez/common/src/main/java/org/javamoney/examples/ez/common/utility/I18NHelper.java | UTF-8 | 4,579 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | // I18NHelper
package org.javamoney.examples.ez.common.utility;
import static org.javamoney.examples.ez.common.utility.ResourceHelper.getResource;
import java.net.URL;
import java.util.ArrayList;
import java.util.Locale;
import java.util.Properties;
/**
* This class facilitates accessing internationalized properti... | true |
3b337cc1cc6d2676f5b6ed3c13d7784a23b3c45c | Java | 1016135097/yoga | /yoga-imessager/src/main/java/com/yoga/imessager/user/model/User.java | UTF-8 | 1,547 | 2.21875 | 2 | [] | no_license | package com.yoga.imessager.user.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity(name = "imUser")
@Table(name = "im_user")
public class User {
@Id
private Long id;
@Column(name = "tenant_id")
... | true |
f0c1d056843a5a5b02b158c332e66f0a5f77daf6 | Java | Braunch/monticore | /monticore-generator/src/main/java/de/monticore/codegen/cd2java/_ast/builder/inheritedmethods/InheritedBuilderOptionalMutatorDecorator.java | UTF-8 | 2,478 | 2 | 2 | [] | no_license | /* (c) https://github.com/MontiCore/monticore */
package de.monticore.codegen.cd2java._ast.builder.inheritedmethods;
import de.monticore.cd.cd4analysis._ast.ASTCDAttribute;
import de.monticore.cd.cd4analysis._ast.ASTCDMethod;
import de.monticore.cd.cd4analysis._ast.ASTCDParameter;
import de.monticore.codegen.cd2java._... | true |
aaed9aa767205763ee916d5a2b0461f5a3428c92 | Java | luhenchang/hdx | /app/src/main/java/com/accuvally/hdtui/model/SessionInfo.java | UTF-8 | 7,975 | 1.851563 | 2 | [] | no_license | package com.accuvally.hdtui.model;
import android.text.TextUtils;
import com.accuvally.hdtui.manager.AccountManager;
import com.accuvally.hdtui.utils.TimeUtils;
import com.alibaba.fastjson.JSON;
import com.avos.avoscloud.im.v2.AVIMConversation;
import java.io.Serializable;
import java.util.Calendar;
import java.util... | true |
3f2702a4912c78362c54bfba16ac50e28fe26586 | Java | deepak1084/WalmartPool | /app/src/main/java/com/example/dagrawa/walmarthack315/MyOrdersFragment.java | UTF-8 | 3,601 | 2.0625 | 2 | [] | no_license | package com.example.dagrawa.walmarthack315;
/**
* Created by hp on 02-04-2016.
*/
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Fragment;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
... | true |
9245fea8efbc5062bac596f514cbe09d406349b0 | Java | CoderInOne/jcip | /src/main/java/xunshan/jcip/cas/MyLock.java | UTF-8 | 397 | 2.71875 | 3 | [] | no_license | package xunshan.jcip.cas;
// non-thread-safe lock
public class MyLock {
private boolean locked = false;
// synchronized make it thread safe, but only one thread can
// check-and-act, maybe fail to get lock, but still wait
public /*synchronized*/ boolean lock() {
if (!locked) {
lock... | true |
d1a9d88c72a998a770b0be5969d7b8d74011a8e5 | Java | bazelbuild/bazel | /src/main/java/com/google/devtools/build/lib/actions/InputMetadataProvider.java | UTF-8 | 2,954 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2017 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | true |
0264b4677fc7371dc239322a08ee186dfb485031 | Java | jared854/GUI-Sketch | /A08Sketcheroo/src/DrawingShapes.java | UTF-8 | 446 | 2.578125 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Shape;
import javax.swing.JComponent;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.Random;
public class DrawingShapes{
public static ArrayList<Shape> drawingShapes;
public DrawingSha... | true |