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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0c08093e03030892d12b1639ea0439bf4124a887 | Java | goodwell42/GCChat | /app/src/main/java/com/goodwell42/gcchat/view/LayoutMoments.java | UTF-8 | 2,599 | 2.203125 | 2 | [] | no_license | package com.goodwell42.gcchat.view;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import and... | true |
fb3c33e2cddb6ef0be5ce91734d2cd89118fd8f0 | Java | paquoc/SnackFood | /app/src/main/java/com/miniproject16cntn/a1612543/snackfood/AddRestaurant.java | UTF-8 | 10,582 | 1.976563 | 2 | [] | no_license | package com.miniproject16cntn.a1612543.snackfood;
import android.Manifest;
import android.app.TimePickerDialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android... | true |
d53425c857072d6d6f0afbb367ce712b8811e48c | Java | jcp19/micro-benchmarks | /src/main/java/rexbenchmarks/Example3Thread1.java | UTF-8 | 587 | 3.03125 | 3 | [] | no_license | package rexbenchmarks;
import java.util.concurrent.locks.Lock;
public class Example3Thread1 extends Thread {
Lock lock;
Counter c;
public Example3Thread1(Lock lock, Counter c) {
this.lock = lock;
this.c = c;
}
@Override
public void run() {
for(int i = 0; i < 10; i++) ... | true |
f830fdfb8bd79f9299f79f176745ea25ba3cb55e | Java | damofujiki/UnsagaMod-for-1.12 | /src/main/java/mods/hinasch/unsaga/skillpanel/SkillPanelRegistry.java | UTF-8 | 10,655 | 1.859375 | 2 | [] | no_license | package mods.hinasch.unsaga.skillpanel;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import com.google.common.collect.ImmutableList;
import com.mojang.realmsclient.util.Pair;
import mods.hinasch.lib.registry.Propert... | true |
7df80de4a3e9e3a2d4a4561d5403b4bb5807c823 | Java | tahaJemmali/gark-Android | /app/src/main/java/com/example/gark/entites/MatchType.java | UTF-8 | 105 | 1.859375 | 2 | [] | no_license | package com.example.gark.entites;
public enum MatchType {
Round,
Quarter,
Semi,
Final
}
| true |
d36b99d4bf511864c4d00d74572c6deb5dd4df74 | Java | ministryofjustice/laa-maat-court-data-api | /maat-court-data-api/src/main/java/gov/uk/courtdata/repository/FinancialAssessmentRepository.java | UTF-8 | 1,649 | 1.945313 | 2 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | package gov.uk.courtdata.repository;
import gov.uk.courtdata.entity.FinancialAssessmentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.P... | true |
c096a2a53501a6964f90432dc896cfff9b56805c | Java | gaich/BetterBatteryStats | /BetterBatteryStats/src/com/asksven/betterbatterystats/data/GoogleAnalytics.java | UTF-8 | 4,631 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2011 asksven
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
bd039c89404639a7b9d621e8ed0230640ef3fa1c | Java | AndrejLee/UploadImageFromStorage | /app/src/main/java/com/example/cpu10152_local/testrecyclerview/ImageCache.java | UTF-8 | 830 | 2.609375 | 3 | [] | no_license | package com.example.cpu10152_local.testrecyclerview;
import android.graphics.Bitmap;
import android.util.LruCache;
/**
* Created by cpu10152-local on 04/04/2018.
*/
public class ImageCache extends LruCache<Integer, Bitmap> {
/**
* @param maxSize for caches that do not override {@link #sizeOf}, this is
... | true |
72f3fb881f943d27fbdf6e49be3011afefc98d9a | Java | wim82/Backend-MeetingRoom | /MeetingRoom/src/main/java/be/kawi/meetingroom/service/UserService.java | UTF-8 | 1,833 | 2.421875 | 2 | [] | no_license | package be.kawi.meetingroom.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import be.kawi.meetingroom.dao.UserDAO;
import be.kawi.meetingroom.exceptions.Corr... | true |
db9ca88f8f301f286e2efaafec349a11ada2c972 | Java | binsoopark/android_nfc_communication_example | /app/src/main/java/com/soobinpark/example/nfccommunication/ByteUtils.java | UTF-8 | 604 | 2.609375 | 3 | [] | no_license | package com.soobinpark.example.nfccommunication;
import java.io.UnsupportedEncodingException;
public class ByteUtils {
static String ReadRecordByCharEnc(byte[] payload) throws UnsupportedEncodingException {
int languageCodeLength = payload[0] & 0x3F; // 5th bit defines language code length
String ... | true |
c9210cf615229f1ca610bfda64fc436b1ad96a5b | Java | kmsabrin/MemoryMappedGraphComputation | /MemoryMappedGraphComputation/src/edu/gatech/memory_mapping_alg/EdgeListIndex.java | UTF-8 | 2,314 | 2.828125 | 3 | [] | no_license | package edu.gatech.memory_mapping_alg;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel.MapMode;
public class EdgeListIndex {
... | true |
5fb8b2897d565408916cfa1b60389fb689560d53 | Java | suresh1kumar/microservice-springboot | /Resume_Builder/src/com/nacre/resume_builder/action/addPersonalDetails.java | UTF-8 | 3,079 | 2.34375 | 2 | [] | no_license | package com.nacre.resume_builder.action;
import java.io.IOException;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servle... | true |
d3b153ce31fabb696c84e7d85b08a28fc10ca875 | Java | Esemplor/Lesson0 | /src/main/java/ee/bcs/valiit/codewars/Codewars1.java | UTF-8 | 227 | 1.734375 | 2 | [] | no_license | //package ee.bcs.valiit.codewars;
//
//import static org.junit.Assert.*;
//import org.junit.Test;
//
//public class Codewars1 {
// public static int howOld(final String herOld) {
//
//
//
// return vanus;
// }
//}
| true |
7e08a2034a3aa33e0dcaff3d6efab729a01c974e | Java | vincci1988/ASHE | /ASHE/src/agent/Fold.java | UTF-8 | 241 | 2.34375 | 2 | [] | no_license | package agent;
public class Fold extends ActionBase {
public Fold(int playerID) {
super(playerID);
}
public String toString() {
return "Player[" + playerID + "]: Fold";
}
String compress() {
return "f";
}
}
| true |
785ce9d76502b5042323d428802c2cc72371f445 | Java | loren9527/truck-1 | /src/main/java/com/bysj/rj/service/CheckInfoService.java | UTF-8 | 1,810 | 2.265625 | 2 | [] | no_license | package com.bysj.rj.service;
import com.bysj.rj.dao.CheckInfoEntityMapper;
import com.bysj.rj.entity.CheckInfoEntity;
import com.bysj.rj.entity.CheckInfoEntityExample;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* @Author: yangliu
* @Description:
* @... | true |
42ead5562098f97e01b32c85651cbde3f72c0ebc | Java | rafalcurylo/hilbert-curve | /src/main/java/com/rafalcurylo/hilbertCurve/HilbertPainter.java | UTF-8 | 1,925 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | package com.rafalcurylo.hilbertCurve;
import java.awt.*;
/**
* @author - rafal.curylo@gmail.com
*/
public class HilbertPainter {
private final int h;
private final int targetLevel;
private final Graphics2D graphics2D;
public HilbertPainter(int height, int targetLevel, Graphics2D graphics2D) {
... | true |
55e48a72237644982e761bbc3f3a2470fe1db406 | Java | Saggarwal9/Online-Courses-Notes | /Inversion of Control/XML/TrackCoach.java | UTF-8 | 289 | 2.171875 | 2 | [] | no_license | package ioc;
public class TrackCoach implements Coach{
@Override
public String getDailyWorkout() {
return "Run a hard 5k";
}
@Override
public String getSportName() {
// TODO Auto-generated method stub
return "Track";
}
}
| true |
fb51af91c6c09fe095d11e769562fea28923a33c | Java | gaoyao99409/springcloud | /springcloud-shardingjdbc-new/src/main/java/com/springcloud/springcloudshardingjdbcnew/util/BeanTools.java | UTF-8 | 5,628 | 2.65625 | 3 | [] | no_license | package com.springcloud.springcloudshardingjdbcnew.util;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.common.collect.Maps;
import or... | true |
7f9809ef79e5e6f899de4d8eb563b152ea16598d | Java | igoral5/load_telemetry | /src/com/shturmann/telemetry/UnitsCSVParser.java | UTF-8 | 1,034 | 2.015625 | 2 | [] | no_license | package com.shturmann.telemetry;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
/**
* Created by igor on 15.08.14.
*/
public class UnitsCSVParser extends UnitsParser
{
public UnitsCSVParser(DateTimeZone timeZone, String worker_name)
{
super(timeZone, worker_name);
}
@Ove... | true |
3d8f93fa37803aa28904848700cbebd6a103804c | Java | shuiyou/UITest | /src/main/java/Utils/CollectionStudy1.java | UTF-8 | 658 | 3 | 3 | [] | no_license | package Utils;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* Created by hanxiaodi on 17/7/26.
*/
public class CollectionStudy1 {
public static void main(String[] args){
List<String> staff = new LinkedList<String>();
staff.add("AMY");
staff.add("BOY"... | true |
68de4928a5c2cc015f110ec2244e0e47e406bbef | Java | SerjKrukov/pftask | /src/main/java/com/serj/pftask/model/HolidayRepository.java | UTF-8 | 169 | 1.546875 | 2 | [] | no_license | package com.serj.pftask.model;
import org.springframework.data.repository.CrudRepository;
public interface HolidayRepository extends CrudRepository<Holiday, Long> {
}
| true |
755bc0249bae2ccd3e55100b3a5f39f216777699 | Java | seongmu/HouseFinanceService | /src/main/java/com/kakao/housefinance/repo/HouFncSuppStatRepository.java | UTF-8 | 8,156 | 1.953125 | 2 | [] | no_license | package com.kakao.housefinance.repo;
import java.util.List;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframewo... | true |
637a563d5bd1589300239bb2424e0298dce79214 | Java | mkesy/DeansOffice | /src/main/java/com/config/MvcConfig.java | UTF-8 | 907 | 1.984375 | 2 | [] | no_license | package com.config;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.c... | true |
511952f2ea6b3a67113b6876984d688569bb7d34 | Java | xaedes/open-loop-search-for-general-video-game-playing | /src/TeamTopbug_HR/TraverseNodes/AStar.java | UTF-8 | 2,238 | 2.84375 | 3 | [] | no_license | package TeamTopbug_HR.TraverseNodes;
import TeamTopbug_HR.HeuristicComparator;
import TeamTopbug_HR.Node;
import TeamTopbug_HR.NodeAdvance;
import controllers.Heuristics.StateHeuristic;
import core.game.StateObservation;
import java.util.*;
public abstract class AStar extends Base {
protected StateHeuristic heur... | true |
787e1838719f8eceb62ef86dff84ad962093b183 | Java | Bgh237/Programming_Course_Java | /chapter5/ArrayBloodTypes.java | UTF-8 | 734 | 3.46875 | 3 | [] | no_license | package chapter5;
import java.text.DecimalFormat;
import java.util.Scanner;
public class ArrayBloodTypes {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
DecimalFormat dec = new DecimalFormat("0");
String[] bloodType = { "A+", "O-", "AB+", "O+", "AB+", "AB+", "O... | true |
6c19297cb6f69b3a32db2c658a103e5e1dc11e0c | Java | mechevarria/cp-sso | /springboot-api/src/main/java/com/sapns2/springbootapi/types/TypesService.java | UTF-8 | 744 | 2.21875 | 2 | [] | no_license | package com.sapns2.springbootapi.types;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;
@Service
public class TypesService {
@... | true |
b153e10d16a868b96a72b918706dc1342fe26959 | Java | JeffRhine/jeffJavaExercises | /m1-w3d2-unit-testing-exercises/src/test/java/com/techelevator/HomeworkAssignmentTest.java | UTF-8 | 2,142 | 2.984375 | 3 | [] | no_license | package com.techelevator;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class HomeworkAssignmentTest {
HomeworkAssignment sut;
@Before //part of arrange step, works for every test
public void setUp() throws Exception {
sut = new HomeworkAssign... | true |
0d4b7188854ab7c5e08eab62620a8bfc31a0ad46 | Java | dvtkachenko/JavaGroup2016 | /src/com/brainacad/module2_02/lab/Matrix.java | UTF-8 | 1,899 | 3.484375 | 3 | [] | no_license | package com.brainacad.module2_02.lab;
import java.util.Arrays;
/**
* Created by Дима on 03.12.2016.
*/
public class Matrix {
private boolean checkMatrix(int[][] matr1, int [][] matr2) {
if(matr1.length != matr2.length)
return false;
else {
int size = matr1.length;
... | true |
4793ed021b3201e9189534aaf31a22fd0576501a | Java | stramosk98/At.05---Vetor-e-Matriz | /atx15.java | UTF-8 | 695 | 3.09375 | 3 | [] | no_license | package vetor;
import java.util.Scanner;
public class atx15 {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
int[] n = new int[30];
int[] m = new int[30];
int j = 0;
int media = 0;
for(int i = 0; i < 30; i++){
System.out.println("Digite uma idade: " ... | true |
df4aabdab537e1d2cf25f2183a1d8163f1a4afb6 | Java | CundariNicolas/unqui-poo2-cundari | /test/tp3/unq/MultioperadorTestCase.java | UTF-8 | 1,393 | 2.984375 | 3 | [] | no_license | package tp3.unq;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class MultioperadorTestCase {
ArrayList<Integer> arregloEnteros = new ArrayList<Integer>();
ArrayList<Integer> arregloEnteros2 = new ArrayList<... | true |
864890e7c7e55be517020a2e6fab77d598e7d8a3 | Java | scc-digitalhub/dremio-oss | /sabot/kernel/src/main/java/com/dremio/sabot/exec/cursors/FileReaderMonitor.java | UTF-8 | 2,716 | 2.28125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | true |
9b9d26ff743a39406ae025b6ad4b4bff09ef7691 | Java | abhishekshakya-np/java | /src/abishek/learn1.java | UTF-8 | 316 | 2.578125 | 3 | [] | no_license | package abishek;
import java.util.Scanner;
class learn1 {
public static void main(String args[]) {
Scanner bucky = new Scanner(System.in);
int boy = 6;
int girls = 4;
System.out.println(boy++);
System.out.println(boy);
System.out.println(girls--);
System.out.println(girls);
bucky.close();
}
}
| true |
e96a50a32375d89a68f03506fb3f9990bbc3a464 | Java | dhineshd/Bioscope | /app/src/main/java/com/trioscope/chameleon/stream/PreviewStreamer.java | UTF-8 | 5,841 | 2.25 | 2 | [] | no_license | package com.trioscope.chameleon.stream;
import android.graphics.Bitmap;
import com.google.gson.Gson;
import com.trioscope.chameleon.ChameleonApplication;
import com.trioscope.chameleon.camera.impl.FrameInfo;
import com.trioscope.chameleon.listener.CameraFrameAvailableListener;
import com.trioscope.chameleon.listener.... | true |
41e51ffa639ee1dce472f35a81c97ebe13a4cbf1 | Java | mexmanny/msccbrewery | /src/main/java/spring/project/msccbrewery/web/controller/BeerController.java | UTF-8 | 2,520 | 2.15625 | 2 | [] | no_license | package spring.project.msccbrewery.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import or... | true |
757b803be26dbffb51f39b89c31d5bc3cc16681d | Java | IlyasPatel/rest | /src/main/java/QeHttpRequest.java | UTF-8 | 3,318 | 2.546875 | 3 | [] | no_license | import org.apache.http.HttpHeaders;
import org.apache.http.entity.ContentType;
import java.io.File;
import java.io.InputStream;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
public class QeHttpRequest {
private URI uri;
private Map<String, String> headers = new HashMap<>();
private... | true |
370ca79df6d93812a8e3e357646ad8f4248fc573 | Java | dtrimo/battleships.isdc.eu | /src/main/java/eu/isdc/internship/service/livegame/events/UserLeftGameEvent.java | UTF-8 | 267 | 1.5625 | 2 | [] | no_license | package eu.isdc.internship.service.livegame.events;
public class UserLeftGameEvent extends UserRelatedGameEvent{
public UserLeftGameEvent(){}
public UserLeftGameEvent(Long userId, Long gameId, Long startConfigId){
super(userId, gameId, startConfigId);
}
}
| true |
12f7af7e1b5c661db4228385f2c2d570c16cd11d | Java | dozzman/coding-practice | /Java/sorting/BubbleSort.java | UTF-8 | 832 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | package sorting;
import java.lang.*;
import java.util.*;
public class BubbleSort<T extends Comparable<T>> extends Sorter<T>
{
public String sortName() { return "Bubble Sort"; }
public void sort(T array [])
{
boolean swapped = true;
while (swapped == true)
{
swapped = f... | true |
24c5c0bb16b8aecde89370997865aaa8e2e64d02 | Java | Jaime001/Store-and-Products-JAVA | /src/Helper.java | UTF-8 | 3,855 | 3.453125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Locale;
import java.util.Scanner;
public class Helper {
public static String outputStringInput(String text){
Scanner scan = new Scanner(System.in);
System.out.println(text);
return scan.next();
}
public static Integer outputIntegerInput... | true |
0d26a0c7d3167749ddf88993102e4ce757106b36 | Java | Aaronong/ThePrinceRPG | /src/items/MagicianItems.java | UTF-8 | 2,930 | 3.171875 | 3 | [] | no_license | package items;
public class MagicianItems {
private int myStaff;
private int myMagicEssence;
private int myArmour;
private String[] Staff = new String[5];
private String[] MagicEssence = new String[5];
private String[] LightArmour = new String[5];
private int[] StaffInt = new int[5];
private int[] Ma... | true |
da629c3de4b54ed8b23c0e9de90d7ae02b64c3a3 | Java | polipoly/defaultRepository | /mblog/mblog-extend/src/main/java/mblog/extend/planet/CommentPlanet.java | UTF-8 | 868 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
+--------------------------------------------------------------------------
| Mblog [#RELEASE_VERSION#]
| ========================================
| Copyright (c) 2014, 2015 mtons. All Rights Reserved
| http://www.mtons.com
|
+---------------------------------------------------------------------------
*/
pac... | true |
2827eb1d3368419e7c72ba3c897de3a1fa952451 | Java | anaelChardan/Mines-A1-CoursArchitecture | /EntrainementControle/src/data/phrase/IPhrase.java | UTF-8 | 502 | 2.578125 | 3 | [] | no_license | package data.phrase;
import vocabulary.Vocabulaire;
public interface IPhrase {
/**
* Taille de la phrase.
* @return
*/
public int size();
public String toString();
/**
* Check if the sentence is meaningful.
* @return
*/
public boolean meaningful();
/**
* Teste si PAUL est en premier.
* @retu... | true |
f9359d476d83a608c6eb2247118ff2b2cdc09074 | Java | PiotrTrawinski/Kalambury | /Kalambury/src/kalambury/server/ServerMessage.java | UTF-8 | 896 | 2.578125 | 3 | [] | no_license | package kalambury.server;
import kalambury.sendableData.SendableData;
public class ServerMessage {
public enum ReceiverType{
All,
AllExcept,
One
}
private final SendableData data;
private final ReceiverType receiverType;
private final int param;
... | true |
e705a4056ca77b44f94fa6920e0fa813aa522b0d | Java | henrique3m/appservice-java-api | /src/gen/java/io/swagger/api/BooksApi.java | UTF-8 | 3,942 | 2.171875 | 2 | [] | no_license | package io.swagger.api;
import io.swagger.model.*;
import io.swagger.api.BooksApiService;
import io.swagger.api.factories.BooksApiServiceFactory;
import io.swagger.annotations.ApiParam;
import io.swagger.jaxrs.*;
import io.swagger.model.Book;
import java.util.List;
import io.swagger.api.NotFoundException;
import j... | true |
7f6870192b16e2fb4f29f405667d9f78b9741d23 | Java | hortonworks/cloudbreak | /core/src/main/java/com/sequenceiq/cloudbreak/service/cluster/EmbeddedDatabaseService.java | UTF-8 | 6,519 | 1.609375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"ANTLR-PD",
"CDDL-1.0",
"bzip2-1.0.6",
"Zlib",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdbm-1.00",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.sequenceiq.cloudbreak.service.cluster;
import java.util.Optional;
import javax.inject.Inject;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.seq... | true |
7f846f04c2217a813bd08b5bccb770dd04f4e1ae | Java | amitmkr/JavaPrep | /src/main/java/com/apm/completableFuture/CompletableFutureTest.java | UTF-8 | 2,840 | 3.390625 | 3 | [] | no_license | package com.apm.completableFuture;
import java.util.Collections;
import java.util.concurrent.CompletableFuture;
import static java.lang.Thread.sleep;
public class CompletableFutureTest {
private static CompletableFuture<?> printMultiplicationSync(int num1, int num2) {
return
getNumberAfterDelay(num1)
... | true |
cabc0040ed56be76587625aa3409d28609a3475c | Java | LordH/Image-Viewer | /image-viewer-client/src/se/viewer/image/gui/components/viewer/ViewerPanel.java | UTF-8 | 6,342 | 2.375 | 2 | [] | no_license | package se.viewer.image.gui.components.viewer;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.ut... | true |
3d951b1dc2f0d767586e8eacded5d4dac42fd949 | Java | anccelo/natSystemExo | /exerciceCartes/src/test/java/model/JouerTest.java | UTF-8 | 888 | 2.609375 | 3 | [] | no_license | package model;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import static org.junit.jupiter.api.Assertions.assertEquals;
@ExtendWith(MockitoExtension.class)
public class JouerTest {
private final... | true |
16eb1b8c307e32a2b229f8ddbde502112426f717 | Java | SGordon94/CS2334Project2 | /Project2_CS2334/src/Meeting.java | UTF-8 | 5,709 | 3.421875 | 3 | [] | no_license | import java.io.Serializable;
import java.util.*;
/**A data-oriented class. Meetings are contained within Conferences.
* They contain ConferencePapers.
*
* @version 1.0
*/
public class Meeting implements Serializable{
private static final long serialVersionUID = 6553738379612061434L;
private String ... | true |
fc86e4f3d43aa2a411b233112887c8fe5bd1a4fd | Java | SupaHotFiya-Security/curcon-backend | /src/main/java/nl/hu/curcon/service/MillerNiveauService.java | UTF-8 | 206 | 1.742188 | 2 | [] | no_license | package nl.hu.curcon.service;
import java.util.List;
import nl.hu.curcon.dto.MillerNiveauDto;
public interface MillerNiveauService {
MillerNiveauDto find(int id);
List<MillerNiveauDto> findAll();
}
| true |
a91300bf60bd925fc6f6611d753557fcfceddfb5 | Java | Synesso/instinct | /core/src/main/java/com/googlecode/instinct/expect/state/checker/EventObjectChecker.java | UTF-8 | 1,014 | 1.90625 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"W3C",
"SAX-PD"
] | permissive | /*
* Copyright 2006-2007 Tom Adams
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
a186f6631a96c6561e38648b350a58ddccab29ef | Java | 320761248/blog | /zxz_blog/src/main/java/com/zxz/service/UserService.java | UTF-8 | 190 | 1.617188 | 2 | [] | no_license | package com.zxz.service;
import com.zxz.util.Result;
/**
* Created by limi on 2017/10/15.
*/
public interface UserService {
public Result addUser(String email, String password);
}
| true |
70a374bbdf9d462ef2b3c9779bcd9b1f77dfcb2d | Java | DeKal/Kata-BowlingGame | /src/Game.java | UTF-8 | 1,580 | 3.234375 | 3 | [] | no_license | public class Game {
private int[] rolls = new int[21];
private int currentRoll = 0;
public void roll(int pins) {
rolls[currentRoll++] = pins;
}
public int score() {
int totalScore = 0;
int scoreIndex = 0;
for (int frame = 0; frame <= 10; ++ frame) {
if (... | true |
40587af7da452963663d898bb034b353c533f961 | Java | yaju1234/teacher | /app/src/main/java/com/mdgroup/teacher/schoolmodel/ModelNews.java | UTF-8 | 2,506 | 2.125 | 2 | [] | no_license | package com.mdgroup.teacher.schoolmodel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class ModelNews implements Serializable {
@SerializedName("NEWS_ID")
@Expose
private String NEWS_ID;
@SerializedN... | true |
7d54fcf1fb43f8e9a217c8ca866acc5feca2bc87 | Java | sumit784/crawler-3 | /src/test/java/com/qinyuan15/crawler/core/http/lib/TestProxyPool.java | UTF-8 | 1,818 | 2.515625 | 3 | [] | no_license | package com.qinyuan15.crawler.core.http.lib;
import com.qinyuan15.crawler.core.http.proxy.ProxyPool;
import com.qinyuan15.crawler.dao.Proxy;
import java.util.ArrayList;
import java.util.List;
/**
* A ProxyPool for testing
* Created by qinyuan on 15-1-2.
*/
public class TestProxyPool implements ProxyPool {
pr... | true |
4a0be994bb3bc87cf1373a45a9857228791266a7 | Java | AnuruddhaSrimalWeerawardhana/gymSystem1_ | /src/controllers/FinanceDelete_IncomeServlet.java | UTF-8 | 1,527 | 2.359375 | 2 | [] | no_license | package controllers;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import DBHelpers.Finance_IncomeDeleteQuery;
... | true |
9e05b123f8682daa929a39ecdcb5866c6f9275a6 | Java | jprante/datastructures | /datastructures-api/src/main/java/org/xbib/datastructures/api/Generator.java | UTF-8 | 175 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package org.xbib.datastructures.api;
import java.io.IOException;
import java.io.Writer;
public interface Generator {
void generate(Writer writer) throws IOException;
}
| true |
a1d95d71f2c2638e6477dec75a2846cff01101f3 | Java | SuperFatSeries/CourseServer | /src/main/java/com/dds/sfscourse/dto/CourseInfoDto.java | UTF-8 | 1,418 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.dds.sfscourse.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CourseInfoDto {
@JsonProperty(value = "courseware_count")
Integer coursewareCount;
@JsonProperty(value = "dated_count")
Integer datedCount;
@JsonProperty(value = "homework_count")
Integer homewo... | true |
736b84cdd00d413209af54618ba602fc612fe957 | Java | wushenjiang/TDTreeHole | /app/src/main/java/com/androidlearing/tdtreehole/pojo/PostAndRepost.java | UTF-8 | 1,032 | 2.125 | 2 | [] | no_license | package com.androidlearing.tdtreehole.pojo;
import com.androidlearing.tdtreehole.bean.ItemBean;
import com.androidlearing.tdtreehole.bean.ItemBeanRepost;
import java.util.List;
/**
* @ProjectName: TDTreeHole
* @Package: com.androidlearing.tdtreehole.pojo
* @ClassName: PostAndRepost
* @Description: java类作用描述
* @... | true |
848d1d57b239844f972a6a264459a6442bb9999e | Java | apache/flink | /flink-runtime/src/main/java/org/apache/flink/runtime/operators/chaining/SynchronousChainedCombineDriver.java | UTF-8 | 10,026 | 1.664063 | 2 | [
"BSD-3-Clause",
"OFL-1.1",
"ISC",
"MIT",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
e7dacb0ba6d2b1b1041f2d878f06dd2e7cdb80c0 | Java | simao-ferreira/PD_ThreeRow | /src/MainWithGui.java | UTF-8 | 256 | 1.648438 | 2 | [] | no_license |
import logic.ObservableGame;
import ui.gui.ThreeInRowView;
public class MainWithGui
{
public static void main(String[] args)
{
//ThreeInRowView GUI = new ThreeInRowView(new ObservableGame());
}
}
| true |
b88fff282225529da2c5d70f6a1d3ff108754eb0 | Java | hataoka/Lunch_Spring | /src/main/app/model/Purchase.java | UTF-8 | 398 | 2.390625 | 2 | [] | no_license | package app.model;
import java.io.Serializable;
import java.sql.Date;
import lombok.Data;
@Data
public class Purchase implements Serializable {
private String id;
private Date purchase_date;
private int suu;
public Purchase() {
}
public Purchase(String id, Date purchase_date, int suu) {
th... | true |
f70533dcaf7d8d402dab389f9544d837dda1c802 | Java | yogurts/Aircraft | /src/com/Exception/SumTest.java | UTF-8 | 716 | 3.09375 | 3 | [] | no_license | package com.Exception;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* @author Ita
*
* 保证程序在修改后其结果仍然是正确的 测试驱动的开发过程 JUnit
* @Test来标注测试函数
* 在测试中常用的语句:
* fail(信息);//表示程序出错
* assertEqauls(参数1,参数2) //表示程序要保证两个参数要相等
* assertNull(参数); //表示参数要为null
*
*/
public class SumTest {
@Test
public void... | true |
63ea35b09713f32ef3122af5b25440e6f12b4b8c | Java | ftc8626/2015-2016 | /ftc_app-master/FtcRobotController/src/main/java/org/umeprep/ftc/FTC8626/Speedy/Motion.java | UTF-8 | 9,992 | 2.3125 | 2 | [
"MIT"
] | permissive | package org.umeprep.ftc.FTC8626.Speedy;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorController;
import com.qualcomm.robotcore.util.ElapsedTime;
import com.qualcomm.robotcore.util.Range;
// for telemetry.addData...
//import com.qualcomm.robotcore.eventloop.opmode.Linea... | true |
77b18b723f0bfcb657b96f2be77279692d303ca6 | Java | sohnoun/floto | /builder/src/main/java/io/github/floto/builder/FlotoBuilderParameters.java | UTF-8 | 386 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package io.github.floto.builder;
import com.beust.jcommander.Parameter;
import io.github.floto.core.FlotoCommonParameters;
public class FlotoBuilderParameters extends FlotoCommonParameters {
@Parameter(names = "--compile-check", description = "Only run the compilation step, return exit code 0 iff compile is successf... | true |
c3c5da07c7827c32cab40dd510d70ce10090c15d | Java | facebook/buck | /src/com/facebook/buck/android/exopackage/ExopackageInfo.java | UTF-8 | 3,680 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | true |
90bfa6c3b67f62be5db7920606bfb7399002d522 | Java | dineshndr/Handson | /SpringHandson/src/main/java/example8/CourseList.java | UTF-8 | 1,337 | 2.890625 | 3 | [] | no_license | package example8;
import java.util.List;
import javax.swing.text.DefaultStyledDocument;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
@Component
public class CourseList {
private List<Course> courseList = new ArrayList();
public CourseList() {
}
public CourseList... | true |
b1526140902908a290dd3743cc968c47cf9a219a | Java | cckmit/fcs | /FBPM/RM_20170401/fcs-rm-integration/src/main/java/com/born/fcs/rm/integration/common/impl/ClientAutowiredBaseService.java | UTF-8 | 1,077 | 1.507813 | 2 | [] | no_license | package com.born.fcs.rm.integration.common.impl;
import com.born.fcs.pm.ws.service.report.ToReportService;
import org.springframework.beans.factory.annotation.Autowired;
import com.born.fcs.pm.biz.service.common.OperationJournalService;
import com.born.fcs.pm.biz.service.common.SiteMessageService;
import com.born.fcs... | true |
2be048bdce7a88bb7f13f836161958240999055e | Java | hellen365/hotel-urbano | /maven-projeto/src/main/java/br/com/silva/modelo/Reserva.java | UTF-8 | 1,540 | 2.25 | 2 | [] | no_license | package br.com.silva.modelo;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="reserva")
public class Reserva {
@Id
@Gen... | true |
16df9321637586c7d5445233fc079e14ffeb258d | Java | DaedalusGame/MistyWorld_Open | /src/main/java/ru/liahim/mist/capability/SkillCapability.java | UTF-8 | 1,872 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package ru.liahim.mist.capability;
import ru.liahim.mist.capability.handler.ISkillCapaHandler;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.ICapabi... | true |
31b94eff7e63c72b332b2fb5f22eb558f9714821 | Java | birfincankafein/customcamera | /app/src/main/java/com/birfincankafein/customcamerademo/CapturedMedia.java | UTF-8 | 2,773 | 2.34375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package com.birfincankafein.customcamerademo;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.MediaMetadataRetriever;
import android.media.ThumbnailUtils;
import android.net.Uri;
import android.os.Parcel;
import... | true |
00dc2a07143a7f365aaacf244908ac0ebffa683c | Java | tim4724/RoverRemoteControl | /app/src/main/java/com/tim/domi/remotecontrol/RemoteControl.java | UTF-8 | 4,141 | 2.671875 | 3 | [] | no_license | package com.tim.domi.remotecontrol;
import android.util.Log;
import com.tim.domi.remotecontrol.listener.RemoteListener;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetSocketAddress;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import static com.tim.do... | true |
d6f8e719849600241de7088549591bccc27dbd8b | Java | ChenJingLei/wing | /caur2cd-test/src/main/java/com/chinatel/caur2cdtest/storage/StorageProperties.java | UTF-8 | 454 | 1.914063 | 2 | [] | no_license | package com.chinatel.caur2cdtest.storage;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
@PropertySource("classpath:storage.properties")
@Data
@ConfigurationProperties(ignoreUnknownFields = false, prefix = ... | true |
962e37eaf529d93b20ce4a6660197eb08ecd4bec | Java | jieshengmu/cms | /CMS/src/main/java/cn/itsource/exception/AuthenticationException.java | UTF-8 | 488 | 2.25 | 2 | [] | no_license | package cn.itsource.exception;
/**
* @Title: AuthenticationException.java
* @author:牟胜杰
* @Package:cn.itsource.exception
* @Description:(作用:自定义异常)
* @date:2020年7月15日 下午6:53:30
* @version:V1.0
*/
public class AuthenticationException extends Exception {
private static final long serialVersionUID = 678764915913... | true |
f4ec5e9c9d0dd1a3d21fc333008e9c1f4672dc4d | Java | thiagocast/projetoturma8c | /projetofinal/src/main/java/br/com/projetofinal/controller/DevCadastros.java | UTF-8 | 1,524 | 2.234375 | 2 | [] | no_license | package br.com.projetofinal.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import br.com.projetofinal.beans.Atividade;
imp... | true |
094ac24e300b8d87f55460b02f2c978c92239d42 | Java | youduim/youdu-sdk-java | /src/main/java/im/youdu/sdk/server/IReceiveYdMsg.java | UTF-8 | 154 | 1.734375 | 2 | [] | no_license | package im.youdu.sdk.server;
import im.youdu.sdk.entity.ReceiveMessage;
public interface IReceiveYdMsg {
public void receive(ReceiveMessage msg);
}
| true |
c465871ff3541c7fcc5447c2dff8076d5d623087 | Java | zbartholomew/VariousProjects | /InventoryManagement/test/com/zbartholomew/ProductInventoryManagerTest.java | UTF-8 | 4,322 | 3.1875 | 3 | [] | no_license | package com.zbartholomew;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* <h1> {@link ProductInventoryManager} testing class. </h1>
* <p> Verifies the picking and restocking of a Products inventory
* and checks the {@link RestockingResult} / {@link PickingResult}
* re... | true |
51222c935432a54f7519ef844401d4c289c27690 | Java | unuldur/Uminc | /app/src/main/java/com/unuldur/uminc/model/IEtudiant.java | UTF-8 | 444 | 2 | 2 | [] | no_license | package com.unuldur.uminc.model;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
/**
* Created by Unuldur on 06/12/2017.
*/
public interface IEtudiant extends Serializable {
String getNUmEtu();
String getPassword();
List<UE> getUEs();
List<UE> getActualUEs();
List<Note... | true |
4ab114ca01f90af4421ffc7f33b86be459cff0c5 | Java | nngo2/SWE | /business/Quantity.java | UTF-8 | 842 | 2.75 | 3 | [] | no_license | package business;
/**
* Stored at the business level since it's business data. Not stored in product subsystem because contains gui data
*/
public class Quantity {
private String quantityRequested;
private String quantityAvailable;
public Quantity(String quantityRequested) {
this.quantityRequested = quantityReq... | true |
ddec05d4da9fb06d015d78dc66e3e9e2a1cf3be5 | Java | Thomas-art-hue/boot_03 | /src/main/java/com/example/interceptor/Sessioniceptor.java | UTF-8 | 1,314 | 2.671875 | 3 | [] | no_license | package com.example.interceptor;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class Sessioniceptor extends HandlerInterceptorAdapter {
/**
... | true |
4c5673acc605421d54c9256421c1e8c2c980d3be | Java | Rohan009/LeapYear | /LeapYear.java | UTF-8 | 645 | 3.5625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class LeapYear {
public static void main(String[] args) {
List<Integer> leapYears = new ArrayList<>();
leapYears.add(1700);
leapYears.add(1900);
leapYears.add(2000);
leapYears.add(1600);
leapYears.add(100);
leapYears.add(1996);
... | true |
c5a7c05d1a0f7aa9a71a3b1d7b26f21484f8e22f | Java | kedarkhetia/PubSub-Framework | /src/main/java/cs601/project2/brokerImpl/AsyncOrderedDispatchBroker.java | UTF-8 | 2,670 | 3.203125 | 3 | [] | no_license | package cs601.project2.brokerImpl;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import cs601.project2.broker.Broker;
import cs601.project2.collections.AsyncBlockingQueue;
import cs601.project2.roles.Subscriber;
/**
* AsyncOrd... | true |
e57135f8c6c1ce4d561fac80f77e5225766f30a7 | Java | Iratu/videostreamer | /backend/src/main/java/org/eientei/video/backend/config/PersistenceConfiguration.java | UTF-8 | 857 | 1.789063 | 2 | [] | no_license | package org.eientei.video.backend.config;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.orm.hibernate4.HibernateExceptionTran... | true |
139018f98b238f93220bcfb87ee75d0409683cdf | Java | kumarh1982/rsocket | /rsocket-transport-netty/src/main/java/com/jauntsdn/rsocket/transport/netty/WebsocketUriHandler.java | UTF-8 | 2,132 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2018 the original author or authors.
*
* 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 app... | true |
903355c2a8c1384e78e6d03a72a2b34ec24342f6 | Java | idoroshev/RevolutTest | /src/main/java/org/idorashau/revoluttest/dto/Account.java | UTF-8 | 834 | 2.375 | 2 | [] | no_license | package org.idorashau.revoluttest.dto;
import java.util.UUID;
public class Account {
private UUID accountId;
private long balance;
private String currency;
public Account() {
}
public Account(UUID accountId, long balance, String currency) {
this.accountId = accountId;
this.b... | true |
043f5d3d4ed50c1ec5628008949ecb6664e95ff6 | Java | ridajawda/pm-test | /pm-test/src/main/java/zfp/com/pmtest/repository/ConsultantRepository.java | UTF-8 | 333 | 1.609375 | 2 | [] | no_license | package zfp.com.pmtest.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import zfp.com.pmtest.entity.Client;
import zfp.com.pmtest.entity.Consultant;
@Repository
public interface ConsultantRepository extends CrudRepository<Consultant, ... | true |
3580bddcaffba88b216d2e090123063576766edf | Java | sususama/PTA | /src/LeetCode/剑指offer/TranslateNum.java | UTF-8 | 1,099 | 4.125 | 4 | [] | no_license | package LeetCode.剑指offer;
public class TranslateNum {
public int translateNum(int num) {
// 这道题我们可以首先把每个下标看成单独的数字进行翻译,然后和它的前一位进行合并
// 看他们是否合法,即前一位和当前为组合为 10 - 25,如果合法,就将其进行统计,否则就不计数
String str = String.valueOf(num);
// 分别代表:最多可以翻译的数量,上一个的最大数量,上上一个最大数量
int answer = 1,ind = 0,... | true |
ced368fc3530c8b0ab69c9ec5af0af845327c342 | Java | Blizzzer/DBClientUganda | /src/com/resources/RestrictedValuesStrings.java | UTF-8 | 736 | 2.359375 | 2 | [] | no_license | package com.resources;
import java.util.Arrays;
import java.util.List;
public final class RestrictedValuesStrings {
public static List<String> tankerPosition = Arrays.asList( "G", "D", "C", "L");
public static List<String> engineerType = Arrays.asList( "BC", "EE", "ME", "ED");
public static List<String> e... | true |
6ca8f8b316ecbc4f33bd06e87443b269f7da5889 | Java | 201DevC/201-Backend | /src/main/java/com/cs201/sendo/mappers/CategoryRepository.java | UTF-8 | 892 | 1.914063 | 2 | [] | no_license | package com.cs201.sendo.mappers;
import com.cs201.sendo.models.Category;
import com.cs201.sendo.models.paging.PagingParams;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
@Mapper
@Repository
public inte... | true |
0d11d550b27fcd4a03e46eedb82d0d6566302cdb | Java | oceanbhardwaj/LeetcodeJulyChallenge | /ReverseBits.java | UTF-8 | 428 | 2.984375 | 3 | [] | no_license | public class Solution {
// you need treat n as an unsigned value
public int reverseBits(int n) {
boolean sign=false;
if(n<0)
sign=true;
int res=0;
for(int i=0;i<31;i++)
{
res|=(n & 1);
n=n>>1;
res=res<<1;
... | true |
86b4341359fb1b2c8dc5ca441580b8e557bbc6b3 | Java | jupiter-tools/spring-test-mongo | /src/test/java/com/jupiter/tools/spring/test/mongo/internal/expect/match/smart/groovy/MatchGroovyTest.java | UTF-8 | 3,033 | 2.421875 | 2 | [] | no_license | package com.jupiter.tools.spring.test.mongo.internal.expect.match.smart.groovy;
import com.antkorwin.commonutils.exceptions.InternalException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import java.util.Date;
import static org.assertj.core.api.Ass... | true |
7ba655139d9e4915221ef1c3f1d27151dad467f6 | Java | tfmorris/Names | /score/src/main/java/org/folg/names/score/FeaturesScorer.java | UTF-8 | 2,042 | 2.421875 | 2 | [
"Apache-2.0",
"CC-BY-SA-4.0"
] | permissive | /*
* Copyright 2011 Foundation for On-Line Genealogy, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
7b84c160d513c04598ba38a237ed86c9fff5b731 | Java | llxqb/Kencanme | /app/src/main/java/com/shushan/kencanme/app/mvp/ui/activity/loveMe/LoveMePeopleControl.java | UTF-8 | 1,201 | 2.15625 | 2 | [] | no_license | package com.shushan.kencanme.app.mvp.ui.activity.loveMe;
import com.shushan.kencanme.app.entity.request.LikeRequest;
import com.shushan.kencanme.app.entity.request.MyFriendsRequest;
import com.shushan.kencanme.app.entity.request.RequestFreeChat;
import com.shushan.kencanme.app.entity.response.MyFriendsResponse;
impor... | true |
cc40811b9115fb3feffcfc63055e2736510af1fb | Java | khatwaniNikhil/microservices-breaking-up-a-monolith | /monolith/src/main/java/com/xebia/msa/domain/Account.java | UTF-8 | 1,917 | 2.640625 | 3 | [] | no_license | package com.xebia.msa.domain;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.UUID;
@Entity
public class Account {
@Id
private UUID uuid;
private String address;
private String phoneNumber;
private String email;
public Account() {}
public Account(UUID uuid, ... | true |
c413450497f87716ad82368d33a74400ff6a15bd | Java | fontanellileonardo/CarRenting-KeyValue | /src/Utils.java | UTF-8 | 865 | 2.484375 | 2 | [] | no_license | import java.time.LocalDate;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
public class Utils {
public final static int CAR_MANAGER = 1,
USER_TABLE = 2,
FEEDBACK_TABLE = 3,
RESERVATION_TABLE = 4;
public final static long ... | true |
c01f23fbf152b505d1d479ecb4201fac67c9e219 | Java | Sudarsan-Sridharan/java-fix | /fix-engine-jackson/src/main/java/me/kolek/fix/engine/jackson/FixEngineConfigurationDeserializer.java | UTF-8 | 1,440 | 2.1875 | 2 | [] | no_license | package me.kolek.fix.engine.jackson;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import me.kolek.fix.engine.config.FixEngineConfiguration;
i... | true |
6eb68593001d9d541c2434a19f6b20bf0d3dfab6 | Java | Daso/POO | /UPCMatricula/src/upcmatricula/UPCMatricula.java | UTF-8 | 262 | 1.609375 | 2 | [] | no_license | package upcmatricula;
import models.*;
import vistas.MatriculaView;
public class UPCMatricula {
public static void main(String[] args) {
MatriculaView matriculaview = new MatriculaView();
matriculaview.matricular();
}
}
| true |
f91fdf9c2cb7dac0029e8919c2cc1d1a169559c8 | Java | otokatari/androidMusic | /app/src/main/java/otokatari/com/otokatari/Model/s/RequestInfo/CommentsShareWithID.java | UTF-8 | 696 | 1.8125 | 2 | [] | no_license | package otokatari.com.otokatari.Model.s.RequestInfo;
public class CommentsShareWithID {
private String musicid;
private String commentid;
private CommentsShare commentsShare;
public String getMusicid() {
return musicid;
}
public CommentsShare getCommentsShare() {
return commen... | true |
74c3d48d3581a6cb21cd235736372769e4439706 | Java | lichong6232/SwordToOffer | /src/cn/bupt/swordToOffer/GetKminNumber.java | UTF-8 | 3,134 | 3.34375 | 3 | [] | no_license | package cn.bupt.swordToOffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class GetKminNumber {
public static void main(String[] args) {
GetKminNumber getKminNumber=new GetKminNumber();
int input[]={4,5,1,6,2,7,3,8};
int k=9;
List<Integer> list=getKminNumber.GetLeast... | true |
6f16c5c1abc49d1ef9f199c1d09a8cab6e9b4cbd | Java | FanZicheng/ccden | /src/main/java/com/coaledu/org/iservice/IPositionService.java | UTF-8 | 392 | 1.976563 | 2 | [] | no_license | package com.coaledu.org.iservice;
import java.util.List;
import com.coaledu.org.model.Position;
public interface IPositionService {
public void addPosition(Position position);
public void deletePositionById(Integer id);
public void updatePosition(Position position);
public Position getPosit... | true |
fef36305037735facda4f680eba3cc9a19ce32bd | Java | KafferAffer/SoftwareEksamensProjekt | /EksamensProjekt/src/Applikationslag/Redskaber/Dates.java | UTF-8 | 433 | 2.640625 | 3 | [] | no_license | package Applikationslag.Redskaber;
import java.time.LocalDate;
import java.time.temporal.WeekFields;
import java.util.Locale;
public final class Dates {
public static int getCurrentWeek() {
LocalDate date = LocalDate.now();
WeekFields weekFields = WeekFields.of(Locale.getDefault());
return date.get(we... | true |