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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d6c06fb4c621730215424bad61da7a1c283ec71b | Java | chgmxx/BETA-app | /app/src/main/java/com/hitstreamr/hitstreamrbeta/TrendingVideosAdapter.java | UTF-8 | 4,678 | 2.109375 | 2 | [] | no_license |
package com.hitstreamr.hitstreamrbeta;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recycler... | true |
58f9663d494ad59e86fbaa893cd194b07735b68a | Java | cankayaozan/repo | /src/HMammal.java | UTF-8 | 135 | 2.71875 | 3 | [] | no_license |
public abstract class HMammal extends HAnimal{
public HMammal(String name){
super(name);
}
public abstract void giveBirth();
}
| true |
df0be529a2cc145298bdaa4e0623b5c44204c0ef | Java | Epicodus-SZ/animal-shelter-java | /src/main/java/Animal.java | UTF-8 | 2,017 | 3.25 | 3 | [] | no_license | import java.time.LocalDateTime;
import java.sql.Timestamp;
import java.util.List;
import org.sql2o.*;
enum Gender { MALE, FEMALE; }
enum Animal_Type { CAT, DOG; }
public class Animal {
private int id;
private String name;
private Gender gender;
private Animal_Type animal_type;
private LocalDateTime admit;
... | true |
c47be4086f26a7c13dbc87dd6edf9f2beb41946f | Java | Pur777/JavaRush | /2.JavaCore/src/com/javarush/task/task14/task1414/Solution.java | UTF-8 | 1,530 | 3.46875 | 3 | [] | no_license | package com.javarush.task.task14.task1414;
/*
MovieFactory
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(Sy... | true |
ba249d14700a26d86475729063a4c0a8c9ddffd6 | Java | septantrionalis/jalog | /jalog/jlog/logbook/jlogentry/Misc.java | UTF-8 | 2,581 | 2.390625 | 2 | [] | no_license | package jalog.jlog.logbook.jlogentry;
import jalog.jlog.logbook.Adif;
/**
* An interface that defines the data that doesn't belong anywhere else API.
* This interface defines :
*
* COMMENT
* ARRL_SECT
* CONTEST_ID
* NOTES
* PFX
* TEN_TEN
* VE_PROV
*
* @author KC0ZPS
*/
public interface Misc extends ... | true |
380f9462ddafe565d7cff0a30f1311986be6a1f2 | Java | bvpelt/restdemo | /src/main/java/nl/bsoft/rest/restdemo01/domain/Account.java | UTF-8 | 1,153 | 2.140625 | 2 | [
"MIT"
] | permissive | package nl.bsoft.rest.restdemo01.domain;
import org.springframework.hateoas.ResourceSupport;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Table(name = "account")
public class Account extends ResourceSupport implements Serializable {
private static final long serialVersionUID = 1L;
@Id
... | true |
73c97f31a3217c290c129ada14ad8c259bfdf04c | Java | johnsiu2016/MiniProj1HttpAsync | /app/src/main/java/com/example/john/miniproj1httpasync/HttpGet.java | UTF-8 | 3,369 | 2.609375 | 3 | [] | no_license | package com.example.john.miniproj1httpasync;
import android.os.AsyncTask;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
i... | true |
f26d83594224326c36d548d607000486c6a34a5f | Java | DesiredRealmsMC/Framework | /src/no/runsafe/framework/internal/event/listener/entity/ProjectileHit.java | UTF-8 | 1,491 | 2.359375 | 2 | [] | no_license | package no.runsafe.framework.internal.event.listener.entity;
import no.runsafe.framework.api.EventRouterFactory;
import no.runsafe.framework.api.IOutput;
import no.runsafe.framework.api.IScheduler;
import no.runsafe.framework.api.event.IRunsafeEvent;
import no.runsafe.framework.api.event.entity.IProjectileHitEvent;
im... | true |
13faa5e157c02db2a6e58c47a47395bdf0960e71 | Java | bellmit/Medscape-decompile | /sources/mnetinternal/bf.java | UTF-8 | 2,381 | 1.835938 | 2 | [] | no_license | package mnetinternal;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.text.TextUtils;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public final class bf {
public static String a(Activity ... | true |
89dc054fcde4583057abdfe359aaedf437c7b899 | Java | MaximLukoshko/Java | /Interfaces/src/food/IceCream.java | UTF-8 | 802 | 3.1875 | 3 | [] | no_license | package food;
public class IceCream extends Food {
private String Param;
public IceCream(String sir) {
super("IceCream");
Param = sir;
// TODO Auto-generated constructor stub
}
protected String getParam() {
return Param;
}
@Override
public int calculateCalories() {
// TODO Auto-generated method st... | true |
a2ea650dd5031df67d30a3fd9acd3c9997cfe701 | Java | mlzarathustra/ondes | /src/main/java/ondes/synth/filter/iir/IIRSpec.java | UTF-8 | 400 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package ondes.synth.filter.iir;
/**
* <p>
* With the wide difference in the scale of values,
* (e.g. 1e11 - 1e-11) the calculations need to be
* double in order to avoid instability.
* </p>
* */
public class IIRSpec {
String key;
double[] a, b;
IIRSpec(String key, double[][]ab) ... | true |
5383dbe7efd0cb3ed2ba3688c964b0cc7a65252e | Java | ou5y/SpringCloud | /ribbon-consumer/src/main/java/com/bp/ribbonconsumer/command/UserObservableCommand.java | UTF-8 | 1,423 | 2.5625 | 3 | [] | no_license | package com.bp.ribbonconsumer.command;
import com.bp.ribbonconsumer.entity.User;
import com.netflix.hystrix.HystrixObservableCommand;
import org.springframework.web.client.RestTemplate;
import rx.Observable;
import rx.Subscriber;
/**
* 这个类是用原生代码实现的熔断
* UserService类是用HystrixCommand注解实现的熔断
*/
public class UserObserv... | true |
8778b4ec37d726f51e30f17b448b67f9cd85dc06 | Java | jmarcm/nfa031 | /cnam_nfa031/src/moyenne_eleve.java | WINDOWS-1257 | 587 | 3.625 | 4 | [] | no_license |
public class moyenne_eleve {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
// Dclarations
double maths, info, fr, total, coef, moy;
// Dbut
System.out.print ("Donner la note en Maths : ");
maths = Lire.d();
System.out.print ("Donner la note ... | true |
3ad6e7969dd8ad3cf212709c38071311cb208507 | Java | linagora/james-project | /server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remoteDelivery/ExecutionResult.java | UTF-8 | 3,331 | 1.96875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | 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... | true |
0d3fe9b6fe101dc96cf909dd84e155330bb83561 | Java | ca4los-palalia/c4m3-ct41-w36 | /control-parent/control-model/src/main/java/com/came/control/model/domain/Pais.java | UTF-8 | 1,127 | 2.078125 | 2 | [] | no_license | package com.came.control.model.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "pais"... | true |
d971af556a10c7b3176af9fdd406a554806aebbb | Java | akeylesslabs/akeyless-java | /src/main/java/io/akeyless/client/model/UpdatePingTarget.java | UTF-8 | 13,237 | 1.640625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Akeyless API
* The purpose of this application is to provide access to Akeyless API.
*
* The version of the OpenAPI document: 2.0
* Contact: support@akeyless.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the ... | true |
86bd6601b83da9b6121098aecb9c8b9169142e87 | Java | gfis/joeis-lite | /internal/fischer/mangf/A360319.java | UTF-8 | 439 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package irvine.oeis.a360;
// Generated by gen_seq4.pl holgrep/holos at 2023-05-08 18:43
import irvine.oeis.recur.HolonomicRecurrence;
/**
* A360319 a(n) = Sum_{k=0..n} 4^(n-k) * binomial(n-1,n-k) * binomial(2*k,k).
* @author Georg Fischer
*/
public class A360319 extends HolonomicRecurrence {
/** Construct the s... | true |
4b233e29294ff1ea2d5b3e7a2c0c09a22ccb713d | Java | cloudoak/spring-boot-sync | /src/main/java/app/environment/AppConfig.java | UTF-8 | 460 | 1.820313 | 2 | [] | no_license | package app.environment;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import java.util.concurrent.ThreadFactory;
/**
*
* @author OAK
*
*/
@Component
public class AppConfig {
@Bean
publi... | true |
4dc494a8922152cf58a3d57534de45cd32e4fd2e | Java | HyeongJunMin/RHYMES | /src/main/java/com/rhymes/app/member/controller/MemberController.java | UTF-8 | 16,618 | 1.726563 | 2 | [
"MIT"
] | permissive | package com.rhymes.app.member.controller;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
... | true |
c0f0b9cdf2ddb640c23dab8f2e4b6debd0492f9f | Java | suliyu/evolucionNetflix | /com/netflix/mediaclient/service/player/subtitles/SubtitleScreen.java | UTF-8 | 1,558 | 2.078125 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.netflix.mediaclient.service.player.subtitles;
import java.util.List;
public class SubtitleScreen
{
public static final int DEFAULT_SUBTITLE_SCREEN_UPDATE = 2000;
private List<SubtitleBlock> mDisplayLaterBlocks;
private List<SubtitleBlock> mDisplayNowBl... | true |
699a4a666f865bda136f4641a74348f8ae3215ce | Java | sergio5990/order_keeper | /src/main/java/com/sashaq/dao/impl/AuthenticationDaoImpl.java | UTF-8 | 1,287 | 2.3125 | 2 | [] | no_license | package com.sashaq.dao.impl;
import com.sashaq.dao.AuthenticationDao;
import com.sashaq.entity.User;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;
@Repository
public class AuthenticationDaoImpl extends BaseDao<User> implements Aut... | true |
ea60921039e0001f791632f8ecb8ec7ee5a926d9 | Java | mcrowder65/settlers-of-catan | /Project/test/communication/HTTPProxyTest.java | UTF-8 | 1,890 | 2.078125 | 2 | [] | no_license | package communication;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import client.communication.*;
import client.utils.Translator;
import shared.communication.response.*;
import org.junit.FixM... | true |
fefd139b573486ea0bc8c7cd446fdcd83410f8e9 | Java | robertm86/Desenhos | /src/edu/udc/psw/desenhos/DB/DAO/RetanguloDAO.java | ISO-8859-1 | 3,306 | 2.953125 | 3 | [] | no_license | package edu.udc.psw.desenhos.DB.DAO;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import edu.udc.psw.desenhos.DB.DBConnection;
import edu.udc.psw.modelo.Linha;
import edu.udc.psw.modelo.Retangulo;
public class RetanguloDAO {
private int desenho;
private Statement ... | true |
b1d82a113bb0319ca0cb4c1f9fcd3641dbb0e16f | Java | WSANTOL/GEWST | /app/src/main/java/com/example/wenceslao/gestionempresa/ActividadPrincipal.java | UTF-8 | 4,446 | 2.21875 | 2 | [] | no_license | package com.example.wenceslao.gestionempresa;
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.... | true |
20bb2175fd1f55c2329b587dde3070821453696a | Java | fperezHB/ideanoval | /src/Interfaces/ideaInterface.java | UTF-8 | 316 | 1.75 | 2 | [] | no_license | package Interfaces;
import java.util.Date;
import ideanoval.business.Idea;
public interface ideaInterface {
public boolean createIdea (Idea idea);
public boolean noteIdeaTop (int id_Idea, int vote_Idea);
public boolean noteIdeaFlop (int id_Idea, int vote_Idea);
public boolean deleteIdea (int id_Idea);
}
| true |
50373d7c6d0af9786bb39ccc3aa6031b46a2be83 | Java | wzes/JavaLearning | /src/main/java/leetcode/Solution_297.java | UTF-8 | 956 | 3.375 | 3 | [] | no_license | package leetcode;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Queue;
public class Solution_297 {
// Encodes a tree to a single string.
public String serialize(TreeNode root) {
if (root == null) {
return "$,";
}
return root.val + "," + serialize(r... | true |
8b2f65f6be4136c0cdf9d761bad31b047b49b8eb | Java | alexeremeev/aeremeev | /chapter_010(cars)/src/main/java/ru/job4j/dao/UserDAO.java | UTF-8 | 576 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.dao;
import ru.job4j.models.User;
import java.util.List;
/**
* User model DAO.
* @author aeremeev.
* @version 1
* @since 05.02.2018
*/
public class UserDAO extends GenericDAO {
public User isCredential(String login, String password) {
User exists = null;
List<User> users = ... | true |
76020aa3c399c10016414bf6024a76041e827b9f | Java | sufadi/decompile-hw | /decompile/app/Contacts/src/main/java/com/android/contacts/TypePrecedence.java | UTF-8 | 1,772 | 2.484375 | 2 | [] | no_license | package com.android.contacts;
@Deprecated
public final class TypePrecedence {
private static final int[] TYPE_PRECEDENCE_EMAIL = new int[]{0, 1, 2, 3};
private static final int[] TYPE_PRECEDENCE_IM = new int[]{0, 1, 2, 3};
private static final int[] TYPE_PRECEDENCE_ORG = new int[]{0, 1, 2};
private sta... | true |
9b8e4fbdb5987176f9a5395402fff1ef48ca91a0 | Java | Tytraman/MagicBlocks | /src/net/kitcake/magic/Group.java | UTF-8 | 3,624 | 2.625 | 3 | [] | no_license | package net.kitcake.magic;
import org.bukkit.Material;
import org.bukkit.block.Block;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
public class Group {
private List<Block> blocks;
private final String groupName;
private long timer; // Temps en millisecondes
private l... | true |
df0730a599e23a62ef32248f3ee57f26ad8a0dbf | Java | sengeiou/bdonor_Public | /bdonor/app/src/main/java/com/sq/sohel/blooddonor/ui/main/rating/RateUsViewModel.java | UTF-8 | 3,241 | 1.898438 | 2 | [
"MIT"
] | permissive |
package com.sq.sohel.blooddonor.ui.main.rating;
import android.databinding.ObservableField;
import com.sq.sohel.blooddonor.data.DataManager;
import com.sq.sohel.blooddonor.data.model.api.RateUs.RateUsRequest;
import com.sq.sohel.blooddonor.ui.base.BaseViewModel;
import com.sq.sohel.blooddonor.data.model.others.Vali... | true |
7b29758af551c28109f7431f71fd5f96d80a9123 | Java | mhburlin/Java_CTe | /src/main/java/br/com/samuelweb/mdfe/ValidarMDFe.java | UTF-8 | 2,693 | 2.21875 | 2 | [
"MIT"
] | permissive | /*
* 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 br.com.samuelweb.mdfe;
import java.io.File;
import br.com.samuelweb.cte.ConfiguracoesIniciais;
import br.com.samuelweb.except... | true |
c6fb26aa5674ce60a501e0b078999865c7531e64 | Java | TheDudeFromCI/Talantra-Old | /ConquestRTS/src/com/wraithavens/conquest/SinglePlayer/Particles/ParticleTypes/AesiaStemPedals.java | UTF-8 | 1,179 | 2.375 | 2 | [
"MIT"
] | permissive | package com.wraithavens.conquest.SinglePlayer.Particles.ParticleTypes;
import com.wraithavens.conquest.Math.Vector3f;
import com.wraithavens.conquest.SinglePlayer.Particles.ParticleBatch;
import com.wraithavens.conquest.SinglePlayer.RenderHelpers.Camera;
public class AesiaStemPedals extends EntityParticleEngine... | true |
481edc782070793f7635925cc705c7496767786e | Java | nicolas-gross/curso-java | /Java Fundamentos/04Construtor/src/exemplo02/Cargo.java | ISO-8859-1 | 1,378 | 3.515625 | 4 | [] | no_license | package exemplo02;
import java.util.Scanner;
public class Cargo {
// Contadores de cargos
private int desenvolvedor, analista, gerente, estagiario, documentador;
// Construtor
public Cargo() {
repeticao();
exibir();
}
// Mtodo de repetio
private void repeticao() {
//Classe Scanner
Scanner ler =... | true |
2a9f1ed9221e7d1a4fe97c9c0ff422eb997804d8 | Java | nktmehra/Practice | /src/recursion/Example1.java | UTF-8 | 256 | 3.265625 | 3 | [] | no_license | package recursion;
public class Example1 {
public static void main(String[] args) {
example1(3);
}
static void example1(int n) {
if(n<1) {
return;
}
else {
System.out.print(n+" ");
example1(n-1);
System.out.print(n+" ");
}
}
}
| true |
df484e77325d18baa1442feb9d5181683b36b9d7 | Java | guiihmendes92/gerador-transacoes-excel | /src/simulador/interfaces/Pedido.java | UTF-8 | 116 | 1.976563 | 2 | [] | no_license | package simulador.interfaces;
public interface Pedido {
public void enviar();
public void receber();
}
| true |
93cebe64100bb394b5422947c3599523fbabd486 | Java | AY1920S2-CS2103T-W17-4/main | /src/main/java/tatracker/ui/studenttab/GroupListPanel.java | UTF-8 | 2,786 | 2.484375 | 2 | [
"MIT"
] | permissive | //@@author fatin99
package tatracker.ui.studenttab;
import static tatracker.model.TaTracker.getCurrentlyShownGroup;
import java.util.logging.Logger;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import javafx.scene.layo... | true |
6efd3d40c2a47517feb8983e261a4ace148a725a | Java | MavonCmc/wdw | /news-master/news-app/news-app-server/src/main/java/com/kanfa/news/app/vo/site/SiteInfo.java | UTF-8 | 1,094 | 1.976563 | 2 | [] | no_license | package com.kanfa.news.app.vo.site;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
/**
* @author Jiqc
* @date 2018/4/2 19:23
*/
@Document(collection = "site")
public class SiteInfo implements Serializable{
private String id;
private String name;
private St... | true |
88c96aeb738fd2673eb7b6c2a44a221536bc1cbc | Java | nimaafshar/MathExpressionEvaluator | /src/Associativity.java | UTF-8 | 45 | 1.9375 | 2 | [] | no_license | public enum Associativity {
LEFT,RIGHT
}
| true |
fc5ecd7ddd09eb348e47562dd148e72c649d8bbf | Java | wieczorekmarcin/ffr-api | /src/main/java/pl/cdv/ffr/model/Trash.java | UTF-8 | 552 | 2.390625 | 2 | [] | no_license | package pl.cdv.ffr.model;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
@Entity
@DynamicUpdate
public class Trash extends BaseMedia {
private String unit = "os.";
public Trash() {
}
public Trash(String status, String rate, String used, String date, String amount, Stri... | true |
8096dce376a00ecdc903e0204d6b6f566cdf5810 | Java | cha63506/CompSecurity | /Shopping/offerup_source/src/com/apptentive/android/sdk/module/engagement/logic/Condition.java | UTF-8 | 457 | 1.71875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.apptentive.android.sdk.module.engagement.logic;
public class Condition
{
public Object operand;
public Predicate.Operation... | true |
2ea01569e401ebeaef305bbd64407d0cd813003c | Java | Praneeth1441/SWLab4_MiniProject | /src/com/model/admin.java | UTF-8 | 1,933 | 2.671875 | 3 | [] | no_license | package com.model;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class admin {
String name;
String password;
public void getdetails(String name) throws Exception
{
String url = "jdbc:mysql://localhost:3306/miniproject";
String uname... | true |
0e9d3e1c6bec16ad72e372e8b8b3c2f4209b35bc | Java | jdye64/GPIO | /src/main/java/com/jeremydyer/gpio/dao/LocationDao.java | UTF-8 | 250 | 1.5625 | 2 | [] | no_license | package com.jeremydyer.gpio.dao;
import com.jeremydyer.gpio.core.Location;
/**
* Persistance layer for the locations.
*
* User: jeremydyer
* Date: 1/30/14
* Time: 3:03 PM
*/
public interface LocationDao
extends BaseDao<Location, Long>{
}
| true |
49aa8b7eaaff0700bebc25dfd03c1e1495ac8a2f | Java | xie-summer/iWMSPaltform | /wmsInterface/src/main/java/com/huamengtong/wms/inwh/service/IReceiptDetailService.java | UTF-8 | 2,202 | 1.617188 | 2 | [] | no_license | package com.huamengtong.wms.inwh.service;
import com.huamengtong.wms.core.formwork.db.vo.DbShardVO;
import com.huamengtong.wms.core.web.MessageResult;
import com.huamengtong.wms.core.web.PageResponse;
import com.huamengtong.wms.dto.inwh.TWmsReceiptDetailDTO;
import com.huamengtong.wms.entity.inwh.TWmsAsnDetailEn... | true |
6f7d3b312b8f7fa9d5e70a763ef010da7ecf4c12 | Java | Roy812/Project_with_security | /src/main/java/springboot/with/security/service/UserServiceImpl.java | UTF-8 | 4,955 | 2.4375 | 2 | [] | no_license | package springboot.with.security.service;
import springboot.with.security.domain.User;
import springboot.with.security.exception.BadRequestException;
import springboot.with.security.exception.RecordNotFoundException;
import springboot.with.security.exception.UserNotFoundException;
import springboot.with.security.repos... | true |
9a6053e6efe7384e70d6029a02ac87f3868db07c | Java | lsst-camera-visualization/FITSInfo | /src/main/java/org/lsst/fits/fitsinfo/EventSender.java | UTF-8 | 1,040 | 2.171875 | 2 | [] | no_license | package org.lsst.fits.fitsinfo;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.sse.Sse;
import javax.ws.rs.sse.SseEventSink;
import org.lsst.ccs.imagenaming.Source;
/**
*
* @author tonyj
*/
@Path("{site... | true |
6f696f0b73a6578bf327049d623fda31f4268898 | Java | Alex-apple1/trainig-Anton | /src/main/java/calculator/CalcTest.java | UTF-8 | 434 | 3.046875 | 3 | [] | no_license | package calculator;
public class CalcTest {
public static void main(String[] args) {
Calc calc = new Calc();
System.out.println(calc.sum(2, 2) == 4);
System.out.println(calc.sum(-2, -2) == -4);
System.out.println(calc.sum(2, -1) == 1);
System.out.println(calc.sum(0, 0) == ... | true |
52c21a84bbf9d5650eefaf49fbffff162be886d9 | Java | wjwarren/glitch-api-wrapper-android | /src/nl/ansuz/android/glitch/api/vo/players/ClothingItemVO.java | UTF-8 | 648 | 1.945313 | 2 | [] | no_license | package nl.ansuz.android.glitch.api.vo.players;
import com.google.gson.annotations.SerializedName;
/**
* Representation of a single Clothing item in Glitch.
*
* @author Wijnand
*/
public class ClothingItemVO {
@SerializedName("id")
public int id;
@SerializedName("name")
public String name;
@SerializedN... | true |
f510a5ae5e6d72c14c117f60ab12d95a5c8d478e | Java | bdeining/cs414-f18-801-singleton | /database-handler/src/main/java/edu/colostate/cs/cs414/p3/bdeining/sql/CustomerHandlerImpl.java | UTF-8 | 8,274 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package edu.colostate.cs.cs414.p3.bdeining.sql;
import static edu.colostate.cs.cs414.p3.bdeining.sql.HandlerUtils.createTable;
import static edu.colostate.cs.cs414.p3.bdeining.sql.HandlerUtils.getExistingTables;
import static edu.colostate.cs.cs414.p3.bdeining.sql.HandlerUtils.getResultSetById;
import static edu.colos... | true |
389fd0582391a1d6b7984efb7d735fa03e7724ef | Java | heatsink/Coding-Exercises | /Leetcode/Contest40/equation/Solution.java | UTF-8 | 2,382 | 3.390625 | 3 | [] | no_license | import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
System.out.println("Solution: " + solveEquation("x+5-3+x=6+x-2"));
System.out.println("Solution: " + solveEquation("x=x"));
System.out.println("Solution: " + solveEquation("2x=x"));
System.out.... | true |
3118aebfb52c719b175150ed0fffdae7568fb992 | Java | teddypickerfromul/Java | /MyMoneyTrack/MoneyTrackerFXClient/src/moneytrackerfxclient/MoneyTrackerFXClient.java | UTF-8 | 7,228 | 2.453125 | 2 | [] | no_license | package moneytrackerfxclient;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.fxml.JavaFXBuilderFactory;
import javafx.scene.Parent;
import javafx.sc... | true |
a1af0f582c8edccf049281d1d17ae0b8b4097338 | Java | zhiyongwu/JavaCode | /src/main/java/Java/chapter5/exec/DisplayLeapYear.java | UTF-8 | 617 | 3.46875 | 3 | [] | no_license | package Java.chapter5.exec;
/**
* Created by Administrator on 2016/1/20.
*/
public class DisplayLeapYear {
public static boolean isLeapYear(int year){
return year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
}
public static void main(String[] args) {
int count = 0;
for (int i ... | true |
b9f8c3be3264bbe5042fe65b3179b1d2cedf03d8 | Java | andifalk/reactive-spring-security-5-workshop | /intro-labs/github-client/src/main/java/com/example/github/restapi/UserIdController.java | UTF-8 | 1,025 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package com.example.github.restapi;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.oauth2.client.OAuth2AuthorizedClient;
import org.springframework.security.oauth2.client.annotation.RegisteredOAuth2AuthorizedClient;
import org.springframework.security.o... | true |
bc981e5c8d616f52042e4d172eed30f32fe3d2f7 | Java | RainbleNi/ModuleDivider | /moduleA/src/main/java/rainbow/modulea/ApplicationA.java | UTF-8 | 878 | 2.234375 | 2 | [] | no_license | package rainbow.modulea;
import android.app.Application;
import rainbow.commonlibrary.AppContext;
import rainbow.commonlibrary.BaseChildApplication;
import rainbow.commonlibrary.communication.FunctionA;
import rainbow.commonlibrary.communication.FunctionBus;
/**
* Created by Nirui on 17/2/21.
*/
public class Appli... | true |
75d6bd24a85764e1bbbb85eb2fa419f2252aa901 | Java | BrHux/EVMirror | /app/src/main/java/cn/ieway/evmirror/application/MirrorApplication.java | UTF-8 | 6,293 | 1.8125 | 2 | [] | no_license | package cn.ieway.evmirror.application;
import android.app.ActivityManager;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Point;
import android.util.DisplayMetrics;
import android.util.Log;
import android.... | true |
04debbace323348ff38090ca78a76565c2f47ef7 | Java | 19Pawel97/ExercisesJavaAdvanced | /src/main/java/enums/exercise3/TemperatureConverter.java | UTF-8 | 1,746 | 3.4375 | 3 | [] | no_license | package enums.exercise3;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public enum TemperatureConverter {
C_F('C', 'F', new Converter() {
@Override
public float convert(float tempIn) {
return (tempIn * 9 / 5) + 32;
}
}),
C_K('C', 'K', new Converter() {
@... | true |
f47fe4331d9237ea81269ae78c73245d01a1d69c | Java | paulrobinson/compensations | /src/main/java/org/jboss/narayana/compensations/api/CompensationTransactionRuntimeException.java | UTF-8 | 393 | 1.835938 | 2 | [] | no_license | package org.jboss.narayana.compensations.api;
/**
* @author paul.robinson@redhat.com 22/04/2013
*/
public class CompensationTransactionRuntimeException extends RuntimeException {
public CompensationTransactionRuntimeException(String message) {
super(message);
}
public CompensationTransactionRu... | true |
af926ed435e49a3a5c4e2afc0db26f1ff6d04a96 | Java | gino247/javaTricks | /JustAnotherSimpleByteUtil.java | UTF-8 | 844 | 3.171875 | 3 | [] | no_license | package gino247;
public class JustAnotherSimpleByteUtil {
final protected static char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();
public static byte[] hex2byteArray(String hex) {
byte[] b = new byte[hex.length() / 2];
int k;
for (int i = 0, j = 0; i < hex.length() / 2; i+... | true |
559fa41e1d2743107c8513d522b9b1bfe951e764 | Java | DhvanilkumarPatel/Blackjack | /src/main/java/game/GameController.java | UTF-8 | 880 | 2.75 | 3 | [] | no_license | package game;
import player.Player;
import view.GameView;
public class GameController {
private GameModel game;
private GameView view;
public GameController(GameModel game, GameView view) {
this.game = game;
this.view = view;
game.setController(this);
view.setController(t... | true |
df4899a29cd3ccc0ae053d5508f7eafffc4fbeeb | Java | bjxiaoshuang/akka-websockets | /src/main/java/com/richard/websockets/context/websockets/WebsocketConfig.java | UTF-8 | 2,042 | 2.0625 | 2 | [] | no_license | package com.richard.websockets.context.websockets;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.converter.DefaultContentTypeResolver;
import org.spring... | true |
9efb0c3d2045c78fb2dda4568928a0b8857c6177 | Java | geonyeongkim/public_bigdata_batch | /src/main/java/com/skuniv/bigdata/repository/BuildingRepository.java | UTF-8 | 349 | 1.984375 | 2 | [] | no_license | package com.skuniv.bigdata.repository;
import com.skuniv.bigdata.domain.entity.Building;
import org.springframework.data.jpa.repository.JpaRepository;
public interface BuildingRepository extends JpaRepository<Building, Long> {
Building findByCityAndGroopAndBuildingNumAndFloor(Integer city, Integer groop, String b... | true |
6d830002b95d523c9358ab97f964b09d44fc9c88 | Java | ysq1051838264/CodeGun | /app/src/main/java/com/jiafeng/codegun/adapter/CheckModel.java | UTF-8 | 2,069 | 2.453125 | 2 | [] | no_license | package com.jiafeng.codegun.adapter;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by yangshuquan on 2018/3/2.
*/
/**
* 订单model
*/
public class CheckModel implements Parcelable {
public String companyNo; //公司编号
public String checkId; //盘点单id
public String sheetNo; //单号
... | true |
61430b6afadb6b9d8843f743667c3ab81082a803 | Java | nithin-jayan/book-store | /src/main/java/com/store/book/model/CheckoutRequest.java | UTF-8 | 1,019 | 2.078125 | 2 | [] | no_license | package com.store.book.model;
import com.store.book.exception.ApiException;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.CollectionUtils;
import reactor.core.publisher.Mono;
import javax.valida... | true |
68552c7372896dd0693564ea68654b27c76e20a5 | Java | donggua2960/leyou | /leyou-upload/src/main/java/com/leyou/upload/service/UploadService.java | UTF-8 | 384 | 2.125 | 2 | [] | no_license | package com.leyou.upload.service;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
@Service
public class UploadService {
public String uploadImage(MultipartFile file) {
//校验文件类型
//校验文件内容
//保存到服务器
//返回url,进行回显
return ... | true |
d8b5819580b61beb9cd3268ef928d7903f20c8b6 | Java | gudtjrwns/jacktest2 | /src/main/java/com/example/jacktest2/services/NoticeService.java | UTF-8 | 9,242 | 2.171875 | 2 | [] | no_license | package com.example.jacktest2.services;
import com.example.jacktest2.dao.NoticeValue;
import com.example.jacktest2.entities.Notice;
import com.example.jacktest2.exception.NoticeNotFoundException;
import com.example.jacktest2.repositories.NoticeRepository;
import com.example.jacktest2.utility.DateUtil;
import com.examp... | true |
ac65009c1f3c8996c9023fc879084d43ee15b140 | Java | aurimasb1337/Buildings-Management-API | /src/main/java/com/buildings/demo/services/PropertyService.java | UTF-8 | 1,873 | 2.546875 | 3 | [] | no_license | package com.buildings.demo.services;
import com.buildings.demo.models.Person;
import com.buildings.demo.models.Property;
import com.buildings.demo.repositories.PersonRepository;
import com.buildings.demo.repositories.PropertyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
50c3864d27c804cfc47a1206acb827e403a74a6b | Java | code-fusheng/springcloud | /eurekaclient/src/main/java/xyz/fusheng/controller/StudentHandler.java | UTF-8 | 1,991 | 2.4375 | 2 | [] | no_license | package xyz.fusheng.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import xyz.fusheng.entity.Student;
import xyz.fusheng.repository.StudentRepository;
import java.util.Collection;
... | true |
fcc2bcd054d4d4bfda2dec378f35abaa355609b6 | Java | Haarini/Java | /rotfl.java | UTF-8 | 488 | 3.40625 | 3 | [] | no_license | import java.util.*;
import java.lang.*;
//To rotate first and last element in an array
class rotfl
{
public static void main(String args[])
{
int[] array_nums = {23, 345, 450};
System.out.println("Original Array: "+Arrays.toString(array_nums));
int x = array_nums[0];
array_nums[0] = array_nums[array_num... | true |
cb30c5e45a962dc66e0c1e893751178e59bb3bcf | Java | CWonLee/LemonCook | /app/src/main/java/com/makers/lemoncook/src/recipe/RecipeService.java | UTF-8 | 5,308 | 2.265625 | 2 | [] | no_license | package com.makers.lemoncook.src.recipe;
import com.makers.lemoncook.src.recipe.interfaces.RecipeActivityView;
import com.makers.lemoncook.src.recipe.interfaces.RecipeRetrofitInterface;
import com.makers.lemoncook.src.recipe.models.RequestZZim;
import com.makers.lemoncook.src.recipe.models.ResponseDeleteRecipe;
... | true |
052e5bfc6d858cead56bed61b7f639fcfa99cebc | Java | cha63506/CompSecurity | /Shopping/target_source/src/com/target/ui/view/BackSpaceDetectorEditText.java | UTF-8 | 2,948 | 1.71875 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.target.ui.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.... | true |
a438cc6609632055f7686c7d89dde7082bd0f168 | Java | NikolaStojan98/ITBootcamp-Project | /Projekat/src/humanity/page/objects/HumanityProfile.java | UTF-8 | 1,987 | 2.296875 | 2 | [] | no_license | package humanity.page.objects;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class HumanityProfile {
private static final String PROFILE_ICON_XPATH ="//div[@id='wrap_us_menu']";
private static final String PROFILE_XPATH ="//a[contains(text(),'Pr... | true |
2dcc651b839be67545525f2f7cf0e5d24260727a | Java | qinjie1314520/Java | /src/main/java/com/example/demo/exercise/跳台阶.java | UTF-8 | 412 | 2.734375 | 3 | [] | no_license | package com.example.demo.exercise;
public class 跳台阶 {
class Solution {
private int re = 0;
public int JumpFloor(int target) {
if(target==0){
return 1;
}else if(target < 0){
return 0;
}
int one = JumpFloor(target-1);
... | true |
601e9ab3690c8d7c2c401469a1e57c0a364083b4 | Java | amit-n8111/quest-hub-java | /quest-hub/src/main/java/com/citi/quest/api/domain/Notification.java | UTF-8 | 1,689 | 1.8125 | 2 | [] | no_license | package com.citi.quest.api.domain;
import java.util.Date;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document
public class Notification {
@Id
Long id;
Long taskId;
String taskName;
String taskOwner;
String userSoeId;
... | true |
1222d1bf535dfd7a34ec22b07bc70ca2fc181e3d | Java | mar9000/pe4mps | /code/pe4mps/solutions/org.mar9000.pe.import/pe-src/org/mar9000/pe/ecore/impl/PEPrimitiveTypeImpl.java | UTF-8 | 722 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /**
*/
package org.mar9000.pe.ecore.impl;
import org.eclipse.emf.ecore.EClass;
import org.mar9000.pe.ecore.PEPrimitiveType;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>PE Primitive Type</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class PEPrimiti... | true |
192bf5d26db9929b5c3621618e44abb9e544e216 | Java | mudiyouyou/rocket_test | /rocket_common/src/main/java/com/mudiyouyou/rocket/msg/AvroSerializer.java | UTF-8 | 1,441 | 2.40625 | 2 | [] | no_license | package com.mudiyouyou.rocket.msg;
import com.mudiyouyou.rocket.exception.RocketCommonException;
import org.apache.avro.Schema;
import org.apache.avro.io.*;
import org.apache.avro.specific.SpecificDatumReader;
import org.apache.avro.specific.SpecificDatumWriter;
import org.apache.avro.specific.SpecificRecordBase;
imp... | true |
514ae38b759a0f80c75066360c9e2fab548eeb3c | Java | spiriteagle/JointDistribution | /app/src/main/java/com/acuit/jointdistribution/Common/View/Fragment/PhoneInexistenetFragment.java | UTF-8 | 6,396 | 1.859375 | 2 | [] | no_license | package com.acuit.jointdistribution.Common.View.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.suppor... | true |
b1dcc6d709e4b8c16de995be5fb9f1945ca43c8f | Java | ViniciusTomeVieira/HaruIchiban | /src/State/JogarFlor.java | UTF-8 | 815 | 2.25 | 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 State;
import control.GerenciadorJogoImpl;
/**
*
* @author Vinicius Tome Vieira e Adroan Heinen
* @since 01/05/2019
* @ve... | true |
11e07ce3d6acc80b28367654900a33470c0152f2 | Java | KimonnAravind/PrintArt_Admin | /app/src/main/java/com/assigned/printartadmin/MainActivity.java | UTF-8 | 2,998 | 2.28125 | 2 | [] | no_license | package com.assigned.printartadmin;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ProgressBar;
import android... | true |
dafd909d45c1295b25b7b8cc6953362a21ed26be | Java | Tangorn3x3/csCWStools | /csCWStools/src/ca/kb1/csCWStools/FindImagesByEXIF.java | UTF-8 | 3,117 | 2.375 | 2 | [] | no_license | package ca.kb1.csCWStools;
import java.io.File;
import java.io.IOException;
import javax.xml.ws.soap.SOAPFaultException;
import com.drew.imaging.ImageMetadataReader;
import com.drew.imaging.ImageProcessingException;
import com.drew.metadata.Directory;
import com.drew.metadata.Metadata;
import com.drew.met... | true |
2269b397d37ccb14acb233a24fdb2d1a4bb364bb | Java | nicemorning007/BuildingMaterialMall | /src/bmm/dao/CategorizationControlDAO.java | UTF-8 | 1,577 | 2.75 | 3 | [] | no_license | package bmm.dao;
import bmm.entity.CategorizationEntity;
import java.util.List;
/**
* 有关分类数据库操作的接口
*/
public interface CategorizationControlDAO {
/**
* 通过类别ID号获得对应的名称
*
* @param id 要查询的ID号
* @return 如果查询成功返回该ID号对应的分类名,如果查询失败则返回 <b>null</b>
*/
String getCateNameById(int id);
/*... | true |
af44fad9b881a4b9acbc03cdaa7582c65677a955 | Java | ernestoMartineze/METAL | /ModeloFrisa/src/main/java/mx/frisa/tic/negocio/remoto/MetodoPagoG1OBI.java | UTF-8 | 3,126 | 1.671875 | 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 mx.frisa.tic.negocio.remoto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.datafo... | true |
882f8e68f334b478d52337f042a8d192df449847 | Java | yuhaibao324/dcp-platform | /dcp-uaam/src/main/java/com/dunzung/dcp/uaam/service/RoleMenuService.java | UTF-8 | 315 | 1.523438 | 2 | [] | no_license | package com.dunzung.dcp.uaam.service;
import com.dunzung.dcp.framework.dao.base.service.MybatisService;
import com.dunzung.dcp.uaam.entity.RoleMenuEntity;
/**
* Created by Wooola on 2019/6/30.
*/
public interface RoleMenuService extends MybatisService<RoleMenuEntity>{
void deleteByRoleId(Long roleId);
}
| true |
f0fdfa8206faf630ef8b80038023cc3b712e973e | Java | dulsara2019/Financial_Calculator | /Code/numberPad1.java | UTF-8 | 7,177 | 2.765625 | 3 | [] | no_license | package sample;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.GridPane;
public class numberPad1 {
// creating method to set all calculators in Main.java
public static void numberPad(TextF... | true |
1d07db7e7bab021d236d477b1e18c037749c0439 | Java | dianxiangxu/GPMS-NGAC | /src/main/java/gpms/rest/NotificationService.java | UTF-8 | 6,906 | 1.859375 | 2 | [] | no_license | package gpms.rest;
import gpms.DAL.MongoDBConnector;
import gpms.dao.DelegationDAO;
import gpms.dao.NotificationDAO;
import gpms.dao.ProposalDAO;
import gpms.dao.UserAccountDAO;
import gpms.dao.UserProfileDAO;
import gpms.dataModel.GPMSCommonInfo;
import gpms.dataModel.NotificationLog;
import gpms.dataModel.UserAccoun... | true |
436429f7c59eddde31f38663f4fca9781a0a2fe4 | Java | cmuljx/cmuljx | /Jxcdc/src/cdc/jjs/control/rabise/vo/RabiseVO.java | UTF-8 | 579 | 2.078125 | 2 | [] | no_license | package cdc.jjs.control.rabise.vo;
import java.util.List;
import cdc.jjs.model.domain.RabiseData;
import cdc.jjs.model.domain.RabiseResult;
public class RabiseVO {
private RabiseData rabiseData;
private List<RabiseResult> rabiseResults;
public List<RabiseResult> getRabiseResults() {
return rabiseResults;
}... | true |
5e091d0ff2fbce6bea89d00f7e0a8f48c19849f5 | Java | asilin89/FacebookAutomation | /src/test/java/com/facebook/tests/FaceBookSignUpTest.java | UTF-8 | 448 | 1.539063 | 2 | [] | no_license | package com.facebook.tests;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import com.facebook.pages.FacebookRegisterPage;
import pages.BaseTest;
public class FaceBookSignUpTest extends B... | true |
4b049c20b28dca9004e9d52213140468dacc33cf | Java | 2393937618/cy | /app/src/main/java/com/example/lxc/cy/fragment/circle_Fragment.java | UTF-8 | 13,977 | 2.0625 | 2 | [] | no_license | package com.example.lxc.cy.fragment;
import android.os.Bundle;
import android.os.StrictMode;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import... | true |
e856aa152503ba0d751d41440c66d6c9eca40c14 | Java | max40a/EvaluationSystemServlet | /src/servlets/message/Messages.java | UTF-8 | 3,974 | 2.546875 | 3 | [] | no_license | package servlets.message;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
/**
* Created by Retro on 12.06.2016.
*/
public class Messages extends HttpServlet {
@Override
public void doGet(HttpServletRequest request... | true |
b14dba6a1a57e8d4a8cbafa440f50bcef5e9ea26 | Java | MezereonXP/springboot-mybatis | /src/main/java/org/spring/springboot/dao/PrefectureDao.java | UTF-8 | 1,059 | 1.820313 | 2 | [] | no_license | package org.spring.springboot.dao;
import org.apache.ibatis.annotations.Param;
import org.spring.springboot.domain.Prefecture;
import org.spring.springboot.domain.PrefectureExample;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface PrefectureDao {
long countByExa... | true |
e4edfe8667b4c8bc96520457b415c78d8e47b757 | Java | jeprinz/aerial-assist | /Zeta Practice/src/edu/wpi/first/wpilibj/templates/util/BinarySelector.java | UTF-8 | 800 | 2.453125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
//import edu.wpi.first.wpilibj.DigitalInput;
package edu.wpi.first.wpilibj.templates.util;
import edu.wpi.first.wpilibj.buttons.Button;
/**
*
* @author robotics
*/
public class BinarySelector {
pri... | true |
65359cf3d2c5e99fe6e2a4431bb0dc4f1051bd34 | Java | SoKarry/SportsEventsDraw | /src/main/java/com/sp/SportsEventsDraw/Repositories/EventRepo.java | UTF-8 | 1,151 | 2.25 | 2 | [] | no_license | package com.sp.SportsEventsDraw.Repositories;
import com.sp.SportsEventsDraw.domain.Event;
import com.sp.SportsEventsDraw.domain.Game;
import com.sp.SportsEventsDraw.domain.Type;
import org.springframework.data.repository.CrudRepository;
import org.springframework.lang.NonNull;
import java.util.Set;
//Интерфейс для с... | true |
de26b18e973f618784d8a06fc8ed698ae9a747c5 | Java | JorgeDPSilva/LCC | /2ºAno/2ºSemestre/POO/Hoteis/HotelStandard.java | UTF-8 | 2,571 | 3.375 | 3 | [] | no_license |
/**
* Write a description of class HotelStandard here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.io.*;
public class HotelStandard extends Hotel implements CartaoHoteis, Serializable
{
/**
* Boolean para ver se epoca alta ou nao
*/
private boolean epocaAlta;
... | true |
7027ae03c66bd61182eed323b2f54a5981614edc | Java | TomasV10/appointmentsManagementSystem | /src/main/java/com/homework/appointmentsManagerSystem/repositories/SpecialistRepository.java | UTF-8 | 379 | 2.015625 | 2 | [] | no_license | package com.homework.appointmentsManagerSystem.repositories;
import com.homework.appointmentsManagerSystem.entities.Specialist;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface SpecialistRepository extends JpaRepository<Specia... | true |
04c9f93ce7564fe8878a2fee1293444ad7281f12 | Java | bzlister/RallyHealthAssessment | /RallyTest.java | UTF-8 | 2,094 | 2.75 | 3 | [] | no_license | import junit.framework.TestCase;
import org.junit.*;
/**
* A JUnit test case class.
* Every method starting with the word "test" will be called when running
* the test with JUnit.
*/
public class RallyTest extends TestCase {
private RallyRunners rally;
@Before
public void setUp(){
rally = new RallyR... | true |
c8d6fa8bd692e56a74a4c8ca063cb91735d03258 | Java | ChristopherLukombo/daily-follow-up | /backEnd/src/main/java/fr/almavivahealth/web/rest/StatsRessource.java | UTF-8 | 7,443 | 2.421875 | 2 | [] | no_license | package fr.almavivahealth.web.rest;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org... | true |
cec67e45ce12fd33389fe47e796923323e9a90a0 | Java | MuZi89/hdylovezy | /eclipse/ES/.svn/pristine/19/19498a1ecc3734c651def3719cd7c9633de04e88.svn-base | UTF-8 | 943 | 2.09375 | 2 | [] | no_license | package com.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.dao.ClassDao;
import com.entity.UserClass;
import com.service.ClassService;
@Service("classService")
public class ClassServiceI... | true |
ea50980d835848c3497e861506fb004bf58a5b15 | Java | rts-orta/orta | /exp-commons/src/main/java/experiments/commons/artifacts/Artifact.java | UTF-8 | 5,838 | 1.976563 | 2 | [
"BSD-2-Clause"
] | permissive | package experiments.commons.artifacts;
/*-
* #%L
* exp-commons
* %%
* Copyright (C) 2019 https://github.com/rts-orta
* %%
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code mu... | true |
be90912acb716740e1416a3f0b2d38f55f2ad352 | Java | jjhyunjin/test | /gsitm-app-monitoring-system/src/main/java/gsitm/appLogCollector/service/LogWriteServiceImpl.java | UTF-8 | 868 | 2.25 | 2 | [] | no_license | package gsitm.appLogCollector.service;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import org.codehaus.jackson.map.ObjectMapper;
import org.springframework.stereotype.Service;
import gsitm.appLogCollector.CommonConstants;
import gsitm.appLogCollector.util.DateUtil;
... | true |
4812d41f7a61ff2c538fd4adf0422dc71981e143 | Java | Adarsh025/E-Commerce-Website | /src/com/model/UserLogin.java | UTF-8 | 4,114 | 2.3125 | 2 | [] | no_license | package com.model;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.bean.User;
import com.jcg.jdbc.connection.pooling.DBAgent;
public class UserLogin {
public User login(String email, String password){
DBAgent dba = new DBAgent("/SQL/DB.xml","/SQL/sqlquery2.xml");
String parameter[] = {em... | true |
dbc63232b39711210f4678b6022a7a55ccd2af4c | Java | petrostrak/Data-Structures-and-Algorithms | /Sorting Algorithms/Bubble Sort Algorithm/Example #2/src/Main.java | UTF-8 | 1,068 | 4.03125 | 4 | [] | no_license | public class Main {
/*
* Bubble Sort
*
* In-place algorithm
* O(n^2) time complexity - quadratic
* It will take 100 steps to sort 10 items, 10000 steps to sort 100 items 1000000 steps to sort 1000 items.
* Algorithm degrades quickly
* */
public static void main(String[] args) {
int[] intAr... | true |
cba8e2e50433620823de75b7e74b68def0e267b8 | Java | rtms/haris | /src/main/java/com/homebrew/haris/service/MachineService.java | UTF-8 | 2,294 | 2.515625 | 3 | [] | no_license | package com.homebrew.haris.service;
import com.homebrew.haris.model.Machine;
import com.homebrew.haris.model.MachineDTO;
import com.homebrew.haris.repository.MachineRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.... | true |