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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2eaa884b57d1ea3ef2fa1a16195bd42627266c98 | Java | andryspo/Neuron-Network | /src/sample/iris/Iris.java | UTF-8 | 725 | 2.90625 | 3 | [] | no_license | package sample.iris;
import java.util.ArrayList;
import java.util.List;
public class Iris {
public static final int COUNT_OF_PARAMS = 4;
private List<Double> parameters;
public Iris(List<Double> parameters) {
this.parameters = parameters;
}
public Iris(String[] params) {
parame... | true |
d89e64ab06c216a3def130dea932a4b692e1d484 | Java | toughie88/Machine-Learning-for-Malware-Data-Analysis | /WuKong/com/adobe/reader/PARSecurityManager.java | UTF-8 | 5,641 | 1.882813 | 2 | [] | no_license | package com.adobe.reader;
import android.content.Context;
import android.content.res.Resources;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.OrientationEventListener;
import android.view.View;
import android.view.View.OnClickListener;
import andr... | true |
9a1456ca8d95c6fea9ccc1bbe37e796402787aa4 | Java | AzulVega/Comision-2-Grupo-9-InstitutoAbierto | /src/instituto/vistas/AlumnosPorCurso.java | UTF-8 | 9,411 | 2.671875 | 3 | [] | no_license |
package instituto.vistas;
import instituto.controlador.CursoData;
import instituto.modelo.Conexion;
import instituto.modelo.Curso;
import java.util.ArrayList;
public class AlumnosPorCurso extends javax.swing.JFrame {
ArrayList<String> listaDeCursos = new ArrayList();
Conexion conexion = new Conexion();... | true |
0d26ae1cca991f254d1bea0144d71a4333556941 | Java | ddd5733/MVC-Pattern | /김성용_eclipse_source/JSL_pjt/src/packAB/fpstb.java | UTF-8 | 647 | 2.921875 | 3 | [] | no_license | package packAB;
import java.util.ArrayList;
public class fpstb {
public static void main(String[] args) {
sub sub = new sub();
sub.test();
String a ="aaWW";
if(a.equalsIgnoreCase("AAww")) System.out.println("같드아");
if(a.equals("Y")) System.out.println("같다");
ArrayList<String> arr = new ArrayList()... | true |
33aa03cb5989a4c46e619284a7bcbdc30feb88d9 | Java | swdevbali/A-Tactical-RPG-Engine | /src/editor/editors/UnitsPanel.java | UTF-8 | 19,191 | 2.0625 | 2 | [] | no_license | package editor.editors;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.LayoutManager;
import java.awt.event.*;
import java.io.File;
import java.util.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.DefaultFormatter;
import org.apache.log4j.... | true |
80dae830d0ad64e8789482adcf459d57998bff3a | Java | vicpebarragan/Taller-Refactoring | /TalllerRefactoring/src/modelos/Profesor.java | UTF-8 | 575 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | package modelos;
import java.util.ArrayList;
public class Profesor extends Persona{
private String codigo;
private ArrayList<Paralelo> paralelos;
private int añosdeTrabajo;
private String facultad;
private double BonoFijo;
public Profesor(String codigo, String nombre, String apellido, int eda... | true |
f24d27ccd00b309d149e8ca38fa16d795863cfc2 | Java | benbenben20/midaipay | /test/.svn/pristine/d8/d847ac70ee4b3011eeb330a69f1210fb30d160e0.svn-base | UTF-8 | 716 | 2.046875 | 2 | [] | no_license | package com.fncat.xswipe.a_thread;
import android.os.Handler;
import com.fncat.xswipe.MainActivity;
import com.fncat.xswipe.controller.POSManage;
import com.fncat.xswipe.utils.Utils;
/**
* 获取电子现金余额
*
* @author Fncat
* @data 2014-4-24上午11:37:10
*/
public class Balance extends Thread {
private Handler mHandler;... | true |
f560d6b9974c908fb8d2ae283ea2c4789579b35d | Java | Selvanegra22/vidge | /org.vidge.test/src/org/vidge/test/form/TestForm3.java | UTF-8 | 4,490 | 2.203125 | 2 | [] | no_license | package org.vidge.test.form;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.eclipse.swt.graphics.Color;
import org.langcom.locale.LocalizedString;
import org.vidge.form.IForm;
import org.vidge.test.entity.FormTestClass;
import org.vidge.test.entity... | true |
8f0e1f22896c43893d9cfd65a79cec82fcdd2486 | Java | ankur-mishra-07/papple | /java/com/ifocus/papple/activity/SignUpActivity.java | UTF-8 | 13,315 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package com.ifocus.papple.activity;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.app.AppCompatActivity;
import andr... | true |
15bd218e9395f0c001b71956765388f8843afe2a | Java | ymyurdakul/Selcuk-Universitesi-Mobi-Uygulamas- | /MyApplication18/app/src/main/java/com/example/mustafa/myapplication/PhonePerson.java | UTF-8 | 678 | 2.75 | 3 | [] | no_license | package com.example.mustafa.myapplication;
public class PhonePerson {
private String name,phone,detail;
public PhonePerson(String name,String detail, String phone ) {
this.name = name;
this.phone = phone;
this.detail = detail;
}
public String getName() {
return name;
... | true |
56ce863295298d96d731e2f90a7aabf0817f210e | Java | Arhind/HackerRank | /LeftRotation.java | UTF-8 | 968 | 3.828125 | 4 | [] | no_license | /* HackerRank Problem
* Left rotation of array
* https://www.hackerrank.com/challenges/array-left-rotation/problem?h_r=next-challenge&h_v=zen
*/
package hackerRank;
import java.util.*;
public class LeftRotation{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Sy... | true |
93d5d30654f00e898dc9d9df2b67f5a9473353b1 | Java | irresistible0202/untitled32 | /src/entity/Enemy.java | UTF-8 | 1,376 | 2.84375 | 3 | [] | no_license | package entity;
import window.Game;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class Enemy extends GameObject {
BufferedImage image;
public Enemy(Game game, int x, int y) {
super(game, x, y);
... | true |
d3cd671d5878ac089177110dc9613b6c7788210d | Java | TsRebornz/unimirea-client-extensions-ver2.0 | /unimirea_code/src/main/java/ru/tandemservice/uniclient/unimirea_code/migration/MS_unimirea_code_1x0x0_10to11.java | UTF-8 | 1,413 | 1.820313 | 2 | [] | no_license | package ru.tandemservice.uniclient.unimirea_code.migration;
import org.tandemframework.dbsupport.ddl.DBTool;
import org.tandemframework.dbsupport.migration.IndependentMigrationScript;
import org.tandemframework.dbsupport.migration.ScriptDependency;
/**
* Автоматически сгенерированная миграция
*/
@SuppressWarnings({... | true |
0ec44df42c669ecf48b2f14265bfe3086fa26e29 | Java | junaidp/supervisor | /src/com/wbc/supervisor/shared/dashboardutilities/switchprobe/SwtichprobeReportInfo.java | UTF-8 | 597 | 1.703125 | 2 | [] | no_license | package com.wbc.supervisor.shared.dashboardutilities.switchprobe;
import com.wbc.supervisor.shared.dashboardutilities.ErrorInfo;
import java.util.ArrayList;
public interface SwtichprobeReportInfo
{
ErrorInfo getErrorInfo();
void setErrorInfo( ErrorInfo errorInfo );
GeneralInfoImpl getGeneralData();
... | true |
330098a4efbeea26d1fa2bf6e7355b01896df97d | Java | pandaria/farmland | /gifts-biz/src/main/java/com/pandaria/farmland/biz/component/ControllerResponseAdvice.java | UTF-8 | 787 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.pandaria.farmland.biz.component;
import com.pandaria.farmland.biz.component.exception.RecordAlreadyExistsException;
import com.pandaria.farmland.biz.component.exception.RecordNotFoundException;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ExceptionHandler;
... | true |
77e36e7260a2bf79051d4d0367d2f927d6760d15 | Java | sruegg/LicenseKeeperEJB | /ejbModule/session/LicenseKeeperBean.java | UTF-8 | 5,913 | 2.296875 | 2 | [] | no_license | package session;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceException;
import persistance.*;
@Stateless
public class LicenseKeeperBean implements LicenseKeeper, LicenseKeeperR... | true |
b05312b5e95ee3f02c04b3d90597f0b3428a4e34 | Java | COdiwuor/BoostGym | /app/src/main/java/com/example/android/boostgym/GyminstructorActivity.java | UTF-8 | 1,875 | 2.3125 | 2 | [] | no_license | package com.example.android.boostgym;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycle... | true |
030f8c0fdbf7cc8063610b9018ee3347f4751b96 | Java | henrik242/openiam-idm | /openiam-webconsole/src/main/java/org/openiam/webadmin/access/PolicyAction.java | UTF-8 | 18,910 | 1.960938 | 2 | [] | no_license | /**
* ------------------------------------------------------------------------------
* Title: PolicyAction Author: APS 04-09-2004 Overview:Handles all functions
* like adding , updating, deleting and viewing Policies for available Services.
* ---------------------------------------------------------------------... | true |
3e32b93e9beab1824d4fb43f9b7fa30fb6132bba | Java | ZhixingZhou/RuleMiningApplication | /src/seu/zzx/panel/DataSourceInfoPanel.java | UTF-8 | 25,975 | 1.984375 | 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 seu.zzx.panel;
import java.awt.Color;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import ja... | true |
daf56b5ad285a3030c94ef7e33811c041817eaff | Java | braisdom/ObjectiveSql-IntelliJ-Plugin | /src/main/java/com/github/braisdom/objsql/intellij/ModelMethodBuilder.java | UTF-8 | 3,086 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.braisdom.objsql.intellij;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiModifier;
import com.intellij.psi.PsiType;
import com.intellij.psi.impl.light.LightFieldBuilder;
import java.util.List;
import static com.github.braisdom.objsql.intel... | true |
3906a4b55236571278aa23d1e6b36256567b007d | Java | prathaphegde/Playground | /Checking for Perfect Batch/Main.java | UTF-8 | 755 | 3.234375 | 3 | [] | no_license | import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int list[] = new int[n];
for(int i = 0;i<=n-1;i++)
{
list[i] = in.nextInt();
}
int sum = 0;
int next = 0;
int div = ... | true |
b51cf27fc4e3316b0d5833916f631b4f103fd121 | Java | Rajeeveie/java | /src/tightCoupling/TestMusic.java | UTF-8 | 442 | 2.796875 | 3 | [] | no_license | package tightCoupling;
import java.util.Scanner;
public class TestMusic {
public static void main(String[] args) {
AviPlayer a =new AviPlayer();
Scanner sc=new Scanner(System.in);
System.out.println("please type a song to listen in Avi format");
String song=sc.nextLine();
a.play(song);
Mp4Player m=n... | true |
29fb4ffc167a791f05dee6da8924bfb69f923c2c | Java | chuanjiabao1981/check_v3_android | /src/com/check/v3/ui/dialog/ProgressDialogFragment.java | UTF-8 | 2,319 | 2.28125 | 2 | [] | no_license | package com.check.v3.ui.dialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import com.actionbarsherlock.app.SherlockDialogFragment;
import com.check.v3.ui.dialog.DatePickerDialogFragment.DatePickerDialo... | true |
43841514edc6ca14c6555b54d38b211a14a768d1 | Java | OleksZamkovyi/Practice4 | /src/Test.java | UTF-8 | 1,409 | 3.21875 | 3 | [] | no_license | import com.epam.rd.java.basic.practice4.Part1;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Test {
public static String getInput(String fileName) {
StringBuilder sb = new StringBuilder();
try {
Scanner scanner = ne... | true |
f1325802508f8f34621ae1877fd054b0360b4e28 | Java | krishna-rao-g/CoreJavaTraining | /src/com/core/java/oops/AbstractArea.java | UTF-8 | 1,070 | 3.984375 | 4 | [] | no_license | package com.core.java.oops;
public class AbstractArea extends Object{
public static void main(String[] args) {
//Figure f = new Figure(2,3 );
Rectangle r = new Rectangle(2,4);
System.out.println(r);
System.out.println(r.area());
Triangle t = new Triangle(3, 4);
t.area();
System.out.println(t);
... | true |
d64ee4e4dd31dd73e39577b6565c3f836448b7d0 | Java | Matdev94/Application_JEE7 | /Chapitre1a8/src/chapitre4/Rectangle.java | ISO-8859-2 | 1,234 | 3.640625 | 4 | [] | no_license | package chapitre4;
public class Rectangle {
private float largeur;
private float longueur;
// Position du centre du rectangle (X,Y) dans le plan.
private int x;
private int y;
private float angle;
public Rectangle(float l, float L, int X, int Y){
longueur = L ;
largeur = l ;
x = X ;
y = Y ;... | true |
469277d289e786ddd94cc5013b5f17794f92fd0c | Java | tambepallavi/JavaPrograms | /src/OOP_Abstract/TestPage.java | UTF-8 | 483 | 2.375 | 2 | [] | no_license | package OOP_Abstract;
public class TestPage
{
public static void main(String[] args)
{
LoginPage lp =new LoginPage();
lp.header();
lp.footer();
lp.title();
lp.DoLogin("pallavi", "1234");
page.logo();
page p =new LoginPage();
p.header... | true |
cd7b7e98767af31b6f35f4ba9047eb4f620fc227 | Java | arraycto/hspaas | /hsmms/src/main/java/com/huashi/mms/template/service/MmsTemplateService.java | UTF-8 | 12,392 | 1.867188 | 2 | [] | no_license | package com.huashi.mms.template.service;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework... | true |
662baa11b40dd936271f472a9ea1c80c8572cb94 | Java | HistoricalValue/spawncamping-octo-ninja | /lib/Polyglot/src/polyglot/ext/jl/ast/ClassLit_c.java | UTF-8 | 2,031 | 2.6875 | 3 | [] | no_license | package polyglot.ext.jl.ast;
import polyglot.ast.ClassLit;
import polyglot.ast.Expr;
import polyglot.ast.Node;
import polyglot.ast.TypeNode;
import polyglot.types.SemanticException;
import polyglot.util.CodeWriter;
import polyglot.util.Position;
import polyglot.visit.NodeVisitor;
import polyglot.visit.PrettyPrinter;
i... | true |
1c1e2a90378a4b175fe5eba97f158bd79d9e51e8 | Java | msfj/msjf-cas | /cas-core/src/main/java/com/msjf/finance/cas/modules/branch/service/BranchService.java | UTF-8 | 668 | 1.898438 | 2 | [] | no_license | package com.msjf.finance.cas.modules.branch.service;
import com.msjf.finance.cas.common.dao.entity.BranchEntity;
import com.msjf.finance.msjf.core.response.Response;
import java.util.List;
import java.util.Map;
/**
* Created by cheng on 2019/1/24.
*/
public interface BranchService {
/**
* 新增部门基本信息表
... | true |
c151c7834c6b516ce3103a9b60509260903371d8 | Java | momosv/wx | /src/main/java/com/cn/xt/mp/feedback/wxSecurity/wxentity/js/JsapiTicket.java | UTF-8 | 584 | 1.914063 | 2 | [] | no_license | package com.cn.xt.mp.feedback.wxSecurity.wxentity.js;
import java.io.Serializable;
/**
* @author linshengwen
* @version 1.0
* @description
* @date 2018/12/17 10:26
**/
public class JsapiTicket implements Serializable {
private String ticket;
private String expiresIn;
public String getTicket() {
... | true |
94952918e30a4d5952aec95d8ddc8cb0d8043107 | Java | TTLProject/Incubation | /Incubation/src/objectrepository/CollegeFeedback_objects.java | UTF-8 | 879 | 2.34375 | 2 | [] | no_license | package objectrepository;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class CollegeFeedback_objects extends BaseClass
{
public CollegeFeedback_objects(WebDriver driver)
{
super(driver);
}
static By feedback = By.xpath("")... | true |
4acfef01f40b27b7c54befa4d78bd9b53921b639 | Java | youp911/modelibra | /Educ/TravelImpression/src/travel/wicket/app/home/HomePageMenuPanel.java | UTF-8 | 5,724 | 1.851563 | 2 | [] | no_license | package travel.wicket.app.home;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
import org.modelibra.wicket.concept.CountryLanguageChoicePanel;
import org.modelibra.wicket.conta... | true |
dc7553005815fad2aa5510922e19ef0aac4c7fb8 | Java | AndriiUsatov/simple_linked_list | /src/main/java/Main.java | UTF-8 | 882 | 3.515625 | 4 | [] | no_license | import java.util.Iterator;
/**
* Created by andrii on 13.08.17.
*/
public class Main {
public static void main(String[] args) {
SimpleLinkedList<Integer> list = new SimpleLinkedList<Integer>();
list.add(1);
// list.add(2);
for (int i = 0; i < 100; i++) {
list.add((int)... | true |
3f4bd352af9b778efefbecede983f1ecaa2c208c | Java | DimitarMilevski/Homework1 | /src/Race/truck.java | UTF-8 | 1,153 | 3.75 | 4 | [] | no_license | package Race;
public class truck {
static int speed = 0; //static variable to hold initial speed
String type ;
String engineType;
String driverName;
//constructor accepting 3 arguments- name, car type, and engine type
public truck(String driverName,String type, String engineType){
this.driverName = "Lewis Hami... | true |
225f1dfa2f7ea8db485149615d7f3c6e412e23c2 | Java | ShawnSWu/RollCall | /app/src/main/java/com/shawn/newrollcall/MainView/Profile/store/AccountInfoStore.java | UTF-8 | 855 | 2 | 2 | [
"MIT"
] | permissive | package com.shawn.newrollcall.MainView.Profile.store;
import com.shawn.newrollcall.MainView.Profile.action.AccountInfoType;
import com.shawn.newrollcall.FluxCenter.action.FluxAction;
import com.shawn.newrollcall.FluxCenter.store.Store;
/**
* Created by Shawn Wu on 2017/11/31.
*
*/
public class AccountInfoStore ex... | true |
b6943a369848322d86dd0478eef9d96af4a5d811 | Java | pdphuoc7072/C0721G1-PhanDaiPhuoc | /module2/src/bai_tap_huong_doi_tuong/bai_2/CandidateManager.java | UTF-8 | 1,794 | 3.328125 | 3 | [] | no_license | package bai_tap_huong_doi_tuong.bai_2;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class CandidateManager {
List<Candidate> candidateList = new ArrayList<>();
public void addCandidate () {
Scanner scanner = new Scanner(System.in);
System.out.print("Hãy n... | true |
1eb802514d9d58881bf61829e5fd45981a7ae43d | Java | drochett/Cascade-NonDXL | /Website/Code/Java/com/cascorp/SearchSiteBean.java | UTF-8 | 17,338 | 1.914063 | 2 | [] | no_license | package com.cascorp;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.faces.context.FacesContext;
import org.openntf.xsp.debugtoolbar.beans.Deb... | true |
37a42df90f09df52319d4f13306677ef9995b9d7 | Java | wellrain-xrx/simple-polygon-generator | /src/main/java/polygonsSWP/geometry/OrderedListPolygon.java | UTF-8 | 8,873 | 3.3125 | 3 | [] | no_license | package polygonsSWP.geometry;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import polygonsSWP.util.Random;
import polygonsSWP.util.MathUtils;
/**
* Implementation of Polygon using ordered counter-clockwise list. The
* assumption is, that the list of polygons is ordered in order... | true |
cd967dcbf4a83269ef40c7d70839b9efc3a6a6d4 | Java | anpavlo/ukrresources | /src/main/java/org/registrator/community/config/SecurityConfiguration.java | UTF-8 | 2,484 | 2.078125 | 2 | [] | no_license | package org.registrator.community.config;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import o... | true |
dade56cf63aa465301862cc4e64488a3e060224d | Java | shanghaif/Stock_ZZFIN | /StockAndroid/app/src/main/java/com/xt/lxl/stock/model/reponse/StockUserCompletionResponse.java | UTF-8 | 317 | 1.625 | 2 | [] | no_license | package com.xt.lxl.stock.model.reponse;
import com.xt.lxl.stock.model.ServiceResponse;
import com.xt.lxl.stock.model.model.StockUserModel;
public class StockUserCompletionResponse extends ServiceResponse {
public int serviceCode = 3002;//服务号
public StockUserModel userModel = new StockUserModel();
}
| true |
d4ec5fff228176fb19d3e613cb5a502428a2a053 | Java | Toqiin/spreadsheet-app | /view/InputPanel.java | UTF-8 | 2,669 | 3.03125 | 3 | [] | no_license | package edu.cs3500.spreadsheets.view;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JTextField;
import edu.cs3500.s... | true |
21f3e3f8f8b66ba3642a919c47df333428f1b014 | Java | PhilippePeeters/exjava | /exC3/exC3.java | UTF-8 | 909 | 3.703125 | 4 | [] | no_license | import java.util.Scanner;
import java.util.ArrayList;
public class exC3 {
public static void main(String[] args) {
ArrayList<Integer> intergerArray = new ArrayList<Integer>();
String inputNumberStringUser = null;
boolean endEntry = true;
Scanner scanner = new Scanner( System.in );
do {
System.out.pr... | true |
1f7993672f41a3fc0cbb4c64e01edeb42d6833c8 | Java | takashizeroum/CamDia | /app/src/main/java/com/example/camdia/ViewUser.java | UTF-8 | 7,862 | 1.671875 | 2 | [] | no_license | package com.example.camdia;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.SwitchCompat;
import androidx.core.app.ActivityCompat;
import androidx.core.app.ActivityOptionsCompat;
import android.content.Intent;
import android.database.Cursor;
import android.os.AsyncTask;
import android... | true |
a4c31e76a7ab294d6d978bb1f745bc971b0cbcfa | Java | littleBoyCanHaveAFuture/ZY_Manager | /src/main/java/com/zyh5games/controller/RechargeSummaryControllr.java | UTF-8 | 9,003 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.zyh5games.controller;
import com.zyh5games.common.Constants;
import com.zyh5games.entity.GameInfo;
import com.zyh5games.entity.PageBean;
import com.zyh5games.entity.RechargeSummary;
import com.zyh5games.jedis.JedisRechargeCache;
import com.zyh5games.service.RechargeSummaryService;
import com.zyh5games.util... | true |
8b35b37fad63a79fd439f1138ce6477ad8824117 | Java | jackvvv/Entertainer | /app/src/main/java/sinia/com/entertainer/bean/TokenBean.java | UTF-8 | 674 | 2.453125 | 2 | [] | no_license | package sinia.com.entertainer.bean;
import java.io.Serializable;
/**
* Created by byw on 2017/1/12.
*/
public class TokenBean implements Serializable{
private int state;
private int isSuccessful;
private String token;
public String getToken() {
return token;
}
public void setToken(... | true |
5b2e591d0742964ac5489afea73531366af255a8 | Java | jackbryan1/Collections-Performance-Analysis-Project | /Entry.java | UTF-8 | 765 | 2.796875 | 3 | [] | no_license | public class Entry {
private String Surname;
private String Initials;
private String Extension;
public Entry(String Surname, String Initials, String Extension){
this.Surname = Surname;
this.Initials = Initials;
this.Extension = Extension;
}
public String getSurname() {
... | true |
2d206b53d34e66e4b5baba7cc106bb9ef14eb136 | Java | Cifer1993/springclould-test | /message-server/src/main/java/com/MessageServerApplication.java | UTF-8 | 890 | 1.578125 | 2 | [] | no_license | package com;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.au... | true |
85682d2a9c1022bc38f1ad80163480470a47f8dd | Java | HiEveryBodyWorld/workflow | /workflow-service-flowable/src/main/java/cn/com/workflow/user/UserManagerService.java | UTF-8 | 3,663 | 2.234375 | 2 | [] | no_license | package cn.com.workflow.user;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.flowable.idm.api.Group;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | true |
d60364eb72fdaf04df8ac7f6e06e77d44669a79a | Java | sho25/pdfbox | /pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDPushButton.java | UTF-8 | 4,168 | 1.851563 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"APAFML",
"LicenseRef-scancode-apple-excl",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | true |
990db270a6869f1fb34f2e487270cb4582676d75 | Java | Denchik80/TASKS | /Class and Object/src/Air/company/AircraftWork.java | UTF-8 | 1,594 | 3.3125 | 3 | [] | no_license | package Air.company;
import java.util.Random;
public class AircraftWork {
public static class Main {
public static int SIZE = 4;
public static Aircraft[] Array = new Aircraft[SIZE];
public static void main(String[] args) {
AircraftMaker maker1 = new AircraftMakerAirbusA310()... | true |
eb746b296b0aa5b6af0221540c1a9841a887acf8 | Java | androidfanatic/Buddy | /app/src/main/java/manish/buddy/utils/ShellUtil.java | UTF-8 | 1,089 | 2.21875 | 2 | [] | no_license | package manish.buddy.utils;
import java.util.List;
import eu.chainfire.libsuperuser.Shell;
import timber.log.Timber;
public class ShellUtil {
public static boolean isLayoutBound() {
List<String> result = Shell.SU.run("getprop debug.layout");
return result.size() > 0 && result.get(0).equalsIgnore... | true |
8b90ee2776cc32ebef7d6e0759fd979e6a1a8d81 | Java | ehsun7b/v3m | /src/main/java/com/ehsunbehravesh/varzesh3mobile/entity/NewspaperCollection.java | UTF-8 | 1,540 | 2.171875 | 2 | [] | no_license | package com.ehsunbehravesh.varzesh3mobile.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.G... | true |
fd1599672c1c9af9f7cea4c6b98a8bf35fa03dca | Java | pannous/blueprints-netbase | /src/main/java/com/pannous/netbase/blueprints/LocalNetbase.java | UTF-8 | 6,939 | 2.03125 | 2 | [] | no_license | package com.pannous.netbase.blueprints;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
/**
* * Copyright 2013 Pannous GmbH
* * <p/>
* * User: info@pannous.com / me
* * Date: 21/01/14
* * Time: 17:36
*/
public class LocalNetbase implements NetbaseAdapter{
static... | true |
f7b2675027cf11313343e7a6e3f58a466a53b159 | Java | lpf87383577/greendao | /app/src/main/java/com/shinhoandroid/test0909/db/CreditCardDao.java | UTF-8 | 5,109 | 2.28125 | 2 | [] | no_license | package com.shinhoandroid.test0909.db;
import java.util.List;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
import org.greenrobot.greendao.database.... | true |
09eb613510cc68525e0c3a3d91e96c99d53b526c | Java | aliOsm3n/Phone_Strore | /app/src/main/java/com/phonedeals/ascom/phonestrore/data/model/ChatRoom.java | UTF-8 | 802 | 2.34375 | 2 | [] | no_license | package com.phonedeals.ascom.phonestrore.data.model;
public class ChatRoom {
String from;
public ChatRoom(String id, String chat_id, String from, String time, String content,String photo) {
this.from = from;
this.chat_id = chat_id;
this.id = id;
this.time = time;
this.c... | true |
3413eec321488570fa817cd480f25b998a2be562 | Java | Werdio66/ProgrammerInterviewCollection | /src/com/_520/offer/字符串的排列.java | UTF-8 | 1,328 | 3.515625 | 4 | [] | no_license | package com._520.offer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
/**
* @author Werdio丶
* @since 2020-08-30 20:33:07
*/
public class 字符串的排列 {
static ArrayList<String> list = new ArrayList<>();
static int count =... | true |
063d33e3d306e9ad0087a85f21d65876b0c90c7b | Java | DeanKuhne/FractalViewer | /src/code/EscapeTimeAlgorithm.java | UTF-8 | 8,117 | 3.21875 | 3 | [] | no_license | package code;
public class EscapeTimeAlgorithm {
private static double xRangeStart;
private static double yRangeStart;
private static double xRangeEnd;
private static double yRangeEnd;
private static double xCalc;
private static double yCalc;
private static double xCurrent;
private static double yCur... | true |
1cc6b4ece1d8d6810d971d1c26f9a2d42b6f867f | Java | LincolnCamarini/workspace_java | /ContaBancaria/src/ContaBancaria.java | ISO-8859-1 | 723 | 3.109375 | 3 | [] | no_license |
public class ContaBancaria {
int numeroConta;
int digitoVerif;
String cpfTitular;
String nomeTitular;
double saldo;
void creditar(double valor) --> basicamente soma ao saldo o valor
System.out.println("saldo =" +saldo);
System.out.println("Info =" +saldo);
System.out.println("saldo =" +saldo);
}
+... | true |
bec55c2a5092534176eafb90653c8a9cf32d7d08 | Java | DSpace-Labs/dspace-sandbox | /modules/dspace-srw/trunk/src/main/java/ORG/oclc/os/SRW/DSpaceLucene/LuceneQueryResult.java | UTF-8 | 5,069 | 1.914063 | 2 | [] | no_license | /*
Copyright 2006 OCLC Online Computer Library Center, Inc.
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 ... | true |
34f0f6fa45560b0460d04e87ec37bceea228b28e | Java | AlexhahahaDrag/arithmetic | /src/twoDimensionalArray/MaxValue.java | UTF-8 | 1,335 | 4 | 4 | [] | no_license | package twoDimensionalArray;
/**
*description:
*
*面试题47. 礼物的最大价值
* 在一个 m*n 的棋盘的每一格都放有一个礼物,每个礼物都有一定的价值(价值大于 0)。你可以从棋盘的左上角开始拿格子里的礼物,并每次向右或者向下移动一格、直到到达棋盘的右下角。给定一个棋盘及其上面的礼物的价值,请计算你最多能拿到多少价值的礼物?
*
*
*
* 示例 1:
*
* 输入:
* [
* [1,3,1],
* [1,5,1],
* [4,2,1]
* ]
* 输出: 12
* 解释: 路径 1→3→5→2→1 可以拿到最多价值的礼物
*
... | true |
9c04939a121c4b5fffaf3dc5e7fde54819ca5d87 | Java | moradSleman/vero_app_android_mySql | /adroid_my_sql/veroFrontEnd/app/src/main/java/com/example/user010/vero_project/Fragments/ProfileFragment.java | UTF-8 | 4,070 | 2.09375 | 2 | [] | no_license | package com.example.user010.vero_project.Fragments;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wid... | true |
6bede8ea824441a757fa9bbc065729d38f09d9ac | Java | seanchrishungerford/JavaProjects | /FileSystem/src/filesystem/FileSystem.java | UTF-8 | 3,736 | 3.5 | 4 | [] | no_license | /*
* Author: Sean Hungerford
* Note: This application was written on a Mac, and must be run on a Mac computer.
* Change the directory name for the application, for it to work properly, if needed.
*/
package filesystem;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Pa... | true |
365698407da7fa66b4a676d0cdcc8f18c5caf004 | Java | Lusky87/gas_bpm | /uengine/src/main/java/com/webdeninteractive/xbotts/Mapping/compiler/PathUtils.java | UTF-8 | 3,314 | 2.65625 | 3 | [
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"GPL-3.0-only",
"EPL-2.0",
"Apache-2.0",
"LGPL-2.1-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license"
] | permissive | /*
-------------------------------------------------------------------
BIE is Copyright 2001-2004 Brunswick Corp.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/bie_license.txt) that came with this distribution before using
this s... | true |
b2b8bf634a55a67f1d5e97d140b2428e42fffb5a | Java | DORcode/JackFruit | /imageselector_lib/src/main/java/com/lib/imageselector/ui/widget/FolderWindow.java | UTF-8 | 6,609 | 1.96875 | 2 | [] | no_license | package com.lib.imageselector.ui.widget;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.widget.LinearLayoutManager;... | true |
9b0c15913162944450cf9012f245a93a4015a4c5 | Java | sandeepkondi/sandeep_new | /entity/ClaimTransactionClaim.java | UTF-8 | 10,991 | 1.625 | 2 | [] | no_license | package com.beyontec.mol.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.MapsId;
import javax.persistence.OneToOne;
import javax.pe... | true |
fb58a770f15ec64f70e86c92ddf6f6b178095259 | Java | secharte/ab | /jason/src/jason/asSyntax/directives/FunctionRegister.java | UTF-8 | 3,659 | 2.640625 | 3 | [] | no_license | package jason.asSyntax.directives;
import jason.asSemantics.Agent;
import jason.asSemantics.ArithFunction;
import jason.asSyntax.NumberTerm;
import jason.asSyntax.Pred;
import jason.asSyntax.StringTerm;
import jason.functions.Abs;
import jason.functions.Length;
import jason.functions.Max;
import jason.functions.Min;
i... | true |
adc4f15642e55da5f46c19061fb4bd3ec409342d | Java | Undin/RecommenderSystem | /src/main/java/com/ifmo/recommendersystem/JSONConverted.java | UTF-8 | 709 | 2.453125 | 2 | [] | no_license | package com.ifmo.recommendersystem;
import org.json.JSONObject;
public interface JSONConverted {
public JSONObject toJSON();
public interface JSONCreator<T> {
public T fromJSON(JSONObject jsonObject);
}
public static class IllegalJSONFormatException extends IllegalArgumentException {
... | true |
62428544e7141740841b53c0a4cb68cc9f54221a | Java | mcstangl/Capstone-Projectplanner | /backend/src/test/java/de/mcstangl/projectplanner/config/SpringTestContextConfiguration.java | UTF-8 | 1,294 | 2.015625 | 2 | [] | no_license | package de.mcstangl.projectplanner.config;
import de.mcstangl.projectplanner.repository.ProjectRepository;
import de.mcstangl.projectplanner.repository.UserRepository;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.TestConfiguration;
import org.sprin... | true |
6a9658a55856f9d96ee715a9f534002940bf0e48 | Java | entilo/crm-oa | /src/main/java/com/crm/www/entity/Function.java | UTF-8 | 612 | 2.15625 | 2 | [] | no_license | package com.crm.www.entity;
public class Function {
private Integer functionId;
private String fName;
private String fUrls;
public Integer getFunctionId() {
return functionId;
}
public void setFunctionId(Integer functionId) {
this.functionId = functionId;
... | true |
ecb26c3267381cbe2a067bafac3c767055e31588 | Java | sergejSDA/testProjekt | /kleiner_prototyp/anna_b/Taschenrechner/src/main/java/Form/WebController.java | UTF-8 | 832 | 2.40625 | 2 | [] | no_license | package Form;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class We... | true |
2f04d3ea9c4eea81bef77df9a1c7a9bc3d329950 | Java | Ampretuzo/PDI_scraper_input_steps | /pdi-scraper-step-base/src/main/java/ge/hamamlo/pentaho/di/trans/steps/scraper/base/ScraperBaseMeta.java | UTF-8 | 8,097 | 1.789063 | 2 | [] | no_license | package ge.hamamlo.pentaho.di.trans.steps.scraper.base;
import ge.hamamlo.pentaho.di.ui.trans.steps.scraper.base.ScraperDialog;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.exception.KettlePluginException;
import org.pentaho.di.core.... | true |
da6970bb15eb5ab000a34d55752de1e91f30add3 | Java | ontop/ontop | /core/optimization/src/test/java/it/unibz/inf/ontop/iq/optimizer/PreventDistinctTest.java | UTF-8 | 15,864 | 1.726563 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | package it.unibz.inf.ontop.iq.optimizer;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import it.unibz.inf.ontop.dbschema.RelationDefinition;
import it.unibz.inf.ontop.iq.IQ;
import it.unibz.inf.ontop.iq.IQTree;
import it.u... | true |
2d8fce3ef18fffbc829576fa8e596c813c195c77 | Java | hechuan73/config-manager | /src/main/java/com/fdse/config_manager/bean/Metrics/PodMetrics/V1beta1PodItemsMetadata.java | UTF-8 | 405 | 1.703125 | 2 | [] | no_license | package com.fdse.config_manager.bean.Metrics.PodMetrics;
import com.fdse.config_manager.bean.Metrics.NodeMetrics.V1beta1NodeItemsMetadata;
public class V1beta1PodItemsMetadata extends V1beta1NodeItemsMetadata {
private String namespace;
public String getNamespace() {
return namespace;
}
publ... | true |
15a8003f00fda18b7f53ea262a2a63e06e3ecbad | Java | jhartono/Appointment_Scheduler | /src/main/java/com/bluetree/indonesia/appointment/service/impl/LocationServiceImpl.java | UTF-8 | 1,887 | 2.03125 | 2 | [] | no_license | package com.bluetree.indonesia.appointment.service.impl;
import java.util.List;
import javax.inject.Inject;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.bluetree.indonesia.appointment.domain.Location;
import com.bluetree.indonesia.appoint... | true |
dbb0f08bc6224901d9327b50f9836442671765dc | Java | zhouziwen/College | /university/src/main/java/com/zhiyou/colleageapp/appui/person/adapter/VideoAdapter.java | UTF-8 | 3,202 | 2.234375 | 2 | [] | no_license | package com.zhiyou.colleageapp.appui.person.adapter;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.... | true |
20e948a67996ed404568855325f1943cec8c76aa | Java | rcclas/agenzia-viaggi | /src/main/java/agenzia/integration/ViaggiRestCtrl.java | UTF-8 | 1,529 | 2.15625 | 2 | [] | no_license | package agenzia.integration;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframe... | true |
621dcef60191428ea7c587b1fdb5260ccae1cf40 | Java | JoyPanda/wangxian_server | /server/src/com/fy/engineserver/newtask/service/SealTaskEventTransact.java | UTF-8 | 4,897 | 1.984375 | 2 | [] | no_license | package com.fy.engineserver.newtask.service;
import java.util.Random;
import com.fy.engineserver.chat.ChatMessage;
import com.fy.engineserver.chat.ChatMessageService;
import com.fy.engineserver.core.Game;
import com.fy.engineserver.core.GameManager;
import com.fy.engineserver.datasource.language.Translate;
import com... | true |
8eaa965c02ecc0c456e4a10c95e100fd25e8c97d | Java | dev-jangjaeyong/Spring-boot-Rest-Api-Framework | /api_admin_1.0.0/src/main/java/com/atonm/kblease/api/file/fileStorageUtil/service/FileStorageUtilService.java | UTF-8 | 41,830 | 1.960938 | 2 | [] | no_license | package com.atonm.kblease.api.file.fileStorageUtil.service;
import com.atonm.kblease.api.common.base.BoardDTO;
import com.atonm.kblease.api.config.generate.CodeConfig;
import com.atonm.kblease.api.config.property.ImageServerProperty;
import com.atonm.kblease.api.file.fileStorageUtil.dto.FileStorageUtilDTO;
import com.... | true |
54acc8013d9150d9b47ed855f805c62656dc0ebf | Java | xlreconlx/DUGLASPILOTO | /src/java/Interface/InterfaceProductos.java | UTF-8 | 883 | 2.09375 | 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 Interface;
import Pojos.Productos;
import java.util.List;
import org.hibernate.Session;
/**
*
* @author KevinArnold
*/
p... | true |
688b3648fd5d305d1c888bbf1a72f9be7c56711e | Java | lineboy23/switchboard | /src/main/java/com/jartein/switchboard/beans/gson/FpkjBean.java | UTF-8 | 2,419 | 1.796875 | 2 | [] | no_license | package com.jartein.switchboard.beans.gson;
import java.io.Serializable;
import java.util.List;
/**
* Created by JohnnyLeung on 2017/1/12.
*/
public class FpkjBean implements Serializable {
private String type;
private String nsrmc;
private String nsrsbh;
private String dzdh;
private String yhzh... | true |
e90e90d4a53600500f8ac4b05581ac7d36530e38 | Java | qinluyan89/themis | /themis-coprocessor/src/main/java/org/apache/hadoop/hbase/themis/cp/ThemisEndpointClient.java | UTF-8 | 21,514 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.hadoop.hbase.themis.cp;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hbase.HConstants;
import org.apache.ha... | true |
c106ef16c387394d05f1fdf800b8579c5e2701ba | Java | grouzen/quoridor | /quoridor-base/src/com/grouzen/quoridor/scene/node/SceneNode.java | UTF-8 | 208 | 2.15625 | 2 | [] | no_license | package com.grouzen.quoridor.scene.node;
public abstract class SceneNode {
private SceneNode parent;
public SceneNode(SceneNode parent) {
this.parent = parent;
}
public abstract void render();
}
| true |
76fa62f87472bf1f3b894827e27a5066c13d21d7 | Java | flywind2/joeis | /src/irvine/oeis/a221/A221051.java | UTF-8 | 534 | 2.125 | 2 | [] | no_license | package irvine.oeis.a221;
// Generated by gen_pattern.pl - DO NOT EDIT here!
import irvine.oeis.GeneratingFunctionSequence;
/**
* A221051 The hyper-Wiener index of the nanostar dendrimer <code>D_1[n]</code>, defined pictorially in the Eslahchi et al. reference.
* @author Georg Fischer
*/
public class A221051 exten... | true |
122c3080c1f967e5e76a0eebd1a8a0a4a6967060 | Java | spectra-cluster/clustering-file-reader | /src/main/java/uk/ac/ebi/pride/spectracluster/clusteringfilereader/objects/PeakMzComparator.java | UTF-8 | 413 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package uk.ac.ebi.pride.spectracluster.clusteringfilereader.objects;
import java.util.Comparator;
/**
* Created by jg on 05.01.15.
*/
public class PeakMzComparator implements Comparator<ClusteringFileSpectrumReference.Peak> {
@Override
public int compare(ClusteringFileSpectrumReference.Peak o1, ClusteringFi... | true |
339f58f83d02e170caeecefff379abb12d6be906 | Java | antonsemanyk/hecate | /hecate-cql3/src/main/java/com/savoirtech/hecate/cql3/persistence/def/DefaultPojoDelete.java | UTF-8 | 3,063 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012-2015 Savoir Technologies, Inc.
*
* 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 appli... | true |
c97f69729dbe89d59c8ec2ef12b8f2a02232abdc | Java | Serm97/AbstractFactory | /AbstractFactoryPattern/src/connection/DAOFactory.java | UTF-8 | 1,196 | 2.84375 | 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 connection;
/**
*
* @author Sergio Ramirez
*/
// Abstract class DAO Factory
public abstract class DAOFactory {
... | true |
41dbf927a9c54daae32b6d466fac0f61b5ee6dee | Java | tenos200/codeforces | /brainsphotots.java | UTF-8 | 416 | 3.03125 | 3 | [] | no_license | import java.util.Scanner;
public class brainsphotos{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String ans = "#Black&White";
int n = in.nextInt();
int n2 = in.nextInt();
for (int i = 0; i < n*n2; i++) {
String s = in.next();
if (s.equals("C") || s.equals(... | true |
735d5686b0fb2d4396282a09bfa5db5ebd6a48e8 | Java | empresasoftware/tiendaonline | /src/main/java/empresa/software/tiendaonline/repository/RatingTiendaRepository.java | UTF-8 | 546 | 1.609375 | 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 empresa.software.tiendaonline.repository;
import empresa.software.tiendaonline.model.TiendaRatingKey;
import empresa.software.... | true |
8ec7200240f3b1f03f8b68b3a1dd1af3ee1182dd | Java | tectronics/librapro | /libra/src/main/java/com/zhy/libra/controller/InformationController.java | UTF-8 | 970 | 2.09375 | 2 | [] | no_license | package com.zhy.libra.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionCo... | true |
012bf0961d284da47492c7cf198fec54b9cb0a61 | Java | gabor7d2/PCBuilder | /src/net/gabor6505/java/pcbuilder/PCBuilder.java | UTF-8 | 195 | 1.703125 | 2 | [] | no_license | package net.gabor6505.java.pcbuilder;
import net.gabor6505.java.pcbuilder.gui.MainFrame;
public class PCBuilder {
public static void main(String[] args) {
new MainFrame();
}
}
| true |
11eca4e6ff3c13506f9b999736fcab9bb5a346f6 | Java | atopion/sokoban | /sokoban-java/src/distanceboard/Board.java | UTF-8 | 8,356 | 2.890625 | 3 | [] | no_license | package distanceboard;
import distanceboard.grid.GridCell;
import distanceboard.grid.GridPane;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.LinkedList;
public class Board extends JFrame implements ActionListener, GridCell.CellClick... | true |
bb63e7f80828c395727748c51a8c9118ad5dcdca | Java | Group-10-Studios/Mission-Control | /src/main/java/nz/ac/vuw/engr300/gui/controllers/GraphController.java | UTF-8 | 24,224 | 2.03125 | 2 | [
"MIT"
] | permissive | package nz.ac.vuw.engr300.gui.controllers;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderStroke;
import javafx.scene.layout.BorderStrokeStyle;
import javafx.scene.layout.BorderWidths;
import javafx.scene.layout.CornerRadii;
import java... | true |
d3e3ea87e1deb484a0bf1ed1dcde9197096b449b | Java | jorgetown/foundation-logparser | /src/main/java/org/logparser/time/InfiniteTimeInterval.java | UTF-8 | 354 | 2.296875 | 2 | [] | no_license | package org.logparser.time;
import java.util.Date;
import net.jcip.annotations.Immutable;
/**
* Represents a time window of infinite length.
*
* @author jorge.decastro
*
*/
@Immutable
public final class InfiniteTimeInterval implements ITimeInterval {
public boolean isBetweenInstants(final Dat... | true |
0b11d8654871c15226ffb6e8a44e09099cc31e0a | Java | ayufan/hackwaw | /hackwaw-java-example/src/main/java/pl/hackwaw/disrupt/context/domain/health/State.java | UTF-8 | 121 | 1.75 | 2 | [] | no_license | package pl.hackwaw.disrupt.context.domain.health;
public enum State {
OPERATIONAL, DOWN, SLOW, ERROR, UNNECESSARY
}
| true |
cfce8a0bb1777ef3a69dd71ae2028835cd251cb2 | Java | MahmoudBashir97/Chat_Ho | /app/src/main/java/com/chatho/chatho/Adapter/Owen_adpt.java | UTF-8 | 2,159 | 2.296875 | 2 | [] | no_license | package com.chatho.chatho.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.chatho.chatho.R;
import com... | true |
1459926e1cee546da1c4dde1f6818b9829355343 | Java | huandc/leetcode | /src/_14最长公共前缀longestCommonPrefix/Solution.java | UTF-8 | 998 | 3.234375 | 3 | [] | no_license | package _14最长公共前缀longestCommonPrefix;
import java.util.Arrays;
public class Solution {
public static void main(String[] args) {
System.out.println(longestCommonPrefix(new String[]{"flower", "flow", "flight"}));
System.out.println(longestCommonPrefix(new String[]{"dog", "racecar", "car"}));
... | true |
9d266d1c72d105c24bf791853d1844e2702747c0 | Java | tonycheng93/YunShuWeather | /ChanWeather/app/src/main/java/com/chan/chanweather/bus/InitErrorEvent.java | UTF-8 | 445 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.chan.chanweather.bus;
/**
* Created by chan on 16/3/27.
*/
public class InitErrorEvent {
private String m_message;
private Throwable m_throwable;
public InitErrorEvent(String message, Throwable throwable) {
m_message = message;
m_throwable = throwable;
}
public Stri... | true |
4f48867786cdf4d20dd9ffd6966ea2bb89762972 | Java | zhangweicheng555/lte | /src/main/java/com/boot/kaizen/util/CacheUtil.java | UTF-8 | 748 | 2.234375 | 2 | [] | no_license | package com.boot.kaizen.util;
import org.springframework.cache.ehcache.EhCacheCacheManager;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
/**
*
* @author weichengz
* @date 2019年5月31日 上午11:37:09
*/
public class CacheUtil {
public static Cache getCacheManager(String cacheKey) {
//获取EhCacheC... | true |
98cef5a027103e9a039addb9f910d009c7ed46d0 | Java | leoclog/Spring5recipe | /src/test/java/com/zelidre/spring5recipeapp/services/ImageServiceImplTest.java | UTF-8 | 1,810 | 2.375 | 2 | [] | no_license | package com.zelidre.spring5recipeapp.services;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.mockito.Mockito.anyLong;
import java.util.Optional;
import org.junit.Before;
import ... | true |