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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7cb73c04d61b5ada257221feb1a157f0331fe24b | Java | rceron-chwy/mongo-monitor-webapp-boot | /src/main/java/com/mongodash/controller/IndexController.java | UTF-8 | 767 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.mongodash.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class IndexController extends BaseCon... | true |
45e70db6b97177572ffc0050bccd6ce88a2ccbb3 | Java | Gadgetguycj/School | /Programming2/src/HW1/CharacterFrequency.java | UTF-8 | 801 | 4 | 4 | [] | no_license | package HW1;
import java.util.Scanner;
public class CharacterFrequency {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int[] phoneNumber = new int[10];
// Read in Phone Number
System.out.println("Please Enter a Phone Number: ");
String number = reader.nextLine();
//... | true |
ce462538db472656e00747502fd19ef1e0019819 | Java | dtmo/nifi-client | /nifi-api-builder/nifi-1-client-parent/nifi-1.7.0-bean-builders/src/main/java/com/tibtech/nifi/web/api/dto/CounterDTOBuilder.java | UTF-8 | 2,236 | 2.515625 | 3 | [] | no_license | package com.tibtech.nifi.web.api.dto;
import java.lang.Long;
import java.lang.String;
import org.apache.nifi.web.api.dto.CounterDTO;
public final class CounterDTOBuilder {
private String context;
private String id;
private String name;
private String value;
private Long valueCount;
/**
* The conte... | true |
6f5aae3879b038a034347b59020cd38d658e7c34 | Java | wwclearlove/Mv | /app/src/main/java/cdictv/scmv/activity/MusicActivity.java | UTF-8 | 1,486 | 2.171875 | 2 | [] | no_license | package cdictv.scmv.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.util.ArrayList;
import cdictv.scmv.R;
import cdictv... | true |
945e00691e02b705f0fc80fe374020b873f7100a | Java | McAlm/Java8 | /src/main/java/com/mkyong/json/Jackson2Example.java | UTF-8 | 1,839 | 3.15625 | 3 | [] | no_license | package com.mkyong.json;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackso... | true |
b88dcb15a01317e80a0394d504d8e89a055116c9 | Java | giocos/battlecity-2D | /src/it/unical/progetto/igpe/gui/TypeMatrix.java | UTF-8 | 151 | 1.710938 | 2 | [] | no_license | package it.unical.progetto.igpe.gui;
public enum TypeMatrix {
EMPTY, BRICKWALL, STEELWALL, ICE, WATER, FLAG, TREE, PLAYER1, PLAYER2, DEFAULT;
}
| true |
18561891c7a0ecb8d23f3d04e7e62ec2daef8a35 | Java | Julie0u812/OOP-2015 | /Students/Others/Vacareanu M. Robert Ionut/Project/CurrencyConverter/app/src/main/java/com/example/robertvacareanu/currencyconverter/business/jsonparser/CurrencyJsonParser.java | UTF-8 | 1,206 | 2.75 | 3 | [] | no_license | package com.example.robertvacareanu.currencyconverter.business.jsonparser;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Iterator;
public class CurrencyJsonParser extends JsonParser {
boolean status = true;
private HashMap<String, Double> result = ne... | true |
80ef278485f1cbbb6af82d9dde3254d87707d46e | Java | tungxuan1998/UML | /JTree/ProjectNode.java | UTF-8 | 399 | 2.40625 | 2 | [] | no_license | package JTree;
import Parser.Project;
import Parser.SourceFile;
import javax.swing.tree.DefaultMutableTreeNode;
public class ProjectNode extends DefaultMutableTreeNode {
public ProjectNode(Project project) {
super("Project");
for(SourceFile file : project.getSourceFiles()) {
... | true |
a7973471054d049e79908e27042a17a1e87e943f | Java | ws93/test | /src/SubClassTest.java | UTF-8 | 891 | 3.140625 | 3 | [] | no_license | import com.sun.tools.doclets.formats.html.SourceToHTMLConverter;
/**
* Created by Wei Shi on 3/25/17.
*/
class A {
void print() {
System.out.println("This is A.");
}
}
class B extends A implements C {
void print() {
System.out.println("This is B.");
}
public void CPrint() {
... | true |
8c373dd7c124bb07db2e3d737f783727531e0819 | Java | syslink/R2RPlatform | /src/com/pirobot/client/robot/TeamMemberInterface.java | UTF-8 | 303 | 1.835938 | 2 | [] | no_license | package com.pirobot.client.robot;
import com.pirobot.client.model.Member;
public interface TeamMemberInterface {
/**
* 发现新成员
*@param member 新成员信息
*@return 无
*@exception 无
*@author Sam@pirobot.club
*@Time 2017-04-4 12:00:00
*/
public void discoverNewMember(Member member);
}
| true |
69aebef8542de91a514dd33d6e5d12f1913f80c8 | Java | danielaotelea/egeria | /open-metadata-implementation/access-services/subject-area/subject-area-api/src/main/java/org/odpi/openmetadata/accessservices/subjectarea/properties/objects/graph/Line.java | UTF-8 | 6,404 | 1.984375 | 2 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | /* SPDX-License-Identifier: Apache-2.0 */
package org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph;
import com.fasterxml.jackson.annotation.*;
import org.odpi.openmetadata.accessservices.subjectarea.properties.objects.OmasObject;
import org.odpi.openmetadata.accessservices.subjectarea.properti... | true |
1a19087c22efbff33962c5240054ab703a208b08 | Java | Tazeen-ruetcse13/ResistanceCalculator | /src/com/androidapp/resistancecalculator/FinalActivity.java | UTF-8 | 2,363 | 2.546875 | 3 | [] | no_license | package com.androidapp.resistancecalculator;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListene... | true |
da4334c3559258c9a08a781a8165d87292b1ae85 | Java | GitHub-yuteng/LearningNotes | /src/main/java/DataStructure/LinkedList/CircleSingleLinkedListDemo.java | UTF-8 | 3,445 | 4.0625 | 4 | [] | no_license | package DataStructure.LinkedList;
/**
* @author Yu
* 约瑟夫问题
*/
public class CircleSingleLinkedListDemo {
public static void main(String[] args) {
CircleSingleLinkedList circleSingleLinkedList = new CircleSingleLinkedList();
circleSingleLinkedList.addCNode(5);
circleSingleLinkedList.trav... | true |
7c101ab92b6d3805f9cfaa87a4291ee596368ecf | Java | JonasVervloet/DelegateMAS | /src/main/java/Ant/AntInterface.java | UTF-8 | 902 | 2.21875 | 2 | [] | no_license | package Ant;
import CommunicationManager.AGVCommunication;
import CommunicationManager.IntersectionCommunication;
import CommunicationManager.PDCommunication;
import CommunicationManager.RoadCommunication;
import com.github.rinde.rinsim.core.model.comm.MessageContents;
public interface AntInterface extends MessageCon... | true |
77be5c8d5fcf96c57c4b58cfa4608d7dec1e834e | Java | PabloHernandez778/LaunchPad---Pablo | /java_training/crearComida.java | UTF-8 | 566 | 3.359375 | 3 | [] | no_license | import java.util.Scanner; //Importación del código de la clase Scanner desde la biblioteca Java
public class crearComida {
public static void main(String[]args){
System.out.println("Digite comida");
String entradaTeclado = "";
String ingredientes = "";
Scanner entradaEscaner ... | true |
5d76f0ccad6eb9c1cffe71b12fcebca87195186f | Java | seven4n-certicamara-pruebas/vertical-pruebas-spring | /CertiFactura_Dominio_Clientes/src/main/java/com/certicamara/certifactura/dominio/clientes/facturaElectronica/repositorios/RepositorioFacturaElectronicaCarrefour.java | UTF-8 | 3,016 | 2.640625 | 3 | [] | no_license | package com.certicamara.certifactura.dominio.clientes.facturaElectronica.repositorios;
import com.certicamara.certifactura.dominio.clientes.facturaElectronica.dtos.FacturaElectronicaCarrefourDTO;
import com.certicamara.certifactura.dominio.ddd.IRepositorio;
import com.certicamara.certifactura.infraestructura.excepci... | true |
e838d846c60caacb3c92c89392a46527a0894123 | Java | S-Bystrov/Bystrov | /src/homework_7/task6/Task6.java | UTF-8 | 573 | 3.203125 | 3 | [] | no_license | package homework_7.task6;
import java.util.ArrayList;
public class Task6 {
public static void main(String[] args) {
String[] words = {"Words", "apple", "world"};
String initialLetter = "W";
// outArray -> filteredWords
ArrayList<String> outArray = new ArrayList<>();
for (int... | true |
8424c017e26595c773317e3c3ed84eb3b18f669f | Java | Davidxiahao/DataBaseWorkplace | /src/main/java/com/hankz/util/dbutil/StatementPreparor.java | UTF-8 | 277 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.hankz.util.dbutil;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* Created by HankZhang on 2017/7/7.
*/
@FunctionalInterface
public interface StatementPreparor {
void prepare(PreparedStatement ps) throws SQLException;
}
| true |
a8a74452a99a7dd7d2a17c263e2a31923090b59b | Java | relteq/beats | /src/test/java/edu/berkeley/path/beats/test/util/polyline/GoogleEncoderTest.java | UTF-8 | 4,595 | 2.84375 | 3 | [
"BSD-2-Clause"
] | permissive | package edu.berkeley.path.beats.test.util.polyline;
import java.math.BigDecimal;
import java.util.List;
import java.util.Random;
import org.apache.log4j.Logger;
import static org.junit.Assert.*;
import org.junit.Test;
import edu.berkeley.path.beats.jaxb.Point;
import edu.berkeley.path.beats.simulator.BeatsException;... | true |
89f7f5b2646d7949de1999357261fdcf95363e97 | Java | andywiranata/SampleCustomListview | /SampleCustomListview/app/src/main/java/com/nostratech/samplecustomlistview/Profile.java | UTF-8 | 188 | 1.6875 | 2 | [] | no_license | package com.nostratech.samplecustomlistview;
/**
* Created by nostra on 6/22/15.
*/
public class Profile {
public String name;
public String email;
public String address;
}
| true |
bd2501e59c0dabda40d6968558754a216fec33ad | Java | ngmon/ngmon-pub-sub | /counting-tree/src/main/java/cz/muni/fi/publishsubscribe/countingtree/index/type/DateIndex.java | UTF-8 | 1,062 | 2.328125 | 2 | [] | no_license | package cz.muni.fi.publishsubscribe.countingtree.index.type;
import java.util.Date;
import cz.muni.fi.publishsubscribe.countingtree.Operator;
import cz.muni.fi.publishsubscribe.countingtree.index.operator.GreaterThanIndex;
import cz.muni.fi.publishsubscribe.countingtree.index.operator.GreaterThanOrEqualToIndex;
impor... | true |
b18844fa888beb76843699a77f6118789966fff5 | Java | ellenbboe/SeckillFramework | /src/test/java/sf/others/TestInsert.java | UTF-8 | 595 | 2.078125 | 2 | [] | no_license | package sf.others;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import sf.dao.OrdMapper;
import sf.entity.Ord;
@RunWith(Spr... | true |
7823a66ba0587131b14e127849ad4bc14027cc96 | Java | ebrenno/PDV-ponto-de-venda | /src/conexao/DatabaseFactory.java | UTF-8 | 1,002 | 2.546875 | 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 conexao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Lev... | true |
6d048572afd8912f43f5a932c6758de576692817 | Java | Yukti-Agarwal88/DSA-C-- | /Java/Algorithms/Searching Algorithms/Fibonacci.java | UTF-8 | 1,074 | 4.28125 | 4 | [] | no_license | /*
Fibonacci Series algorithm in Java
This Java Program is used to Generate Fibonacci Series. The number is said to be in a Fibonacci series
if each subsequent number is the sum of the previous two numbers. In this program ,it'll calculate a fibonacci series
of n number of elements which we'll take from the user.
O... | true |
16e80417b54f83274e9f8d0d4256ddf6b810183c | Java | roman-kitaev/otus-spring-2018-11-v2- | /HW021/src/main/java/ru/otus/main/localisationservice/LocalisationServiceConfig.java | UTF-8 | 872 | 1.929688 | 2 | [] | no_license | package ru.otus.main.localisationservice;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.... | true |
63ea552e8bab0871c1f231ac799745673c8fe3f7 | Java | dsc5085/slideracer | /core/src/dc/slideracer/collision/system/CollisionChecker.java | UTF-8 | 1,383 | 2.578125 | 3 | [
"MIT"
] | permissive | package dc.slideracer.collision.system;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import dc.slideracer.collision.CollisionType;
import dc.slideracer.parts.CollisionPart;
import dclib.epf.Entity;
// TODO: COmbine this with collision resolver
public fin... | true |
446bd4881cf87587e3ea1994c7c4a8d21b25f6f1 | Java | ColdPepsi/Leetcode | /956-最高的广告牌/src/main/java/Solution2.java | UTF-8 | 2,054 | 3 | 3 | [] | no_license | /*
* Copyright 2013-2018 duolabao.com All right reserved. This software is the confidential and proprietary information of
* duolabao.com ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
* in accordance with the terms of the license agreement you entered into w... | true |
70ec3f3efb413f45c1c65b74c2066b3337203d70 | Java | brunonlima/BlastTeste | /src/gov/nih/nlm/ncbi/www/impl/NumberingDocumentImpl.java | UTF-8 | 24,173 | 1.898438 | 2 | [] | no_license | /*
* An XML document type.
* Localname: Numbering
* Namespace: http://www.ncbi.nlm.nih.gov
* Java type: gov.nih.nlm.ncbi.www.NumberingDocument
*
* Automatically generated - do not modify.
*/
package gov.nih.nlm.ncbi.www.impl;
/**
* A document containing one Numbering(@http://www.ncbi.nlm.nih.gov) elem... | true |
93c3be5cebb785983bd7038d9c3311b133f5a281 | Java | OlegLi87/simple-email-client | /src/main/java/emailclient/Protocol.java | UTF-8 | 264 | 2.34375 | 2 | [] | no_license | package emailclient;
public enum Protocol {
IMAPS ("imaps"),
POP3 ("pop3s");
private String protocol;
private Protocol(String protocol){
this.protocol = protocol;
}
String getProtocol(){
return protocol;
}
}
| true |
f963a5f538d0c355860de7b104f85c839dba28c8 | Java | Hoangquan-061199/website__selling_JSP_JAVA_SERVLET | /src/main/java/controller/AddControl.java | UTF-8 | 995 | 2.203125 | 2 | [] | no_license | package controller;
import java.io.IOException;
import dao.DAO;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@WebServlet(urlPatterns = "/... | true |
dafd24885f886d788947c8d45b7339e275c08838 | Java | Bobberclobber/old-repos | /adventura-ultima/src/gui_components/BackgroundComponent.java | UTF-8 | 1,412 | 3.234375 | 3 | [] | no_license | package se.wgco.jgf.adventura_ultima.gui_components;
import se.wgco.jgf.adventura_ultima.constants.GameWindowConstants;
import se.wgco.jgf.adventura_ultima.constants.WorldConstants;
import javax.swing.*;
import java.awt.*;
/**
* Created by Josef on 07/05/2014.
* <p>
* A JComponent which paints the background ... | true |
cba9f17c0097ba075712d8b28acc2882f73b5cd9 | Java | leojuju/radar | /radar/radarKafkaMonitorApi/src/main/java/infrastruction/TimeUtils.java | UTF-8 | 3,296 | 2.859375 | 3 | [] | no_license | package infrastruction;
import java.net.URL;
import java.net.URLConnection;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class TimeUtils {
public static final String WEBURL = "https://www.baidu.com/";
public static String getRealDateOnGMT(){... | true |
4be48a184b8fe14fb2fcd25ae60a94eff64119ed | Java | sanket0024/Algorithms | /Other/Other Practice Java/UseMatrix.java | UTF-8 | 198 | 2.1875 | 2 | [] | no_license | class UseMatrix
{
public static void main(String args[])
{
Matrix m1=new Matrix();
m1.show();
Matrix m2=new Matrix(2,2);
m2.show();
Matrix m3=new Matrix(m2);
m3.show();
}
} | true |
fa0647435258a6c6995cc4a26127f02ea048107c | Java | Vleezy/JavaGraal | /src/gfx/Assets.java | UTF-8 | 32,127 | 2.3125 | 2 | [] | no_license | package gfx;
import java.awt.image.BufferedImage;
public class Assets
{
private static final int WIDTH = 16, HEIGHT = 16;
//IMAGES
public static BufferedImage playerHead, playerBody, displacedWaterParticle, grassParticle, air, grass, grass2, flower, grass3, grass4, entrancePadL, entrancePadR, path, path2, path... | true |
6fb19a6bdcb78ccde0bbb80f1fc9406b7c9f724b | Java | zhongxingyu/Seer | /Diff-Raw-Data/14/14_ee69f0e993966f73651649e2dd0945fd7f78f2fb/DefaultRouterTest/14_ee69f0e993966f73651649e2dd0945fd7f78f2fb_DefaultRouterTest_s.java | UTF-8 | 8,960 | 1.960938 | 2 | [] | no_license | /***
*
* Copyright (c) 2009 Caelum - www.caelum.com.br/opensource All rights reserved.
*
* 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 must retain the above copyright n... | true |
773696c2266373248778ddc7673010bc71e555ce | Java | VinceLz/carshopByAndroid | /app/src/main/java/com/car/contractcar/myapplication/common/http/HttpUtil.java | UTF-8 | 15,359 | 1.835938 | 2 | [] | no_license | package com.car.contractcar.myapplication.common.http;
import android.content.Context;
import android.net.Uri;
import android.util.Log;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.car.contractcar.myapplication.common.utils.LocalUtil;
import com.squareup.picasso.Downloader;
impo... | true |
7fc68d9f4823c43c68e90e5bc0cc02a3a59c6318 | Java | wuxiulin1999/Asteroids | /SpaceGame/src/Element/Bullet.java | UTF-8 | 2,644 | 3.015625 | 3 | [] | no_license | package Element;
import java.awt.*;
import java.util.ArrayList;
import View.GameUser;
import Element.Brick;
import Element.Ship;
public class Bullet implements Movement{
private GameUser gu;
public static final int Bullet_Width=5;
public static final int Bullet_Height=5;
public static final double Bullet_Speed=15... | true |
045a2fc3fdc779f0e1a47252fe31aa88caeb3310 | Java | XEonAX/ANXMiuiCamera9 | /src/ANXCamera/sources/miui/reflect/NoSuchClassException.java | UTF-8 | 399 | 2.140625 | 2 | [] | no_license | package miui.reflect;
public class NoSuchClassException extends ReflectionException {
private static final long serialVersionUID = -7034897190745766944L;
public NoSuchClassException(String str) {
super(str);
}
public NoSuchClassException(String str, Throwable th) {
super(str, th);
... | true |
0f3e6e68eb0732069892f66c7a0dbdba110dd832 | Java | goncharoov/patterns | /src/test/java/ru/netology/data/DataGenerator.java | UTF-8 | 916 | 2.578125 | 3 | [] | no_license | package ru.netology.data;
import com.github.javafaker.Faker;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
public class DataGenerator {
private DataGenerator() {
}
public static class Registration {
private Registration() {
}
pub... | true |
0b60519108c5f51433f971fb5061101110c56d2e | Java | AngelOver/CalligraphyTraining | /guns-admin/src/main/java/com/stylefeng/guns/modular/calligraphy/controller/SubjectCateoryController.java | UTF-8 | 3,490 | 1.9375 | 2 | [] | no_license | package com.stylefeng.guns.modular.calligraphy.controller;
import com.stylefeng.guns.core.base.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.stylefeng.gu... | true |
e8adc49c930337e0ea06d882158fe7b2a8360bc3 | Java | babureddyh/data-structures | /src/main/java/com/babu/learn/ds/linear/Node.java | UTF-8 | 120 | 1.890625 | 2 | [] | no_license | package com.babu.learn.ds.linear;
public class Node<T> {
public T data;
public Node<T> next;
public Node<T> prev;
}
| true |
b26c2fce354bcc2df4167b64faf7759445720727 | Java | xavieerbbc/biblioteca | /tiendaClient/src/Controlador/EventoVentanaPrestamo.java | UTF-8 | 2,402 | 2.046875 | 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 Controlador;
import Interfaces.VtnIngesarLibros;
import Interfaces.VtnIngresarPrestamo;
import java.awt.event.ActionEve... | true |
9719a11507a2b17c765edb7817356c80875a88d8 | Java | labbolframework/labbol-cocoon-plugin-platform | /src/main/java/com/labbol/cocoon/plugin/platform/log/controller/BaseLogController.java | UTF-8 | 864 | 2.125 | 2 | [] | no_license | /**
*
*/
package com.labbol.cocoon.plugin.platform.log.controller;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import com.labbol.cocoon.controller.BaseCrudSupportController;
import com.labbol.core.platform.log.model.Log;
/**
* 日志管理器
* ... | true |
8868a9d87c05cd2d185361e49a8de47683840fe0 | Java | chmunozpardo/elevate_it | /src/main/java/cl/dreamit/elevateit/AccessControl/ProcesadorComandosManuales.java | UTF-8 | 11,790 | 1.78125 | 2 | [] | no_license | package cl.dreamit.elevateit.AccessControl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.google.gson.Gson;
import cl.dreamit.elevateit.Configuration.CONF;
import cl.dreamit.elevateit.DataModel.Const.CardTypes;
import cl.dreamit.elevateit.DataModel.Const.Operation;
import cl.dr... | true |
ea26a09b4eff81c25d7a467bd10dab9783d76aa2 | Java | stonesteel1023/wordcounter | /src/wordcounter/WordCounterTest.java | UTF-8 | 1,129 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package wordcounter;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.io.IOException;
import java.util.Map;
import org.junit.Test;
public class WordCounterTest {
Map<String, Long> wordCounts;
@Test(expected = IOException.class)
public void testFileDoesNotExists() throws IOException... | true |
357effc5292ff9f450f1398645fee94cd41a1094 | Java | coke0788/sakila | /sakila/src/main/java/com/gd/sakila/controller/RentalController.java | UTF-8 | 4,637 | 2.109375 | 2 | [] | no_license | package com.gd.sakila.controller;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframewo... | true |
a2d101094a4471403855827ef2a6303c241f450d | Java | flapdoodle-oss/de.flapdoodle.solid | /src/main/java/de/flapdoodle/solid/formatter/StringFormatFormatter.java | UTF-8 | 1,199 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2017
* Michael Mosmann <michael@mosmann.de>
*
* 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 re... | true |
27246cf03f04587e10e60e7f2b258b597d8f909b | Java | SwissTPH/openhds-tablet | /src/main/java/org/openhds/mobile/database/BaselineUpdate.java | UTF-8 | 1,888 | 2.28125 | 2 | [] | no_license | package org.openhds.mobile.database;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import org.openhds.mobile.OpenHDS;
import org.openhds.mobile.model.FormXmlReader;
import org.openhds.mobile.model.Individual;
import android.content.ContentResolver;
import android.content.... | true |
c3c30277f5f962e8bbfcdb78a1a87f925480ad87 | Java | daizhiqing/SpringCloudFramework | /module-base/src/main/java/com/dzq/base/Config.java | UTF-8 | 310 | 1.695313 | 2 | [] | no_license | package com.dzq.base;
/**
* @Project : SpringCloudFramework
* @Package Name : com.dzq.base
* @Description : TODO
* @Author : daizhiqing@xiaochong.com
* @Creation Date : 2018年02月28日下午3:55
* @ModificationHistory Who When What
*/
public class Config {
public static final String BASE_PACKAGE = "com.dzq";
}
| true |
0014f2b7fb2ec1d8d46167221c363ab9bc23d2be | Java | AlexMacrescu/android-covid-results-app-master | /android-covid-results-app-master/app/src/main/java/com/example/covid19/model/Vaccinari.java | UTF-8 | 2,648 | 2.296875 | 2 | [] | no_license | package com.example.covid19.model;
import androidx.annotation.NonNull;
import java.util.List;
public class Vaccinari {
public static final String REZULTATE = "rezultate";
public static final String AN = "an";
public static final String TOTAL_PACIENTI = "totalPacienti";
public static final String TOT... | true |
93153a82d9c5f8df221b28559373e477aed72ec6 | Java | wanggaojun/templates | /IosTemplate/src/com/shop/web/util/Page.java | UTF-8 | 1,073 | 2.28125 | 2 | [] | no_license | package com.shop.web.util;
import java.util.ArrayList;
import java.util.List;
public class Page {
private long rowCount=0;//总记录数
private long pageCount=0;//总页数
private long rowCountPerPage=0;//每页显示的记录数
private long curPageNum=1;//当前页码
private List<?> result=new ArrayList<Object>();//当前页显示数据集合
public ... | true |
32d544124dd555042c460d1ebd025d8d81dfab7f | Java | alemdar22/java-programming | /src/day03_escape_sequence/Comments.java | UTF-8 | 215 | 2.25 | 2 | [] | no_license | package day03_escape_sequence;
public class Comments {
public static void main(String[] args) {
// this is for comment, it will not run this command.
// System.out.println("wooden spoon")
}
} | true |
57b00a902a332d0212b311228e1919872fd7ef51 | Java | kokhrimenko/application_template | /application/src/main/java/com/kokhrimenko/spring/application/dao/RoleRepository.java | UTF-8 | 344 | 1.929688 | 2 | [] | no_license | package com.kokhrimenko.spring.application.dao;
import java.util.Optional;
import org.springframework.stereotype.Repository;
import com.kokhrimenko.spring.application.domain.Role;
@Repository
public interface RoleRepository extends org.springframework.data.repository.Repository<Role, Long> {
Optional<Role> fin... | true |
b9fc918748ee2d07e7c6d194d430c38b8f538653 | Java | XuanJiAndroid/cuckoo | /cuckoo-core/src/main/java/com/guoxiaoxing/cuckoo/debug/DebugTracking.java | UTF-8 | 147 | 1.570313 | 2 | [] | no_license | package com.guoxiaoxing.cuckoo.debug;
import org.json.JSONObject;
public interface DebugTracking {
void reportTrack(JSONObject eventJson);
}
| true |
7a9da8784ae4739efd2e544c2b878d432a38b033 | Java | gufushan/team06_easybuy | /src/main/java/com/ibeifeng/shop/model/Order.java | UTF-8 | 2,032 | 2.203125 | 2 | [] | no_license | package com.ibeifeng.shop.model;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.Date;
/**
* Created by Administrator on 2016/12/1.
*/
@Entity
@Table(name = "t_order")
public class Order {
private int id;
private int status;
private Date createtime;
p... | true |
0e7a73ba5420c03de4d80fdec20c1dc683210a84 | Java | TikhomirovSergey/primitive | /primitive/src/main/java/org/primitive/webdriverencapsulations/components/bydefault/ByAndroidUIAutomator.java | UTF-8 | 397 | 1.835938 | 2 | [] | no_license | package org.primitive.webdriverencapsulations.components.bydefault;
import io.appium.java_client.FindsByAndroidUIAutomator;
import org.openqa.selenium.WebDriver;
public abstract class ByAndroidUIAutomator extends WebdriverInterfaceImplementor
implements FindsByAndroidUIAutomator {
public ByAndroidUIAutoma... | true |
ca7d7c74c1edb8404f89649ed109159f19afbdbc | Java | goranstack/bluebrim | /CoreClient/src/main/java/com/bluebrim/gui/client/CoListValueable.java | ISO-8859-1 | 1,227 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.bluebrim.gui.client;
import javax.swing.JList;
import javax.swing.event.ListSelectionListener;
/**
Interfaceklass fr vrdeobjektsklasser som jobbar med en lista som sitt vrde.
*/
public interface CoListValueable extends CoValueable, ListSelectionListener {
public interface Mutable extends CoListValueabl... | true |
68bfc4acb2c8abce8e97068391ab16c4ecfc6c42 | Java | DiegoAmezquita/SurvivalGameComponets | /core/src/com/appmunki/survival/UI/RectBorder.java | UTF-8 | 1,671 | 2.65625 | 3 | [] | no_license | package com.appmunki.survival.UI;
import com.appmunki.survival.util.Util;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scene... | true |
3e4b3132834766ad80849335baa0c7d7ea5b0aa3 | Java | pruthvi28994/Basics_of_Coding-4 | /java_Examples/src/com/pruthvi/java/InterviewQuestion/Java_MergeAndSortList.java | UTF-8 | 1,959 | 4.3125 | 4 | [] | no_license | package com.pruthvi.java.InterviewQuestion;
import java.util.*;
/*
* Complete the main method as given below:
Input should be accepted using console
Accept 10 integers and create two List's each containing 5 integers
Display the returned ArrayList
Refer sample output for formatting specifications.Merge the two ... | true |
15d9f540fa2d7200490e8a6a0575bb3043f3f956 | Java | mayl666/passportlearn | /passport-main-service/src/main/java/com/sogou/upd/passport/dao/moduleblacklist/ModuleBlackListDAO.java | UTF-8 | 3,022 | 2.15625 | 2 | [] | no_license | package com.sogou.upd.passport.dao.moduleblacklist;
import com.sogou.upd.passport.model.black.BlackItem;
import com.sogou.upd.passport.model.moduleblacklist.ModuleBlacklist;
import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.SQL;
import net.paoding.rose.jade.annotation.SQLParam;
impor... | true |
66cd914894b95b37de3adfdd62665855543fde6d | Java | annysena/ExerciciosJava-generation-bloco1 | /exercicios0107/IntroJava08.java | ISO-8859-1 | 468 | 3.359375 | 3 | [] | no_license | package br.com.generation.aula01.exemplovariavel;
//Autor: Anny
//Data: 01/07
import java.util.Scanner;
public class IntroJava08 {
public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
double valorFab, valor;
System.out.println("Inisira o valor de fbrica: ");
valorFab = ler.n... | true |
5e7e13b8904ad3070e48fe9780ced158d4fe3785 | Java | mKa1s/MyBatis_Maven4 | /src/main/java/com/atguigu/dao/EmployeeMapperDynamicSQL.java | UTF-8 | 637 | 1.90625 | 2 | [] | no_license | package com.atguigu.dao;
import com.atguigu.bean.Employee;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author shkstart
* @create 2021-08-31 15:11
*/
public interface EmployeeMapperDynamicSQL {
public List<Employee> getEmpsByConditionIf(Employee employee);
public List<Employ... | true |
c710c509cc685d53f4436f55e4801a53640d0d0a | Java | Adrriii/cdp-g1-eq1-dev | /src/back/src/test/java/dao/sql/SQLProjectDAOTest.java | UTF-8 | 1,531 | 2.71875 | 3 | [
"MIT"
] | permissive | package dao.sql;
import org.junit.jupiter.api.Test;
import dao.sql.SQLProjectDAO;
import domain.Project;
import java.sql.SQLException;
import static org.junit.jupiter.api.Assertions.*;
class SQLProjectDAOTest {
@Test
void testSimpleInsertDelete() {
SQLProjectDAO projectDAO = new SQLProjectDAO();
... | true |
01ca5d101f3cbddc8664abee17e1167591194bac | Java | DashaLevchenko/Demo2 | /Demo02/src/main/java/demo/exceptions/PetDiedException.java | UTF-8 | 257 | 2.328125 | 2 | [] | no_license | package demo.exceptions;
/**
* The class indicates when pet health point less then 0
* that a might to catch exception.
*/
public class PetDiedException extends Exception {
public PetDiedException(String message) {
super(message);
}
}
| true |
bbae80eb7965dbd774c7127f12332cc8eeb8a3f9 | Java | azureskydiver/db4o | /db4oj.tests/src/com/db4o/db4ounit/common/qlin/PrototypesTestCase.java | UTF-8 | 2,962 | 2.390625 | 2 | [] | no_license | /* Copyright (C) 2010 Versant Inc. http://www.db4o.com */
package com.db4o.db4ounit.common.qlin;
import com.db4o.foundation.*;
import com.db4o.qlin.*;
import db4ounit.*;
/**
* @sharpen.if !SILVERLIGHT
*/
@decaf.Remove(decaf.Platform.JDK11)
public class PrototypesTestCase implements TestLifeCycle {
... | true |
dcf4fad27f155dc7eaa220e09127deaddd66bff5 | Java | tomadimcic/JAVA | /RFIDReader/src/com/dunavnet/project/boxnet/communication/LoRaCommunication.java | UTF-8 | 2,111 | 2.453125 | 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.dunavnet.project.boxnet.communication;
import com.dunavnet.project.boxnet.Constants;
import com.dunavnet.project.boxnet.co... | true |
46a87a1a453328bc9cf35883f2e4fdf7456d2635 | Java | lucasOliveira91/poc-low-high-platform | /src/main/java/com/example/poc/lowhighIntegratePlatform/util/DateUtils.java | UTF-8 | 3,119 | 3.0625 | 3 | [] | no_license | package com.example.poc.lowhighIntegratePlatform.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Calendar;
import java.util.Date;
public final class DateUtils {
... | true |
ce3c665fc0b085f77855544cb2b45c9608994546 | Java | milanpatelgec/SenseHealth | /src/com/example/bleexample/classic/IntentIdentifier.java | UTF-8 | 1,682 | 1.804688 | 2 | [] | no_license | package com.example.bleexample.classic;
/**
* Intent identidier for all Broadcastreceivers
*
*
*/
public class IntentIdentifier {
public static final String BLUETOOTH_DATA = "com.example.cardioapp.bluetooth.bt_data";
public static final String BLUETOOTH_DATA_BYTE = "com.example.cardioapp.bluetooth.bt_data_by... | true |
f76330db0443fa2910ad305094a78838d1c893f3 | Java | zu0p/algorithm | /src/com/algorithm/PizzaLarge.java | UTF-8 | 799 | 3.125 | 3 | [] | no_license | /*
* Writer: 주영,박
* 20210119
*
* 백준_14607) 피자(Large)
* https://www.acmicpc.net/problem/14607
*
* 수학 / 규칙 / 점화식
*/
package com.algorithm;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class... | true |
2ab76765f93f36f843b56d25e3b49a1226fbaf0e | Java | EdwardDelgado/IntelliJTutor | /src/part2/Error.java | UTF-8 | 113 | 1.539063 | 2 | [
"MIT"
] | permissive | package part2;
public class Error {
public String noReturn() {
}
public void noBrackets{
}
}
| true |
41742517a4de46e247588abbd82c1f33681815cb | Java | Husna45/AfghanistanBestCities | /app/src/main/java/app/auaf/afghanistanbestcities/citiesAdapter.java | UTF-8 | 3,272 | 2.234375 | 2 | [] | no_license | package app.auaf.afghanistanbestcities;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.cardv... | true |
348283b8e3d09458c5384a58f8a418282473e7e7 | Java | chenpeiyuan1987/spring | /src/main/java/org/yuan/study/spring/core/NestedIOException.java | UTF-8 | 742 | 2.875 | 3 | [] | no_license | package org.yuan.study.spring.core;
import java.io.IOException;
public class NestedIOException extends IOException {
private static final long serialVersionUID = 1L;
public NestedIOException(String message, Throwable cause) {
super(message);
initCause(cause);
}
public NestedIOException(String me... | true |
184db23922b56e38e0718f0206b7afbe35f6ec10 | Java | tianlan255/remote_aus | /src/main/java/com/haitang/project/system/accountMgt/controller/AccountMgtController.java | UTF-8 | 4,539 | 1.789063 | 2 | [
"MIT"
] | permissive | package com.haitang.project.system.accountMgt.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPerm... | true |
e1165ecabc147cc86883cd0bac33f399affc409e | Java | zxb301/springboot-activemq | /jms/src/main/java/com/example/jms/config/MyActiveMqConfig.java | UTF-8 | 703 | 2 | 2 | [] | no_license | package com.example.jms.config;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.config.DefaultJmsListenerContainerFactory;... | true |
7d50d74edd66121932a6b929cabc8423f78f4635 | Java | wangchao1994/CustomCamera2Demo | /app/src/main/java/com/example/wangchao/androidbase2fragment/view/focus/FocusViewController.java | UTF-8 | 10,222 | 1.59375 | 2 | [] | no_license | /*
* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek i... | true |
652d8f608aa8ad06181fc7868b2e2788f64e4248 | Java | haohonghh/bluedon-api | /src/main/java/com/bluedon/common/interceptor/AuthInterceptor.java | UTF-8 | 2,841 | 2.390625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.bluedon.common.interceptor;
import com.bluedon.common.annotation.DisableAuth;
import com.bluedon.common.constants.CommonConstant;
import com.bluedon.common.exception.BDException;
import com.bluedon.common.utils.IPUtil;
import com.bluedon.common.utils.RedisUtil;
import com.bluedon.common.utils.Result;
impor... | true |
98bb22051ff4b38174d759a8c2dba5236422a85b | Java | WilsonXu/exercise | /java/spring-security-book-samples/chapter02/jpa/src/main/java/org/wilson/springsecurity/jpa/controller/UserController2.java | UTF-8 | 799 | 2.25 | 2 | [] | no_license | package org.wilson.springsecurity.jpa.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.AsyncContext;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.concurrent.Completab... | true |
4a0bb33feeea6bfe515dadde196dd746c6aa7786 | Java | xmuzhangshuai/LanQuan | /lanquan/src/com/lanquan/ui/ModifyDataActivity.java | UTF-8 | 12,434 | 1.960938 | 2 | [] | no_license | package com.lanquan.ui;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import org.apache.http.Header;
import org.json.JSONException;
import org.json.JSONObject;
import com.lanquan.R;
import com.lanquan.base.BaseApplication;
import com.lanquan.base.BaseFragmentActiv... | true |
afcc9e87b1f5883495b7e5045cad25a514cab365 | Java | JetBrains/intellij-community | /java/java-tests/testData/refactoring/inlineMethod/InlineParms.java | UTF-8 | 496 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | public class Test {
public int <caret>foo(int p1, int p2) {
p2++;
return someMethod(p1, p2);
}
public void use1() {
int r = foo(x, y);
}
public void use2() {
int r = foo(field1, field1);
}
public void use3() {
int r = foo(field2, field2);
}
... | true |
e2651215ae3396593ea3b62bec07bcf53ef2fb50 | Java | flyingsl0ths/Helsinki-Java-Course-Practice-Problems | /NumberStatistics.java | UTF-8 | 2,425 | 3.875 | 4 | [] | no_license | import java.util.Scanner;
import java.util.InputMismatchException;
public class NumberStatistics
{
private int amountOfNumbers;
private int sum;
public NumberStatistics()
{
// initialize here the object variable amountOfNumbers
this.amountOfNumbers = 0;
}
public void addNumb... | true |
ca601702ff2ae008b715b31cd6860f2776b0eae7 | Java | buonqs/Android | /app/src/main/java/com/example/testandroid/Playgame.java | UTF-8 | 8,032 | 1.882813 | 2 | [] | no_license | package com.example.testandroid;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.widget.CompoundButtonCompat;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
i... | true |
94070f97a0dd3ce4dac8e6fb5a2b2ec48d839e5a | Java | RodneyFernandes17/fontedward | /IGRP-Template/src/main/java/nosi/webapps/sistema_de_avaliacao_igrpweb/pages/parametrizacao_areas_ou_projetos/Parametrizacao_areas_ou_projetos.java | UTF-8 | 1,492 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package nosi.webapps.sistema_de_avaliacao_igrpweb.pages.parametrizacao_areas_ou_projetos;
import nosi.core.gui.components.IGRPTable;
import nosi.core.webapp.Model;
import nosi.core.webapp.RParam;
import nosi.core.webapp.databse.helpers.BaseQueryInterface;
import java.util.ArrayList;
import java.util.List;
pu... | true |
50f87c3df280d4398f8469b059a3c4c3d3bc460a | Java | SHNotCulture/Automate | /src/main/java/com/produce/dao/TCardCouponMapper.java | UTF-8 | 7,030 | 1.867188 | 2 | [] | no_license | package com.produce.dao;
import com.produce.dao.sqlProvider.TCardCouponSqlProvider;
import com.produce.entity.TCardCoupon;
import com.produce.entity.TCardCouponCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.ann... | true |
542bd9ff65d782ba3a8725920151cbaca5009a28 | Java | ViachaslauS/Through-the-darkness | /core/src/Entities/Buff.java | UTF-8 | 858 | 2.953125 | 3 | [] | no_license | package Entities;
public class Buff {
public final boolean isCycle;
private int clockTimes = 1;
public enum BuffType {
HITPOINTS, MANA, DAMAGE, ARMOR,
POWER, INTELLIGENCY, AGILITY, REGEN_FREQUENCY
}
public BuffType type;
public float value;
public float durating;
/**
* @param type
* @param val... | true |
8ffdb0e6c1676866355cd5069270b3851e6ee0f7 | Java | FWj1635387072/leetcode | /src/main/java/Day07/_57_插入区间.java | UTF-8 | 199 | 2.09375 | 2 | [] | no_license | package Day07;
/**
* @author:付文杰
* @date :2020/11/4 16:41
*/
public class _57_插入区间 {
public int[][] insert(int[][] intervals, int[] newInterval) {
return null;
}
}
| true |
a1c413cb685511c375a001fdf4f27c675a7e3bb5 | Java | oxteox/VoiceBook | /app/src/main/java/com/voice/book/fragment/DetaildFragment.java | UTF-8 | 1,575 | 2.25 | 2 | [] | no_license | package com.voice.book.fragment;
import android.content.Intent;
import android.os.Bundle;
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 an... | true |
bc3ecd0c4a7db347a885e0601090179902df07be | Java | Rfairs/Personal-Project | /src/main/java/com/example/demo/controller/UserController.java | UTF-8 | 8,774 | 2.015625 | 2 | [] | no_license | package com.example.demo.controller;
import com.example.demo.pojo.Book;
import com.example.demo.pojo.User;
import com.example.demo.server.BookService;
import com.example.demo.server.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.server.Session;
... | true |
2562ae968745d88ca8caa70bca2f14dc404968c1 | Java | android/android-test | /espresso/core/java/androidx/test/espresso/base/EventInjectionStrategy.java | UTF-8 | 2,032 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 applic... | true |
054f4fbe7b68f2c8d987a5f6c52ba9e6df1db667 | Java | lonelyshine/lay | /src/com/cy/ssm/mapper/FileMapper.java | UTF-8 | 772 | 1.84375 | 2 | [] | no_license | package com.cy.ssm.mapper;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface FileMapper {
//上传文件信息插入到数据库
public void insertFileInfo(@Param(value="Id") String fileid,@Param(value="userId") String userid,@Param(value="fileName") String fileName,... | true |
2e0b20e0f02a1c67f3b6f9846e5f26ae617af764 | Java | baihuanyu/Hello_World | /src/codePractice/Student.java | UTF-8 | 360 | 2.671875 | 3 | [] | no_license | package codePractice;
/**
* @author : 白桓宇 522858867@qq.com
* @date: 2020/6/17
*/
public class Student {
private String name;
public Student() {
}
public Student(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String... | true |
6fbbf9102568f2a62ed2c72c6f114c7678b589a3 | Java | fajieyefu/ZhiHuiWeb | /src/com/servlet/LoadFileServlet.java | UTF-8 | 1,869 | 2.609375 | 3 | [] | no_license | package com.servlet;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.ne... | true |
99966f413dea4ccd21cea36af27919c57147cd7f | Java | GabrielJospin/MatematicaDiscreta | /src/com/matematicaDiscreta/estruturasBasicas/Primos.java | UTF-8 | 1,521 | 3.53125 | 4 | [] | no_license | package com.matematicaDiscreta.estruturasBasicas;
import java.util.ArrayList;
import java.util.List;
public class Primos {
static List<Integer> primos = new ArrayList();
public List<Integer> listaDePrimos(Integer limit){
List<Integer> answer = new ArrayList();
for(Integer i = 2; i<= limit;... | true |
72cbf4ed9ea81257085c22847605193547027d5d | Java | lllerry/Algorithm | /src/datastructure/datatype/Stack.java | UTF-8 | 706 | 3.578125 | 4 | [] | no_license | package datastructure.datatype;
/**
* Created by lerry on 12/05/2017.
* 链表实现
*/
public class Stack<T> {
static class NodeV<T> {
T t;
NodeV mNext;
}
//栈顶
NodeV first;
//索引
int index;
//压栈
public void push(T t) {
//向栈顶添加元素
NodeV oldNode = first;
... | true |
6a767ff6cdd1c5527d13e72e7b219a785dfdddf0 | Java | danielgiulianoit/Analyzer | /src/main/java/org/analyzer/controller/UserController.java | UTF-8 | 1,047 | 2.078125 | 2 | [] | no_license | package org.analyzer.controller;
import org.analyzer.constants.HtmlViews;
import org.analyzer.service.user.UserService;
import org.analyzer.service.user.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.ste... | true |
8cb593f3d9c19e54411a803310b053986f771c80 | Java | ahdahddl/cytoscape | /core3/vizmap-gui-impl/branches/bypass/src/main/java/org/cytoscape/view/vizmap/gui/internal/editor/valueeditor/StringValueEditor.java | UTF-8 | 491 | 2.53125 | 3 | [] | no_license | package org.cytoscape.view.vizmap.gui.internal.editor.valueeditor;
import java.awt.Component;
import javax.swing.JOptionPane;
public class StringValueEditor extends AbstractValueEditor<String> {
private static final String MESSAGE = "Please enter new text value";
public StringValueEditor(Class<String> type) {
... | true |
806355cb5aa1814d9d8622fd1e1df99934b5d5d6 | Java | netoFlores/Programacion3 | /UGBVOICE/app/src/main/java/sv/edu/ugb/ugbvoice/MainActivity.java | UTF-8 | 1,963 | 2.25 | 2 | [] | no_license | package sv.edu.ugb.ugbvoice;
import android.content.Intent;
import android.speech.tts.TextToSpeech;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import java.util.Locale;
public class MainActivity ext... | true |
d6557e2f1699d14d78f28bbe2c5022877c4ec771 | Java | NicholasYamamoto/Ruby-Interpreter-with-Java | /src/Interpreter.java | UTF-8 | 10,036 | 3.53125 | 4 | [
"MIT"
] | permissive | /*
Nicholas Yamamoto
Homework 5
CS3100 - Programming Languages
April 24, 2020
*/
import java.util.*;
public class Interpreter {
// Global DEBUG boolean to activate console outputs for debugging/function tracing
private static boolean DEBUG = false;
// Global variable for number of iterat... | true |
cc14a18494f89204f065a41865756f096b186c92 | Java | DonaldY/coding2017 | /group26/1515345281/src/Collection/TestCollection.java | UTF-8 | 1,742 | 3.6875 | 4 | [] | no_license | package Collection;
import org.junit.Test;
public class TestCollection {
@Test
public void arrayListTest(){
ArrayList array=new ArrayList();
array.add(1);
array.add(2);
System.out.println(array.size());
Iterator it=array.iterator();
while(it.hasNext()){
System.out.println(it.next());
}
}
@Test
... | true |
79c2aa65a35141b69565bd3a462de286c59ef059 | Java | KadeKade/jhipster-sample-application | /src/main/java/com/mycompany/myapp/repository/CriteriaRepositoryWithBagRelationships.java | UTF-8 | 452 | 1.929688 | 2 | [] | no_license | package com.mycompany.myapp.repository;
import com.mycompany.myapp.domain.Criteria;
import java.util.List;
import java.util.Optional;
import org.springframework.data.domain.Page;
public interface CriteriaRepositoryWithBagRelationships {
Optional<Criteria> fetchBagRelationships(Optional<Criteria> criteria);
L... | true |
fe75fd4138bcd04e676bf7bae12f26bbe307aa0e | Java | suyong0328/2019 | /PJ_03.21_last/src/memberService/subaction.java | UTF-8 | 1,645 | 2.109375 | 2 | [] | no_license | package memberService;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import controller.CommandProcess;
import dao.MemberDao;
import dto.Member;
public class subaction implements CommandProcess{
@Override
public Stri... | true |