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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1dd7fcc19d1866fcdd31d77b6756fa9a965789ae | Java | Anurag-akajeetu/CodeInterviewExamples | /StringTesting/src/SlectionAlgo/NoOfSteps.java | UTF-8 | 335 | 3.046875 | 3 | [] | no_license | package SlectionAlgo;
public class NoOfSteps {
int countSteps(int x, int y){
if(x < 0 || y < 0)
return 0;
else if( x== 0 || y == 0)
return 1;
else
return countSteps(x-1,y)+countSteps(x, y-1);
}
public static void main(String args[]){
System.out.println(new NoOfSteps().countSteps(2... | true |
a826d913900ce6aa794e79424d5856a01d0cb68d | Java | syb0611/gogo | /gogo/src/main/java/com/gogo/withgo/vo/PageVo.java | UTF-8 | 2,295 | 2.203125 | 2 | [] | no_license | package com.gogo.withgo.vo;
public class PageVo {
private final int blocksize = 5;
private final int pagerow = 10;
private String category;
private int mno;///////////////
private int listTotal;
private int totalPage;
private int curPage;
private int topNum;
private int bottomNum;
privat... | true |
a362e7c6260122a757a53e32723a04404156634a | Java | elkinjimenez/patronessoftware | /src/adapter/Adaptador.java | UTF-8 | 785 | 2.734375 | 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 adapter;
public class Adaptador implements IAdaptador {
Dolar dolar = new Dolar();
// ------------------
public ... | true |
d9b83b9310053701d920b09f5e062d81753caccd | Java | dasilva-gabriel/spigot-projects | /2014-pvp-warcraft/2019-WarCore/fr/lowtix/warcore/enums/SymbolTab.java | UTF-8 | 679 | 2.796875 | 3 | [] | no_license | package fr.lowtix.warcore.enums;
public enum SymbolTab {
HEARTH_1("❤"),
HEARTH_2("❥"),
POINT("•"),
WRONG("✖"),
TREFLE("✣"),
CURSOR("✥"),
STAR_1("✦"),
STAR_2("✩"),
STAR_3("✫"),
STAR_4("✮"),
FLOWER("❃"),
FIGHTER("⚔"),
SIGMA("Σ"),
NOTE("♬");
private String displayName;
private SymbolTab(String displ... | true |
389781fcee80a8485a7ca9d2816dd46f51f25945 | Java | uarman29/Android | /HackerNews/app/src/main/java/com/example/hackernews/ViewArticle.java | UTF-8 | 790 | 1.859375 | 2 | [] | no_license | package com.example.hackernews;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class ViewArticle extends AppCompatActivity
{
WebView viewArticleWebView;
@Override
protect... | true |
9837e8dd9979619a92f72fd4244cd32f511700a3 | Java | shyding/jacksonDruid | /spring-boot-with-druid/src/test/java/cn/kiiwii/framework/service/impl/AnnotationAware.java | UTF-8 | 887 | 1.992188 | 2 | [] | no_license | package cn.kiiwii.framework.service.impl;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.introspect.Annotated;
import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector;
public class Annot... | true |
ab28e3584873278f3246eebd7fc3824200f13da2 | Java | lopezh48/APDM-Practicas | /EVA_2_3_STACK/app/src/main/java/com/example/eva_2_3_stack/ActivityNice.java | UTF-8 | 530 | 1.992188 | 2 | [] | no_license | package com.example.eva_2_3_stack;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class ActivityNice extends AppCompatActivity {
Intent intent;
@Override
protected void onCreate(Bundle savedInstanceState) {
... | true |
f301a334dc8f408b72cb8248a20877205dba1219 | Java | ykj1414/Algorithms | /Java/src/Chapter01/ResizingArrayStack.java | UTF-8 | 1,318 | 3.796875 | 4 | [] | no_license | package Chapter01;
//后进先出,LIFO 栈
import java.util.Iterator;
public class ResizingArrayStack<Item> implements Iterable<Item> {
private int N = 0;
private Item[]a = (Item[])new Object[1];
public boolean isEmpty(){
return N==0;
}
public void push(Item item){
if(N==a.length) resize(2*N)... | true |
d8ed1f79a15cadb088552fbdfce6d4cb17a46ab1 | Java | Mamorky/ejerciciosPSPRO | /SocketTCP_Hilos_2018/src/dam/psp/ServidorHilo.java | UTF-8 | 1,187 | 2.96875 | 3 | [] | no_license | package dam.psp;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
public class ServidorHilo extends Thread{
Soc... | true |
e32426f0179a26945ba273b6b950a237b61f7108 | Java | khushbr/performance-analyzer-rca | /src/main/java/org/opensearch/performanceanalyzer/plugins/PluginController.java | UTF-8 | 3,114 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.performanceanalyzer.plugins;
import com.google.common.annotations.VisibleForTesting;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import j... | true |
3d39fbb253e4cf163f090a80e2eb44cc03a2d2fb | Java | vrindasaraf90/NAAD | /src/Task1/SubTask4.java | UTF-8 | 979 | 3.546875 | 4 | [] | no_license | package Task1;
import java.util.Scanner;
class InvalidReplcamentException extends Exception{
public InvalidReplcamentException(String v){
super(v);
System.out.println(v);
}
}
public class SubTask4 {
public static void main(String[] args) {
... | true |
b9d8109c8f110bb2fad7329214610d17ce2c98cd | Java | lshenker/udemy_java-programming-masterclass-for-software-developers | /src/net/leonshenker/section3/Operators.java | UTF-8 | 1,528 | 3.84375 | 4 | [] | no_license | package net.leonshenker.section3;
public class Operators {
public static void main(String[] args) {
//operands are manipulated by operators
//expressions are formed by combining variables, literals, method return values, and operators
int result = 1 + 2;
System.out.println("1 + 2 = " + result);
int prev... | true |
d1802ba2bf6e77a696ddb13bbbf0f5782c510f6e | Java | NickMoralesPena/TFGPrueba | /TFGPrueba/src/main/java/Controladores/ControladorSubirParte.java | UTF-8 | 6,320 | 2.21875 | 2 | [] | no_license | package Controladores;
import Ventanas.VentanaLogin;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import ... | true |
3ab7c5d4f4fadb7245a0995d58bd7ff1bc9fb757 | Java | flame123flame/backend-springboot-ims | /src/main/java/th/go/excise/ims/preferences/vo/Ed03Vo.java | UTF-8 | 1,174 | 1.695313 | 2 | [] | no_license | package th.go.excise.ims.preferences.vo;
import th.go.excise.ims.preferences.persistence.entity.ExciseCtrlDuty;
public class Ed03Vo extends ExciseCtrlDuty {
private static final long serialVersionUID = 7339042584563576646L;
private th.go.excise.ims.ia.vo.ExciseDepartmentVo exciseDepartmentVo;
public th.go.exci... | true |
29db5d116e4c69f844c99c7a218d6c38f3c0ae1a | Java | dorcyzz/WeatherService_2 | /WeatherService-dao/src/main/java/com/seb/services/weather/dao/impl/WeatherHistoryDaoImpl.java | UTF-8 | 2,416 | 2.34375 | 2 | [] | no_license | package com.seb.services.weather.dao.impl;
import com.seb.services.weather.dao.WeatherHistoryDao;
import com.seb.services.weather.domain.orm.WeatherHistory;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.fac... | true |
16f09fd0cf5245b6ce4e7de1bc145ee05a884cd2 | Java | getmubarak/design | /p6/Entry.java | UTF-8 | 296 | 2.484375 | 2 | [] | no_license | package problem6;
public class Entry {
public static void main()
{
Invoice inv = new Invoice();
inv.setTaxType(2);
//inv.add(new LineItem(101,3));
//inv.add(new LineItem(102,2));
//inv.add(new LineItem(103,3));
//inv.add(new LineItem(104,1));
double total = inv.getTotal();
}
}
| true |
31311e056f25ad389f86324638e9bf2f85595c2b | Java | DAVMARROS/CRUD-Sockets | /src/Server/Conexion.java | UTF-8 | 4,614 | 2.84375 | 3 | [] | no_license | /*
* Tomada de https://fernando-gaitan.com.ar/conectar-java-con-mysql-en-netbeans/
* 05 de septiembre de 2019
* Modified by Master Degree Students
*/
package Server;
import java.awt.List;
import java.sql.*;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swi... | true |
6b76fffcb0dfcb3d7f755fa2b0884f3932794e79 | Java | vitorleal/SBC-Toq | /src/com/vleal/sbc/ui/SbcUI.java | UTF-8 | 593 | 2.4375 | 2 | [] | no_license | package com.vleal.sbc.ui;
import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;
public class SbcUI {
private static Context context;
public SbcUI(Context context) {
SbcUI.setContext(context);
}
// Get/set context
public static Context getContext() {
return context;
}... | true |
1b271e2981d1cfb445e4f18a9933fd370d7008e4 | Java | altereshkevich2/richard_jeffs_java | /src/main/java/database/DbUtil.java | UTF-8 | 1,976 | 2.921875 | 3 | [] | no_license | package database;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Scanner;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import model.Offer;
import model.Product;
/**
* This class emulates database.
*
* @author a.teresh
*
*/
... | true |
3fbf8111f71725863fb145d1168bed35982f5edd | Java | PVKesari/PriyankaKesari_AlogrithmsLabSubmission | /Algorithm/AlgorithmLabAssignment-Week6-PayMoney/src/com/greatlearning/main/Main.java | UTF-8 | 861 | 3.046875 | 3 | [] | no_license | package com.greatlearning.main;
import java.util.Scanner;
import com.greatlearning.driver.PayMoney;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
// Get the user input size of transaction array
System.out.print... | true |
66fbb60cf499a0ff4059edf90bfda9b2e2e8d1fb | Java | amymalia/KaleWithFriends | /app/Global.java | UTF-8 | 17,576 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | import models.Consumer;
import models.ConsumerDB;
import models.Farmer;
import models.FarmerDB;
import models.Ingredient;
import models.IngredientDate;
import models.Recipe;
import models.RecipeDB;
import models.TimedIngredient;
import play.Application;
import play.GlobalSettings;
import java.util.ArrayList;
import ja... | true |
831b568d08d54684e005427518cbcf86b32beeb6 | Java | mrbaco/webdriver_course | /webdriver/src/test/java/deprecated/task8.java | UTF-8 | 1,218 | 2.3125 | 2 | [] | no_license | package deprecated;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Expect... | true |
919ea01e85a003cdc19cb7a3e8de3d2366850e0b | Java | matthiasGmayer/LiRa | /src/gui/TextField.java | UTF-8 | 5,171 | 2.328125 | 2 | [] | no_license | package gui;
import java.util.HashMap;
import java.util.List;
import org.newdawn.slick.Color;
import org.newdawn.slick.Font;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import org.newdawn.slick.geom.Vector2f;
import entities.IPositionable;
import entities.IScalable;
import entitie... | true |
24f2214f31c9165a9d38f58fa265a1b34c7e63ac | Java | nazarzadeh/StockMiner | /src/main/java/com/stockminer/stockminer/ruleScript/SingleIndicatorCrossedValueRS.java | UTF-8 | 672 | 2.25 | 2 | [] | no_license | package com.stockminer.stockminer.ruleScript;
import com.stockminer.stockminer.RuleScript;
import com.stockminer.stockminer.RuleScriptIndicator;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.ta4j.core.BarSeries;
import org.ta4j.core.Rule;
import org.ta4j.core.trading... | true |
a47500f877c70dbd4f98fd2a392b7f6290e0fc6d | Java | iirfanansarii/Funny-Survey-Form | /src/main/java/com/irfan/SpringBootWithJpa/dao/SurveyDao.java | UTF-8 | 587 | 2.25 | 2 | [] | no_license | package com.irfan.SpringBootWithJpa.dao;
import java.util.List;
import com.irfan.SpringBootWithJpa.Modals.Survey;
public interface SurveyDao {
public Survey addSurvey(Survey s);
public List<Survey> surveyResult();
// At below code we are storing search value on serchText variable
public List<Survey> survey... | true |
061514dbc23a74a3d14ad2bf9211e033dfa71f70 | Java | IamWilliamWang/StudentTestSystem | /src/com/testsystem/action/student/JudgeSingleAnswerAction.java | UTF-8 | 3,555 | 2.1875 | 2 | [] | no_license | package com.testsystem.action.student;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;
import com.testsystem.storage.JudgeResult;
import com.testsystem.table.ExerciseTable;
import com.testsystem.table.Su... | true |
c91b33e7e5d5614d787a06cf363d4e0a0f55d354 | Java | SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018 | /Corpus/eclipse.jdt.core/286.java | UTF-8 | 124 | 2.03125 | 2 | [
"MIT"
] | permissive | package test0416;
interface I {
int CONST = 1;
}
public class A {
void foo() {
int x = I.CONST;
}
}
| true |
c9db1fe4381077aa0ae07a3e7e3d172621d774ca | Java | wcauchois/AndroidGame2 | /app/src/main/java/net/cloudhacking/androidgame2/engine/element/ScrollingImage.java | UTF-8 | 579 | 2.171875 | 2 | [] | no_license | package net.cloudhacking.androidgame2.engine.element;
import net.cloudhacking.androidgame2.engine.ui.widget.WidgetBackground;
import net.cloudhacking.androidgame2.engine.utils.Asset;
import net.cloudhacking.androidgame2.engine.utils.CommonUtils;
import net.cloudhacking.androidgame2.engine.utils.PointF;
/**
* Created... | true |
3883219b6f9d08841ef584d42df6d6ef29281d40 | Java | luiz158/sivalabs-blog-samples-code | /jcart/jcart-service/src/main/java/com/sivalabs/jcart/entities/LineItem.java | UTF-8 | 1,241 | 2.328125 | 2 | [] | no_license | package com.sivalabs.jcart.entities;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
/**
* @author Siva
*
*/
@Entity
@Table(name="lineitem")
@XmlRootElement
public class LineItem
{
@Id
@GeneratedValue(strategy=GenerationT... | true |
7b5f8e1744e1fef2b9b085cc38189ac4c86ce1ef | Java | Evolutionary-Algorithms/Symbiotic-MuGA | /SMUGA/src/operator/replacement/Crowding/CrowdingRCGA.java | WINDOWS-1250 | 4,718 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | ///****************************************************************************/
///****************************************************************************/
///**** Copyright (C) 2012 ****/
///**** Antnio Manuel Rodrigues Manso ***... | true |
802f63f211b3e380bee26e66fb9b7158d2e15d64 | Java | iant89/ibot | /client/src/main/java/com/farm/ibot/api/world/pathfinding/impl/ExtendedStraightPathFinder.java | UTF-8 | 1,444 | 2.90625 | 3 | [] | no_license | package com.farm.ibot.api.world.pathfinding.impl;
import com.farm.ibot.api.world.WorldData;
import com.farm.ibot.api.world.pathfinding.PathFinder;
import com.farm.ibot.api.wrapper.Tile;
public class ExtendedStraightPathFinder implements PathFinder {
private int getMove(int place1, int place2) {
if (place1... | true |
ac930a49847ab490fecaa99a9fed573d46476f31 | Java | ZierlichDrache/composite-tree | /composite-tree-app/src/main/java/pl/solejnik/compositetree/rest/ComponentController.java | UTF-8 | 3,960 | 2.515625 | 3 | [] | no_license | package pl.solejnik.compositetree.rest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import pl.solejnik.compositetree.service.ComponentService;
import pl.solejnik.co... | true |
a4cbfd0ce7d8f4da29632b405d0f3d89b70937cb | Java | sathishsivam/java- | /TrapeziumPattern.java | UTF-8 | 649 | 3.65625 | 4 | [] | no_license |
public class TPattern
{
public static void Trapezium()
{
int n=4, i=1,k=1,s=0,num=1,number=n;
for(i=0;i<n;i++)
{
System.out.println();
for(int j=1;j<=s;j++)
{
System.out.print("-");
}
for(int m=1;m<2*n-s;m++)
{
if(m%2==0)
System.out.print("*");
else
Sy... | true |
70cda7687961348426632b6a51b54710cb97adc6 | Java | garudareiga/leetcode-java | /src/main/java/container_with_most_water/ContainerWithMostWaterTest.java | UTF-8 | 494 | 2.53125 | 3 | [] | no_license | package container_with_most_water;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class ContainerWithMostWaterTest {
ContainerWithMostWater sol = null;
@Before
public void setUp() throws Exception {
sol = new ContainerWithMostWater();
}
@Test
public void test1() {
... | true |
fb0342ce0e04300544c17c7fd79aee1e01f67c5d | Java | KlaudioVito/MIT-Exercises | /A3/Marathon.java | UTF-8 | 1,671 | 3.265625 | 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 A3;
/**
*
* @author Klaudio Vito © 2016
*/
public class Marathon {
public static void main (String[] arguments){
... | true |
fba1f03a4afab28818ce16d8330011f7d8de153f | Java | jxsd0084/JavaTrick | /java/bj/DesignPattern/JavaPattern/_16_责任链模式/section2/Father.java | UTF-8 | 551 | 3.21875 | 3 | [] | no_license | package bj.DesignPattern.JavaPattern._16_责任链模式.section2;
/**
* @author cbf4Life cbf4life@126.com
* I'm glad to share my knowledge with you all.
* 父亲
*/
public class Father extends Handler {
// 父亲只处理女儿的请求
public Father() {
super( FATHER_LEVEL_REQUEST );
}
// 父亲的答复
@Override
protected void ... | true |
ccd9bf8e5c7f2ee522e7d06c097fb6605e162a5e | Java | alexbga/Camada-de-persist-ncia-1-Etapa | /farmacia.test/src/br/com/farmacia/entity/PrincipioAtivo.java | UTF-8 | 1,099 | 2.453125 | 2 | [] | no_license | package br.com.farmacia.entity;
import javax.persistence.*;
import java.util.*;
import javax.validation.constraints.*;
@Entity
public class PrincipioAtivo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Short IdPrincioAtivo;
@NotNull(message = "Informe a Descricao do Princ... | true |
31cc3d8cb215f05b3c87aa0ecc4e94a923caf346 | Java | thanhnhadev/Game-History-Test | /AppTracNghiemLichSu/app/src/main/java/com/gnollys88/apptracnghiemlichsu/slide/LuyenTapActivity.java | UTF-8 | 9,789 | 1.835938 | 2 | [] | no_license | package com.gnollys88.apptracnghiemlichsu.slide;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.CountDownTimer;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
imp... | true |
6585753e5a110ccbfb9470c753dd5b492c11f173 | Java | xbxrj/minos-deploy | /minos-common/src/main/java/xbp/core/base/BaseServiceImpl.java | UTF-8 | 9,617 | 1.992188 | 2 | [] | no_license | package xbp.core.base;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import xbp.core.data.SqlCon;
import xbp.core.model.auth.LoginUserView;
import xbp.core.model.organization.CompanyModel;
import xbp.core.model.organization.UserModel;
import xbp.core.uti... | true |
7828a4c2edeb7d0d626867d949120c24cba4ed80 | Java | darkhipo/SpringDynamicMessageProcessor | /src/test/java/com/calamp/connect/messageprocessor/BaseTestSuite.java | UTF-8 | 6,377 | 2.03125 | 2 | [] | no_license | /**
Dmitri, Arkhipov
Aug 27, 2015
**/
package com.calamp.connect.messageprocessor;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import java.net.URL;
import java.util.Arrays;
import org.apache.log4j.Logger;
import org.junit... | true |
9dd45ccdcf426984fb09cd4d9488d8d2ff80fe87 | Java | SEDB/PESTTMuTest | /PESTTMuTest/src/domain/controller/MutationOperatorsController.java | UTF-8 | 2,067 | 2.359375 | 2 | [] | no_license | package domain.controller;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
import org.eclipse.jdt.core.dom.ASTNode;
import domain.mutation.Mutation;
import domain.mutation.operators.IMutationOperators;
import domain.mutation.operators.ManagerMutationOperators;
public class MutationOpe... | true |
ba671662e075f6b4ff4d0c9000304156dfb9db61 | Java | zacck-zz/MODe | /src/com/semasoft/MODe/Rating_Bar.java | UTF-8 | 1,180 | 2.3125 | 2 | [] | no_license | package com.semasoft.MODe;
import android.app.Activity;
import android.os.Bundle;
import android.widget.RatingBar;
import android.widget.TextView;
public class Rating_Bar extends Activity implements RatingBar.OnRatingBarChangeListener{
RatingBar rating; // declare RatingBar object
TextView ratingText, songDets;// ... | true |
75b6fff3dc71a914481b6039c4103c719bceccf6 | Java | zisenz/F2Native | /demos/android/src/main/java/com/antgroup/antv/f2/samples/charts/SingleLineChart_1.java | UTF-8 | 1,823 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.antgroup.antv.f2.samples.charts;
import com.antgroup.antv.f2.F2CanvasView;
import com.antgroup.antv.f2.F2Chart;
import com.antgroup.antv.f2.samples.Utils;
/**
* 基础折线图-1
* @author qingyuan.yl
* @date 2020-09-27
*/
public class SingleLineChart_1 implements F2CanvasView.Adapter {
private F2Chart mCha... | true |
7ce041de5ee7967a2f1bb39ba109f06f7091ba87 | Java | rlangille2/App | /src/main/java/domain/Share.java | UTF-8 | 1,061 | 2.390625 | 2 | [] | no_license | package domain;
import java.math.BigDecimal;
import java.time.LocalDate;
public class Share {
private int shareId;
private int loanId;
private int bankId;
private String account;
private BigDecimal amount;
private LocalDate startDate;
private LocalDate endDate;
public int getId() {
return shareId;
}
... | true |
1c64a5f331ff49dc6b7de3e6d79802bcac017acf | Java | linking123/PressureSensor | /app/src/main/java/com/suncreate/pressuresensor/bean/user/GoodsRequire.java | UTF-8 | 1,925 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.suncreate.pressuresensor.bean.user;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by chenzhao on 17-1-5.
*/
public class GoodsRequire implements Parcelable {
/**
* 配件分类Id
**/
private String gcId;
/**
* 配件分类名称
*/
private String gcName;
/**
... | true |
8f2211add8c37021c8d7ded6c847e5d023e865e7 | Java | kkoning/SimpleGridExecutorService | /src/sres/SocketListenerThread.java | UTF-8 | 1,855 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package sres;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* Note that this class has fairly weak security precautions. It is designed
* to be run in a mostly-trusted environment.
*
* @a... | true |
0886431741805968d4840dbf424453c7e8227bc0 | Java | anna-berg/Engine_test | /src/main/java/com/berg/services/Writer.java | UTF-8 | 348 | 2.796875 | 3 | [] | no_license | package com.berg.services;
public class Writer {
public void write(Integer id, String firstName, String secondName, String department){
String result = """
Employee = {id: %d, First Name: %s, Second Name: %s, Department: %s.}""".formatted(id, firstName, secondName, department);
System.o... | true |
08fbb7013d08945429bb0644a403e39cb4729759 | Java | hanpenghu/luxclub_android | /util/src/main/java/com/hsbank/util/java/tool/loan/repayment_plan/RepaymentPlanFactory.java | UTF-8 | 1,487 | 2.6875 | 3 | [] | no_license | package com.hsbank.util.java.tool.loan.repayment_plan;
import com.hsbank.util.java.tool.loan.repayment_plan.impl.AverageCapital;
import com.hsbank.util.java.tool.loan.repayment_plan.impl.AverageCapitalPlusInterest;
import com.hsbank.util.java.tool.loan.repayment_plan.impl.InterestFirstDebtService;
import com.hsbank.ut... | true |
9a1814f168683c8e478bd95997a4118d7069f542 | Java | luzheqi1987/LeetCode | /LeetCode/src/lzq/leetcode/better/normal/RemoveDuplicatesfromSortedArrayII.java | UTF-8 | 1,094 | 3.703125 | 4 | [] | no_license | package lzq.leetcode.better.normal;
public class RemoveDuplicatesfromSortedArrayII {
/**
* Follow up for "Remove Duplicates": What if duplicates are allowed at most
* twice?
*
* For example, Given sorted array A = [1,1,1,2,2,3],
*
* Your function should return length = 5, and A is now [1,1,2,2,... | true |
4f06571939d40cd2767ae6fd2efdf43e76d42f75 | Java | Lolimpo/SibSUTIS | /Course 4/Mobile Programming/phong/app/src/main/java/ru/mikheev/phong/MyRenderer.java | UTF-8 | 6,649 | 2.171875 | 2 | [] | no_license | package ru.mikheev.phong;
import android.content.Context;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
import android.opengl.Matrix;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khr... | true |
9c50ecf89d9831f86dbea78dfdea6160bc9b54eb | Java | Duongnvse62382/BikeReantal | /BikeRental/app/src/main/java/com/duongnv/bikerental/BookBikeActivity.java | UTF-8 | 14,471 | 1.609375 | 2 | [] | no_license | package com.duongnv.bikerental;
import android.Manifest;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import android.support.annotation.NonNull;
import a... | true |
fd200487e980ce413e7e3a8cecc8fa2c11bfe6cf | Java | gengzi/GLog | /Glog-core/src/main/java/fun/gengzi/core/GlogTransformer.java | UTF-8 | 1,453 | 2.421875 | 2 | [] | no_license | package fun.gengzi.core;
import fun.gengzi.core.jdk.GlogClassVisitor;
import fun.gengzi.core.jdk.JdkClassInstrumentationFactory;
import fun.gengzi.core.myclass.ClassInstrumentationFactory;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.ClassWriter;
import java.io... | true |
198c3f03b966bb41405b012b790aaf50056a5bc8 | Java | tkrille/osiam-connector4java | /src/main/java/org/osiam/client/OsiamGroupService.java | UTF-8 | 4,585 | 2.078125 | 2 | [] | no_license | /*
* Copyright (C) 2013 tarent AG
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
... | true |
856b195ac12de2277abbcfc82c7e60103b27a619 | Java | ssoper-usgs/nar-services | /nar-webservices/src/main/java/gov/usgs/cida/nar/service/MloadsService.java | UTF-8 | 3,434 | 2.078125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | package gov.usgs.cida.nar.service;
import gov.usgs.cida.nar.domain.TimeSeriesAvailability;
import gov.usgs.cida.nar.domain.TimeSeriesCategory;
import gov.usgs.cida.nar.domain.TimeStepDensity;
import gov.usgs.cida.nar.mybatis.dao.MloadsDao;
import gov.usgs.cida.nar.mybatis.model.Mloads;
import gov.usgs.cida.nar.mybatis... | true |
968e8c017a18fdf3a046e562b4adacf4c8d0e68f | Java | dr-natetorious/TIM-8101-Principals_of_Computer_Science | /Week8_Capstone/Artifacts/bytecode/de/blox/graphview/g$a.java | UTF-8 | 1,507 | 1.726563 | 2 | [] | no_license | class de.blox.graphview.g$a extends android.view.GestureDetector$SimpleOnGestureListener {
final de.blox.graphview.g a;
de.blox.graphview.g$a(de.blox.graphview.g, de.blox.graphview.g$1);
Code:
0: aload_0
1: aload_1
2: invokespecial #19 // Method "<init>":(Lde/blox/graphview... | true |
aa86f1f1b3a01da82b1bf4982ef61bd63f138d6e | Java | TestDrivenDeveloppement/Statistic | /src/test/java/mock/ProjetDaoMock.java | UTF-8 | 851 | 2.53125 | 3 | [] | no_license | package mock;
import daorefactoring.Dao;
import model.Employe;
import model.Industrie;
import model.Projet;
import java.sql.Connection;
import java.util.ArrayList;
public class ProjetDaoMock extends Dao<Projet> {
private Industrie industrie1 = new Industrie(1, "Veolia");
private Industrie industrie2 = new I... | true |
2ede8aafb11aa1ed2a68aaf41743cba15db7b200 | Java | faskalis11/JavaEEfootball | /src/main/java/lt/vu/controllers/IncomeTaxesDecorator.java | UTF-8 | 1,020 | 2.296875 | 2 | [] | no_license | package lt.vu.controllers;
import lombok.Getter;
import lt.vu.api.TaxesCalculator;
import lt.vu.dao.TaxesDAO;
import lt.vu.entities.Taxes;
import javax.decorator.Decorator;
import javax.decorator.Delegate;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Default;
import javax.inject.Inject;
import j... | true |
908734ecc5d0e2d81bf551a03f4e3992080da49d | Java | ezio143/Nirvana | /app/src/main/java/com/example/dell/nirvana1/Rooms.java | UTF-8 | 2,113 | 2.296875 | 2 | [] | no_license | package com.example.dell.nirvana1;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.example.dell.nirvan... | true |
b3195a8cb2d2711a39a8670b81227daf00d84129 | Java | jason-yang31415/gl3DGE | /src/render/shader/ShaderUpdater.java | UTF-8 | 103 | 1.953125 | 2 | [
"MIT"
] | permissive | package render.shader;
public interface ShaderUpdater {
public void update(ObjectShader shader);
}
| true |
b88f221723da4a591d6e291a2b0e0c2e3a5fa902 | Java | MariaNosareva/SnakeGame | /src/ru/mipt/app/view/food/FruitView.java | UTF-8 | 430 | 2.578125 | 3 | [] | no_license | package ru.mipt.app.view.food;
import javafx.scene.canvas.GraphicsContext;
import ru.mipt.app.model.food.Color;
public class FruitView {
protected Color color;
protected GraphicsContext gc;
FruitView(Color color, GraphicsContext gc) {
this.color = color;
this.gc = gc;
}
public v... | true |
9c25951b66221a8cdfef22a67397b2f3a5585055 | Java | aasom143/All-in-One | /app/src/main/java/com/example/somesh/somesh_2048/Q5.java | UTF-8 | 1,986 | 2.0625 | 2 | [] | no_license | package com.example.somesh.somesh_2048;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
public class Q5 extends AppCompatActivity... | true |
c04fc03a4a9d9b6dbeb87423e6709c8167f5a3ed | Java | vaibhavguptaIITD/spring-hibernate | /hibernateSpring/src/main/java/com/demo/person/model/Person.java | UTF-8 | 635 | 2.359375 | 2 | [] | no_license | package com.demo.person.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="person")
public class Person implements java.io.Serializable {
@Id @GeneratedValue
private Long id;
private String name;
pri... | true |
80b628906266a9297e9eca015987f3f2bf0b4826 | Java | MeetYouDevs/Android-Skin | /skinlib/src/main/java/com/meiyou/skinlib/IAndroidSkin.java | UTF-8 | 2,386 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.meiyou.skinlib;
import android.app.Application;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import com.meiyou.skinlib.loader.SkinLoader;
/**
* Author: meetyou
* Date: 17/11/10 11:10.
*/
public interface IAndroidSkin {
/**... | true |
b32ce099bca49404bea39dd665754d3e0a1cbae5 | Java | GAMST12/TestProjectWeb | /src/main/java/ua/skillsup/webproject/model/additional/DepositWithdrawal.java | UTF-8 | 276 | 2.0625 | 2 | [] | no_license | package ua.skillsup.webproject.model.additional;
import java.math.BigDecimal;
public class DepositWithdrawal {
private BigDecimal sum;
public BigDecimal getSum() {
return sum;
}
public void setSum(BigDecimal sum) {
this.sum = sum;
}
}
| true |
1efef999771f1015df550c3fad2efef64f6bd356 | Java | appi123/ResourceAdda | /RA/.svn/pristine/9b/9bf5cae21bed2609c52bd4ad976b6e245768554e.svn-base | UTF-8 | 21,680 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package com.ojas.ra.rest.resources;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java... | true |
ab5ed2f556b7b9b6afa005cdf19d3fa3037d7d49 | Java | karankrishan/workdesk | /factorialTest/src/com/karan/generics/StackUtil.java | UTF-8 | 302 | 2.96875 | 3 | [] | no_license | package com.karan.generics;
/**
* @author KARAN KRISHAN
* This is sample class written to draw the structure of generics.
*/
public class StackUtil {
public <T> Stack<T> reverse(Stack<T> in) {
Stack<T> out = new ArrayStack<T>();
while(!in.isEmpty()){
out.push(in.pop());
}
return out;
}
}
| true |
6dcd6ebd25f42a77fed58f0d15dce3dbea50afc6 | Java | vadim-bashynskiy/javacore | /src/main/java/com/bashynskiy/app/classwork/lesson9/StringPolindrome.java | UTF-8 | 590 | 3.453125 | 3 | [] | no_license | package com.bashynskiy.app.classwork.lesson9;
/**
* Created by admin on 10.04.2017.
*/
public class StringPolindrome {
public void polindromeString() {
String palindrome = "moom";
boolean isPalindrome = true;
for (int i = 0; i < palindrome.length() / 2; i++) {
isPalindrome ... | true |
3059f365bc318e01d7581ceaf9f8e1b948c53b41 | Java | vandhanaa/Fibonacci | /ProjectManager/src/com/icreate/projectx/CommentBaseAdapter.java | UTF-8 | 2,208 | 2.359375 | 2 | [] | no_license | package com.icreate.projectx;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.icreate.pr... | true |
221faea315f9ef88d22c19a12978372c2e402e22 | Java | lgosek/SOA-classes | /soap-jpa/src/main/java/pl/edu/agh/soa/jpa/StudentInfo.java | UTF-8 | 1,051 | 2.53125 | 3 | [] | no_license | package pl.edu.agh.soa.jpa;
import javax.persistence.*;
@Entity
@Table(name = "StudentInfo")
public class StudentInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "studentInfoId")
private Integer id;
@Column(name = "firstName")
private String firstName;
@Colu... | true |
b94bbc83fbccfeeba6226bdce5901ab3afe26c98 | Java | JosephSousa/caroneiro | /src/main/java/com/texugos/caronas/factory/DaoFactory.java | UTF-8 | 368 | 2.234375 | 2 | [] | no_license |
package com.texugos.caronas.factory;
/**
*
* @author Joseph Sousa
* @mail Jsantos.te@gmail.com
* @Since 15/07/2017 , 18:47:54
*/
public class DaoFactory {
public static final int DAO_BD = 0;
public static DaoFactoryIf createFactory(int factoryType) {
if (factoryType == DAO_BD){
... | true |
6d7d048d35b57245fb71a3f6dac8c047d464cabd | Java | lunax28/SpotyCheck | /src/main/java/SpotyCheckAlbumController.java | UTF-8 | 5,842 | 2.15625 | 2 | [] | no_license | /**
* Sample Skeleton for 'spotyCheckAlbums.fxml' Controller Class
*/
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import com.equilibriummusicgroup.SpotyCheck.model.Model;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import javafx.event.ActionEvent;
impor... | true |
64c9574520cc8441bb63069932015436e7f38e32 | Java | Zebosh/EU4TestNGSelenium | /src/test/java/com/cybertek/pages/LoginPage.java | UTF-8 | 1,697 | 2.15625 | 2 | [] | no_license | package com.cybertek.pages;
import com.cybertek.utilities.ConfigurationReader;
import com.cybertek.utilities.Driver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.testng.annotations.Test;
public class LoginPage {
publi... | true |
dabd0836c4ddea80aec791bc1cf926fb896b332f | Java | godo03/test6 | /app/src/main/java/com/thesis/let/webservicedemo/screens/HighScoresSports.java | UTF-8 | 3,401 | 2.03125 | 2 | [] | no_license | package com.thesis.let.webservicedemo.screens;
import android.content.Intent;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNu... | true |
00ee141658292ee6750776d9ab046f50a596d534 | Java | v587China/hibernate | /src/main/java/com/ultra/hibernate/model/A010HibernateTest.java | UTF-8 | 1,651 | 2.328125 | 2 | [] | no_license | package com.ultra.hibernate.model;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.boot.Metadata;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl;
import org.hibern... | true |
76cad053a01d09b9c07d1a6a886f2b9ea17531f8 | Java | perfectsense/gyro-aws-provider | /src/main/java/gyro/aws/apigatewayv2/ApiJwtConfiguration.java | UTF-8 | 2,048 | 2.09375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | /*
* Copyright 2020, Brightspot.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
1e857785be945c702cb8463237d8bba764743df0 | Java | Techcable/JStruct | /src/main/java/net/techcable/jstruct/StructData.java | UTF-8 | 1,165 | 2.515625 | 3 | [
"MIT"
] | permissive | package net.techcable.jstruct;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.FieldNode;
import java.util.L... | true |
fca1df8004d67ca1c6fac468561aea91310070bb | Java | wcc85178/newspos | /sposparent/sposdao/src/main/java/com/shiyi/sposdao/dao/FactoryDAO.java | UTF-8 | 487 | 1.867188 | 2 | [] | no_license | package com.shiyi.sposdao.dao;
import com.shiyi.sposdao.entity.Factory;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@Mapper
@Repository
public interface FactoryDAO {
int deleteByPrimaryKey(Byte factoryId);
int insert(Factory record);
int insertSelective... | true |
9a04dec4a04f9e24578766db21f0be0d1015bcfb | Java | bsadkhin/BiochemistryAPI | /lib/src/us/kbase/biochemistryapi/Compound.java | UTF-8 | 5,078 | 1.976563 | 2 | [
"MIT"
] | permissive |
package us.kbase.biochemistryapi;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fast... | true |
8df46c08b137f5e9806559194eb0ff628affc941 | Java | javaturk/OOPJ | /src/org/javaturk/oopj/ch12/inheritance/init/InitializationOrder.java | UTF-8 | 2,007 | 3.125 | 3 | [
"MIT"
] | permissive |
package org.javaturk.oopj.ch12.inheritance.init;
/**
* @author <a href="mailto:akin@javaturk.org">Akin Kaldiroglu</a>
* <p>
* For more info please
* @see <a href="http://www.javaturk.org">http://www.javaturk.org</a>
* @see <a href="http://www.selsoft.com.tr">http://www.selsoft.com.tr</a>
... | true |
356bf07e1a769d4568a64cacc0a950c4db619442 | Java | biatlon84/1.3_Basics_code_development | /Task_2/src/com/epam/training/fun/Main.java | UTF-8 | 968 | 3.78125 | 4 | [] | no_license | package com.epam.training.fun;
import java.util.Scanner;
//Loop calculate value of function for length [a,b] step h; (task2)
//y = x, x >2; y = - x, <= 2;
public class Main {
public static void main(String[] args) {
Scanner sk = new Scanner(System.in);
double a, b, h, y;
System.out.println("type value of A\... | true |
e23ed18d3a6cc494fa39515c7a74982549e75a32 | Java | mk26/Shipwars | /src/DeployState.java | UTF-8 | 1,028 | 3 | 3 | [] | no_license | public class DeployState implements GameState {
Player currentPlayer;
Player nextPlayer;
DeployState(Player currentPlayer, Player nextPlayer)
{
this.currentPlayer=currentPlayer;
this.nextPlayer=nextPlayer;
ShipWarsUtility.refreshBoard(currentPlayer.board);
System.out.pr... | true |
587691608e5639f8c66a66bf5b19ab3d0d66edf6 | Java | worm128/elasticsearch-demo | /src/main/java/com/elastic/document/Elasticsearch1AddDemo.java | UTF-8 | 5,642 | 2.328125 | 2 | [] | no_license | package com.elastic.document;
import org.apache.http.HttpHost;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.DocWriteResponse;
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.support.replication.... | true |
62d1e9218ff20e54f61e0da02e59f343d18e3169 | Java | wundermahn/Wheel-of-Jeopardy | /View/QuestionEditor.java | UTF-8 | 12,414 | 2.53125 | 3 | [] | no_license | /*
Code was created by Anthony (Tony) Kelly as a result of Johns Hopkins Engineering for Professionals course 605.621.84 -
Foundations of Software Engineering.
The following code should create and initiate the main menu class, and should require all I/O listed in the Team DMV SRS & Design Documents.
*/
package View;... | true |
75ca08cde0488b5904f86397d5763941b0bf8727 | Java | piotrdurniat/moore-machine-graph | /src/moore_machine/MooreEdge.java | UTF-8 | 1,449 | 3.046875 | 3 | [] | no_license | /*
* Application for editing and graphical visualization of Moore Machine Graphs
*
* Author: Piotr Durniat
* Date: 03.12.2020
* Group: E03-11f
*/
package moore_machine;
import java.awt.Graphics;
import java.awt.Font;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.geom.Point2D;
public ... | true |
6295cc3cb18cb59d71031a246fc83e3e5347bb8d | Java | zxzzzz/algorithm | /最长公共子序列.java | UTF-8 | 2,167 | 3.40625 | 3 | [] | no_license | import java.util.*;
//实验二 动态规划 基本题一
//最长公共子序列 严格递增下标
public class Chap21 {
static StringBuilder builder=new StringBuilder();
static String longest;
public static void main(String []args){
System.out.println("请输入两个数组:");
Scanner scanner=new Scanner(System.in);
String ss=scanner.next();
//System.out.println("... | true |
27f2cc3e026f1da85beb05d4b652444bb9572907 | Java | ideaconsult/ambit-mirror | /ambit2-all/ambit2-fp/src/main/java/ambit2/descriptors/simmatrix/SimilarityMatrixDouble.java | UTF-8 | 1,100 | 2.625 | 3 | [] | no_license | package ambit2.descriptors.simmatrix;
import ambit2.similarity.measure.EuclideanDistance;
public class SimilarityMatrixDouble extends SimilarityMatrix<double[]> {
public SimilarityMatrixDouble() {
super();
setDistance(new EuclideanDistance());
}
@Override
protected L parseLineDense(String line, lo... | true |
31cd1138b55b51f1f48169d547c82814118d0d76 | Java | kangjiabang/configcenter | /configcentercommon/src/main/java/com/netty/configcenter/utils/PathUtils.java | UTF-8 | 821 | 2.21875 | 2 | [] | no_license | package com.netty.configcenter.utils;
import com.netty.configcenter.constant.Constants;
/**
* @Author:zeqi
* @Date: Created in 15:33 8/2/18.
* @Description:
*/
public class PathUtils {
/**
* 构建存放的目录
* @param module
* @param subModule
* @param key
* @return
*/
public static S... | true |
fc9859cf1f7211a660aaee7e9b2d0abe417458b6 | Java | gustavoovalle470/GBReferenceBOs | /src/main/java/com/gabyval/referencesbo/system/AdIdControl.java | UTF-8 | 4,060 | 1.953125 | 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.gabyval.referencesbo.system;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
... | true |
021261852ae688d54fc8a68176243294b88237be | Java | frozenc/leetcode | /src/BasicAlgorithm/Sort/QuickSort.java | UTF-8 | 1,157 | 3.625 | 4 | [] | no_license | package BasicAlgorithm.Sort;
//快排
public class QuickSort {
public int[] QuickSort(int[] nums) {
QuickSort(0, nums.length-1, nums);
return nums;
}
public void QuickSort(int left, int right, int[] nums) {
if (left < right) {
int pivot = Partition(left, right, n... | true |
904d9aa89abdbef1e39955f1c6c5b16205b4bacf | Java | JohnBelly95/AIBackgammon | /Main.java | UTF-8 | 12,980 | 2.796875 | 3 | [] | no_license | //Ζαχαριάδης Ιωάννης p3130063 Δελιβοριάς Μάριος p3130050
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.imageio.*;
public class Main {
private static Dice d6a,d6b;
private static B... | true |
8ffcab765d2f7d758efd673dd8d4338c3699f81c | Java | JoseAlonsoLora/ControlVenta | /Codigo/ServiciosJava/ServiciosVentas/src/java/modelo/Venta.java | UTF-8 | 4,751 | 1.953125 | 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 modelo;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
impor... | true |
951153459a48e7329791b48db0c5f90eb3fa92cb | Java | AishwaryaaP/pseudonerds | /AutomatedMeetingBookingSystem/src/main/java/com/AutomatedMeetingBookingSystem/dao/MeetingDaoImpl.java | UTF-8 | 8,418 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.AutomatedMeetingBookingSystem.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.BasicConfigurator;
impo... | true |
f667ea1ab8db5030037981a535e1a3130f02d9c2 | Java | gbr5023/THON | /src/thon/THON.java | UTF-8 | 723 | 2.34375 | 2 | [] | no_license | package thon;
import java.io.File;
import thon.controllers.LoginCntl;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
*
* @author Gisward
*/
public class THON
{
public static void main(String[] args)
{
try
{
UIManager.setLookAndFeel... | true |
b94f2a10cdb85aa228ee0a14fa009654b9798779 | Java | gallb/users | /wildfly-users-web/src/main/java/gallb/wildfly/users/web/ManagedBean.java | UTF-8 | 2,344 | 2.15625 | 2 | [] | no_license | /**
*
*/
package gallb.wildfly.users.web;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.jboss.logging.Logger;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.naming.InitialContext;
import javax.naming.NamingExcepti... | true |
010dc1d24579da647c2d0898c143cd7301edfdcc | Java | YuyaHorikoshi/GUI | /src/vol2/ch02/JComboTest06.java | UTF-8 | 2,279 | 3 | 3 | [] | no_license | package vol2.ch02;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class JComboTest06 extends JFrame {
JTextField tf;
JComboBox combo1, combo2, combo3;
public static void main(String[] args) {
JComboTest06 w = new JComboTest06( "JComboTest06" ... | true |
68bd2c66af71dd1128b6ff094b7d0882e91e4f47 | Java | heqiyoujing/spring | /src/main/java/com/example/demo/designPattern/Meal.java | UTF-8 | 547 | 3.78125 | 4 | [] | no_license | package com.example.demo.designPattern;
/**
* 创建对象模式三剑客的第二个成员是工厂方法设计模式。
* 第三个抽象工厂模式
*/
public class Meal {
private String type;
public Meal(String type) {
this.type = type;
}
public String getType() {
return this.type;
}
// 静态工厂方法
public static Meal valueOf(String ingr... | true |
61e00bfab4652b0a7372e73d3efa6e3dbf409b78 | Java | lovemelon2017/SummaryHs | /app/src/main/java/com/hanchao/summary/multiple/MultipleActivity.java | UTF-8 | 2,840 | 2.15625 | 2 | [] | no_license | package com.hanchao.summary.multiple;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import com.blankj.utilcode.util.ToastUtils;
... | true |
ade942fbb47221e9ecfedfa8fcf29b733436eefc | Java | noikiy/pycsh | /src/com/authority/service/impl/MenuServiceImpl.java | UTF-8 | 1,317 | 2.109375 | 2 | [] | no_license | package com.authority.service.impl;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.authority.dao.MenuDao;
import com.authority.service.MenuServ... | true |
89d258d29ce2c6132e5b0ee6eb9fc144b1aefeed | Java | zhangxq/DemoCollection | /MyApplication/app/src/main/java/com/zhangxq/democollection/danmudemo/DanmuActivity.java | UTF-8 | 3,506 | 1.585938 | 2 | [] | no_license |
package com.zhangxq.democollection.danmudemo;
import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.Bitma... | true |
6513d5628bde1260bfc4c511dfae3635fcf749d6 | Java | YanaLushch/cs-106a-in-shpp | /assignment1/Assignment1Part3.java | UTF-8 | 2,393 | 3.453125 | 3 | [] | no_license | package com.shpp.p2p.cs.ylushch.assignment1;
import com.shpp.karel.KarelTheRobot;
public class Assignment1Part3 extends KarelTheRobot {
//Midpoint Finding
public void run() throws Exception {
//Karel moves the row and put beepers on two opposite corners to to find out borders
putBeepersOnCorne... | true |