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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0119cbc1ec3f311b3e9f861b12e73095afade70a | Java | studosi-fer/OOUP | /labosi/lab-3/2012-13/by_unknown/OOUP_3.labos/src/zadatak2/IteratorFactory.java | UTF-8 | 941 | 2.90625 | 3 | [] | no_license | package zadatak2;
import iteratori.Iterator;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
public class IteratorFactory {
@SuppressWarnings("unchecked")
public static Iterator newInstance(String iteratorKind, Object listaIliStablo) {
Class<Iterator> klasa = null;
... | true |
0ecafe91f2919aac88d382ca3d6b521a8b1a6329 | Java | susaglam/Java | /src/assignments/repl_it/buildRoute.java | UTF-8 | 1,518 | 3.234375 | 3 | [] | no_license | package assignments.repl_it;
import java.util.Scanner;
public class buildRoute {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String startInput = scan.next();
String endInput = scan.next();
boolean found = false;
char start = startInput.charAt(0);
char end = endInput.c... | true |
08aeaddc8982cde096365e2fd1d36d790030cfbf | Java | rahulraghavendra/Playground | /Number of digits/Main.java | UTF-8 | 369 | 3.109375 | 3 | [] | no_license | #include<iostream>
using namespace std;
int countdigits(int n)
{
static int count=0;
if(n>0)
{
count++;
countdigits(n/10);
}
else
return count;
}
int main()
{
int num;
cout<<"Enter the value of n\n";
cin>>num;
int digits;
digits=countdigits(num);
cout<<"The number of digits in "<<nu... | true |
52415af3cad0658fae699455bbdc5fc7c280c0ba | Java | jthatjd03/topcoder | /Single Round Match 645/src/BacteriesColony.java | UTF-8 | 179 | 2.125 | 2 | [] | no_license | import java.util.*;
import java.math.*;
import static java.lang.Math.*;
public class BacteriesColony {
public int[] performTheExperiment(int[] colonies) {
return null;
}
}
| true |
7ab351fd318759894babae8e6d143efe8225399a | Java | davd33/jqwik-vavr | /src/main/java/de/befrish/jqwik/vavr/arbitraries/control/VavrValidationArbitrary.java | UTF-8 | 766 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package de.befrish.jqwik.vavr.arbitraries.control;
import de.befrish.jqwik.vavr.arbitraries.base.AbstractDoubleValueArbitrary;
import io.vavr.control.Validation;
import net.jqwik.api.Arbitrary;
public class VavrValidationArbitrary<E, T> extends AbstractDoubleValueArbitrary<E, T, Validation<E, T>>
implements A... | true |
f071db5dba8fe56edde9f19bd814bd8b6f436e6a | Java | pasatigiy/HomeWork_20_DBJC_SQL | /src/DbUserStorage.java | UTF-8 | 15,795 | 2.828125 | 3 | [] | no_license | import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
public class DbUserStorage {
/**
* Реализовать методы:
*/
//save +
//updateNameById +
//updatePasswordById +
//deleteById +
//getAll +
//getAllByName+
//getByUsernam... | true |
57b2cde502b89059f8b21498ceb9d19583cd51df | Java | reallin/MyLeetCode | /src/Palindrome/Main.java | UTF-8 | 880 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | package Palindrome;
public class Main {
public static void main(String[] args){
System.out.println(isPalindrome("......a....."));
System.out.println(isPalindrome("09"));
}
public static boolean isPalindrome(String s) {
s = s.toLowerCase();
if(s.length()<=1){
return true;
}
int length = s.length();
... | true |
07bac06c93e542c65b7feeb68f249b32463006f3 | Java | sawandarekar/InJDK8 | /src/main/java/jdk8/InterfaceFeatures/Functional_Interface_Example.java | UTF-8 | 530 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | package jdk8.InterfaceFeatures;
/**
* A functional interface is an interface that has exactly one abstract method.
*
* It represents a function that accepts one argument and returns a result.
*/
@FunctionalInterface
interface Functional_Interface {
void say(String s);
}
public class Functional_Interface_Examp... | true |
5f9b8477a7298ce3a9104a98c678daf14980f265 | Java | tdxtxt/KnmsShop | /app/src/main/java/com/knms/shop/android/activity/mine/InviteFriendsActivity.java | UTF-8 | 4,801 | 1.96875 | 2 | [] | no_license | package com.knms.shop.android.activity.mine;
import android.graphics.Paint;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;
import com.knms.shop.android.R;
import com.knms.shop.android.activity.base.HeadBaseActiv... | true |
9fbd2a200dd35266244eba0d05a9922c13fe9bd1 | Java | rohankumardubey/Masquerade | /masquerade-core/src/main/java/com/flipkart/masquerade/processor/type/NumericalOverrideProcessor.java | UTF-8 | 2,584 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Flipkart Internet, pvt 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | true |
fc7ba8abe224aacab7fa9f41d0ed502f50279902 | Java | sueda-moi/Practice002 | /D3project/B2C/b2c-service/src/main/java/com/project/cn/service/SettlementService.java | UTF-8 | 330 | 1.929688 | 2 | [] | no_license | package com.project.cn.service;
import java.util.List;
public interface SettlementService {
public List<Settlement> findAll();
public int deleteById(Integer id);
public int addSettlement(Settlement settlement);
public Settlement findById(Integer id);
public int update(Settlement settlement);
... | true |
54d65e2a6e35ce5688b73de11f3bbc96ce7820cf | Java | guy-murphy/jAcumen | /Acumen/src/acumen/user/model/UserDetails.java | UTF-8 | 580 | 2.078125 | 2 | [] | no_license | package acumen.user.model;
import acumen.util.AcumenDictionary;
import acumen.util.AcumenText;
import acumen.util.IDataType;
public class UserDetails extends AcumenDictionary<String, IDataType> implements IUserDetails {
private static final long serialVersionUID = -4343356096977526960L;
public UserDetai... | true |
48c75029b13ff0b3858450aae4febdcbe850a00e | Java | atikrahman146/CoreJava | /moneyJar/MoneyJar.java | UTF-8 | 624 | 2.9375 | 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 moneyJar;
/**
*
* @author J2EE-33
*/
public class MoneyJar {
private String purpose;
private double amount;
pri... | true |
13bdb18f7de8ed7298d5540c240b0390dc561e47 | Java | sankalpchauhan-me/InterviewPrep | /DataStructures-Algo-master/BFS/CloneAnUndirectedGraph.java | UTF-8 | 2,253 | 3.875 | 4 | [] | no_license | package BFS;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Queue;
import LL.SortedInsertCircularLL.Node;
//https://www.youtube.com/watch?v=vma9tCQUXk8&list=PLiQ766zSC5jMEpcGL0nSkfDM3paBP5FOE&index=2&t=0s
public class CloneAnUndire... | true |
ee242a85cb1f98ee1d4c8e7f883f430bfc284cab | Java | LeoBRodrigues/ECM251 | /atividades/atividade1/Transacoes.java | UTF-8 | 989 | 3.078125 | 3 | [] | no_license | import java.util.Random;
public class Transacoes {
public static String QRcode(Conta conta, double valor)
{
return String.format("%d;%s;%f;%d", conta.getID(), conta.getUsuario().getNome(), valor, getRandomNumberInRange(1000, 9999));
}
public static void pagar(Conta de, Conta para, String QRc... | true |
4e1bd796a1daf8fa88dd36bd8fe18b5dd73804a6 | Java | eliver/sb-angular | /src/main/java/cn/natic/sbangular/dao/PaybackRepository.java | UTF-8 | 431 | 1.828125 | 2 | [] | no_license | package cn.natic.sbangular.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import javax.transaction.Transactional;
import java.util.List;
public interface PaybackRepository extends JpaRepository<Payback, Long> {
List<Payback> findByInvest(Invest invest);
@Transactional
<S extends Pay... | true |
7c82e93ba9a2ff8974dd4499d53beefef0f15422 | Java | XLjavaHome/deploymentPluginPLus | /src/com/xl/util/FileUtil.java | UTF-8 | 10,341 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | package com.xl.util;
import java.awt.Desktop;
import java.io.*;
import java.text.DecimalFormat;
import java.util.*;
import javax.swing.filechooser.FileSystemView;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.filefilter.FileFileFilter;
/**
* Created with IntelliJ IDEA.
*
* @author 徐立
* @Date:... | true |
fa2fd853144eec40c02f5c73fb993da467f4887f | Java | fengzihua11/FzhGameDota | /src/com/fzh/game/adapter/JiuGuanAdapter.java | UTF-8 | 1,262 | 2.265625 | 2 | [] | no_license | package com.fzh.game.adapter;
import java.util.ArrayList;
import com.fzh.game.db.JiuGuanBean;
import com.fzh.game.view.JiuGuanFrm;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;
import android.widget.BaseAdapter;
import andro... | true |
c15c577ab31499c9bcc3c8d6ef979c4f92bd354a | Java | green-fox-academy/kskulikova | /week-01/day-4/src/FavouriteNumber.java | UTF-8 | 274 | 3.484375 | 3 | [] | no_license | public class FavouriteNumber {
public static void main(String[] args) {
int favoriteNumber = 13; // Stores my favorite number in a variable (as a number)
// And prints it
System.out.println("My favourite number is: " + favoriteNumber);
}
}
| true |
5606234fb81a0389f23310de866ac0db3541c5ac | Java | anujsainimca/dhl-chatbot | /src/main/java/com/nlp/entityresolution/LuceneSearcher.java | UTF-8 | 6,288 | 2.59375 | 3 | [] | no_license | package com.nlp.entityresolution;
import java.io.File;
import java.io.IOException;
import java.text.Normalizer;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.in... | true |
92f87164bc1b8a7542cdd24615dacecaee1cedba | Java | showiproute/MapReduceExercise | /src/MRCodingEight_GroupingComparator/OrderObjectPartitioner.java | UTF-8 | 452 | 2.296875 | 2 | [] | no_license | package MRCodingEight_GroupingComparator;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Partitioner;
public class OrderObjectPartitioner extends Partitioner<OrderObject, NullWritable>{
@Override
public int getPartition(OrderObject key, NullWritable value, int numPartitioners)... | true |
68e175b5fc35a018858006cb2dc2d4a2a47dec9a | Java | river06/leetcode | /symmetric_tree/Solution.java | UTF-8 | 985 | 3.484375 | 3 | [] | no_license | /**
* Definition for binary tree
* public class TreeNode {
* int val;
* TreeNode left;
* TreeNode right;
* TreeNode(int x) { val = x; }
* }
*/
public class Solution {
public boolean isSymmetric(TreeNode root) {
if(root == null) return true;
TreeNode left_child = root.left;
TreeNo... | true |
e3f0c81342054ce7655e4667ef202978e6f5b39e | Java | 0xpablo/corbel | /event-bus/src/main/java/com/bq/oss/corbel/eventbus/ioc/EventBusRegistrar.java | UTF-8 | 1,100 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.bq.oss.corbel.eventbus.ioc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import com.bq.oss.corbel.eventbus.EventHandler;
import co... | true |
7bbc9b20894642bc2408971df9913502f50d0f6d | Java | copax/LoveLetter | /src/com/copac/loveletter/cards/Baron.java | UTF-8 | 148 | 2.109375 | 2 | [] | no_license | package com.copac.loveletter.cards;
import com.copac.cardgame.Card;
public class Baron extends Card {
public Baron() {
super("Baron", 3);
}
}
| true |
4894b82177605c92fb5a586e4d749a09af85f4c7 | Java | kaptk2/Spacebattle | /SpaceBattleServlet/src/spacebattle/Action.java | UTF-8 | 1,691 | 2.6875 | 3 | [] | no_license | package spacebattle;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@SuppressWarnings("serial")
public class Action extends HttpS... | true |
76225c7066f28629621b236c0d4396fb6546e40f | Java | bellmit/zycami-ded | /src/main/java/com/alibaba/sdk/android/oss/common/auth/OSSPlainTextAKSKCredentialProvider.java | UTF-8 | 1,049 | 2.046875 | 2 | [] | no_license | /*
* Decompiled with CFR 0.151.
*/
package com.alibaba.sdk.android.oss.common.auth;
import com.alibaba.sdk.android.oss.common.auth.OSSCredentialProvider;
import com.alibaba.sdk.android.oss.common.auth.OSSFederationToken;
public class OSSPlainTextAKSKCredentialProvider
implements OSSCredentialProvider {
private ... | true |
d65d310fac319cbe91b37a326500c362c8a374b1 | Java | softwareqky/qqq | /src/project/edge/domain/view/MonthlyExpenditurePlanBean.java | UTF-8 | 2,102 | 1.929688 | 2 | [] | no_license | /**
*
*/
package project.edge.domain.view;
import garage.origin.domain.view.ViewBean;
/**
* @author angel_000
*
*/
public class MonthlyExpenditurePlanBean implements ViewBean {
/*
* (non-Javadoc)
*
* @see garage.origin.domain.view.ViewBean#getId()
*/
private S... | true |
d9e983ecf6df7296baf0438583fa6db506e3dac8 | Java | chrisdrohr/Nostalgia | /app/src/main/java/com/example/rohrlabs/nostalgia/ViewHolders/ViewHolderComment.java | UTF-8 | 2,332 | 1.992188 | 2 | [] | no_license | package com.example.rohrlabs.nostalgia.ViewHolders;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.dragankrstic... | true |
e64b70424f9d3cb8407773c54f3ff5b9cf9e6278 | Java | yasriady/LiveStream | /app/src/main/java/org/yasriady/ustadzsomadstreaming/Category/RecyclerView/ServiceGenerator.java | UTF-8 | 1,312 | 2.15625 | 2 | [] | no_license | package org.yasriady.ustadzsomadstreaming.Category.RecyclerView;
import org.yasriady.ustadzsomadstreaming.Cfg;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by dedy on 11/26/17.
*/
public class Ser... | true |
ab0f36d81e08016840f7d4f9dcd7e19b0bc17071 | Java | thanhvo/EPI | /src/StringToIntegerTransformer.java | UTF-8 | 163 | 2.6875 | 3 | [] | no_license |
public class StringToIntegerTransformer implements Transformer<String, Integer>{
public Integer transform(String input) {
return Integer.valueOf(input);
}
}
| true |
63e296e0fa4955ae063a0aaa7eee5ea53c45136f | Java | moutainhigh/foss | /stl/stl-closing-api/src/main/java/com/deppon/foss/module/settlement/closing/api/server/dao/IDvrReturnCodDao.java | UTF-8 | 1,204 | 1.953125 | 2 | [] | no_license | package com.deppon.foss.module.settlement.closing.api.server.dao;
import java.util.List;
import com.deppon.foss.module.settlement.closing.api.shared.domain.DvrReturnCodEntity;
import com.deppon.foss.module.settlement.closing.api.shared.dto.DvrReturnCodDto;
/**
* 退代收货款报表接口
* @author foss-pengzhen
* @date 2013-3-6 ... | true |
62778e097791c3d902eaa2fcc37b3258a58785df | Java | gaponenko-andrei/The-Conference-Agenda | /src/test/java/agp/util/weighable/SimplifiedKnapsackSolutionForInts.java | UTF-8 | 2,491 | 2.96875 | 3 | [] | no_license | package agp.util.weighable;
import static agp.util.Collections.mapIntoList;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiFunction;
import lombok.Getter;
import lombok.NonNull;
import lombok.Value;
import lombok.experimental.Accessors;
public class SimplifiedKnapsackSolutionForInts ... | true |
810c9f08c6a3aa8e4e92dad12686b7f226a9dad8 | Java | topcoder-platform/tcs-cronos | /time_entry/tags/version-1.0.0.0/src/java/tests/com/topcoder/timetracker/entry/time/accuracytests/MockBaseDataObject.java | UTF-8 | 581 | 1.914063 | 2 | [] | no_license | /*
* Copyright (c) 2005, TopCoder, Inc. All rights reserved
*/
package com.topcoder.timetracker.entry.time.accuracytests;
import com.topcoder.timetracker.entry.time.BaseDataObject;
/**
* <p>
* A mock base data object used to test the abstract class <code>BaseDataObject</code>. It only
* extends <code>B... | true |
79c4f248149e74ad405c1a1c150222e60f2ba013 | Java | nikito96/AIproject | /src/ui/OpenFile.java | UTF-8 | 1,684 | 2.734375 | 3 | [] | no_license | package ui;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import graph.Graph;
import graph.LinkType;
import graph.Node;
public cl... | true |
04bc6fa8420d688129f23291ace8a7c3c35731da | Java | wtshen/springbootExam | /web/src/test/java/com/swt/web/RedisTest.java | UTF-8 | 918 | 2.09375 | 2 | [] | no_license | package com.swt.web;
import com.swt.collection.UserInfo;
import com.swt.nosql.redis.RedisUtil;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.juni... | true |
ded9585231a597a518da167f453437fa6c7c4225 | Java | Eant99/effective-octo-eureka | /CWYTH/src/com/googosoft/ccb/VerifySignature.java | UTF-8 | 1,030 | 2.625 | 3 | [] | no_license | package com.googosoft.ccb;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.spec.X509EncodedKeySpec;
public class VerifySignature {
public void run1(byte[] a,byte[] b,String c) {
try {
X509EncodedKeySpec bobPubKeySpec = new X509EncodedKeySpec(a);
KeyFactory keyFactory =... | true |
d9244af03a68aa89faeee0277a2591d954509d98 | Java | tille/Network-Algorihtms | /challenge5/src/RobotCalc/src/java/Logic/XMLProcessing/XMLOperationsSingleton.java | UTF-8 | 2,261 | 2.578125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Logic.XMLProcessing;
import Logic.XMLProcessing.CalcDTO.Params;
import Logic.XMLProcessing.CalcDTO.WebService;
import Logic.XMLProcessing.CalcDTO.WebServices;
import Logic.XMLProcessing.XMLTransformatio... | true |
1ea202ccada96425cc0686963dc410953837b078 | Java | Dmiiitriii/projektGeek1 | /src/HW5/Staff.java | UTF-8 | 1,513 | 3.4375 | 3 | [] | no_license | package HW5;
public class Staff {
private String name;
private String lastName;
private String middleName;
private String position;
private int salary;
private String email;
private String telephoneNumber;
private int age;
public Staff(String lastName, String name, String middleNa... | true |
0076da844499714d9e646bb1eab7fd9818ffcd09 | Java | Singularity0909/DesignPatterns | /src/CreationalPatterns/Builder.java | UTF-8 | 2,420 | 3.84375 | 4 | [] | no_license | // https://leetcode-cn.com/leetbook/read/design-patterns/99sjd7/
package CreationalPatterns;
class MilkTea {
private final String type;
private final String size;
private final boolean pearl;
private final boolean ice;
private MilkTea(Builder builder) {
this.type = builder.type;
th... | true |
3d7096fa6b8c101f2ae8204056074490f5564f82 | Java | WoowaCrew/WoowaCrew | /woowacrew-web/src/main/java/woowacrew/article/slack/service/SlackMessageService.java | UTF-8 | 2,417 | 2.28125 | 2 | [] | no_license | package woowacrew.article.slack.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import woowacrew.article.slack.domain.SlackMessage;
import woowacrew.article.slack.dto.SlackMessageRequestDto;
import woowacrew.article.s... | true |
0dd0f606cbd52b6e7c504af17931ef8a66fba5af | Java | youseftcg/BakingApp | /app/src/main/java/yousef/example/com/baking/activities/MainActivity.java | UTF-8 | 4,146 | 2.09375 | 2 | [] | no_license | package yousef.example.com.baking.activities;
import android.app.LoaderManager;
import android.content.AsyncTaskLoader;
import android.content.Intent;
import yousef.example.com.baking.idlingResource.SimpleIdlingResource;
import yousef.example.com.baking.utils.JsonUtils;
import yousef.example.com.baking.R;
import yous... | true |
b6c5237b0a9f5b63d5430c4de829d42ea9ce5ad1 | Java | BulkSecurityGeneratorProject/lookbrbackendv2 | /src/main/java/com/lookbr/backend/config/CacheConfiguration.java | UTF-8 | 5,152 | 1.789063 | 2 | [] | no_license | package com.lookbr.backend.config;
import io.github.jhipster.config.JHipsterProperties;
import org.ehcache.config.builders.CacheConfigurationBuilder;
import org.ehcache.config.builders.ResourcePoolsBuilder;
import org.ehcache.expiry.Duration;
import org.ehcache.expiry.Expirations;
import org.ehcache.jsr107.Eh107Config... | true |
f00ae16b95190384bd890b27b80c28bd4c9fe11c | Java | liu67224657/toolsplatform | /webapps/wiki/src/com/enjoyf/wiki/dao/CardOpinionDao.java | UTF-8 | 5,127 | 2.21875 | 2 | [] | no_license | package com.enjoyf.wiki.dao;
import com.enjoyf.framework.jdbc.bean.DataBean;
import com.enjoyf.framework.jdbc.exception.JoymeDBException;
import com.enjoyf.framework.jdbc.impl.BaseJDBCDAOImpl;
import com.enjoyf.wiki.bean.CardOpinion;
import com.enjoyf.wiki.bean.PageBean;
import java.sql.Connection;
import java.sql.Re... | true |
4eeafb862ff0a939b65038f6d6fd7158399b1b3e | Java | TGCrystal/Javatan | /src/edu/rpi/cs/csci4960/s21/javatan/Player.java | UTF-8 | 9,834 | 3.4375 | 3 | [] | no_license | package edu.rpi.cs.csci4960.s21.javatan;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
/**
* This class is used to keep track of the player's cards, color, and victory points
*
* @author Chuanfeng Xiong
* @author Chris Lamberston
* @a... | true |
1408a51bb2f7b05e46d3317beaf3555552907c4d | Java | SrishtiR/data_structures_algorithms | /Arrays/SearchInSortedRotated.java | UTF-8 | 1,337 | 3.890625 | 4 | [] | no_license | public class SearchInSortedRotated {
/*10 Searching for an element in a sorted and rotated array */
public int searchInSortedRotatedArray(List<Integer> arrayList, int element){
int pivot = 0;
int ret1,ret2;
int m=0;
for(int i=1;i<arrayList... | true |
76607e9d567b3d7eff949aedf82e75f454d3e2b1 | Java | pumbas600/PathFindingVisualiser | /src/nz/pumbas/Utilities/HeapFiles/Heap.java | UTF-8 | 3,464 | 3.65625 | 4 | [] | no_license | package nz.pumbas.Utilities.HeapFiles;
import java.lang.reflect.Array;
public class Heap<T extends HeapItem<T>> {
private T[] items;
private int currentItemCount;
public Heap(Class<T> clazz, int maxHeapSize) {
@SuppressWarnings("unchecked cast")
final T[] array = (T[]) Array.newInstance... | true |
c26267f1e4f1cdf6e616df8d873f2382afdc4a43 | Java | pablotron/swing-json | /src/org/pablotron/swingjson/AlignmentParser.java | UTF-8 | 837 | 2.625 | 3 | [
"MIT"
] | permissive | package org.pablotron.swingjson;
import java.util.Map;
import java.util.HashMap;
import com.google.gson.JsonPrimitive;
public final class AlignmentParser {
private AlignmentParser() {}
private static final Map<String, Float> lut = new HashMap<String, Float>() {{
put("left", 0.0f);
put("right", 1.0f);
... | true |
d0018fa0168cf96a1fb3d263bc5c7c2ceb74a835 | Java | MinaShar/JAVA_problems | /src/bfs/CitySmallestNeighbors.java | UTF-8 | 3,883 | 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 bfs;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
/**
*
* @author misaac
*/
public clas... | true |
4bb98662f3cd580b8db81851024cafd60b041a8f | Java | alejandrosubero/herocu-backend | /src/main/java/com/backenwebmail/modelo/Feedback.java | UTF-8 | 970 | 2.09375 | 2 | [] | no_license | package com.backenwebmail.modelo;
import javax.validation.Valid;
import javax.validation.constraints.Email;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import org.springframework.stereotype.Component;
import com.fasterxml.jackson.anno... | true |
aaa9cd164e969f5567e6edfc185eda315ff7c488 | Java | malvarez27/cmsi281 | /josephus/CircularLinkedList.java | UTF-8 | 2,680 | 3.421875 | 3 | [] | no_license | public class CircularLinkedList extends AbstractLinkedList implements CircularCollectible {
Node last;
public CircularLinkedList() {
super();
last = null;
}
public CircularLinkedList(String[] elements) {
super(elements);
}
public boolean isEmpty() {
return n =... | true |
937e4b09dcc867de6fc96cec7fa94de6a702015d | Java | kuoche1712003/TimeSheet | /src/main/java/JDBC/WorkHourDetailDAO.java | UTF-8 | 5,173 | 2.453125 | 2 | [] | no_license | package JDBC;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util. *;
import Bean.*;
public class WorkHourDetailDAO {
Connection conn = null;
Statement stmt = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
public WorkH... | true |
7b7d9654c051942457be0751f949508365126174 | Java | varunagrawal/TicTacToe | /Online_Tic_Tac_Toe/src/java/tictactoe/TicTacToe.java | UTF-8 | 1,827 | 3.34375 | 3 | [] | no_license | package tictactoe;
/**
*
* @author Varun Agrawal
*/
public class TicTacToe {
/**
* @param args the command line arguments
*/
// public static void main(String[] args) {
// //System.out.println("This is my TicTacToe game");
//
// TicTacToe game = new TicTacToe(); ... | true |
cc10d3e28b7023da1268fec723be4d30abb73f3b | Java | PranaySingh13/Spring-Boot | /9_SpringBoot_Swagger/src/main/java/com/gk/controller/BookController.java | UTF-8 | 1,472 | 2.359375 | 2 | [] | no_license | package com.gk.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariab... | true |
79260b558c8f5d1880c69e56267ab0865d04f615 | Java | caowenSarah/TestCalulate | /TestCalculate.java | UTF-8 | 826 | 2.671875 | 3 | [] | no_license | package test;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class TestCalculate {
Calculate cal;
@Before
public void setUp() throws Exception {
//开始竟然漏掉了这句
cal = new Calculate();
}
@After
public void tearDown() th... | true |
f21648c00859cdd99bd981832a34de39c9c2180f | Java | JetBrains/teamcity-rest | /src/jetbrains/buildServer/server/rest/data/locator/definition/FinderLocatorDefinition.java | UTF-8 | 2,215 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2000-2023 JetBrains s.r.o.
*
* 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 agre... | true |
1e35fd152c789396db01dcb8a0fed82fb32ab2b6 | Java | cckmit/b2b | /src/tools/util/RandomID.java | UTF-8 | 635 | 2.15625 | 2 | [] | no_license | package tools.util;
import java.io.PrintStream;
public class RandomID
{
public static String GenTradeId()
{
String str = "";
RandomStrg.setCharset("a-zA-Z0-9");
RandomStrg.setLength("15");
try
{
RandomStrg.generateRandomObject();
str = RandomStrg.getRandom();
}
... | true |
3449759b3af61ae125d8d757d7335924461d7c6f | Java | stadnytskyivp/RestAssuredTraning | /src/test/java/googleMapsPlaceAPI/ParsePesponseData.java | UTF-8 | 2,167 | 2.1875 | 2 | [] | no_license | package googleMapsPlaceAPI;
import data.Resources;
import data.ReusableMethods;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
im... | true |
b596ae8eec12930f719267966bc5fa5a4619eabf | Java | qq451682583/Editor | /Editor/src/com/LZH/taskCore/thread/TaskExecuteThread.java | UTF-8 | 2,051 | 3.1875 | 3 | [] | no_license | package com.LZH.taskCore.thread;
import com.LZH.Tools.Utils;
import com.LZH.taskCore.queue.TaskQueue;
import com.LZH.taskCore.task.Task;
import android.os.Looper;
/**
* 执行任务队列所用的循环。
*/
public class TaskExecuteThread extends Thread {
/** 待执行的任务队列。 */
private TaskQueue mTaskQueue = null;
/** 任务队列处理线程出现了问题。 */... | true |
e3c6ebe24cfd3303bb61e4750408ed8a90c64374 | Java | leeef/AuctionOne | /app/src/main/java/com/hlnwl/auction/ui/release/GoodsSpecificationActivity.java | UTF-8 | 3,966 | 1.960938 | 2 | [] | no_license | package com.hlnwl.auction.ui.release;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.allen.library.Su... | true |
4ce1e70cb1fccb85032ee7b094c3a5bf695230de | Java | yizj/myblog | /src/main/java/com/zjl/myblog/controller/UserController.java | UTF-8 | 1,998 | 2.25 | 2 | [] | no_license | package com.zjl.myblog.controller;
import com.zjl.myblog.annotation.Log;
import com.zjl.myblog.api.BaseResponse;
import com.zjl.myblog.constant.ViewConsts;
import com.zjl.myblog.domain.UserDO;
import com.zjl.myblog.dto.UserDto;
import com.zjl.myblog.service.UserService;
import com.zjl.myblog.util.BaseResponseUtil;
imp... | true |
8ce968da163ebe6d229e46a60af7aca0e4e78754 | Java | isaacsanders/CSSE230TeamProject | /src/LoginServlet.java | UTF-8 | 3,780 | 2.8125 | 3 | [] | no_license | import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
/**
* Servlet for talking to the web page to take in a user's signup information
*
* @author mccormjt. Created Feb 10, 2013.
*/
public class LoginServlet extends HttpServlet {
private final String EMPTY = "";
/**
* takes in the user inp... | true |
00f0e24623315c529be9fe35a8a7b2a897bb1832 | Java | softwareengineerhub/itea-advanced4 | /JAX-WS/remote-calculator/src/main/java/com/app/SimpleCalculator.java | UTF-8 | 91 | 2.3125 | 2 | [] | no_license | package com.app;
public interface SimpleCalculator {
public int add(int a, int b);
}
| true |
44293640c774ae16ae5bc52725f8d7693086c833 | Java | COMP-353/Web-Career-Portal | /Backend/webcareerportal/src/main/java/com/comp353/webcareerportal/models/JobCategory.java | UTF-8 | 697 | 2.15625 | 2 | [] | no_license | package com.comp353.webcareerportal.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import lombok.Getter;
... | true |
be0a6b56acd9bbc5d786be923b87beeb06d6968f | Java | yillyas/cs622 | /CS622_Assignment1_CarRent_Illyas/src/carRent/VehicleRepository.java | UTF-8 | 527 | 1.992188 | 2 | [] | no_license | package carRent;
import java.util.HashMap;
import java.util.LinkedList;
public class VehicleRepository {
public static LinkedList<Vehicle> allVehicle = new LinkedList<Vehicle>();
public static HashMap<Integer, LinkedList<Vehicle>> vehicleByZip = new HashMap<Integer, LinkedList<Vehicle>>();
public static HashMap<... | true |
2f109fbab97f63304ab7168425f513fd4e28d5db | Java | Home-144/homework-java01 | /homework-java02/TasksCaseLib.java | UTF-8 | 10,848 | 3.5 | 4 | [] | no_license | package ua.univer.base.homework;
import java.util.Scanner;
public class TasksCaseLib {
public static int Task04DayInMonth(int month) {
// int month;
int day=0;
switch (month) {
case 1, 3, 5, 7, 8, 10, 12:
day = 31;
break;
... | true |
5128cfe177b49de650a9e0ed376cbd808b2575bb | Java | NoBugException/MaterialDesign | /app/src/main/java/com/design/material/materialdesign/loading/LoadingBean.java | UTF-8 | 376 | 1.789063 | 2 | [] | no_license | package com.design.material.materialdesign.loading;
import com.design.material.materialdesign.BaseBean;
import com.design.material.materialdesign.MaterialItemViewType;
/**
* Created by beixinyuan_android on 2018/3/22.
*/
public class LoadingBean extends BaseBean {
@Override
public int getItemViewType() {
... | true |
6fc98036da57f6b33afa26af2ba17c2f7fd48e6a | Java | jaesonchen/java-study | /src/main/java/com/asiainfo/common/dao/CommonDao.java | UTF-8 | 1,156 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.asiainfo.common.dao;
import java.io.Serializable;
import java.util.List;
/**
*
* @Description: hibernate通用dao
*
* @author chenzq
* @date 2019年3月21日 下午1:05:42
* @version V1.0
* @Copyright: Copyright(c) 2019 jaesonchen.com Inc. All rights reserved.
*/
public interface CommonDao {
... | true |
b6d2e5dfe3cf25461ab347760355f060f5b44eb3 | Java | SharafGabel/GYMTONIK | /src/service/HistoriqueService.java | UTF-8 | 10,438 | 2.484375 | 2 | [] | no_license | package service;
import model.*;
import org.hibernate.*;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class HistoriqueService {
private ... | true |
c7bc17a230c9caa4169de045578f3ae05ce8c927 | Java | jbalusu4341/week7project-update | /src/HeavyBike.java | UTF-8 | 769 | 3.03125 | 3 | [] | no_license | public class HeavyBike extends BikeBuilder {
public HeavyBike() {
this.name = "Heavy Bikes";
}
@Override
public BikeBuilder addBikeName() {
this.workshop.add("Heavy Bike");
return this;
}
@Override
public BikeBuilder addWork() {
this.workshop.... | true |
b5a7db8aca7b92410a320691a155917349792cdd | Java | omko0o/ctct2 | /political-system-service/src/main/java/com/viettel/politicalsystem/workflows/dao/TreeNodesDAOImpl.java | UTF-8 | 3,588 | 2.15625 | 2 | [] | no_license | package com.viettel.politicalsystem.workflows.dao;
import java.util.List;
import java.util.Optional;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import org.springframework.beans.factory.annotation.Autowired;
import com.viettel.politicalsystem.organizations.bo.SysOrganizationBO;
public c... | true |
a8e32dc157484d75d6342b55d9a67926d0a0f94a | Java | elastos/Elastos.SDK.Keypair.Java | /src/main/java/io/github/novacrypto/bip44/Purpose.java | UTF-8 | 2,233 | 2.546875 | 3 | [] | no_license | /*
* BIP44
* Copyright (C) 2017-2018 Alan Evans, NovaCrypto
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later versio... | true |
f210d113d2df8b8b9b6cc9d0ed1c2b84a2d07090 | Java | kunwar999/BDD | /BDD/src/main/java/com/example/bdd/qa/BddFrame.java | UTF-8 | 1,105 | 2.640625 | 3 | [] | no_license | package com.example.bdd.qa;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class BddFrame extends JFrame implements ActionListener {
private static final long serialVersi... | true |
7bbc1657d840dbdaed3ffbe1a8158c5609632e97 | Java | Lyriaaw/ldapator | /asi_test/src/Student.java | UTF-8 | 1,030 | 2.640625 | 3 | [] | no_license | public class Student {
private String userId;
private String password;
private String commonName;
private String surname;
public Student(String userId, String password, String commonName, String surname) {
this.userId = userId;
this.password = password;
this.commo... | true |
d001835b2c7b734803b1e8792c0bf2cffed0aab1 | Java | chrlembeck/codegen | /codegen-generator/src/main/java/de/chrlembeck/codegen/generator/lang/BooleanLiteral.java | UTF-8 | 1,758 | 3.34375 | 3 | [
"BSD-3-Clause"
] | permissive | package de.chrlembeck.codegen.generator.lang;
import de.chrlembeck.codegen.generator.Environment;
import de.chrlembeck.codegen.grammar.CodeGenParser.LiteralContext;
/**
* Repräsentiert die Boolean Literale True und False innerhalb der Template-Grammatik.
*
* @author Christoph Lembeck
*/
public final class Boolea... | true |
0f673d20e3c49cd8c8b2b961eee36a475297d673 | Java | ArturSydor/aop-example | /src/main/java/com/example/aop/aopexample/business/Facebook.java | UTF-8 | 216 | 2.015625 | 2 | [] | no_license | package com.example.aop.aopexample.business;
import org.springframework.stereotype.Service;
@Service
public class Facebook implements Company {
@Override
public int getRevenue() {
return 1;
}
}
| true |
7118f40790b26c491e0ab9061e2bde8b69e31882 | Java | hockeyd5/GrepConsole | /src/krasa/grepconsole/action/HighlightManipulationAction.java | UTF-8 | 1,958 | 2.0625 | 2 | [] | no_license | package krasa.grepconsole.action;
import com.intellij.execution.filters.Filter;
import com.intellij.execution.impl.ConsoleViewImpl;
import com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView;
import com.intellij.execution.ui.ConsoleView;
import com.intellij.openapi.editor.Editor;
import com.intellij.ope... | true |
fb6755a05de74e4133a6a416331586d256f9e9f2 | Java | MJCoderMJCoder/AutoInsuranceManageSystem | /src/com/lzf/util/ExcelUtil.java | UTF-8 | 18,596 | 2.703125 | 3 | [] | no_license | package com.lzf.util;
import java.io.File;
import java.util.Vector;
import com.lzf.bean.AutoInsurance;
import jxl.Sheet;
import jxl.Workbook;
import jxl.format.Border;
import jxl.format.BorderLineStyle;
import jxl.format.Colour;
import jxl.read.biff.BiffException;
import jxl.write.Label;
import jxl.wri... | true |
943a436fbe1abda59a2053b71a6c5f9382ee2609 | Java | amanwebdev02/SortFile | /src/main/java/com/example/testing/constants/AppConstant.java | UTF-8 | 1,514 | 2.15625 | 2 | [] | no_license | package com.example.testing.constants;
import java.util.ArrayList;
import java.util.HashMap;
public class AppConstant {
/*public static final String FILE_PATH_PREFIX = "/Users/mmt7465/Desktop/SortFile";
public static String INPUT_FILE_NAME = FILE_PATH_PREFIX + "/src/main/resources/customer.txt";
public s... | true |
01fa916e9b8bfc272d0c53ee9226bb324194fdc6 | Java | vcanumalla/competitive-coding | /src/Codeforces/r612/B.java | UTF-8 | 1,551 | 3.15625 | 3 | [] | no_license | package Codeforces.r612;
import java.util.*;
import java.util.*;
import java.util.*;
public class B {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int k = sc.nextInt();
HashSet<String> cardSet= new HashSet<>();
while (... | true |
5d3325223accc5242d465ce7c2214e2e66715a07 | Java | azuzugonzales/method_program | /testdata/tasks/t3/Factorial.java | UTF-8 | 701 | 3.3125 | 3 | [] | no_license | package by.bsu.tasks.t3;
import java.math.BigInteger;
public class Factorial {
public static void main(String args[])
{
long start_time= System.currentTimeMillis();
BigInteger data= new BigInteger("1");
for(int index=1;index<=100;++index)
data= data.multiply(new BigInteger(... | true |
f07b2386d9b7f0180ff78c227355d616b50c3018 | Java | allenlili/vc-language-compiler-by-java | /src/TreeDrawer/LayoutVisitor.java | UTF-8 | 12,750 | 2.78125 | 3 | [
"MIT"
] | permissive | /*
* LayoutVisitor.java
*/
package VC.TreeDrawer;
import java.awt.*;
// import VC.ASTs.Visitor;
import VC.ASTs.*;
import VC.Scanner.SourcePosition;
public class LayoutVisitor implements Visitor {
private final int BORDER = 5;
private final int PARENT_SEP = 30;
private FontMetrics fontMetrics;
pr... | true |
c3e85aa194d329e90e10879753a891a5abb34985 | Java | zhoumushui/NetState | /src/main/java/com/zms/netstate/NetChangeReceiver.java | UTF-8 | 700 | 2.203125 | 2 | [] | no_license | package com.zms.netstate;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.widget.Toast;
/**
* Created by AlexZhou on 2015/4/20.
* 15:58
*/
public class NetChangeReceiver extends BroadcastReceiver {
public st... | true |
6997cbaa007ac7ec597af4320c1962ba5b404f55 | Java | zxs8954/java | /List/src/main/java/com/java/java2_10/java10/demo3/Animal.java | UTF-8 | 106 | 2.265625 | 2 | [] | no_license | package com.java.java2_10.java10.demo3;
public abstract class Animal {
public abstract void eat();
}
| true |
1b429ad3b7a438d9035240f38dca40a732c50a5e | Java | jtrentes/jtr_test | /src/main/java/big/domain/factories/MyClass9Builder.java | UTF-8 | 488 | 2.0625 | 2 | [] | no_license | package big.domain.factories;
import big.domain.MyClass9;
public class MyClass9Builder
{
private MyClass9 myclass9;
public MyClass9Builder attribute (String attribute)
{
myclass9.setAttribute (attribute);
return this;
}
public MyClass9 build ()
{
return myclass9;
}
public MyClas... | true |
8288becdfd41384bfffff3a11d0228792843c062 | Java | Lunarprom/LeetCode-Notes | /Stack/LC394DecodeString.java | UTF-8 | 2,865 | 4 | 4 | [] | no_license | public class LC394DecodeString {
/**
* 用栈来做:
* 1.如果字符是字母,加到StringBuilder;
* 2.如果是数字,就更新数字(原本的乘以10再加上当前的个位数)
* 3.如果是左括号[,就把数字压到栈里去,StringBuilder curr也变成字符串(candidate of result)压进栈里,再新建一个SB
* 4.如果是右括号,说明当前的完事了,用一个tmp接着当前的curr(待重复的)。弹出数字,弹出字符串用curr接着(这是全局字符串candidate of result),
* 然后按次数重复tmp,append到curr... | true |
efe8adc829d54cf9dc8b198cd3455597418e6eea | Java | ivantomicgit/FirmaVP | /src/main/java/com/firmavp/service/impl/VehicleMaintenanceCategoryServiceImpl.java | UTF-8 | 3,526 | 2.28125 | 2 | [] | no_license | package com.firmavp.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.firmavp.dto.VehicleMaintenanceCategoryDTO;
import com.... | true |
b94fb84cff5314090bb02e1b0b3a7aa702a7e146 | Java | VRDate/richfaces-qa | /metamer/application/src/main/java/org/richfaces/tests/metamer/bean/abstractions/DateInputValidationBeanImpl.java | UTF-8 | 2,562 | 1.75 | 2 | [] | no_license | /*
* JBoss, Home of Professional Open Source
* Copyright 2010-2016, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of ... | true |
2e19d206608d6426bd0bf6724fa5040b68036c2d | Java | yueny/exportx | /src/main/java/com/whosly/infra/exportx/metadata/FieldData.java | UTF-8 | 553 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.whosly.infra.exportx.metadata;
import com.whosly.rapid.lang.mask.instance.AbstractMaskBo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FieldData extends AbstractMaskBo {
... | true |
86ab167c292c914a792874cf3595df17e842594b | Java | was-kamil/kamil-was-calculator | /kodilla-good-patterns/src/main/java/com/kodilla/good/patterns/challenges/food2door/data/BuyingDto.java | UTF-8 | 328 | 2.4375 | 2 | [] | no_license | package com.kodilla.good.patterns.challenges.food2door.data;
public class BuyingDto {
private User user;
private boolean isDelivered;
public BuyingDto(User user, boolean isDelivered) {
this.user = user;
this.isDelivered = isDelivered;
}
public User getUser() {
return user;... | true |
12be091a1a49d128e27801986929f7c94a94b705 | Java | moutainhigh/WINSHARE | /ec-core-trunk/src/main/java/com/winxuan/ec/model/product/ProductSaleCT.java | UTF-8 | 2,292 | 1.882813 | 2 | [] | no_license | /*
* @(#)ProductSaleCT.java
*
*/
package com.winxuan.ec.model.product;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import jav... | true |
189b6ec9732fde332b0bed234f72bd2c38afd3b8 | Java | dpwspoon/k3po | /lang/src/main/java/org/kaazing/k3po/lang/internal/ast/AstReadConfigNode.java | UTF-8 | 3,769 | 2.078125 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | /**
* Copyright 2007-2015, Kaazing Corporation. All rights reserved.
*
* 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 require... | true |
c0ca778cb5231ca79f2f6a282a512162084ff95a | Java | cao12345cong/ItBook | /src/com/xtx/itbook/main/BaseActivity.java | UTF-8 | 4,675 | 2.375 | 2 | [] | no_license | /*
* 文件名:BaseActivity.java
* 描述:TODO
* 修改人:王鹏
* 修改时间:下午3:19:48
* 修改内容:待定.
* @since
*/
package com.xtx.itbook.main;
import java.util.List;
import net.tsz.afinal.FinalActivity;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import androi... | true |
4e2560d5c69f92a4744020de2f0bc15836943007 | Java | shuixi2013/AmapCode | /app/src/main/java/com/sijla/lj/L.java | UTF-8 | 5,532 | 2.359375 | 2 | [] | no_license | package com.sijla.lj;
public class L {
private static Class<?> a = Number.class;
private static Class<?> b = Byte.class;
private static Class<?> c = Short.class;
private static Class<?> d = Integer.class;
private static Class<?> e = Long.class;
private static Class<?> f = Float.class;
priva... | true |
7295cea7a0a9ec885d33de1d8400c1b024fb974b | Java | Stephyowl/ICS4UI-Quadrilaterals | /QuadrilateralsAssignment/Quadrilateral.java | UTF-8 | 3,837 | 3.296875 | 3 | [] | no_license | //gotitfam
abstract class Quadrilateral {
abstract int findArea();
abstract int findPerimeter();
}
class Main{
public static void main(String[] args){
// create all the shit
// Square sq = new Square();
// Rectangle rt = new Rectangle();
// Rhombus rmb = new Rhombus();
// Parallelogram prl = new ... | true |
a95497d4db15f1625c6a3d708141918cf4f05698 | Java | chilamoya/broking | /src/com/tafadzwa/moyo/insurance/module/risk/CustomerTopComponent.java | UTF-8 | 5,918 | 1.617188 | 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.tafadzwa.moyo.insurance.module.risk;
import com.innate.cresterp.medical.hospital.entities.PatientRecord;
import com.innat... | true |
aa0cfa068137f8e102e408117430054aee261ec0 | Java | Interests-Driven/dataProcess | /src/main/java/com/example/demo/service/temp/impl/PatientServiceImpl.java | UTF-8 | 10,183 | 1.882813 | 2 | [] | no_license | package com.example.demo.service.temp.impl;
import com.alibaba.fastjson.JSONObject;
import com.example.demo.dao.temp.standard.IPatientDao;
import com.example.demo.service.standard.IDataService;
import com.example.demo.common.util.ExcelUtil;
import com.example.demo.common.util.TimeUtil;
import lombok.extern.slf4j.Slf4j... | true |
7050948ffcc854471c4fec6c4975d14da2d20f88 | Java | 137704396/VUE-ELEMENT-SHIRO-ADMIN | /common-admin-console/data/src/main/java/com/admin/exception/CommonException.java | UTF-8 | 790 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2020-2020 通用后台 All rights reserved.
*/
package com.admin.exception;
import lombok.Data;
/**
* 自定义异常
*/
@Data
public class CommonException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String msg;
private int code = 500;
public CommonExce... | true |
d0cd08fc2443c32f33c237193c9961c31dfb3161 | Java | andrewaylett/atunit | /src/example/java/eu/aylett/atunit/example/ExampleGuiceAndMockitoTest.java | UTF-8 | 2,047 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package eu.aylett.atunit.example;
import com.google.inject.Inject;
import eu.aylett.atunit.*;
import eu.aylett.atunit.example.subjects.GuiceUserManager;
import eu.aylett.atunit.example.subjects.Logger;
import eu.aylett.atunit.example.subjects.User;
import eu.aylett.atunit.example.subjects.UserDao;
import org.junit.Tes... | true |
9dc762b03748c857dcf2f4ee2132e2751f317caf | Java | CedricXing/CPSClient | /jar/Fel/src/com/greenpineyu/fel/FelEngine.java | UTF-8 | 2,214 | 2.296875 | 2 | [] | no_license | package com.greenpineyu.fel;
import com.greenpineyu.fel.compile.CompileService;
import com.greenpineyu.fel.context.FelContext;
import com.greenpineyu.fel.function.FunMgr;
import com.greenpineyu.fel.function.Function;
import com.greenpineyu.fel.optimizer.Optimizer;
import com.greenpineyu.fel.parser.FelNode;
imp... | true |
7087c7a1e9c5516d157559dbb741ffab29548fb6 | Java | dingwilson/StockPrices | /app/src/main/java/com/wilsonding/stockprices_wilsonding/MainActivity.java | UTF-8 | 8,395 | 2.90625 | 3 | [] | no_license | /******************************************************************************
* This is a stock price picker. Users enter a stock quote ticker symbol, then
* receive relevant price information about that stock.
*
* Name: Wilson Ding
* ID: wxd130130
* Class: CS 4301
**************************************... | true |