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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
37fba37ea3f325e886b2abc2a04b582bfb280021 | Java | Avanthi-Nannapaneni/My-Programs-Avanthi | /Service/Service/src/com/pavan/service/MainActivity.java | UTF-8 | 965 | 2.234375 | 2 | [] | no_license | package com.pavan.service;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MainActivity extends Activity {
Button start,stop;
@Override
protected void onCreate(Bundl... | true |
40c3a509c7b2867b389f976313855e01094abcd1 | Java | Dabrown18/java_algorithms | /src/ClassDataArray.java | UTF-8 | 1,206 | 3.3125 | 3 | [] | no_license | public class ClassDataArray {
private Person[] a;
private int nElems;
public ClassDataArray( int max ) {
a = new Person[max];
nElems = 0;
}
public Person find( String searchName) {
int j;
for ( j = 0; j < nElems; j++ ) {
if (a[j].getLastName().equals(se... | true |
092289aeb5592092e9ecfc5adc59c8ed49c95acb | Java | leequada/AppMp3 | /Mp3App/app/src/main/java/com/example/mp3app/Controller/Adapter/AlbumAdapter.java | UTF-8 | 1,882 | 2.296875 | 2 | [] | no_license | package com.example.mp3app.Controller.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerV... | true |
9b1519411d8f42df4732d4295d507146fd308d04 | Java | tectronics/assimilation | /redmart/wms/wms-delivery-web/src/main/java/com/redmart/wms/delivery/web/model/Account.java | UTF-8 | 479 | 1.929688 | 2 | [] | no_license | package com.redmart.wms.delivery.web.admin.model;
public class Account {
private String slot;
private String limit = "20";
private String date;
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public String getLimit() {
return limit;
}
public void s... | true |
ba936cd782a94a29c3ec7002aa07de677794f067 | Java | ccduisburg/javakursu | /java_/Tag 13/Kunde [3].java | UTF-8 | 860 | 2.65625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sammlungen;
/**
*
* @author Sanne
*/
public class Kunde {
private String name;
private double rechnung... | true |
fe069b5fed27579a253df65f5b06738cfedc7db8 | Java | broomy1999/D4RSPS | /src/main/java/com/cryobot/commands/impl/UtilityCommands.java | UTF-8 | 7,073 | 2.6875 | 3 | [
"MIT"
] | permissive | package com.cryobot.commands.impl;
import com.cryobot.DiscordBot;
import com.cryobot.db.impl.AccountConnection;
import com.cryobot.entities.Command;
import com.cryobot.entities.Game;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.TextChannel;
... | true |
1d0b54e45e69c56dc36a835e9f88e01dcaeb29ab | Java | webdizz/clt | /gwt-chrome-bridge/src/main/java/com/google/gwt/chrome/crx/client/ExtensionScript.java | UTF-8 | 842 | 2.171875 | 2 | [] | no_license | /**
*
*/
package com.google.gwt.chrome.crx.client;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* {@link ExtensionScript} is a peace of <code>head</code> ... | true |
a58a77a3d0f89742a0250615b0ead5762ced1ad8 | Java | HigorAlmeidaGomes/JavaWeb | /Aula2611/src/com/web/controller/LivroMB.java | UTF-8 | 902 | 2.21875 | 2 | [] | no_license | package com.web.controller;
import java.util.ArrayList;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import com.web.model.Livro;
@RequestScoped
@ManagedBean(name = "livroMB")
public class LivroMB {
private Livro livro;
ArrayList<Livro> listarLiv... | true |
2dd7ee19ddf3e72872d176a7e830c0297ad385d6 | Java | 517520/Sports | /app/src/main/java/com/example/user/sports/model/jsonModel/Json_5_detail.java | UTF-8 | 2,030 | 2.25 | 2 | [] | no_license | package com.example.user.sports.model.jsonModel;
/**
* 我的界面中,获取我的信息
*/
public class Json_5_detail {
private String phoneNumber;
private String icon;
private String nickname;
private int continueSignDay;
private int sex;
private String birthday;
private Float weight;
private int heigh... | true |
02b80a76159493518e2797d9e16409445d1132f1 | Java | CDE20/MFPE_Projects | /POD1/processPensionMicroservice/src/test/java/com/processPensionMicroservice/ProcessPensionMicroserviceApplicationTests.java | UTF-8 | 1,641 | 2.03125 | 2 | [] | no_license | package com.processPensionMicroservice;
import java.io.IOException;
import java.text.ParseException;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import com.processPensionMicroservice.exception.NotFoundException;
import com.processPensionMicroservice.model.Bank;
imp... | true |
8f6b10c76edb774b329bed4fabf29329eb243546 | Java | michaelisvy/michael-training-samples | /src/main/java/config/xml/spel/SpelTest.java | UTF-8 | 924 | 2.265625 | 2 | [] | no_license | package config.xml.spel;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SpelTest {
private final String CONFIG_P... | true |
9f806771a2ee552db3cb581729edce70219b27d6 | Java | satheyogesh/schooladmin | /src/main/java/App/controller/StudentController.java | UTF-8 | 2,532 | 2.15625 | 2 | [] | no_license | package App.controller;
import java.text.ParseException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import o... | true |
6bd584a5eabd3acf0381e8ca14b1904431c3b9fb | Java | dtom7/design-patterns | /design-patterns/src/com/example/abstractfactory/interfaces/AbstractVehicleFactory.java | UTF-8 | 184 | 2.4375 | 2 | [] | no_license | package com.example.abstractfactory.interfaces;
public interface AbstractVehicleFactory {
public Body createBody();
public Chassis createChassis();
public Window createWindow();
}
| true |
84c40b750af6aaf6e7a19693ab850aacc925dffe | Java | fharenheit/lexical-analzyer-mapreduce | /src/main/java/org/snu/ids/ha/ma/Morpheme.java | UTF-8 | 9,426 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | /**
* <pre>
* </pre>
*
* @author therocks
* @since 2007. 6. 3
*/
package org.snu.ids.ha.ma;
import java.util.ArrayList;
import org.snu.ids.ha.constants.POSTag;
import org.snu.ids.ha.constants.Symbol;
import org.snu.ids.ha.util.Util;
/**
* <pre>
* 형태소 정보를 가지는 Class
* 형태소, + 부가 class 정보 가짐
* string : 형태소 정... | true |
77ca08550c6e3efe936617c9cce970e5c0495c27 | Java | shobhit-bhardwaj/JavaSamples | /src/com/javaBasics/ConvertArrayToStream.java | UTF-8 | 389 | 3.203125 | 3 | [] | no_license | package com.javaBasics;
import java.util.Arrays;
import java.util.stream.Stream;
public class ConvertArrayToStream {
public static void main(String[] args) {
String[] fruits = {"Apple", "Mangoes", "Banana", "Orange", "Kiwi"};
Stream<String> stream = Arrays.stream(fruits);
// Stream<String> stream = ... | true |
bc4baff3c5632f66e4338df3840a27a217598da5 | Java | fanglingyu/pingtech | /pingtech/src/main/java/com/pingtech/hgqw/module/offline/sxtgl/entity/Sxtgl.java | UTF-8 | 1,979 | 2.109375 | 2 | [] | no_license | package com.pingtech.hgqw.module.offline.sxtgl.entity;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
* @title Sxtgl.java
* @description 摄像头概要信息模型
* @author zhaotf
* @company PingTech
* @date 2013-10-18 下午5:41:14
* @version V1.0
* @Copyright(c)2013
*/
@DatabaseTab... | true |
6c996ceac5b2e1f9c9d33a70e4aeea60c37c4300 | Java | gsjunior86/compositePlugin | /src/br/geraldo/composite/ui/CompositeTab.java | UTF-8 | 7,889 | 1.992188 | 2 | [] | no_license | package br.geraldo.composite.ui;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.ecli... | true |
7fbbd4ed40182083b13139aba38be3f46dd85401 | Java | RasmusAlbrektsen/CastleEscape | /src/castleescape/data/LevelDataStorage.java | UTF-8 | 3,983 | 3.125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package castleescape.data;
import castleescape.business.framework.Configuration;
import castleescape.business.framework.Room;
... | true |
c353f1417d379985bc221b10588c72c7d845cd5a | Java | Thiagorapparine/SmartHealthControl | /src/main/java/com/smc/saude/service/ExamesAgendaService.java | UTF-8 | 1,419 | 2.359375 | 2 | [] | no_license | package com.smc.saude.service;
import com.smc.saude.domain.ExamesAgenda;
import org.springframework.data.domain.Pageable;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* Service Interface for managing {@link ExamesAgenda}.
*/
public interface ExamesAgendaService {
/**
* Save a... | true |
8864df054c286dd82789d0def4cee784c744dacc | Java | brayJava/bray | /mapper/src/main/java/com/whiteplanet/mapper/DoctorPhoneMapper.java | UTF-8 | 3,392 | 2.140625 | 2 | [] | no_license | package com.whiteplanet.mapper;
import com.whiteplanet.mapper.model.DoctorPhone;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;
import java.util.List;
public interface DoctorPhoneMapper {
@Delete({
"delete from doctor_phone",
"where id = #{id,jdbcType=VARCHAR}"
... | true |
1deae223469cd50e60da8e588cf358e0e7422fac | Java | LuckSiege/PictureSelector | /compress/src/main/java/top/zibin/luban/io/LruArrayPool.java | UTF-8 | 8,564 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package top.zibin.luban.io;
import android.annotation.SuppressLint;
import android.util.Log;
import java.util.HashMap;
import java.util.Map;
import java.util.NavigableMap;
import java.util.TreeMap;
/**
* @author:luck
* @date:2021/8/26 3:15 下午
* @describe:LruArrayPool
*/
public final class LruArrayPool implements... | true |
f9f759963a6c2cdffe857e463eac4485592d841f | Java | TheWizard91/Album_base_source_from_JADX | /sources/p019io/reactivex/internal/operators/flowable/FlowableDelay.java | UTF-8 | 4,354 | 2.28125 | 2 | [] | no_license | package p019io.reactivex.internal.operators.flowable;
import java.util.concurrent.TimeUnit;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Subscription;
import p019io.reactivex.Flowable;
import p019io.reactivex.FlowableSubscriber;
import p019io.reactivex.Scheduler;
import p019io.reactivex.internal.s... | true |
62bd37cbdd194bc5447b68c8282315a9b993fcc0 | Java | dsaliba/BuildingGame | /src/UI/Music.java | UTF-8 | 1,112 | 2.328125 | 2 | [] | no_license | package UI;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.swing.JOptionPane;
import javafx.scene.media.Media;
import javafx.scene.media.Med... | true |
cad2f31a243c1094329bef9fbd9f75a5bf8adac9 | Java | kamalshree/Sandwich-project | /app/src/main/java/com/udacity/sandwichclub/utils/JsonUtils.java | UTF-8 | 1,807 | 2.734375 | 3 | [] | no_license | package com.udacity.sandwichclub.utils;
import com.udacity.sandwichclub.model.Sandwich;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
public class JsonUtils {
public static final String NAME = "name";
public static f... | true |
739062293dc8c2fc71f73c56276351d5f1f66c47 | Java | dxlove/springmvc-public | /src/main/java/com/sheyla/springmvc/config/asyn/AsyncConfiguration.java | UTF-8 | 1,646 | 2.515625 | 3 | [] | no_license | package com.sheyla.springmvc.config.asyn;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.we... | true |
106afa7e8726cb45222886dafe871bb2146748fa | Java | keerthidl/Java-BDA-court-cases | /notofication-module-master/notofication-module-master/notification-services/src/main/java/com/personal/notifiction/service/service/MessageFormatRepository.java | UTF-8 | 467 | 1.804688 | 2 | [] | no_license | package com.personal.notifiction.service.service;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import java.util.Optional;
/**
*
* @author dvsnk
*
*/
public interface MessageFormatRepository extends CrudRepository<MessageFormat, Long> {
/**
* find by method
*/
Optio... | true |
67820fca7cf1b25c11d8120f26ca1ae3a2cda305 | Java | netnook/repeg | /src/jmh/java/net/netnook/repeg/examples/calculator/CalculatorPerformance.java | UTF-8 | 948 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | package net.netnook.repeg.examples.calculator;
import java.util.concurrent.TimeUnit;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.Warmup;
import net.... | true |
e1894ebcf6af4c9b56ecdaf77bcf9f3adad74c78 | Java | bookingnet/booking | /src/net/cbtltd/client/field/slider/RangeSlider.java | UTF-8 | 2,427 | 2.953125 | 3 | [] | no_license | /**
* @author Bess Siegal, CBT Limited, London, UK
* @
* @version 4.0.0
*/
package net.cbtltd.client.field.slider;
import com.google.gwt.json.client.JSONBoolean;
import com.google.gwt.json.client.JSONObject;
/** The Class RangeSlider is a convenient sub class of Slider for ranges. */
public class RangeSlider exte... | true |
a9e5bd9e4a7e3d05fd72d7694a7d517d7c3378c3 | Java | kukubear/java | /04/day_0801/Reservation.java | UHC | 6,006 | 3.53125 | 4 | [] | no_license | package day_0801;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Scanner;
public class Reservation {
private String name;// ̸
private HashMap<String, Seats> reserveInfo = new HashMap(); // s,a,b¼ 10
Reservation(String name, HashMap reserveInfo)
{
this.name=name;
this.reserveIn... | true |
688ccf68646a798ca6820d033cbecb851e18c5a9 | Java | wrpys/csdn-blog-spring-code | /spring-boot-sample/src/main/java/com/wrpys/sb/common/GlobalExceptionHandler.java | UTF-8 | 2,007 | 2.265625 | 2 | [] | no_license | package com.wrpys.sb.common;
import com.wrpys.sb.exception.MyCheckedException;
import com.wrpys.sb.exception.MyUnCheckedException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.web.HttpRequestMethodNotSupp... | true |
ff939950f2e72cf87724749d6da9d0902866a030 | Java | 759796385/spring-leanring-demo | /spring-learning-demo/src/main/java/com/newtonk/annotation/MyTest.java | UTF-8 | 774 | 2.765625 | 3 | [] | no_license | package com.newtonk.annotation;
import java.lang.reflect.Field;
/**
* Created by newtonk on 2016/11/19.
*/
public class MyTest {
@Try(color="白色")
private static String color;
public static void main(String[] args) throws Exception {
Class c = Class.forName("com.newtonk.annotation.MyTest");
// ... | true |
a573daa216716f7fe4e2bc6a568d3fd0f32e43f6 | Java | Joseluises/Municipal | /src/com/sistemas/municipal/actions/searchExcludingDeletedAction.java | UTF-8 | 1,002 | 2.15625 | 2 | [] | no_license | package com.sistemas.municipal.actions;
import java.util.Map;
import javax.ejb.ObjectNotFoundException;
import org.openxava.actions.SearchByViewKeyAction;
public class searchExcludingDeletedAction extends SearchByViewKeyAction{
private boolean isDeletable(){
return getView().getMetaModel().containsMetaProperty("... | true |
357058fb73e510c410dbdc2a369382b712b03748 | Java | akifkartal03/Data-Structures-with-Java | /HW4-Stack-Infix,Postfix-Dequeue,Recursion/Q2-Dequeue/src/com/Akif/MyDeque.java | UTF-8 | 13,137 | 3.734375 | 4 | [] | no_license | package com.Akif;
import java.util.*;
/***
* This class is implementation of Deque class which implements Deque interface
* and extends from AbstractCollection Class .
* It uses DoubleLinkedList class references to keep data.
* @see DoubleLinkedList
* @param <E> Type of the list
*/
@SuppressWarnings("unchecked"... | true |
bc0bd389b7ddd9fecb945dd7326876883cebfcf3 | Java | Hackerjef/SimplePets | /v1_11_R1/src/main/java/simplepets/brainsynder/nms/v1_11_R1/entities/list/EntityVillagerPet.java | UTF-8 | 1,946 | 2.265625 | 2 | [] | no_license | package simplepets.brainsynder.nms.v1_11_R1.entities.list;
import net.minecraft.server.v1_11_R1.DataWatcher;
import net.minecraft.server.v1_11_R1.DataWatcherObject;
import net.minecraft.server.v1_11_R1.DataWatcherRegistry;
import net.minecraft.server.v1_11_R1.World;
import simple.brainsynder.nbt.StorageTagCompound;
im... | true |
87a5f5a0345b4b9520ff6bbf22eeb9d1fe7d660f | Java | janmortenk/oo2020 | /w08_alamklassid/Square.java | UTF-8 | 182 | 2.90625 | 3 | [] | no_license | public class Square extends Shape {
double a;
public Square(double a) {
this.a = a;
}
@Override
public double getCircum() {
return 4*a;
}
} | true |
6c322af58b594a2df8b821c685d7b2a7d6ad4165 | Java | enosent/algorithms | /test/ihseo/CheckTheCheckTest.java | UTF-8 | 2,308 | 3.125 | 3 | [] | no_license | package ihseo;
import programming.CheckTheCheck;
/**
* Created with IntelliJ IDEA.
* User: enosent7
* Date: 13. 5. 11.
* Time: 오전 10:41
* To change this template use File | Settings | File Templates.
*/
public class CheckTheCheckTest {
public static void main(String[] args) {
// black : 소문자, white... | true |
42ab84351477c918953cce6efc8e52fc5e32567f | Java | Kolesila88/SkillBox | /08_Strings/PhoneCleaner/src/main/java/cleaner/PhoneCleaner.java | UTF-8 | 1,551 | 3.1875 | 3 | [] | no_license | package cleaner;
import message.Message;
import regex.RegEx;
public class PhoneCleaner {
private static final byte ZERO = 0;
private static final byte ONE = 1;
private static final byte PHONE_LENGTH = 11;
private static final byte PHONE_NUMBER_LENGTH_WITHOUT_COUNTRY_CODE = 10;
private static final String ... | true |
e2a70d2519fe724bd31da2c1c54cdfd9a69c9c95 | Java | bhanusil/UserManagement | /src/main/java/com/moneylion/usermanagement/dao/impl/FeatureDaoImpl.java | UTF-8 | 1,310 | 2.125 | 2 | [] | no_license | package com.moneylion.usermanagement.dao.impl;
import com.moneylion.usermanagement.dao.FeatureDao;
import com.moneylion.usermanagement.model.Feature;
import com.moneylion.usermanagement.model.User;
import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Reposit... | true |
99435d10aeed1d628d1b9b9b586715383dde6608 | Java | bhabani-m1989/FASTV1 | /src/test/java/messages/SlackPost.java | UTF-8 | 2,806 | 2.234375 | 2 | [] | no_license | package messages;
import static io.restassured.RestAssured.given;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.restassured.RestAssured;
import io.restassured.path.json.JsonPath;
import io.restassured.... | true |
d2e0923bb4f0a49cbd9fcd23e2833eb7c87dea9a | Java | QiMu7n/- | /app/src/main/java/com/example/afalse/bjnews/MainPresenter.java | UTF-8 | 790 | 2.125 | 2 | [] | no_license | package com.example.afalse.bjnews;
import com.example.afalse.base.BasePresenter;
import com.example.afalse.base.ModelManager;
public class MainPresenter extends BasePresenter<MainView> {
public void translate(String doctype,String type,String i){
MainModel model= ModelManager.getInstance().getModel(MainMo... | true |
106bbb550f1dbf9fb4a2ff8290ad9d99367d2d2f | Java | Tracy02022/Poly_Thinking | /leetcode/TrappingRainWater.java | UTF-8 | 1,185 | 3.46875 | 3 | [] | no_license | /**
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain wat... | true |
a4dbfd38bc84700e5d1662469104bbb6dfd0d393 | Java | eignatik/petpool | /src/main/java/com/petpool/interfaces/auth/facade/AuthFacade.java | UTF-8 | 1,579 | 2.609375 | 3 | [] | no_license | package com.petpool.interfaces.auth.facade;
import java.util.Optional;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.http.HttpHeaders;
/**
* Represents the business logic of the auth flow.
*
* <p>Provides with all common methods to describe business processes regarding auth relat... | true |
127613b81308ccb987537bd149803ba918d2d675 | Java | NaveenBass/java-programs | /Ss.java | UTF-8 | 7,081 | 2.578125 | 3 | [] | no_license | package naveen;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.ListModel;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JRadioButton;
import javax.swing... | true |
9261815df8c4b27f5e8c9cff135dea3eb0a7b2aa | Java | xKVSx/Android-Developer-Nanodegree | /app/src/main/java/android/csulb/edu/popularmoviesstage1/adapters/TrailerAdapter.java | UTF-8 | 2,960 | 2.484375 | 2 | [] | no_license | package android.csulb.edu.popularmoviesstage1.adapters;
import android.content.Context;
import android.csulb.edu.popularmoviesstage1.R;
import android.csulb.edu.popularmoviesstage1.Trailer;
import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.v... | true |
c2dfe87d48d126ea001bd8751a1f69644e646483 | Java | PaulMing/javastudy | /java基础1/8.类/2.三大特性/2.继承/Cat.java | UTF-8 | 241 | 3.265625 | 3 | [] | no_license | public class Cat extends Animal {
public double weight;
public void run() {
super.name;
super.age;
}
public Cat() {};
public Cat(String name, int age; double weight) {
super(name,age);
this.weight = weight;
}
} | true |
a4c2a59ef9f396e37e36a28884a93c302f842bdb | Java | AdeebaKhani190626/Testing-Account-Management | /src/test/java/SavingAccountTest.java | UTF-8 | 4,595 | 2.84375 | 3 | [] | no_license | import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import BMS.SavingAccount;
public class SavingAccountTest {
private SavingAccount ObjectSaving;
private SavingAccount ObjectSaving2;
@Before
public void setUp() throws Exception {... | true |
8e7d31da178b132ed2ae42c5b8f22e5b3e59b18d | Java | SpikeLavender/service-manager | /src/main/java/com/chinamobile/demo/service/OrderManageService.java | UTF-8 | 3,982 | 2.203125 | 2 | [] | no_license | package com.chinamobile.demo.service;
import com.alibaba.fastjson.JSONObject;
import com.chinamobile.demo.entities.ActiveInfo;
import com.chinamobile.demo.entities.CommonEnums.OrderStatusEnum;
import com.chinamobile.demo.entities.CommonEnums.ActiveStatusEnum;
import com.chinamobile.demo.entities.DemoException;
import... | true |
c06fc5fff139b2c6a652162a5a94b2cad6131683 | Java | sahiljain11/Emacs-Setup | /elpa/jdee-server-master/src/main/java/jde/util/MultiValueMap.java | UTF-8 | 2,602 | 3.265625 | 3 | [
"MIT"
] | permissive | package jde.util;
import java.util.*;
/**
* A HashMap subclass which adds multiple values with the same key to
* a List of values. Single values remain single keys, obviating the
* need to cart around single-element Lists.
*
* Copyright (C) 2001 Eric D. Friedman (eric@hfriedman.rdsl.lmi.net)
*
* This program ... | true |
bb15f0760fcdfb95db4ec8316bb52c77914e33a2 | Java | Gekter/OOP_lab5 | /src/lab5/MyTableModel.java | UTF-8 | 2,172 | 3.09375 | 3 | [] | no_license | package lab5;
import lab5.data.Corvette;
import lab5.data.Fleet;
import lab5.data.Sailboat;
import lab5.data.Steamboat;
import javax.swing.table.AbstractTableModel;
public class MyTableModel extends AbstractTableModel {
private static Fleet data;
public MyTableModel(Fleet fleet){
this.data = fleet;... | true |
91c34e529702350291bb7223328d2bddaafbc650 | Java | opcs/LetsCode | /src/com/java8/venkat/stream/AvgOfIntArr_6.java | UTF-8 | 300 | 3.5625 | 4 | [] | no_license | package com.java8.venkat.stream;
import java.util.Arrays;
public class AvgOfIntArr_6 {
public static void main(String[] args) {
// 5. average of square of an int array
Arrays.stream(new int[] {2,4,6,8,10})
.map(x->x*x)
.average()
.ifPresent(System.out::println);
}
}
| true |
9a36bfc975842bd2afc1013faaea5fb0f35b332c | Java | cardioid1996/dataStructure | /src/com/ds/algorithms/JZOffer/Q8_NextNodeInBinaryTree.java | UTF-8 | 906 | 3.359375 | 3 | [] | no_license | package com.ds.algorithms.JZOffer;
import com.ds.algorithms.tree.TreeNode;
public class Q8_NextNodeInBinaryTree {
/** 找到二叉树中序遍历下,某个结点的后继结点 **/
public static TreeNode findNext(TreeNode node){
if(node == null)
return null;
TreeNode help = new TreeNode(0);
if(node.right != ... | true |
38abcb445b50e550d97d82d9b38144db9c449fed | Java | manojk6/RefinitivPoc | /RefinitivPoc/src/main/java/com/app/controller/AppController.java | UTF-8 | 3,598 | 2.359375 | 2 | [] | no_license | package com.app.controller;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web... | true |
2462b753c6bb892c9784b03a778da4a8d27fd4f3 | Java | bellmit/crmtest | /src/java/com/trilogy/app/crm/move/processor/account/AccountUpdateMoveProcessor.java | UTF-8 | 5,774 | 2.015625 | 2 | [] | no_license | /*
* This code is a protected work and subject to domestic and international
* copyright law(s). A complete listing of authors of this work is readily
* available. Additionally, source code is, by its very nature, confidential
* information and inextricably contains trade secrets and other information
* pr... | true |
ab78507b6b5ead6ae2f09801a2033cfe080305ef | Java | thadeus47/JavaRmi-JavaFx_Labs | /hotel/Server.java | UTF-8 | 1,058 | 3 | 3 | [] | no_license | //server code
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.RemoteException;
public class Server extends HotelFX {//creating a server class that extends the fx class
public Server(){}
public static void main(Strin... | true |
6c91ef1a3d57b7c139805a3d987f7129ff793f5d | Java | mikolajgucki/ae-engine | /studio/plugins/ui.common/src/main/java/com/andcreations/ae/studio/plugins/ui/common/blinker/BlinkerTask.java | UTF-8 | 194 | 1.679688 | 2 | [
"MIT"
] | permissive | package com.andcreations.ae.studio.plugins.ui.common.blinker;
/**
* @author Mikolaj Gucki
*/
public interface BlinkerTask {
/** */
void on();
/** */
void off();
} | true |
fc1ea530a3e9c7fa22ef15187ec78ba651e73577 | Java | Cla1ty/Learn_Dagger | /app/src/main/java/com/kristal/dagger/ui/activity/ActivityModule.java | UTF-8 | 642 | 2.046875 | 2 | [] | no_license | package com.kristal.dagger.ui.activity;
import com.kristal.dagger.di.AppObject;
import dagger.Module;
import dagger.Provides;
/**
* Created by Kristal on 10/1/17.
*/
@Module
public class ActivityModule {
@Provides
ActivityPresenterProvider provideActivityPresenterProvider(){
return new ActivityPre... | true |
2768b3f81a4d2606230e195c17f7b27b3c168a41 | Java | goncalvesmail/archeionwebsrh | /ArcheionWebSrh/ArcheionPersistencia/src/br/com/archeion/persistencia/local/LocalDAO.java | ISO-8859-1 | 782 | 2.34375 | 2 | [] | no_license | package br.com.archeion.persistencia.local;
import java.util.List;
import br.com.archeion.modelo.empresa.Empresa;
import br.com.archeion.modelo.local.Local;
import br.com.archeion.persistencia.GenericDAO;
/**
* Classe reponsvel pelo pela manuteno de Locais.
*
* @author SInforme
*/
public interface ... | true |
851de1b517b9c80b1411dcc3277f9fc55c287ecf | Java | Joe-Demp/FYP-MEC-Framework | /Orchestrator/src/main/java/service/orchestrator/nodes/ServiceNode.java | UTF-8 | 5,785 | 2.484375 | 2 | [] | no_license | package service.orchestrator.nodes;
import org.java_websocket.WebSocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import service.core.NodeInfo;
import java.net.InetAddress;
import java.net.URI;
import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.DoubleStream... | true |
c6065b156bb0313629954056afb3c399e4a6abea | Java | hjyoon1120/NewsMon | /src/main/java/com/newsmon/service/SportsNewsService.java | UTF-8 | 653 | 1.570313 | 2 | [] | no_license | package com.newsmon.service;
import java.util.List;
import com.newsmon.domain.Criteria_ten;
import com.newsmon.domain.SportsNewsVO;
public interface SportsNewsService {
public void register(SportsNewsVO vo) throws Exception;
public SportsNewsVO today() throws Exception;
public SportsNewsVO read(Integer sno)... | true |
1612813cab1686b8e85a72c4572d7027aa709358 | Java | Jsorgensen/Control4WeatherApp | /app/src/main/java/jsorgensen/com/control4weatherapp/Models/Rain.java | UTF-8 | 1,348 | 2.6875 | 3 | [] | no_license | package jsorgensen.com.control4weatherapp.Models;
import android.os.Parcel;
import android.os.Parcelable;
import org.json.JSONObject;
public class Rain implements Parcelable{
public Rain(JSONObject json){
extractJSON(json);
}
public Double last3HoursRainFall;
private void extractJSON(JSON... | true |
0d0f24d9c909d95f736740371e9d498042c5314f | Java | southerlyfd/lmjr_pmpt | /src/main/java/com/pmpt/entities/AuctionBill.java | UTF-8 | 6,603 | 2.0625 | 2 | [] | no_license | /**
*
*/
package com.pmpt.entities;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.per... | true |
392c15eca7a5be8d1356b4c55b9b43a8fad6e317 | Java | Symbolk/RPCKafka | /Kafka/producerServer/producerServer.java | UTF-8 | 3,254 | 2.546875 | 3 | [] | no_license | import java.io.IOException;
import org.acplt.oncrpc.OncRpcException;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.ProducerRecord;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
/**
* RPC server f... | true |
03e24ea6c5731b4c3b20311d0d182ed00eca5003 | Java | sjtudclab/community-server | /src/main/java/cn/edu/sjtu/se/dclab/server/controller/rest/PaymentController.java | UTF-8 | 1,615 | 1.921875 | 2 | [] | no_license | package cn.edu.sjtu.se.dclab.server.controller.rest;
import cn.edu.sjtu.se.dclab.server.common.Constants;
import cn.edu.sjtu.se.dclab.server.entity.Payment;
import cn.edu.sjtu.se.dclab.server.service.PaymentService;
import cn.edu.sjtu.se.dclab.server.transfer.PaymentMerchantTransfer;
import cn.edu.sjtu.se.dclab.... | true |
cb8d6b826b21ab8040ef56e7cf56c6d32778f451 | Java | mbochomo/porra_futmondo | /src/java/es/porrafutmondo/badajoz/Jornada.java | UTF-8 | 1,023 | 2.59375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package es.porrafutmondo.badajoz;
/**
* Clase auxiliar para obtener el número de la jornada actual y si está o no
* finalizada.
* @... | true |
4ed462f331b8f47126bfa8799374ebd768f78bd7 | Java | ehrbase/openEHR_SDK | /client/src/main/java/org/ehrbase/openehr/sdk/client/openehrclient/ContributionChangeType.java | UTF-8 | 1,241 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2022 vitasystems GmbH and Hannover Medical School.
*
* This file is part of project openEHR_SDK
*
* 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
*
* https://www... | true |
a04bc811d8bb40c48e4970017fa33101ed355a6c | Java | Supreme-Chandru/Personal-Collection-Manager | /Sdpproject5/src/sdpproject/ModifyController.java | UTF-8 | 1,196 | 2.53125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sdpproject;
/**
*
* @author Home
*/
class ModifyController {
Requirement modify(String modifyType, Phrase... | true |
54a1936d64dbf28120a6c59b568ff71461fed699 | Java | algorizum/solgitsolgit | /jungsol/dynamic_programming/Jumpgame.java | UTF-8 | 1,292 | 3.296875 | 3 | [] | no_license | package dynamic_programming;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Jumpgame {
static int board[][];
static int cache[][];
public static void main(String[] args) {
Jumpgame main = new Jumpgame();
Scanner scanner = new Scanner(System.in);
try {
sca... | true |
f6d0ee08ad6f09c70e8bb3b9d7d5e450b8c495b5 | Java | sakura-fly/schoolhelper | /src/main/java/com/schoolhepler/model/User.java | UTF-8 | 2,596 | 2.46875 | 2 | [] | no_license | package com.schoolhepler.model;
import jdk.nashorn.internal.objects.annotations.Property;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table()
public class User {
public User() {
}
public User(int id, String username, String acc, String wx, String qq, String phone, String name, Date time)... | true |
008634b962b41441e763aceff94b27f99a620823 | Java | Slugi/portfolioLabCharity | /src/main/java/pl/coderslab/charity/Entiy/Institution.java | UTF-8 | 488 | 2.015625 | 2 | [] | no_license | package pl.coderslab.charity.Entiy;
import lombok.Data;
import lombok.ToString;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.List;
@Entity
@ToString(exclude = "donations")
@Data
public class Institution {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
pri... | true |
bf6bc49329abcb66ca16418b80a6ff7bb722f70c | Java | panxinqi/GasManager | /src/com/gas/system/service/impl/UserServiceImpl.java | GB18030 | 4,603 | 2.46875 | 2 | [] | no_license | package com.gas.system.service.impl;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.gas.entity.User;
import com.gas.system.dao.IUserDAO;
import com.gas.system.dao.impl.UserDAOImpl;
import com.gas.system.service.IUserService;
import com.gas.utils.CostUtils;
import com.gas.u... | true |
7417af94678d2b79223ce2894b364a87e8c607e1 | Java | bin121500/MavenProject | /src/main/java/com/xiaobin/project/model/User.java | UTF-8 | 1,823 | 2.296875 | 2 | [] | no_license | package com.xiaobin.project.model;
public class User {
private int uid;
private String account;
private String pwd;
private String nickname;
private String regtime;
private int state;
private Order order;
public User(int uid,String account, String pwd, String nickname, String regtime,i... | true |
9a4b82cae028472fcbeef091a158d21751fc0695 | Java | Cheths/Gas-Pump-Application | /src/strategy/A10_b.java | UTF-8 | 605 | 2.921875 | 3 | [] | no_license | package strategy;
import datastore.DataStore;
/**
* STRATEGY PATTERN ELEMENT
* Concrete Strategy A10_b - For gas pump 2.
*
* This class implements A10 interface by overriding the abstract method with a specific strategy for GasPump2.
* @author cheth
*
*/
public class A10_b implements A10{
DataSt... | true |
68fc3179feb23763e7aed5803d0e0c9af6e5c0e5 | Java | hanbeen03/Begin_Java | /src/day04/loop/MyExercise01.java | UHC | 796 | 4.375 | 4 | [] | no_license | package day04.loop;
public class MyExercise01 {
public static void main(String[] args) {
/*
* ȭ鿡 1 10 ϶
* , for ̿϶..
*/
// 10, 20, 30, 40, 50
// for ̿Ѵ.
//7 10 ϶
/*
* 7
* 14
* 21
* 28
*/
// for(int i = 1; i <= 10; i++)
// {
// System... | true |
2cad4a9809fcc3440e65810ddd69e62a63aecfb4 | Java | TanyaTitushkina/lab7_cucumbertest | /src/test/java/controls/WebButton.java | UTF-8 | 187 | 2.078125 | 2 | [] | no_license | package controls;
import org.openqa.selenium.WebElement;
public class WebButton extends WebTypifiedElement {
public WebButton(WebElement element){
super(element);
}
}
| true |
2c2240f62d49e278707dc5f8c618f42dcb73845f | Java | xsshk/minglang.wr | /station-bundle-impl/src/main/java/com/taobao/cun/auge/dal/mapper/PartnerStationRelExtMapper.java | UTF-8 | 1,611 | 1.960938 | 2 | [] | no_license | package com.taobao.cun.auge.dal.mapper;
import java.util.List;
import java.util.Map;
import com.github.pagehelper.Page;
import com.taobao.cun.auge.dal.domain.PartnerInstance;
import com.taobao.cun.auge.dal.domain.ProcessedStationStatus;
import com.taobao.cun.auge.dal.example.PartnerInstanceExample;
import com.taobao.... | true |
05a8665b61310f880c3866b6cb17aa3a22d730f9 | Java | ifatoki/crossover | /src/main/java/com/company/resourceapi/config/ProjectConfig.java | UTF-8 | 686 | 1.929688 | 2 | [] | no_license | package com.company.resourceapi.config;
import java.util.Optional;
import com.company.resourceapi.repositories.ProjectSpecification;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springf... | true |
d47d46a7ff37e52ae4942db15666b79f7244a96b | Java | ijankovic47/pes-old | /src/main/java/konami/pes/services/ExhibitionService.java | UTF-8 | 361 | 1.90625 | 2 | [] | no_license | package konami.pes.services;
import java.util.List;
import konami.pes.domain.Exhibition;
import konami.pes.model.PlayerStats;
public interface ExhibitionService {
public boolean saveExhibition(Exhibition exhibition);
public List<Exhibition> getExhibitionsByPlayerId(Integer playerId,Integer count);
public PlayerS... | true |
0858ccc406fb0f3979fa63e2907a3a4f8adc0b07 | Java | LukasBroetje/testTestcontainers | /src/test/java/packagename/MyTest.java | UTF-8 | 574 | 1.929688 | 2 | [] | no_license | package packagename;
import static org.junit.Assert.assertTrue;
import org.junit.ClassRule;
import org.junit.Test;
import org.testcontainers.containers.DockerComposeContainer;
public class MyTest {
private static final String DOCKER_COMPOSE_PATH = "src/test/resources/docker-compose.yml";
@ClassRule
pub... | true |
b5ed94f9179ca449c67b63383ba418c8c74f23ae | Java | raviraghunath/DSA | /DSA/src/TreesAndGraphs/LongestConsecutiveBranch.java | UTF-8 | 1,592 | 3.625 | 4 | [] | no_license | package TreesAndGraphs;
public class LongestConsecutiveBranch {
public static void main(String[] args) {
BinaryTreeNode node1 = new BinaryTreeNode(1);
BinaryTreeNode node2 = new BinaryTreeNode(2);
BinaryTreeNode node3 = new BinaryTreeNode(3);
BinaryTreeNode node4 = new BinaryTreeNode(4);
BinaryTreeNode nod... | true |
d374afd8e06bd280e75b06aaeef50cadc3a36185 | Java | jcwitwicki/techdegree-project-04 | /src/main/java/com/teamtreehouse/blog/model/BlogEntry.java | UTF-8 | 2,414 | 2.84375 | 3 | [] | no_license | package com.teamtreehouse.blog.model;
import com.github.slugify.Slugify;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
public class BlogEntry {
private String slug;
private String title;
private String entry;
private String da... | true |
20390d367e020936dc42f6d194ee343a7a93c445 | Java | chrisderwahre/utils | /de/cdw/utils/listeners/leaveListener.java | UTF-8 | 605 | 2.390625 | 2 | [] | no_license | //////////////////////////////
/// Author: ChrisderWahre ///
////////////////////////////
package de.cdw.utils.listeners;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
import de.cdw.utils.cdwUtils;
public class leaveListener imp... | true |
0f37e97d454c09fd3a7454b16af7151008d4f943 | Java | Fruit-Basket/JMessageTest | /app/src/main/java/com/example/jiguang/jmessagetest/MessageManagement.java | UTF-8 | 9,627 | 2.53125 | 3 | [] | no_license | package com.example.jiguang.jmessagetest;
import android.util.Log;
import android.widget.TextView;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import cn.jpush.im.android.api.JMessageClient;
import cn.jpush.im.android.api.content.CustomContent;
import cn.jpush.im.android.api.content.Message... | true |
7a972ed8a1ffcea71b6fd4e744ecc141b6154d0a | Java | soroka-ihor/test-archetype | /src/main/java/com/training/interfaces/Generic.java | UTF-8 | 110 | 2.1875 | 2 | [] | no_license | package com.training.interfaces;
public interface Generic<K, V> {
public K getKey();
public V getValue();
} | true |
cf691bd96966fb1af5f5033ea893ba8b07a131ea | Java | ko-htut/mvp-magazine | /app/src/main/java/taiwan/no1/app/data/mapper/tv/TvEpisodeDetailMapper.java | UTF-8 | 4,051 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package taiwan.no1.app.data.mapper.tv;
import android.support.annotation.NonNull;
import com.innahema.collections.query.queriables.Queryable;
import java.util.Collections;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import taiwan.no1.app.data.entities.FilmCastsEntity;
import t... | true |
0203938cd2cafe7bbc2e8550d50b20efc03dc18a | Java | CHUNGCHUNG97/C0221G1-NguyenThiChung | /module3/12_JDBC_CRUD/exercise/gradle/src/main/java/model/service/service/ServiceServiceImpl.java | UTF-8 | 972 | 2.328125 | 2 | [] | no_license | package model.service.service;
import model.bean.Service;
import model.repository.service.ServiceRepository;
import java.util.List;
public class ServiceServiceImpl implements ServiceService {
ServiceRepository serviceRepository = new ServiceRepository();
@Override
public List<Service> findAll() {
... | true |
5291316f324cbb8cbdfbbbcff700ce116ba754c5 | Java | cristobalgomez/codingdojo | /java/POO/BankAccount/BankAccount.java | UTF-8 | 2,471 | 3.46875 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class BankAccount {
private final String accountNumber;
private double balance;
private double savingsBalance;
private static int numberOfAccounts = 0;
private static double bankFunds =... | true |
49e872d19701fdf63e5636b40fbcee4c835dce67 | Java | yaronro/MMU | /CacheUnitProject/src/main/java/com/hit/server/Request.java | UTF-8 | 673 | 2.390625 | 2 | [] | no_license | package com.hit.server;
import java.io.Serializable;
import java.util.Map;
import com.hit.dm.DataModel;
public class Request<T> implements Serializable {
private Map<String,String> headers;
private T body;
public Request(Map<String,String> headers, T body)
{
this.body=body;
this.headers = headers;
}
p... | true |
020119b9c9137a92016b100b376f54aa3ebc2205 | Java | NovakPerovic/Projekat1_Swing_MySqL | /src/forme/Edit_frame.java | UTF-8 | 19,409 | 2.203125 | 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 forme;
import customer.Customer;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPa... | true |
18edff7167a7c4fb686b1710f7b2472a5b6c2507 | Java | bloxmove-com/TOMP-REF | /tomp_ref/src/main/java/org/tomp/api/providers/regions/NoRegionProvider.java | UTF-8 | 548 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive | package org.tomp.api.providers.regions;
import java.util.ArrayList;
import java.util.List;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import io.swagger.model.SystemRegion;
@Component
@ConditionalOnProperty(value = "tomp.region-file... | true |
5912c0f5b22f756c0e6474c8059a9423bff23f29 | Java | itzshamnan/Capgemini_Training | /JavaAssignments/1.DataStructure/src/Q4_Marks.java | UTF-8 | 603 | 3.296875 | 3 | [] | no_license | import java.util.Scanner;
public class Q4_Marks {
public static void main(String[] args)
{
Scanner scan=new Scanner(System.in);
System.out.println("Enter three marks");
int m1= scan.nextInt();
int m2= scan.nextInt();
int m3= scan.nextInt();
if(m1>60 && ... | true |
677e8af0fd6c2958753fcd7beb932473754c5278 | Java | modie/backgammon_android | /src/com/gna/bstrds/backgammon/MainActivity.java | UTF-8 | 1,907 | 2.171875 | 2 | [] | no_license | package com.gna.bstrds.backgammon;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class MainActivity extends Activity {
EditTex... | true |
9a881db0f391ed0326efdeb69ff06021edb4283e | Java | LEEHOR/Carsuper | /app/src/main/java/com/carsuper/coahr/mvp/view/adapter/integralCenter/PointsAdapter.java | UTF-8 | 1,142 | 2.078125 | 2 | [] | no_license | package com.carsuper.coahr.mvp.view.adapter.integralCenter;
import android.annotation.SuppressLint;
import android.widget.TextView;
import com.carsuper.coahr.R;
import com.carsuper.coahr.mvp.model.bean.IntegralCenterBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.Base... | true |
650456322c4e86945fce0e261172c04c53a24aa6 | Java | xianCan/offerOfSword | /src/offerOfSword/Offer24.java | UTF-8 | 1,099 | 3.578125 | 4 | [] | no_license | package offerOfSword;
/**
* 从1 到 n 中1出现的次数
*/
public class Offer24 {
public int NumberOf1Between1AndN_Solution(int n) {
if(n<0)
return 0;
int count = 0;
//不完整阶梯段的1的个数
long numberOfOne;
for(long i=1;i<=n;i*=10){
long diviver = i*10;
//不完... | true |
c63e9992b35ba7067c46119dcd1bbdf87012d99c | Java | ifyousleep/Now-in-cinema | /app/src/main/java/com/ifyou/nowincinema/presentation/presenter/PosterPresenter.java | UTF-8 | 460 | 1.914063 | 2 | [] | no_license | package com.ifyou.nowincinema.presentation.presenter;
import com.ifyou.nowincinema.presentation.view.PosterView;
import com.arellomobile.mvp.InjectViewState;
import com.arellomobile.mvp.MvpPresenter;
@InjectViewState
public class PosterPresenter extends MvpPresenter<PosterView> {
public void hideProgressBar() {... | true |
58c22418a1c25396dc7c9efa9dca872c2e7e139f | Java | luciagdettler/Lab06 | /app/src/main/java/dam/isi/frsf/utn/edu/ar/laboratorio05c2016/dao/ProyectoDAO.java | UTF-8 | 12,083 | 2.09375 | 2 | [] | no_license | package dam.isi.frsf.utn.edu.ar.laboratorio05c2016.dao;
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 dam.isi.frsf.utn.edu.ar.labor... | true |
faa360ed90e345fc42bb81eeb0095c9e1c85d528 | Java | Whllo/HotelManage | /src/main/java/com/newer/hotelmanage/mapper/DeskbillDetailMapper.java | UTF-8 | 498 | 1.765625 | 2 | [] | no_license | package com.newer.hotelmanage.mapper;
import java.util.List;
import com.newer.hotelmanage.domain.DeskbillDetail;
import org.apache.ibatis.annotations.Param;
public interface DeskbillDetailMapper {
int deleteByPrimaryKey(Integer id);
int insert(DeskbillDetail record);
int insertSelective(DeskbillDeta... | true |
6f6a697d6db19605af6008354ca8cc04fc676c44 | Java | 280247489/demo | /src/com/memory/container/IndexFrame.java | UTF-8 | 11,779 | 2.171875 | 2 | [] | no_license | package com.memory.container;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.memory.db.Proxy;
import com.memory.db.Utils;
import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeNode;
import ... | true |
2072c409b8155595c614d3ca629f3e493f53b711 | Java | algos-soft/cinquestelle | /src/it/algos/base/matrice/MatriceBase.java | UTF-8 | 22,925 | 3.09375 | 3 | [] | no_license | /**
* Title: MatriceBase.java
* Package: it.algos.base.libreria
* Description:
* Copyright: Copyright (c) 2003
* Company: Algos s.r.l.
* @author Ceresa, Colombo, Valbonesi
* @version 1.0 /
* Creato: il 17 ottobre 2003 alle 15.35
*/
//--------------------------------------------------... | true |
a77b45e07e5073f31311c0e4cbd5f759f66ff18e | Java | dmcl-zju/mcloud | /src/main/java/com/zju/async/handler/ReportHandler.java | GB18030 | 1,684 | 2.109375 | 2 | [] | no_license | package com.zju.async.handler;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.zju.async.EventHandler;
import com.zju.async.EventModel;
import com.zju.async.EventType;
import com.zju.... | true |
fa9fda52e1ad3bf8f9c810e09e4f6d9cc771be09 | Java | FatherNelson/KingdomBoardGame | /src/Color.java | UTF-8 | 64 | 1.835938 | 2 | [] | no_license | public enum Color {
ORANGE,
BLUE,
BLACK,
WOOD
}
| true |