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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a75880931f66c57a22b1deda0a60c6f260d72994 | Java | oumaimaab/Tic-Tac-Toe-game | /src/ticaTacToe/socketsProject/arbani/Server.java | UTF-8 | 1,359 | 3.109375 | 3 | [] | no_license | package ticaTacToe.socketsProject.arbani;
import java.io.Serializable;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.util.Scanner;
import ticaTacToe.socketsProject.arbani.Window.Game;
public class Server implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1... | true |
e1d6074c86073ee281c5053783b623bda634c394 | Java | ssleap/multicampusIoT | /workspace190424/1_java/src/day_04/Test05.java | UTF-8 | 816 | 3.046875 | 3 | [] | no_license | package day_04;
import java.util.Arrays;
public class Test05 {
public static void main(String[] args) {
//System.out.println(args);
//System.out.println(args.length);
//System.out.println(Arrays.toString(args));
//String[] s = {};
if(args.length == 0) {
System.out.println("사용방법");
System.out... | true |
bc9df0bf69c7ee52156875ab8e779000833e3a6c | Java | teddyfullstack/fpt7 | /Day10_Database/app/src/main/java/com/example/day10_database/PhatNHFileActivity.java | UTF-8 | 4,573 | 2.453125 | 2 | [] | no_license | package com.example.day10_database;
import android.icu.util.Output;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import java.io.BufferedReader;
import java.io.File;
im... | true |
a082fe2e4b6c7366532bf2fcb0e9e9361b28742a | Java | qx/FullRobolectricTestSample | /src/test/java/org/robolectric/shadows/VideoViewTest.java | UTF-8 | 5,009 | 2.265625 | 2 | [
"MIT"
] | permissive | package org.robolectric.shadows;
import android.media.MediaPlayer;
import android.net.Uri;
import android.widget.VideoView;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.TestRunners;
import static org.fest.assertions.api.Ass... | true |
606cf7ae4e0c1d9b856d79e7bcdb81d089d223b3 | Java | BonjourMondo/IDE | /src/com/misakimei/stone/ParseException.java | UTF-8 | 649 | 2.78125 | 3 | [] | no_license | package com.misakimei.stone;
import java.io.IOException;
/**
* Created by 18754 on 2016/7/27.
*/
public class ParseException extends RuntimeException {
public ParseException(String msg,Token t){
super("在 "+location(t)+" 有语法错误 "+msg);
}
private static String location(Token t) {
if (t==To... | true |
727fc9df20b343c83c0af0ecb3cf305b3deda114 | Java | Sky-Chaser/wehappy | /account/src/main/java/cn/chasers/wehappy/account/config/MyBatisConfig.java | UTF-8 | 413 | 1.507813 | 2 | [] | no_license | package cn.chasers.wehappy.account.config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
/**
* MyBatis相关配置
*
* @author lollipop
*/
@Configuration
@EnableTransactionManagem... | true |
78871fdbde1da1fcb9948173075bbb9fb0d4bcdf | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/andOTP_andOTP/app/src/main/java/org/shadowice/flocke/andotp/Utilities/Tools.java | UTF-8 | 3,625 | 1.796875 | 2 | [] | no_license | // isComment
package org.shadowice.flocke.andotp.Utilities;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.net.Uri;
import... | true |
f91d94ce37ad0d734e26b2564e5676407c1d6e16 | Java | fanat12k/BRB4 | /app/src/main/java/ua/uz/vopak/brb4/brb4/models/RevisionItemModel.java | UTF-8 | 278 | 1.632813 | 2 | [] | no_license | package ua.uz.vopak.brb4.brb4.models;
public class RevisionItemModel {
public String CodeWares;
public String NameWares;
public String Coefficient;
public String CodeUnit;
public String NameUnit;
public String BarCode;
public String BaseCodeUnit;
}
| true |
6f38010c06f10e9b3f1f6848990e124e56d61b52 | Java | matt-mtt/UI-Predictif | /src/main/java/action/AuthentifierClientAction.java | UTF-8 | 1,496 | 2.390625 | 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 action;
import com.google.gson.JsonObject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession... | true |
bf5949a136069ad47275baedd06785883ba2aa57 | Java | uk-gov-mirror/ONSdigital.census-rm-notify-processor | /src/main/java/uk/gov/ons/census/notifyprocessor/config/NotifyConfiguration.java | UTF-8 | 609 | 1.90625 | 2 | [] | no_license | package uk.gov.ons.census.notifyprocessor.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import uk.gov.service.notify.NotificationClient;
import uk.gov.service.notify.NotificationClientA... | true |
bd33ad76a275707b3c9f0095c47b3f4c98169af1 | Java | plum-umd/java-sketch | /test/axioms/examples/SuffixArray/test.java | UTF-8 | 412 | 2.515625 | 3 | [
"MIT"
] | permissive | class Blah {
// public static void blahing(Object [] a) {
// int l = a.length;
// for (int i=0; i<l; i++) {
// a[i] = null;
// }
// }
harness public void main() {
// Object[] f = new Object[10];
// for (int i=0; i<10; i++) {
// f[i] = new Object();
// }
// blahing(f);... | true |
2aead05ef2f43ef5da23ea384644132f9d376c99 | Java | JeanWenc/VentePoissons | /app/src/main/java/jean/wencelius/ventepoissons/controller/LoginActivity.java | UTF-8 | 4,031 | 2.203125 | 2 | [] | no_license | package jean.wencelius.ventepoissons.controller;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import andr... | true |
510f1d309c63111b734ee1f7afc547109e477f73 | Java | zhongxingyu/Seer | /Diff-Raw-Data/13/13_f7cad7ee01354e3c43fae05aca7d4f96bf97982d/AdvancedSearch/13_f7cad7ee01354e3c43fae05aca7d4f96bf97982d_AdvancedSearch_t.java | UTF-8 | 14,758 | 2.125 | 2 | [] | no_license | package Fabflix;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import ... | true |
7e6268165e29ec529fcba9c72ca9f19e28e02d62 | Java | lin614/bumo-sdk-java | /src/src/main/java/io/bumo/sdk/core/seq/redis/RedisSequenceManager.java | UTF-8 | 3,408 | 2.3125 | 2 | [] | no_license | package io.bumo.sdk.core.seq.redis;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.bumo.sdk.core.adapter.bc.RpcService;
import io.bumo.sdk.core.adapter.bc.response.Account;
import io.bumo.sdk.core.adapter.exception.BlockchainError;
import io.bumo.sdk.core.event.message.TransactionExecutedEventMess... | true |
9f4523f70f17ea80f9d23916a25f4d93262ab832 | Java | iyangming/spring-batch | /spring-batch-core/src/test/java/org/springframework/batch/core/jsr/StepListenerAdapterTests.java | UTF-8 | 1,749 | 2.203125 | 2 | [] | no_license | package org.springframework.batch.core.jsr;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import javax.batch.api.listener.StepListener;
import javax.batch.operations.BatchRuntimeException;
impo... | true |
38e513f9e8e5ca8ea28fd5ead21233c031afb602 | Java | miloradradovic/HR-platform | /intens-internship-spring-app/intens-internship/src/test/java/com/project/intensinternship/service/CandidateServiceJUnitTests.java | UTF-8 | 15,972 | 2.0625 | 2 | [] | no_license | package com.project.intensinternship.service;
import com.project.intensinternship.TestUtils;
import com.project.intensinternship.dto.SearchParamsDTO;
import com.project.intensinternship.model.Candidate;
import com.project.intensinternship.model.Skill;
import com.project.intensinternship.repository.CandidateRepository;... | true |
374aabdec264c025f025ed7b58f4f688b2e372ac | Java | jrben/ProyectoWeb | /ShareNotes/src/ShareNotes/controlador/NuevaCategoria.java | UTF-8 | 1,928 | 2.203125 | 2 | [] | no_license | package ShareNotes.controlador;
import java.io.IOException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.serv... | true |
c25077153a5b6c98ff71921944e12f4200b2e20b | Java | wuranjia/mercury | /src/main/java/com/hy/lang/mercury/pojo/Order.java | UTF-8 | 6,385 | 2.03125 | 2 | [] | no_license | package com.hy.lang.mercury.pojo;
import com.hy.lang.mercury.common.Constants;
import com.hy.lang.mercury.pojo.enums.OrderStatus;
import com.hy.lang.mercury.pojo.enums.TransStatus;
import com.hy.lang.mercury.pojo.enums.TransType;
import com.hy.lang.mercury.resource.req.OrderReq;
import java.math.BigDecimal;
import ja... | true |
509c1f7bae18088c2573f46f099475a89afcbdff | Java | annakhuseinova/spring-ws-client | /src/main/java/com/annakhuseinova/springwsclient/configuration/CourseClientConfig.java | UTF-8 | 993 | 2 | 2 | [] | no_license | package com.annakhuseinova.springwsclient.configuration;
import com.annakhuseinova.springwsclient.soap.CourseClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.oxm... | true |
f06de2b943d3e57294dff599cd92c9c90c1b11ca | Java | indexgaga/hello_springboot | /2.1.x/demo/src/main/java/com/example/demo/fx/demo04.java | UTF-8 | 2,073 | 2.890625 | 3 | [] | no_license | package com.example.demo.fx;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Arc;
import javafx.scene.shape.ArcType;
import javafx.scene.text.Text;
import javafx.stage.Stage;
public class demo04 extends Application... | true |
23f4db6e9d81564da99c67a5eeac2e0f9f179ce0 | Java | Jacktheman1993/SvenSven | /Cupcake_web/src/main/java/Servlets/Control.java | UTF-8 | 4,863 | 2.8125 | 3 | [] | no_license | package Servlets;
import Datbase.DataMapper;
import Datbase.DataSource;
import Datbase.User;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
im... | true |
87d653a7e7d3c7df3d5697ec4a53652295783732 | Java | thetruth2451/DiplomaSoftware- | /repos/PQ5/Alpha/Controller.java | UTF-8 | 2,785 | 2.484375 | 2 | [] | no_license | package sample;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.fxml.FXML;
import javafx.scene.control.ListView;
import javafx.scene.control.TextField;
import javafx.scene.image.ImageView;
im... | true |
2d93a5fb37372dfd49b8cc603d00315a23cef8de | Java | karololejarz/karol-olejarz-kodilla-java | /kodilla-good-patterns/src/main/java/com/kodilla/good/patterns/food2door/ProductClass.java | UTF-8 | 107 | 1.914063 | 2 | [] | no_license | package com.kodilla.good.patterns.food2door;
public enum ProductClass {
extra, healthy, glutenfree;
}
| true |
671204ffd4030fc1709584e36e324c75a2d9a50d | Java | olegfom/todo-integration | /src/main/java/com/apress/todo/config/ToDoProperties.java | UTF-8 | 554 | 2.015625 | 2 | [] | no_license | package com.apress.todo.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix="todo")
public class ToDoProperties {
private String directory;
private String filePattern;
public String getDirectory() {
return directory;
... | true |
7a60f292d766d57c2254185c463c0a07f30968dd | Java | halafi/IPC-practicas | /pc_configurator/src/services/DatabaseService.java | UTF-8 | 667 | 2.75 | 3 | [] | no_license | package services;
import es.upv.inf.Database;
import es.upv.inf.Product;
import es.upv.inf.Product.Category;
import java.util.ArrayList;
import java.util.List;
/**
* Layer to provide access to the database.
*
* @author filip
*/
public class DatabaseService extends Database {
/**
* Returns all produc... | true |
7020d631bbc3022de70ade3a454f53185712e84b | Java | IsaiasSantana/Restaurante | /src/main/java/restaurante/modelo/funcionario/FuncionarioRN.java | UTF-8 | 686 | 2.390625 | 2 | [] | no_license | package restaurante.modelo.funcionario;
import java.util.List;
import restaurante.util.DAOFactory;
public class FuncionarioRN {
private FuncionarioDAO funcDAO;
public FuncionarioRN(){
funcDAO = DAOFactory.criarFuncionarioDAO();
}
public void inserir(Funcionario funcionario){
funcDAO.inserir(funcionario);... | true |
1fe33e1ee52bee466f58f0ca680a44a99371a311 | Java | aljaxus/AParkour | /src/main/java/me/davidml16/aparkour/utils/WalkableBlocksUtil.java | UTF-8 | 254 | 2.078125 | 2 | [] | no_license | package me.davidml16.aparkour.utils;
import java.util.List;
public class WalkableBlocksUtil {
public static boolean containsWalkable(List<XMaterial> walkableBlocks, XMaterial xMaterial) {
return walkableBlocks.contains(xMaterial);
}
}
| true |
42792816756b3f4868bf78b30d4cea9b5e7c59c8 | Java | agarwalharshit/MyWorkspaces | /DataStructure_Workspace/src/com/tree/GraphNode.java | UTF-8 | 607 | 3.0625 | 3 | [] | no_license | package com.tree;
import java.util.ArrayList;
public class GraphNode {
char value;
boolean isTraversed=false;
ArrayList<GraphNode> childs= new ArrayList<GraphNode>();
GraphNode(char i){
value=i;
}
void addChild(GraphNode gn){
childs.add(gn);
}
public char getValue() {
return value;
}
public vo... | true |
01cf7eaf59b02fa7a411a3839bfae4c5525bcec9 | Java | Nick-Morbid/Big-Daddy-Driver | /Back end/Cloud-Driver-Daddy/src/main/java/com/daddy/demo/mapper/NotificationMapper.java | UTF-8 | 446 | 2 | 2 | [] | no_license | package com.daddy.demo.mapper;
import com.daddy.demo.entity.POJO.Notification;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
@Mapper
@Repository
public interface NotificationMapper {
void insertNotification(Notification friendRequest);
... | true |
cc6d517503d197649edd7393baf050d0eadea6bb | Java | GrzegorzOkon/SkanerPoczty | /src/kontroler/Kontroler.java | WINDOWS-1250 | 750 | 2.34375 | 2 | [] | no_license | package kontroler;
import java.io.File;
import java.util.List;
import procesor.Model;
import widok.Widok;
import widok.WidokWiadomoci;
public class Kontroler {
private Widok widok;
private Model model;
private WidokWiadomoci widokWiadomoci;
public Kontroler(Model model, Widok widok, WidokWiadomoc... | true |
8cbb5ec38e0b002216977db83ca7a5ff184d841b | Java | robogo/ftc_app | /RobotCore/src/main/java/com/qualcomm/robotcore/util/ClassManager.java | UTF-8 | 6,184 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive | package com.qualcomm.robotcore.util;
/*
* Copyright (c) 2016 Craig MacFarlane
* Based upon work by David Sargent and Bob Atkinson
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* (subject to the limitations in the disclaimer below) p... | true |
518d4e34b6c752ded7a14724f5699a327536bb93 | Java | xuzhikethinker/logolyze | /src/main/java/de/logotakt/logolyze/model/olap/MetadataParser.java | UTF-8 | 19,930 | 2.03125 | 2 | [
"BSD-2-Clause"
] | permissive | package de.logotakt.logolyze.model.olap;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import j... | true |
631aaeb8eb401211e3fd7432f00c453d7d7b3130 | Java | HBhakunamatata/TiJ | /src/Ch11/Exercise/Exercise23.java | UTF-8 | 1,152 | 3.984375 | 4 | [] | no_license | package Ch11.Exercise;
/*
Add a class with a dispose() method to the previous exercise.
Modify FailingConstructor so that the constructor creates
one of these disposable objects as a member object,
after which the constructor might throw an exception,
after which it creates a second disposable member object.
Write ... | true |
5b66b45d73bba494b9b851c6c1d1216a2f8330a2 | Java | darshan099/musicAI | /app/src/main/java/com/example/darshan/musicai/FavouritesDatabase.java | UTF-8 | 911 | 2.3125 | 2 | [] | no_license | package com.example.darshan.musicai;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import java.sql.SQLException;
public class FavouritesDatabase {
public static final String DATABASE_NAME="database.db";
public static final int DATABASE_VERSION=1;
public static SQLiteDatab... | true |
c9a3877ba7eb5f74cd3117b5d5bdf6a081095004 | Java | ogrebgr/forge-server-mod-user | /src/main/java/com/bolyartech/forge/server/module/user/data/user/UserDbhImpl.java | UTF-8 | 3,269 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.bolyartech.forge.server.module.user.data.user;
import com.bolyartech.forge.server.db.DbUtils;
import com.bolyartech.forge.server.module.user.data.UserLoginType;
import java.sql.*;
public class UserDbhImpl implements UserDbh {
@Override
public User loadById(Connection dbc, long id) throws SQLExc... | true |
c38a6945971fe261d8c221e5e0c2f1ee62cd3fbf | Java | mikeyirong/springbootweb | /src/main/java/com/mike/service/impl/UserServiceImpl.java | UTF-8 | 413 | 2 | 2 | [] | no_license | package com.mike.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.mike.dao.UserDao;
import com.mike.entity.User;
import com.mike.service.UserService;
@Service
public class UserServiceImpl implements UserService {
@Resource
private UserDao mUserDao;
@... | true |
c728b46b7a3fa61f604c1fc4f608e33e8bfdeed5 | Java | Steffen911/WIProjekt | /rocketFX/src/application/GameSceneController.java | UTF-8 | 5,899 | 2.328125 | 2 | [] | no_license | package application;
import java.awt.Point;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.co... | true |
30b5a341c7648cd0b0cba0f1c57fb8fde6aae51f | Java | SYaremko/W_2 | /src/main/java/ua/com/ushop/service/ProductService.java | UTF-8 | 195 | 1.859375 | 2 | [] | no_license | package ua.com.ushop.service;
import ua.com.ushop.entity.Product;
import java.util.List;
public interface ProductService {
List<Product> findAll();
void save(Product product);
}
| true |
458b346d90e9636b9d72d449e1f009aed6e5e26f | Java | jdoria/Proyecto-Calidad | /Proyecto_Calidad/src/Interfaz/VerLineas.java | ISO-8859-1 | 1,383 | 2.484375 | 2 | [] | no_license | package Interfaz;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.util.ArrayList;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import dao.LineaDao;
import dto.Linea;
@S... | true |
fbeff2ce103e3c19d2ae67119668482bd43a4b5e | Java | kvlahov/JavaProjekt | /src/com/kvlahov/model/report/DailyReport.java | UTF-8 | 1,399 | 2.21875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.kvlahov.model.report;
import java.time.LocalDate;
import java.util.List;
/**
*
* @author lordo
*/
public class DailyRe... | true |
40586b5dafd52ac9d5c912cbb63024b17a5d87e5 | Java | jakobehmsen/astava | /intellij/astava/src/main/java/astava/java/agent/MethodNodeExtenderFactory.java | UTF-8 | 9,736 | 2.359375 | 2 | [
"MIT"
] | permissive | package astava.java.agent;
import astava.java.Descriptor;
import astava.java.gen.MethodGenerator;
import astava.java.parser.*;
import astava.tree.ParameterInfo;
import astava.tree.StatementDom;
import org.objectweb.asm.tree.*;
import org.objectweb.asm.Label;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.T... | true |
a75f99655840f6749918e07ecaa738002c506562 | Java | jdpreuth/MTU-Data-Structures | /Programs/Assignment7.zip_expanded/Graph/src/cs2321/AdjListGraph.java | UTF-8 | 11,728 | 3.65625 | 4 | [] | no_license | package cs2321;
import net.datastructures.Edge;
import net.datastructures.Graph;
import net.datastructures.Position;
import net.datastructures.Vertex;
/*
* Implement Graph interface. A graph can be declared as either directed or undirected.
* In the case of an undirected graph, methods outgoingEdges and incomingEdg... | true |
0f0ac0f965334fd11bd3462794c3f974b3e59709 | Java | songchimin/Song_Coding | /Try It/Try It 안드로이드 앱/MYTry2/app/src/main/java/com/study/android/mytry/login/Logout.java | UTF-8 | 4,635 | 2.046875 | 2 | [] | no_license | package com.study.android.mytry.login;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.App... | true |
211ec97dbc192654c5061906491294beef595f50 | Java | chanjkf/ssm | /ssmweb/src/main/java/xyz/chanjkf/service/IAlbumService.java | UTF-8 | 519 | 1.710938 | 2 | [] | no_license | package xyz.chanjkf.service;
import com.qiniu.common.QiniuException;
import xyz.chanjkf.dao.common.IOperations;
import xyz.chanjkf.entity.AlbumEntity;
import xyz.chanjkf.utils.page.Page;
/**
* Created by yi on 2017/6/7.
*/
public interface IAlbumService extends IOperations<AlbumEntity> {
Page<AlbumEntity> getP... | true |
3d45ff2a3f442bdb923743cacbfb30c204618998 | Java | chauncycho/vue-questionnaire-backend | /src/main/java/my/tset/javaweb3/utils/Md5Encrypt.java | UTF-8 | 574 | 2.703125 | 3 | [] | no_license | package my.tset.javaweb3.utils;
import org.springframework.util.DigestUtils;
public class Md5Encrypt {
private static String key = "a6n3m21r";//secret key
//加密
public static String encrypt(String s){
String value = key + s;
return DigestUtils.md5DigestAsHex(value.getBytes());
}
/... | true |
0b158fb1f80fabab8f3a84ec8bcf40089d82df85 | Java | nadirsaghar/dicom-parser | /dicom-parser/src/main/java/edu/emory/cci/bindaas/dicom_parser/util/GalaxyTool.java | UTF-8 | 2,190 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | package edu.emory.cci.bindaas.dicom_parser.util;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import org.apache.commons.cli.BasicParser;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.Option;
import org.apache.com... | true |
04c9e54a92378bf014db1d6a5cf3df14982a4259 | Java | davishyer/RecordIndexer | /src/server/database/ProjectDAO.java | UTF-8 | 3,522 | 2.8125 | 3 | [] | no_license | package server.database;
import java.sql.*;
import java.util.ArrayList;
import shared.model.*;
public class ProjectDAO
{
private Database db;
public ProjectDAO(Database db)
{
this.db = db;
}
public ArrayList<Project> getAll()
{
ArrayList<Project> projects = new ArrayList<Project>();
Connection connect... | true |
844112fa3b14dd3fddc9d4c9beea777ac2f9f62d | Java | LIWEI2415/java_homework | /control_Subway/src/control_Subway/FindLine.java | UTF-8 | 3,491 | 2.6875 | 3 | [] | no_license | package control_Subway;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import control_Subway.NotFoundException;
import control_Subway.subwayDA;
import com.mysql.jdbc.Connection;
public class FindLine {
//给定站定名,返回经过该站点的所有线路的名称集合
private static String Sb1="subway1";
private stati... | true |
76edeaa78575f28ccbe5ed3452766709868c4505 | Java | arunkumarshahi/SGRecipe | /src/main/java/com/sg/recipe/recipe/service/IngredientService.java | UTF-8 | 404 | 2.078125 | 2 | [] | no_license | package com.sg.recipe.recipe.service;
import com.sg.recipe.recipe.command.IngredientCommand;
import com.sg.recipe.recipe.model.Ingredient;
public interface IngredientService {
IngredientCommand findByRecipeIdAndIngredientId(Long recipeId, Long ingredientId);
public void deleteById( Long ingredientId);
pub... | true |
8baa6fbaf2c7f990617bcff59ab49983efe076de | Java | danifarre/design-patterns-activitys | /src/activity5/Circle.java | UTF-8 | 422 | 3.421875 | 3 | [] | no_license | package activity5;
public class Circle extends Figure {
private float r;
public Circle(float x, float y, float r) {
super(x, y);
this.r = r;
}
public Circle(Circle other) {
super(other);
this.r = other.r;
}
@Override
public Circle copy() {
// publ... | true |
41b397234b25ba7b00f6dfbb11a47e2273178291 | Java | julian-perge/virtual-pet-spring | /src/test/java/com/julian/virtualpetspring/OrganicPetTest.java | UTF-8 | 1,071 | 2.5625 | 3 | [] | no_license | package com.julian.virtualpetspring;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.lessThan;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import org.mockito.Mock;
public class OrganicPetTest
{
@Mock
private OrganicDog d... | true |
477069357ff12b4481ecbfb7175bc7b2bcf150c3 | Java | KetanKodmelwar/DP-4 | /Problem1.java | UTF-8 | 1,107 | 3.0625 | 3 | [] | no_license | class Solution {
public int maximalSquare(char[][] matrix) {
if(matrix==null || matrix.length==0 || matrix[0].length==0){
return 0;
}
int m=matrix.length;
int n=matrix[0].length;
int max=0;
int[][] sides=new int[m][n];
... | true |
a9b42309e411ba3975dc8c9cf13ac603d528c9a0 | Java | Alirazaakhtar/KeaCode | /Code/Programmering/3.semester/Threads/ThreadsTest/src/Worker.java | UTF-8 | 446 | 3.15625 | 3 | [] | no_license | public class Worker implements Runnable {
private Slide resource;
private int repeats = 0;
public Worker(Slide resource) {
this.resource = resource;
}
@Override
public void run() {
while (repeats < 100000) {
resource.increment();
repeats++;
}
... | true |
e53c84e2406e8af65fc7650f438e5f9a2ee6edf6 | Java | CBIIT/cagrid-core | /caGrid/projects/gridgrouper/src/edu/internet2/middleware/grouper/MembershipRequestValidator.java | UTF-8 | 1,004 | 2.078125 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
*============================================================================
* Copyright The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC, and
* Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved B... | true |
230f7b61bf854e632b2a5372b45fc6631ef67312 | Java | buseche/java | /Suma.java | UTF-8 | 747 | 3.96875 | 4 | [] | no_license | //Programa 2, clase 1 taller de programacion 2 07:20 p.m. 03/10/2018
public class Suma{ //el nombre en mayuscula
public static void main(String args[]){
int num1=5;//declaracion de variable, se declara el tipo de cada variable
int num2=10;
int resultado1=0;
int resultado2=0;
int resultado3=0;
resul... | true |
01bfc563de43ee3caa4e19048e1f544954d11edc | Java | glzlaohuai/OBSDK | /obsdk/src/main/java/xyz/oldbad/obsdk/utils/ImageHandler.java | UTF-8 | 1,260 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package xyz.oldbad.obsdk.utils;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
public class ImageHandler {
/**
* 如果图片尺寸是1024*768,而设置的view尺寸是100*100,那么显然,压缩一下显示会占用更小的内存而且不会影响显示效果,
* 这个方法就是做这个用的。
*
* @param filePath
* @param targetW
*... | true |
ea370ad8bdde51bac10fbacfd1c3737818cc73d5 | Java | CBaldemir/ServletTutorials | /src/lifeCycle.java | UTF-8 | 974 | 2.765625 | 3 | [] | no_license | import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* Created by comer on 11.06.2017.
*/
@WebServlet("/lifecycle")
public class lifeC... | true |
45453235e33141a8b48ff4d7159d231b794141df | Java | lneymet/Regates | /RegatesCode/src/com/ldn/regates/model/Proprietaire.java | ISO-8859-1 | 1,194 | 2.703125 | 3 | [] | no_license | package com.ldn.regates.model;
import java.util.Scanner;
public class Proprietaire extends Personne {
private String telProp;
private String adresse;
public Proprietaire(String nomPers, String prenPers, String eMail, String telProp, String adresse) {
super(nomPers, prenPers, eMail);
this.telProp ... | true |
7e9f0638df303da523376f85c68bbe7fb238ff6b | Java | skyler/BugjarMonitor | /src/co/bugjar/android/monitor/ExceptionHandler.java | UTF-8 | 3,407 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 Julius S. Slade
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
f1aa80fc4a2307d009b77013bce49ec63f88ddc1 | Java | praga-cognicx/royal_chatbot | /src/main/java/com/royal/app/model/UsersDetail.java | UTF-8 | 3,072 | 1.859375 | 2 | [] | no_license | package com.royal.app.model;
import java.io.Serializable;
import javax.persistence.*;
import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;
import java.util.Date;
import java.math.BigInteger;
/**
* The persistent class for the users_details database table.
*
*/
@Entity
@T... | true |
e5289ed1cd65ac0c0b1a98afb7c2c21e7438a38b | Java | metinkalinsaz/Timer-repo | /src/main/java/com/timer/timer/model/TimerRequest.java | UTF-8 | 418 | 1.835938 | 2 | [] | no_license | package com.timer.timer.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TimerRequest implements Serializable {
private String instanceName;
p... | true |
1365eaec1d0b41f402b028cda658c41c59257af5 | Java | RoziPetkova/SoftUni-Homework | /3.3 Java Web Dev/pizzamorelab-cgi/pizzamore-lab/src/main/java/com/pizzamoreLab/pages/SignUp.java | UTF-8 | 4,458 | 2.640625 | 3 | [] | no_license | package com.pizzamoreLab.pages;
import com.pizzamoreLab.models.cookie.Cookie;
import com.pizzamoreLab.models.header.Header;
import com.pizzamoreLab.models.user.User;
import com.pizzamoreLab.repository.UserRepository;
import com.pizzamoreLab.utils.WebUtils;
import java.util.HashMap;
import java.util.Map;
/**
* Creat... | true |
921f6f9b29821954d184ab5e6711918939a3f497 | Java | globalforge/infix | /fix/src/main/java/com/globalforge/infix/qfix/FieldOrderMap.java | UTF-8 | 1,807 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.globalforge.infix.qfix;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/*-
The MIT License (MIT)
Copyright (c) 2019-2022 Global Forge LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated... | true |
813cfc0940eacfdfb7c866e7013dd21307a0145b | Java | CSSNWU/CSSNWU_Client | /src/com/example/cssnwu/drive/TeacherBLService_Drive.java | GB18030 | 1,264 | 2.328125 | 2 | [] | no_license | /**
* @(#)TeacherBLService_Drive.java 2013-10-13 11:01:17
* Copyright never.All rights reserved
* never PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.example.cssnwu.drive;
import java.rmi.RemoteException;
import java.util.HashMap;
import com.example.cssnwu.businesslogics... | true |
253fd423b5b227de384def237d0a354b46be579a | Java | illyasviel/elide-spring-boot | /elide-spring-boot-sample/src/main/java/org/illyasviel/sample/elide/hook/UserOnUpdatePreCommit.java | UTF-8 | 1,922 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2018 the original author or authors.
*
* 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 appl... | true |
f99638b8607a78e685f5456c7e3d690d3f9685bd | Java | qq1170993239/springboot_demo_1 | /springboot_demo_1/src/main/java/com/lix/study/sdk/common/utils/UuidUtils.java | UTF-8 | 3,559 | 3.109375 | 3 | [] | no_license | package com.lix.study.sdk.common.utils;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;
/**
* UUID号码生成工具
* @author lix
* @Date 2018-01-17
*/
public class UuidUtils {
/** 包含字母大小写和数字的二维数组 */
private static final char[][] WORDS = new char[][] {
{ 'q', 'w', 'e', 'r', 't', 'y'... | true |
7be872cb70374ab4febe8b7b790ce1f27b6a7b58 | Java | gordonhtfu/LearnCantonese | /libbbwidgets/src/main/java/com/blackberry/widgets/tagview/contact/textmessage/TextMessageTags.java | UTF-8 | 4,366 | 2.328125 | 2 | [] | no_license |
package com.blackberry.widgets.tagview.contact.textmessage;
import android.content.Context;
import android.net.Uri;
import android.util.AttributeSet;
import com.blackberry.widgets.tagview.contact.BaseContactTags;
import com.blackberry.widgets.tagview.contact.Contact;
import com.blackberry.widgets.tagview.internal.co... | true |
a25f109acf6c95ed26152b781aa9aa30332fc24e | Java | UniversityOfRzeszow/zadlab4-krzychurogs | /POLab4/src/main/java/pl/edu/ur/polab4/obliczanieFigur/Szescian.java | UTF-8 | 1,054 | 3.125 | 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 pl.edu.ur.polab4.obliczanieFigur;
import static java.lang.Math.pow;
/**
*
* @author krzysztof
*/
public class... | true |
baa5c7004c27d81e80b711db0f61cbf73fb54c83 | Java | zhangji92/PointerTrip | /app/src/main/java/yc/pointer/trip/activity/CityActivity.java | UTF-8 | 25,345 | 1.679688 | 2 | [] | no_license | package yc.pointer.trip.activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*... | true |
92a6a04c95c2e04480b0d8a5414d37e25ce1e387 | Java | Efa72/PBO | /Praktikum01/src/praktikum01/Keramik.java | UTF-8 | 1,169 | 3.015625 | 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 praktikum01;
/**
*
* @author EfaSetiyani
*/
public class Keramik {
//membuat atribut
int ukuranP;
... | true |
3ea99a9b40cdb212b3fda039af36367ab9fb8d47 | Java | MasahiroTokuo/RPG_CUIapplication | /PoisonMatango.java | UTF-8 | 2,428 | 3.234375 | 3 | [] | no_license | package rpg.creature.monster;
import rpg.creature.character.*;
import static java.lang.System.out;
public class PoisonMatango extends Matango{
public int poisonCount;
public int recoverCount;
public void attack(Hero h) throws Exception {
if(this.getHp() <= 15){
if(this.getRecoverCount()... | true |
d1beed6216d9b2f6de6908a19bef63c7a6cce8d9 | Java | sparkvip/Sharing-SpringBoot | /src/main/java/com/baomidou/springboot/mapper/MenuMapper.java | UTF-8 | 318 | 1.765625 | 2 | [] | no_license | package com.baomidou.springboot.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.springboot.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
List<Menu> queryMenus(String userId);
} | true |
8f45fdf2c5204580aa4b356d261cdb4c55a686d1 | Java | caocaodl/zabbix_with_java | /Java/iRadar.Portal/C通用模块/M7拓扑中心/nms/com/isoft/framework/core/concurrent/PausibleScheduledThreadPoolExecutor.java | UTF-8 | 1,862 | 2.890625 | 3 | [] | no_license | package com.isoft.framework.core.concurrent;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* PausibleScheduledThrea... | true |
1f9e27c6287399f4d445e413940336631c1e2bf2 | Java | EirikOsnes/panic | /core/src/com/panic/tdt4240/events/EventBus.java | UTF-8 | 1,469 | 2.765625 | 3 | [] | no_license | package com.panic.tdt4240.events;
import com.panic.tdt4240.models.Asteroid;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Queue;
import java.util.Stack;
/**
* Created by Choffa for testJava on 25-Feb-18.
* On permission can be used outside testJava.
*/
public class EventBus {
priva... | true |
1ea8e47615688a7d6eadbdf6e76e8ae8bf050e05 | Java | co-ode-owl-plugins/co-ode-owl-plugins | /OWLLINT/src/main/java/org/coode/lint/protege/loader/extensions/LoaderFactory.java | UTF-8 | 497 | 1.585938 | 2 | [] | no_license | /**
*
*/
package org.coode.lint.protege.loader.extensions;
import org.coode.lint.protege.LintProtegePluginInstance;
import org.coode.lint.protege.loader.AbstractLintPluginLoader;
import org.protege.editor.core.plugin.ProtegePlugin;
import org.protege.editor.owl.OWLEditorKit;
/**
* @author Luigi Iannone
*
*/
pu... | true |
641ee034c6de0f3c71fc0153aaf77b6c01fcd088 | Java | ramkoh/teams-service | /src/test/java/com/edu/postgrad/game/teams/unit/TeamsControllerTest.java | UTF-8 | 8,300 | 2.015625 | 2 | [] | no_license | package com.edu.postgrad.game.teams.unit;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.edu.postgrad.game.teams.dto.Player;
import com.edu.postgrad.game.teams.dto.PlayerBuilder;
import com.edu.postgrad.game.teams.dto.Team;
import com.edu.postgrad.game.teams.dto.TeamBuilde... | true |
0b79dd0d9abb9f68f0eba9828952bb69475b5fd9 | Java | atiqbutt/ParentalApp | /app/src/main/java/com/softvilla/parentalapp/MessageInfo.java | UTF-8 | 149 | 1.609375 | 2 | [] | no_license | package com.softvilla.parentalapp;
/**
* Created by Malik on 20/12/2017.
*/
public class MessageInfo {
String name,number,type,date,body;
}
| true |
566685d8327cb5ecf9e8afcb7c13e3a088adc2ab | Java | xing/xing-android-sdk | /api-client-android-sample/src/main/java/com/xing/api/sample/ui/MainActivity.java | UTF-8 | 1,296 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 XING SE (http://xing.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | true |
4375c5a804d9238bf7dce3c6f0f74f09d0a9d5eb | Java | supawer0728/simple-event | /src/main/java/com/parfait/study/simpleevent/model/member/Member.java | UTF-8 | 533 | 2.4375 | 2 | [] | no_license | package com.parfait.study.simpleevent.model.member;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;
@Getter
@Setter
public class Member {
private Long id;
private String name;
private String email;
private String phoneNo;
public static Member create(@NonNull String name, @NonN... | true |
fb4140dbab918558267ecd6b709091905af5be2d | Java | RichichiDomotics/poder-judicial | /nsjp-servicios-api/src/main/java/mx/gob/segob/nsjp/service/documento/CargarDocumentoService.java | ISO-8859-1 | 4,772 | 2.515625 | 3 | [] | no_license | /**
* Nombre del Programa : CargarDocumentoService.java
* Autor : Emigdio Hernndez
* Compania : Ultrasist
* Proyecto : NSJP Fecha: 26/05/2011
* Marca de cambio : N/A
* Descripcion General : Define el contrato para el s... | true |
54c854e327859d5b8adbf672da34df75a4c698fc | Java | techradaar/Kids-Quran-Android-v1 | /KidsQuran/src/com/isslam/kidsquran/ReciterFragment.java | UTF-8 | 4,483 | 1.820313 | 2 | [] | no_license | package com.isslam.kidsquran;
import com.isslam.kidsquran.controllers.AudioListManager;
import com.isslam.kidsquran.utils.GlobalConfig;
import com.isslam.kidsquran.utils.Utils;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.graphics.ColorMatrix;
impo... | true |
d7a7208e26ad85ecced726d4af91d4f26bb3196f | Java | ravskii-pavel/java16-6-full | /Classwork/lesson46/src/main/java/core/entity/Lang.java | UTF-8 | 118 | 1.679688 | 2 | [] | no_license | package core.entity;
/**
* @author Shegeda Alexandr (https://www.luxoft.com).
*/
public enum Lang {
EN, RU, UA
}
| true |
c1362a452ceaee89ca64842242edb45673090b2c | Java | dugancathal/gobanking | /backends/java/components/purchase/src/main/java/com/dugancathal/javabanking/HttpBankService.java | UTF-8 | 1,155 | 2.421875 | 2 | [] | no_license | package com.dugancathal.javabanking;
import com.fasterxml.jackson.databind.ObjectMapper;
import okhttp3.MediaType;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.... | true |
af1271dc6340f5903c24040689ca8e7e40444951 | Java | williamtornvall/spring-boot-mysqldb_v2 | /src/main/java/com/techprimers/db/repository/ObstacleRepository.java | UTF-8 | 226 | 1.835938 | 2 | [] | no_license | package com.techprimers.db.repository;
import com.techprimers.db.model.Obstacle;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ObstacleRepository extends JpaRepository<Obstacle, Integer> {
}
| true |
248f7575a97b9a286a71398806bf9a9c35c702da | Java | shravanhebbar/mytest | /java8fun3.java | UTF-8 | 1,173 | 3.03125 | 3 | [] | no_license |
import java.util.Arrays;
import java.util.List;
import java.util.function.Predicate;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class java8fun3 {
public static void main(String[] args) {
Predicate<String> emailFilter = Pattern
... | true |
fecd0ae0d5ae3584f52772786c44e8449fc7d5da | Java | aliciagv/ttschoolExample | /src/main/java/com/acilia/ttschool/controller/CourseController.java | UTF-8 | 2,501 | 2.234375 | 2 | [] | no_license | package com.acilia.ttschool.controller;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.... | true |
2c2a6a0312796cadc03ff2dc231bb658bec40c97 | Java | carlosgrau/supportWeb | /src/main/java/com/dao/AlbaranDao.java | UTF-8 | 6,265 | 2.28125 | 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 com.dao;
import com.bean.AlbaranBean;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
imp... | true |
76305c0ec38eb50ce59e9e1556b51727ac899ce7 | Java | ddr001/AppMarket | /src/com/dongji/market/widget/SettingFlowDialog.java | UTF-8 | 4,084 | 2.03125 | 2 | [] | no_license | package com.dongji.market.widget;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import a... | true |
82a76728924b9172967a31715fba74afbbc936de | Java | ligzy/alexa-skill | /cloud/src/test/java/de/rainu/alexa/cloud/calendar/CalendarCLIAdapterTest.java | UTF-8 | 4,983 | 2.03125 | 2 | [
"MIT"
] | permissive | package de.rainu.alexa.cloud.calendar;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.doThrow;
import static org.mo... | true |
9c6b9ff9ec57d0b35effce1bca5e7a76ef7ba31b | Java | hanekawasann/learn | /sourcecode7/src/sun/management/RuntimeImpl.java | UTF-8 | 4,380 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | true |
c6b48d177bbab15a4399667eb6edf91ede3c20b5 | Java | sridharreddych/Core_Java_CP | /Collectors.toList/src/com/sree/util/stream/ToListExample.java | UTF-8 | 448 | 3.1875 | 3 | [] | no_license | package com.sree.util.stream;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
* @author Sridhar reddy
*Collectors.toList
Collectors.toList collects the stream data as List for the given data type.
*/
public class ToListExample {
public static void main(String[] ar... | true |
9b44587b613c0dd70993b71a96acf26c73ecd123 | Java | maxxor704/IncripcionesPRO | /inscripcionesAPI/src/main/java/mx/edu/itlapiedad/DAO/JDBC.java | UTF-8 | 8,654 | 1.953125 | 2 | [] | no_license | package mx.edu.itlapiedad.DAO;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import mx.edu.itlapiedad.DAO.RM;
import mx.edu.itlapiedad.DAO.RMCARRERAS;
import mx.edu.i... | true |
3de91f4ef1b8c9ca18bce0d8686d2c541495defc | Java | yy756127197/maxmall | /maxmall-provider/maxmall-provider-marketing/src/main/java/com/maxmall/provider/marketing/service/impl/PromotionNotifyServiceImpl.java | UTF-8 | 938 | 1.640625 | 2 | [] | no_license | package com.maxmall.provider.marketing.service.impl;
import com.maxmall.common.core.support.BaseService;
import com.maxmall.provider.marketing.mapper.market.PromotionNotifyDOMapper;
import com.maxmall.provider.marketing.model.domain.market.PromotionNotifyDO;
import com.maxmall.provider.marketing.service.PromotionNotif... | true |
fc7b9d7bd8d3f278067b8388b9a903b9aaef50e7 | Java | bel4enk/javaBaseHomework | /src/Practice0906/Computer.java | UTF-8 | 135 | 2.0625 | 2 | [] | no_license | package Practice0906;
public class Computer extends Product {
String memoryType;
int memorySize;
int memoryFreaquancy;
}
| true |
16208c961d12ccb86391988d0360ca31db379c29 | Java | cenbow/fuxiaofengfugib | /cqliving-online/src/main/java/com/cqliving/cloud/online/shopping/dto/ShoppingCategoryDto.java | UTF-8 | 3,412 | 2.375 | 2 | [] | no_license | package com.cqliving.cloud.online.shopping.dto;
import java.util.Date;
import java.util.Set;
public class ShoppingCategoryDto implements Comparable<ShoppingCategoryDto>{
/** ID */
private Long id;
/** 客户端_ID */
private Long appId;
/** 分类级别 */
private Integer level;
/** 父级ID */
pri... | true |
2b8dfc168ff0b2abf1229ed2ad22e72e697850df | Java | gutizia/PowBot | /src/gutizia/scripts/farmer/ui/FarmingUI.java | UTF-8 | 5,799 | 2.21875 | 2 | [] | no_license | package gutizia.scripts.farmer.ui;
import gutizia.scripts.farmer.ui.panels.*;
import gutizia.scripts.farmer.ui.panels.Panel;
import gutizia.util.resources.PropertyUtil;
import gutizia.util.userInterface.TabUI;
import org.powerbot.script.rt4.ClientContext;
import javax.swing.*;
import java.awt.*;
import java.awt.event... | true |
78425babc6222339fc9f3a2c6bdaa72ee90ef00b | Java | lukabaca/HousingCooperative-backend | /src/main/java/pl/dmcs/blaszczyk/controller/MeasurementController.java | UTF-8 | 3,640 | 2.140625 | 2 | [] | no_license | package pl.dmcs.blaszczyk.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.util.StringUtils;
import org.sprin... | true |
870c55a45fd765fde65eefb63b2823e17c23e42e | Java | suffolk-northern/main | /test/mbo/MBODemo.java | UTF-8 | 1,754 | 2.609375 | 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 test.mbo;
import mbo.MboController;
import mbo.FakeTrain;
import track_model.GlobalCoordinates;
import track_model.TrackBlock;... | true |
8dc6c626c794d4e550b5618f6790f20a07d551cd | Java | cbelangerstpierre/Fridge | /src/main/java/com/cbelangerstpierre/container/Container.java | UTF-8 | 820 | 3.328125 | 3 | [] | no_license | package com.cbelangerstpierre.container;
import com.cbelangerstpierre.food.Food;
import java.io.Serializable;
import java.util.ArrayList;
public abstract class Container implements Serializable {
private final String name;
private final ArrayList<Food> content = new ArrayList<>();
public Container(Str... | true |
0fcb1f2f8eabb42c1dbb5a482eebc1d40185127f | Java | BipedBoat/MyRepo | /Supermercato/Clientisupermercato.java | UTF-8 | 1,159 | 2.546875 | 3 | [] | no_license | package Supermercato;
import java.util.Objects;
public class Clientisupermercato {
private int anni;
private String nome;
private int idcliente;
public Clientisupermercato(int anni,String nome) {
setAnni(anni);
setNome(nome);
this.idcliente = hashCode();
... | true |