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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
003ce8df8a197e312abb266b5de2878df1e999d0 | Java | danielerusso95/springExample | /TerzaAcademy16Spring/src/main/java/it/softwareInside/TerzaAcademy16Spring/model/Indirizzo.java | UTF-8 | 700 | 2.15625 | 2 | [] | no_license | package it.softwareInside.TerzaAcademy16Spring.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import lombok.NoArgsConstructor;
... | true |
28e56eedfe3c0b4ddb5a47495ed9d9fd05f14ca3 | Java | wantwantxu/lzugis | /src/main/java/com/lzugis/geotools/AddField2Shp.java | UTF-8 | 3,833 | 2.390625 | 2 | [] | no_license | package com.lzugis.geotools;
import com.vividsolutions.jts.geom.Point;
import org.geotools.data.FeatureWriter;
import org.geotools.data.FileDataStoreFactorySpi;
import org.geotools.data.Transaction;
import org.geotools.data.shapefile.ShapefileDataStore;
import org.geotools.data.shapefile.ShapefileDataStoreFactory;
imp... | true |
6fca02014518f831cb454497218cb5592bd00dcf | Java | dobrivoje/reflection | /src/main/java/refleksija/mapping/K1K2Maper.java | UTF-8 | 816 | 1.960938 | 2 | [] | no_license | package refleksija.mapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
/**
* @author д06ри, dobri7@gmail.com
*/
@Mapper
public interface K1K2Maper {
K1K2Maper INSTANCE = Mappers.getMapper(K1K2Maper.class);
@Mappings({
... | true |
0a547be0f6fef755acaa1df9308026fc3c63d287 | Java | snowc4636/Assignment06 | /src/A6Q3.java | UTF-8 | 988 | 3.640625 | 4 | [] | no_license |
import java.util.Scanner;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author snowc4636
*/
public class A6Q3 {
public static void factorNumbers(int factor) {
// int statements
int remainder = factor;
int ... | true |
3b08a07e448b79bcaa7dd5b6bc23ac8f0230dbf4 | Java | oguzocaletu/GoGameForConsole | /Player.java | ISO-8859-9 | 2,412 | 2.84375 | 3 | [] | no_license |
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class Player {// Oguz Ocal 181101019
public String item="";
static int pause=0;
public String name="";
Map m1;
public Player() {
this.name="U... | true |
2748586b7f3abfc045318a3dd2f91696571521cf | Java | bobsbimal58/IndoorPositioningSystem | /app/src/main/java/com/hoon/wmcs/positioning/Mode1.java | UTF-8 | 5,868 | 2.34375 | 2 | [] | no_license | package com.hoon.wmcs.positioning;
import android.util.Log;
import com.hoon.wmcs.arnavigation.ARView;
import com.hoon.wmcs.arnavigation.Navigation;
import com.hoon.wmcs.external.DBHelper;
/**
* Created by WMCS on 2017-08-21.
*/
public class Mode1 {
private static final String TAG = Mode1.class.getSimpleName()... | true |
8c61649e1cf4944da6628eb45de59cb0dd020ff8 | Java | zapzombies/zap-commons | /src/main/java/io/github/zap/commons/utils/ReflectionUtils.java | UTF-8 | 8,886 | 2.765625 | 3 | [] | no_license | package io.github.zap.commons.utils;
import com.google.common.collect.ObjectArrays;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.annotation.Nonnull;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
... | true |
ea069c1a0829a3f19e79cd4a7986899d42912277 | Java | blueoceandevops/debezium-oracle-query-tool | /src/main/java/io/debezium/oracle/tools/query/command/LogsCommand.java | UTF-8 | 4,456 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 The original 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 applicable la... | true |
ad317b384df1661add32c73eae6b475969b92ece | Java | puttelTH/IrohaAndroid | /app/src/main/java/com/puttel/app/iroha/Transaction.java | UTF-8 | 3,599 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.puttel.app.iroha;
import com.google.protobuf.InvalidProtocolBufferException;
import com.puttel.app.iroha.detail.BuildableAndSignable;
import com.puttel.app.iroha.detail.Hashable;
import com.puttel.app.iroha.detail.ReducedHashable;
import iroha.protocol.TransactionOuterClass;
import java.security.KeyPair;
... | true |
d8f3c4cf551aaa3e208e75045e0960186951e779 | Java | superzzk/javaStudy | /library/src/test/java/com/zzk/study/library/guava/collections/maps/GuavaMultiMapUnitTest.java | UTF-8 | 617 | 2.875 | 3 | [] | no_license | package com.zzk.study.library.guava.collections.maps;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class GuavaMultiMapUnitTest {
@Test
public void givenMultiMap_whenAddTwoValuesForSam... | true |
5dfa979bb42a37dcd5ca0b83949394dd865bf6f7 | Java | cds1219/SpringHello | /src/ex02/Circle.java | UTF-8 | 167 | 2.8125 | 3 | [] | no_license | package ex02;
public class Circle implements Shape{
private int radius=3;
public void area() {
System.out.println("원의 넓이: "+(radius*radius)+"π");
}
}
| true |
f9d76f89276bf903139ef7d5f61218dd906eb37a | Java | CostPap93/TestAppConnected-Alert-master4 | /app/src/main/java/com/example/mastermind/testapp/JobOffer.java | UTF-8 | 1,018 | 2.3125 | 2 | [] | no_license | package com.example.mastermind.testapp;
import java.io.Serializable;
import java.util.Date;
/**
* Created by mastermind on 19/4/2018.
*/
public class JobOffer implements Serializable {
private int id;
private int catid;
private String title;
private Date date;
private String downloaded;
... | true |
190e9c226147a3b2bc7965da24dc95f58fba178a | Java | ShuTingY/duke | /src/main/java/duke/command/AddEventCommand.java | UTF-8 | 1,549 | 3.015625 | 3 | [] | no_license | package duke.command;
import duke.dukeexception.DukeException;
import duke.task.Event;
import duke.task.Task;
import duke.storage.Storage;
import duke.tasklist.TaskList;
import duke.ui.UiText;
import java.util.Date;
public class AddEventCommand extends Command {
public AddEventCommand(String[] msg) {
sup... | true |
8ee9c0a64d703dc1644dca3d9e6f267f9d5d0bc5 | Java | boffin1992/software | /java-maven/tmp_old/core/test/java/org/nlp2rdf/ontology/olia/TestOLiAOntology.java | UTF-8 | 3,017 | 1.8125 | 2 | [] | no_license | /***************************************************************************/
/* Copyright (C) 2010-2011, Sebastian Hellmann */
/* Note: If you need parts of NLP2RDF in another licence due to licence */
/* incompatibility, please mail hellmann@informatik.uni-leipzig.de */
/* ... | true |
0365f966cfe43d61fefc920c51afd2e0dc1198a3 | Java | IrinkaMisha/servicechange | /src/by/nulay/changer/taskexecutor/TaskMain.java | UTF-8 | 850 | 2.09375 | 2 | [] | no_license | package by.nulay.changer.taskexecutor;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import test.VKActionFirefox;
/**
* Created by miha on 24.05.2017.
*/
public class TaskMain {
public WebDriver driver;
public TaskMain(WebDriver driver) ... | true |
fe0d5bf67ab29434ff10c7501159ffdaa5e4ca7e | Java | erwinwinder/molgenis_apps | /apps/hemodb/org/molgenis/hemodb/header/HomePage.java | UTF-8 | 3,745 | 2.203125 | 2 | [] | no_license | /* Date: October 5, 2010
* Template: PluginScreenJavaTemplateGen.java.ftl
* generator: org.molgenis.generators.ui.PluginScreenJavaTemplateGen 3.3.3
*
* THIS FILE IS A TEMPLATE. PLEASE EDIT :-)
*/
package org.molgenis.hemodb.header;
import java.io.File;
import matrix.general.DataMatrixHandle... | true |
905e86c5258a5924cb93fa1f5d3e5ea7af4d6b21 | Java | moutainhigh/spring-boot-plus2 | /xj-starter/xj-api-qq-open/src/main/java/com/ws/ldy/starter/qq/service/impl/QQLoginServiceImpl.java | UTF-8 | 4,417 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.ws.ldy.starter.qq.service.impl;
import com.alibaba.fastjson.JSON;
import com.ws.ldy.starter.qq.config.ConstantsProperties;
import com.ws.ldy.starter.qq.model.entity.QQUserInfo;
import com.ws.ldy.starter.qq.model.vo.QQLoginVO;
import com.ws.ldy.starter.qq.service.QQLoginService;
import com.ws.ldy.starter.qq... | true |
c73bd2947ef2666eabe63e011a9bc0fba0472bc3 | Java | stevenlii/javautils | /src/main/java/com/paymoon/demo/Ztest/Test48.java | UTF-8 | 910 | 2.875 | 3 | [] | no_license | package com.paymoon.demo.Ztest;
import java.util.concurrent.LinkedBlockingQueue;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Test48 {
private static final Logger logger = LogManager.getLogger();
public static void main(String[] args) {
Test48 test48 = new Tes... | true |
59506d7fab6c06a422576b7eff10999cb04c1900 | Java | tabulapdf/tabula-java | /src/test/java/technology/tabula/TableTest.java | UTF-8 | 1,024 | 2.734375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package technology.tabula;
import static org.junit.Assert.*;
import org.junit.Test;
public class TableTest {
@Test public void testEmpty() {
Table empty = Table.empty();
assertEquals(TextChunk.EMPTY, empty.getCell(0, 0));
assertEquals(TextChunk.EMPTY, empty.getCell(1, 1));
assertEquals(0, empty.getRowC... | true |
9081400d426f4c57fd81b0f2b2c0c35de8497f56 | Java | pasindugunasekara/Employee-Managment | /src/lk/ijse/SPRDA/model/Employee.java | UTF-8 | 1,357 | 2.5 | 2 | [] | no_license | package lk.ijse.SPRDA.model;
public class Employee{
String Ep_id;
String Name;
String Address;
String Contact;
String Birthday;
String State;
String City;
String Email;
String Join_date;
public Employee(){
}
public Employee(String Ep_id,... | true |
9ccf2b244d7d0ea9e4b0345e80796e4f0bc86000 | Java | jweiw99/HealthyEat | /app/src/main/java/my/edu/utar/uccd3223/Dashboard.java | UTF-8 | 8,762 | 2.15625 | 2 | [] | no_license | package my.edu.utar.uccd3223;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
... | true |
c2218908dce3d5f9af37586d448e0be9402a2866 | Java | socrata/datasync | /src/test/java/com/socrata/datasync/model/ControlFileModelTest.java | UTF-8 | 5,976 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.socrata.datasync.model;
import com.socrata.datasync.TestBase;
import com.socrata.datasync.config.controlfile.ControlFile;
import com.socrata.datasync.config.controlfile.LocationColumn;
import com.socrata.datasync.config.userpreferences.UserPreferences;
import com.socrata.datasync.config.userpreferences.Use... | true |
eb93e282e1523a59a38a6667000e943773871879 | Java | RelaxOne/Exercise | /com/relaxone/common/ListNode.java | GB18030 | 845 | 3.3125 | 3 | [] | no_license | package com.relaxone.common;
public class ListNode {
public int val;
public ListNode next = null;
public ListNode(int val){
this.val = val;
}
/**
* ʼһ
* @return
*/
public static ListNode init() {
ListNode root = new ListNode(1);
ListNode root1 = new ListNode(2);
ListNode root2 = new ListNode(3);
... | true |
0e3aee6cd7f971bcde855a7698de6f34a7731cbb | Java | i-novus-llc/n2o-framework | /backend/n2o/n2o-rest/src/test/java/net/n2oapp/framework/ui/servlet/AppConfigJsonWriterTest.java | UTF-8 | 5,465 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package net.n2oapp.framework.ui.servlet;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import net.n2oapp.framework.api.context.Context;
import net.n2oapp.framework.api.context.ContextProcessor;
import net... | true |
abd130d663ec437216df8037f56ea2a768307125 | Java | tangjingLI/SE1 | /myjavatest/src/Lexer.java | UTF-8 | 2,417 | 3.296875 | 3 | [] | no_license | public class Lexer {
public String source;
public int index=0;
public Token token=new Token();
public String tokenvalue;
public Lexer(String s){
source = s;
nextToken();
}
public char getChar(){
if(this.index>=source.length())
return '\0';
retu... | true |
f06c4eabc30cc3e4ac8befa933cedd6cf8de1d0a | Java | springuser2014/telephony | /telephony-core/src/test/java/telephony/test/core/service/UserServiceTest.java | UTF-8 | 6,299 | 2.03125 | 2 | [] | no_license | package telephony.test.core.service;
import com.google.inject.Inject;
import com.googlecode.flyway.test.annotation.FlywayTest;
import com.googlecode.flyway.test.dbunit.FlywayDBUnitTestExecutionListener;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfig... | true |
592ab4a2f1388b670df7825f37c4df2ba28bd552 | Java | StormITpl/JavaExamples | /SpringCRUD/src/test/java/pl/stormit/springcrud/boundary/NoteControllerIntegrationTest.java | UTF-8 | 2,616 | 2.578125 | 3 | [] | no_license | package pl.stormit.springcrud.boundary;
import java.util.Arrays;
import java.util.List;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.ju... | true |
1b5c3e2952b862a6e27305281cdec005eb920485 | Java | kansasSamurai/FlatSwing | /src/com/mommoo/flat/frame/ShadowPaintHandler.java | UTF-8 | 5,481 | 2.828125 | 3 | [
"MIT"
] | permissive | package com.mommoo.flat.frame;
import com.sun.prism.j2d.paint.MultipleGradientPaint;
import com.sun.prism.j2d.paint.RadialGradientPaint;
import java.awt.*;
import java.awt.geom.Arc2D;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
class ShadowPaintHandler {
private static final float[] DIST = ... | true |
b9b2a0c169b3a7a6f32b3ce40e1c5cbe62984fb0 | Java | Chu2015/algorithm | /src/leetCode/SymmetricTree.java | UTF-8 | 3,049 | 3.84375 | 4 | [] | no_license | package leetCode;
import java.util.LinkedList;
import java.util.Queue;
/**
* Created by chupengcheng on 2021/7/20.
*/
public class SymmetricTree {
// recursively
// public boolean isSymmetric(TreeNode root) {
// if (root == null) {
// return false;
// }
// return isSymmetric(... | true |
669e302f382a8a9e8c1e733edafcda6abd77c020 | Java | SerebryanskiySergei/JavaSocietyProject | /src/Main.java | UTF-8 | 148 | 2 | 2 | [] | no_license | import Model.Kingdom;
public class Main {
public static void main(String[] args) {
Kingdom main = new Kingdom(100,1000,1000);
}
}
| true |
e389185d1dbb4ae0a8ea873129c0ce622dd9a23d | Java | whalezxj/design-mode | /src/main/java/demo/Adapter/CarAdaptee.java | UTF-8 | 169 | 1.835938 | 2 | [] | no_license | package demo.Adapter;
/**
* @author zxj
* @date 2021/5/31
**/
public class CarAdaptee {
public void carRun(){
System.out.println("curRun");
}
}
| true |
2ef22cd7e61da4088eb78e6db89ead80ece979ce | Java | Andrey221285/javarush | /2.JavaCore/src/com/javarush/task/task19/task1919/Solution.java | UTF-8 | 1,508 | 3.046875 | 3 | [] | no_license | package com.javarush.task.task19.task1919;
/*
Считаем зарплаты
*/
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.TreeSet;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public c... | true |
6574d465044f51a679855893fa647429da7bdbb3 | Java | Karloid/minipaperio | /src/main/kotlin/FastMath.java | UTF-8 | 4,264 | 3.1875 | 3 | [] | no_license |
public class FastMath {
private static final double TWO_POW_450 = Double.longBitsToDouble(0x5C10000000000000L);
private static final double TWO_POW_N450 = Double.longBitsToDouble(0x23D0000000000000L);
private static final double TWO_POW_750 = Double.longBitsToDouble(0x6ED0000000000000L);
private stati... | true |
025fa2d880b4559a373b2efcdfbdcc40ce1d854f | Java | echalkpad/elasticservices | /examples/calc-service/src/main/java/com/socklabs/elasticservices/examples/calc/service/CalcService.java | UTF-8 | 2,434 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.socklabs.elasticservices.examples.calc.service;
import com.google.common.collect.ImmutableList;
import com.google.protobuf.Message;
import com.socklabs.elasticservices.core.ServiceProto;
import com.socklabs.elasticservices.core.message.ContentTypes;
import com.socklabs.elasticservices.core.message.MessageF... | true |
ac50dbf63b37f919861ea6a3c43b16c00b3f9972 | Java | 6westboy9/arithmetic | /leetcode/src/main/java/base/ListNode.java | UTF-8 | 878 | 3.203125 | 3 | [] | no_license | package base;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
* @author westboy
* @since 2020/2/21
*/
public class ListNode {
public int val;
public ListNode next;
public ListNode() {
}
public ListNode(int v) {
this.val = v;
this.next = null;
}
public ListNode(int x, ... | true |
30cd04ff383fe5df8c62b22ec60d0c411714a828 | Java | Michaelbriz11/lab0_MB | /src/Application.java | UTF-8 | 267 | 3.203125 | 3 | [] | no_license |
public class Application {
public static void main(String[] args) {
Circle c = new Circle();
c.setRadius(45);
c.calculateArea();
System.out.printf("The radius is %.2f%nThe area is %.2f", c.getRadius(), c.calculateArea());
}// end main
}// end class
| true |
6741a1e38622e6e197264834ab9802db406533e2 | Java | asujata-123/NG | /trunk/NG7qa/src/com/nextgen/qa/automation/smoketest/SmartFilesInterface.java | UTF-8 | 15,827 | 1.8125 | 2 | [] | no_license | package com.nextgen.qa.automation.smoketest;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.util.Calendar;
import java.util.List;
import java.util.concurrent.TimeUnit;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
impor... | true |
d94c6a958cfefbeaa4b16e5c3ab9a9d66c2ac016 | Java | fsteller/iTeammates | /TeammatesApp/src/main/java/com/fsteller/mobile/android/teammatesapp/activities/events/EventsMaintenance.java | UTF-8 | 8,812 | 2.109375 | 2 | [] | no_license | package com.fsteller.mobile.android.teammatesapp.activities.events;
import android.app.ActionBar;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import... | true |
bfe0c7599ca3d4d3288ff48d1a4bdb07d8b15f8f | Java | AmoVanB/eces-routing | /src/main/java/de/tum/ei/lkn/eces/routing/algorithms/mcp/emcp/EMCPAlgorithm.java | UTF-8 | 3,868 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package de.tum.ei.lkn.eces.routing.algorithms.mcp.emcp;
import de.tum.ei.lkn.eces.core.Controller;
import de.tum.ei.lkn.eces.routing.algorithms.mcp.MCPAlgorithm;
import de.tum.ei.lkn.eces.routing.algorithms.sp.ksp.yen.YenAlgorithm;
import de.tum.ei.lkn.eces.routing.interfaces.SolveUnicastRequest;
import de.tum.ei.lkn.... | true |
4263eaf76253feb6ca31c11aa8fd78ccb88a0d39 | Java | Evremk/lab2 | /question_3.java | UTF-8 | 686 | 3.78125 | 4 | [] | no_license | package lab2;
import java.util.Scanner;
public class question_3 {
public static void main(String[] args) {
/*Question-3
Write a program that asks the user for a positive nonzero integer value.
The program should use a loop to get the sum of all the integers from 1 up
to the number entered.*/
Scanner sc=ne... | true |
d43cc92e50935b864437ecc7300f1661f3d73f03 | Java | sonhoai27/Java | /PathFinding/Movevement/src/PathFinding/PathfindingList.java | UTF-8 | 2,765 | 3.5625 | 4 | [] | no_license | package PathFinding;
public class PathfindingList{
private PathfindingNode first;
public PathfindingList() {
this.first = null;
}
public PathfindingList(PathfindingNode first) {
this.first = first;
}
public PathfindingNode getFirst() {
return first;
}
public ... | true |
dec5b9687aaf525692ed4c1d54def8cbf120ec97 | Java | Zeniker/LocadoraJavaSpring | /src/main/java/com/guilherme/locadoraspringboot/dto/filme/DevolverFilmeRequestDTO.java | UTF-8 | 333 | 1.742188 | 2 | [] | no_license | package com.guilherme.locadoraspringboot.dto.filme;
import javax.validation.constraints.NotNull;
public class DevolverFilmeRequestDTO {
@NotNull
private Integer idCopia;
public Integer getIdCopia() {
return idCopia;
}
public void setIdCopia(Integer idCopia) {
this.idCopia = idCo... | true |
04def4f285c620db72e66327ac290234011c1445 | Java | xcs666/trans | /trans-service/trans-source-interface/src/main/java/com/trans/entity/City.java | UTF-8 | 447 | 1.804688 | 2 | [] | no_license | package com.trans.entity;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Data
@Table(name = "tb_city")
public class City {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private ... | true |
e157d165624c6c4b7eecc5734547823665220743 | Java | BLAREL/ISEN_CONTACT_APP | /src/main/java/ConnectController.java | UTF-8 | 1,301 | 2.40625 | 2 | [] | no_license | import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.stage.Stage;
publ... | true |
824389d7553aeffdfeff7775c9cb9cb580476f3f | Java | choiseongjun/studyshareback | /src/main/java/study/share/com/source/repository/study/StudyFeedLikeRepository.java | UTF-8 | 860 | 1.90625 | 2 | [] | no_license | package study.share.com.source.repository.study;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
impo... | true |
68ee9c23c9e4dbd3daa826537212b6f647d602ac | Java | F-WJ/java_practice | /Javaweb/16_文件上传-下载-token-验证码/src/_04_token/InputServlet.java | UTF-8 | 1,403 | 2.625 | 3 | [] | no_license | package _04_token;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSer... | true |
33fc8ca021604527b2a4aab617cbe6c8a50c691a | Java | gechenrun/scysuper | /src/com/jshx/yhbzlsd/service/YhbzlsdService.java | UTF-8 | 1,137 | 1.75 | 2 | [] | no_license | package com.jshx.yhbzlsd.service;
import java.util.List;
import java.util.Map;
import com.jshx.core.base.service.BaseService;
import com.jshx.core.base.vo.Pagination;
import com.jshx.yhbzlsd.entity.Yhbzlsd;
import com.jshx.yhbzlsd.entity.YhbzlsdBean;
public interface YhbzlsdService extends BaseService
{
/**
* 分页... | true |
3d4456be412bf8679ce6a07412cd62bc3f336bcb | Java | NITISHSHARMA12/JavaTutorial | /15-06-2018/clonning.java | UTF-8 | 586 | 3.375 | 3 | [] | no_license | class Employee implements Cloneable{
private int eid;
private String ename;
Employee(){}
Employee(int eid, String ename){
this.eid=eid;
this.ename=ename;
}
void showEmployeeDetails(){
System.out.println(eid+ " " +ename);
}
public Employee clone() throws CloneNotSupportedException{
Employee e... | true |
bc9007c35bc22947136d8fc4a217dd80ccd34040 | Java | Velvorim/TreeTechChallenge | /Backend/crudalarm/src/main/java/com/treeteech/crudalarm/error/ApplicationExceptionHandle.java | UTF-8 | 911 | 2.25 | 2 | [] | no_license | package com.treeteech.crudalarm.error;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
impor... | true |
183d52747b4015107b056ad25d744ed7e595329b | Java | itliusir/New-Test | /src/main/java/com/itliusir/test/parse/TestParse1.java | UTF-8 | 5,752 | 2.078125 | 2 | [] | no_license | package com.itliusir.test.parse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set... | true |
2d01e42b0c9b847a0951e2897d92208b4ffe047e | Java | whli745/hfangw | /src/util/StringUtil.java | UTF-8 | 9,611 | 3.234375 | 3 | [] | no_license | package util;
/*
* 上海卓繁 OA办公管理系统 -- http://www.jee-soft.cn
* Copyright (C) 2008-2011 GuangZhou HongTian Software Company
*/
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import java.util.Iterator;
import java.util.regex.Pattern;
/**
*... | true |
ef2d0627b3a0c8ec68cee1f7935d7492ab422a2a | Java | fmorantfrance/org.eclipse.sirius | /plugins/org.eclipse.sirius.tests.swtbot/src/org/eclipse/sirius/tests/swtbot/crossTable/CrossTableIntersectionTest.java | UTF-8 | 3,230 | 2.0625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2014 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://... | true |
d9569a8e7fa32d93892ffca44cb5495874f51f3d | Java | moutainhigh/dianiu-pscp | /pscp-renter-mis/pscp-renter-mis/src/main/java/com/edianniu/pscp/renter/mis/util/BizUtils.java | UTF-8 | 14,850 | 2.515625 | 3 | [] | no_license | package com.edianniu.pscp.renter.mis.util;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Da... | true |
8a1ea3e347bc1bf5d1ce745422348f5124be67aa | Java | lucystevens/Proton | /src/main/java/org/proton_di/scanner/resources/ResourceRoot.java | UTF-8 | 1,672 | 3.25 | 3 | [
"MIT"
] | permissive | package org.proton_di.scanner.resources;
import java.util.ArrayList;
import java.util.List;
/**
* An abstract class to represent a root resource
* on the classpath. This may be a standard directory
* or a jar.
*
* @author Luke Stevens
*/
public abstract class ResourceRoot {
String path;
List<Class<?>> clas... | true |
c320142c3a81994cee6a1b1fc9090a57a2919ae2 | Java | apykac/codeGeneration | /src/main/java/net/home/entity/clazz/JavaDocEntity.java | UTF-8 | 1,128 | 2.796875 | 3 | [] | no_license | package net.home.entity.clazz;
import net.home.util.ConstantStore;
import java.util.List;
import static net.home.util.ConstantStore.LINE_SEPARATOR;
public class JavaDocEntity implements Entity {
private static final String BEGIN = "/** ";
private static final String END = " */";
private static final Str... | true |
8d5df030583104202bb4649059e7f0aff1d0bf25 | Java | houzhanwu/ycej | /ycej-admin/src/main/java/com/yicheejia/modules/sms/entity/SmsEntity.java | UTF-8 | 2,111 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.yicheejia.modules.sms.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author
* @email
* @date 2018-10-23 16:20:35
*/
@... | true |
47f799bf9efb013e3ee403d8af930e05513a2847 | Java | xiebohh/Train | /KafkaTest/src/main/java/kafka/AutoCommitConsumer.java | UTF-8 | 2,795 | 2.578125 | 3 | [] | no_license | package kafka;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.log4j.BasicConfigurator;
import java.util.Arrays;
import ... | true |
103f14ec4fe92717b8563607b36da09805687ee2 | Java | gdutxiaoxu/CoordinatorLayoutExample | /app/src/main/java/com/xujun/contralayout/recyclerView/WrapperUtils.java | UTF-8 | 1,883 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.xujun.contralayout.recyclerView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import android.view.ViewGroup;
/**
* Created by xujun on 16/6/28.
*/
public class WrapperUtils {
p... | true |
0f24d0cd66f3791591028ec3b71c343b94f5d0f3 | Java | jairoandre/lance | /src/main/java/br/com/vah/lance/controller/LancamentoCtrl.java | UTF-8 | 22,395 | 1.703125 | 2 | [] | no_license | package br.com.vah.lance.controller;
import br.com.vah.lance.constant.EstadoLancamentoEnum;
import br.com.vah.lance.constant.RolesEnum;
import br.com.vah.lance.constant.TipoServicoEnum;
import br.com.vah.lance.entity.dbamv.ContaReceber;
import br.com.vah.lance.entity.dbamv.Fornecedor;
import br.com.vah.lance.entity.db... | true |
4966c6bbe17de11351a7c154d812a1a3860c741f | Java | KarimElSheikh/RDBMS | /src/FauxBots/Pointer.java | UTF-8 | 434 | 2.84375 | 3 | [] | no_license | package FauxBots;
import java.io.Serializable;
@SuppressWarnings("serial")
public class Pointer implements Serializable {
Object value;
int pageNumber;
int rowNumber;
/**
* Constructor for the Pointer class
* @param value
* @param pageNumber
* @param rowNumber
*/
public Pointer(Object value, int page... | true |
4c4f7aa6d4afa3e2b4f212ddec379ecd6aac9d3e | Java | yuwenlongpanda/gshop-server | /src/main/java/com/wenlong/yu/service/impl/ShopsServiceImpl.java | UTF-8 | 784 | 1.96875 | 2 | [] | no_license | package com.wenlong.yu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wenlong.yu.mapper.ShopsMapper;
import com.wenlong.yu.pojo.Shops;
import com.wenlong.yu.service.ShopsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ster... | true |
fd68bb3e5e976ea3dc0ea21bfd79c18f4fc2db55 | Java | Mittal237/m-tunes | /src/main/java/com/demo/music/services/TrackService.java | UTF-8 | 1,235 | 2.359375 | 2 | [] | no_license | package com.demo.music.services;
import com.demo.music.exceptions.TrackIdException;
import com.demo.music.model.Album;
import com.demo.music.model.Artist;
import com.demo.music.model.Track;
import com.demo.music.repositories.AlbumRepository;
import com.demo.music.repositories.ArtistRepository;
import com.demo.music.re... | true |
667dadaa38e923e002513e9fa7b6f5d7c613e4fb | Java | RobertHSchmidt/jedit | /plugins/ProjectViewer/tags/projectviewer_1_0_4/projectviewer/ViewerListener.java | UTF-8 | 8,433 | 2.046875 | 2 | [] | no_license | /* $Id$
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
*... | true |
e80ee705a604c2b11df1125cf1bdb558c509cf8d | Java | Vasu-009/projects | /PackageDemo/src/com/capg/package2/child.java | UTF-8 | 291 | 2.859375 | 3 | [] | no_license | package com.capg.package2;
import com.capg.package1.Parent;
public class child extends Parent {
public child(String s1,String s2){
super(s2);
System.out.println("Child constructor "+s2);
}
public void show() {
super.show();
System.out.println("From child");
}
} | true |
1a050bdb52148e2af0e37577948f89e7639f2e0e | Java | PortSwigger/assertj-swing | /assertj-swing/src/test/java/org/assertj/swing/fixture/Bug80_JDialogLookup_Test.java | UTF-8 | 3,479 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 distributed under t... | true |
2d0eb55c39ab1351c8a5dad9f5bf27049376a919 | Java | mohamedabdelhakem1/circus-of-plates-game | /Game/src/model/gameObjects/shapes/plate/Observer.java | UTF-8 | 188 | 1.875 | 2 | [] | no_license | package model.gameObjects.shapes.plate;
public interface Observer {
public void updateCoordinates(int x) ;
public void setattached(boolean s) ;
void setStopMoving(boolean s);
}
| true |
7b0abf7e138a56f96dfe13b5a5ae50c33549beda | Java | FrtsVictor/CalculoIR-BackEnd | /src/main/java/com/alterdata/calculo/irpf/services/calculo_anual/IrpfService.java | UTF-8 | 1,485 | 2.125 | 2 | [] | no_license | package com.alterdata.calculo.irpf.services.calculo_anual;
import com.alterdata.calculo.irpf.models.irpf.IrpfResponse;
import org.springframework.stereotype.Service;
@Service
public class IrpfService {
private AliqAnualIrpfService aliqService;
private double impostoInicial;
private double impostoRenda;
... | true |
8ea38ec4db968525d7606e1a4c95725748675d98 | Java | ABolikov/interview | /src/main/java/org/bolikov/lesson1/task3/Rectangle.java | UTF-8 | 264 | 2.9375 | 3 | [] | no_license | package org.bolikov.lesson1.task3;
public class Rectangle extends Figure {
public Rectangle(String name, int a, int b) {
super(name, a, b);
}
@Override
public void area() {
area = a * b;
System.out.println(this);
}
}
| true |
4c56e0ed60af50723155eda6cf865c8d3352f145 | Java | mcupka/30862-Compiler | /IParser.java | UTF-8 | 415 | 3 | 3 | [] | no_license | public class IParser extends Parser {
public ArgObj parse(String[] tokens) {
IArgObj args = new IArgObj();
int parsedint = 0;
try {
int i = Integer.parseInt(tokens[1]);
parsedint = i;
}
catch (Exception e) {
System.out.println("Error pars... | true |
0a4a6353e1ab1f75a6f9c77a47174ba220525f36 | Java | EmilyWei/ifree | /ifree/test/ifree/TestXslt.java | UTF-8 | 999 | 2.125 | 2 | [] | no_license | package ifree;
import static org.junit.Assert.*;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.net.URISyntaxException;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.tra... | true |
4d935a0902ff9635549d029c5d3d534a40881afc | Java | yvesmedhard/JavaMazeGame | /src/labirinth/players/Hero.java | UTF-8 | 1,513 | 3.09375 | 3 | [] | no_license | package labirinth.players;
// @author yvesmedhard
import java.awt.Point;
import java.awt.Color;
public class Hero {
protected Point position;
protected String moveDirection;
protected String consoleChar;
protected String trailConsoleChar;
protected Color drawColor;
public Hero(){
position = new Po... | true |
b240e93cb46bac89a0c3bdae0a28eff8e32aa0f8 | Java | aryanahmad/Minigame-Madness | /app/src/main/java/com/example/game/FlipCardGame/FlipCardResult/FlipCardResult.java | UTF-8 | 1,821 | 3.34375 | 3 | [] | no_license | package com.example.game.FlipCardGame.FlipCardResult;
import java.io.Serializable;
/**
* The FlipCardResult class, a class to keep track of all the results in the flip card game
*
* @author Gerald, Harbaksh
*/
public class FlipCardResult implements Serializable {
private int numCorrect;
private int timeTo... | true |
140d8cee41fcc1978c3516a9b38bcc34f94a6ae9 | Java | wolfgangimig/joa | /java/joa/src/com/wilutions/com/DeclDISPID.java | UTF-8 | 613 | 1.953125 | 2 | [
"MIT"
] | permissive | /*
Copyright (c) 2014 Wolfgang Imig
This file is part of the library "Java Add-in for Microsoft Office".
This file must be used according to the terms of
MIT License, http://opensource.org/licenses/MIT
*/
package com.wilutions.com;
import java.lang.annotation.ElementType;
import java... | true |
92c853d3f8fa7a60a8813d1c819f365ed334ad17 | Java | DanielAyen/inf2praktikum_B4 | /MADN/src/backend/KI_Defensiv.java | UTF-8 | 1,215 | 2.5 | 2 | [] | no_license | package backend;
import java.io.Serializable;
public class KI_Defensiv extends KI implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
public KI_Defensiv(Spieler spieler, Spiel spiel) {
super(spieler, spiel);
}
/**
* gibt eine Spielfigur weiter in zugD... | true |
6ced897fa61b361b2ccd6f723b463a65f9ba7a9a | Java | JetBrains/intellij-plugins | /CFML/src/com/intellij/coldFusion/model/CfmlLanguage.java | UTF-8 | 819 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.coldFusion.model;
import com.intellij.lang.Language;
import com.intellij.psi.templateLanguages.TemplateLanguage;
/**
* Created by Lera Nikolaenko
*/
publi... | true |
09768a2365432273349f0053c5a06aec5626b6df | Java | Talitha-Aurelia/UTS_PemrogramanLanjut | /UTS_NOMOR3/src/UTS/PemrogamanLanjut/MatematikaCanggih.java | UTF-8 | 661 | 2.96875 | 3 | [] | no_license | // Nama : Talitha Aurelia Shakira
// NIM : 11200930000023
// Kelas : 2A
package UTS.PemrogamanLanjut;
public class MatematikaCanggih {
int hasil;
void pertambahan (int a, int b, int c, int d){
System.out.println (a+"+"+b+"+"+c+"+"+d+"="+(a+b+c+d));
}
void perkalian (int ... | true |
36470f4177e998cdb2f17a9c4b6745b5147cc51b | Java | coralcea/bigbluebutton | /bigbluebutton-apps/src/main/java/org/bigbluebutton/conference/service/whiteboard/Page.java | UTF-8 | 1,711 | 2.28125 | 2 | [] | no_license | /**
* ===License Header===
*
* BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
*
* Copyright (c) 2010 BigBlueButton Inc. and by respective authors (see below).
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General P... | true |
b31bcc7e19515861d0b7ebb5a164243f6a53ba0b | Java | jianhh/catch | /src/com/work/commodity/schema/GoodsInfoImageSchema.java | GB18030 | 1,246 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.work.commodity.schema;
import java.io.Serializable;
/**
* ƷͼƬtb_goods_info_image
*
* @author tangbiao
*/
public class GoodsInfoImageSchema implements Serializable {
private static final long serialVersionUID = 201033331L;
private String n_id = ""; // ID
private String n_goods_id = ""; // ƷIDӦtb... | true |
f2def2a654bee4889b47e1180f62df7f03127762 | Java | xvik/guice-validator | /src/main/java/ru/vyarus/guice/validator/aop/ValidatedMethodMatcher.java | UTF-8 | 1,485 | 2.5625 | 3 | [
"MIT"
] | permissive | package ru.vyarus.guice.validator.aop;
import com.google.inject.matcher.AbstractMatcher;
import jakarta.validation.Constraint;
import jakarta.validation.Valid;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
/**
* Validation method matcher. Method require validation if it's annotated with {... | true |
89586e061272dfb80dd17f1daa6f1ad17d65a60f | Java | leesonwei/forest | /forest-core/src/test/java/com/dtflys/test/http/TestPostEmptyBodyClient.java | UTF-8 | 1,655 | 1.960938 | 2 | [
"MIT"
] | permissive | package com.dtflys.test.http;
import com.dtflys.forest.backend.HttpBackend;
import com.dtflys.forest.config.ForestConfiguration;
import com.dtflys.test.http.client.PostClient;
import com.dtflys.test.http.model.UserParam;
import com.dtflys.test.mock.PostEmptyBodyMockServer;
import com.dtflys.test.mock.PostMockServer;
i... | true |
eb2340570035d5948a48fa51ce216f3e9e820fd7 | Java | valevale/featureExtraction | /src/main/java/test/SourcesParser.java | UTF-8 | 2,383 | 2.703125 | 3 | [] | no_license | package test;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.io.IOUtils;
import database.MongoFacade;
import model.Source;
public class SourcesParser {
public static vo... | true |
e8cc25f25855558acdb38f8a48cc294013d895d4 | Java | PaniaguaHugo/digitalers-web | /digitaler-web/src/main/java/com/digitalers/clase3/herencia/Persona.java | UTF-8 | 444 | 2.6875 | 3 | [] | no_license | package com.digitalers.clase3.herencia;
public class Persona {
//ESTO ES UN ATRIBUTO DE INSTANCIA
private String nombre;
//ESTO ES UN ATRIBUTO DE CLASE
public static Integer cantidadOjos = 2;
public final static String especie = "HUMANO";
public Persona(String nombre) {
super();
this.nombre = nombre;
... | true |
dba8b7ff4a65aa3d2ed82ad81876bde928aa81a0 | Java | adilakhter/spoofaxlang | /source/org.strategoxt.imp.editors.stratego/editor/java/trans/numbered_arguments_0_0.java | UTF-8 | 2,919 | 2 | 2 | [] | no_license | package trans;
import org.strategoxt.stratego_lib.*;
import org.strategoxt.stratego_lib.*;
import org.strategoxt.stratego_sglr.*;
import org.strategoxt.stratego_gpp.*;
import org.strategoxt.stratego_xtc.*;
import org.strategoxt.stratego_aterm.*;
import org.strategoxt.strc.*;
import org.strategoxt.java_front.*;
import ... | true |
7c741802d839b1eb1d40e04f4f3ef2649e5a3601 | Java | sparrowzoo/sparrow-shell | /sparrow/src/main/java/com/sparrow/xml/SystemIdSchemaMappingResolver.java | UTF-8 | 4,622 | 2 | 2 | [] | no_license | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
7fab74852a40832f1e949a2c2b685b206de4c3f7 | Java | songuyen1816/bsp-android-base | /app/src/main/java/com/bsp/base/api/APIService.java | UTF-8 | 1,347 | 2.1875 | 2 | [] | no_license | package com.bsp.base.api;
import com.bsp.base.BuildConfig;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
pu... | true |
9d47d1f7cdee62ad5abf95ce7491fd77f279a95c | Java | anjalitambe/EMIEasyPay | /src/model/Bank.java | UTF-8 | 1,971 | 2.46875 | 2 | [] | no_license | package model;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence... | true |
7ad12dab3c01bce023075f8b12f4dac245230750 | Java | jonathanchh1/RetrofitSortExample | /app/src/main/java/com/example/jonat/sortmovies/Bitmap.java | UTF-8 | 281 | 2.46875 | 2 | [] | no_license | package com.example.jonat.sortmovies;
/**
* Created by jonat on 10/8/2017.
*/
public class Bitmap {
public static String buildPosterUrl(String PosterPath) {
//use recommended w185 size for image
return "http://image.tmdb.org/t/p/w185" + PosterPath;
}
}
| true |
3edbbd7c4fec1eed82eaa32f971bab3d92f60272 | Java | pokemon0121/LC | /reverse-words-in-a-string.java | UTF-8 | 1,763 | 3.65625 | 4 | [] | no_license | public class Solution {
public String reverseWords(String s) {
if (s == null || s.length() == 0) return s;
char[] chars = s.toCharArray();
reverseCharArray(chars, 0, chars.length - 1);
int slow = 0, fast = 0;
while (fast < chars.length) {
// get slow to start of t... | true |
5506780ebaf0ecf2a0d9da0e4d7c904f893e3707 | Java | itsuki0927/leet-code | /stack/src/trap/Solution.java | UTF-8 | 1,200 | 3.453125 | 3 | [] | no_license | package trap;
import java.util.ArrayDeque;
import java.util.Deque;
/**
* @author: itsuki
* @create: 2021-06-04 10:39
**/
public class Solution {
public int trap(int[] height) {
int result = 0;
Deque<Integer> deque = new ArrayDeque<>();
for (int i = 0; i < height.length; i++) {
... | true |
e559e420677ab2c013a7d7ebec8d57708332e1f1 | Java | adarshp14/ProjectManagementTool | /PPMBACKEND/src/main/java/com/project/management/repositories/BacklogRepository.java | UTF-8 | 291 | 1.851563 | 2 | [] | no_license | package com.project.management.repositories;
import com.project.management.domain.Backlog;
import org.springframework.data.repository.CrudRepository;
public interface BacklogRepository extends CrudRepository<Backlog, Long> {
Backlog findByProjectIdentifier(String projectIdentifier);
}
| true |
c551dc5f893700976f44883d4878fbb559a3e49a | Java | alesefs/TesteAndroid | /SantanderTeste/app/src/main/java/com/example/alessandrofsouza/santanderapp/domain/model/MoreInfo.java | UTF-8 | 829 | 2.25 | 2 | [] | no_license | package com.example.alessandrofsouza.santanderapp.domain.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class MoreInfo {
@Expose
public MoreInfoValues month;
public MoreInfoValues getMonth() {
return month;
}
public void setMo... | true |
7a05982184f785fa21b1b6a4b1cd2eb7e323a32b | Java | ratodapexte/reav | /src/Main.java | UTF-8 | 1,412 | 3.421875 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
ArrayList<User> listOfUser = new ArrayList<User>();
ArrayList<Research> listOfResearch = new ArrayList<Research>();
ArrayList<Publication> listOfPublication = new ArrayList... | true |
ee9e2cb0a79df818a5f0462b68435f142c7dc0b6 | Java | ameedf/android-with-db | /app/src/main/java/com/ameed/firstdb/events/EventsDao.java | UTF-8 | 1,841 | 2.703125 | 3 | [] | no_license | package com.ameed.firstdb.events;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
import static com.ameed.firstdb.events.Event.TABLE_NAME;
... | true |
33b4e76de4f338e1a3520b770713a57e577aa515 | Java | JaviKo500/git-spring-boot | /src/main/java/com/example/rest/Rest/RestPerfilesController.java | UTF-8 | 2,477 | 2.265625 | 2 | [] | no_license | package com.example.rest.Rest;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.spring... | true |
fd11e40c3dad0f76be221166d108f900352fd1d6 | Java | libolf/AndroidCode | /Coder/src/main/java/com/libok/androidcode/service/MessengerService.java | UTF-8 | 1,020 | 2.421875 | 2 | [] | no_license | package com.libok.androidcode.service;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
import android.util.Log;
public class MessengerService extends Service {
private static final String TAG ... | true |
f7c9c3e3be1d3b0fc5c812c81bd7c74e9a32443b | Java | Simnbf/MediaMgr | /src/main/java/com/sbf/MediaManager/ListFiles.java | UTF-8 | 592 | 2.859375 | 3 | [] | no_license | package com.sbf.MediaManager;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;
public class ListFiles {
// Uses Files.walk method
public static List<... | true |
53fbe4064d41b71ff1431fa385acdf00994cd365 | Java | JorgeHernandezRamirez/SpringBootCache | /src/main/java/com/jorgehernandezramirez/spring/cache/ehcache/controller/CacheController.java | UTF-8 | 1,606 | 2.640625 | 3 | [] | no_license | package com.jorgehernandezramirez.spring.cache.ehcache.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org... | true |
f3779ad21d2b91bef511178dc290903cda7f5767 | Java | a-x7/Online-alumni-book | /tongxuelu/tongxuelu/src/com/dao/TZhaopianDAO.java | UTF-8 | 4,219 | 2.453125 | 2 | [] | no_license | package com.dao;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import com.model.TZhaopian;
/**
* ... | true |
0c47faa63477e51c3eda25e20a9bde893b21d9ca | Java | DiNoWaR/InterviewCoding | /java/src/main/java/com/denis/interview/util/ListGenerator.java | UTF-8 | 919 | 3.21875 | 3 | [] | no_license | package com.denis.interview.util;
import java.util.Random;
/**
* Util class to generate sample linked list
*/
public class ListGenerator {
public static ListNode generateList(int from, int lenght, boolean sorted) {
Random random = null;
var firstNumber = from;
if (!sorted) {
... | true |
bf4b9587a91569a328ae9493d2493fecd328b718 | Java | McGars/SympleEmoji | /app/src/main/java/com/gars/simpleemoji/MainActivity.java | UTF-8 | 1,011 | 2.3125 | 2 | [] | no_license | package com.gars.simpleemoji;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import com.gars.emoji.library.PopupEmoji;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extends AppCompatActivity implemen... | true |