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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6671e23b9f72b3dd85c36d980046d3f62bbe6f50 | Java | jtransc/jtransc-examples | /stress/src/main/java/com/stress/sub1/sub1/sub4/Class3238.java | UTF-8 | 394 | 2.15625 | 2 | [] | no_license | package com.stress.sub1.sub1.sub4;
import com.jtransc.annotation.JTranscKeep;
@JTranscKeep
public class Class3238 {
public static final String static_const_3238_0 = "Hi, my num is 3238 0";
static int static_field_3238_0;
int member_3238_0;
public void method3238()
{
System.out.println(static_const_3238_0);
}
pu... | true |
af68f9a583a99b4cd4d858445e289cc0e06c3b3b | Java | antitoine/INSA-4IF-prpi | /src/com/prpi/network/server/ServerHandler.java | UTF-8 | 8,023 | 2.046875 | 2 | [] | no_license | package com.prpi.network.server;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.util.Pair;
import com.prpi.ProjectComponent;
import com.p... | true |
114fb97fade65ca7464a953d42b06c2463b7f463 | Java | kingor/tasklist | /src/main/java/by/telecom/tasklist/client/AppController.java | UTF-8 | 1,464 | 2.140625 | 2 | [] | no_license | package by.telecom.tasklist.client;
import by.telecom.tasklist.client.presenter.Presenter;
import by.telecom.tasklist.server.other.EmployeePresenter;
import by.telecom.tasklist.server.other.FirstPanel;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.Value... | true |
f6226be9a73be37a0c57a9efa264b4ff49829107 | Java | liepeiming/xposed_chatbot | /alimama/src/main/java/com/alipay/sdk/app/a.java | UTF-8 | 264 | 1.640625 | 2 | [] | no_license | package com.alipay.sdk.app;
import com.alipay.sdk.util.e;
class a implements e.a {
final /* synthetic */ AuthTask a;
public void a() {
}
a(AuthTask authTask) {
this.a = authTask;
}
public void b() {
this.a.c();
}
}
| true |
33da42c6106dee43c3f140b4e031563b9a0589f3 | Java | hkabdulla341/MyCapGwork | /LabWork/src/Main/Certification.java | UTF-8 | 106 | 1.851563 | 2 | [] | no_license | package Main;
public interface Certification
{
public Certification[] getAllCertification();
}
| true |
bd07b7687da453ca072c25a6f6336eda73cac584 | Java | jevonliu1212/auth | /src/main/java/com/v5/utils/ContextHolder.java | UTF-8 | 581 | 2.203125 | 2 | [] | no_license | package com.v5.utils;
import com.v5.entity.User;
public class ContextHolder {
private static ThreadLocal<User> userContext = new ThreadLocal<>();
/**
* 设置用户上下文
*
* @param userContext
* void
*/
public static void set(User user) {
userContext.set(user);
}
/**
* 获取用户上下... | true |
3a1ea4dccf411bc9719129570a9e740cd56d2e9d | Java | TheFatTony/yinyang-core | /yinyang-server/src/main/java/com/yinyang/core/server/services/auth/AuthService.java | UTF-8 | 468 | 1.84375 | 2 | [] | no_license | package com.yinyang.core.server.services.auth;
import com.yinyang.core.server.domain.UserEntity;
import com.yinyang.core.server.transfer.AccessTokenDto;
import com.yinyang.core.server.transfer.LoginFormDto;
import com.yinyang.core.server.transfer.UserDto;
import org.springframework.stereotype.Service;
@Service
public... | true |
6dfc4ca19f323970aef2b17b52eb3b945ed88ece | Java | BrenoCPimenta/Java-CRUD | /src/main/java/br/com/JavaCRUD/domain/_StepByStep.java | UTF-8 | 4,681 | 2.96875 | 3 | [] | no_license | package br.com.JavaCRUD.domain;
import java.util.List;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import junit.framework.TestCase;
public class _StepByStep extends TestCase {
private Plant p = new Plant();
pub... | true |
9fd410f214b4387db9da253151c1da8c7bfe80b3 | Java | cow12331/codeQuestion | /LastNList.java | UTF-8 | 981 | 3.203125 | 3 | [] | no_license |
public class LastNList {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
ListNode node1 = new ListNode(1);
ListNode node2 = new ListNode(2);
ListNode node3 = new ListNode(3);
node1.next = node2;
node2.next = node3;
LastNList fac= new LastNList();
... | true |
d674b90e2cb25797c7c5db7c1c6da3ff982d5b08 | Java | estebanbri/hibernate-poc | /src/main/java/com/example/Inheritancemappingjpa/conceptos/relationship_mappings/_3_many_to_many/A_unidireccional/Alumno3Uni.java | UTF-8 | 1,334 | 2.46875 | 2 | [] | no_license | package com.example.Inheritancemappingjpa.conceptos.relationship_mappings._3_many_to_many.A_unidireccional;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
//@Entity
public class Alumno3Uni implements Serializable {
@Id
@GeneratedValue(strategy = Ge... | true |
51cc8dbf6f6c2e4af4b417b97d04fb53bfc2cebd | Java | schinj/project_english | /app/src/main/java/in/sigrid/englishlearning/views/BaseQuestionView.java | UTF-8 | 17,758 | 1.9375 | 2 | [] | no_license | package in.sigrid.englishlearning.views;
import android.app.Activity;
import android.content.ClipData;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.design.wid... | true |
523b51b100aca5baf3c61802ec1086c91d8a795f | Java | upendram91/online-shoe-store-java-web-application | /src/org/team4/semistercoder/Navigator_Controller.java | UTF-8 | 3,261 | 2.609375 | 3 | [] | no_license | package org.team4.semistercoder;
import java.io.IOException;
import java.util.ArrayList;
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.te... | true |
9188ae3c40359f065f66bf7987c4c32d6761d92f | Java | wangjianlin1985/android_shopping | /安卓客户端/src/com/mobileclient/activity/ProductInfoQueryActivity.java | UTF-8 | 7,281 | 2.171875 | 2 | [] | no_license | package com.mobileclient.activity;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;
import com.mobileclient.domain.ProductInfo;
import com.mobileclient.domain.ProductClass;
import com.mobileclient.service.ProductClassService;
import com.mobileclient.domain.YesOrNo;
import com.mobileclien... | true |
d1fbf1ed74d046b524d6ce3d34954b96d2f45247 | Java | jeffcore95/eCanteen | /app/src/main/java/com/example/androideatit/Home.java | UTF-8 | 7,255 | 1.976563 | 2 | [] | no_license | package com.example.androideatit;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.a... | true |
1efea695c50c82dc67ebca32b94641b4036bf0b0 | Java | AranIsHere/spring-examples | /src/com/aran/parts/TimerSchedule/quartz/myQuartzJob.java | UTF-8 | 799 | 2.25 | 2 | [] | no_license | package com.aran.parts.TimerSchedule.quartz;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @Author Aran
* @Date 2020/... | true |
6a36b28e9e6ba9bcfdc44f98d410e1e1ab297594 | Java | tung19988/SalesBackend | /src/main/java/com/entyti/Department.java | UTF-8 | 3,007 | 2.3125 | 2 | [] | no_license | package com.entyti;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany... | true |
0a47de42fb428850b8045918ace9e3bf96add6f7 | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/domain/TestCaseDomain.java | UTF-8 | 1,609 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 测试用例领域模型
*
* @author auto create
* @since 1.0, 2019-11-27 19:27:15
*/
public class TestCaseDomain extends AlipayObject {
private static final long serialVersionUID = 8323266729949466221L;
... | true |
17f0eb804e3e7a8c8fa16bb78bc8531eab2c5e88 | Java | cailliaud/MurderInGPHY | /test/test/core/DoorTest.java | UTF-8 | 1,902 | 3 | 3 | [] | no_license | package test.core;
import static org.junit.Assert.*;
import org.junit.Test;
import mig.core.Bolt;
import mig.core.Door;
import mig.core.Key;
import mig.core.Lock;
import mig.core.OpenedBolt;
import mig.core.Room;
/**
* JUnit test for the class Door
* @see Door
* @author group8
*
*/
public ... | true |
3c69886836f57c3812b18f1887eb876032fb309f | Java | dprCZD/WCSS-backend | /src/main/java/czd/wcssbackend/web/ServiceConfiguration.java | UTF-8 | 1,588 | 1.9375 | 2 | [] | no_license | package czd.wcssbackend.web;
import czd.wcssbackend.common.model.courseType.Course;
import czd.wcssbackend.common.model.courseType.PaidCourse;
import czd.wcssbackend.common.model.systemType.TrialReview;
import czd.wcssbackend.web.impl.*;
import czd.wcssbackend.web.service.*;
import org.springframework.context.annotat... | true |
8e5f833473b77b74a6608cd15163b68ee1a04c4d | Java | Tka4uk-Andrei/QRA | /app/src/main/java/com/example/qra/presenter/interfaces/ICreateCheckItemPresenter.java | UTF-8 | 409 | 2.171875 | 2 | [] | no_license | package com.example.qra.presenter.interfaces;
public interface ICreateCheckItemPresenter extends IPresenter {
/**
* Method that add new item in check
*
* @param name name of item
* @param category category of item
* @param quantity quantity of item
* @param price price of item
*... | true |
290c6a5cc33ee24fddd98ddd51bd62648764302e | Java | mymmsc/hotwheel | /hotwheel-asio/src/test/java/org/hotwheel/asio/SSLProvider.java | UTF-8 | 5,312 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package org.hotwheel.asio;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLEngineResult.HandshakeStatus;
import javax.net.ssl.SSLException;
import java.nio.ByteBuffer;
import java.util.concurrent.Executor;
public abstract class SSLProvider implements Runnable {
... | true |
db7f6ecedcd16af3861f5ad5417d517437d231eb | Java | DanielGoodwyn/Android-Half-Plus-Seven | /app/src/main/java/com/halfplusseven/danielgoodwyn/halfplusseven/Answer.java | UTF-8 | 2,949 | 2.359375 | 2 | [] | no_license | package com.halfplusseven.danielgoodwyn.halfplusseven;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.TextView;
import com.parse.ParseUser;
import java.util.Date;
public class Ans... | true |
e4e46aacfa74c6f8c00ac503d11cf1babbf9e1c8 | Java | anastasiya315510/testInterwiw | /src/test/java/second/MinValueTest.java | UTF-8 | 292 | 2.203125 | 2 | [] | no_license | package second;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
class MinValueTest {
private final int [] arr = {3,5,6,7,1,23,2,9};
@Test
void findMinValue() {
MinValue min = new MinValue();
Assert.assertEquals(1, min.findMinValue(arr) );
}
} | true |
9ce5e821a478b2a1c8b8ead104f4e2bd375bea3c | Java | Sakmatz/CrackingTheCoding | /Cracking_The_Coding/src/recursionDynamicP/AllPermutation.java | UTF-8 | 797 | 3.578125 | 4 | [] | no_license | package recursionDynamicP;
public class AllPermutation {
private void permutation(String str,int l,int r) {
/*
* | ABC-> ABC ACB
* ABC | BAC-> BAC BCA
* | CBA-> CBA CAB
* */
if(l==r) {
System.out.println(str);
}else {
for(int i=l;i<=r;i++) {
str = swap(str, ... | true |
6d4e2520ae0a6477cc9935e9cad51123147cdaba | Java | wwtfly/java | /test/src/PrityCheck.java | UTF-8 | 487 | 2.90625 | 3 | [] | no_license | import sun.reflect.generics.reflectiveObjects.LazyReflectiveObjectGenerator;
import java.util.Scanner;
/**
* Created by king on 17-3-19.
*/
public class PrityCheck {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("请输入一个整数:");
long numbe... | true |
8934666e0ab9bf71eedefea983a7e1e4aa318739 | Java | warrenween/privatix-adnroid-app | /app/src/main/java/com/privatix/fragments/dialogs/VpnNotSupportedError.java | UTF-8 | 1,636 | 2.375 | 2 | [] | no_license | package com.privatix.fragments.dialogs;
/**
* Created by Lotar on 30.06.2016.
*/
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import com.privatix.R;
/**
* Class represen... | true |
0fa42d7600697107166d79fb06f768aebaeb60c3 | Java | GhislainAdon/portsip-softphone-android | /PortGo/app/src/main/java/com/portgo/view/MinimunWindowUtil.java | UTF-8 | 12,771 | 1.8125 | 2 | [
"BSD-2-Clause"
] | permissive | package com.portgo.view;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Build;
import android.provider.Settings;
import android.util.Log;
import android.view.Gravity;
import android.view.KeyEvent;
import androi... | true |
df77491ba1a437f79dd767de32f61481cf5a9f35 | Java | VijayKrishna/friends_analysis | /ExtractFrom.java | UTF-8 | 1,216 | 2.78125 | 3 | [] | no_license | import org.jsoup.Jsoup;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Scanner;
public class ExtractFrom {
private static final String USER_DIR = System.getProperty("user.dir");
public static void main(String[] args) throws IOException {
final String textDat... | true |
b2ee9424357da849f941544e52c6c8b4884a20ec | Java | o1zhs/FilmWeb | /src/utils/DeleteFilmActor.java | UTF-8 | 1,902 | 2.8125 | 3 | [] | no_license | package utils;
import database.DBOperator;
public class DeleteFilmActor {
private String filmID;
private String actorName;
private String actorID;
private String role;
private int affectRows;
private Boolean isTrue;
private Boolean isExisted;
DBOperator dbOperator;
public Delet... | true |
ec02f0a7b544dc17da810aa418f355c2efafb435 | Java | FlakyTestDetection/linq4j | /src/test/java/net/hydromatic/linq4j/expressions/TypeTest.java | UTF-8 | 1,960 | 2.375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
// Licensed to Julian Hyde under one or more contributor license
// agreements. See the NOTICE file distributed with this work for
// additional information regarding copyright ownership.
//
// Julian Hyde licenses this file to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file e... | true |
3d2e8a04f40e2a2b86d1331c05ad481620314471 | Java | maurya-rohit/LeetCode-Solutions | /HardProblems/ArraysAndStrings/slidingWindowMaximum.java | UTF-8 | 831 | 3.0625 | 3 | [] | no_license | class Solution {
public int[] maxSlidingWindow(int[] nums, int k) {
if(nums.length==0) return new int[0];
int[] answer=new int[nums.length-k+1];
Deque<Integer> dq=new LinkedList<>();
int i;
for(i=0;i<k;i++){
while(!dq.isEmpty() && nums[i]>=nums[dq.peekLast()]){
... | true |
e359ec5d7a9f2ac00fce5ca71a557b0593e256e6 | Java | RoYaLBG/jphp | /jphp-http-ext/src/main/java/org/develnext/jphp/http/classes/entity/WrapHttpUrlEncodingFormEntity.java | UTF-8 | 1,630 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.develnext.jphp.http.classes.entity;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.message.BasicNameValuePair;
import php.runtime.Memory;
import php.runtime.common.HintType;
import php.runtime.env.En... | true |
c71c303e8b80df15a93a2a5acd95cf994817e294 | Java | AlexndrSoma/ParcialDiferido | /src/modelo/Filtro.java | UTF-8 | 2,872 | 2.46875 | 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;
/**
*
* @author uca
*/
public class Filtro {
private int id;
private String numInscripcion;
private St... | true |
8ab7c5339120a8d907387a410773f5a288efa582 | Java | MarkLan007/spaceman-spiff | /CardTable.java | UTF-8 | 7,688 | 2.859375 | 3 | [] | no_license | package cardGame;
import java.awt.image.BufferedImage;
import java.time.Duration;
import javafx.animation.TranslateTransition;
import javafx.embed.swing.SwingFXUtils;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;
import javafx.scene.paint.Col... | true |
cfd10dbc1923f029bd0d03adf672f6e5703f82a8 | Java | luanpass/rest-wsw | /src/main/java/com/wsw/rest/converter/impl/ProductConverterImpl.java | UTF-8 | 472 | 2.171875 | 2 | [] | no_license | package com.wsw.rest.converter.impl;
import com.wsw.rest.converter.ProductConverter;
import com.wsw.rest.data.ProductData;
import com.wsw.rest.model.ProductModel;
import org.springframework.stereotype.Component;
@Component
public class ProductConverterImpl implements ProductConverter {
@Override
public Produ... | true |
9d9c45e3b6be2b6704d323e45c43744aed414a26 | Java | I-Al-Istannen/NetworkTest | /src/main/java/me/ialistannen/networktest/shared/packet/protocol/PacketMapper.java | UTF-8 | 1,564 | 2.78125 | 3 | [] | no_license | package me.ialistannen.networktest.shared.packet.protocol;
import java.util.Optional;
import java.util.OptionalInt;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import me.ialistannen.networktest.shared.packet.Packet;
/**
* A class mapping a Packet ID to a {@link Packet}
*
*... | true |
03d74a972db1b26a71ec10aa75c61c8820d5b38b | Java | alzv/log-parser | /src/test/java/com/aci/jd2015/engine/impl/ISDataProviderTest.java | UTF-8 | 909 | 2.09375 | 2 | [] | no_license | package com.aci.jd2015.engine.impl;
import org.apache.commons.lang3.StringUtils;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.*;
import static org.junit.Assert.*;
public class ISDataProviderTest {
ISDataProvider dataProvider;
@Before
public void initialize() ... | true |
c39cae803062ee7c21227f6dd1bae5d3c371305e | Java | borisskert/cats-n-dogs | /springboot/src/main/java/com/github/borisskert/example/springboot/authentication/model/AuthenticationTokenAuthentication.java | UTF-8 | 1,419 | 2.390625 | 2 | [] | no_license | package com.github.borisskert.example.springboot.authentication.model;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import java.util.Collection;
public class AuthenticationTokenAuthentication extends UsernamePasswor... | true |
88f54e7915be3b6fa8ab6bd3a6575fa91a72e64c | Java | uk-gov-mirror/UKHomeOffice.hocs-info-service | /src/main/java/uk/gov/digital/ho/hocs/info/domain/model/SecondaryAction.java | UTF-8 | 886 | 1.890625 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"OGL-UK-3.0"
] | permissive | package uk.gov.digital.ho.hocs.info.domain.model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.util.UUID;
@Entity
@Table(name = "secondary_action")
@NoArgsConstructor
@AllArgsConstructor
public class Seco... | true |
4e50c9b5283b4e613fd8c4935dca2ad6ed403b2e | Java | ofriross/EncryptorDecryptor | /src/test/java/EncriptionsTests/DoubleEncryptionTest.java | UTF-8 | 1,944 | 2.515625 | 3 | [] | no_license | package EncriptionsTests;
import encryptionAlgorithms.IEncryptionAlgorithm;
import encryptionAlgorithms.complexEncryptions.DoubleEncryption;
import keys.DoubleKey;
import org.junit.Test;
import org.mockito.Mockito;
import java.util.ArrayList;
import static org.junit.Assert.assertEquals;
import static org.mockito.Moc... | true |
11b77efd6d1377928695b76816d30b3120666481 | Java | etoref/get-philosophy | /src/main/java/com/esf/getphilosophy/repository/online/WikipediaLineParser.java | UTF-8 | 867 | 2.53125 | 3 | [] | no_license | package com.esf.getphilosophy.repository.online;
import com.esf.getphilosophy.helper.RegExHelper;
public class WikipediaLineParser {
private String LINK_REGEX = "href=\"(\\/wiki\\/\\S+)\"";
private String BLACKLIST_REGEX = ".*(disambiguation).*|.*:.*|.*\\(.*\\).*";
private String BASE_URL = "https://en.wikip... | true |
5d605e7b81134fcfdd2d1ba618c15c65531caf0e | Java | vetalmon20/DistributedCalculations | /Lab3/Java/src/main/java/com/university/barbershop/Barbershop.java | UTF-8 | 849 | 3.15625 | 3 | [] | no_license | package com.university.barbershop;
import java.util.concurrent.Semaphore;
public class Barbershop implements Runnable{
Barber barber;
private Semaphore waitingChairs;
private Semaphore barberChair;
public Barbershop(Semaphore barberChair, Semaphore waitingChairs) {
this.barberChair = barberCh... | true |
cd8782b746129e154b1c88aa700de2830db14b51 | Java | royserafin/Proyecto_Omega_SD | /ProyectoOmega/src/java/webservices/Soap.java | UTF-8 | 1,759 | 2.609375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package webservices;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;
i... | true |
bf5f944f139d55deeda82580f3d6713c9fbf9c88 | Java | Calvin-L/gen2it | /examples/simple.java | UTF-8 | 526 | 3.484375 | 3 | [] | no_license | import java.util.Iterator;
import java.util.Arrays;
public class MyIterator implements Iterator<Integer> {
Integer generate(int arg) {
yield(1);
int x = 0;
while (x < 10) {
yield(x);
x += 1;
}
for (Integer i : Arrays.asList(1, 2, 3, 4)) {
... | true |
aa8a317f95e1166c336f207d25181bf9cb060920 | Java | sauzny/jkitchen_note_bottle | /xxleetcode/src/main/java/com/sauzny/xxleetcode/p0001_0010/Solution004.java | UTF-8 | 1,352 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | package com.sauzny.xxleetcode.p0001_0010;
import java.util.Arrays;
//There are two sorted arrays nums1 and nums2 of size m and n respectively.
//Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
/*
Example 1:
nums1 = [1, 3]
nums2 = [2]
The median is 2.0
*/
/*
Exa... | true |
5289b3eb0204b4c19eecd2abb9ea5324f326c77b | Java | Oblivion97/SchoolMonitoringTool-BracFinalSubmissionVersion | /app/src/main/java/com/example/f/schMon/model/appInner/Student.java | UTF-8 | 3,584 | 2.75 | 3 | [] | no_license | /*
* Copyright (c) MiR FeRdOuS
*/
package com.example.f.schMon.model.appInner;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Created by Mir Ferdous on 13/06/2017.
*/
public class Student implements Parcelable,... | true |
e3e268bca1dd10f757067cdfec98e229598fca72 | Java | QeyCoder/bitsat | /src/main/java/roundzero/day11/BalancedContest.java | UTF-8 | 1,297 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | package day11;
import java.util.Scanner;
/**
* Created by Gaurav on 09/10/17.
*/
public class BalancedContest {
public static void main(String[] args) {
Scanner scanner
= new Scanner(System.in);
int testCases = Integer.parseInt(scanner.nextLine());
for (int i = 0; i <=... | true |
a0c80305358f623e0832d7daf35f33bc4f77f734 | Java | Wavesonics/LLAdmin | /app/src/main/java/com/darkrockstudios/apps/lladmin/launches/viewholders/EditTextViewHolder.java | UTF-8 | 1,132 | 2.34375 | 2 | [] | no_license | package com.darkrockstudios.apps.lladmin.launches.viewholders;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.darkrockstudios.apps.lladmin.R;
import java.lang.reflect.Field;
import butterknife.ButterKnife;
import butterknife.InjectView;
/**
* Created by adam o... | true |
979b2e436ac8517dc776bed0d89279a03248da8f | Java | fguy/coding-practice | /src/main/java/BinaryTreePreorderTraversal.java | UTF-8 | 1,584 | 3.796875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Stack;
import org.junit.Assert;
import org.junit.Test;
/**
* Given a binary tree, return the preorder traversal of its nodes' values.
*
* For example:
* Given binary tree {1,#,2,3},
* 1
* \
* 2
* /
... | true |
a75eea4ae03ad76fcbf690e21b96ae618dd61c59 | Java | urizev/birritas | /app/src/main/java/com/urizev/birritas/ui/LoadingView.java | UTF-8 | 1,047 | 2.125 | 2 | [] | no_license | package com.urizev.birritas.ui;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.urizev.... | true |
050a27cae95f3155af8fbae8e962bdb23ccbac74 | Java | lbfjoin/JavaSEcode | /day08/src/com/company/D.java | UTF-8 | 162 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.company;
/**
* @author lbf
* @date 2020/6/7 15:28
*/
public class D {
public void method() {
System.out.println("DDDDDDDDD");
}
}
| true |
24398ba8cc190b1a21319fab7b1f039734dfcd9c | Java | raochuan/wexin1120 | /com/tencent/mm/plugin/game/c/bo.java | UTF-8 | 5,922 | 1.828125 | 2 | [] | no_license | package com.tencent.mm.plugin.game.c;
import com.tencent.gmtrace.GMTrace;
import java.util.LinkedList;
public final class bo
extends com.tencent.mm.bl.a
{
public LinkedList<a> mFO;
public bv mFP;
public LinkedList<j> mFQ;
public bs mFR;
public LinkedList<cd> mFS;
public bo()
{
GMTrace.i(1265579... | true |
5df686a150f5800cac9f870bfd4e0455f928f79d | Java | lawrenceh672/econ101 | /Entity.java | UTF-8 | 3,040 | 2.984375 | 3 | [] | no_license | import java.awt.image.BufferedImage;
import java.util.ArrayList;
class Entity
{
String name;
Coord c;
//Dimension array coodinates
public static int X = Coord.X;
public static int Y = Coord.Y;
public static int Z = Coord.Z;
public static int T = Coord.T;
//User interface stuff
public BufferedImage img;
pub... | true |
3817d392b6a178d445c6f44d65adba4c8ce543d7 | Java | teten-nugraha/spring-blog-api | /src/main/java/com/blog/react/blogspringreact/repository/CategoryRepository.java | UTF-8 | 363 | 1.945313 | 2 | [] | no_license | package com.blog.react.blogspringreact.repository;
import com.blog.react.blogspringreact.entity.Category;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CategoryRepository extends CrudRepository<Category, Long> {
Category ... | true |
3521fb772d73a314c4515b6df5499782d05b05a8 | Java | KHU1399WinterAP/project-test | /src/main/java/models/Language.java | UTF-8 | 442 | 2.40625 | 2 | [] | no_license | package main.java.models;
import main.java.enums.LanguageKey;
import java.util.Properties;
public class Language {
public final String PATH;
private Properties properties = null;
public Properties getProperties() {
return properties;
}
public void setProperties(Properties properties) {
if (this.proper... | true |
9ffe941f566bba51db75a0c7b5086f5f07f6eae7 | Java | NhatKhuong/QLThuoc | /src/main/java/entity/KhachHang.java | UTF-8 | 1,896 | 2.265625 | 2 | [] | no_license | package entity;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
@Entity
public class KhachHang {
@Id ... | true |
fd9db71ead7dca62faeeeecb195a937b863c4f7e | Java | madsilver/smartpoll-web | /src/main/java/br/com/smartpoll/controllers/PollController.java | UTF-8 | 4,410 | 2.140625 | 2 | [] | no_license | package br.com.smartpoll.controllers;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.transaction.Transactional;
import org.springframework.beans.factory.ann... | true |
a389021714993960750e871e06297ab134fb0fbc | Java | NobugNK/dcone | /src/main/java/com/dcone/dtss/LoginController.java | UTF-8 | 3,201 | 2.109375 | 2 | [] | no_license | package com.dcone.dtss;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springfram... | true |
66da0945bb3b43de4c5717c20932727375390c43 | Java | MaksymFomichov/Practice_005 | /src/store/products/clothes/Brand.java | UTF-8 | 1,527 | 3.125 | 3 | [] | no_license | package store.products.clothes;
public class Brand {
private String yearFoundation;
private String name;
private int numberEmployees;
private int numberCountries;
public Brand(String yearFoundation, String name, int numberEmployees, int numberCountries) {
this.yearFoundation = yearFoundati... | true |
74c1f8f5f1eeaf62482403ad9a9c08de4b353aec | Java | idiot2222/practice-algorithm | /src/baekjoon_onlinejudge/problem_1966/Main.java | UTF-8 | 1,355 | 3.015625 | 3 | [] | no_license | package baekjoon_onlinejudge.problem_1966;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int T = sc.nextInt();
while(T-- > 0) {
... | true |
7aa53e682ae104d79207a8d5727d9a093e89431a | Java | EmuZONE/Aion-Lightning-5.1 | /AL-Game/data/scripts/system/handlers/ai/instance/infinityShard/IdeResonatorAI2.java | UTF-8 | 4,388 | 2.03125 | 2 | [] | no_license | /*
* This file is part of Encom. **ENCOM FUCK OTHER SVN**
*
* Encom is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Enc... | true |
61ede564a2bfcda90f1313c08e710459a478120d | Java | Rozanskas/Engagement | /Engagement/src/main/java/com/mindaugas/engagementapp/service/UserServiceImpl.java | UTF-8 | 2,657 | 2.328125 | 2 | [] | no_license | package com.mindaugas.engagementapp.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.stereotype.Service;
import com.minda... | true |
b4df2f071e2cfbb430760f8eb8dc969cd63676a0 | Java | sachini93/Click-n-Jobs | /Click'n Jobs/app/src/main/java/com/example/stp/findjob/Jobs.java | UTF-8 | 1,003 | 2.3125 | 2 | [] | no_license | package com.example.stp.findjob;
public class Jobs {
private int _id;
private String _jobTitle;
private String _description;
private String _category;
public Jobs(){
}
public Jobs(String jobTitle, String description, String category) {
this._jobTitle = jobTitle;
this._des... | true |
ef80ab7d6c5c56b092ff9361f84dc7877a47a7ff | Java | sdijkx/triangle | /plant/plant-detection/src/main/java/nl/triangle/plant/classifier/algorithms/imagedescriptor/cell/GradientVector.java | UTF-8 | 509 | 2.671875 | 3 | [] | no_license | package nl.triangle.plant.classifier.algorithms.imagedescriptor.cell;
/**
* Created by steven on 11-06-16.
*/
class GradientVector {
private final double x, y, angle, magnitude;
protected GradientVector(double x, double y) {
this.x = x;
this.y = y;
angle = Math.toDegrees(Math.atan2(x... | true |
93f10378315842af83ac07853d27ff05fc07269e | Java | CoolWanK/myGraduationProject | /src/main/java/com/wjk/demo/pojo/Business.java | UTF-8 | 3,693 | 1.984375 | 2 | [] | no_license | package com.wjk.demo.pojo;
import java.util.List;
public class Business {
private Integer id;
private String username;
private String password;
private String address;
private String phone;
private String nickname;
private String email;
private Type type;
private List<Goods... | true |
f447d5aa91b3db4ea3fb23ed714788f55f373ac1 | Java | kuxingsss/leetcode_java | /src/leetcode/editor/cn/P659SplitArrayIntoConsecutiveSubsequences.java | UTF-8 | 2,258 | 3.34375 | 3 | [] | no_license | //给你一个按升序排序的整数数组 num(可能包含重复数字),请你将它们分割成一个或多个子序列,其中每个子序列都由连续整数组成且长度至少为 3 。
//
// 如果可以完成上述分割,则返回 true ;否则,返回 false 。
//
//
//
// 示例 1:
//
// 输入: [1,2,3,3,4,5]
//输出: True
//解释:
//你可以分割出这样两个连续子序列 :
//1, 2, 3
//3, 4, 5
//
//
//
//
// 示例 2:
//
// 输入: [1,2,3,3,4,4,5,5]
//输出: True
//解释:
//你可以分割出这样两个连续子序列 :
//1, 2, 3, ... | true |
eb7486e003ad5809dcdd87eafe6ecb2cd25d1560 | Java | lh32469/Hiinoono | /logviewer/src/main/java/com/hiinoono/jsf/beans/RedisPool.java | UTF-8 | 1,611 | 2.375 | 2 | [] | no_license | package com.hiinoono.jsf.beans;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
/**
*
* @author lh32469
*/
@M... | true |
a4aa414f3d45efe2329c15c697f5cd850e48d59a | Java | SwatNar/YaMonSeashells | /YaMonSeashells/src/aftermidnight/components/Root.java | UTF-8 | 565 | 2.515625 | 3 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package aftermidnight.components;
import com.artemis.Component;
public class Root extends Component {
private boolean rooted;
public String toString()
{
return "rooted: " + rooted;
}
pub... | true |
9da2e07833f1fdacdef066be804be9a39090edb6 | Java | Qlifyw/telegram-cube-game-bot | /src/main/java/org/cubegame/domain/model/identifier/ChatId.java | UTF-8 | 692 | 2.6875 | 3 | [
"MIT"
] | permissive | package org.cubegame.domain.model.identifier;
import java.util.Objects;
public final class ChatId {
private final Long value;
public ChatId(Long value) {
this.value = value;
}
public Long getValue() {
return value;
}
@Override
public boolean equals(final Object o) {
... | true |
c35e4142bb7541af7ede9b232c7e4c7f9c8a74c3 | Java | mrpajamasharkman/CS4773Assignment2 | /src/war/Rank.java | UTF-8 | 508 | 3.5 | 4 | [] | no_license | package war;
/**
* An Enum for card ranks
*
* Card ranks begin with a value of 2 and end with 14 in ascending order from
* Two to Ace
*
* @author Lucas Tiedeman
*/
public enum Rank {
TWO(2), THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8),
NINE(9), TEN(10), JACK(11), QUEEN(12), KING(13),... | true |
2990097d65e3f60a9ca5faf24bec52140f125f43 | Java | brandonst840/Battleship | /EmpresaX.java | UTF-8 | 2,075 | 3.203125 | 3 | [] | no_license | package ProgramacionUno;
public class EmpresaX
{
//atributos
private String nombreEmpresa;
private int contador=0;
private EmpleadoXHora empleados[];
//constructor
public EmpresaX(String nombreE, int cantidadEmpleados)
{
this.nombreEmpresa=nombreE;
empleados=ne... | true |
4724b83e7f25e38eabc29df11b6fe4f464ad84e5 | Java | devGeanina/BlocAdminMicroModern | /operation-service/src/main/java/com/blocadminmicromodern/operationservice/component/KafkaExpenseSender.java | UTF-8 | 2,042 | 2.3125 | 2 | [] | no_license | package com.blocadminmicromodern.operationservice.component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.support.KafkaHeaders;
import org.springframework.mes... | true |
697ce24943c28e3ef45a0482823dcb78870dd801 | Java | angelmaskill/demo | /src/main/java/com/timerpri/test2/MyTimerTask.java | UTF-8 | 3,330 | 4.0625 | 4 | [] | no_license | package com.timerpri.test2;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
/**
* <pre>
*
* Timer将等待它完成,一旦完成,它将再次从队列开始下一个任务。
* 可以创建Java Timer对象以将相关任务作为守护程序线程运行。
* Timer类的cancel()方法用于终止计时器并丢弃任何计划任务,但它不会干扰当前正在执行的任务并让它完成。
* 如果计时器作为守护程序线程运行,无论我们是否取消它,它将在所有用户线程完成执行后立即终止。
*
* Timer类包含几个sc... | true |
c2f1659160a9555055a8004a5e58c01d775b633f | Java | Zafarimam7032/all-sprinng-security | /InMemoryDatabasesUser/src/main/java/com/zafar/conroller/UserRoleCreation.java | UTF-8 | 507 | 1.789063 | 2 | [] | no_license | package com.zafar.conroller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class UserRoleCreation {
@GetMapping("/")
public String all() {
return "this... | true |
026f855c13d3c9e8afd4c268bd38947afdf97582 | Java | ildar66/Rose_store | /2003_03_31/java/iBank/iBankWeb.war/web_pablisher/documents/c/ibank/servlets/showibankservlet.java | UTF-8 | 7,424 | 2.53125 | 3 | [] | no_license | package com.overstar.ildar.ibank.servlets;
import com.overstar.ildar.ibank.model.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* This servlet - controller
*
* Creation date: (19.09.2002 12:15:07)
* @author: Shafigullin Ildar
*/
public class ShowIBankServlet extends javax.servlet.... | true |
1ad92d64cd5d5d32448a82ff6465e47b3ef2e622 | Java | tpentypetha/stockapp-server | /src/main/java/gr/mod/mil/stock/web/controllers/other/TotalSuppliesViewController.java | UTF-8 | 2,211 | 2.0625 | 2 | [] | no_license | package gr.mod.mil.stock.web.controllers.other;
import gr.mod.mil.stock.services.ConsumableTransactionsService;
import gr.mod.mil.stock.services.LogService;
import gr.mod.mil.stock.services.SecurityService;
import gr.mod.mil.stock.web.dto.consumable.GenericConsumableReportRow;
import org.apache.commons.io.IOUtils;
imp... | true |
d3cf7b1f661de2c6e180fe00cb4d3982d8af85a1 | Java | GtayAce/vegetable_shop | /src/main/java/org/ssm/controller/UserController.java | UTF-8 | 2,806 | 2.15625 | 2 | [] | no_license | package org.ssm.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.ssm.entity.User;
import org.ssm.entity.UserT... | true |
2807bf0dd9a93d02fb5e8994c3df43874c8c39dd | Java | Nerminas/db_anwendungen | /ue8/src/main/java/at/fhj/swd/postgres/OrderLine.java | UTF-8 | 2,087 | 2.5 | 2 | [] | no_license | package at.fhj.swd.postgres;
import javax.persistence.*;
@Entity
@Table( name = "order_line", schema = "ue08")
class OrderLine {
@EmbeddedId
private OrderLinePK pk;
@ManyToOne(optional = false)
//@JoinColumn(insertable = false, updatable = false)
@MapsId("orderId")
private Order order;
@M... | true |
64d9c5e90cdb6ea9c71513fb4ecab0a935b65210 | Java | ChaosBuffalo/MKUltra | /src/main/java/com/chaosbuffalo/mkultra/abilities/misc/PositionTargetingAbility.java | UTF-8 | 1,599 | 2.09375 | 2 | [] | no_license | package com.chaosbuffalo.mkultra.abilities.misc;
import com.chaosbuffalo.mkcore.abilities.*;
import com.chaosbuffalo.mkcore.core.IMKEntityData;
import com.chaosbuffalo.mkcore.utils.TargetUtil;
import com.google.common.collect.ImmutableSet;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.ai.brain.... | true |
96303185dbb76888b2dc7025ff05198e91cba559 | Java | sword865/XattReduct | /src/cluster/ABC/KernelDistances.java | ISO-8859-13 | 3,246 | 2.5625 | 3 | [] | no_license | package cluster.ABC;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import weka.core.DistanceFunction;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.NormalizableDistance;
import weka.core.RevisionUtils;
import weka.core.TechnicalInformation;
impo... | true |
be5747c80b1df608d6dc67c75084bf76d7f9fd3c | Java | sinhyung/Java_Proj | /inheritance_07/lab4/CustomerTest2.java | UHC | 319 | 2.59375 | 3 | [] | no_license | package inheritance_07.lab4;
public class CustomerTest2 {//Ű 3 ȣ
public static void main(String[] args) {
VIPCustomer customerKim = new VIPCustomer (10020, "", 12345 );
customerKim.bonusPoint = 10000;
System.out.println(customerKim.showCustomerInfo());
}
}
| true |
4f081bb1c4ab48c52d65933e3e6c48c86ac87d3f | Java | zhao750456695/companyweb-backend | /src/main/java/io/renren/modules/generator/dao/SampleimageDao.java | UTF-8 | 557 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.generator.dao;
import io.renren.modules.generator.entity.SampleimageEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date... | true |
5173ce49af18ca02475614510cb1d7ef033cc8d1 | Java | lzt666/lzt666 | /上课练习代码/TestThreadPool.java | UTF-8 | 967 | 2.71875 | 3 | [] | no_license | /*
package executor;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class TestThreadPool {//线程池
public static void main(String[] args) {
ThreadPoolExecutor executor=new... | true |
733a16978c17f853492de1eabb686c2e96b7071a | Java | zyhmhm/dc-bk | /dc/dc-goods/src/main/java/top/dc/service/GoodsService.java | UTF-8 | 550 | 1.609375 | 2 | [] | no_license | package top.dc.service;
import top.dc.pojo.Goods;
import top.dc.vo.SysResult;
public interface GoodsService {
SysResult findGoodsByPage(Integer currentPage, Integer pageSize, String goodsName);
String getGoodsGenerName(Integer generId);
String getGoodsShopName(Integer shopId);
SysResult doChangeSt... | true |
dc497d372eb4bb30fcf5aa86443523c0458f805b | Java | ThomasHoryn/garage-vinyl-store-free-lesson | /src/main/java/com/tomhor/garagevinylstore/service/VinylService.java | UTF-8 | 501 | 2 | 2 | [] | no_license | package com.tomhor.garagevinylstore.service;
import com.tomhor.garagevinylstore.model.Author;
import com.tomhor.garagevinylstore.model.Vinyl;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
public interface VinylService {
List<Vinyl> findByName(String nam... | true |
48d2f64c8f9a071855cd60f1a8557e592a118caf | Java | mininum/android_base_frame | /app/src/main/java/org/rdengine/view/manager/IntentParams.java | UTF-8 | 1,600 | 2.703125 | 3 | [] | no_license | package org.rdengine.view.manager;
import java.util.HashMap;
/**
* 同进程内intent传递参数,用此工具intent传key 接收端用key获取内存对象<br>
* <ul>
* Intent intent = new Intent(.....);<br>
* String key = IntentParams.getInstance().createKey(context.getClass(), clazz);<br>
* IntentParams.getInstance().put(key, mViewParam);<br>
* intent.p... | true |
d1eac7f7e8825886cea55c4cee4b165a16f4286b | Java | Another7/CloudMusicBack-end | /src/main/java/star/sky/another/service/impl/MusicSheetServiceInterfaceImpl.java | UTF-8 | 4,733 | 2.328125 | 2 | [] | no_license | package star.sky.another.service.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import org.springframework.stereotype.Service;
import star.sky.another.dao.MusicMapper;
import star.sky.another.dao.MusicSheetMapper;
import star.sky.another.dao.UserMapper;
... | true |
ba7d26927684516c31d9e3cd042ee580acead28b | Java | ThomasDre/talendar | /backend/src/main/java/at/ac/tuwien/sepm/groupphase/backend/exceptions/BackendException.java | UTF-8 | 433 | 2.25 | 2 | [] | no_license | package at.ac.tuwien.sepm.groupphase.backend.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.NOT_FOUND)
public class BackendException extends Exception{
public BackendException(Throwable cause) {
sup... | true |
21f333670ea4d1676b4ada1c4d1cf3aaf9514e29 | Java | ingbeen/Java | /Chapter/src/chapter_18/MultithreadExample4.java | UTF-8 | 594 | 2.859375 | 3 | [] | no_license | package chapter_18;
public class MultithreadExample4 {
public static void main(String[] args){
CalcThread thread1 = new CalcThread();
PrintThread thread2 = new PrintThread();
LuxuryPrintThread thread3 = new LuxuryPrintThread();
SimplePrintThread thread4 = new SimplePrintThread();
Sh... | true |
a4aac3f3555b01e6088a041d39caba3f5c532b23 | Java | yizhou136/zystudio | /zystudio-micro-services/weibo-views/src/main/java/com/zy/weibo/bootconfig/mvc/KryoHttpMessageConverter.java | UTF-8 | 1,388 | 2.4375 | 2 | [] | no_license | package com.zy.weibo.bootconfig.mvc;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import org.springframework.http.HttpInputMessage;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.MediaType;
import org.s... | true |
aebe0c41bb5c81239572840271f0cc3da35fc11a | Java | sudheermuppa/PracticeMvc | /src/main/java/com/loyaltymethods/fx/file/HeaderFooterInputMapper.java | UTF-8 | 2,166 | 2.625 | 3 | [] | no_license |
package com.loyaltymethods.fx.file;
import java.util.ArrayList;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.batch.item.file.mapping.FieldSetMapper;
import org.springframework.batch.item.file.transform.DefaultFieldSet;
import org.springframework.batch.item.file.transform.FieldSet;... | true |
2c37d4be5b68476f2fe92c467f6c49accfdaaa71 | Java | umeshkacha/coding-practise | /ParkingLot/src/com/java/lld/model/vehicle/Vehicle.java | UTF-8 | 1,515 | 2.8125 | 3 | [] | no_license | package com.java.lld.model.vehicle;
import com.java.lld.enums.VehicleType;
import com.java.lld.model.parking.ParkingTicket;
import java.util.Objects;
public abstract class Vehicle {
private String licenseNumber;
private VehicleType vehicleType;
private ParkingTicket parkingTicket;
publ... | true |
fa1702134a06d13afac20fce9525514738e8fc6c | Java | ejalarcon/Taller-Git | /kata1/src/main/java/com/bbva/davidl/kata1/SubjectKataDavid1.java | UTF-8 | 183 | 1.984375 | 2 | [] | no_license | package com.bbva.davidl.kata1;
public class SubjectKataDavid1
{
/**
* @param args
*/
public static void main(final String[] args)
{
System.out.println("soy david");
}
}
| true |
813ab9e9bc97ac63263977086b9d857a5e298f1b | Java | sarojdangol/gharsewa | /src/main/java/com/saroj/demo/dto/UserDTO.java | UTF-8 | 3,301 | 2.21875 | 2 | [] | no_license | package com.saroj.demo.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.saroj.demo.model.User;
import com.saroj.demo.utils.Roles;
import java.time.LocalDate;
public class UserDTO {
private int id;
private String username;
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
pr... | true |
c392297e5525dbe7100a8ac8f97c75830b85e37d | Java | VHAINNOVATIONS/BCDS | /Code/bcds-impl/src/main/java/gov/va/vba/service/EarService.java | UTF-8 | 641 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package gov.va.vba.service;
import gov.va.vba.persistence.entity.ModelRatingResults;
import gov.va.vba.persistence.models.data.ClaimDetails;
import gov.va.vba.persistence.models.data.DecisionDetails;
import gov.va.vba.service.exception.BusinessException;
import java.math.BigDecimal;
import java.util.List;
/**
* Cre... | true |
6c9a8ecd44a66614d6d38abca6380626419e83eb | Java | dhivashini/Interview | /src/com/dhiva/trees/PrintPathToNode.java | UTF-8 | 470 | 3.15625 | 3 | [] | no_license | package com.dhiva.trees;
import java.util.ArrayList;
public class PrintPathToNode {
static ArrayList<Integer> path = new ArrayList<Integer>();
public static Node pathToNode(Node root, int target) {
if (root == null) {
return null;
}
if (root.data == target) {
path.add(target);
return root;
}
if... | true |
5b04bf2eddbd77f44bda6585083518d5742d0c11 | Java | renan-oliveira1/concessionaria | /src/main/java/model/VeiculoImportado.java | UTF-8 | 1,555 | 2.6875 | 3 | [] | no_license | package model;
import java.time.LocalDate;
public class VeiculoImportado extends Veiculo{
private Paises paisOrigem;
public VeiculoImportado() {
}
public VeiculoImportado(int id, String nome, String marca, double valorVenda, String localData, Vendedor vendedor) {
this.setId(id);
thi... | true |
3d829026b965270b244ca767a587e14ba57b952a | Java | mjpcger/JavaPOS-SPF | /SampleFiscalPrinter/src/SampleFiscalPrinter/CashDrawer.java | UTF-8 | 5,852 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Martin Conrad
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicabl... | true |
516920a73d266f85c4a22ca03b9213c806282888 | Java | ppsecuk/Education | /src/com/sda/tallinn6/fundamentals/operators/ConditionalOperator.java | UTF-8 | 965 | 4.09375 | 4 | [] | no_license | package com.sda.tallinn6.fundamentals.operators;
public class ConditionalOperator {
public static void main(String[] args) {
// CONDITIONAL OPERATOR
// ? :
// In other word : ternary
int value1 = 1;
int value2 = 2;
int result;
boolean someCondit... | true |
af9801737e26d325be498bcc9604e7f579fc54d7 | Java | valanis/clinica | /src/tp/aed2/empleados/Administrativo.java | UTF-8 | 2,647 | 3.046875 | 3 | [] | no_license | package tp.aed2.empleados;
import org.joda.time.DateTime;
import tp.aed2.fichaje.Fichaje;
import tp.aed2.pacientes.PacienteMenor;
import java.math.BigDecimal;
public class Administrativo implements IEmpleado {
//Constantes
private static final BigDecimal SUELDO = new BigDecimal(7000);
//Atributos
pr... | true |