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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b97183167dd6e6ee5d4365a5099df07480780a65 | Java | antoniolazaro/RioPerfilAWS | /src/br/com/rio/app/riolegal/integracao/facebook/ConectorFacebook.java | MacCentralEurope | 1,195 | 2.609375 | 3 | [] | no_license | package br.com.rio.app.riolegal.integracao.facebook;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.net.URL;
import br.com.rio.app.riolegal.exception.AmbienteException;
public class ConectorFacebook {
public String obtemJsonRespostaFacebook(String urlDestino) {
try {
URL url = n... | true |
5f0b408c767458ff49c6fde7ec9db0012c391e5c | Java | kaylynnj13/CSE2 | /lab04/Cookies.java | UTF-8 | 3,011 | 3.875 | 4 | [] | no_license | // Kaylynn Johnson
// 2/13/2015
// lab04 Cookies
// This program will take input the user in the form of how many cookies they want,
// how may people they are buying for, and how many cookies they want each
// person to get. All inputs must be valid. Check to see if there are an even
// distribution ... | true |
a9bc9af8df92ed5ef663a52281b5fbce88706e9a | Java | loki19991/test | /src/main/java/com/lokesh/test/model/ErrorResponse.java | UTF-8 | 798 | 1.953125 | 2 | [] | no_license | package com.lokesh.test.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
i... | true |
02917740fd15e26a1cf7e1aa37ce7aa7a1aaadb4 | Java | Bearthethird/strixdroidshooter | /app/src/main/java/feltech/strixdroidshooter/constructs/domain/devicesetup/ImagingMode.java | UTF-8 | 710 | 2.65625 | 3 | [] | no_license | package feltech.strixdroidshooter.constructs.domain.devicesetup;
/**
* Serves to determine BPP (bytes-per-pixel) rate and identify interpretation strategy
*/
public enum ImagingMode {
GreyScale8,
GreyScale16,
RGB8,
RGB16;
public int getInt() {
switch (this) {
case RGB8: retur... | true |
cf62d9e1197caa03a1ebf9e3ce29be69fed976b3 | Java | kartavenkoyuriy/ocp | /src/main/java/chapter5/datesAndTimes/SavingTimeCommon.java | UTF-8 | 1,346 | 3.578125 | 4 | [] | no_license | package chapter5.datesAndTimes;
import java.time.Month;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import static java.time.temporal.ChronoUnit.HOURS;
public class SavingTimeCommon {
public static void main(String[] args) {
//saving time example
//a moment in spring when clock 1 hour... | true |
bb557892535117b94bf91fce41b95d5807c316ca | Java | fangchi/rest-ofc | /src/main/java/com/fc/resource/HBarChartResource.java | UTF-8 | 1,615 | 2.484375 | 2 | [] | no_license | package com.fc.resource;
import java.util.Date;
import jofc2.OFC;
import jofc2.model.Chart;
import jofc2.model.Text;
import jofc2.model.axis.XAxis;
import jofc2.model.elements.BarChart;
import jofc2.model.plugins.ValueElement;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
public class... | true |
7622ae44c17024635d479319a210f0a71c0f768d | Java | noelrmrz/PopularMovies | /app/src/main/java/com/noelrmrz/popularmovies/database/AddMovieViewModel.java | UTF-8 | 461 | 2.375 | 2 | [] | no_license | package com.noelrmrz.popularmovies.database;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import com.noelrmrz.popularmovies.movie.Movie;
public class AddMovieViewModel extends ViewModel {
private LiveData<Movie> movie;
public AddMovieViewModel(MovieDatabase database, int movieId... | true |
8ddb1f4a9f32d2a16e1df9f4a8a5fd93ec71122d | Java | ttruongcs/eMerMobile | /app/src/main/java/com/banvien/fcv/mobile/SurveyActivity.java | UTF-8 | 4,433 | 1.90625 | 2 | [] | no_license | package com.banvien.fcv.mobile;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.view.View;
import android.widget.AdapterView;
imp... | true |
8a90b4e2366658556e4082ca90d49f3c9cda122b | Java | lukaszwojtala1997/Check-location | /app/src/main/java/com/example/lokalizacja/Gyroscope.java | UTF-8 | 2,367 | 2.15625 | 2 | [] | no_license | package com.example.lokalizacja;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.os.Bu... | true |
f2850cdd2a8cf7c4d420c8bf411d477af7478edb | Java | daveme0816/how2j_intermediate | /how2j_0414/src/collection/TestCollection03.java | UTF-8 | 589 | 2.75 | 3 | [] | no_license | package collection;
import charactor.Hero;
import property.Item;
import java.util.ArrayList;
import java.util.List;
public class TestCollection03 {
public static void main(String[] args) {
List heros = new ArrayList();
heros.add(new Hero("garen"));
heros.add(new Item("ice"));
Her... | true |
7b570f883a12087991eaf64b46e020788ae826bf | Java | MKDenys/NotesApp | /app/src/main/java/com/dk/notesapp/database/AppDatabase.java | UTF-8 | 285 | 2 | 2 | [] | no_license | package com.dk.notesapp.database;
import androidx.room.Database;
import androidx.room.RoomDatabase;
import com.dk.notesapp.model.Note;
@Database(entities = {Note.class}, version = 10)
public abstract class AppDatabase extends RoomDatabase {
public abstract NoteDao noteDao();
}
| true |
295ef0301ec97a8f833c865cffc42796ff903987 | Java | leoliang/FileQueue | /src/main/java/com/geekhua/filequeue/exception/FileQueueClosedException.java | UTF-8 | 546 | 2.1875 | 2 | [] | no_license | package com.geekhua.filequeue.exception;
/**
* @author Leo Liang
*
*/
public class FileQueueClosedException extends Exception {
private static final long serialVersionUID = 4135894510349835781L;
public FileQueueClosedException() {
super();
}
public FileQueueClosedException(String message... | true |
28057a2a6a851848667ecd9e55a12c1848ed901b | Java | peis40666/Designpattern | /src/main/java/DesignPattern/Delegate/EmpB.java | UTF-8 | 270 | 2.703125 | 3 | [] | no_license | package DesignPattern.Delegate;
/**
* Created by peis 2019/5/29
*/
public class EmpB implements IEmployee{
@Override
public void doCommand(String command) {
System.out.println("我是员工B,我负责业务开发。开始"+command+"工作");
}
}
| true |
3524eaba988d5ae94fdf11f3bc1be46fb92f53a1 | Java | lequynhnhu/com.revolsys.open | /com.revolsys.open.core/src/main/java/com/revolsys/data/query/functions/Upper.java | UTF-8 | 630 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package com.revolsys.data.query.functions;
import java.util.Map;
import com.revolsys.data.query.QueryValue;
import com.revolsys.util.Property;
public class Upper extends UnaryFunction {
public Upper(final QueryValue parameter) {
super("UPPER", parameter);
}
@SuppressWarnings("unchecked")
@Override
pu... | true |
f8864fdb23b9b738bcd8e488190094600f7d44b2 | Java | asakaev/sdk-ui-android | /demo-lib/src/main/java/ru/livetex/sdkui/chat/ChatViewModel.java | UTF-8 | 13,583 | 1.914063 | 2 | [] | no_license | package ru.livetex.sdkui.chat;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import androidx.annota... | true |
35e665272e6199e3a870770bcd702bc6a34bbc9a | Java | mrozans/Platformer | /src/View/Maps/Map.java | UTF-8 | 1,977 | 2.578125 | 3 | [] | no_license | package View.Maps;
import Model.Mobs.Mob;
import Model.Mobs.Player;
import Model.Tiles.Base;
import Model.Tiles.Pilar;
import Model.Tiles.Platform;
import Model.Tiles.UpperBase;
import Model.math.Vec;
import View.graphics.Screen;
public class Map
{
public final int WIDTH = 272, HEIGHT = 153;
public boolean[]... | true |
41ec89895f728143bd5f6f643db16786ef482fee | Java | mehdi30/ProjetGoVoyageMobile | /src/com/mycompany/myapp/menu.java | UTF-8 | 6,904 | 2.125 | 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 com.mycompany.myapp;
import com.codename1.ui.Image;
import com.codename1.components.ImageViewer;
import com.codename1.ui.Butto... | true |
39d723e3b00abfe31dc9a037c28e97f02e623a5c | Java | xrogzu/mint | /src/main/java/com/mint/core/manager/impl/MemberMngImpl.java | UTF-8 | 3,940 | 2.1875 | 2 | [] | no_license | package com.mint.core.manager.impl;
import com.mint.common.hibernate4.Updater;
import com.mint.common.page.Pagination;
import com.mint.common.security.UsernameNotFoundException;
import com.mint.common.security.userdetails.UserDetails;
import com.mint.common.security.userdetails.UserDetailsService;
import com.mint.core... | true |
6fb399a5bbe39b512289fff4896b8b45f0be6af6 | Java | agrestio/agrest | /agrest-engine/src/main/java/io/agrest/runtime/protocol/ISizeParser.java | UTF-8 | 317 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package io.agrest.runtime.protocol;
import com.fasterxml.jackson.databind.JsonNode;
/**
* Parsing of Start and Limit query parameters from string or related in JSON values.
*
* @since 2.13
*/
public interface ISizeParser {
Integer startFromJson(JsonNode json);
Integer limitFromJson(JsonNode json);
}
| true |
77a950544b1ab4c54d56a2e29239dbc1d0e43d54 | Java | ankurpatel42/SENG201-Farm-Simulator | /farmsimulator/src/farmsimulator/Wheat.java | UTF-8 | 413 | 2.8125 | 3 | [] | no_license | package farmsimulator;
/**
* This class contains attributes and methods for a Wheat object. This class extends the Crop Class.
*
* @author Ankur Patel, Benjamin Crozier
* @version 15/05/2020
*/
public class Wheat extends Crop {
/**
* Wheat constructor. This class creates an instance of Wheat by providing ... | true |
06bdec9e5a4514e57a5ed4e527df40b6dfdf3e88 | Java | yinlin19900826/bio-platform | /interaction/interface-basemanager/src/main/java/com/biocome/platform/inter/basemanager/entity/VisitorRecord.java | UTF-8 | 2,890 | 2.046875 | 2 | [] | no_license | package com.biocome.platform.inter.basemanager.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
... | true |
6480fe19641029439a91490a2c8e25a322662c40 | Java | 517277838/Flink_JAVA | /src/main/java/andy/flink/processfunction/KeyedProcessFunctionDemo.java | UTF-8 | 3,273 | 2.6875 | 3 | [] | no_license | package andy.flink.processfunction;
import andy.flink.beans.SensorReading;
import org.apache.flink.api.common.RuntimeExecutionMode;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.common.state.ValueState;
import org.apache.flink.api.common.state.ValueStateDescriptor;
import org.ap... | true |
9486606070234c17102278e78666f00f96a10af8 | Java | kharithar/HMS-CER | /HMS.java | UTF-8 | 4,141 | 2.75 | 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 hms;
import hms.Fever.MEASUREDBY;
import hms.Fever.UNITS;
import hms.MedicationSchedule.Frequency;
import hms.Temper... | true |
c06a448edb7fd77ea21d8a84dab189034e27037d | Java | KJNine/KLCommon | /src/main/java/lol/kangaroo/common/player/profile/ProfileID.java | UTF-8 | 1,270 | 2.90625 | 3 | [] | no_license | package lol.kangaroo.common.player.profile;
public class ProfileID {
public static final ProfileID ZERO_PID = new ProfileID(new byte[] {0,0,0,0});
private byte[] bytes;
public ProfileID(byte[] bytes) {
if(bytes.length != 4) throw new IllegalArgumentException("byte[] length must be 4.");
this.byt... | true |
4ff1aff0e5fe8ee110e613041daffd24b6f0ec27 | Java | sadmurshid/JAVA-Practice-CODE | /Raph Task/t9a.java | UTF-8 | 288 | 2.546875 | 3 | [] | no_license | import java.util.Scanner;
public class t9a
{
public static void main(String[]args)
{
Scanner s= new Scanner(System.in);
int x=24 ;
while (x>=0)
{
System.out.print(x+",");
x=x-6;
}
System.out.print(-6);
System.out.println();
}
}
| true |
d421f2f080acedd7b5ef83bde9b3bf8f94672f37 | Java | Pirosmano/ArkhamHorror1DAMOrdenado | /src/Modelo/Cartas/Cartas_Acto/Atrapados.java | UTF-8 | 1,867 | 2.78125 | 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 Modelo.Cartas.Cartas_Acto;
import Modelo.Fases.Fase;
import Modelo.Lugares.Lugar;
import Modelo.Investigador;
/**
... | true |
73ff6a256425b131c60eb9740f710e7ab0aa128b | Java | fNordeingang/fnordcashApp | /src/main/java/de/fnordeingang/fnordcash/FnordcashApplication.java | UTF-8 | 531 | 1.773438 | 2 | [] | no_license | package de.fnordeingang.fnordcash;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan
@EnableAu... | true |
a317e0d1a2bf96ffe5d0e8ee096b7b432636bfe4 | Java | zhangchong-666/springboot-shrio | /src/main/java/com/zc/springbootshrio/config/ShrioConfig.java | UTF-8 | 3,499 | 2.171875 | 2 | [] | no_license | package com.zc.springbootshrio.config;
import org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.web.mgt.DefaultWebSecurityManager;
import org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProx... | true |
d1da441ea3cd9af76f8dbb52af41e94eba225289 | Java | mashuangwei/SpringBoot-4 | /Springboot7/src/main/java/cn/kxind/timers/MyTimers.java | UTF-8 | 887 | 2.671875 | 3 | [] | no_license | package cn.kxind.timers;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Created by Administrator on 2016/12/14.
*/
@Component
public class MyTimers {
SimpleDateFormat sdf=new SimpleDate... | true |
facecdf815694c4bf65e052b3fa0708931dbddd2 | Java | JehCilene/pessoas-crud | /src/main/java/com/cilene/pessoas/business/pessoas/service/PessoaService.java | UTF-8 | 2,475 | 2.1875 | 2 | [] | no_license | package com.cilene.pessoas.business.pessoas.service;
import com.cilene.pessoas.business.pessoas.persistence.entity.PessoaEntity;
import com.cilene.pessoas.business.pessoas.persistence.repository.PessoaRepository;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Servic... | true |
81d2e170738ccc962458b4dc2554baca954f281f | Java | kaza1509/Documents | /JAVA_FPT/PRO192 Documents/PRO192-Learning website/codes/PRO192 examples/05-IO and Streams/01-input & display numbers/1-input manually/2-using readLine()/Main.java | UTF-8 | 371 | 3.421875 | 3 | [] | no_license | import java.io.*;
class Main
{public static void main(String args[]) throws Exception
{String a = null; int x;
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
System.out.print(" Enter integer number: ");
a = b.readLine();
x = Integer.parseInt(a.trim());
System.out.print... | true |
d622ed527013cdf37a518fa9cf8d64a3963c3384 | Java | NickOwhadi/java-practice | /src/excersizes/AvTemp.java | UTF-8 | 595 | 2.71875 | 3 | [] | no_license | package excersizes;
import java.util.*;
public class AvTemp {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int k = 0;
double total = 0;
double avgTemp = 0;
double[] temps = { scan.nextDouble(), scan.nextDouble(), scan.nextDou... | true |
2595d06adec9bc84d72e7859658e08eb6493145c | Java | krsasha2004/s01 | /src/main/java/ru/steam/steamguard/SteamguardState.java | UTF-8 | 28,793 | 1.78125 | 2 | [] | no_license | package ru.steam.steamguard;
import lombok.extern.slf4j.Slf4j;
import org.json.JSONException;
import org.json.JSONObject;
import ru.steam.*;
import ru.steam.utils.TimeCorrector;
import ru.steam.webrequests.Endpoints;
import ru.steam.webrequests.RequestBuilder;
import ru.steam.webrequests.RequestErrorInfo;
import ru.s... | true |
ece3a4ad2f0066a757b99a13399e510b597e14d9 | Java | fc13240/fuwuwangweb | /src/main/java/com/platform/service/impl/OrderServiceImpl.java | UTF-8 | 18,031 | 1.882813 | 2 | [] | no_license | package com.platform.service.impl;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.an... | true |
6e2be92fbbfeb34eafe4e1a3c274cd3f7a4a1bc7 | Java | wiztools/portscanner-cli | /src/main/java/org/wiztools/util/portscanner/Port.java | UTF-8 | 775 | 3.0625 | 3 | [] | no_license | package org.wiztools.util.portscanner;
/**
*
* @author subwiz
*/
public class Port implements Comparable<Port> {
private int port;
private Type type;
public Port(int port, Type type){
this.port = port;
this.type = type;
}
public int getPort() {
return port;
}
p... | true |
f447ff7aac0fc54807d2d174c8c3ec405cc2b40b | Java | kashann/sportsbooking | /src/test/java/com/licenta/sportsbooking/converters/RegionToRegionDtoConverterTest.java | UTF-8 | 1,079 | 2.671875 | 3 | [] | no_license | package com.licenta.sportsbooking.converters;
import com.licenta.sportsbooking.dto.RegionDTO;
import com.licenta.sportsbooking.model.Region;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class RegionToRegionDtoConverterTest {
public... | true |
570bad9644d836e48583c6c5071c393b2c53dc69 | Java | SpillmanTech/ant-git-tasks | /src/main/java/com/rimerosolutions/ant/git/tasks/ApplyTask.java | UTF-8 | 4,154 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 Rimero Solutions
*
* 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 agre... | true |
7ff73b2189f0812424639155c2cd12b376c6ada4 | Java | AramVanyan/restaurant-service | /history-service/src/main/java/com/epam/historyservice/controller/HistoryController.java | UTF-8 | 658 | 2.03125 | 2 | [] | no_license | package com.epam.historyservice.controller;
import com.epam.historyservice.entity.OrderDetails;
import com.epam.historyservice.service.HistoryService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframewor... | true |
a15172ad75fb451fce8e10c56187dfb1ae89f9b0 | Java | colaxgutten/TheGame | /src/main/java/TheGame/GameLoop.java | UTF-8 | 1,111 | 2.59375 | 3 | [] | no_license | package TheGame;
import javafx.animation.AnimationTimer;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
class GameLoop extends AnimationTimer {
DrawHelper dh;
Game game;
Stage stage;
Canvas canvas;
/*
public GameLoop(Stage stage, Game ga... | true |
2202a2f02391c8f4f876143a8f4335a1e0dfda9a | Java | realsightAPM/westworld | /banjo_wub/src/edu/duke/cs/banjo/learner/components/Decider.java | UTF-8 | 5,611 | 2.4375 | 2 | [] | no_license | /*
* Created on Apr 13, 2004
*
* This file is part of Banjo (Bayesian Network Inference with Java Objects)
* edu.duke.cs.banjo
* Banjo is licensed from Duke University.
* Copyright (c) 2005-2008 by Alexander J. Hartemink.
* All rights reserved.
*
* License Info:
*
* For non-commercial use, may be licensed... | true |
4f85936d0cf61af9b3cf5a5a96dea9efe55c49a7 | Java | splitio/android-client | /src/test/java/io/split/android/client/service/ImpressionsRequestParserTest.java | UTF-8 | 2,738 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package io.split.android.client.service;
import com.google.gson.reflect.TypeToken;
import org.junit.Assert;
import org.junit.Test;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
import io.split.android.client.dtos.KeyImpression;
import io.split.android.client.dtos.TestImpressions;... | true |
48096218d2e57d938a0625b279ad29b58d913db3 | Java | sekaiser/spring-boot-blueprint | /src/test/java/de/seka/news/common/exceptions/MttrbitExceptionUnitTests.java | UTF-8 | 1,662 | 2.71875 | 3 | [] | no_license | package de.seka.news.common.exceptions;
import de.seka.news.test.categories.UnitTest;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import java.io.IOException;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
/**
* Unit test exceptions.
*/
@Category(UnitTest.class)
publ... | true |
0149bf105252f340f62716d2eb80e1327039bdcb | Java | truongson2k/webEnglish | /src/DAO/BaihdnguphapDAO.java | UTF-8 | 1,971 | 2.703125 | 3 | [] | no_license | package DAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import BEAN.Grammarguideline;
public class BaihdnguphapDAO {
public static List<Grammarguideline> Displaygrammar(int start,int coun... | true |
b608833735f39585438bb6dfb7be9d08f08fd7f9 | Java | cckmit/spotsupply | /spotsupply-rest/src/main/java/be/spotsupply/rest/dto/product/ProductTO.java | UTF-8 | 496 | 1.828125 | 2 | [] | no_license | package be.spotsupply.rest.dto.product;
import be.spotsupply.rest.AbstractTO;
import be.spotsupply.rest.dto.common.TranslationsTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Produc... | true |
ace0e877026efac1ebcf11a66b3188aadf74f6e0 | Java | Intel-bigdata/SSM | /smart-zeppelin/zeppelin-server/src/main/java/org/smartdata/server/rest/ActionRestApi.java | UTF-8 | 8,073 | 1.96875 | 2 | [
"Apache-2.0",
"MIT",
"OFL-1.1",
"BSD-3-Clause",
"BSD-2-Clause",
"EPL-1.0",
"LGPL-2.1-only",
"MPL-2.0-no-copyleft-exception",
"AGPL-3.0-only",
"GPL-2.0-only",
"CC-BY-3.0",
"LicenseRef-scancode-proprietary-license",
"CDDL-1.0",
"BSD-2-Clause-Views",
"LicenseRef-scancode-jdom",
"MPL-2.0",... | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
b6a49fc720efc0b003efb8a4d577f12440f6abb1 | Java | Boibo/WorkingHours2 | /app/src/main/java/bobthebraino/database/DatabaseConnector.java | UTF-8 | 12,440 | 2.578125 | 3 | [] | no_license | package bobthebraino.database;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util... | true |
3bdf7ba41d7b77ece92aead72e487a01cd94c0e9 | Java | anajha/HackathonMockAPI | /src/main/java/com/demo/poc/entity/ProfileResponse.java | UTF-8 | 512 | 2.09375 | 2 | [] | no_license | package com.demo.poc.entity;
import java.util.ArrayList;
public class ProfileResponse {
private ArrayList<String> profile_type;
String response;
public ArrayList<String> getProfile_type() {
return profile_type;
}
public void setProfile_type(ArrayList<String> profile_type) {
this... | true |
a054ceec78efbc214c159f81a2715665ce376374 | Java | STAMP-project/dspot-experiments | /benchmark/training/org/apache/flink/fs/s3/common/utils/RefCountedBufferingFileStreamTest.java | UTF-8 | 4,436 | 2.390625 | 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... | true |
b1c2d686d3dd4b7477982e7036465c130397f690 | Java | wix-incubator/openrest4j | /openrest4j-api/src/main/java/com/openrest/v1_1/Push.java | UTF-8 | 836 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.openrest.v1_1;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonIgnoreProperties(ignoreUnknown=true)
public class Push implements Serializable {... | true |
eab195d9bb9b4d2be834d96f9adcc709d541f9f1 | Java | adolfo17832/proyectoSSyR | /src/proyectoSSyR/db/ServicioRequisitoBD.java | UTF-8 | 2,191 | 2.421875 | 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 proyectoSSyR.db;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import static javax.swing.JOptionPane.showMessa... | true |
7beddbd68b34f6a2a097cea8ea8890bdbc257fcf | Java | spacewalker96/Java_oop | /src/Acount3.java | UTF-8 | 508 | 2.59375 | 3 | [] | no_license | public class Acount3 extends Acount2 {
double getSold(){
return solde;
}
String getNom(){
return nom;
}
String getAdresse(){
return adresse;
}
void setSold(double solde){
this.solde = solde;
}
public vo... | true |
5cfd78425f5cf1d994cba7074ed53d94050a8ae2 | Java | cwjcsu/learning | /basic/src/main/java/com/cwjcsu/projecteuler/util/DancingLinksXImpl.java | UTF-8 | 5,077 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | package com.cwjcsu.projecteuler.util;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.logging.Logger;
public class DancingLinksXImpl implements DancingLinksX {
private static final Logger logger = Logger
.getLogger(DancingLinksXImpl.class.getName());
private Header ... | true |
7b31691d37d761645503c3e064a9e4832c069172 | Java | Lduperron/CSCI375-Team-Project | /src/main/java/core/server/ServerEngine.java | UTF-8 | 16,715 | 1.992188 | 2 | [] | no_license | package core.server;
import static core.shared.ConfigOptions.MAP_SIZE_X;
import static core.shared.ConfigOptions.MAP_SIZE_Y;
import static core.shared.ConfigOptions.TILE_SIZE;
import static core.shared.ConfigOptions.VIEW_DISTANCE_X;
import static core.shared.ConfigOptions.VIEW_DISTANCE_Y;
import core.shared.SoundMana... | true |
17f7ce5751a3b2ec96a0de6b6c259327949b0b03 | Java | cheeseinlove/jsql | /src/main/java/io/jsql/test/JDBC.java | UTF-8 | 679 | 2.234375 | 2 | [] | no_license | package io.jsql.test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* Created by 长宏 on 2017/4/30 0030.
* test
*
*
*/
public class JDBC {
public static void main(String[] args) {
String url = "jdbc:mysql://localhost:9999/changhong?"
+ "use... | true |
a2628474d779410983688a75a65340a57be28641 | Java | songzhixiang/ServiceDemo | /app/src/main/java/com/example/servicedemo/glide/cache/BitmapCache.java | UTF-8 | 469 | 1.914063 | 2 | [] | no_license | package com.example.servicedemo.glide.cache;
import android.graphics.Bitmap;
import com.example.servicedemo.glide.BitmapRequest;
/**
* @author andysong
* @data 2019-05-27
* @discription xxx
*/
public interface BitmapCache {
//存入主存
void put(BitmapRequest request, Bitmap bitmap);
//读取缓存
Bitmap ge... | true |
63a7dd4cb7a93736bf25d0b9787e4a48a47a0b4b | Java | liaimi/Yelp_Personalization | /src/mainAlg/Community.java | UTF-8 | 2,974 | 3.046875 | 3 | [] | no_license | package mainAlg;
import java.io.IOException;
import java.util.*;
public class Community {
public Community(){
super();
}
private static final int NUMCOMM = 100;
private static final double DELTA = 1.0;
private static HashMap<String, Double>ubStar;
private static LinkedList<HashSet<User>> clusters... | true |
7021883e1f746b04edb731043229b0754e8d6350 | Java | Parveenr21/CJ | /src/test/java/Inheritance/Beta2.java | UTF-8 | 3,021 | 3.609375 | 4 | [] | no_license | package Inheritance;
public class Beta2 extends Baap2 {
int i=1000;
static int j=1000;
void foo(){
System.out.println("BETA2 method");
}
public static void main(String ...ccc)
{
Beta2 B = new Beta2();
B.workingmethod();
}
void workingmethod(){
... | true |
2285b98c8ce198dd78e42e6715fd73fd95fbdf0e | Java | Gorogora/FSRB | /GAFuzzySystem/src/BaseDeReglas/RuleBase.java | UTF-8 | 2,196 | 2.90625 | 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 BaseDeReglas;
import BaseDeDatos.DataBase;
import BaseDeDatos.Triangulo;
import gafuzzysystem.Params;
import java.io.File;
imp... | true |
17e372b1e97f04fa6677655f291879bf7ed80b7d | Java | cuco08/jose-osorio-usertx-test | /service/src/test/java/mx/clip/assessment/user/tx/service/random/LinearCongruentialGeneratorTest.java | UTF-8 | 887 | 2.4375 | 2 | [] | no_license | package mx.clip.assessment.user.tx.service.random;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import java.time.LocalDateTime;
import java.time.ZoneId;
import static org.assertj.core.api.Assertions.assertThat;
@Slf4j
class LinearCongruentialGeneratorTest {
@Test
void nextInt() {
... | true |
c1245ee42e2d41002180ebde5c7fd9dedfc0e6e7 | Java | gracieleo/apicommodelmapper | /src/main/java/com/example/services/UserService.java | UTF-8 | 1,076 | 2.515625 | 3 | [] | no_license | package com.example.services;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.models.User;
import com.example.repositories.UserRepository;
import java.util.List;
@Service
public class UserService {
@Autowired
private UserRepo... | true |
407e83471a12849dd6a2d66931cfe5c49014258c | Java | Pavanbhandari46/Java | /Reversearray.java | UTF-8 | 616 | 3.703125 | 4 | [] | no_license | import java.util.*;
public class Reversearray {
public static void main(String[] args) {
int i,j;
int arr[]=new int[100];
int num,temp;
System.out.println("Enter the number of elements to the array:");
Scanner sc=new Scanner(System.in);
num=sc.nextInt();
System.out.println("Enter the array elements:");
... | true |
8e78837de0b700192cf58302f740062214f64f15 | Java | SirenYun/houtai | /java/model/OrderDaoImpl.java | GB18030 | 1,997 | 2.21875 | 2 | [] | no_license | package model;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
public c... | true |
2864ce006026cc96cabce09344250f6439594b17 | Java | MateuszDarul/Sudoku | /SudokuGame/Model/src/test/java/pl/first/firstjava/SudokuBoardTest.java | UTF-8 | 5,449 | 3.25 | 3 | [] | no_license | package pl.first.firstjava;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Arrays;
public class SudokuB... | true |
3c051d13524f1ac5515602fa47073ca3490fd543 | Java | cesarm29/Wallethub | /BackendWalletHub/src/main/java/com/wallethub/backendwallethub/vo/SearchDataVo.java | UTF-8 | 1,567 | 2.21875 | 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 com.wallethub.backendwallethub.vo;
/**
*
* @author cesar
*/
public class SearchDataVo {
//data response to query my... | true |
505b20d79db2c3ee1926f2d5b3c06ee90bada6a1 | Java | umng/Learn-to-Program | /Java/CTS_SFDC/workspace/Display Batsmans Details/src/SkillDAO.java | UTF-8 | 530 | 2.625 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class SkillDAO {
public Skill getSkillById(int id) throws ClassNotFoundException, SQLException {
Connection con = DBConnection.getConnection();
Statement statement = con.createStatemen... | true |
b5a724267b80b467e32076043e91c9456c1f3091 | Java | Borrya/spring-apps | /New Annotations/src/main/java/ru/borisevich/springapp/MusicPlayer.java | UTF-8 | 1,324 | 3.078125 | 3 | [] | no_license | package ru.borisevich.springapp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
... | true |
47a058f7588c7cc15838025f1acab0078084da01 | Java | chubyqc/gae-based-distributed-architecture | /server/src/chubyqc/gaeDistributed/server/Logger.java | UTF-8 | 709 | 2.28125 | 2 | [] | no_license | package chubyqc.gaeDistributed.server;
import java.util.logging.Level;
public class Logger {
private static Logger _instance = new Logger();
public static Logger getInstance() {
return _instance;
}
private static final String SUBSYSTEM = "APP";
private java.util.logging.Logger _logger;
private Logger() {... | true |
eed05f19590a0fa9120918649760dc3e15871d3f | Java | sunghailame/PP_3 | /whiteboard/src/main/java/whiteboard/login/LoginController.java | UTF-8 | 3,858 | 2.890625 | 3 | [] | no_license | package whiteboard.login;
import whiteboard.admin.*;
import whiteboard.student.*;
import whiteboard.prof.*;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spring... | true |
7c3bda7152738c7ec63de33379666e22f5046db3 | Java | lam300695/Md4_Case | /src/main/java/com/codegym/model/ProductOrderDetail.java | UTF-8 | 1,268 | 2.40625 | 2 | [] | no_license | package com.codegym.model;
import javax.persistence.*;
@Entity
@Table(name = "productOrderDetail")
public class ProductOrderDetail {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
@ManyToOne
@JoinColumn(name = "ShoppingCart_id")
private ShoppingCart shoppingCart;
@Ma... | true |
a3b72e310c4e8fff4029a22d66f2c19d582231a9 | Java | NezarAli/ElixirCounter | /app/src/main/java/brackets/elixircounter/shared/views/CustomTextView.java | UTF-8 | 600 | 2.15625 | 2 | [] | no_license | package brackets.elixircounter.shared.views
public class CustomTextView {
public CustomTextView(Context context) {
super(context)
applyTypeface(context)
}
public CustomTextView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr)
app... | true |
24e03dc9f34139a5d667bd45df77fa15110c3f07 | Java | prkg7341/AlgorithmPractice | /src/Swirl.java | UHC | 924 | 3.390625 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Swirl {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStr... | true |
34b16d96c0680c693d9a8bfcf9b3950b1ca10799 | Java | Xiongluhe/shopping_center | /shop_web/shop_back/src/main/java/com/xiong/controller/ImageController.java | UTF-8 | 1,660 | 2.34375 | 2 | [] | no_license | package com.xiong.controller;
import com.xiong.entity.ResultData;
import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.w... | true |
6c5f1fdea804c9447c37af734c3c92d81fa92756 | Java | hsemrk/ProjetPOO | /source files/controller/LocationController.java | UTF-8 | 11,698 | 1.9375 | 2 | [] | no_license | package locationapp.controller;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import java.beans.PropertyChangeEvent;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.event.DocumentEve... | true |
79c7f7e5659596457da25b54e078574cf3f5ba3a | Java | sidhjhawar/JDP | /src/com/turingworld/views/NFABuildViewInterface.java | UTF-8 | 445 | 2.015625 | 2 | [] | no_license | package com.turingworld.views;
/**
* @author bbachuna, chauhanp, erajan, haashraf, sjhawar, vrajasek.
*/
import javax.swing.JLabel;
import com.turingworld.model.FABlock;
public interface NFABuildViewInterface {
public void addToPanel(FABlock dfaBlock);
public void removeFromPanel(FABlock dfaBlock);
... | true |
82d3bcda93ae5decbbd7f123bc5284f445e6d74c | Java | kee-golden/YelotCRM | /src/main/java/com/yelot/crm/enums/VerifyCodeType.java | UTF-8 | 627 | 2.546875 | 3 | [] | no_license | package com.yelot.crm.enums;
/**
* @author kee
*/
public enum VerifyCodeType {
Verify_Delay(1,"验证码超时"),
Verify_Error(2,"验证码错误"),
Verify_Success(3,"验证成功")
;
private Integer code;
private String name;
VerifyCodeType(Integer code, String name) {
this.code = code;
this.name... | true |
0ef8fdfbc0af8d0de2bf870016df2d91b6ecb890 | Java | gpad/FoodMe-Java | /src/main/java/com/foodme/application/Migrations/AddCartItemsTable.java | UTF-8 | 443 | 1.953125 | 2 | [] | no_license | package com.foodme.application.Migrations;
//public class AddCartItemsTable extends Migration {
// public void up() throws Exception {
// Create.Table("cart_items").WithColumn("id").AsGuid().PrimaryKey().WithColumn("product_id").AsGuid().WithColumn("description").AsString().WithColumn("qty").AsCurrency... | true |
ac33f77c2cf1c524a2d59de4547e6c0b73cd10c6 | Java | lyncoder/lynBlog_Eureka | /blog_API/src/main/java/com/lynsite/blog/factory/service/ArticleClientService.java | UTF-8 | 979 | 1.976563 | 2 | [] | no_license | package com.lynsite.blog.factory.service;
import com.lynsite.blog.entity.Article;
import com.lynsite.blog.factory.fallback.ArticleFallback;
import com.lynsite.blog.vo.ResultVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframew... | true |
631843458816c78fc789dc6b632d4e391c6b5361 | Java | devil-yao/webSchool | /src/com/dwh/tech/dao/TeacherDao.java | UTF-8 | 617 | 1.953125 | 2 | [] | no_license | package com.dwh.tech.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.dwh.tech.entity.PageRequest;
import com.dwh.tech.entity.User;
public interface TeacherDao {
public List<User> getAllTeacher();
int count();
int countByCateId(@Param("cateId")Integer cateId);
List<User>... | true |
56576b9eedd7e95539b349c5f6b467ff3911a9d2 | Java | Delon88/leetcode | /lc/src/LC/SOL/DeleteColumnstoMakeSortedII.java | UTF-8 | 758 | 3.03125 | 3 | [] | no_license | package LC.SOL;
public class DeleteColumnstoMakeSortedII {
class Solution {
public int minDeletionSize(String[] A) {
int m = A.length, n = A[0].length(), i, j;
boolean[] sorted = new boolean[m - 1];
int ret = 0;
for (i = 0; i < n; i++) {
for (... | true |
36606a355b7291956a2d09a6e011ffdedd959699 | Java | rmiki92/Automation-testing-task | /cucumber-selenium-task/src/test/java/testRunner/Runner.java | UTF-8 | 309 | 1.53125 | 2 | [] | no_license | package testRunner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features = {"src/test/resources"},glue= {"stepDefinitions"},
tags= {"@testFE1,@testFE2"}
)
public class Runner {
}
| true |
a33da0d148f20b128ccc0dc18d3fd39773ecb6f8 | Java | rsby/gunmetal | /core/src/test/java/io/gunmetal/integration/AccessibilityIntegrationTest.java | UTF-8 | 2,797 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package io.gunmetal.integration;
import io.gunmetal.BlackList;
import io.gunmetal.Component;
import io.gunmetal.Module;
import io.gunmetal.Supplies;
import io.gunmetal.WhiteList;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author rees.byars
*/
public class AccessibilityIntegrationTes... | true |
ae645df66912ea0c02141e7e8a84cebaad0773b7 | Java | gitBalances/test1 | /src/main/java/com/tansuo365/test1/service/user/UserRoleService.java | UTF-8 | 480 | 1.875 | 2 | [] | no_license | package com.tansuo365.test1.service.user;
import com.tansuo365.test1.bean.user.User;
import com.tansuo365.test1.bean.user.UserRole;
import java.util.List;
/*用户角色服务接口*/
public interface UserRoleService {
public void setRoles(User user, long[] roleIds);
public void setRolesById(Integer userId, Integer[] roleIds);... | true |
c67b416389ffff4aad572b46dec4d410b047e7e3 | Java | gideontong/CodeQuest | /past-competitions/2016/src/holly/src/com/lmco/cq2016/Prob17_Honeycomb.java | UTF-8 | 8,799 | 3.359375 | 3 | [
"MIT"
] | permissive | package com.lmco.cq2016;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.Stack;
/**
* @author nortoha
*
*/
public class Prob17_Honeycomb {
... | true |
a724a2d90fd7d0d9d4231994d08975494bd7223a | Java | chopsticks35/Java-Misc-fiddles | /Hopper.java | UTF-8 | 1,712 | 3.515625 | 4 | [] | no_license | package homework;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class Hopper {
public static void main(String args[]){
//hopper collection of balls
List <PingPongBall> hopper = new ArrayList<>(1000);
//balls into hopper
//could make a method to add each time
fo... | true |
00da1c502e776ce3d0f3e6879b91426acc14e90d | Java | qcchen23/Dijkstra_project | /src/project2/Project2.java | UTF-8 | 1,219 | 3.515625 | 4 | [] | no_license | package project2;
import java.awt.*;
import javax.swing.JFrame;
import java.io.*;
import java.util.*;
public class Project2 {
public static void main(String[] args) {
// Set up application frame
JFrame window = new JFrame("Project 2");
window.setBounds(50,50,800,800); // Dimensions of... | true |
2d831065384183fe954597367419f8d621a868f7 | Java | ayojava/LibraryProj | /src/main/java/com/javasoft/pgproj/gui/internalFrames/ParentFrame.java | UTF-8 | 7,300 | 2.328125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.javasoft.pgproj.gui.internalFrames;
import com.javasoft.pgproj.util.ResourceUtil;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
... | true |
6e2024e4a8947746a5855171f3cf2d3dbb8dd1b4 | Java | fareedsokar/SchoolBookV0.9 | /SMS/src/sysAdmin/sysAdminHomeUI.java | UTF-8 | 7,799 | 1.992188 | 2 | [] | no_license | package sysAdmin;
import javax.swing.JPanel;
import java.awt.SystemColor;
import javax.swing.JPopupMenu;
import javax.swing.Painter;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.tree.TreePath;
import OurMessage.Message;
import OurMessage.QTypes... | true |
82a181542aaa3f674bba683d3e13a103f2050f7e | Java | WengHaobin/WatermelonAllSummer | /app/src/main/java/com/haobin/watermelon_all_summer/module/welfare/presenter/PhotoListPresenter.java | UTF-8 | 2,035 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.haobin.watermelon_all_summer.module.welfare.presenter;
import com.haobin.watermelon_all_summer.http.Api;
import com.haobin.watermelon_all_summer.model.GankHttpResult;
import com.haobin.watermelon_all_summer.module.welfare.view.PhotoListFragment;
import com.haobin.watermelon_all_summer.utils.ToastUtils;
im... | true |
f29cb4f3753fec1f6799006410e19074ae95892e | Java | DongVagrant/model | /src/main/java/com/wd/mytest/common/db/DynamicDB.java | UTF-8 | 560 | 2.21875 | 2 | [] | no_license | package com.wd.mytest.common.db;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
* 动态数据源
* @author GuoYJ @create 2016年11月1日
*
*
*/
public class DynamicDB extends AbstractRoutingDataSource {
private static final ThreadLocal<String> holder = new ThreadLocal<String>();
public ... | true |
e978a14c8232d476e17fd967f754873171da55ce | Java | dinya007/algorithms | /src/main/java/ru/tisov/denis/spring/cyclic/ClassB.java | UTF-8 | 260 | 1.757813 | 2 | [] | no_license | package ru.tisov.denis.spring.cyclic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class ClassB {
@Autowired
private ClassA classA;
public ClassB() {
}
}
| true |
9a9d9d224a4bb4ebb0950c792ab575975d48f773 | Java | kirsi-k/Ohjelmoinnin-jatkokurssi-MOOC-2019 | /osa08-Osa08_11.Joukkoja/src/main/java/Lauma.java | UTF-8 | 935 | 2.828125 | 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.
*/
/**
*
* @author Kirsi
*/
import java.util.ArrayList;
import java.util.List;
public class Lauma implements Siirrettava {
priva... | true |
8ceeb998b5fdfca7634819589c10f0327c5fcec7 | Java | jingshouyan/j-jdbc | /j-jdbc-sharding/src/main/java/com/github/jingshouyan/jdbc/sharding/entity/DataSourceInfo.java | UTF-8 | 507 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.github.jingshouyan.jdbc.sharding.entity;
import lombok.Data;
import java.util.List;
import java.util.Map;
import static com.github.jingshouyan.jdbc.sharding.Constant.DATA_SOURCE_TYPE_NORMAL;
/**
* @author jingshouyan
* #date 2020/2/9 14:59
*/
@Data
public class DataSourceInfo {
private boolean s... | true |
a4ed48216bd070f79846907e53b7ad3b321effb6 | Java | jinoos/counterque | /src/main/java/com/jinoos/countque/OrderedLinkItem.java | UTF-8 | 354 | 2.25 | 2 | [] | no_license | package com.jinoos.countque;
public interface OrderedLinkItem<T> {
public T getKey();
public long getLong();
public boolean isGreaterThan(OrderedLinkItem<T> it);
public OrderedLinkItem<T> getUpperItem();
public void setUpperItem(OrderedLinkItem<T> it);
public OrderedLinkItem<T> getLowerItem();
public void setLo... | true |
36171ac382293d6f2f8f740d2bbf9b0d09f6efe2 | Java | aingsokea/darapay_project | /src/main/java/com/darapay/loanreferral/services/SettingService.java | UTF-8 | 522 | 1.882813 | 2 | [] | no_license | package com.darapay.loanreferral.services;
import com.darapay.loanreferral.models.Setting;
import com.darapay.loanreferral.viewmodels.SettingModel;
import com.darapay.loanreferral.viewmodels.export.SettingExportModel;
import com.darapay.loanreferral.viewmodels.presentation.SettingDisplayModel;
import java.util.List;
... | true |
daea09b21032ebb3121d99a65090a7c7e4554a83 | Java | pepeysusmapas/allocalgis | /modulos/apps/LOCALGIS-UI/src/main/java/com/geopista/ui/plugin/analysis/SegregatePlugIn.java | ISO-8859-1 | 12,698 | 1.601563 | 2 | [] | no_license | /**
* SegregatePlugIn.java
* MINETUR, Government of Spain
* This program is part of LocalGIS
* 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 (at your opt... | true |
1285f1305b80d27510ecd35e6a4e8595e0575b05 | Java | Philip-Nunoo/xcore | /src/main/java/io/swagger/model/CustomerResponse.java | UTF-8 | 1,826 | 2.421875 | 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 io.swagger.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
/**
*
* @au... | true |
a8898f587a3f2ef4971a855fa823680320f1968a | Java | taniasulta/EmployeeManagement | /EmployeeManagementSystem/src/com/emp/dao/LeaveDao.java | UTF-8 | 2,999 | 2.375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.emp.dao;
import com.emp.common.IUserDao;
import com.emp.model.Employee;
import com.emp.model.Leave;
import com.emp.model.U... | true |
de4a3e5fe8f3bc187eec8614867ee1996f405490 | Java | aaAsuna/wms | /wms/src/main/java/org/ricardo/wms/service/impl/SystemMenuService.java | UTF-8 | 2,846 | 2.359375 | 2 | [] | no_license | package org.ricardo.wms.service.impl;
import org.ricardo.wms.domain.SystemMenu;
import org.ricardo.wms.mapper.SystemMenuMapper;
import org.ricardo.wms.page.PageResult;
import org.ricardo.wms.query.QueryObject;
import org.ricardo.wms.service.ISystemMenuService;
import org.springframework.beans.factory.annotation.Autowi... | true |
f5fbf6d143248b4ecd7a00f8d7f7d320ef534ac7 | Java | Charlieletscode/Easy-Apps | /0307/App_3/src/app_3/Binary count.java | UTF-8 | 998 | 3.421875 | 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 app_3;
import java.util.Scanner;
/**
*
* @author Charlie Chung
*/
public class App_3 {
/**
* @pa... | true |
6f5490c2a9671627f8d3ef1b0a7f7d6e79c4da2c | Java | dengjiaping/hn-apos | /apos/apos-cardreader-driver/src/me/andpay/apos/cdriver/listener/ItronCommandStateChangedListener.java | UTF-8 | 2,689 | 1.929688 | 2 | [] | no_license | package me.andpay.apos.cdriver.listener;
import me.andpay.apos.cdriver.CardInfo;
import me.andpay.apos.cdriver.CardReaderManager;
import me.andpay.apos.cdriver.callback.CardReaderCallback;
import me.andpay.ti.util.SleepUtil;
import me.andpay.timobileframework.util.HexUtils;
import android.util.Log;
import com.itron.p... | true |