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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5994470ff4d1c54532aaa12e8220b3c46e48ece5 | Java | LuboYankov/my-ip-2015-2016 | /ip_availability/src/org/elsysbg/ip/availability/HandleInputs.java | UTF-8 | 202 | 1.539063 | 2 | [] | no_license | package org.elsysbg.ip.availability;
public interface HandleInputs {
public int getUserIndex(String name);
public void listavailable();
public void getInput();
public void parse(String command);
}
| true |
91e8714ca6e0d04d7770e31ccbb4f67be90e403b | Java | cs-au-dk/JWIG | /src/dk/brics/jwig/NotFoundException.java | UTF-8 | 682 | 2.75 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package dk.brics.jwig;
import javax.servlet.http.HttpServletResponse;
/**
* Exception thrown by the web app when a ressource was not found.
* Results in an HTTP 404 response to the client.
*/
public class NotFoundException extends JWIGException {
/**
* Constructs a new exception.
* Uses the default message ... | true |
0fc698e9107316c833db7fdf56be3040dba0ce02 | Java | xxnian95/leetcode | /src/main/java/com/pengnian/lc572/Solution.java | UTF-8 | 1,442 | 3.140625 | 3 | [] | no_license | package com.pengnian.lc572;
import com.pengnian.treenode.CreateTreeNode;
import com.pengnian.treenode.TreeNode;
import org.junit.jupiter.api.Test;
/**
* @author Zhang Pengnian
* @since 2019-06-03 19:07
*/
class Solution {
@Test
void test() {
Integer[] a1 = {3, 4, 5, 1, 2}, a2 = {4, 1, 3};
... | true |
a7ab4d9967ab60f392dbf931892f10cc7e0e2c00 | Java | a514760469/springboot-dev-repository | /springboot-statemachine/src/main/java/com/cplh/springboot/statemachine/config/States.java | UTF-8 | 207 | 1.914063 | 2 | [] | no_license | package com.cplh.springboot.statemachine.config;
/**
* @author zhanglifeng
* @since 2020-06-03 14:11
*/
public enum States {
S_INITIAL,// 初始状态
S1,
S2,
S_ENDING // 结束状态
}
| true |
f2abd591fc0d6b94ddb987675b1aba520ac92449 | Java | mydominov/SummaryTask4 | /SummaryTask4/src/main/java/ua/nure/dominov/SummaryTask4/db/model/HotelType.java | UTF-8 | 1,602 | 2.640625 | 3 | [] | no_license | /**
*
*/
package ua.nure.dominov.SummaryTask4.db.model;
import java.io.Serializable;
/**
* @author calango
*
*/
public class HotelType implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
*
*/
private long hotelTypeId;
/**
*
*/
private String typeName;... | true |
913e077f33213cf36f5ad9a306584bdefdc2bc13 | Java | 77377xiang/JingDiaoZhuShou | /JudicialAuctionProject/app/src/main/java/com/yude/auctionhelp/fragment/markfagment/moreFragment/FlowFragment.java | UTF-8 | 410 | 1.726563 | 2 | [] | no_license | package com.yude.auctionhelp.fragment.markfagment.moreFragment;
import android.os.Bundle;
import com.yude.auctionhelp.R;
import com.yude.auctionhelp.base.BaseFragment;
/**
* 流拍
*/
public class FlowFragment extends BaseFragment {
@Override
public int getContentViewId() {
return R.layout.fragment_m... | true |
7cbec5e20f37a1c2c14814668e34b3b934a4f2bd | Java | kakeru-rai/kikotoba-android | /app/src/main/java/com/kikotoba/android/model/dictation/TextToken.java | UTF-8 | 2,369 | 2.75 | 3 | [] | no_license | package com.kikotoba.android.model.dictation;
import android.app.Activity;
import android.text.InputFilter;
import android.text.InputType;
import android.widget.EditText;
import android.widget.LinearLayout;
import com.kikotoba.android.util.WidgetCreator;
import java.util.regex.Matcher;
import java.util.regex.Pattern... | true |
9191d5d24df6f54c0d299ee04c7eef4d56a6c413 | Java | VinceyZhang/permission | /src/main/test/com/design/strategy/Store.java | UTF-8 | 357 | 2.171875 | 2 | [] | no_license | package com.design.strategy;
/**
* Created by ok_vince on 2018-07-18.
*/
public class Store {
public static void main(String args[]) {
Dog dog=new ToyDog();
dog.getBarkBehaviour().bark();
dog=new ChinaDog();
dog.getBarkBehaviour().bark();
dog=new JapanDog();
dog.g... | true |
4d5640d8765bdb28406723cf44a4b2efc32477a1 | Java | nikhita518/NikhitaNakirikanti_ExceptionHandling_Logging | /intrest/src/main/java/com/mycompany/intrest/SimpleIntrest.java | UTF-8 | 407 | 3 | 3 | [] | no_license | package com.mycompany.intrest;
import java.math.RoundingMode;
import java.text.DecimalFormat;
public class SimpleIntrest
{
public double calculateIntrest(int principle, float rate, int time)
{
double intrest = (principle*rate*time)/100;
DecimalFormat f = new DecimalFormat("##.00");
f.setRoundingMode(Roundi... | true |
80af48f00f238debde3adfe2165e6e19812d5345 | Java | leizhen/java-zephyr | /src/main/java/com/lz/qa/devops/jirazephyr/resource/CycleResource.java | UTF-8 | 4,913 | 2.375 | 2 | [] | no_license | package com.lz.qa.devops.jirazephyr.resource;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.lz.qa.devops.jirazephyr.entity.CycleEntity;
import com.lz.qa.devops.jirazephyr.entity.ListCycleResultEntity;
import lombok.extern.slf4j.Slf4j;
impor... | true |
fcc695bc99a35f5944abd7afaf8319e44aea9945 | Java | apache/beam | /runners/google-cloud-dataflow-java/worker/src/test/java/org/apache/beam/runners/dataflow/worker/DataflowExecutionContextTest.java | UTF-8 | 3,909 | 1.78125 | 2 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-protobuf",
"Apache-2.0",
"Python-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
0a0a37b82e6cfc9d1d6eb1076b92cb820fb7647c | Java | AhmadRHM/APProject | /src/chickenGroups/CircularGroup.java | UTF-8 | 3,868 | 3.078125 | 3 | [] | no_license | package chickenGroups;
import main.MainFrame;
import java.util.ArrayList;
import java.util.Random;
public class CircularGroup extends ChickenGroup {
private MainFrame mainFrame;
private double nextX, nextY;
private double timeMod5, thetha0 = 0, radius0 = 100, angleSpeed = 20;
private final int radius... | true |
6f2fbfe656d8b9f1e301af97e1d2334e4f82ed5b | Java | 15618384280/tjcloud-core-libs | /tjcloud-pay-core/src/main/java/com/tjcloud/tenpay/api/utils/TenpaySignature.java | UTF-8 | 7,629 | 2.203125 | 2 | [] | no_license | package com.tjcloud.tenpay.api.utils;
import com.tjcloud.core.utils.StringUtils;
import com.tjcloud.tenpay.api.bean.pay.PayFeedback;
import com.tjcloud.tenpay.api.bean.pay.PayNativeInput;
import com.tjcloud.tenpay.api.bean.pay.PayNotify;
import com.tjcloud.tenpay.api.bean.pay.PayWarn;
import org.apache.commons.codec.d... | true |
dbccd1728dd073947b75dfda5ed3e2538d1f84d8 | Java | tied/crowd-ldap-server | /src/test/java/it/CrowdDirectoryBackendTest.java | UTF-8 | 16,667 | 2.40625 | 2 | [
"BSD-4.3RENO",
"OLDAP-2.8",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package it;
import de.aservo.ldap.adapter.api.directory.DirectoryBackend;
import de.aservo.ldap.adapter.api.directory.exception.EntityNotFoundException;
import de.aservo.ldap.adapter.api.directory.exception.SecurityProblemException;
import de.aservo.ldap.adapter.api.entity.GroupEntity;
import de.aservo.ldap.adapter.ap... | true |
f09f233035d42616cad34fb5ce598b67f515e411 | Java | khrystiian/AIM-Distribution | /AIM-Distribution/src/gui/panels/RoutePanel.java | UTF-8 | 7,547 | 2.390625 | 2 | [] | no_license | package gui.panels;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.List;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import ja... | true |
0f1f4443a96f5477172ccd680018cd87d81cafc6 | Java | asakusafw/asakusafw-examples | /example-summarize-sales/src/main/java/com/asakusafw/example/summarization/jobflow/SummarizeReceiptJobFlow.java | UTF-8 | 4,619 | 2.0625 | 2 | [] | no_license | /**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | true |
95c70ca0c511f769a3cf0fef082b5e4a6b79b9a8 | Java | ogudsogud/inventory | /msg_part/src/main/java/com/msg/data/service/BrandService.java | UTF-8 | 464 | 2.03125 | 2 | [] | no_license | package com.msg.data.service;
import com.msg.data.model.BrandModel;
import java.util.List;
/**
* Created by Ogudsogud on 7/21/2018.
*/
public interface BrandService {
List<BrandModel> getDataBrand();
boolean insertBrand(BrandModel brandModel);
boolean isBrandExist(String brand_name);
... | true |
bfc8b8878349a2da9055d8af0b54837b069e883b | Java | dmodena/Aula8 | /src/com/dmodena/model/Animal.java | UTF-8 | 656 | 2.703125 | 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 com.dmodena.model;
/**
*
* @author dmodena
*/
public abstract class Animal {
private double peso;
private String ha... | true |
2dfaa41657667f0774dd0325a86a723e345f6962 | Java | bogste/commercetools-sdk-java-v2 | /commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/ProductTypeUpdate.java | UTF-8 | 1,813 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive |
package com.commercetools.api.models.product_type;
import java.time.*;
import java.util.*;
import java.util.function.Function;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import io.vrap.rm... | true |
ba0dd9ff4054aab95f556dce614099002a3eba47 | Java | dannyYassine/PulseView | /pulseview/src/main/java/com/dannyyassine/pulseview/PulseView.java | UTF-8 | 6,018 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.dannyyassine.pulseview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.os.Handler;
import android.support.annotation.ColorRes;
import android.support.v4.content.res.Resources... | true |
a7b0beb2e04ced003f5799113d4c43fb0aa3e458 | Java | gladeador/ediciones | /src/java/cl/ediciones/controller/boleta/ModificarBoletaAction.java | UTF-8 | 2,437 | 1.859375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cl.ediciones.controller.boleta;
import cl.ediciones.model.Boleta;
import cl.ediciones.model.dao.BoletaDAO;
import cl.ediciones.util.FechaStr;
import javax.servlet.http.HttpServletRequest;
import javax.... | true |
f897c98341a76986a136fbe438d4a663b17c57a8 | Java | ankur20us/demo-junit | /src/main/java/av/demo/junit/BusinessLogic.java | UTF-8 | 451 | 2.921875 | 3 | [] | no_license | package av.demo.junit;
public class BusinessLogic {
public int divide(final int a, final int b) throws BusinessLogicRuntimeException{
if(b==0){
throw new BusinessLogicRuntimeException("Divide by 0 not possible");
}
return a/b;
}
public int add(final int a, final int b) throws BusinessLogicCompiletimeExc... | true |
c40e3a3e02b761280632f13f1de3b401e228074b | Java | tomas-pecserke/eshop-demo | /src/test/java/sk/garwan/pecserke/eshop/identity/controller/RegistrationControllerTest.java | UTF-8 | 3,642 | 2.078125 | 2 | [
"MIT"
] | permissive | package sk.garwan.pecserke.eshop.identity.controller;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.... | true |
bb8e85f9e43aabf6b81a467669dc121437f8630e | Java | jethroplanets/TodoGwtpRestDispatch | /target/.generated/com/gwtplatform/dispatch/rest/client/serialization/JacksonMapperProviderImpl.java | UTF-8 | 2,047 | 1.71875 | 2 | [] | no_license | package com.gwtplatform.dispatch.rest.client.serialization;
import javax.inject.Inject;
import javax.inject.Provider;
import com.github.nmorel.gwtjackson.client.ObjectMapper;
import com.google.inject.TypeLiteral;
import com.google.gwt.core.client.GWT;
import com.gwtplatform.dispatch.rest.client.serialization.... | true |
24b607c5850d193583df10edf44d89828fbe3d70 | Java | developer0223/MJC_SNS | /Project/MJC_SNS_2017662016/app/src/main/java/com/skykallove/mjc_sns_2017662016/DataManager/DataCheckManager.java | UTF-8 | 2,189 | 2.265625 | 2 | [] | no_license | package com.skykallove.mjc_sns_2017662016.DataManager;
import android.util.Log;
import android.widget.Toast;
import com.skykallove.mjc_sns_2017662016.Values.Tags;
import java.util.regex.Pattern;
/**
* Created by sky on 2017-11-25.
*/
public class DataCheckManager {
private static DataCheckManager _inst = nu... | true |
b0c1e79ddbf31a057d08be7d01002e0e8a0cb206 | Java | mikebyang/Friend-and-Person-List | /src/friends/Person.java | UTF-8 | 1,489 | 3.734375 | 4 | [] | no_license | package friends;
public class Person {
String name; // the person's name
Friend firstFriend; // the first friend in the list of this
// person's friends
Person nextPerson; // the next person in the list of people
public Person(String name, Person nextPerson) {
this.name = name;
this.nextPerson = n... | true |
8dea90014d803e553ca9153c201ff253954489cf | Java | ie3-institute/DWDWeatherTools | /src/test/java/edu/ie3/tools/ConverterIT.java | UTF-8 | 13,305 | 1.953125 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* © 2019. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.tools;
import static org.junit.Assert.*;
import edu.ie3.tools.models.persistence.CoordinateModel;
import java.io.File;
import ja... | true |
c4ba779735cce15398341f2a54b7ad6b3e8a9aee | Java | RedcodesDev/RxReddit | /library/src/main/java/rxreddit/model/Savable.java | UTF-8 | 135 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package rxreddit.model;
public interface Savable {
boolean isSaved();
void isSaved(boolean b);
String getFullName();
}
| true |
738c0314854c9312125f82705d973a6f2d57a88a | Java | caleo-mj/caleo | /app/src/main/java/com/example/caleo_app/DetailsActivity.java | UTF-8 | 7,154 | 2.109375 | 2 | [] | no_license | package com.example.caleo_app;
import androidx.activity.OnBackPressedCallback;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widge... | true |
b82bdc4689bfbba8dde2e88ea8166ef64b29c89c | Java | Brianp123/BoxSort | /ResultScreen.java | UTF-8 | 1,257 | 2.515625 | 3 | [] | no_license | package com.example.brian.BoxSort;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class ResultScreen extends AppCompatActivity {
TextView result;
... | true |
aca57987a2139d70276237095588f0624833cb0f | Java | osuisumi/tt | /tip-plan/tip-plan-core/src/main/java/com/haoyu/tip/plan/service/IPlanResultService.java | UTF-8 | 607 | 1.671875 | 2 | [] | no_license | package com.haoyu.tip.plan.service;
import java.util.List;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.haoyu.sip.core.service.Response;
import com.haoyu.sip.core.web.SearchParam;
import com.haoyu.tip.plan.entity.PlanResult;
public interface IPlanResultService {
Response create(PlanR... | true |
0cc3a36e67cece9bb608a4798451da1076dee709 | Java | jjwon915/Algorithm_Test_Practice | /Practice/src/baekjoon_String/Noise.java | UTF-8 | 877 | 3.484375 | 3 | [] | no_license | package baekjoon_String;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Noise {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String a = br.readLine();
String oper... | true |
9f6d9f79ab474366d6dbe0ab1175e9a0e101977b | Java | Amrit2/JavaProjects | /Week04/src/exercises/StudentTest.java | UTF-8 | 514 | 3.203125 | 3 | [] | no_license | package exercises;
import java.util.Scanner;
public class StudentTest {
public static void main(String[] args) {
Student student = new Student("anon", 18, Grade.A);
System.out.println(student);
Scanner keyboard = new Scanner(System.in);
System.out.println("Input Name: ");
String name = keyboard.nextLin... | true |
45e31cfc45a9b9840b2161fe348be10d134ddc78 | Java | pdulce/pcm | /CDDGedeoner/src/main/java/ism/utils/SeparadorApellidos.java | UTF-8 | 1,885 | 2.921875 | 3 | [] | no_license | package ism.utils;
public class SeparadorApellidos {
//Sub Separar()
public String[] separar(String apellidos){
String apellidos_ = "";
apellidos_= apellidos.replaceAll("DE LOS ", "#DE#LOS#");
apellidos_ = apellidos_.replaceAll("DE LAS ", "#DE#LAS#");
apellidos_ = apellidos_.replaceAll("DE LA ", "#DE#LA#"... | true |
b36f51f3cae7406dfbdc1a0c20ca898a4c1add1d | Java | qyvlik/orderdb | /src/main/java/io/github/qyvlik/orderdb/modules/auth/OrderDBAuthFilter.java | UTF-8 | 1,600 | 1.960938 | 2 | [
"MIT"
] | permissive | package io.github.qyvlik.orderdb.modules.auth;
import io.github.qyvlik.jsonrpclite.core.handle.WebSocketFilter;
import io.github.qyvlik.jsonrpclite.core.jsonrpc.entity.request.RequestObject;
import io.github.qyvlik.jsonrpclite.core.jsonsub.sub.SubRequestObject;
import io.github.qyvlik.orderdb.modules.auth.AuthSessionC... | true |
ce3c92761a546340ace139c4fa14cfb9e1050eb0 | Java | vbauer/yandex-translate-api | /src/main/java/com/github/vbauer/yta/service/YTranslateApiImpl.java | UTF-8 | 1,753 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.github.vbauer.yta.service;
import com.github.vbauer.yta.service.basic.AbstractApi;
import com.github.vbauer.yta.service.basic.ApiContext;
import com.github.vbauer.yta.service.fraction.DetectionApi;
import com.github.vbauer.yta.service.fraction.LanguageApi;
import com.github.vbauer.yta.service.fraction.Tran... | true |
b983be27cc3915c1ed13a317f2f67f8a33d13754 | Java | HEDMU-2016/hanses2016 | /bank/src/data/PosteringData.java | UTF-8 | 768 | 2.546875 | 3 | [] | no_license | package data;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import domain.Postering;
public class PosteringData {
public void opretPostering(Postering domain) {
try (DataAccess access = new DataAccess()) {
try {
opretPostering(access, domain);
access.commit();
} ca... | true |
4292b1613f4c1d34f4cb7e8925f98362401b7940 | Java | TomaOst/rzd-selenium | /src/main/autotests/selenium/CalendarTextField.java | UTF-8 | 451 | 2.359375 | 2 | [] | no_license | package selenium;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class CalendarTextField extends TextField {
public CalendarTextField(WebElement webElement, WebDriver webDriver) {
super(webElement, webDriver);
}
@Override
p... | true |
3a603fae24cec10e096631160b205e02f6c4c91e | Java | bxbxbx/nabaztag-source-code | /server/ContentHandler/net/violet/content/converters/AbstractConverter.java | UTF-8 | 876 | 2.421875 | 2 | [
"MIT"
] | permissive | package net.violet.content.converters;
import net.violet.common.utils.io.TmpFileManager.TmpFile;
import net.violet.common.wrapper.ContentWrapper;
import net.violet.content.AbstractAlterator;
public abstract class AbstractConverter<C extends ContentWrapper> extends AbstractAlterator implements Converter<C> {
public ... | true |
825dd5665cf0c5f5c2f7c68185817b5795dafef6 | Java | gerrypang/mutiThread | /mutiThreadDemo/src/com/gerry/pang/party3/SemaphoreDemo.java | GB18030 | 1,209 | 3.625 | 4 | [] | no_license | package com.gerry.pang.party3;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
public class SemaphoreDemo implements Runnable {
// 5źɣͬʱ̻߳ȡͬһԴ
public static Semaphore semaphore = new Semaphore(5);
@Override
public void run() ... | true |
8c200f1d4c00528617eb73d5619f6215ad51490c | Java | arnabs542/Programming-Interview-Questions | /leetcode/java/prob101SymmetricTree/IsSymmetric.java | UTF-8 | 1,916 | 4.03125 | 4 | [
"MIT"
] | permissive | /*
Problem 101: Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree [1,2,2,3,4,4,3] is symmetric:
1
/ \
2 2
/ \ / \
3 4 4 3
But the following [1,2,2,null,3,null,3] is not:
1
/ \
2 2
\ \
3 3
N... | true |
a3ee6656e2a884c78cc416c9b9c65dd71cdfe96c | Java | YYunFeng/appstore_oss | /appstore-oss-domain/src/main/java/com/jd/cms/domain/clientmanager/RecommendManagerResult.java | UTF-8 | 4,926 | 2.078125 | 2 | [] | no_license | package com.jd.cms.domain.clientmanager;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: hqj
* Date: 12-7-18
* Time: 下午4:23
* To change this template use File | Settings | File Templates.
*/
public class RecommendManagerResult implements Seriali... | true |
9c4ad390ca489ed9b35b0ae70dc5fab7fd126012 | Java | amol9372/devilmaycry | /Test/appClientModule/Programs/JsonDemo.java | UTF-8 | 858 | 2.265625 | 2 | [] | no_license | package Programs;
import javax.json.Json;
import javax.json.JsonArrayBuilder;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
import javax.swing.text.Document;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.jsoup.Jsoup;
public cl... | true |
f7d4e0f08b35c5a01d6e0df0956da4a3761b1be5 | Java | yorlov/bt | /bt-core/src/main/java/bt/torrent/selector/SelectorAdapter.java | UTF-8 | 1,941 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2016—2017 Andrei Tomashpolskiy and individual contributors.
*
* 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
*
* ... | true |
dfd859ca7f9fe2e9980611c3477c27be4075ff70 | Java | openGtsD/AukeGTS | /auke-service/src/main/java/no/auke/drone/ws/UiConfiguration.java | UTF-8 | 617 | 1.882813 | 2 | [] | no_license | package no.auke.drone.ws;
import com.yammer.dropwizard.config.Configuration;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
/**
* An object representation of the YAML ... | true |
ae604c63fbbc89869b7cdd51a985c02ad5de7d43 | Java | kristiana-s/Insure-system | /src/java/Servlet/RegisterInsured.java | UTF-8 | 8,345 | 2.71875 | 3 | [] | no_license | /**
* RegisterInsured.java; Registers an Insured user on the system by retrieving
* the entered information from the .jsp register page, using it to create the
* relevant objects for an Insured user and passing them to the
* DatabaseController to add to the database.
*/
package Servlet;
import Controller.Insuranc... | true |
d1d1d368cb3229010bdeb32bd72b35c77650e000 | Java | Solykk/bus2 | /src/main/java/com/exceptions/DuplicateCoordinateException.java | UTF-8 | 210 | 2.125 | 2 | [] | no_license | package com.exceptions;
/**
* @author Dmitriy Lyashenko
*/
public class DuplicateCoordinateException extends RuntimeException{
public DuplicateCoordinateException(String message) {
super(message);
}
}
| true |
c755d12173ea6843af6e3e1734118abf3d570e52 | Java | kkkitsch/zhiyou_workbench | /JavaBase/src/com/kkk/object/ObjectDemo03.java | UTF-8 | 1,594 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | package com.kkk.object;
public class ObjectDemo03 {
public static void main(String[] args) throws CloneNotSupportedException {
Person03 p1 = new Person03("llh", 18);
Person03 p2 = (Person03) p1.clone();
System.out.println("p1和p2是否相等:" + p1.equals(p2));
System.out.println("p1和p2的hashcode值是否相等:" + (p1.h... | true |
debb9c6f5e9d754ec887f82c6ccd9f9649c396c1 | Java | Felix212/Pathfinder | /app/src/main/java/org/tensorflow/lite/examples/detection/env/TrackingResult.java | UTF-8 | 577 | 2.28125 | 2 | [] | no_license | package org.tensorflow.lite.examples.detection.env;
import android.graphics.RectF;
public class TrackingResult {
private float CONFIDENTLEVEL;
private int RESULTS;
public RectF BOX;
public TrackingResult(float confident, RectF box) {
this.CONFIDENTLEVEL = confident;
this.BOX = box;
... | true |
3fa03c232c2569ea8fafae227263714f20414590 | Java | samsontu/eon2pm | /src/gov/va/athena/advisory/impl/DefaultAdvisory.java | UTF-8 | 9,743 | 1.929688 | 2 | [] | no_license | package gov.va.athena.advisory.impl;
import java.util.*;
//import edu.stanford.smi.eon.PCAServerModule.Guideline_Service_Record;
import gov.va.athena.advisory.*;
/**
* Generated by Protege (http://protege.stanford.edu).
* Source Class: Advisory
*
* @version generated on Wed Jun 06 18:58:08 GMT 2012
... | true |
7df2634794600c17260f67cfa7e7e7251c678665 | Java | Fffatigue/HotelInformationSystem | /HotelInformationSystem/src/main/java/ru/nsu/fit/bd/g16203/hotelInformationSystem/service/IBuildingService.java | UTF-8 | 631 | 2.25 | 2 | [] | no_license | package ru.nsu.fit.bd.g16203.hotelInformationSystem.service;
import ru.nsu.fit.bd.g16203.hotelInformationSystem.model.Building;
import ru.nsu.fit.bd.g16203.hotelInformationSystem.model.Service;
import java.sql.SQLException;
import java.util.List;
public interface IBuildingService extends GenericService<Build... | true |
cf9f87deb729179ed5ec5f8d1577509bd949f6f9 | Java | JavierER/MapsProject | /app/src/main/java/com/example/javii/appmaps/MapsActivity.java | UTF-8 | 3,939 | 2.203125 | 2 | [] | no_license | package com.example.javii.appmaps;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.FragmentActivity;
import android.os.Bundle;
import android.support.v4.content.ContextCompat;
import android.widget.Toast;
... | true |
45bf5c4f84173ca64db6be1ad486319c0ebae036 | Java | Orzzet/robocodeInteContestFinal | /src/alc/Gun.java | ISO-8859-1 | 3,824 | 2.859375 | 3 | [] | no_license | package alc;
import java.awt.Color;
import java.awt.geom.Point2D;
import alc.utils.MyRobot;
import alc.utils.Util;
import alc.utils.enemy.PatternBot;
import alc.utils.targetting.PatternTargetting;
import alc.utils.targetting.SimpleTargetting;
import robocode.BulletHitBulletEvent;
import robocode.BulletHitEvent;
impor... | true |
f2133a09683152d0892e3d59c7953a30b31b843f | Java | george-haddad/cardme | /src/net/sourceforge/cardme/vcard/features/EmailFeature.java | UTF-8 | 5,496 | 2.265625 | 2 | [] | no_license | package net.sourceforge.cardme.vcard.features;
import java.util.List;
import net.sourceforge.cardme.vcard.types.params.EmailParamType;
/*
* Copyright 2012 George El-Haddad. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided ... | true |
d97055dc8cfc3d151c2d94424680c4e3313fb0dc | Java | razeredge7/androidecommerce | /app/src/main/java/com/crew/foundation/PaymentDetailActivity.java | UTF-8 | 3,270 | 2.078125 | 2 | [] | no_license | package com.crew.foundation;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widg... | true |
16891f6ad6dfabbee3c90cad4e15d16b77136c57 | Java | Choos37ricK/group-project | /src/main/java/project/models/ResponseModel.java | UTF-8 | 189 | 2 | 2 | [] | no_license | package project.models;
import lombok.Data;
import java.util.Date;
@Data
public class ResponseModel {
private String error = "";
private Long timestamp = new Date().getTime();
}
| true |
61d7102000d32f832625648f79ee4b469ca53a59 | Java | lisongkang/my-first-project-for-revcocomcmms | /main/java/com/maywide/biz/inter/pojo/queDownPickData/AwardPunishInfo.java | UTF-8 | 705 | 2.015625 | 2 | [] | no_license | package com.maywide.biz.inter.pojo.queDownPickData;
import java.io.Serializable;
/**
* Created by lisongkang on 2019/6/28 0001.
*/
public class AwardPunishInfo implements Serializable {
private String awardPunishReason;//奖罚原因
private Double awardPunishMoney;//奖罚金额
public String getAwardPunishReason() {... | true |
cad81eea8f0444c6aca99fbdc16da22ca0f2fe90 | Java | Irhutchi/Gym-Management-Application | /Assignment3_Ver02/src/main/Person.java | UTF-8 | 3,435 | 3.59375 | 4 | [
"MIT"
] | permissive | /**
* @author Ian Hutchinson
* @version 2.0
*/
import java.util.HashMap;
public class Person {
private String name;
private String email;
private String address;
private String gender;
public String password;
//HashMap<String, String> email = new HashMap<String, String>();
/**
* De... | true |
766112f386e79924a1be014190945e416aeef831 | Java | EJBadillo/bench-book | /ecourt/src/main/java/com/sustain/dir/model/DirStatus.java | UTF-8 | 8,550 | 1.953125 | 2 | [] | no_license | package com.sustain.dir.model;
import com.sustain.DomainObject;
import com.sustain.calendar.model.CalendarRepeatable;
import com.sustain.cases.model.DisplayColorAware;
import com.sustain.dir.view.DirStatusView;
import com.sustain.expression.ExpressionContext;
import com.sustain.expression.ExpressionUtil;
import com.su... | true |
9aa98131b99969dcc5602b0cdeb2f7f832c3b8cd | Java | disvenk/disvenk | /yepao-interface/src/main/java/com/yepao/mapper/SyntheCommentMapper.java | UTF-8 | 1,018 | 1.960938 | 2 | [] | no_license | package com.yepao.mapper;
import com.yepao.pojo.SyntheComment;
import com.yepao.pojo.SyntheCommentExample;
import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SyntheCommentMapper {
int countByExample(SyntheCommentExample example);
int ... | true |
1abccbf73f4dd7d3fd4ea5de2f7a1e4497ae584f | Java | tinaxiawuhao/redis | /redisstudy/src/main/java/com/example/redisstudy/template/RedisLockCommon.java | UTF-8 | 1,459 | 2.90625 | 3 | [] | no_license | package com.example.redisstudy.template;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
/**
* @Descriptio... | true |
aa52f5ad65bc3ed48a1d316d1d4294e146b737f2 | Java | alelola/CSE220-Public | /CSE220 Lab/src/Homework1/Student.java | UTF-8 | 1,904 | 3.5 | 4 | [] | no_license | package Homework1;
import java.util.Arrays;
public class Student{
private String name;
private String id;
private String currentSemester;
private String[]courses;
private int i = 0;
public String getName(){
return name;
}
public void setName(String name){
this.name = n... | true |
996ec52524b1ee966d13039448af02b8cb98f4a5 | Java | hard5work/Ecommerce- | /app/src/main/java/com/example/anis/ecommerce/services/MyService.java | UTF-8 | 4,517 | 1.96875 | 2 | [] | no_license | package com.example.anis.ecommerce.services;
import android.app.Service;
import android.content.Intent;
import android.os.Build;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.util.Log;
import android.widget.Toast;
import com.androi... | true |
fc4aade52f0c007d4ab691b8255a5e8c84f3cc0e | Java | guneetsinghmehta/CTCI | /src/Chapter3/q3.java | UTF-8 | 318 | 2.859375 | 3 | [] | no_license | package Chapter3;
import java.util.*;
public class q3 {
public static void main(String args[]) {
stackOfStacks<Integer> stack=new stackOfStacks<Integer>(2);
for(int i=1;i<10;i++)
{
stack.push(i);
}
while(!stack.isEmpty())
{
System.out.println(stack.pop()+" "+stack.stackCollection.size());
}
}
}
| true |
7fab149aaa48448ec269316cbfb5282ebd10be8d | Java | LeonardoNozaki/LabCompila | /src/ast/ReturnStat.java | UTF-8 | 1,057 | 3.09375 | 3 | [] | no_license | /* ==========================================================================
* Universidade Federal de Sao Carlos - Campus Sorocaba
* Disciplina: Laboratorio de Compiladores
* Prof. Jose Guimaraes
*
* Trabalho de Laboratorio de Compiladores - The Cianeto Language
*
* Aluno: Bruno Rizzi RA: 743515
* Aluno... | true |
7ec8693955c9c0d0942863a044535a4c7707f36d | Java | krzych256/Shop | /src/main/java/com/zadrozny/krzysztof/model/OrderDetail.java | UTF-8 | 1,688 | 2.421875 | 2 | [] | no_license | package com.zadrozny.krzysztof.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class OrderDetail implements Serializable{
private st... | true |
fdbb95258a4ad20461353f1a146a920e8c8c72a4 | Java | SandraAnghel/oca-java8-practice | /src/com/company/chapter1/ImportNamingConflicts.java | UTF-8 | 1,099 | 3.5 | 4 | [] | no_license | /*
package = keyword = specifies the location of the class
= used by java for logical grouping of class
*/
package com.company.chapter1;
// import java.util.*; - it is not working because Date class is ambiguous
// import java.sql.*; - it is not working because Date class is ambiguous
import java.util.Da... | true |
a3e50fd708b62af047df9e3989d1bcfe887d5412 | Java | renkuangxx/pos.pay.proproperty | /app/src/main/java/com/jingpai/pos/customer/component/keyboard/Keyboard.java | UTF-8 | 5,278 | 2.28125 | 2 | [] | no_license | package com.jingpai.pos.customer.component.keyboard;
import android.app.Activity;
import android.graphics.Point;
import android.graphics.Typeface;
import android.util.TypedValue;
import android.view.Display;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.widget.I... | true |
332e789d4bf75c777678920b2cc65505e9e92855 | Java | tyang513/flink-examples | /talkingdata-flink-examples/src/main/java/com/talkingdata/flink/WiFiAnalyticsStreamingJob.java | UTF-8 | 3,054 | 2.171875 | 2 | [] | no_license | package com.talkingdata.flink;
import com.talkingdata.flink.function.ParserFlatMapFunction;
import org.apache.flink.api.common.serialization.SimpleStringSchema;
import org.apache.flink.api.java.utils.ParameterTool;
import org.apache.flink.runtime.state.filesystem.FsStateBackend;
import org.apache.flink.streaming.api.C... | true |
fefae0db1644be79b853dcc1f35256b1cd32778a | Java | CodenityOrg/Helpet-Mobile | /app/src/main/java/com/kincodi/helpet/helpetmobile/presentation/ui/adapter/ImageAdapter.java | UTF-8 | 2,439 | 2.265625 | 2 | [] | no_license | package com.kincodi.helpet.helpetmobile.presentation.ui.adapter;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.AppCompatImageView;
import android.support.v7.widget.RecyclerView;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
i... | true |
c33b79480ba3d4a27e589ea3d21544f53cc056e7 | Java | cashgithubs/RiceProject | /CodoonSportsEasyUse/src/com/codoon/easyuse/test/Test.java | UTF-8 | 278 | 1.75 | 2 | [] | no_license | package com.codoon.easyuse.test;
import com.codoon.easyuse.util.DisplayUtil;
import android.test.AndroidTestCase;
import android.util.Log;
public class Test extends AndroidTestCase {
public void testPx2Sp() {
Log.i("TAG", DisplayUtil.px2sp(getContext(), 70f) + "");
}
}
| true |
2c6bad0f1ee78041e2b30cbc578be5b2d432f878 | Java | omratas/exception-handling | /src/main/java/com/exceptionhandling/exceptionhandling/exceptions/EntityNotFoundException.java | UTF-8 | 503 | 1.960938 | 2 | [] | no_license | package com.exceptionhandling.exceptionhandling.exceptions;
import lombok.Getter;
@Getter
public class EntityNotFoundException extends ExpectedError {
private static final long serialVersionUID = 5467273153552791064L;
private Object[] args;
public EntityNotFoundException(String code, String message) {... | true |
19cfb0586e1303b19a5ecef655f254dc3ebdcb53 | Java | zhangsen1996/cloud | /cloud-consumer-feign-match80/src/main/java/com/zs/springcloud/controller/MatchFeignController.java | UTF-8 | 845 | 1.976563 | 2 | [] | no_license | package com.zs.springcloud.controller;
import com.zs.springcloud.entities.CommonResult;
import com.zs.springcloud.entities.GameServer;
import com.zs.springcloud.service.MatchFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.... | true |
bb8266c51ab31317dc8f2470d8d4f41d4bfecaf0 | Java | johnwiesel/elasticinbox | /modules/core/src/main/java/com/elasticinbox/core/cassandra/utils/ThrottlingBatchMutation.java | UTF-8 | 6,435 | 1.945313 | 2 | [
"BSD-3-Clause"
] | permissive | /**
* Copyright (c) 2011-2012 Optimax Software Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* thi... | true |
055b49a83eaf8cc1bad362d0fe2bc0aadb05229d | Java | pavelmx/coordination-module | /coordination-main/src/main/java/com/innowise/coordination/service/CustomerService.java | UTF-8 | 1,600 | 2.28125 | 2 | [] | no_license | package com.innowise.coordination.service;
import com.innowise.coordination.entity.Customer;
import com.innowise.coordination.entity.QCustomer;
import com.innowise.coordination.repository.CustomerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... | true |
84b035ff6733914dac386566faab84e9149e36a7 | Java | pgecsenyi/pirc | /src/Pirc/app/src/main/java/com/pie/pirc/async/operations/GetVideoFilterDataAsyncOp.java | UTF-8 | 2,133 | 2.4375 | 2 | [
"MIT"
] | permissive | package com.pie.pirc.async.operations;
import java.util.LinkedHashMap;
import com.pie.pirc.async.framework.AsyncOperationException;
import com.pie.pirc.async.framework.IAsyncOperation;
import com.pie.pirc.async.framework.IAsyncOperationResult;
import com.pie.pirc.async.results.VideoFilterDataResult;
import com.pie.pi... | true |
11218bb23787e93dfc253858d90f8dac6d265710 | Java | AlissonBoeing/aulasPOO | /exersoldado/src/main/java/Principal.java | UTF-8 | 501 | 1.984375 | 2 | [] | no_license | public class Principal {
public static void main(String[] args) {
Soldado a = new Soldado();
Soldado b = new Soldado();
Soldado c = new Soldado();
Soldado d = new Soldado();
Soldado e = new Soldado();
Soldado f = new Soldado();
Soldado g = new Soldado();
... | true |
168b190a1f29454b99f88124ef5308c30d7483ea | Java | elyaakoubi/tpGlog | /src/main/java/ma/ensa/dao/IgenericDao.java | UTF-8 | 342 | 1.960938 | 2 | [] | no_license | package ma.ensa.dao;
import java.io.Serializable;
import java.util.List;
public interface IgenericDao <T extends Serializable>{
public T findById(int idEntity);
public List<T> findAll();
public int create(T entity);
public T update(T entity);
public void delete(T entity);
public void deleteB... | true |
5759597638ce7d0810af3ceb9ba8b5eb4c17fd83 | Java | shimoyuki/TestCode | /SMS/src/com/shizuku/mail/core/smtp/SmtpCommandLine.java | UTF-8 | 898 | 2.75 | 3 | [] | no_license | package com.shizuku.mail.core.smtp;
import com.shizuku.mail.core.AbstractCommandLine;
import com.shizuku.mail.exception.ArgumentException;
/**
* Do with a Smtp command String line.
*/
public class SmtpCommandLine extends AbstractCommandLine {
/**
*
* @param line a string line. Command name and argu... | true |
1a2df69be5bde731fe0863bdd837e3c763d17573 | Java | RicaBenhossi/Alura-Learning | /Java/14-DataStructure_Java/src/ed/SequentialStorage/VetorTeste.java | UTF-8 | 1,979 | 3.578125 | 4 | [
"MIT"
] | permissive | package ed.SequentialStorage;
public class VetorTeste {
public static void main(String[] args) {
Aluno a1 = new Aluno("Maria");
Aluno a2 = new Aluno("João");
Vetor lista = new Vetor();
System.out.println("----------------------Testa tamanho e adiciona(aluno)---------------------... | true |
8430c195722da2b49f0b0265909b26ec3fbb744f | Java | jkcs/where-soul-java-server | /src/main/java/com/where/soul/users/controller/UsersController.java | UTF-8 | 6,138 | 1.992188 | 2 | [] | no_license | package com.where.soul.users.controller;
import com.where.soul.common.Constant;
import com.where.soul.common.LoginManager;
import com.where.soul.common.Result;
import com.where.soul.common.base.BaseController;
import com.where.soul.common.util.FormatterUtil;
import com.where.soul.users.vo.UserUpdateVO;
import com.whe... | true |
fad2decb349d584b4b7c3bc3e9ae32fa68492203 | Java | silent-codder/Hospo-Clear | /app/src/main/java/com/cctpl/hospoclear/UserRegister/Adapter/BookmarkDoctorAdapter.java | UTF-8 | 7,362 | 2.0625 | 2 | [] | no_license | package com.cctpl.hospoclear.UserRegister.Adapter;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android... | true |
4efc0bb8fb9f75e1d5c333c1ad1e264471f30447 | Java | hsjavaweb/wisdom | /framework/framework-core/src/main/java/com/wisdom/framework/core/util/json/serializer/JsonDateStringSerializer.java | UTF-8 | 1,739 | 2.625 | 3 | [] | no_license | package com.wisdom.framework.core.util.json.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import java.te... | true |
d6e5ab9fad5d3c70c217a431c97226de77bfcb28 | Java | sanmu361/tao | /tao_common/src/main/java/com/sanmu/tao/utils/IDUtils.java | UTF-8 | 598 | 2.25 | 2 | [] | no_license | package com.sanmu.tao.utils;
import java.util.Random;
import java.util.UUID;
/**
* ${DESCRIPTION}
*
* @author yansen
* @create 2018-07-12 12:37
**/
public class IDUtils {
public static String getFileNmae(){
long millis = System.currentTimeMillis();
Random random = new Random... | true |
5a1dbe4f9b527ec00480313c5f534301b8cf7aeb | Java | pentanol2/RULEstimator | /RUL_ML/src/main/java/com/devshop/sjob0/RunFExctract.java | UTF-8 | 15,272 | 2.15625 | 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.devshop.sjob0;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import org.ap... | true |
1b79b74f4ba5979d3fdf3c9970eb809dc4794a3a | Java | matewydm/test-server | /dns-model/src/main/java/pl/darenie/dns/model/dto/UserDTO.java | UTF-8 | 4,009 | 2.421875 | 2 | [] | no_license | package pl.darenie.dns.model.dto;
import java.io.Serializable;
import java.util.Date;
public class UserDTO implements Serializable{
private String firebaseToken;
private String email;
private String password;
private String firstname;
private String lastname;
private String birthDate;
pri... | true |
b3c42854fe635a2a70eeb5397aaada0a8a3b2a08 | Java | JeffHabe/Java | /InvokeExample/src/com/lfs/GUI/InvokeExample$3.java | UTF-8 | 507 | 1.929688 | 2 | [] | no_license | package com.lfs.GUI;
import com.jeff.util.Print;
import com.lfs.GUI.InvokeExample;
import com.lfs.GUI.InvokeExample.3.1;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.SwingUtilities;
class InvokeExample$3 implements ActionListener {
public void actionPerformed(ActionEven... | true |
017c6b17c9cf570edb4896b49c761897f6bb94d2 | Java | shrungBhatt/TensorFlowDemo | /app/src/main/java/org/tensorflow/demo/Interface_SetImage.java | UTF-8 | 104 | 1.71875 | 2 | [] | no_license | package org.tensorflow.demo;
public interface Interface_SetImage {
void setImage(String title);
}
| true |
1b0a441d5307f06681ff3b5a7deb211c3bf59159 | Java | sinhyung/Java_Proj | /basic_class_11/object/clone_ex/ArrayCloneTest.java | UHC | 744 | 3.65625 | 4 | [] | no_license | package basic_class_11.object.clone_ex;
public class ArrayCloneTest { //迭 .
public static void main(String[] args) {
int [] arr1 = {1,2,3,4,5};
int [] arr2 ;
arr2 = arr1.clone();
System.out.println(" arr2 迭");
for ( int num : arr2) {
System.out.println(num + " ");
}
System.out.println();
a... | true |
9f07a257af322eeb7007ef525f2de3de1989904c | Java | NCIP/webgenome | /tags/WEBGENOME_R3.2_6MAR2009_BUILD1/java/webui/src/org/rti/webgenome/webui/struts/cart/SelectedExperimentsForm.java | UTF-8 | 4,877 | 2.078125 | 2 | [
"BSD-3-Clause",
"Ruby",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*L
* Copyright RTI International
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/webgenome/LICENSE.txt for details.
*/
/*
$Revision: 1.3 $
$Date: 2007-07-18 21:42:48 $
*/
package org.rti.webgenome.webui.struts.cart;
import java.util.ArrayList;
import java.util.Col... | true |
2dd8c67a127c4d2beb206eb61839868651b7da52 | Java | tomasolalde/bootcamp | /clase-practica-03/src/bootcamp/ejercicio2/Triangulo.java | UTF-8 | 330 | 3.21875 | 3 | [] | no_license | package bootcamp.ejercicio2;
public class Triangulo extends FiguraGeometrica {
public double altura;
public double base;
public Triangulo(double altura, double base) {
this.altura = altura;
this.base = base;
}
@Override
public double area() {
return (base * altura) / 2... | true |
b70828a73689e71f542cafc2d99d7568fdd8a2c8 | Java | Apurvadutta/100DaysOfCodingChallenge | /DataStructures/src/Arrays/majorityElementOptimized.java | WINDOWS-1250 | 774 | 3.765625 | 4 | [] | no_license | package Arrays;
//Majority Element
/*Using Moores Voting Algorithm*/
public class majorityElementOptimized {
public static void main(String[] args) {
int arr[] = {4,6,5,4,5,7,5,5,5};
int n = arr.length;
findMajority(arr,n);
}
private static void findMajority(int[] arr, int n) {
int arrIndex = 0... | true |
b0858a298955e455f04589e00698d53e71023e09 | Java | dpondeljak/udmy_less | /MavenLessons/productservices/src/main/java/com/tutorial/product/sevice/ProizvodServiceImpl.java | UTF-8 | 565 | 2.203125 | 2 | [] | no_license | package com.tutorial.product.sevice;
import com.tutorial.product.dao.ProizvodDAO;
import com.tutorial.product.model.Proizvod;
public class ProizvodServiceImpl implements ProizvodService {
private ProizvodDAO iDao;
@Override
public void createProizvod(Proizvod pProizvod) {
iDao.createProizvod(pProiz... | true |
9f917c986c6a75e02d9d8782369d0235d91c2d29 | Java | paulxi/LeetCodeJava | /src/test/java/com/leetcode/algorithm/easy/verifyinganaliendictionary/SolutionTest.java | UTF-8 | 807 | 2.796875 | 3 | [
"MIT"
] | permissive | package com.leetcode.algorithm.easy.verifyinganaliendictionary;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
public class SolutionTest {
@Test
public void testCase1() {
Solution solution = new Solutio... | true |
b7aab861a6a7af31e1a1e5d00d7e6173199e7fac | Java | nicohen/tpdatos2008 | /tpdatos/src/signaturefiles/utils/SignatureUtils.java | UTF-8 | 2,361 | 2.609375 | 3 | [] | no_license | package signaturefiles.utils;
import java.util.ArrayList;
import java.util.List;
import signaturefiles.hash.APHash;
import signaturefiles.hash.BKDRHash;
import signaturefiles.hash.BPHash;
import signaturefiles.hash.DEKHash;
import signaturefiles.hash.DJBHash;
import signaturefiles.hash.ELFHash;
import sign... | true |
33e77845051a0abecbfcb41e4cd6e61ccadd012c | Java | Zynio/DatabaseOptymisticAndPesimisticLockTests | /src/main/java/com/zynis/databaselocktest/models/SomeTable.java | UTF-8 | 253 | 1.882813 | 2 | [] | no_license | package com.zynis.databaselocktest.models;
import javax.persistence.*;
@Entity
public class SomeTable {
@Version
public Long version;
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
public Long id;
public String name;
}
| true |
8e5f37b9aee8b391809a0fc7f77c533b7cb9d6bd | Java | huangliliu0917/sis | /src/test/java/com/huotu/sis/controller/sisweb/SisWebApiControllerTest.java | UTF-8 | 1,069 | 1.773438 | 2 | [] | no_license | package com.huotu.sis.controller.sisweb;
import cm.huotu.sis.common.WebTest;
import com.huotu.huobanplus.common.entity.Merchant;
import com.huotu.sis.entity.SisConfig;
import com.huotu.sis.repository.SisConfigRepository;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | true |
c0297323e566f351327e2dd46f55f92d087a5c15 | Java | MokoMaracucho/lade_2 | /src/lade/dao/DAO_ImplementationSecteur.java | UTF-8 | 7,739 | 2.3125 | 2 | [] | no_license | package lade.dao;
import static lade.dao.DAO_Utilitaire.fermeturesSilencieuses;
import static lade.dao.DAO_Utilitaire.initialisationRequetePreparee;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List... | true |
0d3bb173ac02874ec3150767217595156b05da3f | Java | namezhouyu/geliandroid | /app/src/main/java/com/geli/m/mvp/home/index_fragment/restaurantlist_activity/main/restaurant_activity/RestaurantPresentImpl.java | UTF-8 | 3,080 | 1.929688 | 2 | [] | no_license | package com.geli.m.mvp.home.index_fragment.restaurantlist_activity.main.restaurant_activity;
import com.geli.m.bean.RestaurantGoodsBean;
import com.geli.m.bean.RestaurantGoodsShopScreen;
import com.geli.m.bean.RestaurantShopBean;
import com.geli.m.config.Constant;
import com.geli.m.mvp.base.BaseObserver;
import com.ge... | true |
f6254797385d6c68500ef0bc6339a3f75e85f70e | Java | adorw9/BILD-IT-Zadaci | /src/Zadaci_25_01_2016/z_2.java | WINDOWS-1250 | 826 | 3.84375 | 4 | [] | no_license | package Zadaci_25_01_2016;
/**
* @author Adnan Brii
*
*/
/*
* Napisati program koji ispisuje sve proste brojeve od 2 do 1000, ukljuujui i
* 2 i 1000. Program treba da ispie 8 brojeva po liniji te razmak izmeu
* brojeva treba da bude jedan space.
*/
public class z_2 {
public static void main(Strin... | true |