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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d78fe7c8bbf571ccafc63b131c8f17b7a71cba9f | Java | goofyahead/volleyStats | /app/src/main/java/com/mgl/volleystats/models/Reception.java | UTF-8 | 354 | 2.109375 | 2 | [] | no_license | package com.mgl.volleystats.models;
/**
* Created by goofyahead on 10/23/15.
*/
public class Reception extends Play {
private String type = Reception.class.getSimpleName();
public Reception(String playerId, int quality, String timeStamp, String matchId, String teamId) {
super(playerId, quality, tim... | true |
ec59349cca44d5ec0239b7f38c2abebfd480bad3 | Java | IvanPavlovets/ipavlovets | /chapter_003/src/main/java/ru/job4j/collections/convert/ConvertList2Array.java | UTF-8 | 1,182 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.collections.convert;
import java.util.Arrays;
import java.util.List;
public class ConvertList2Array {
/**
* Метод равномерно разбивает коллекцию list на количество строк двумерного массива.
* В методе организуеться проверка - если количество элементов не кратно количеству строк
* ... | true |
573786f93abf6e7e2e5c74f18b23524152df7169 | Java | flame-stream/FlameStream | /runtime/src/test/java/com/spbsu/flamestream/runtime/sum/Reduce.java | UTF-8 | 382 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.spbsu.flamestream.runtime.sum;
import com.spbsu.flamestream.core.graph.SerializableFunction;
import java.util.List;
import java.util.stream.Stream;
final class Reduce implements SerializableFunction<List<Numb>, Stream<Sum>> {
@Override
public Stream<Sum> apply(List<Numb> group) {
return Stream.of... | true |
d03e0cf581acf3901dce37cf5f801ff32d742a4f | Java | quirinal36/DadaBrick | /src/main/java/dada/brick/com/service/PhotoInfoService.java | UTF-8 | 1,722 | 2.0625 | 2 | [] | no_license | package dada.brick.com.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import dada.brick.com.dao.PhotoInfoDAO;
import dada.brick.com.vo.PhotoInfo;
@Component("photoInfoService")
public class PhotoInfoService... | true |
f846b3bd05fa76d1885f8578ec20d4795bc69869 | Java | SagarDep/Custom-Gallery | /app/src/main/java/com/orgware/customgallery/adapter/folder/FolderAdapter.java | UTF-8 | 2,884 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.orgware.customgallery.adapter.folder;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
imp... | true |
bba8eac61db057dbd1d59dc30bbfb8e3e810f2e8 | Java | hustChen/swordtooffer | /src/FindPath.java | UTF-8 | 942 | 3.140625 | 3 | [] | no_license | import java.util.ArrayList;
/**
* Created by chensq on 17-2-9.
* 为毛要从跟节点一直到叶子节点,无聊
*/
public class FindPath {
ArrayList<ArrayList<Integer>> result=new ArrayList<>();
ArrayList<Integer> tmp=new ArrayList<>();
public ArrayList<ArrayList<Integer>> FindPath(TreeNode root, int target) {
find(root,tar... | true |
f1501e16b948a898896f2be357f7a55a4a3a0b19 | Java | bellmit/Advance-1 | /realproject/aiwue2/aiwue/src/main/java/com/aiwue/model/FavoriteArticle.java | UTF-8 | 538 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package com.aiwue.model;
/**
* Created by 44548 on 2016/5/29.
*/
public class FavoriteArticle extends Article {
private int favoriteId; //收藏id
private long favoriteTime; //收藏时间
public int getFavoriteId() {
return favoriteId;
}
public void setFavoriteId(int favoriteId) {
this.fa... | true |
ea7396473bdb95613722f492a7fc064af2a25a55 | Java | susimian/test_security2 | /src/main/java/com/simian/test_security2/config/WebSecurityConfig.java | UTF-8 | 4,704 | 2.203125 | 2 | [] | no_license | package com.simian.test_security2.config;
import com.simian.test_security2.component.AuthenticationAccessDeniedHandler;
import com.simian.test_security2.component.CustomAccessDecisionManager;
import com.simian.test_security2.component.CustomFilterInvocationSecurityMetadataSource;
import com.simian.test_security2.compo... | true |
e6eb259200512af2bd42ae1899d7165c2686159a | Java | cnywb/ford-mediadata-mgt | /mgt-api/src/main/java/com/ford/mediadata/mgt/entity/im/ImCodeType.java | UTF-8 | 2,299 | 2.078125 | 2 | [] | no_license | package com.ford.mediadata.mgt.entity.im;
import javax.persistence.*;
import com.ford.mediadata.mgt.entity.VersionEntity;
/**
* 字典大类
* Created by ziv.hung on 15/10/13.
*
* @since 1.0
*/
@Entity
@Table(name = "MD_IM_CODE_TYPE")
public class ImCodeType extends VersionEntity {
/** 物理主键 */
... | true |
3e5e637f6511a93617cce59462172c23a2b32c1b | Java | Ypalav/tracker | /api/tracker/src/main/java/io/egen/service/VehicleServiceImpl.java | UTF-8 | 920 | 2.25 | 2 | [] | no_license | package io.egen.service;
import io.egen.entity.Vehicle;
import io.egen.exception.NotFoundException;
import io.egen.repository.VehicleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.spri... | true |
d03efecb80a69fa4e2e7959f74074dfe3dbe9ef4 | Java | probasranjan/aoneposapp | /dev-1.0/src/net/authorize/android/SDKActivity.java | UTF-8 | 6,431 | 2.015625 | 2 | [] | no_license | package net.authorize.android;
import java.util.ArrayList;
import java.util.HashMap;
import net.authorize.Environment;
import net.authorize.android.dialog.Dialog_ShoppingDetails;
import net.authorize.util.HttpClient;
import net.authorize.util.StringUtils;
import android.app.Activity;
import android.content.... | true |
16d4fc4a75fcf814db4d30777361046acb0db1ef | Java | automateeverything891/RestAssuredBDDConcepts | /src/test/java/serializationANDdeserialization/VideoGameAPISerialization.java | UTF-8 | 1,015 | 2.421875 | 2 | [] | no_license | package serializationANDdeserialization;
import java.sql.Timestamp;
import org.testng.annotations.Test;
import io.restassured.http.ContentType;
import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.*;
public class VideoGameAPISerialization {
@Test(priority=1)
public void postVideoGameS... | true |
6a833fd42ee715aa2671b05339c2ed584a45c3b1 | Java | CraigP17/GameBoi-CSC207 | /phase2/app/src/main/java/com/example/gameboi/BonusSpinner/SpinnerCalc.java | UTF-8 | 1,922 | 3.640625 | 4 | [] | no_license | package com.example.gameboi.BonusSpinner;
/**
* This class is responsible for calculating where the wheel landed and the User's multiplier
*/
class SpinnerCalc {
/**
* This is a string of the sections of the spinning wheel, representing the multiplier that the
* User gets
* It follows the order o... | true |
57febf82b4d99e0a4c375b79672438e5e0eb44e1 | Java | caadi0/leetcode | /155. Min Stack.java | UTF-8 | 1,121 | 3.59375 | 4 | [] | no_license | public class MinStack {
Stack<Integer> stack = new Stack<Integer>();
Stack<Integer> minStack = new Stack<Integer>();
/** initialize your data structure here. */
public MinStack() {
}
public void push(int x) {
stack.push(x);
if(minStack.empty()) {
m... | true |
85ee4f639202d048b151a3befddbaccb2307b6a3 | Java | msasanksai/EVOLVFIT-Backend | /API/src/main/java/com/backend/API/repository/commentRepo.java | UTF-8 | 424 | 1.789063 | 2 | [] | no_license | package com.backend.API.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.backend.API.entity.Comments;
@Repository
public interface commen... | true |
e7bee93d48e646caf38ac086a9d0e3a8b22b0eb8 | Java | gzsltt/JavaProjects | /RoutingProtocal/src/f/DJThread.java | UTF-8 | 489 | 2.375 | 2 | [] | no_license | package f;
public class DJThread implements Runnable{
public void run()
{
while(true) {
try {
Thread.sleep(5000);
Shortest s=new Shortest();
Route route=new Route();
int start=route.node_port-2000;
// for(int i=0;i<6;i++)
// {
// for(int j=0;j<6;j++)
// {
// System.out.print(Route.graph[i][j... | true |
7e9b1a7d201836b27d598dbefcf6dc1947b7cc80 | Java | imzwz/pyalg | /codejam/three1.java | UTF-8 | 1,125 | 3.21875 | 3 | [] | no_license | import java.io.*;
public class three1{
static String infile = "in.txt";
static String outfile = "out.txt";
public static void fun() throws IOException{
BufferedReader in = new BufferedReader(new FileReader(infile));
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(outfile,... | true |
0167b6161bf2557559842dd201590f0d1033776b | Java | baopengjian/Ray_DailyWork | /app/src/main/java/com/example/baopengjian/ray_dailywork/nineth/TextNumberPicker.java | UTF-8 | 2,062 | 2.390625 | 2 | [] | no_license | package com.example.baopengjian.ray_dailywork.nineth;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.NumberPicker;
import com.example.baopen... | true |
5481728ac83722a4e139e8ce2cab8170e111a0b4 | Java | michellegardner77/MockTwitter | /app/src/main/java/com/mgard/mock_twitter/models/Post.java | UTF-8 | 776 | 2.453125 | 2 | [] | no_license | package com.mgard.mock_twitter.models;
import java.util.Date;
/**
* Created by mgard on 3/5/2017.
*/
public class Post {
private String postText;
private String submitter;
private Date submitDate;
public Post (String postText, String submitter, Date submitDate){
this.postText = postText;... | true |
32e7ee453b036ee45df83021f84322c7a0c35308 | Java | lihanxiang1/TaoBao | /app/src/main/java/com/bwie/lonely/taobao/home/Fragment_HomePage.java | UTF-8 | 4,342 | 1.84375 | 2 | [] | no_license | package com.bwie.lonely.taobao.home;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewG... | true |
35fbb35d579d2050b176e50373bdbb2defee31e1 | Java | mayankmikin/nodemcu_rest | /src/main/java/com/whitehall/esp/microservices/services/PlanService.java | UTF-8 | 1,102 | 2.171875 | 2 | [] | no_license | package com.whitehall.esp.microservices.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.whitehall.esp.microservices.model.Plan;
import com.whitehall.esp.microservices.repositories.PlanRepository;
import lombok.extern.slf4j.Slf4j;
impo... | true |
38749d0d951bd78f68eb6e32df13f780229cbcf3 | Java | antest1/KcaSampleClient | /app/src/main/java/com/antest1/kcasampleclient/MainActivity.java | UTF-8 | 4,506 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.antest1.kcasampleclient;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.ButtonBarLayout;
import android.text.method.ScrollingMovementMethod;
import android.vie... | true |
2967e11b6d0db38f5c94932929fb17e2d772db64 | Java | Quantium-Nonsense/ProjectOmega | /Backend/src/main/java/com/project/omega/helper/TestingConstant.java | UTF-8 | 337 | 1.554688 | 2 | [] | no_license | package com.project.omega.helper;
public interface TestingConstant {
public static final Long TEST_ID_1 = 1L;
public static final Long TEST_ID_2 = 2L;
public static final String TEST_EMAIL_1 = "a@a.com";
public static final String TEST_EMAIL_2 = "b@b.com";
public static final String TEST_PASSWORD =... | true |
b1cd301b444881b137b6dcc08bc97262eea9d1b8 | Java | mansar3/PolicyCenter | /src/main/java/pageobjects/FLMH3/FLMH3Qualification.java | UTF-8 | 1,539 | 2.28125 | 2 | [] | no_license | package pageobjects.FLMH3;
import Helpers.CenterSeleniumHelper;
import pageobjects.WizardPanelBase.Qualification;
/**
* Created by ssai on 3/3/2017.
*/
public class FLMH3Qualification extends Qualification<FLMH3Qualification> {
public FLMH3Questionnaire questionnaire = new FLMH3Questionnaire(sh);
public FL... | true |
8b68f39396488aa34238a36ac574f858b6cb1668 | Java | Gopinathks7/CONT | /src/test/java/CONT/CONT/MyReport.java | UTF-8 | 1,018 | 1.984375 | 2 | [] | no_license | package CONT.CONT;
import java.lang.reflect.Method;
import org.testng.ITestResult;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
import com.relevantcodes.extentreports.ExtentReports;
import co... | true |
605511df285de17ec8e7ad4dd4bd68683fc9ff59 | Java | anankitpatil/Unlaze | /app/src/main/java/com/unlazeapp/unlaze/ConnectionFragment.java | UTF-8 | 12,331 | 2.09375 | 2 | [] | no_license | package com.unlazeapp.unlaze;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import andro... | true |
8eeb3b991fddd38809c2afcdc6c3686d1f4c9f3b | Java | combineads/plugin-presto-phoenix | /src/test/java/com/facebook/presto/plugin/phoenix/TestingPhoenixServer.java | UTF-8 | 3,406 | 1.9375 | 2 | [] | no_license | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | true |
74f762c20aa32d8fd33b5ebdf4e30a02a073a2b9 | Java | i3oys1205/ShoppingProject | /Shopping/src/main/java/com/shopping/method/FileSelect.java | UTF-8 | 2,438 | 2.8125 | 3 | [] | no_license | package com.shopping.method;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletR... | true |
bdf0136983ab7f5b70bf4f0949bef4dd315a66b8 | Java | dangarmol/java-games | /Game of Life (2015)/Workspace Practica 2/Juego Vida/src/juegoVida/Controlador.java | WINDOWS-1250 | 1,405 | 3.28125 | 3 | [
"MIT"
] | permissive | package juegoVida;
import java.util.Scanner;
import comandos.Comando;
import comandos.ParserComandos;
public class Controlador{
private Mundo mundo;
private Scanner in;
public Controlador(Mundo mundo, Scanner in) {
this.mundo = mundo;
this.in = in;
}
/**
* Realiza la simul... | true |
88a5a61038086c272fccbe9602064c430bacf8b3 | Java | harman-ryanchen/training_ryanproject | /WeiXinDemo/app/src/main/java/com/example/ryan/weixindemo/fragment/ExtraBaseFragment.java | UTF-8 | 1,197 | 1.992188 | 2 | [] | no_license | package com.example.ryan.weixindemo.fragment;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.ryan.weixindemo.fragment.tabf... | true |
b390ba524163b32f9e0aeba8fe6bc27fde941a04 | Java | wheejuni/stock-crawler | /src/main/java/com/example/demo/support/domain/ScheduledTasks.java | UTF-8 | 1,322 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.example.demo.support.domain;
import com.example.demo.service.StockService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
im... | true |
5557ab321d90d605d3e3fe98cc9cf3e3afa16a61 | Java | AddAd-Team/AddAd-Android | /app/src/main/java/com/add/ad/presentation/ui/fragment/main/mypage/etc/myad/MyAdFragment.java | UTF-8 | 2,422 | 1.804688 | 2 | [] | no_license | package com.add.ad.presentation.ui.fragment.main.mypage.etc.myad;
import android.os.Bundle;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModelStoreOwner;
import androidx.recyclerview.widget.LinearLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.v... | true |
5c6db12ddf6b8109ed7d37fc8f755fb942d4b161 | Java | ameyapatil1986/mongo | /src/Arrays/RelativeRanks.java | UTF-8 | 1,225 | 3.59375 | 4 | [] | no_license | package Arrays;
import java.util.*;
/**
* https://leetcode.com/problems/relative-ranks/
*
* Input: [5, 4, 3, 2, 1]
* Output: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"]
* Explanation: The first three athletes got the top three highest scores,
* so they got "Gold Medal", "Silver Medal" and "Bronze M... | true |
514d9efa02810416994c56640b9aaf56d429e836 | Java | Beedraz/recovered-from-google-code | /semantics/src/test/java/org/beedraz/semantics_II/expression/TestAbstractEditableExpressionBeed.java | UTF-8 | 2,928 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*<license>
Copyright 2007 - $Date$ by the authors mentioned below.
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 |
f2d237cbd32c9a9da802f80bec217fded83eb2dd | Java | furkatkhalilov/mentoringHours | /src/day27/Task5.java | UTF-8 | 549 | 3.375 | 3 | [] | no_license | package day27;
public class Task5 {
// You are given a double array named customer. Each inner array represents the payments, that customer made.
// Create a method, which will return the maximum payments of the richest customer.
public static void main(String[] args) {
String [][] customers = ... | true |
c9a4630b0a38a5b6fb0201c4821216af7a17e1f1 | Java | mbagusp19/Pemrograman-Berorientasi-Objek | /Pertemuan 10/Tugas/CthClassNotFoundException.java | UTF-8 | 297 | 2.578125 | 3 | [] | no_license | package com.pboreg;
public class CthClassNotFoundException {
public static void main(String[] args) {
try
{
Class.forName("Class");
}
catch (ClassNotFoundException ex) {
System.out.println("Error " + ex);
}
}
} | true |
f53a0cea633cc51ff3880e1563e4282d90ac271f | Java | nishanthvasudeva19/UKonnekt | /src/com/seteam3/ukonnekt/SelectLogInAs.java | UTF-8 | 1,724 | 2.171875 | 2 | [] | no_license | package com.seteam3.ukonnekt;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class SelectLogInAs extends Activity {
Button selectStudent;
Butto... | true |
968746f72704001bc2e57f0ee98086c02481f7f4 | Java | Vijimolvv/inheritance-and-encapsulation | /Project/src/interfacepgms/Interfacefreshgrad.java | UTF-8 | 2,969 | 3.078125 | 3 | [] | no_license | package interfacepgms;
import java.util.Scanner;
public class Interfacefreshgrad {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
System.out.println("1.Current Account\n2.Savings Account");
int n=s.nextInt();
double maint=50.00,current=100.00,charge,char... | true |
8bc53bb6463437541b9d025ff9939bed2afbd198 | Java | mrinvisible21/udharapp | /app/src/main/java/com/example/udhar/AddUser.java | UTF-8 | 7,115 | 2.078125 | 2 | [] | no_license | package com.example.udhar;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.Ed... | true |
ae2c88ade6645eb96964cbf7fe2d23c912ad2c71 | Java | MAUH96/AstonIndoorMaps | /app/src/main/java/com/example/astonindoor/onMapPin/OnPinClickListener.java | UTF-8 | 143 | 1.53125 | 2 | [] | no_license | package com.example.astonindoor.onMapPin;
import android.view.View;
public interface OnPinClickListener {
void onPinClick(Pin pin);
}
| true |
f6a8a0904c0da37f8e887e0badf3efdbf96db6be | Java | elvircrn/RMA-Zadaca | /app/src/main/java/ba/unsa/etf/rma/elvircrn/movieinfo/managers/SearchManager.java | UTF-8 | 1,119 | 2.5 | 2 | [] | no_license | package ba.unsa.etf.rma.elvircrn.movieinfo.managers;
import ba.unsa.etf.rma.elvircrn.movieinfo.factories.services.ServiceFactory;
import ba.unsa.etf.rma.elvircrn.movieinfo.services.dto.ActorSearchResponseDTO;
import ba.unsa.etf.rma.elvircrn.movieinfo.services.dto.MovieSearchResponseDTO;
import ba.unsa.etf.rma.elvircrn... | true |
8744fbf92a92083a355229c33b6ad15e26dc0305 | Java | studanshu/sf-tt-monad-stream | /src/main/java/superiterable/School.java | UTF-8 | 1,469 | 3.34375 | 3 | [] | no_license | package superiterable;
import student.Student;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Predicate;
public class School {
public static void main(String[] args) {
SuperIterable<Student> roster = new SuperIte... | true |
8627a03e8635875d07af6339dcf729e16864ee94 | Java | VladGuskov/sarafan | /src/main/java/com/codegod/sarafan/repo/UserDetailsRepo.java | UTF-8 | 464 | 1.953125 | 2 | [] | no_license | package com.codegod.sarafan.repo;
import com.codegod.sarafan.domain.User;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
/**
* @author XE on 03.09.2019
* @project sarafan
*/
public interface UserDetailsRepo exte... | true |
f069f634c003ae5346f581d4c32ebe82ebc9583b | Java | kelu124/pyS3 | /org/apache/poi/hssf/util/HSSFCellUtil.java | UTF-8 | 1,928 | 2.34375 | 2 | [
"MIT"
] | permissive | package org.apache.poi.hssf.util;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWork... | true |
46c83dcb170f9656ab448e1be78d2e740dc71397 | Java | aguscorvo/VacunasUY | /Codigo/Android/app/src/main/java/vacunasuy/componentemovil/second/MapDeptoLoc.java | UTF-8 | 9,549 | 2 | 2 | [] | no_license | package vacunasuy.componentemovil.second;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.JsonReader;
impor... | true |
addafef68617a24895e0f0447a44c9cb38fcaf89 | Java | DmitryOvchinikov/RecipeSuggester | /app/src/main/java/com/android/recipesuggester/activities/LoadingActivity.java | UTF-8 | 6,446 | 2.109375 | 2 | [] | no_license | package com.android.recipesuggester.activities;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import ... | true |
b07ffd84e7788ccbf572b160bc8b97eeec0504c5 | Java | FaedDroneLogistics/FAED-Project | /KMLGenerator/src/model/ScreenOverlay.java | UTF-8 | 1,904 | 2.75 | 3 | [] | no_license | /*
* Author: Julio Bondia, Marc Gonzàlez
* E-mail: {julio.bondia13, marcgc21}@gmail.com
*
* FAED Project - Google Summer of Code 2015
*/
package model;
public class ScreenOverlay {
public class OverlayLocation {
public static final String TOP_LEFT =
"\t\t<overlayXY x=\"0\" y=\"1\" xunits=\"fraction\"... | true |
5a39f48bbf86536f663b736a5b4c6443f5b32ee5 | Java | Man4ester/telegram_bot_daily_reporter | /src/main/java/bismark/models/TimeReminder.java | UTF-8 | 370 | 2.546875 | 3 | [] | no_license | package bismark.models;
public class TimeReminder {
private int hour;
private int minutes;
public int getHour() {
return hour;
}
public void setHour(int hour) {
this.hour = hour;
}
public int getMinutes() {
return minutes;
}
public void setMinutes(int m... | true |
13d22593e04011fdfe864d6349d9b7e46e905597 | Java | lalosuarez/hazelcast | /hazelcast-client/src/main/java/com/example/hazelcastclient/HazelcastCacheRepository.java | UTF-8 | 2,270 | 2.75 | 3 | [] | no_license | package com.example.hazelcastclient;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
public class HazelcastCacheRepository implements CacheRepository {
private IMap<Object, Object> map;
private HazelcastInstance hazelcastInstance;
public HazelcastCacheRepository(HazelcastIn... | true |
d23ed1d5d97fc9fed5e02fa02cad82cf847d7ba7 | Java | unc-mobile/Sensors | /app/src/main/java/com/example/scroggo/sensorpractice/MainActivity.java | UTF-8 | 2,533 | 2.3125 | 2 | [] | no_license | package com.example.scroggo.sensorpractice;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Context;
import android.content.Intent;
import android.hardware.Sensor;
import android.hardware.SensorManager;
import android.os.Bundle;
import android.... | true |
1cf5c796e1574e505e4e2e49db068cbce2c9c857 | Java | MaStanford/OMDBApp | /app/src/main/java/mark/stanford/com/omdb/network/RetroNetworkService.java | UTF-8 | 712 | 2.28125 | 2 | [] | no_license | package mark.stanford.com.omdb.network;
import io.reactivex.Observable;
import mark.stanford.com.omdb.models.MovieSearchResultWrapper;
import mark.stanford.com.omdb.models.Movie;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface RetroNetworkService {
String BASE_URI = "http://www.omdbapi.co... | true |
bdb70b04a19ab52bfd1c1658f2725196801d766f | Java | mikeg2/Cueify | /Work Space/Cueify/src/com/cueify/gui/panel/cuetable/helper/ReorderableCueTable.java | UTF-8 | 2,044 | 2.40625 | 2 | [] | no_license | package com.cueify.gui.panel.cuetable.helper;
import javafx.beans.InvalidationListener;
import javafx.beans.Observable;
import javafx.event.EventHandler;
import javafx.scene.control.TableRow;
import javafx.scene.control.TableView;
import javafx.scene.input.DragEvent;
import javafx.util.Callback;
import com.cueify.cue... | true |
3092794a0b88429572940c18e5480c99905b0753 | Java | JitenderBhati/LibraryService-JPOP | /user_service/src/main/java/com/epam/user_service/api/dto/UserDto.java | UTF-8 | 421 | 1.867188 | 2 | [] | no_license | package com.epam.user_service.api.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class UserDto {
@JsonProperty("id")
private int id;
@JsonProperty("firstname")
private String firstname;
@JsonProperty("lastname")
private String lastname;
@Json... | true |
355f45f59a0ca4695a1c821e0e6148dde8a8f78c | Java | marcusportmann/mmp-java | /src/mmp-application/src/main/java/guru/mmp/application/codes/CodeProviderConfig.java | UTF-8 | 2,269 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Marcus Portmann
*
* 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 t... | true |
fe36306df9f0187d20cbd6731cf281b579348c41 | Java | mgalarza005/betsProiektua | /Bets/src/gui/LangileaSortuGUI.java | UTF-8 | 3,366 | 2.53125 | 3 | [] | no_license | package gui;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import businessLogic.BLFacade;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.event.ActionListene... | true |
95875abeaa53bc2f23784ae147f05a8a6292fe0b | Java | rabidi/Bibal_abidi_tebba | /src/com/dao/DaoUser.java | UTF-8 | 146 | 1.640625 | 2 | [] | no_license |
package com.dao;
import com.metier.Usager;
public interface DaoUser {
public void addUsage(Usager u);
public void afficher() ;
}
| true |
408831a2478052856fc849112cd010e51023076c | Java | aniketbhatnagar/simple-trading-bot | /src/main/java/com/sonar/trading/queue/Queue.java | UTF-8 | 161 | 2.078125 | 2 | [] | no_license | package com.sonar.trading.queue;
public interface Queue<M> {
void publish(M message);
void subscribe(String subscriberId, Subscriber<M> subscriber);
}
| true |
9c5ccfb29bea6fab25499e116ed681263f4958dc | Java | Youthbo1/spring_demo | /src/java/com/dao/impl/RoleDAOImpl.java | UTF-8 | 317 | 1.648438 | 2 | [] | no_license | package com.dao.impl;
import com.dao.IRoleDAO;
import org.springframework.stereotype.Component;
/**
* \Date: 2018/1/25
* \
* \Description:
* \
*/
@Component
public class RoleDAOImpl implements IRoleDAO {
public boolean findAll() {
System.out.println("RoleDAOImpl--");
return true;
}
}
| true |
c3b9661659f9ee4f07694da001ac59b3a18f0c46 | Java | AllBinary/AllBinary-Platform | /j2me/input/NoGyroSensorJavaLibraryM/src/main/java/org/allbinary/input/gyro/GyroSensorFactory.java | UTF-8 | 800 | 1.914063 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | /*
* AllBinary Open License Version 1
* Copyright (c) 2011 AllBinary
*
* By agreeing to this license you and any business entity you represent are
* legally bound to the AllBinary Open License Version 1 legal agreement.
*
* You may obtain the AllBinary Open License Version 1 legal agreement from
* AllBinary or the ro... | true |
2ba2740e8bb24ff2ef1a62f1d11f482ef9c54f1c | Java | dikshaTomar/Assignment | /server.java | UTF-8 | 541 | 2.53125 | 3 | [] | no_license | package diksha;
import java.io.*;
import java.net.*;
import java.util.*;
public class server{
public static void main(String a[])
{
try
{
ServerSocket se=new ServerSocket(3300);
Socket ss=se.accept();
DataInputStream di =new DataInputStream(ss.getInputStream... | true |
65235a5c4c7ddb8aba0d331eec2aad3765d7b650 | Java | phongluyen00/CalendarKMA | /app/src/main/java/com/example/retrofitrxjava/home/adapter/BannerAdapter.java | UTF-8 | 1,709 | 2.296875 | 2 | [] | no_license | package com.example.retrofitrxjava.home.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.LayoutRes;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.viewpager... | true |
0ae2588b057c422f9a5c4e96e07920eb83446e5f | Java | peintune/BinaryTreeNode | /Solution.java | UTF-8 | 821 | 3.609375 | 4 | [] | no_license | public class Solution{
static List<String> binaryTreePaths = new ArrayList<String>();
public static List<String> iteratorPath(TreeNode node){
pareseNode(node,null);
return binaryTreePaths;
}
public static void pareseNode(TreeNode node,TreeNode parentNode) {
if(null == pare... | true |
b6a348a151a1e05ad0e496236ba6fa3f73c45f09 | Java | mohoromitch/REST-System-Stat-Broadcaster | /src/main/java/com/mohorovich/mitchell/rssb/pollers/NetPoller.java | UTF-8 | 298 | 1.9375 | 2 | [
"MIT"
] | permissive | package com.mohorovich.mitchell.rssb.pollers;
import com.mohorovich.mitchell.rssb.runnables.NetRunnable;
/**
* Created by mitchellmohorovich on 2016-02-06.
*/
public class NetPoller extends MetricPoller {
public NetPoller() {
super();
this.thread = new Thread(new NetRunnable(this));
}
}
| true |
4a9e263ba2c6cfb55fe5f8355c7218a901934add | Java | gmz07dnz/gamze | /src/day31exceptions/E04.java | ISO-8859-9 | 414 | 3.375 | 3 | [] | no_license | package day31exceptions;
public class E04 {
//ArrayIndexOutOfBoundsException
public static void main(String[] args) {
int arr[] = {11, 12, 13};
System.out.println(arr[0]); // 11
System.out.println(arr[1]); // 12
try {
System.out.println(arr[3]); // exception
}catch(ArrayIndexOutOfBoundsExcept... | true |
102635770a6e213eff890d16956b3e40da6bd41a | Java | mbocs/GLANET | /Doktora/src/fastdirtysolutions/ConvertCellLineNametoUpperCase.java | UTF-8 | 1,741 | 3.03125 | 3 | [] | no_license | /**
* @author Burcak Otlu Saritas
*
*
*/
package fastdirtysolutions;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Locale;
import common.Commons;
public clas... | true |
55fcf908a91ee0d410cb5e669da8c268b1da1b3e | Java | CaseySchurman/VoGo_SeniorProject | /app/src/main/java/com/example/caseyschurman/vogo_seniorproject/app/VolunteerOpportunity.java | UTF-8 | 908 | 2.609375 | 3 | [] | no_license | package com.example.caseyschurman.vogo_seniorproject.app;
import java.util.ArrayList;
import java.util.List;
/**
* Created by casey.schurman on 3/1/2016.
*/
public class VolunteerOpportunity {
private String mName;
private ArrayList<String> mRelevantSkills;
private String mOrganization;
private Stri... | true |
7ac9d225af08b2ea0b16e6d83f6a8ceedf4dc742 | Java | mreetyunjaya/super-cloudops | /super-devops-common/src/main/java/com/wl4g/devops/common/logging/TraceLoggingMDCFilter.java | UTF-8 | 8,983 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 ~ 2025 the original author or authors. <wanglsir@gmail.com, 983708408@qq.com>
*
* 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/license... | true |
aedccfb32784a9d3382ab163481c03601cce4e0e | Java | fitflowappp/backend | /Yoga/src/main/java/com/magpie/getui/getui/service/MsgSender.java | UTF-8 | 274 | 1.65625 | 2 | [] | no_license | package com.magpie.getui.getui.service;
import com.magpie.getui.getui.cache.GetuiMessage;
public interface MsgSender {
public boolean send(String uid, GetuiMessage msg, boolean sendOffline);
public boolean sendAll(GetuiMessage msg, boolean sendOffline);
}
| true |
29a1fa3d3c775b8b84e15c2d7baf248b0d3f8709 | Java | qsw1214/teachin | /src/main/java/com/dizhejiang/teachin/Service/impl/ReportServiceImpl.java | UTF-8 | 976 | 2.15625 | 2 | [] | no_license | package com.dizhejiang.teachin.Service.impl;
import com.dizhejiang.teachin.Service.ReportService;
import com.dizhejiang.teachin.mapper.ReportMapper;
import com.dizhejiang.teachin.model.Report;
import com.dizhejiang.teachin.vo.ResponseVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... | true |
d1da8d17556a923a2036408118ae54ea0a0a8105 | Java | michal1188/Hosting_photos | /src/main/java/zaliczenie/Hosting_photos/gui/admin/ListaGaleriiGui.java | UTF-8 | 2,145 | 2.21875 | 2 | [] | no_license | package zaliczenie.Hosting_photos.gui.admin;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.combobox.ComboBox;
import com.vaadin.flow.component.html.Anchor;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.orderedlayou... | true |
112a254507dbf4728881ddf50547b8570090eea1 | Java | q15751261559/Data-structure-and-algorithm | /src/Graph.java | UTF-8 | 414 | 1.976563 | 2 | [] | no_license | public interface Graph<T> {
int vertexCount();
T get(int i);
void set(int i,T x);
int insert(T x);
void insert(int i,int j,int w);
T remove(int i);
void remove(int i,int j);
int search(T key);
T remove(T key);
int weight(int i,int j);
void DFSTraverse(int i);
void BFSTrav... | true |
ee90a9141010e0bc0d7fb83853778521b457e026 | Java | junxigu/Examples | /ThinkingInJava/src/main/java/guerer/example/util/JGrep.java | UTF-8 | 585 | 3 | 3 | [] | no_license | package guerer.example.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
//A very simple version of the "grep" program.
// {Args: JGrep.java "\\b[Ssct]\\w+"}
public class JGrep {
public static void main(String[] args) throws Exception {
if (args.length < 2) {
Print.print("Usage: java JGre... | true |
6386440bdd162f824a1355505aa8e64d05e57cb3 | Java | wawaeasybuy/jobandroid | /Job_employer/app/src/main/java/com/example/ryo/job_employer/models/GetCodeBody.java | UTF-8 | 431 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.example.ryo.job_employer.models;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import java.io.Serializable;
/**
* Created by Administrator on 2015/12/5.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class GetCodeBody implements Serializable {
public String getTel() {
re... | true |
98bb37e6e71ef496c8e035e92a6fb22154488616 | Java | WaveZhou/MeiZhuangShop | /repository/shop/src/com/zx/service/ArticleTypeService.java | UTF-8 | 335 | 1.664063 | 2 | [] | no_license | package com.zx.service;
import java.util.List;
import com.zx.vo.ArticleType;
public interface ArticleTypeService {
//获取所有的一级商品类型
List<ArticleType> findAllFirstArticleTypes();
//根据一级商品类型获取所有的二级商品类型
List<ArticleType> findAllSecondArticleTypes(String firstTypeCode);
}
| true |
4379740b82d30b806a9124ed7f58fc1cb1fa8e8b | Java | ArchkWay/brewmapp | /app/src/main/java/com/brewmapp/data/db/contract/UiSettingRepo.java | UTF-8 | 494 | 1.835938 | 2 | [] | no_license | package com.brewmapp.data.db.contract;
import com.brewmapp.data.entity.UiSettingContainer;
import ru.frosteye.ovsa.data.storage.Repo;
/**
* Created by Kras on 13.10.2017.
*/
public interface UiSettingRepo extends Repo<UiSettingContainer> {
int getnActiveFragment();
void setActiveFragment(int nActiveFragme... | true |
059cf1410d713f4417db59368ab61f56321c79db | Java | ziqin/fastjson | /src/test/java/com/alibaba/json/bvt/issue_2100/Issue2189.java | UTF-8 | 725 | 1.96875 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package com.alibaba.json.bvt.issue_2100;
import com.alibaba.fastjson.JSONPath;
import junit.framework.TestCase;
public class Issue2189 extends TestCase {
public void test_for_issue() throws Exception {
String str = "[{\"id\":\"1\",\"name\":\"a\"},{\"id\":\"2\",\"name\":\"b\"}]";
assertEquals("[\"1... | true |
42b8ed0e1a9edb115fcee1c9a8e91a3013f63eaa | Java | isolatelearn/attendance | /src/main/java/com/hjy/service/employeeService.java | UTF-8 | 3,235 | 2.59375 | 3 | [] | no_license | package com.hjy.service;
import com.hjy.entity.employee;
import com.hjy.repository.EmployeeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.lang.reflect.Array;
import java.util.*;
@Service
public class employeeService {
@Autowir... | true |
d972b0173a39c590a0af04e6d6490bdda2b951db | Java | fbeautyleg/EatingHelper | /app/src/main/java/com/hy/eatinghelper/quickopen/http/code/ErrorCode.java | UTF-8 | 2,441 | 2.4375 | 2 | [] | no_license | package com.hy.eatinghelper.quickopen.http.code;
import com.hy.eatinghelper.quickopen.utils.toast.ToastUtils;
/**
* Created by huyin on 2017/9/17.
*/
public class ErrorCode {
public static int errorCode;
public static void handleHeaderCode(int headerCode) {
switch (headerCode) {
... | true |
b2a3aa05c14488130398ae2b0118f79244c3a245 | Java | EstebanDalelR/tinderAnalysis | /apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/google/android/m4b/maps/StreetViewPanoramaOptions.java | UTF-8 | 4,978 | 1.90625 | 2 | [] | no_license | package com.google.android.m4b.maps;
import android.os.Parcel;
import com.google.android.m4b.maps.model.LatLng;
import com.google.android.m4b.maps.model.StreetViewPanoramaCamera;
import com.google.android.m4b.maps.p111k.C5468c;
import com.google.android.m4b.maps.p124x.C5534a;
public final class StreetViewPanoramaOpti... | true |
21083cd0eab6d13eb09b5075178a2f64af8e935c | Java | BasicStore/RP3_Struts_3rd | /WEB-INF/src/com/fdm/shopping/DataModel.java | UTF-8 | 241 | 1.945313 | 2 | [] | no_license | package com.fdm.shopping;
public class DataModel
{
private int id;
public DataModel()
{
}
public int getId()
{
return id;
}
public void setId(int id)
{
this.id = id;
}
}
| true |
2173b1e74029213d9f72cd8e0d41b448a44dbf8c | Java | pudenko/IdeaProjects | /008_exeption/src/com/lessons/igor/ex013/Main.java | UTF-8 | 740 | 3.40625 | 3 | [] | no_license | package com.lessons.igor.ex013;
class MyExeption extends Exception {
public MyExeption(String s) {
super(s);
}
}
class MyExeption2 extends Exception {
public MyExeption2(String s) {
super(s);
}
}
public class Main {
public static void main(String[] args) {
try {
... | true |
7c8cc29aa6789b45c03b3c8f77de6e502b4b6331 | Java | HarkerRobo/RoboCode2018 | /src/org/usfirst/frc/team1072/robot/commands/v2/LowLevelCommand.java | UTF-8 | 552 | 2.265625 | 2 | [] | no_license | package org.usfirst.frc.team1072.robot.commands.v2;
import org.usfirst.frc.team1072.robot.Robot;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
/**
* @author joel
*
*/
public class LowLevelCommand extends SetElevatorCommand {
/**
* @param height
*/
public LowLevelCommand(double height) {
super(height... | true |
1f83999882fd94375dbf4019fe42559a9f7be621 | Java | rseiler/lcmip | /lcmip-demo/src/main/java/at/rseiler/lcmip/demo/UnusedClass.java | UTF-8 | 205 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package at.rseiler.lcmip.demo;
public class UnusedClass {
private static final String NOT_IMPORTANT = "not important";
public void unused() {
System.out.println(NOT_IMPORTANT);
}
}
| true |
3b53d7c8a2533315bf964ebda306a6bbbc58a870 | Java | hanadbruno/tst | /src/test/java/TestRomanTest.java | UTF-8 | 545 | 2.890625 | 3 | [] | no_license | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class TestRomanTest {
@Test
public void fromOneToI() {
assertEquals("I", new RomanNumbers().toRoman(1));
}
@Test
public void fromTwoToII() {
assertEquals("II", new RomanNumbers().toRoman(2));
... | true |
134971b6910dbef7a6ff4d20bd77ea2023686575 | Java | mintchocoicecream/SOULMOVIE | /mapper/HomeMapper.java | UTF-8 | 933 | 2.03125 | 2 | [] | no_license | package com.soulmovie.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.soulmovie.vo.MovieVO;
public interface HomeMapper {
@Insert({"INSERT INTO USER1 VALUES(MY_GET_SEQ_NUMBER, #{obj.usern... | true |
006ea2c8c9a64122f363e377cdc80e490e9e8250 | Java | leon-pash-ok/ChipProject | /src/main/java/com/leonpasha/corp/chip/chip_generator/ChipGenerator.java | UTF-8 | 1,544 | 3 | 3 | [] | no_license | package com.leonpasha.corp.chip.chip_generator;
import com.leonpasha.corp.chip.pojo.Chip;
import com.leonpasha.corp.chip.pojo.ChipTypeOfCargo;
import java.security.InvalidParameterException;
import java.util.Optional;
import java.util.Random;
public class ChipGenerator {
private static int maxCountOfShip = 10;
... | true |
04431a9973cf25d43ffe30fbf1a875e5b10f1cf0 | Java | Drilonpacarizi/VacumCleaner | /Vacum.java | UTF-8 | 8,915 | 2.84375 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
public class Vacum {
public int leviz() {
return (int) (Math.random() * 3.9);
}
public int leviz(int l) {
int answer = (int) (Math.random() * 3.9);
while (answer == l) {
answer = (int) (Math.random() * 3... | true |
3fa416a95c7d45162a0d840adcbe977343649cbc | Java | d-khvoia/kaylemains | /src/main/java/com/cybertournaments/kaylemains/exception/MatchNotFoundException.java | UTF-8 | 214 | 2.046875 | 2 | [] | no_license | package com.cybertournaments.kaylemains.exception;
public class MatchNotFoundException extends RuntimeException {
public MatchNotFoundException(Long id) {
super("Could not find match " + id);
}
}
| true |
75af019c5014ed93016454ae7092b395a5c36a24 | Java | gyoogle/gs_Algorithm | /Algorithm(Study)/문제 풀이/swexpert&정올/역량테스트/Solution_1949_등산로조성_김규석.java | UTF-8 | 2,608 | 3.09375 | 3 | [] | no_license | package SW;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.StringTokenizer;
public class Solution_1949_등산로조성_김규석 {
static class San{
int y;
int x;
San(int y, int x){
this.y = y;
this.x = x;
}
}
static int N,K;
static int[][] map;
... | true |
9d8f2746f20e811b8143ff63f3cb14f7c399ec08 | Java | Tay-Dz/ICE_Final | /src/test/java/com/qa/choonz/Cuke/AlbumPageTest.java | UTF-8 | 4,723 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.qa.choonz.Cuke;
import static org.assertj.core.api.Assertions.assertThat;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.supp... | true |
652c622176df59ec87a9283c7b14a70f58dddca6 | Java | Nur137/Android-Projects | /Mongla Port Authority/app/src/main/java/com/example/nur/monglaport/UI/Containers.java | UTF-8 | 7,385 | 2.03125 | 2 | [] | no_license | package com.example.nur.monglaport.UI;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import andr... | true |
01ffaddbe5f5b9e673f003ba9d1e4b1710e128fa | Java | uchachaduneli/hr | /src/main/java/ge/economy/hr/dto/SysUserGroupDTO.java | UTF-8 | 1,506 | 2.375 | 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 ge.economy.hr.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import ge.economy.hr.model.SysUserGroup;
import java.... | true |
f2e69e014162c0477c21dfd20e2df955466a7aae | Java | kotelliada/FlickrClient | /app/src/main/java/io/github/kotelliada/flickrlient/model/Photo.java | UTF-8 | 895 | 2.375 | 2 | [] | no_license | package io.github.kotelliada.flickrlient.model;
public class Photo {
private String id;
private String title;
private String url;
private String latitude;
private String longitude;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
... | true |
807f1317e230c472ad141609b67d864e75ad1661 | Java | SS88/reservation | /src/main/java/com/reservation/dao/AdminDao.java | UTF-8 | 310 | 1.914063 | 2 | [] | no_license | package com.reservation.dao;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.reservation.model.utilisteur.Admin;
@Repository
public interface AdminDao extends CrudRepository<Admin, Long> {
Admin findByUsername(String adminname);
}
| true |
b4c39e47c7b303083a70a28a557f482e3abefe37 | Java | Cento98/1-DAM | /Tema - 6/Ejer9.java | UTF-8 | 519 | 3.703125 | 4 | [] | no_license | import java.util.Scanner;
public class Ejer9 {
public static void main (String [] args){
Scanner lector = new Scanner (System.in);
System.out.println("Introduce el numero para calcular su sumatorio");
int num = lector.nextInt();
int total=sumatorio(num);
System.out.print... | true |
58c771b0abf9ee5d6765ec22161643c70648a1b3 | Java | nendraharyo/presensimahasiswa-sourcecode | /android/support/v7/app/AppCompatDelegateImplBase$1.java | UTF-8 | 2,464 | 1.867188 | 2 | [] | no_license | package android.support.v7.app;
import android.content.res.Resources.NotFoundException;
final class AppCompatDelegateImplBase$1
implements Thread.UncaughtExceptionHandler
{
AppCompatDelegateImplBase$1(Thread.UncaughtExceptionHandler paramUncaughtExceptionHandler) {}
private boolean shouldWrapException(Throwa... | true |
32d2e96ee13e74c2a3a801d57d8c9c2dcf123597 | Java | gspandy/zx-parent | /ink-msgcenter/ink-msgcenter-api/src/main/java/com/ink/msgcenter/api/model/input/SmsModel.java | UTF-8 | 1,452 | 1.859375 | 2 | [] | no_license | package com.ink.msgcenter.api.model.input;
import java.util.Date;
/**
* 短信发送接口超类bean
* Created by aiyungui on 2016/5/24.
*/
public class SmsModel extends MsgInput{
private static final long serialVersionUID = 1952831239667263234L;
/*模版ID*/
private String tempId ;
/*业务单号*/
private String bizId;... | true |
94e52aa76a4911d8d18ad28fbba6450e1361fdda | Java | Bloombox/Java | /src/main/java/io/opencannabis/schema/inventory/TagReportOriginOrBuilder.java | UTF-8 | 4,196 | 1.796875 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | /*
* Copyright 2019, Momentum Ideas Co.
*
* 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 agree... | true |
9f6d05b71dbca92a7514222e9e8d0153163df902 | Java | LuizGGeas/Multimodal | /src/Aresta.java | UTF-8 | 629 | 3.125 | 3 | [] | no_license | /**
* @author Luiz Gabriel de S. N.
* @version 1.0
* <p>
* Classe responsável pela criação das arestas a inicializarem a matriz
*/
public class Aresta {
private int v1, v2;
private int value;
private Types transporte;
Aresta(int v1, int v2, int value, Types transporte) {
this.v1 = v1;
th... | true |
d0b94a7dcf0c72368f0a3f0d48630fb38b0579de | Java | lvsdian/seckill | /src/main/java/cn/andios/seckill/access/SecKillUserContext.java | UTF-8 | 574 | 2.484375 | 2 | [] | no_license | package cn.andios.seckill.access;
import cn.andios.seckill.domain.SecKillUser;
/**
* @description:ThreadLocal是绑定到当前线程的,多线程情况下不会有冲突,所以用它来存secKillUser
* @author:LSD
* @when:2019/10/23/12:33
*/
public class SecKillUserContext {
private static ThreadLocal<SecKillUser> userHolder = new ThreadLocal<SecKillUser>();
... | true |