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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b45e0b5f485b8e7cf1cb0226ceed506d149e724e | Java | agermenos/skillmatch | /src/main/java/com/skillmatch/daos/SkillDao.java | UTF-8 | 235 | 1.515625 | 2 | [] | no_license | package com.skillmatch.daos;
import com.skillmatch.pojos.Skill;
import org.springframework.stereotype.Repository;
/**
* Created by agermenos on 5/30/16.
*/
@Repository("skillDao")
public class SkillDao extends GeneralDao<Skill>{
}
| true |
7bf9e4ba8b3621bf1871738e03ab1a3e9aa62b1e | Java | MarcusViniciusCavalcanti/teste-ilias | /atm/src/main/java/com/zonework/atm/domain/transactional/service/ExecutorUpdateRetirementBalance.java | UTF-8 | 2,714 | 2.171875 | 2 | [] | no_license | package com.zonework.atm.domain.transactional.service;
import com.zonework.atm.domain.adapter.send.AsynchronousProcessingWithTopicForSendingMessage;
import com.zonework.atm.domain.transactional.entity.StatusTransactionalEnum;
import com.zonework.atm.domain.transactional.entity.TransactionalBalance;
import com.zonework... | true |
e741badd3f6509ace3ab5c9f6311cefd58dcf325 | Java | JCFlores93/AndroidAvanzado | /DesarrolloApurata/apurata_android/app/src/main/java/com/apurata/prestamos/creditos/RequestModels/Coord.java | UTF-8 | 3,275 | 2.578125 | 3 | [] | no_license | package com.apurata.prestamos.creditos.RequestModels;
import android.location.Location;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
/**
* Created by USUARIO on 5/06/2017.
*/
public class Coord implements Parcelable {
public Coord() {
}
@S... | true |
3dc787c18f22f9e1cf07cda7694c188050fa7992 | Java | LiteracyBridge/acm | /acm/src/main/java/org/literacybridge/acm/gui/messages/AudioItemTableSortOrderMessage.java | UTF-8 | 497 | 2.21875 | 2 | [] | no_license | package org.literacybridge.acm.gui.messages;
import javax.swing.SortOrder;
public class AudioItemTableSortOrderMessage extends Message {
private final Object identifier;
private final SortOrder sortOrder;
public AudioItemTableSortOrderMessage(Object identifier,
SortOrder sortOrder) {
this.identifier ... | true |
2c10639b5f8a1c199ff61883eaab165f0e266515 | Java | prabhuSub/Java-Assignments | /Assignment_3/src/UserInterface/TravelAgency/UserDirectoryJPanel.java | UTF-8 | 6,452 | 2.40625 | 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 UserInterface.TravelAgency;
import Business.Customer.Customer;
import Business.TravelAgency.Airline;
import Business.TravelAge... | true |
1d8af354c0a125fdc27295872d03af88d7db729a | Java | moutainhigh/foss | /tfr/tfr-partialline/src/main/java/com/deppon/foss/module/transfer/partialline/server/interceptor/AllHandlerInterceptor.java | UTF-8 | 885 | 1.789063 | 2 | [] | no_license | package com.deppon.foss.module.transfer.partialline.server.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
public class AllHandlerInterceptor implem... | true |
c500b44923f532bbfaa1e226a5af64a794292762 | Java | NeilDuToit92/satisfactory-calculator-java | /src/main/java/item/basic/SteelBeam.java | UTF-8 | 804 | 2.734375 | 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 item.basic;
import item.Item;
import item.ItemBase;
import javax.swing.*;
import java.util.Map;
public class SteelBeam exten... | true |
ddfce2e0f8b33edbc183e6b3d1cf7e00ef0204fe | Java | haoxizhong/Android | /app/src/main/java/com/ihandy/a2014011384/Main2Activity.java | UTF-8 | 5,548 | 1.84375 | 2 | [] | no_license | package com.ihandy.a2014011384;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
impor... | true |
3a92c26ca988c285c997ff0ab9e5d4d1e65902b9 | Java | daeunchung/Java | /hijava/hijava/Exam31_2.java | UHC | 570 | 3.296875 | 3 | [] | no_license | package hijava;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Exam31_2 extends Applet{
int x,y;
public void init() {
this.setBackground(Color.green);
this.setSize(300, 200);
this.addMouseListener(new MouseHandler());
}
public void paint(Graphics g) {
g.fillOval(x, y, 20, 20)... | true |
4fae884d2ae8d77ed0b3e16f0132dc7ef4256e38 | Java | ITneko/Java | /JSL/Day_1015/src/Exam_01.java | UTF-8 | 408 | 3.46875 | 3 | [] | no_license | import java.util.Vector;
// List -> ArrayList, Vector, LinkedList
public class Exam_01 {
public static void main(String[] args) {
Vector vc = new Vector();
Vector vc2 = new Vector(10);
System.out.println("기본크기 :" + vc.capacity());
System.out.println("기본크기 :" + vc2.capacity()); //물리적인 공간
vc.add("aaa");
vc... | true |
837991714106a93fa507b9e5f822361e62309704 | Java | AnderJoeSun/JavaSE-Demos | /base/Cla.java | UTF-8 | 961 | 2.859375 | 3 | [] | no_license | class Cla{
public static void main(String agr[]){
/*Point p=new Point();
Class c1=p.getClass();
System.out.println(c1.getName());
try{
Class c2=Class.forName("Point");
System.out.println(c2.getName());
}catch(Exception e){
System.out.println(e);
}
Class c3=Point.class;
Sy... | true |
1f1337d63d3423476ebffb8dc56fde3da74ecc54 | Java | ComputationalReflection/weaveJ | /example/src/example/aspect/ProfilerAspect.java | UTF-8 | 961 | 2.890625 | 3 | [
"MIT"
] | permissive | package example.aspect;
import java.lang.invoke.MethodHandle;
import example.component.CreditCard;
public class ProfilerAspect {
/*
private long timeBefore;
public void checkTimeBefore(CreditCard card, double amount) {
timeBefore = System.nanoTime();
}
public void profileAfter(String methodName, CreditCard c... | true |
95700b246c60a82216cb9ec63e4b03ac1e427e47 | Java | marianogili/TraceabilityEditor | /TraceEditor/src/com/marianogili/traceeditor/TraceLink.java | UTF-8 | 3,956 | 2 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package com.marianogili.traceeditor;
import org.eclipse.emf.common.util.EList;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Trace Link</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* ... | true |
e5b7f899804cf629fea4d128fe1af4a756f87f08 | Java | timboudreau/netbeans-contrib | /cnd.fortran/fortran_highlighting/src/main/java/org/netbeans/modules/fort/model/util/IntervalSet.java | UTF-8 | 4,015 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive |
package org.netbeans.modules.fort.model.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import org.netbeans.modules.fort.model.lang.FOffsetable;
import org.netbeans.modules.fort.model.lang.impl.SimpleOffsetable;
/**
* uti... | true |
fbc9b34da0b56cdf30ce4a48236268591a954cfd | Java | PrachiBora/ComputerArchitecture | /src/Global.java | UTF-8 | 899 | 2.0625 | 2 | [] | no_license | import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Queue;
public class Global
{
static HashMap<String,Integer> RegisterValuePair = new HashMap<String,Integer>();
static HashMap<String,String> opcodeFunctionalUnit = new HashMap<String,String>();
static HashMap<String,... | true |
905a032f669cb6e45c19f4857093779f3f82e53d | Java | Ashish-Goyal1234/Javaprogrammes | /ExceptionHandling/ExceptionHandling/Case14_PrintingExceptionMessage.java | UTF-8 | 762 | 3.5625 | 4 | [] | no_license | package ExceptionHandling;
public class Case14_PrintingExceptionMessage {
void m3(){
try{
System.out.println(10/0);
}catch(ArithmeticException ae){
System.out.println(ae); //print exception and message
System.out.println(ae.toString()); // this is same as ae.... | true |
69d1ebcaed0980888fdb3180bbb960db3233b4ce | Java | soarchen2k/MOOC | /Part2/src/ca/monor/week08/W8_13_RichFirstPoorLast/cours_Generics/Slot.java | UTF-8 | 304 | 2.65625 | 3 | [] | no_license | package ca.monor.week08.W8_13_RichFirstPoorLast.cours_Generics;
public class Slot<T> {
private T key;
public T getValue() {
return key;
}
public void setValue(T key) {
this.key = key;
}
@Override
public String toString() {
return "" + key;
}
}
| true |
c3ab5037aa3b2570454a3e44275a75cfc459409e | Java | gspandy/hermes-1 | /hermes-portal/src/main/java/com/ctrip/hermes/portal/console/application/JspFile.java | UTF-8 | 440 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.hermes.portal.console.application;
public enum JspFile {
VIEW("/jsp/console/application/application.jsp"),
TOPIC("/jsp/console/application/application-topic.jsp"),
CONSUMER("/jsp/console/application/application-consumer.jsp"),
REVIEW("/jsp/console/application/application-review.jsp"),
;
privat... | true |
49966539db1de3bc83e2a4f29ae8256e26d3cd75 | Java | yeahyung/board | /src/main/java/com/example/board/controller/AutoController.java | UTF-8 | 23,358 | 1.789063 | 2 | [] | no_license | package com.example.board.controller;
import com.example.board.service.AutoService;
import com.example.board.vo.request.ImgAugRequestVo;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind... | true |
bca0de8db46f8d5e352cfbc20f7295a98977b366 | Java | lhogie/jalinopt | /src/main/java/jalinopt/Result.java | UTF-8 | 960 | 2.921875 | 3 | [] | no_license | package jalinopt;
import java.util.Collection;
import java.util.HashSet;
public class Result
{
private final Collection<Variable> variables = new HashSet<Variable>();
private double objective = Double.NaN;
private LP problem;
public Result(LP p)
{
this.problem = p;
variables.addAll(p.getVariabl... | true |
4858c2a7c7709d75f63093c3f7e78695f039d3dd | Java | GertKanter/HyperFlex | /src/org.hyperflex.compositionmodels.ros.model/src/org/hyperflex/roscompositionmodel/impl/ROSSrvConsumerImpl.java | UTF-8 | 4,775 | 1.679688 | 2 | [] | no_license | /**
* HyperFlex Toolchain
*
* Copyright (c) 2013
* All rights reserved.
*
* Luca Gherardi
* University of Bergamo
* Department of Engineering
*
* ***********************************************************************************************
*
* Author: <A HREF="mailto:lucagh@ethz.ch">Luca Gherardi</A>
... | true |
28baabb50e9e37efd9a82ac1c01b788c7b949f37 | Java | wangpo1991/Sentinel | /sentinel-demo/sentinel-demo-quarkus/src/main/java/com/alibaba/csp/sentinel/demo/quarkus/AppLifecycleBean.java | UTF-8 | 2,615 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | true |
fc13b7f5422e7557cea89a6b8cdd2068660503e1 | Java | zalak16/Project-Nemo | /NetworkMotif/src/main/java/edu/uw/nemo/motifSignificant/mapreduce/NemoRandomGraphMain.java | UTF-8 | 1,697 | 2.515625 | 3 | [] | no_license | package edu.uw.nemo.motifSignificant.mapreduce;
import java.io.IOException;
import java.net.URISyntaxException;
/**
* Created by Zalak on 5/5/2015.
*/
public class NemoRandomGraphMain
{
public static void main(String args[]) throws IOException, InterruptedException, URISyntaxException, ClassNotFoundExceptio... | true |
8b4449ab8fd4f6876602d858ef5be735fdf71221 | Java | aws-samples/aws-greengrass-lambda-functions | /foundation/CDDBaselineJava/src/main/java/com/awslabs/aws/iot/greengrass/cdd/helpers/implementations/BasicJsonHelper.java | UTF-8 | 2,810 | 2.46875 | 2 | [
"MIT-0",
"LicenseRef-scancode-proprietary-license"
] | permissive | package com.awslabs.aws.iot.greengrass.cdd.helpers.implementations;
import com.awslabs.aws.iot.greengrass.cdd.events.GreengrassLambdaEvent;
import com.awslabs.aws.iot.greengrass.cdd.helpers.JsonHelper;
import com.google.gson.GsonBuilder;
import com.google.gson.TypeAdapterFactory;
import io.vavr.gson.VavrGson;
import o... | true |
a63ae191a207275f9cda42d39bfecdda8682f101 | Java | Sutonline/task-list | /task-list-web/src/test/java/cn/kevin/dao/TaskLabelTest.java | UTF-8 | 1,404 | 2.265625 | 2 | [] | no_license | package cn.kevin.dao;
import cn.kevin.domain.TaskLabel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.Resource;
import java.util.List;
/**
* Created... | true |
4f5c1afd9ec340fb4a2520de6e41f5b662196e42 | Java | neucloudzouaodi/iotdb | /src/main/java/cn/edu/tsinghua/iotdb/qp/logical/crud/BasicOperatorType.java | UTF-8 | 3,072 | 2.609375 | 3 | [] | no_license | package cn.edu.tsinghua.iotdb.qp.logical.crud;
import cn.edu.tsinghua.iotdb.qp.constant.SQLConstant;
import cn.edu.tsinghua.iotdb.qp.exception.LogicalOperatorException;
import cn.edu.tsinghua.tsfile.timeseries.filter.definition.FilterFactory;
import cn.edu.tsinghua.tsfile.timeseries.filter.definition.SingleSeriesFilte... | true |
54ea3c6ec807116abad08002e93329652aba98f9 | Java | ankita1797/school-bus-driver-navigator | /app/src/main/java/fragmentstabs/SelectBusFragment.java | UTF-8 | 1,996 | 2.171875 | 2 | [] | no_license | package fragmentstabs;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.ankita.internshipapplication.HomeFragment;
import com.example.ankita.internshipapplic... | true |
dc1611c9d34de861a6eb9fcb25028ebca7c07990 | Java | iu7/tasktracker | /PROJECTS/src/main/java/ru/bmstu/iu7/rsoi/gulyy/coursework/issue/types/IssueTypeResource.java | UTF-8 | 2,538 | 2.25 | 2 | [] | no_license | package ru.bmstu.iu7.rsoi.gulyy.coursework.issue.types;
import ru.bmstu.iu7.rsoi.gulyy.coursework.projects.Project;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
im... | true |
75d3afea85f705aeab3963214206857def60fceb | Java | kurartur/dualpair-server | /src/main/java/lt/dualpair/server/security/Authorizer.java | UTF-8 | 397 | 2.125 | 2 | [] | no_license | package lt.dualpair.server.security;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;
@Component
public class Authorizer {
public boolean hasPermission(Authentication authentication, Long userId) {
UserDetails principal = (UserDetails) authenticati... | true |
2c71c55747977e44f20828974cdc9efb1820acb1 | Java | povilasb/gwttestcase-sample | /src/com/example/client/Main.java | UTF-8 | 400 | 2.359375 | 2 | [] | no_license | package com.example.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
public class Main implements EntryPoint{
@Override
public void onModuleLoad(){
Element textDiv = Document.get().getElementById("text");
Person me = ne... | true |
877afd009f32ad2a5a90f320774d6665779e1b9b | Java | RiccardoCecco/ing-sw-2020-asaro-cassata-cecco | /src/main/java/it/polimi/ingsw/Client.java | UTF-8 | 4,323 | 2.921875 | 3 | [] | no_license | package it.polimi.ingsw;
import it.polimi.ingsw.ParserClient.BuilderCommand;
import it.polimi.ingsw.ParserClient.ParserEvent;
import it.polimi.ingsw.commands.Command;
import it.polimi.ingsw.events.Event;
import it.polimi.ingsw.events.ExceptionEvent;
import it.polimi.ingsw.view.Gui;
import java.io.*;
import java.net.S... | true |
8b670b47d014e54e9f59c0803b9473e0c3a67c69 | Java | bagus-stimata/spring-hibernate-integration | /Spring3-Hibernate4-Simple-Maven/src/main/java/org/config/spring/hibernate/dao/impl/Product2DaoImpl.java | UTF-8 | 1,209 | 2.46875 | 2 | [] | no_license | package org.config.spring.hibernate.dao.impl;
import java.util.List;
import org.config.spring.hibernate.dao.Product2Dao;
import org.config.spring.hibernate.model.Product;
import org.hibernate.Criteria;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.MatchMode;
import org.hibernate.criterion.Restri... | true |
7505281ce0a98d2690cd4772a13b58e586f9bd45 | Java | Stalyon/stalyon-bot | /src/main/java/com/stalyon/ogame/service/SaveFleetService.java | UTF-8 | 1,409 | 1.835938 | 2 | [] | no_license | package com.stalyon.ogame.service;
import com.stalyon.ogame.OgameApiService;
import com.stalyon.ogame.constants.OgameCst;
import com.stalyon.ogame.utils.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.sched... | true |
23377ff09971ca5c1d96529dc7d933a606972d9d | Java | infinispan/infinispan | /server/core/src/test/java/org/infinispan/server/core/MockProtocolServer.java | UTF-8 | 1,468 | 2.09375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | package org.infinispan.server.core;
import org.infinispan.server.core.configuration.MockServerConfiguration;
import org.infinispan.server.core.configuration.MockServerConfigurationBuilder;
import org.infinispan.server.core.transport.NettyTransport;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInbou... | true |
c0468681b597018a7d89d26b9b9865c689f3c590 | Java | rogeryee/JavaStudy | /java-study-core/src/main/java/com/yee/study/java/security/samples/crypt/AESSample.java | UTF-8 | 2,468 | 3.140625 | 3 | [] | no_license | package com.yee.study.java.security.samples.crypt;
import org.apache.commons.codec.binary.Hex;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.security.Key;
impor... | true |
9b6081c3c8ce20fb49b1b7d81604b05d24a51286 | Java | liuyunpeng01/CEPMS | /src/main/java/com/submit/web/controller/base/CommController.java | UTF-8 | 9,610 | 2.03125 | 2 | [] | no_license | package com.submit.web.controller.base;
import com.google.code.kaptcha.Constants;
import com.google.code.kaptcha.Producer;
import com.submit.util.*;
import org.apache.commons.io.FileUtils;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
d1c81df9a8c796031c08970b02eff9dc382ebfc0 | Java | paralysedforce/Tsuro | /src/test/ParserTests/TokenNetworkingTest.java | UTF-8 | 793 | 2.390625 | 2 | [] | no_license | package test.ParserTests;
import org.junit.Assert;
import org.junit.Test;
import javafx.util.Pair;
import main.BoardSpace;
import main.Token;
/**
* Created by William on 5/22/2018.
*/
public class TokenNetworkingTest {
@Test
public void pawnLocFromLocationTest() {
BoardSpace space = new BoardSpac... | true |
46a5810bcba0599441d0a30a987e9bc915cc0e3a | Java | Vivek99srivastava/java | /Hyperlink.java | UTF-8 | 944 | 2.578125 | 3 | [] | no_license | import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
public class Hyperlink extends JFrame
{
public static void main(String arg[])throws Exception
{
new Hyperlink();
}
public Hyperlink() throws Exception
{
String s = "http://www.rashmikantadas.com";
... | true |
169a924fa196dae098ede9997e22b155f5008a43 | Java | burhanorkun/tdesignpatterns | /TurkcellDesignPatterns/src/com/training/turkcell/dp/creational/abstractfactory/PrinterSystem1.java | UTF-8 | 510 | 2.921875 | 3 | [] | no_license | package com.training.turkcell.dp.creational.abstractfactory;
import com.training.turkcell.dp.creational.abstractfactory.formatter.IPersonFormatter;
public class PrinterSystem1 implements IPrinterSystem {
@Override
public void print(final Person person,
final IPersonFormatter formatter) {
Syste... | true |
cc9aacbccbbb3f4ccbc0f23c931305bf0d122af9 | Java | Sawyron/poultry-farm | /src/com/poultryfarm/birds/Bird.java | UTF-8 | 3,882 | 2.8125 | 3 | [] | no_license | package com.poultryfarm.birds;
import com.poultryfarm.IBehaviour;
import javax.swing.*;
import java.awt.*;
import java.io.Serial;
import java.io.Serializable;
import java.util.*;
public abstract class Bird implements IBehaviour, Serializable {
@Serial
private static final long serialVersionUID = 1L;
pri... | true |
b66ca6eb052c75a9c7420754431bd90a1479ec4b | Java | heidisu/mlworkshop | /common/src/main/java/no/kantega/mlworkshop/submission/TaskSubmission.java | UTF-8 | 488 | 2.046875 | 2 | [] | no_license | package no.kantega.mlworkshop.submission;
import java.util.List;
public class TaskSubmission {
private String name;
private List<Prediction> predictions;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List<Predictio... | true |
8787d30ab725de155f53676c6c2a8530b6e91dfe | Java | FRC3683/FRC-2019-Public | /src/main/java/frc/robot/subsystems/Arm.java | UTF-8 | 7,227 | 1.96875 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
f1112f57aa12fc289d052a16bdc346de39720cfc | Java | gbaufake/hawkular-agent | /hawkular-javaagent/src/main/java/org/hawkular/agent/javaagent/cmd/UpdateCollectionIntervalsCommand.java | UTF-8 | 9,498 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... | true |
4728b996c7dd7f299f01dc428bf3150089228153 | Java | ozubk/java_auto | /addressbook-web-tests/src/test/java/ru/stqa/auto/addressbook/tests/ContactCreationTests.java | UTF-8 | 582 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package ru.stqa.auto.addressbook.tests;
import org.testng.annotations.Test;
import ru.stqa.auto.addressbook.model.ContactData;
public class ContactCreationTests extends TestBase {
@Test
public void testContactCreation() {
app.getNavigationHelper().gotoHomePage();
app.getContactHelper().initContactCreati... | true |
1812b05f0173646e620d5ce2e47c5868f7fb31d7 | Java | Freudzhu/weibo | /src/main/java/com/zhuhaihuan/dao/IUserDAO.java | UTF-8 | 280 | 1.929688 | 2 | [] | no_license | package com.zhuhaihuan.dao;
import java.util.List;
import com.zhuhaihuan.domain.User;
public interface IUserDAO {
public boolean add(User user);
public User getUser(User user);
public List<User> searchUser(String username);
public String findUidByUsername(String username);
}
| true |
815a990e1d144d2a5cc11e16a74fe36299c940bb | Java | RockychengJson/eclipsender | /com.ibm.gers.mailviewer/src/com/ibm/gers/mailviewer/editors/AttachementsLabelProvider.java | UTF-8 | 995 | 1.9375 | 2 | [] | no_license | package com.ibm.gers.mailviewer.editors;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;
import com.ibm.gers.mailviewer.Activator;
import exs.serv.WCMail... | true |
a98716ddd6ff97e8e1dfb43a96164cbad369c6bc | Java | Mbote-Joseph/Java-Collection | /Test/RemoveBottomStack.java | UTF-8 | 1,205 | 3.859375 | 4 | [] | no_license | package Test;
public class RemoveBottomStack<E> extends StackGenericArray<E>{
@SuppressWarnings("unchecked")
public StackGenericArray<E> removeBottom(){
// get the size of the stack ('super' is reference variable used to refer to parent class object)
int size = super.stackSize();
// c... | true |
2279ead6dd9d768bfe2e5bb5a7b9d88ca10150fd | Java | wyrover/jensoft-core | /src/main/java/org/jensoft/core/plugin/bubble/Bubble.java | UTF-8 | 4,745 | 2.65625 | 3 | [] | no_license | /*
* Copyright (c) JenSoft API
* This source file is part of JenSoft API, All rights reserved.
* JENSOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package org.jensoft.core.plugin.bubble;
import java.awt.Color;
import java.awt.Shape;
import org.jensoft.core.plugin.bubble.painter.BubbleDraw;
imp... | true |
a4b67e963fd1fdd6a36bf50e76952136882f83b3 | Java | amantewary/Elo-Community-Based-Product-Reviewing-Android-Application | /app/src/main/java/group/hashtag/projectelo/Activities/ForgotPassword.java | UTF-8 | 4,948 | 2.21875 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"Apache-2.0"
] | permissive | package group.hashtag.projectelo.Activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TextInputLayout;
... | true |
a58368cdbded1557a27e875abc7225ab4f0c2e04 | Java | Allitter/final-task-hr | /src/main/java/com/epam/hr/domain/controller/command/impl/resume/page/ResumeInfoCommand.java | UTF-8 | 1,416 | 2.09375 | 2 | [] | no_license | package com.epam.hr.domain.controller.command.impl.resume.page;
import com.epam.hr.domain.controller.Router;
import com.epam.hr.domain.controller.command.Attributes;
import com.epam.hr.domain.controller.command.Pages;
import com.epam.hr.domain.controller.command.impl.resume.AbstractResumeCommand;
import com.epam.hr.do... | true |
aa10f7b514f46992ac7b271008719d96bf6739e7 | Java | quenton-sh/x-commons-memcached | /src/main/java/x/commons/memcached/MemcachedClientFactory.java | UTF-8 | 187 | 1.804688 | 2 | [] | no_license | package x.commons.memcached;
public interface MemcachedClientFactory {
public MemcachedClient getDefaultMemcachedClient();
public MemcachedClient getMemcachedClient(String name);
}
| true |
bb32606e2ba0ccad1af7c1e64f489001449ef208 | Java | ssharkov/LearningJava | /src/Learning/Generics/Stats.java | UTF-8 | 500 | 3.203125 | 3 | [] | no_license | package Learning.Generics;
/**
* Created by ssharkov on 25.01.2017.
*/
public class Stats<T extends Number> {
T[] nums;
public Stats(T[] nums) {
this.nums = nums;
}
double average(){
double sum = 0.0;
for (int i = 0; i< nums.length; i++)
sum = sum + nums[i].doub... | true |
4f4a2a2bf2c2d94111b511f712d8ec8921e13d50 | Java | Kabbej/Springlab | /src/test/java/se/iths/springlab/controller/ControllerTest.java | UTF-8 | 1,453 | 2.4375 | 2 | [] | no_license | package se.iths.springlab.controller;
import org.assertj.core.error.ShouldHaveSizeGreaterThanOrEqualTo;
import org.junit.jupiter.api.Test;
import se.iths.springlab.controllers.Controller;
import se.iths.springlab.dto.FootBallPlayerDto;
import java.util.List;
import java.util.Optional;
import static org.assertj.core.... | true |
1a8ab413459591edb44b2541ec0e1838ed29e8c6 | Java | CleitonCardoso/generic-stack | /app/src/main/java/com/genericstack/repositories/InformacoesGeraisRepository.java | UTF-8 | 275 | 1.53125 | 2 | [] | no_license | package com.genericstack.repositories;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;
import com.genericstack.models.InformacoesGerais;
public interface InformacoesGeraisRepository extends JpaRepository<InformacoesGerais, UUID> {
}
| true |
1f488e1207775301fd468ed17389162a157f7f78 | Java | balloonmarci/progettoWEB | /BryanAir/src/java/controller/PrenotationManager.java | UTF-8 | 32,295 | 1.890625 | 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 controller;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger... | true |
47bd243045e849768ecc313d115f96a7011efc2a | Java | alphadev-sthlm/k8s-test | /src/test/java/se/alphadev/k8stest/BaseITest.java | UTF-8 | 304 | 1.734375 | 2 | [] | no_license | package se.alphadev.k8stest;
import static java.lang.System.out;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.TestInfo;
public class BaseITest {
@BeforeEach
void beforeEach(TestInfo testInfo) {
out.println("*** "+ testInfo.getDisplayName() +" ***");
}
}
| true |
3a811782dbcec07205e7e1bb38d5465d71466743 | Java | Gaute94/FrameworksFinalProject-Back | /src/main/java/me/gaute/redditcloneback/controller/PostController.java | UTF-8 | 2,358 | 2.25 | 2 | [] | no_license | package me.gaute.redditcloneback.controller;
import me.gaute.redditcloneback.model.Post;
import me.gaute.redditcloneback.model.Subreddit;
import me.gaute.redditcloneback.model.SubredditAndUser;
import me.gaute.redditcloneback.service.PostService;
import me.gaute.redditcloneback.service.SubredditService;
import me.gau... | true |
2cfbcc2a436972214bb335c2ed4105a374b0e9ee | Java | cqingwo/Messenger | /Libraries/Services/src/main/java/com/cqwo/services/BannedIPs.java | UTF-8 | 2,709 | 2.0625 | 2 | [] | no_license | /*
* Copyright (C) 2017.
* 用于JAVA项目开发
* 重庆青沃科技有限公司 版权所有
* Copyright © 2017. CqingWo Systems Incorporated. All rights reserved.
*/
package com.cqwo.services;
import com.cqwo.core.domain.BannedIPInfo;
import javax.annotation.Resource;
import java.io.IOException;
import java.util.List;
/**
* Created by cqnews o... | true |
d928a932919d817b25ba7b67d49e1c88a29fc922 | Java | mutyalart/fastcodingtools | /trunk/fastcodingtools/src/com/fastcodingtools/util/io/FileUtils.java | ISO-8859-1 | 20,808 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); ... | true |
1d126a1ee4a461b175118d9b426d46cd875307a3 | Java | jiaxinli0907/document-analysis | /src/main/java/de/dbvis/utils/VMath.java | UTF-8 | 1,143 | 3.015625 | 3 | [
"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 de.dbvis.utils;
import org.apache.commons.math3.linear.RealVector;
/**
*
* @author JiaxinLi
*/
public class VMath implemen... | true |
8d012feb5a44e3deefaee70340066a9f411ed7ac | Java | jeronimovf/nucleo | /src/main/java/br/jus/trt23/nucleo/enums/TipoPessoa.java | UTF-8 | 314 | 2.6875 | 3 | [] | no_license | package br.jus.trt23.nucleo.enums;
public enum TipoPessoa
{
F("Pessoa Física"), J("Pessoa Jurídica");
private String descricao;
private TipoPessoa(String descricao)
{
this.descricao = descricao;
}
public String getDescricao()
{
return descricao;
}
} | true |
2229ab02c57998276a355ddf322beee905c94db4 | Java | dpenic23/JavaTecajZI | /src/hr/fer/zemris/java/tecaj/zi/LabelaBrojKrugova.java | UTF-8 | 359 | 2.390625 | 2 | [] | no_license | package hr.fer.zemris.java.tecaj.zi;
import javax.swing.JLabel;
public class LabelaBrojKrugova extends JLabel implements PromatracModelaCrteza {
private static final long serialVersionUID = 1L;
@Override
public void dogodilaSePromjena(ModelCrteza model) {
this.setText("Broj krugova: " + String.v... | true |
e3f1b057ad640abddea6320e253aba9da9575971 | Java | ashwinicodetreasure/Fitorto | /app/src/main/java/com/ct/fitorto/adapter/CityAdapter.java | UTF-8 | 1,214 | 2.515625 | 3 | [] | no_license | package com.ct.fitorto.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.ct.fitorto.R;
import com.ct.fitorto.model.City;
import java.util.List;
/**
* Cr... | true |
b03ebdef3f52a9e3e372b93ffc256d854aa70eba | Java | aminkashiri/LivingSimulation | /src/project/thread/world/Territory.java | UTF-8 | 3,069 | 3.0625 | 3 | [] | no_license | package project.thread.world;
import java.util.ArrayList;
import project.thread.animals.Animal;
import project.thread.animals.AnimalsController;
import project.utils.AllObjects;
import project.utils.Colors;
public class Territory {
int species;
int maxResident;
ArrayList<Animal> animals;
int x;
int y;
AnimalsC... | true |
8d8ea72145782bf3ad92ef9c9e3171f2ebd9ec3c | Java | Yjq14114/thinkingJava | /src/com/designmodel/Main.java | UTF-8 | 742 | 3.234375 | 3 | [] | no_license | package com.designmodel;
/**
* Created by 佳琦 on 2016/5/20.
*/
class Singleton{
private static Singleton instance;
public static Singleton getInstance(){
//synchronized加锁同步会降低效率,这里先判断是否为空
//不为空则需要加锁,提高程序效率
if(instance!=null){
synchronized (Singleton.class){
... | true |
d52c34795ccf45c12d242fb3f3569b7038121145 | Java | pabplanalp/pvmail | /java/source/com/jwApps/servlet/field/ScListField.java | UTF-8 | 3,682 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2011 JwApps.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 or agreed to in writing, software
d... | true |
336e6dd9f074d054cc49dd53d8d91315c207a0dd | Java | yjdwbj/BleReadTool | /app/src/main/java/lcy/gles3d/util/TextureUtils.java | UTF-8 | 3,927 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package lcy.gles3d.util;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.drawable.Drawable;
import android.opengl.GLES20;
import android.opengl.GLUtils;
import android.util.Dis... | true |
beeae6ffcb789c2c0746633f88d33f64bf0f2232 | Java | serkushner/backend-team1 | /src/main/java/com/exadel/project/configurations/emailConfig/EmailConfigLogger.java | UTF-8 | 792 | 1.984375 | 2 | [] | no_license | package com.exadel.project.configurations.emailConfig;
import com.exadel.project.common.mailSender.EmailService;
import com.exadel.project.common.mailSender.EmailServiceLoggingMockImpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
im... | true |
ba0958fca123cc8c91030a48d54cc89dcb55c1dd | Java | PatriciaOrriens/onzeMoestuin | /src/test/java/groentjes/onzeMoestuin/repository/UserRepositoryTest.java | UTF-8 | 1,964 | 2.34375 | 2 | [] | no_license | package groentjes.onzeMoestuin.repository;
import groentjes.onzeMoestuin.model.User;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.Dat... | true |
62121347eb57e98d9f09d078f02161ed08690b00 | Java | alarangeiras/iot-kafka-poc | /src/main/java/dev/allanlarangeiras/kafkapoc/mappers/PresenceMapper.java | UTF-8 | 1,055 | 2.109375 | 2 | [] | no_license | package dev.allanlarangeiras.kafkapoc.mappers;
import dev.allanlarangeiras.kafkapoc.dto.PresenceDTO;
import dev.allanlarangeiras.kafkapoc.proto.Presence;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.stream.Collectors;
@Component
public class PresenceMapper {
public Li... | true |
dd6b9190c6616550e2729ab6b75ae647eb3458b8 | Java | ahkm6/oldProgram | /MakeObject.java | UTF-8 | 8,494 | 2.875 | 3 | [] | no_license | package h280314;
import java.util.ArrayList;
import java.util.Random;
public class MakeObject {
final public static int RANDOM = 0;
final public static int GOODBAD = 1;
final public static int VIASGOOD = 2;
final public static int NORMAL = 3;
public int deadlineBorder = 15;
public int deadlineRange = 10;
pu... | true |
af9d5f92b9062db2045225c46e2729016cacd506 | Java | igomez10/springTutorial | /src/main/java/com/company/SpringTutorial/dao/FakePersonDataAccessService.java | UTF-8 | 1,071 | 2.8125 | 3 | [] | no_license | package com.company.SpringTutorial.dao;
import com.company.SpringTutorial.model.Person;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.UUID;
@Repository("fakeDao")
public class FakePersonDataAccessService implements Pers... | true |
c5f175453df8a29b2be2a144f536b7b29a29d93d | Java | rnapoles/trunk-qooxdoo-contrib-code | /qooxdoo-contrib/QWT/tags/sushi-1.3.11/core/src/test/java/org/qooxdoo/sushi/metadata/reflect/ReflectSchemaTest.java | UTF-8 | 1,194 | 2.0625 | 2 | [] | no_license | /* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2006-2008 1&1 Internet AG, Germany, http://www.1and1.org
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.ecli... | true |
881a25df3fc74b4966c373bc94cd77277b315f29 | Java | mdh-git/learn | /src/main/java/com/mdh/algorithm/GreedyTest.java | UTF-8 | 2,257 | 3.84375 | 4 | [] | no_license | package com.mdh.algorithm;
import static java.lang.Math.min;
/**
* 贪心算法
*
* https://www.cxyxiaowu.com/852.html
*
* 从问题的某一初始解出发
* while (能朝给定总目标前进一步)
* do
* 选择当前最优解作为可行解的一个解元素;
* 由所有解元素组合成问题的一个可行解。
*
*
*
* 小明手中有 1,5,10,50,100 五种面额的纸币,每种纸币对应张数分别为 5,2,2,3,5 张。若小明需要支付 456 元,则需要多少张... | true |
ec64f7e8287a20dfdb03f2ccbe3a721bdbab0814 | Java | pulumi/pulumi-gcp | /sdk/java/src/main/java/com/pulumi/gcp/workstations/inputs/WorkstationConfigHostGceInstanceShieldedInstanceConfigArgs.java | UTF-8 | 4,946 | 1.820313 | 2 | [
"BSD-3-Clause",
"MPL-2.0",
"Apache-2.0"
] | permissive | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.gcp.workstations.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
im... | true |
aa6b59e130746e5c5ad372b5280538184708975a | Java | fortestaa/leetcode | /easy/BalancedBinaryTree.java | UTF-8 | 883 | 3.859375 | 4 | [] | no_license | package easy;
/**
* 110 Balanced Binary Tree
* https://leetcode.com/problems/balanced-binary-tree/
*
* Given a binary tree, determine if it is height-balanced.
* For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more t... | true |
33d6094d27ca0d4ba17af66e6f90e83441ea3570 | Java | UchihaSean/Web_Similar_To_Zhihu | /IdeaProjects/PJ2/src/RegisterServlet.java | UTF-8 | 1,691 | 2.546875 | 3 | [] | no_license | import net.sf.json.JSONObject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class RegisterServlet extends HttpSer... | true |
980405dc4f1b4e2d3812e1431372e38782b7213c | Java | big-long/virus | /src/main/java/com/kemyond/virus/service/impl/VirusServiceImpl.java | UTF-8 | 2,747 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.kemyond.virus.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.kemyond.virus.common.CodeMessage;
import com.kemyond.virus.common.Record;
import com.kemyond.virus.dao.HisVirusMapper;
import com.kemyond.virus.domain.HisVirus;
import com.kemyond.virus.do... | true |
db2625123ef14cd4b223d59b0b5b3925e7a7a7ea | Java | jalpan-randeri/map-reduce | /flight_delay_v2/src/mapper/FlightMapper.java | UTF-8 | 1,785 | 2.796875 | 3 | [] | no_license | package mapper;
import com.opencsv.CSVParser;
import conts.FlightConst;
import model.Key;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
/**
* Created by jalpanranderi on 3/13/15.
*/
public class FlightMapper exte... | true |
0d5e0045a924f94dc08dea51fa908c06942a9380 | Java | jiangyukun/ttsales-web | /src/main/java/cn/ttsales/work/persistence/sys/impl/SysRoleDaoImpl.java | UTF-8 | 1,621 | 2.1875 | 2 | [] | no_license | /**
* Copyright (c) 2013 RATANSOFT.All rights reserved.
* @filename SysRoleDaoImpl.java
* @package cn.ttsales.work.persistence.sys.impl
* @author dandyzheng
* @date 2012-7-27
*/
package cn.ttsales.work.persistence.sys.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.... | true |
9e7ba7365d7557933f096cd70a21f14bdea2e0c7 | Java | tjudoubi/vben-admin-java | /api-server/src/main/java/com/xm/api/authorization/constant/TokenConstant.java | UTF-8 | 1,389 | 2.21875 | 2 | [] | no_license | package com.xm.api.authorization.constant;
/**
* Token相关常量
*
* @author xiaomalover <xiaomalover@gmail.com>
*/
public class TokenConstant {
/**
* 控制端TOKEN
*/
public final static int TOKEN_TYPE_CONTROL = 1;
/**
* 设备端TOKEN
*/
public final static int TOKEN_TYPE_TERMINAL = 2;
... | true |
006327064b3d56931289253a05a230e48829c91f | Java | hegdevishwa/packer | /src/test/java/com/mobiquityinc/packer/PackerTest.java | UTF-8 | 1,309 | 2.875 | 3 | [] | no_license | package com.mobiquityinc.packer;
import static org.junit.Assert.*;
import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Paths;
import org.junit.Test;
import com.mobiquityinc.exception.APIException;
public class PackerTest {
private static String validInputFile = "res... | true |
30faf0fc78e9b0448f29fa3ba983aea402ba3c8c | Java | jackyoh/superagent-example-practice | /webproject/src/main/java/idv/jack/webserver/HelloWroldResource.java | UTF-8 | 1,014 | 2.421875 | 2 | [] | no_license | package idv.jack.webserver;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.google.gson.Gson;
@Path("hello")
public class HelloWroldResource {
@GET
@Pa... | true |
778fc1cc7b01f19f4171597a642a653901d29f62 | Java | yataoXu/janusgraph-example | /src/main/java/com/example/janusgraph/DTO/EdgeDTO.java | UTF-8 | 266 | 1.59375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.janusgraph.DTO;
import lombok.Data;
/**
* @Classname EdgeDto
* @Description
* @Date 2019/12/17 10:26
* @Created by Evan
*/
@Data
public class EdgeDTO {
private long LVRecord;
private long RVRecord;
private String Content;
}
| true |
2f7d7318864429eeb99c4e19356b0c6eacff8e95 | Java | david-shao/codepath-app1 | /app/src/main/java/com/david/flickster/models/Movie.java | UTF-8 | 5,359 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.david.flickster.models;
import com.david.flickster.activities.MovieActivity;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import o... | true |
14b1d627b2073909532bf9ddfa0f66e520c0e55c | Java | SkyJourney/vermilion | /src/main/java/top/icdat/vermilion/exception/NotOperatorClassException.java | UTF-8 | 351 | 2.28125 | 2 | [] | no_license | package top.icdat.vermilion.exception;
public class NotOperatorClassException extends RuntimeException {
public NotOperatorClassException() {
}
public NotOperatorClassException(String message) {
super(message);
}
public NotOperatorClassException(String message, Throwable cause) {
... | true |
1c4e82046bcdad041bfbcf19e729f7d5571b40f8 | Java | Programito/Proyecto2 | /app-collection/src/main/java/entities/User.java | UTF-8 | 1,305 | 2.3125 | 2 | [] | no_license | package entities;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persist... | true |
175085af39523e0328a9262ab90393e78d2ea9e3 | Java | jgbcientista/desafio-01 | /src/test/java/br/com/bluesoft/desafio/api/PedidoControllerTest.java | UTF-8 | 4,386 | 2.140625 | 2 | [] | no_license | package br.com.bluesoft.desafio.api;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
impor... | true |
9ca08874cce02b8364bd99cf8c726a9e2eb89874 | Java | josemarsp/GitHubAPI | /app/src/main/java/br/com/josef/desafioconcretegit/view/adapter/GitAdapter.java | UTF-8 | 3,119 | 2.28125 | 2 | [] | no_license | package br.com.josef.desafioconcretegit.view.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.squareup.picasso.Picasso;
import java.ut... | true |
4f349864ef43560e6617f76ba6ce404f981fa980 | Java | peanutes/firstrepository | /repository/ht1/src/main/java/cn/tarena/ht/mapper/RoleMapper.java | UTF-8 | 192 | 1.710938 | 2 | [] | no_license | package cn.tarena.ht.mapper;
import java.util.List;
import cn.tarena.ht.pojo.Role;
public interface RoleMapper {
public List<Role> findAll();
public void delete(String[] roleIds);
}
| true |
df3869c4c5f5acc0ddb3b774f81b04d66b1175e1 | Java | maurocabor521/FitnessGoal2 | /app/src/main/java/com/example/andrescabal/navdrawer/presentation/contract/CategoriaAlimentosContract.java | UTF-8 | 728 | 2.21875 | 2 | [] | no_license | package com.example.andrescabal.navdrawer.presentation.contract;
import android.content.Context;
import com.example.andrescabal.navdrawer.domain.model.Alimento;
import java.util.List;
/**
* Created by Andrés Cabal on 7/05/2018.
*/
public interface CategoriaAlimentosContract {
interface Presenter{
Lis... | true |
bc1ad86c7cc29f231a73d210ad00b9234afa7e3f | Java | shaunmahony/multigps-archive | /src/edu/psu/compbio/seqcode/gse/deepseq/utilities/BowtieFileReader.java | UTF-8 | 4,677 | 2.5 | 2 | [
"MIT"
] | permissive | package edu.psu.compbio.seqcode.gse.deepseq.utilities;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import edu.psu.compbio.seqcode.gse.datasets.species.Genome;
import edu.psu.compbio... | true |
aa4c80bc8469ed31febcab0604c2f6c0cff3fa88 | Java | Volcannozzz/FirstDemo_struts | /src/com/hb/services/UserService.java | UTF-8 | 1,697 | 2.515625 | 3 | [] | no_license | package com.hb.services;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Map;
import com.hb.domain.User;
import com.hb.util.SqlHelper;
public class UserService {
public User getUser(String username){
String sqlString = "select * from users where name=?";
... | true |
1183cef5857634f0fedd186e912bc549c492eae4 | Java | jferna57/sceain2 | /demo-webapp/src/test/java/es/in2/framework/demo/persistence/hibernate/AlunoPK.java | UTF-8 | 1,695 | 1.882813 | 2 | [] | no_license | /*
* Demoiselle Framework
* Copyright (c) 2009 Serpro and other contributors as indicated
* by the @author tag. See the copyright.txt in the distribution for a
* full listing of contributors.
*
* Demoiselle Framework is an open source Java EE library designed to accelerate
* the development of transactional data... | true |
b65dd9714d0fa206f16b7f3be6815f7c8e7d0b4a | Java | NickJosephson/Myme | /app/src/test/java/com/nitrogen/myme/tests/Business/AccessMemeTemplatesIT.java | UTF-8 | 2,568 | 2.71875 | 3 | [] | no_license | package com.nitrogen.myme.tests.Business;
import com.nitrogen.myme.application.Services;
import com.nitrogen.myme.business.AccessMemeTemplates;
import com.nitrogen.myme.business.Exceptions.TemplateNotFoundException;
import com.nitrogen.myme.tests.utils.TestUtils;
import org.junit.Test;
import org.junit.After;
import... | true |
72ed305a494d972bbc4488ae1c9e272d6e3ca66b | Java | sola97/VRChatNotificationBot | /src/main/java/cn/sola97/vrchat/utils/ProxyUtil.java | UTF-8 | 2,303 | 2.640625 | 3 | [] | no_license | package cn.sola97.vrchat.utils;
import org.eclipse.jetty.client.HttpProxy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ProxyUtil {
private static String proxyPattern... | true |
6030aac55e2c3b10b16192e2dd726a7a15f03c21 | Java | Shapherds/Collect_elements | /app/src/main/java/com/fall/crazyfall/web/WebCommunication.java | UTF-8 | 10,711 | 1.726563 | 2 | [] | no_license | package com.fall.crazyfall.web;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.toolbox.JsonObjectRequest;
import com.appsflyer.AFInAppEventType;
imp... | true |
2d50369b30f22983aa596179dc606572adb9e573 | Java | maccornik/ComputerRemote | /src/pl/edu/uj/computerremote/BluetoothHidAppConfiguration.java | UTF-8 | 362 | 1.59375 | 2 | [] | no_license | package pl.edu.uj.computerremote;
import android.os.Parcel;
import android.os.Parcelable;
public class BluetoothHidAppConfiguration implements Parcelable {
public int describeContents() {
// TODO Auto-generated method stub
return 0;
}
public void writeToParcel(Parcel dest, int flags) {
// TODO... | true |
c7a685a6caa31f15e3f11ea0819be9f79627dbf8 | Java | tycrelic/classy | /src/classfile/constant/Numeric4Info.java | UTF-8 | 1,960 | 3.25 | 3 | [] | no_license | package classfile.constant;
import classfile.CpInfo;
/**
4.5.4 The CONSTANT_Integer_info and CONSTANT_Float_info Structures
The CONSTANT_Integer_info and CONSTANT_Float_info structures represent
4-byte numeric (int and float) constants:
CONSTANT_Integer_info {
u1 tag;
u4 bytes;
}
CONSTANT_Float_info {
u1 tag;
u4 byte... | true |
0d57fce222fe0db7f1521cfa998162629edb5f68 | Java | thePLoyBr/locadora-carros | /src/java/br/com/theploy/loccarros/bean/CarroBean.java | UTF-8 | 1,422 | 2.25 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.theploy.loccarros.bean;
import br.com.theploy.loccarros.DAO.CarroDAO;
import br.com.theploy.loccarros.entidade.Carro;
i... | true |