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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6c9b693d3f4db2ea8757f56521b1abe06b622b60 | Java | GhostCN/Caserne | /src/java/service/PassageFacadeLocal.java | UTF-8 | 707 | 2.03125 | 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 service;
import entities.Passage;
import entities.Soldat;
import java.util.List;
import javax.ejb.Local;
/**
*
* @author gh... | true |
0155cf592827ca21948c6cd8b5ce0d1ef4212384 | Java | Juan-Andres-Castano/ptolemy | /ptolemy/actor/lib/jjs/RestrictedJavaScriptInterface.java | UTF-8 | 14,414 | 2.265625 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | /* Restricted interface to the JavaScript actor.
Copyright (c) 2014-2018 The Regents of the University of California.
All rights reserved.
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation... | true |
a4be22f9a9837b3a873fe916c2808b7dcaccb5b3 | Java | SonyaMoisset/Cake_ADVANCED_ANDROID_NANODEGREE | /app/src/main/java/com/sonyamoisset/android/cake/ui/detail/fragment/RecipeDetailFragment.java | UTF-8 | 5,323 | 1.820313 | 2 | [] | no_license | package com.sonyamoisset.android.cake.ui.detail.fragment;
import android.appwidget.AppWidgetManager;
import android.arch.lifecycle.ViewModelProvider;
import android.arch.lifecycle.ViewModelProviders;
import android.content.ComponentName;
import android.content.Context;
import android.databinding.DataBindingUtil;
impor... | true |
8f20545c67bfedb877c5f703f04ebd45cdded737 | Java | ulangch/gemini | /src/main/java/com/xyzc/gemini/wechat/mapper/WechatUserMapper.java | UTF-8 | 274 | 1.6875 | 2 | [
"MIT"
] | permissive | package com.xyzc.gemini.wechat.mapper;
import com.xyzc.gemini.wechat.model.local.WechatUser;
import org.springframework.stereotype.Component;
/**
* Created by xyzc on 2016/9/28.
*/
@Component
public interface WechatUserMapper {
void insert(WechatUser wechatUser);
}
| true |
e166f9dff3ef82d2b27bf9e0c34f9108c576b568 | Java | kits-3/personal | /Project/19.NguyenDoanNam/BookS/src/adminDao/BillDao.java | UTF-8 | 139 | 1.789063 | 2 | [] | no_license | package adminDao;
import java.util.List;
import entity.Account;
import entity.Bill;
public interface BillDao {
List<Bill> findAll();
}
| true |
da14a2d6fadff3136450ee767cd9067cb16b2567 | Java | nishiyamayo/atcoder-practice | /src/main/scala/agc034/A.java | UTF-8 | 2,198 | 3.125 | 3 | [] | no_license | package agc034;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
public class A {
void run() {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(), a = sc.nextInt() - 1, b = sc.nextInt() - 1, c = sc.nextInt() - 1, d = sc.nextInt() - 1;
String s = sc.next... | true |
e91c02531e7194346a7ba5726b02d8733527b974 | Java | tonyliu830204/UESoft | /src/main/java/com/syuesoft/base/vo/ToolsManagerVo.java | UTF-8 | 4,617 | 1.890625 | 2 | [] | no_license | package com.syuesoft.base.vo;
import java.util.Date;
public class ToolsManagerVo
{
private Short toolsId;
private Date recordDate;
private String toolsName;
private String toolsType;
private Short toolsUnit;
private Short toolsState;
private Double procurementPric... | true |
26c6694f4a92f90ce5c106481c2d576fd4c228c6 | Java | cxl98/rpc | /rpc-core/src/main/java/com/cxl/rpc/proxy/net/impl/netty_http/client/NettyHttpConnectClient.java | UTF-8 | 3,830 | 2.171875 | 2 | [] | no_license | package com.cxl.rpc.proxy.net.impl.netty_http.client;
import com.cxl.rpc.proxy.consumer.RpcInvokerFactory;
import com.cxl.rpc.proxy.net.ConnectClient;
import com.cxl.rpc.proxy.net.params.Beat;
import com.cxl.rpc.proxy.net.params.RpcRequest;
import com.cxl.rpc.serialize.Serializer;
import io.netty.bootstrap.Bootstrap;
... | true |
a87616b7fd14393cc14688c4ffd58c61e6daecd1 | Java | Luis0195/GUI | /GUI/src/Ejercicio3.java | UTF-8 | 963 | 3.484375 | 3 | [] | no_license |
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Pulsas un botos y te dice cual se ha pulsado por ultima vez
*
* @author luis0
*
*/
public class Ejercicio3 {
public static void m... | true |
9cd8620c02ec75fe3667ed3c756668d92e9758a6 | Java | safziy/DataStructure | /sort/com/safziy/sort/InsertSort.java | UTF-8 | 763 | 4 | 4 | [] | no_license | package com.safziy.sort;
/**
* 插入排序
*
* 每次从无序表中取出第一个元素,把它插入到有序表的合适位置,使有序表仍然有序。
*
* 直接插入排序是稳定的。算法时间复杂度是O(n ^2)
*
* @author safziy
*
*/
public class InsertSort {
public static void sort(int[] array, boolean isASC) {
for (int i = 1; i < array.length; i++) {
int temp = array[i];
int j ... | true |
ffdf7b794cd4b11d6e0ad7154178334ed2dff369 | Java | ldimi/pad.webapp | /src/main/java/be/ovam/art46/util/menu/Menu.java | UTF-8 | 4,957 | 2.765625 | 3 | [] | no_license | package be.ovam.art46.util.menu;
import be.ovam.art46.util.Application;
import java.util.ArrayList;
import java.util.List;
public class Menu {
private List<MenuItem> menuList = new ArrayList<MenuItem>();
public Menu add(MenuItem menuitem) {
menuList.add(menuitem);
return this;
}
... | true |
a5f86e857353d4d843846eca2a8d84101006ccaf | Java | PatilShreyas/EasyDatabase | /src/com/easydatabase/Constants/DatabaseDriver.java | UTF-8 | 540 | 1.882813 | 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.easydatabase.Constants;
/**
*
* @author Shreyas Patil
*/
public interface DatabaseDriver {
//For Database Server Dr... | true |
62759fb816152cc9eefa7a92181bef0d95fda8b8 | Java | suminme1/cailaimai | /src/main/java/ec/core/order/model/CoreOrder.java | UTF-8 | 5,451 | 2 | 2 | [] | no_license | package ec.core.order.model;
import java.io.Serializable;
import java.util.List;
import ec.core.mall.model.CoreMall;
import ec.core.user.model.CoreUser;
import ec.core.user.model.CoreUserAddress;
import ec.core.user.model.CoreUserInvoice;
import ec.core.user.model.CoreUserMaterial;
import framework.service.rds.annota... | true |
56be40aa8f182372b658567dfce07b573b1880f8 | Java | CheatBoss/InnerCore-horizon-sources | /com/google/android/gms/internal/measurement/zzr.java | UTF-8 | 977 | 1.898438 | 2 | [] | no_license | package com.google.android.gms.internal.measurement;
import android.os.*;
public class zzr extends Binder implements IInterface
{
private static zzt zzqv;
protected zzr(final String s) {
this.attachInterface((IInterface)this, s);
}
public IBinder asBinder() {
return (IBinder)... | true |
d11165e2fa0087cebde345d6ca6d20b179defe8d | Java | zhaochengbei/dema | /dema-http/src/main/java/io/dema/http/HttpClientHandler.java | UTF-8 | 290 | 1.875 | 2 | [] | no_license | package io.dema.http;
/**
* author:zhaochengbei
* date:2017年6月26日
*/
public interface HttpClientHandler extends HttpHandler {
/**
*
* @param httpResponse
* @param context
*/
public void onHttpResponse(HttpResponse httpResponse,HttpContext context);
}
| true |
ecba2bb99b791c600f7953af9b93080f893bc976 | Java | PonyCrossingTheRiver/mybatis-learn | /mybatis_multitable/src/main/java/com/wpp/mapper/UserMapper.java | UTF-8 | 399 | 1.898438 | 2 | [] | no_license | package com.wpp.mapper;
import com.wpp.pojo.IUser;
import com.wpp.pojo.IUserRole;
import java.util.List;
/**
* @author by wpp25
* @Classname UserMapper
* @Description
* @Date 2020/9/28 23:29
*/
public interface UserMapper {
/**
* 1对多
* @return
*/
List<IUser> findAll();
/**
* 多对多... | true |
5ddbce5cc9a47461b7cb9734eaffe5b42ab434ef | Java | jackyzhang1989/design_patterns | /flyweight_pattern_lab10_2/CustomerFlyweightFactory.java | UTF-8 | 1,000 | 3.109375 | 3 | [] | no_license | package flyweight_pattern_lab10_2;
import flyweight_pattern_lab10_2.entity.Image;
public class CustomerFlyweightFactory {
static CustomerFlyWeight byImg[] = new CustomerFlyWeight[4];
static {
byImg[0] = new CustomerFlyWeight(Image.DESMONIS);
byImg[1] = new CustomerFlyWeight(Image.FIARFIELD);
byImg[2] = new C... | true |
5d32439ef05d2887ed5ae3facb666e72a7785295 | Java | apratapani/advanced-java-spring | /src/main/java/platform/codingnomads/co/corespring/examples/springbeanlifecycle/BeanLifeCycleConfig.java | UTF-8 | 266 | 1.53125 | 2 | [] | no_license | package platform.codingnomads.co.corespring.examples.springbeanlifecycle;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan
public class BeanLifeCycleConfig {
}
| true |
47fb3be069c5233a4a42d744fea7716fae946856 | Java | Muratthekus/todo_list_app | /app/src/main/java/com/malikane/todoapp/ViewModel/ViewModel.java | UTF-8 | 1,021 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.malikane.todoapp.ViewModel;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import android.support.annotation.NonNull;
import com.malikane.todoapp.DataBase.NoteEntity;
import java.util.List;
public class ViewModel extends AndroidVie... | true |
bad41e570f56b954541a3004a716b3f5685e7232 | Java | holograph/examples | /event-sourcing/lean-and-mean/src/test/java/com/tomergabel/examples/eventsourcing/resources/SiteResourceTest.java | UTF-8 | 959 | 1.960938 | 2 | [] | no_license | package com.tomergabel.examples.eventsourcing.resources;
import com.tomergabel.examples.eventsourcing.service.SiteService;
import com.tomergabel.examples.eventsourcing.testkit.TestableSiteService;
import io.dropwizard.testing.junit5.DropwizardExtensionsSupport;
import io.dropwizard.testing.junit5.ResourceExtension;
im... | true |
a22a0f1bc80d206ce057bb735412581384a6e6ef | Java | idriss21/PFE_EMSI_SD | /src/main/java/org/sid/entities/Ordre.java | UTF-8 | 2,060 | 2.3125 | 2 | [] | no_license | package org.sid.entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import ja... | true |
b1ec6202d7f129f5fb99b694a8520a975e340d66 | Java | kasun-dasanayake/Easy-Ordering-System | /src/gui/OrderTableListener.java | UTF-8 | 88 | 1.820313 | 2 | [] | no_license | package gui;
public interface OrderTableListener{
public void rowDeleted(int row);
}
| true |
bdead705d380144e5222b7e845c3e41b6e8e0381 | Java | Addicticks/ElektronSDK-Mavenized | /ETA/Core/src/main/java/com/thomsonreuters/proxy/authentication/ProxyAuthenticatorImpl.java | UTF-8 | 7,775 | 2.5 | 2 | [] | no_license | package com.thomsonreuters.proxy.authentication;
import java.util.LinkedList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class ProxyAuthenticatorImpl implements IProxyAuthenticator
{
protected ICredentials _credentials;
protected String _proxyHost;
private bool... | true |
ce8d9183f6d262a38c59022006348eb045d8071f | Java | ipp203/nursing-home | /src/main/java/nursinghome/medicine/model/Type.java | UTF-8 | 94 | 1.640625 | 2 | [] | no_license | package nursinghome.medicine.model;
public enum Type {
TABLET, INJECTION, DROPS, CREAM
}
| true |
95b1f4f824894f5268cdc8a98d4298d21c588e5f | Java | ByeongGi/Koata_Java | /Java0902/src/ex1/Ex2_Thread.java | UTF-8 | 779 | 3.59375 | 4 | [
"MIT"
] | permissive | package ex1;
// @author kosta, 2015. 9. 2 , 오전 10:23:04 , Ex2
public class Ex2_Thread extends Thread{
@Override
public void run() {
for (int i = 0; i < 5; i++) {
try {
Thread.sleep(1000);
System.out.println(i);
} catch (InterruptedException e) {
... | true |
45cd7c04e95671634e692f6c62c6d4057ac838ef | Java | CampagneLaboratory/NYoSh-runtime-support | /src/main/java/org/campagnelab/nyosh/exec/OutputConsumer.java | UTF-8 | 906 | 2.78125 | 3 | [] | no_license | package org.campagnelab.nyosh.exec;
import java.io.FileNotFoundException;
import java.io.InputStream;
/**
* An interface for callbacks that consume input streams.
*
* @author Fabien Campagne
* Date: 6/16/13
* Time: 11:51 AM
*/
public abstract class OutputConsumer {
/**
* Consume is call... | true |
55920af78479f12a4f5450119e0bcae46718492e | Java | LJLintermittent/JDBCTemplate | /src/com/learn/dao/UserDao.java | UTF-8 | 243 | 1.65625 | 2 | [] | no_license | package com.learn.dao;
/**
* 一些声明信息
* Description: <br/>
* date: 2020/7/9 9:11<br/>
*
* @author ${李佳乐}<br/>
* @since JDK 1.8
*/
public interface UserDao {
public void reduceMoney();
public void addMoney();
}
| true |
96b298468e2755a31837e46a7ded86d69bdeafe3 | Java | ismailartun00/Tutorials | /Spring-Framework/issue-management/src/main/java/com/ismailartun00/issuemanagement/business/abstracts/IssueService.java | UTF-8 | 467 | 2.03125 | 2 | [] | no_license | package com.ismailartun00.issuemanagement.business.abstracts;
import org.springframework.data.domain.Pageable;
import com.ismailartun00.issuemanagement.dto.concretes.IssueDto;
import com.ismailartun00.issuemanagement.util.TPage;
public interface IssueService {
IssueDto save(IssueDto issueDto);
IssueDto getById(... | true |
a2d12fa60b9e63857e648b9dad39c540e32ad82d | Java | ArmandMaree/DifferentialAndCooperativeEvolution | /submission/12017800/code/09_merge_random_coop/Cell.java | UTF-8 | 969 | 3.46875 | 3 | [] | no_license | import java.util.Random;
public class Cell {
private double value;
private final double min;
private final double max;
private Random randomGenerator = new Random();
public Cell(double min, double max) {
this.min = min;
this.max = max;
this.value = randomGenerator.nextDouble() * (max - min) + min;
}
pub... | true |
b09aaa5feb4f86f53bd9ec9af138ddd18da6e6c2 | Java | gumiranda/GestaoEscolar | /Amigos na Escola/lista3/exercicio03/Exercicio01.java | UTF-8 | 759 | 3.828125 | 4 | [] | no_license | package br.ufes.inf.prog3.lista3.exercicio03;
/**
* Classe principal do exercício 1, da lista 2.
*
* @author Vitor E. Silva Souza (vitorsouza@gmail.com)
* @version 1.0
*/
public class Exercicio01 {
public static void main(String[] args) {
ContaCorrente conta = new ContaCorrente();
// Testa a exceção de va... | true |
8ef69880a0137e9055eecf34edfb7f9d42e3ed67 | Java | Ryogooo/mail | /app/src/main/java/sample/android/example/mail/MainActivity.java | UTF-8 | 1,861 | 2.171875 | 2 | [] | no_license | package sample.android.example.mail;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URLEncoder;
... | true |
b76aa257bc963f60b5912287c43d596f2d7fdd05 | Java | BackupTheBerlios/amoda | /src/de/gulden/framework/amoda/generic/metadata/GenericMetadataEntry.java | UTF-8 | 3,465 | 2.4375 | 2 | [] | no_license | /*
* Project: AMODA - Abstract Modeled Application
* Class: de.gulden.framework.amoda.generic.metadata.GenericMetadataEntry
* Version: 0.1
*
* Date: 2002-10-24
*
* Note: Contains auto-generated Javadoc comments
* created by BeautyJ (http://beautyj.berlios.de).
*
* This is licensed under the... | true |
7b2c6f74a226529ca0b96b4f9eab346028c24a6e | Java | abdoHawas/Company-5_Quiz-Component | /Quiz_Component/src/main/java/com/example/Quiz_Component/Repos/QuizReposatory.java | UTF-8 | 325 | 1.65625 | 2 | [] | no_license | package com.example.Quiz_Component.Repos;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import com.example.Quiz_Component.Entities.Quiz;
@RepositoryRestResource
public interface QuizReposatory extends CrudRepository<Quiz, Long>... | true |
3743ebfe9b41b1d67f87570ad8c5d1acf995e0e2 | Java | truongpro0973/TestJenkinsAntNetbean | /TestJenkinAntGit/src/testjenkinantgit/TestAssertions.java | UTF-8 | 441 | 1.960938 | 2 | [] | no_license | /*
* By TruongNguyenAx
*/
package testjenkinantgit;
import org.junit.Test;
import static org.junit.Assert.*;
public class TestAssertions {
@Test
public void TestAdd() {
int expected = 11;
int ac = Util.Add(5, 6);
assertEquals(expected, ac);
}
@Test
public void TestAdd... | true |
e70b76a94afd602cf31f22c89526ea7f41666c12 | Java | liaoshanggang/MyGitHub | /wseweb/atm/src/com/forward/dao/BankCardDao.java | UTF-8 | 890 | 2.09375 | 2 | [] | no_license | package com.forward.dao;
import java.util.List;
import com.forward.po.trade.BankCard;
public interface BankCardDao {
/**
* @Description:添加卡号信息
* @param tags
* @return return_type
*/
public int addCardInfo(BankCard bankCard);
/**
* @Description: 根据账户查询卡信息
* @param tags
* @return return_type
*/
p... | true |
0dfccb4dcdc99b467e1b6402941ea786c5cf6ee0 | Java | batfish/batfish | /projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/visitors/IpSpaceRepresentative.java | UTF-8 | 833 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package org.batfish.datamodel.visitors;
import java.util.Optional;
import org.batfish.common.bdd.BDDPacket;
import org.batfish.common.bdd.IpSpaceToBDD;
import org.batfish.datamodel.Ip;
import org.batfish.datamodel.IpSpace;
/** Simple class for finding representative {@link Ip IP Addresses} in an {@link IpSpace}. */
p... | true |
d5f2a012b13b41611741c24146342ed54cb9186b | Java | CarlosMarrero/Interactive-mini-java-programs | /Problem Set 2/src/CoinTosses/CoinTosses.java | UTF-8 | 1,062 | 4.03125 | 4 | [] | no_license | package CoinTosses;
import java.util.Scanner;
public class CoinTosses {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("For each coin toss enter either h for heads or t for tails.\n");
int heads = 0, tails = 0, num = 1, toss =... | true |
eaa473672ce844631e6f958b8c625cd1cfca90bc | Java | alinarlioglu/PongClassic | /src/pong/KeyControllerSingle.java | UTF-8 | 1,481 | 3.15625 | 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 pong;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
/**
*
* @author Ali
*/
public class KeyControllerS... | true |
d0add2bd0a6358321c6b9f2024377b38d2b88ad2 | Java | guotong1001/health | /src/main/java/com/tech/health/interceptor/LoginInterceptor.java | UTF-8 | 888 | 2.1875 | 2 | [] | no_license | package com.tech.health.interceptor;
import com.tech.health.util.Const;
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.HandlerInterceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @Classname LoginInterceptor
*... | true |
f690ccba279c890e657abea28d01600ff5a8a953 | Java | eundoo/studying-spring | /spring-di/src/main/java/com/sample/di/demo1/CustomerDao.java | UTF-8 | 249 | 2.078125 | 2 | [] | no_license | package com.sample.di.demo1;
public class CustomerDao {
public void getCustomerById() {
System.out.println("고객정보를 조회합니다.");
}
public void updateCustomer() {
System.out.println("고객정보를 반환합니다.");
}
}
| true |
e6ae95db13dcb138941a3f6393bfceb631314801 | Java | championoverthinker/estatio | /estatioapp/fixture/src/main/java/org/estatio/fixturescripts/CreateBreakOptions.java | UTF-8 | 2,496 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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 req... | true |
673ed128c33ce958ec2d98ab10528469d6c11096 | Java | luisfelipe3d/base-cod-java | /c3.unicap.br.almir.ip1/src/lista7/Exercicio9_lista7.java | UTF-8 | 1,676 | 3.9375 | 4 | [
"MIT"
] | permissive | /*
Exercicio :
A nota de um aluno em uma disciplina é a média aritmética das notas de suas
avaliações parciais. Se a média do aluno for maior ou igual a sete, o aluno
será aprovado. Se a média do aluno for menor que três, o aluno está reprovado.
Se a média do aluno for menor que sete e maior ou igual a três, o aluno
i... | true |
271186fd80fcb472b9b208f7fdcbb09dce8c74dc | Java | johnvp75/alexcompanysklad | / alexcompanysklad/sklad/src/NewBarCode.java | WINDOWS-1251 | 7,211 | 2.125 | 2 | [] | no_license | import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import java.awt.Window;
import javax.swing.JDialog;
import java.awt.Dimension;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
import java.awt.GridBag... | true |
f894c0fce27c782d6a20551015e2ad911ce14bfc | Java | tokiw/java8 | /ch01/ex01_09/Main.java | UTF-8 | 526 | 3.0625 | 3 | [] | no_license | package ex01_09;
import java.io.File;
public class Main {
public static void main(String[] args) {
Collection2<File> collection = new ArrayList2<File>();
collection.add(new File("/Users/masafumi/Documents/workspace/java8"));
collection.add(new File("/Users/masafumi/Documents/workspace/java8/ch01/ex01_03/Main.j... | true |
9bac132181b2974a42be1e90240854b69834f3a5 | Java | Onurrr/377_Remake | /src/com/rs2/model/content/skills/farming/WoodTrees.java | UTF-8 | 32,487 | 2.125 | 2 | [] | no_license | package com.rs2.model.content.skills.farming;
import java.util.HashMap;
import java.util.Map;
import com.rs2.Constants;
import com.rs2.Server;
import com.rs2.model.Position;
import com.rs2.model.content.skills.Skill;
import com.rs2.model.content.skills.SkillHandler;
import com.rs2.model.content.skills.Tools... | true |
069e950529e354e7de86b24e584a8ef11a209adb | Java | Kwangsoo-kim/HW-Big | /src/1_java/ch14_pattern/src/strategy1/step4/component/KnifeNo.java | WINDOWS-1252 | 165 | 2.328125 | 2 | [] | no_license | package strategy1.step4.component;
public class KnifeNo implements KnifeImpl {
@Override
public void Knife() {
System.out.println(" .");
}
}
| true |
9dd2b0a8cf8ba3372077caf163658b5603651c0b | Java | demostenes1509/prototipogwt | /prototipogwt-domain/src/main/java/com/teracode/prototipogwt/domain/resources/RestProperties.java | UTF-8 | 3,442 | 2.109375 | 2 | [] | no_license | package com.teracode.prototipogwt.domain.resources;
import java.io.InputStream;
import java.util.Properties;
/**
* @author Maxi
*
*/
public class RestProperties extends Properties {
/**
*
*/
private static final long serialVersionUID = 2330379864843549854L;
private static RestPropertie... | true |
d65bd177a629b8842767fc1acfae2482d3a90f4e | Java | ak47007tiger/SimpleCCompiler | /src/base/Constant.java | UTF-8 | 805 | 2.40625 | 2 | [] | no_license | package base;
public interface Constant {
//key word
String if_key = "if";
String else_key = "else";
String while_key = "while";
String add_key = "+";
String sub_key = "-";
String mul_key = "*";
String dev_key = "/";
String less_key = "<";
String more_key = ">";
String equls_key = "==";
String key_word =... | true |
f948f4ba8ed2ba52e92afe890e5d9cc4e29ca258 | Java | achyut/distributedsystems | /src/main/java/dissystems/utils/Util.java | UTF-8 | 500 | 2.71875 | 3 | [] | no_license | package dissystems.utils;
import java.util.Random;
/**
* Created by apaud on 4/24/18.
*/
public class Util {
static Random rand = new Random();
public static void randomSleep(int time){
mySleep(rand.nextInt(time));
}
public static void mySleep(long time){
try {
Thread.sleep(time);
} catch (Interrupted... | true |
9946c781b40138db08605a27f8b55ca278e6795f | Java | YouZlin/RuPeng | /MySQL/UseJDBC/src/test/LoginTest.java | UTF-8 | 3,322 | 3.09375 | 3 | [] | no_license | package test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Scanner;
public class LoginTest {
public static void main(String[] args) {
// login();
login1();
}
/*
* 执行简单... | true |
96bf08fdc3c8b91d8df02d3048a70d1cd577a1e6 | Java | MDNobu/DataMingPractice | /DM/src/org/qin/datamining/classifier/DataSet.java | UTF-8 | 4,580 | 2.71875 | 3 | [] | no_license | package org.qin.datamining.classifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class DataSet {
private List<Attribute> attributes = new ArrayList<Attribute>();
private List<Record> records = new ArrayL... | true |
5bbe902c9fbd6e77a4a0bbd97e31164d0872a5a0 | Java | zozancan/KutuphaneOtomasyonu | /src/newpackage/DashKitapSorgu.java | UTF-8 | 62,259 | 2.375 | 2 | [] | no_license |
package newpackage;
import java.awt.Image;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class DashKitapSorgu extends javax.swing.JFrame {
DB db = new DB... | true |
969212ea45df1104fc1ffe1055ed765156e21f1a | Java | tiandiyixian/cobol-codeql | /extractor/src/com/semmle/cobol/mapping/values/TrapKeyedValue.java | UTF-8 | 613 | 2.578125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.semmle.cobol.mapping.values;
import com.semmle.cobol.generator.tuples.Value;
import com.semmle.cobol.mapping.runtime.TrapFile;
/**
* This is a {@link Value} for a value set to a key in a {@link TrapFile}.
*/
public class TrapKeyedValue extends Value {
/**
* The key to the value to look up in the {@l... | true |
5edbc3b169fc975b6e68d543b954f52e8499f608 | Java | Tominous/LabyMod-1.9 | /net/minecraft/realms/RealmsServerAddress.java | UTF-8 | 508 | 2.28125 | 2 | [] | no_license | package net.minecraft.realms;
import bkw;
public class RealmsServerAddress
{
private final String host;
private final int port;
protected RealmsServerAddress(String ☃, int ☃)
{
this.host = ☃;
this.port = ☃;
}
public String getHost()
{
return this.host;
}
public int getPort()
{... | true |
7993379ae74e9e7a6567ed72cc7837b232414035 | Java | P79N6A/icse_20_user_study | /methods/Method_1013555.java | UTF-8 | 372 | 1.992188 | 2 | [] | no_license | public final Value normalize(){
try {
if (this.pset == null || this.pset == SetEnumValue.DummyEnum) {
this.set.normalize();
}
else {
this.pset.normalize();
}
return this;
}
catch ( RuntimeException|OutOfMemoryError e) {
if (hasSource()) {
throw FingerprintException.getNewHea... | true |
037747b1b2e767e3be1195e812914ccd793f8fa4 | Java | Preethi-chandrasekar/MOD-MS | /PhaseIV/src/main/java/com/example/demo/controller/MentorController.java | UTF-8 | 1,349 | 2.125 | 2 | [] | no_license | package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... | true |
12a505b94400c05602390202b591fb4c7dc844c1 | Java | saifuddin1703/Travel-Memory | /src/mjmAndroid/MemoryMap/NotesList.java | UTF-8 | 5,878 | 2.265625 | 2 | [] | no_license | package mjmAndroid.MemoryMap;
import java.util.ArrayList;
import java.util.List;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import and... | true |
6dccb58be796386456a6586785d9e910d560aa8f | Java | z0z0/CommentWidget | /src/main/java/com/zopr/widget/model/Comment.java | UTF-8 | 2,638 | 2.5 | 2 | [] | no_license | package com.zopr.widget.model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.deser.std.DateDeserializers;
import com.fasterxml.jackson.databind.ser.std.DateSerializer;
import java.io.Serializable;... | true |
7d5ea6c7e57fe427768545f24aed0792519a059c | Java | dong-8080/IMTest | /app/src/main/java/com/example/a17720/myhuanxin/MyExpandableListAdapter.java | UTF-8 | 3,596 | 2.546875 | 3 | [] | no_license | package com.example.a17720.myhuanxin;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.TextView;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
... | true |
eae535150d6a0a65830aeeed5ae5335933da79cb | Java | pulquero/Halyard | /strategy/src/main/java/com/msd/gin/halyard/function/WktPoint.java | UTF-8 | 1,155 | 2.171875 | 2 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"CDDL-1.0",
"CPL-1.0",
"MIT",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"MPL-1.1",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain"
] | permissive | package com.msd.gin.halyard.function;
import com.msd.gin.halyard.common.WKTLiteral;
import com.msd.gin.halyard.vocab.HALYARD;
import org.eclipse.rdf4j.model.Literal;
import org.eclipse.rdf4j.model.Value;
import org.eclipse.rdf4j.model.ValueFactory;
import org.eclipse.rdf4j.query.algebra.evaluation.ValueExprEvaluation... | true |
bab95ffb909079e46b00bc3fdc87c35be39d9e7e | Java | Jom901/JavaSearch | /search.java | UTF-8 | 400 | 2.96875 | 3 | [] | no_license | import java.util.Scanner;
public class search{
public static void main(String[] args){
boolean active = true;
Scanner input = new Scanner(System.in);
Engine test = new Engine();
String word = "";
while(active){
System.out.print("Input a word: ");
word = input.nextLine();
if(word.isEmpty()){
ac... | true |
a2660bc6a3849902aad2ef661636cb5fee1bb3be | Java | esanmiguelc/java-server | /src/javaserver/MyFileReader.java | UTF-8 | 2,866 | 2.640625 | 3 | [] | no_license | package javaserver;
import javaserver.Parser.RangeParser;
import javax.activation.MimetypesFileTypeMap;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Stream;
public class MyFileReader implements FileReader {
private File file;
pr... | true |
800f31500cdab9958242307796e6f93c8bbc5ad9 | Java | CristianMendivelso/IssueStorm | /src/main/java/com/autentia/tutoriales/bolt/TweetSplitterBolt.java | UTF-8 | 992 | 2.359375 | 2 | [] | no_license | package com.autentia.tutoriales.bolt;
import java.util.Map;
import twitter4j.Status;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseRichBolt;
import org.apache.storm.tuple.Fiel... | true |
ea9ead4f4ae6cfcd75d36dd1156721ad06d3b267 | Java | flonghk/meijuttdownload | /src/meijuttdownload/DownloadHref.java | UTF-8 | 5,751 | 2.21875 | 2 | [] | no_license | package meijuttdownload;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.*;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream... | true |
00317c8b30aaec0e524ce81346b31798d6d7b889 | Java | 18182336296/new | /redpig-platform/src/main/java/com/redpigmall/manage/admin/tools/RedPigImageTools.java | UTF-8 | 2,328 | 2.09375 | 2 | [] | no_license | package com.redpigmall.manage.admin.tools;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.redpigmall.api.tools.CommUt... | true |
cff62b0495b5d75aaf1e27442cff852cd749f93a | Java | ksnaaz/MovieCinema | /app/src/main/java/com/nz/movie_cinema/view/adapter/SimilarMoviesAdapter.java | UTF-8 | 2,849 | 2.234375 | 2 | [] | no_license | package com.nz.movie_cinema.view.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... | true |
4e56be0285486e708b28fd9f4e86adc2904a2829 | Java | dhruvpancholi17/sherlock-semantic | /autosuggest/src/main/java/com/flipkart/sherlock/semantic/autosuggest/helpers/AutoSuggestQueryAnalyzer.java | UTF-8 | 1,272 | 2.40625 | 2 | [] | no_license | package com.flipkart.sherlock.semantic.autosuggest.helpers;
import com.flipkart.sherlock.semantic.autosuggest.dao.AutoSuggestDisabledQueriesDao;
import com.google.inject.Inject;
import java.util.Map;
/**
* Created by dhruv.pancholi on 31/05/17.
*/
public class AutoSuggestQueryAnalyzer {
@Inject
private Au... | true |
b53de544731f8654668723e2ef3a089938ac6965 | Java | BiwadeepBhattacharjee/gameappwithspringboot | /src/main/java/com/stackroute/game/Repository/PlayerRepository.java | UTF-8 | 445 | 2.046875 | 2 | [] | no_license | package com.stackroute.game.Repository;
import com.stackroute.game.domain.Player;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import java.util.Optional;
public interface PlayerRepository extends CrudRepository<Player, Integer... | true |
435eee2c175d0e1df4b494320923eaa90ed7016d | Java | amitsrivastava4all/JavaRegBatchDec | /GUI/SongPath.java | UTF-8 | 181 | 1.65625 | 2 | [] | no_license | package com.srivastava.apps;
public interface SongPath {
final String SONG ="/Users/amit/Documents/songs/S.mp3";
final String DANGAL_SONG ="/Users/amit/Documents/songs/A.mp3";
}
| true |
2c400122b5a224c8cf755500396a5b78b30284ce | Java | novucs/esd | /src/test/java/net/novucs/esd/test/controller/TestHomepageServlet.java | UTF-8 | 1,897 | 2.265625 | 2 | [] | no_license | package net.novucs.esd.test.controller;
import static junit.framework.TestCase.assertTrue;
import static org.mockito.Matchers.anyBoolean;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.io.IOEx... | true |
3e80afae187161e2d5d04e6e2b7ef9596d1242a2 | Java | dementor-hison/DementorBaseApp | /src/kr/co/dementor/ui/AuthActivity.java | UTF-8 | 1,055 | 1.992188 | 2 | [] | no_license | package kr.co.dementor.ui;
import kr.co.dementor.common.DementorUtil;
import kr.co.dementor.common.ResourceLoader;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class AuthActivity extends FragmentActivity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.o... | true |
33a6f70f24c7c9c4d8e343b996cf9cce0f72bc53 | Java | TBlackBox/zero1 | /zero-base/zero-base-common/src/main/java/com/zero/base/common/model/api/model/UserResourceReq.java | UTF-8 | 559 | 1.789063 | 2 | [] | no_license | package com.zero.base.common.model.api.model;
import cn.hutool.core.util.StrUtil;
import com.zero.base.common.model.request.AbstractBaseRequest;
import lombok.Data;
/**
* 获取用户资源请求
*
* @author fengshuonan
* @Date 2019/5/13 20:51
*/
@Data
public class UserResourceReq extends AbstractBaseRequest {
/**
* 账... | true |
3e7dc9cf21e98f596f324136fc3a5bd551c4f8e0 | Java | noobliuxg/JAVA-2 | /src/main/java/cn/com/java/structure/Stack.java | UTF-8 | 1,368 | 3.96875 | 4 | [] | no_license | package cn.com.java.structure;
import java.util.Arrays;
/**
* 栈:
* 特点:
* 先进后出
* 原理:
* 只能在栈顶的一段入栈和出栈,即:只能在线性表的一段放入元素和取出元素
* @param <T>
*/
public class Stack<T> {
private Object[] objArray;
private int capacity = 10;
private int index = 0;
public Stack(int capacit... | true |
05551e10a19b49b4da1786c70d381e5791633d85 | Java | sozemego/idle-kluch | /idle-kluch-server/src/main/java/com/soze/idlekluch/game/engine/EngineRunner.java | UTF-8 | 3,780 | 2.828125 | 3 | [] | no_license | package com.soze.idlekluch.game.engine;
import com.google.common.base.Stopwatch;
import com.soze.idlekluch.core.aop.annotations.Profiled;
import com.soze.klecs.engine.Engine;
import java.util.List;
import java.util.Objects;
import java.util.Queue;
import java.util.concurrent.*;
import java.util.stream.Collectors;
/*... | true |
efd1458bd6216207b15ccce1ca1c19e1bd2059dc | Java | Manon5/CPOA_LEVIS_TOUBA | /helloworld/src/FxControleurs/AjoutPeriodCtrl.java | ISO-8859-1 | 5,781 | 2.328125 | 2 | [] | no_license | package FxControleurs;
import DAO.AbonnementDAO;
import DAO.PeriodiciteDAO;
import DAO.Persistance;
import Factory.DAOFactory;
import FxVues.AjoutPeriodVue;
import FxVues.AjoutRevueVue;
import Liste_Memoire.ListeMemoirePeriodiciteDAO;
import MySQL.MySQLPeriodiciteDAO;
import MySQL.MySQLRevueDAO;
import POJO.Abonnement... | true |
a0ff697e1d88660151ac7bbf1a1015eed999f1de | Java | swack9999/Tidee | /TideeFX2/src/Tidee/StoreManagerController.java | UTF-8 | 2,482 | 2.296875 | 2 | [] | no_license | package Tidee;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.event.ActionEvent;
import java.io.IOException;
public class StoreManagerController {
private Parent manager_home_parent;
public void V... | true |
efedae80e394bcf89f741bed408f30a9e2cba22d | Java | arsenayan/Android-Assignment | /RoutetitanHomeAssignment/app/src/main/java/com/example/routetitanhomeassignment/fragments/StopsFragment.java | UTF-8 | 2,172 | 2.0625 | 2 | [] | no_license | package com.example.routetitanhomeassignment.fragments;
import android.content.Intent;
import android.location.Address;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import andr... | true |
15eed1268f61337eacff39181172a527c0cfe527 | Java | kavehg/raider | /raider-core/src/main/java/com/kg/raider/PersistenceWorker.java | UTF-8 | 955 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | package com.kg.raider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* User: kaveh
* Date: 8/12/13
* Time: 8:58 PM
*
* The persistence processor asynchronously works on
* data submitted to it by the ring buffer
*/
public class PersistenceWorker implements Runnable {
private Logger logger = ... | true |
565612fd9019e73aa9a83d441313c93db0b0f7a3 | Java | springone2gx2015/vehicle-fleet-demo | /fleet-location-updater/src/test/java/demo/model/ServiceLocationTests.java | UTF-8 | 2,844 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
7d1fee5021a1321a0e7de5ac00c2573e93ccddee | Java | BrandonJF/VideoDemo | /app/src/main/java/com/vimeo/cleancode/models/Stats.java | UTF-8 | 491 | 2.203125 | 2 | [] | no_license |
package com.vimeo.cleancode.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Stats {
@SerializedName("plays")
@Expose
private Integer plays;
/**
*
* @return
* The plays
*/
public Integer getPlays() {
... | true |
d60ab8122d1bed483bb3796b19fd264a2d2b1267 | Java | DalavanCloud/tomcat-lifecyclelistener | /src/main/java/net/aschemann/tomcat/lifecycle/FailstopLifecycleListener.java | UTF-8 | 3,929 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | package net.aschemann.tomcat.lifecycle;
import org.apache.catalina.Lifecycle;
import org.apache.catalina.LifecycleListener;
import org.apache.catalina.LifecycleEvent;
import org.apache.catalina.LifecycleState;
import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;
import java.util.logging.Log... | true |
61d60cb0a2296f28c6bdc51a651a13d1e2db7c47 | Java | support139/eshop | /eshop/src/main/java/com/epam/khodyka/db/repository/ProductRepository.java | UTF-8 | 396 | 1.992188 | 2 | [] | no_license | package com.epam.khodyka.db.repository;
import com.epam.khodyka.bean.FilterBean;
import com.epam.khodyka.db.entiry.Guitar;
import java.util.List;
/**
* Created by Andrii_Khodyka on 5/6/2015.
*/
public interface ProductRepository {
Guitar get(int id);
List<Guitar> getAll();
List<Guitar> getAllByFilter... | true |
55fd081a0116af30c7d6df24d767caffc81d4ee9 | Java | nilname/virtraulTrade | /latest_vt/src/main/java/com/ooteco/service/UserService.java | UTF-8 | 5,490 | 2.3125 | 2 | [] | no_license | package com.ooteco.service;
import com.ooteco.exceptions.CustomException;
import com.ooteco.exceptions.SymbolParseException;
import com.ooteco.model.MarketTick;
import com.ooteco.model.TradeCoin;
import com.ooteco.model.UserCoin;
import com.ooteco.model.UserKnockdownTrade;
import com.ooteco.model.ext.UserDelegateTrade... | true |
d9426b34c80baaa1c2f66c7ee458dc5928f20b7f | Java | sanherushi/majingji-cms | /src/main/java/com/majingji/cms/vo/CommentVO.java | UTF-8 | 714 | 2.140625 | 2 | [] | no_license | package com.majingji.cms.vo;
import java.util.Date;
/**
* @author 作者:majingji
* @version 创建时间:2019年11月24日 下午5:03:46
* 类功能说明
*/
public class CommentVO {
private Integer username;
private String content;
private Date created;
public CommentVO() {
super();
}
public Integer getUsername() {
r... | true |
2f41c89bba5db227c6b057327951afab595c1e9a | Java | AMILI1999/wipro_pjp21 | /Collection/Map/G16/MapTreeMapCountry.java | UTF-8 | 2,045 | 3.53125 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.Set;
import java.util.TreeMap;
class Country {
private TreeMap<String, String> M1;
public Country() {
M1 = new TreeMap<String, String>();
}
public TreeMap<String, String> saveCountryCapital(String... | true |
338c61cff815697bb4abe04d4ba0c69e732b70fb | Java | bcgit/bc-java | /util/src/main/java/org/bouncycastle/asn1/cms/SignerInfo.java | UTF-8 | 8,537 | 2.234375 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.bouncycastle.asn1.cms;
import java.util.Enumeration;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.A... | true |
0ab7761444c31a92a8b2b2d91d3cd141a75ce4ac | Java | colination/copperhead2019 | /TeamCode/OutreachTrollbot.java | UTF-8 | 6,071 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.HardwareMap;
import... | true |
ca32ce0bac8be90c2598110d9259bbd0ecfa6b96 | Java | avnit/user-security | /springboot/microservice/src/main/java/com/saintdan/framework/vo/ResourceVO.java | UTF-8 | 591 | 1.859375 | 2 | [
"MIT"
] | permissive | package com.saintdan.framework.vo;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* VO for {@link com.saintdan.framework.po.Resource}
*
* @author <a href="http://github.com/saintdan">Liao Yifan</a>
* @date 10/16/15
*... | true |
007024dd166c2deee5135112bc642748e1daf305 | Java | baxtree/Metastyle | /src/java/css/annotation/CSSTemplate.java | UTF-8 | 12,043 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package css.annotation;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import com.hp.hpl.jena.ontology.OntClass;
import com.hp.hpl.jena.ontology.OntModel;
import com.hp.hpl.jena.ontology.OntModelSpec;
import com.hp.hpl.jena.ontology.OntProperty;
import com.hp.hpl.jena.rdf.model... | true |
a00c1239d9952c2143c0d54352bb4b9878ad69ee | Java | apache/sling-org-apache-sling-launchpad-integration-tests | /src/main/java/org/apache/sling/launchpad/webapp/integrationtest/ContentLoaderMiscPropertyTest.java | UTF-8 | 2,628 | 2.078125 | 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"); you may ... | true |
ced9d4b45146714706bc0174786107852efdf0ad | Java | TruffalRimma/spring-boot-mvc-rimma | /src/main/java/ru/spring/boot/jm/springbootmvcrimma/service/UserDetailsServiceImpl.java | UTF-8 | 1,453 | 2.375 | 2 | [] | no_license | package ru.spring.boot.jm.springbootmvcrimma.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNo... | true |
5666c03ab8642c377244fc9c67c480a3bc10d9a6 | Java | motech-implementations/ananya-care | /care-reporting/care-reporting-frontend/src/main/java/org/motechproject/carereporting/service/impl/FieldOperationServiceImpl.java | UTF-8 | 944 | 2.015625 | 2 | [] | no_license | package org.motechproject.carereporting.service.impl;
import org.motechproject.carereporting.dao.FieldOperationDao;
import org.motechproject.carereporting.domain.FieldOperationEntity;
import org.motechproject.carereporting.service.FieldOperationService;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
83d1d2063469366e55f2d8462a6eb3666b64b807 | Java | ONSdigital/census-rm-action-worker | /src/main/java/uk/gov/ons/census/action/model/repository/ActionPlanRepository.java | UTF-8 | 276 | 1.640625 | 2 | [] | no_license | package uk.gov.ons.census.action.model.repository;
import java.util.UUID;
import org.springframework.data.jpa.repository.JpaRepository;
import uk.gov.ons.census.action.model.entity.ActionPlan;
public interface ActionPlanRepository extends JpaRepository<ActionPlan, UUID> {}
| true |
a589fbe202677055eb715510a253f1de8d01d39b | Java | TSSKDevAcademy1/JGREGA_GameStudio | /jboss-javaee6-webapp/src/main/java/ElektronickyObchod/CustomerJpa.java | UTF-8 | 652 | 2.5 | 2 | [] | no_license | package ElektronickyObchod;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.EntityManager;
@Stateless
public class CustomerJpa {
@Inject
private EntityManager em;
public void addCustomer(Customer customer){
em.persist(customer);
}
public Customer getCustomer(long index) {
... | true |
87939c06104052e64e8f3f06653c656c2be3106c | Java | Advocatee/demoModelForASimplisticInsuranceDomain | /src/main/java/com/example/demo/controller/ClientController.java | UTF-8 | 1,774 | 2.3125 | 2 | [] | no_license | package com.example.demo.controller;
import com.example.demo.dto.ClientDto;
import com.example.demo.dto.request.CreateClientRequest;
import com.example.demo.exception.VehicleNotFound;
import com.example.demo.mapper.ClientMapper;
import com.example.demo.model.Client;
import com.example.demo.service.ClientService;
impor... | true |
3fff185af631935399fc8bedc506d8038338d123 | Java | agilebirds/openflexo | /flexodesktop/GUI/flexowysiwyg/src/examples/java/HTMLEditorCustomizationDemo.java | UTF-8 | 22,893 | 2.25 | 2 | [] | no_license | /*
* HTMLEditorCustomizationDemo.java
*
* Created on 6 febbraio 2006, 16.10
*/
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFr... | true |
f77fc2cb92cde2ca08f342456332d5cd70ad7884 | Java | rogercallster/testingFrames | /MockitoBasics/src/main/java/captor/CaptorClass.java | UTF-8 | 198 | 2.1875 | 2 | [] | no_license | package captor;
public class CaptorClass{
private final ParentClass pc;
public CaptorClass(ParentClass pc){
this.pc = pc;
}
public int save(String name){
return pc.save(name);
}
}
| true |
b3783a8a2195d8b95b0f351406a1a70fef6b5945 | Java | servidorRemotoIFRS/gitjava | /src/br/com/yaw/git/App.java | UTF-8 | 437 | 1.921875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.yaw.git;
/**
*
* @author bruno.090295
*/
public class App {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO c... | true |
154cd064fb0939b7b7d2bfa54c3857e81e04208d | Java | mohanbiradar/contract-pact-springboot | /pact-contract-provider/src/main/java/com/xp/app/StudentService.java | UTF-8 | 275 | 2.03125 | 2 | [] | no_license | package com.xp.app;
import org.springframework.stereotype.Service;
@Service
public class StudentService {
public Student saveStudent(Student student){
/* for testing the provider end. This service will be mocked */
return new Student("Ideal Name", "Pune", 100);
}
}
| true |
870faefb792f9cfe8f590da97dbdbfa898a0114b | Java | oka884/JNarabeGame | /littleBoardGame/model/entity/BoardSetting.java | UTF-8 | 2,474 | 3.203125 | 3 | [] | no_license | package littleBoardGame.model.entity;
/**
* 盤面の設定を保持するスタティックなクラス
*/
public class BoardSetting {
/**
* x座標にあたる縦の列の数を保持するフィールド
*/
private static int COLUMNS = 0;
/**
* y座標にあたる横の行の数を保持するフィールド
*/
private static int ROWS = 0;
/**
* デフォルトのx座標にあたる縦の列の数を保持するフィールド
*/
private static int DEFAU... | true |