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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fcb4bda621a7d705a09f7bbc747f398fe30b1da2 | Java | Qionglou001/java-design-patterns | /src/pattern/proxy/dynamicproxy/GamePlayerHandler.java | UTF-8 | 652 | 2.859375 | 3 | [] | no_license | package pattern.proxy.dynamicproxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class GamePlayerHandler implements InvocationHandler{
private Object proxy = null;
public GamePlayerHandler(Object proxy) {
this.proxy = proxy;
}
@Override
... | true |
1907e3adb3400f2fa4a11aa62c1bc6a1c5e9804a | Java | kinglixiaotians/SeleniumDemo | /src/main/java/com/selenium/flx/systemManagement/queryShopScoreAlter.java | UTF-8 | 2,239 | 2.015625 | 2 | [] | no_license | package com.selenium.flx.systemManagement;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.testng.Reporter;
import static com.selenium.flx.flx.journal;
import static com.selenium.flx.flxPublicMethod.switchIframe;
import static com.selenium.flx.flxPublicMethod.taskScreenShot;
import sta... | true |
7fc86cbec7d794d7be28310cc53c0c2924347d0a | Java | oulianxian/cat | /src/main/java/com/kukuou/cat/controller/HelloController.java | UTF-8 | 944 | 1.960938 | 2 | [] | no_license | package com.kukuou.cat.controller;
import com.kukuou.cat.common.exception.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* $int... | true |
a443c4b1bb62fd8e963fa85036cdc3327ef98cb8 | Java | zhnagqb/jenkins-demo | /src/main/java/multiple/learn/PoolTest01.java | UTF-8 | 3,499 | 3.609375 | 4 | [] | no_license | package multiple.learn;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* @Description:
* @Author: zhangqingbiao
* @Date: 2021/9/11 13:14
*/
public class PoolTest01 {
public static void main(String[] args) throws Interrupt... | true |
f00ec6accec72947fc3a9d83791b6660760b0d3e | Java | Trouble1277/ssmproject | /src/main/java/com/controller/FundControl.java | UTF-8 | 3,360 | 2.09375 | 2 | [] | no_license | package com.controller;
import com.DBUtile.LimitAndSearchUtile;
import com.DBUtile.StrTransformObject;
import com.alibaba.fastjson.JSON;
import com.dao.FundDao;
import com.entity.FundEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spri... | true |
45946e18408dc8138215da226f9798e59d782f0b | Java | nmovchanenko/TCSimpleCrms | /src/main/java/framework/BaseTest.java | UTF-8 | 665 | 1.945313 | 2 | [] | no_license | package framework;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
public class BaseTest {
private PropertyManager props = new PropertyManager("application.properties");
protected RemoteWebDriver driver = null;
protec... | true |
cdaa03cdf43ead52de97eb2c04d2c95b3e0ad6b8 | Java | HenryXi/use-wheel | /xstream/src/main/java/com/henryxi/xstream/ConvertXmlToObject.java | UTF-8 | 908 | 2.84375 | 3 | [] | no_license | package com.henryxi.xstream;
import com.thoughtworks.xstream.XStream;
public class ConvertXmlToObject {
public static void main(String[] args) {
String xml = "<user>\n" +
" <name>henry</name>\n" +
" <age>27</age>\n" +
" <addresses>\n" +
" ... | true |
f8d50796ad204fb00077d4405c8626b8c9b68206 | Java | AndreasBorgk/45_CDIO_3_maven | /src/main/java/MonopolyJunior/MoneyCard.java | UTF-8 | 449 | 3.125 | 3 | [] | no_license | package MonopolyJunior;
import static MonopolyJunior.RunGame.gui;
public class MoneyCard extends ICards {
int value;
public MoneyCard(String name, int value) {
super(name);
this.value = value;
}
@Override
void handlePlayer(Player player) {
player.addBalance(value); // ad... | true |
9becdc1cc72c47620bff6a773f769a26e4aa55bd | Java | StarT-Teg/GeekBrains.Level1 | /src/lesson_7/Plate.java | UTF-8 | 605 | 3.5 | 4 | [] | no_license | package lesson_7;
public class Plate
{
private int foodInPlate;
public Plate (int foodInPlate){
this.foodInPlate = foodInPlate;
}
public void takeFoodFromPlate(int appetite)
{
foodInPlate -= appetite;
}
public boolean checkFoodInPlate(int appetite)
{
retur... | true |
af63292bca63d57a5edc9fee2a0503b698886e57 | Java | goodie-id/sdk-android | /mylibrary/src/main/java/com/goodie/sdk/android/data/listener/SetLoginListener.java | UTF-8 | 297 | 1.75 | 2 | [] | no_license | package com.goodie.sdk.android.data.listener;
import com.goodie.sdk.android.data.response.LoginResponse;
/**
* Created by asep.surahman on 16/01/2019.
*/
public interface SetLoginListener {
void onSuccess(LoginResponse loginResponse);
void onError(Throwable throwable);
}
| true |
94c2841421977e409c4871d6bb58cfdb36356ab0 | Java | snorristurluson/AntlrCalc | /src/main/java/calcplugin/CalcColorSettingsPage.java | UTF-8 | 1,812 | 2.28125 | 2 | [] | no_license | package calcplugin;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
import com.intellij.openapi.options.colors.AttributesDescriptor;
import com.intellij.openapi.options.colors.ColorDescriptor;
import com.intellij.openapi.options.colors.ColorSettings... | true |
adf03f506884b8cf32258d1b5cde93408fa23449 | Java | pushpad/pushpad-java | /src/xyz/pushpad/Pushpad.java | UTF-8 | 1,111 | 2.421875 | 2 | [
"MIT"
] | permissive | package xyz.pushpad;
import javax.crypto.spec.SecretKeySpec;
import javax.crypto.Mac;
import java.security.SignatureException;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import javax.xml.bind.DatatypeConverter;
public class Pushpad {
public String authToken;
public St... | true |
c314b54856da95e628aca847c8c38470e4fb88cc | Java | andresSaldanaAguilar/Net-Applications | /JAhorcado/src/logic/Servidor.java | UTF-8 | 4,103 | 2.8125 | 3 | [] | no_license | package logic;
import java.nio.channels.*;
import java.nio.*;
import java.net.*;
import java.util.Iterator;
import java.util.Random;
public class Servidor {
public static void main(String[] args) {
int pto = 9999;
Random aleatorio = new Random(System.currentTimeMillis());
try {
... | true |
fe21875c5156fc81ba4f6c898a63898c7c5ba4ae | Java | panjiesw/sw-v-std | /v-std-api/src/main/generated/com/panjiesw/std/api/modules/ApiModule_ValidatorFactory.java | UTF-8 | 794 | 2.0625 | 2 | [] | no_license | package com.panjiesw.std.api.modules;
import dagger.internal.Factory;
import javax.annotation.Generated;
import javax.validation.Validator;
@Generated("dagger.internal.codegen.ComponentProcessor")
public final class ApiModule_ValidatorFactory implements Factory<Validator> {
private final ApiModule module;
public... | true |
ecae6111644c658cfd9fe383719ec58ddf833c5a | Java | Samet-MohamedAmin/bookstore_springboot_mongo | /webapp/src/main/java/com/app/DemoApplication.java | UTF-8 | 633 | 1.8125 | 2 | [] | no_license | package com.app;
import com.domain.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.apache.log4j.Logger;
import org.springframework.scheduling.annotation.Enab... | true |
45717662b0cb72d0728d43bf9b818734e089485f | Java | Acherbib/tverhoken | /src/main/java/fr/norsys/tpTdd/modeles/Video.java | UTF-8 | 3,946 | 2.84375 | 3 | [] | no_license | package fr.norsys.tpTdd.modeles;
import java.util.Date;
/**
* Classe qui represente une video que le magasin a a sa disposition.
*/
public class Video {
public static final String DESSINS_ANIME = "Dessin animé";
public static final String ACTION = "Action";
public static final String THRILLER = "Thrill... | true |
908ef6cd39dc4800d077c869b9b617ffd464be0c | Java | yijuqingshi/vote | /src/com/zyh/vote/model/VoteForm.java | UTF-8 | 1,348 | 2.140625 | 2 | [] | no_license | package com.zyh.vote.model;
import java.util.List;
public class VoteForm extends BaseModel{
private int id;
private int question_number;
private Admin admin_id;
private List<Question> questions;
private String f_id;
public String getF_id() {
return f_id;
}
public void s... | true |
aa008963949dbd05397b0a0f1f5dc70ca3d8068a | Java | hediturki123/Gaufre | /src/main/java/Backend/Backend.java | UTF-8 | 2,361 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | package Backend;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
//Définie les principales règles du jeu
public class Backend {
public Backend(){
}
public void joue() {
boolean perdu = false;
Scanner myInput = new Scanner(Syste... | true |
0788da0b51183ea529d76d939c89d7e1ca90c594 | Java | TheJuanAndOnly/99919drbmgm545498 | /app/src/main/java/com/thejuanandonly/gradeday/ScheduleActivity.java | UTF-8 | 7,509 | 2.140625 | 2 | [] | no_license | package com.thejuanandonly.gradeday;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import... | true |
1523b92022302f1fa798c600446438f7b38ed83c | Java | mohamedazab/Competitive-programming | /src/DP/TravelingSalesMan.java | UTF-8 | 582 | 2.4375 | 2 | [] | no_license | package DP;
public class TravelingSalesMan {
static int dist[][];//distance from to
static int n;
static int mem[][];
//mask &(1<<i)==(1<<i) bit i is on
//mask|=(1<<j) set bit j to 1
//mask&=~(1<<i)set bit i to 0
//all done mask =2^n-1 or (1<<n-1)
public int tsp(int mask,int pos){
if(mask==(1<<n)-1)
r... | true |
df38c243d8551109bc75e9ff8e1ff001d6aad67c | Java | Jindetta/CV-generator-backend | /src/main/java/fi/tamk/cv/generator/rest/BaseController.java | UTF-8 | 2,734 | 1.929688 | 2 | [] | no_license | /*
Copyright 2019 Hanna Haataja <hanna.haataja@tuni.fi>, Joonas Lauhala <joonas.lauhala@tuni.fi>. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above ... | true |
36d435ca52981e6b4a461743c658a202cde5a81a | Java | JimmyHeavenWu/demo | /src/main/java/com/example/demo/leetcode/PrintBinaryTree.java | UTF-8 | 2,293 | 3.3125 | 3 | [] | no_license | package com.example.demo.leetcode;
import sun.reflect.generics.tree.Tree;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by wuj42 on 8/8/2017.
*/
public class PrintBinaryTree {
public static TreeNode initTree() {
TreeNode tree = new TreeNode(1);
Tr... | true |
d5007d1f0528195e049a09e70cab852663a95678 | Java | dvekeman/javault | /javault-simple-compiler/src/test/java/SimpleJavaCompilerTest.java | UTF-8 | 1,673 | 2.78125 | 3 | [
"MIT"
] | permissive | import static org.junit.Assert.assertEquals;
import java.io.ByteArrayOutputStream;
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.javaault.compiler.a... | true |
f9d2301478a03714318e940b68693cdc2c079000 | Java | nagyist/marketcetera | /trunk/util/src/main/java/org/marketcetera/util/file/OutputStreamWrapper.java | UTF-8 | 4,613 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | package org.marketcetera.util.file;
import java.io.Closeable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.marketcetera.util.misc.ClassVersion;
import static org.marketcetera.util.file.SpecialN... | true |
bcfa413f1849e405ff18b98a8eb8e10ddb36c814 | Java | ecreators/solrTools | /solr-tools-client/client/src/de/ecreators/solr/api/component/ListSelectionHandler.java | UTF-8 | 798 | 2.4375 | 2 | [] | no_license | package de.ecreators.solr.api.component;
import de.ecreators.solr.api.utils.StrategyHandler;
import javax.swing.*;
import java.awt.*;
/**
* @author Bjoern Frohberg, mydata GmbH
*/
public final class ListSelectionHandler extends StrategyHandler<JLabel, Boolean> {
private final ImageIcon icon;
publ... | true |
0baabd4ca1e7985f0e29732264473a438416aab7 | Java | Galigator/sempre | /src/main/java/edu/stanford/nlp/sempre/AggregateFormula.java | UTF-8 | 2,064 | 2.765625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | package edu.stanford.nlp.sempre;
import com.google.common.base.Function;
import fig.basic.LispTree;
import java.util.List;
/**
* 'Aggregate' takes a set and computes some number on that set.
*
* @author Percy Liang
*/
public class AggregateFormula extends Formula
{
public enum Mode
{
count, sum, avg, min, max... | true |
86b124a8fb45721e838fc768346752356cdb6dcb | Java | zkdwx/nowcoder | /nowcoder/src/com/wx/swordMeansOffer/Solution5.java | UTF-8 | 823 | 3.6875 | 4 | [] | no_license | package com.wx.swordMeansOffer;
import java.util.Stack;
/**
* 用两个栈来实现一个队列,完成队列的Push和Pop操作。 队列中的元素为int类型。
*/
public class Solution5 {
Stack<Integer> stack1 = new Stack<Integer>();
Stack<Integer> stack2 = new Stack<Integer>();
public void push(int node) {
stack1.add(node);
}
public int ... | true |
b58902d414f48207de2cac7ed81d33a9df7c742a | Java | jokeofweek/orpg | /src/orpg/server/event/MapEvent.java | UTF-8 | 216 | 1.8125 | 2 | [] | no_license | package orpg.server.event;
import orpg.server.BaseServer;
import orpg.server.systems.MapProcessSystem;
public interface MapEvent {
public void process(BaseServer baseServer, MapProcessSystem mapProcessSystem);
}
| true |
b66699124e846f69b8c8b66109f5da8d462eb0a6 | Java | priyankjain28/androidTrending | /app/src/main/java/com/xapo/challenge/androidtrending/adapter/LanguageAdapter.java | UTF-8 | 3,864 | 2.171875 | 2 | [] | no_license | package com.xapo.challenge.androidtrending.adapter;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widge... | true |
e0167dbd9d82d22851c32532514d21c0613f60ff | Java | fossabot/reloadly-services | /core-components/email-integration/src/main/java/com/reloadly/email/exception/EmailProcessingException.java | UTF-8 | 413 | 2.046875 | 2 | [
"MIT"
] | permissive | package com.reloadly.email.exception;
import com.reloadly.commons.exceptions.ReloadlyException;
/**
* An exception reserved exclusively for handling errors related to Email processing.
*
* @author Arun Patra
*/
public class EmailProcessingException extends ReloadlyException {
public EmailProcessingException()... | true |
14c110d11b9862b4a223b3b2f849b51347f9c966 | Java | sodino/TransparentStatusBar | /TestBasic/src/main/java/com/sodino/transparentstatusbar/PaddingTopRedActivity.java | UTF-8 | 1,612 | 2.3125 | 2 | [] | no_license | package com.sodino.transparentstatusbar;
import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
/**
* Created by Administrator on 2017/1/12.... | true |
892a2c39d412115f5f0eaced66fba92705cebd48 | Java | AxelClavier/team-7 | /Livia's work/TestList.java | UTF-8 | 2,088 | 3.671875 | 4 | [] | no_license | /**
* This is the main
* LT
*/
public class TestList {
public static void main (String args[]) {
//create a Scanner for start-up user interfaces:
//1.Enter a new person data 2.Print Contact List
// 3.Retrieve a person's information by last name 4.Quit the program and save to disk
//5.Start the progr... | true |
ce8493695f31b31c2667430db8b2ef0302f18df4 | Java | svn2github/RefactorIT | /refactorit-core/src/test/projects/durak-game-test/GameScreen.java | UTF-8 | 6,106 | 2.484375 | 2 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.BorderFactory;
import javax.swing.border.Border;
class GameScreen
{
Container mainContainer = DurakApplet.mainContainer;
Client client;
public GameScreen( Client client ) {
this.mainContainer = ma... | true |
8a8ed5ce7aae4340598f8af1475fe8d6e1711963 | Java | marchwind/eeze-project-eeze | /AMANO_Incheon_valet/src/com/terascope/amano/incheon/common/BluetoothPrinterHelper.java | UTF-8 | 15,782 | 1.945313 | 2 | [] | no_license | package com.terascope.amano.incheon.common;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Set;
import com.sewoo.jpos.command.CPCLConst;
import com.sewoo.jpos.command.ESCPOS;
import com.sewoo.jpos.command.ESCPOSConst;
import com.sewoo.jpos.printer.CPCLPrinter;
impo... | true |
404003b21d525089bf588a99f0e33d7bd682d500 | Java | vikas6101/ngbillingTelecom | /src/main/java/com/ngbilling/core/server/persistence/dto/user/AccountTypePricePK.java | UTF-8 | 838 | 2.109375 | 2 | [] | no_license | package com.ngbilling.core.server.persistence.dto.user;
import java.io.Serializable;
import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
/**
* AccountTypePriceDTO composite primary key
*
* @author Panche Isajeski
* @... | true |
d15a9f0a826fb38904efac3580af274158b9a86e | Java | sradhanjali123/UbcPro | /SpringHelloWorld/src/main/java/com/hello/controller/ResponseEventList.java | UTF-8 | 469 | 1.890625 | 2 | [] | no_license | package com.hello.controller;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.ubc.pojo.Event;
public class ResponseEventList {
@Expose
@SerializedName("eventdetails")
private List<Event> eventdatas;
public List<Event>... | true |
02e5eeb42a718e02fdec5c45901bf45a73ab1386 | Java | BaoTran14/MomoApp | /src/main/java/vn.momo/actions/scroll/ScrollInsideModalToText.java | UTF-8 | 3,277 | 2.4375 | 2 | [] | no_license | package vn.momo.actions.scroll;
import io.appium.java_client.MobileDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.TouchAction;
import io.appium.java_client.touch.offset.PointOption;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Interaction;
import net.sere... | true |
de8119cca6dcd18cd59b9fb7ad095f90c663ac93 | Java | mrtrung/loyalty | /src/com/elcom/iwebservice/ProvisioningRequest.java | UTF-8 | 2,715 | 2.25 | 2 | [] | no_license | /**
*-----------------------------------------------------------------------------
* @ Copyright(c) 2012 Vietnamobile. JSC. All Rights Reserved.
*-----------------------------------------------------------------------------
* FILE NAME : ProvisioningReq.java
* DESCRIPTION :
* PRINCIPAL AU... | true |
c248eed4f1117e9ccff25a7d7540cde7dbf6df7b | Java | asami/xmlsmartdoc | /src/main/java/org/xmlsmartdoc/SmartDoc/xhtml/AbstractXHTMLGeneratorBase.java | UTF-8 | 18,245 | 1.90625 | 2 | [] | no_license | /*
* SmartDoc : Ultimate document format based on XML
* Copyright (C) 1998-2003 ASAMI, Tomoharu (asami@XMLSmartDoc.org)
*
* 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 ver... | true |
4bd003db45575228950e4ba5a49e85641b3a08d1 | Java | Supreme15/Project3AssigningSeats | /Main.java | UTF-8 | 856 | 3.796875 | 4 | [] | no_license | import java.util.Scanner;
class Main {
public static void main(String[] args) {
int[] seats = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
//number of seats//
String[] names = new String[15];
//How many names there can be in this code//
for (int i = 0; i <= names.length; i++) {
S... | true |
1d277d8669647aa56e62521d4311dd0bbe60eecb | Java | googleapis/google-http-java-client | /google-http-client/src/test/java/com/google/api/client/http/HttpResponseExceptionTest.java | UTF-8 | 13,994 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | true |
633c0d1ed269ba1e1b0b26ad771db9bfc5a26612 | Java | tingley/globalsight | /main6/envoy/src/java/com/globalsight/everest/page/pageexport/style/mif/Style.java | UTF-8 | 1,302 | 2.46875 | 2 | [] | no_license | package com.globalsight.everest.page.pageexport.style.mif;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* A abstract class that to handle the style node. For example <b> node in DOCX
* document.xml file.
*
*/
public abstract class Style
{
protected abstract String g... | true |
40e43aad144fee0759ec312b113e04aaa59c34d7 | Java | hgivhan/TriuneSearchEngine | /src/main/java/com/example/Services/OtherNamesService.java | UTF-8 | 1,806 | 2.75 | 3 | [] | no_license | package com.example.Services;
import com.example.Models.OtherNames;
import com.example.Repositories.OtherNamesRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class OtherNamesService {
@Autowired
OtherNamesRepository oth... | true |
d7faaf4996f11db08ca115262c0a53c6e4f6f352 | Java | Lyulie/treino-mapstruct-migration | /src/main/java/com/test/migration/controller/BankController.java | UTF-8 | 1,122 | 2.15625 | 2 | [] | no_license | package com.test.migration.controller;
import com.test.migration.model.Bank;
import com.test.migration.request.BankRequest;
import com.test.migration.service.BankService;
import com.test.migration.shared.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpSta... | true |
817116490e5501e1659a9c1294d9f44073afe751 | Java | jjalageas/per | /fr.per.buglinking/src/moduleDatabase/DatabaseApiSql.java | UTF-8 | 3,063 | 2.765625 | 3 | [] | no_license | package moduleDatabase;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
public class DatabaseApiSql implements DatabaseApi {
private final static Logger LOGGER = Logger.getLogger(DatabaseAp... | true |
05c31aee8026638971ed800929ad9d68865cce4f | Java | ksoft/supersoft | /supersoft-service/src/main/java/com/datuzi/supersoft/ServiceApplication.java | UTF-8 | 693 | 1.828125 | 2 | [] | no_license | package com.datuzi.supersoft;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.transaction.annotation.... | true |
9c1085f3b410388ea242c7a19dad6098827eb80e | Java | mirkosertic/GameComposer | /gameengine/src/main/java/de/mirkosertic/gameengine/core/DeleteGameObjectInstanceAction.java | UTF-8 | 1,462 | 2.234375 | 2 | [] | no_license | /*
* Copyright 2016 Mirko Sertic
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
4ab5dd4f0709d04f00d5459e0c3fee079f2b6f98 | Java | green-fox-academy/szabosebastian | /week-04/day-01/src/gardenpractice/Tree.java | UTF-8 | 230 | 2.5 | 2 | [] | no_license |
package gardenpractice;
public class Tree extends Plant {
public Tree(String color) {
this.color = color;
setType("Tree");
this.currentWaterlevel = 0;
this.maxWaterlevel = 10;
this.waterAbsorb = 0.4;
}
} | true |
2e7610123998bf859bdf8384dd36977f7219788a | Java | gizemberk/softwareproject | /src/View/AddGUI.java | WINDOWS-1250 | 7,368 | 2.4375 | 2 | [] | no_license | package View;
import java.awt.Checkbox;
import java.awt.Component;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
... | true |
82c1b2a17404700373b0ba3946a61359191c4ce8 | Java | ProArif/Weather | /app/src/main/java/com/nodeers/app/weather/MainActivity.java | UTF-8 | 3,459 | 2.046875 | 2 | [] | no_license | package com.nodeers.app.weather;
import android.Manifest;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.Bundle;
import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.tas... | true |
18cc10bf1b3f1b4e97e0fb8f27e4de57fee47e22 | Java | pwanghp/spring-boot-parameter-store-integration | /src/test/java/com/coveo/configuration/parameterstore/strategy/ParameterStorePropertySourceConfigurationStrategyFactoryTest.java | UTF-8 | 1,399 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.coveo.configuration.parameterstore.strategy;
import static com.amazonaws.SDKGlobalConfiguration.ACCESS_KEY_ENV_VAR;
import static com.amazonaws.SDKGlobalConfiguration.AWS_REGION_SYSTEM_PROPERTY;
import static com.amazonaws.SDKGlobalConfiguration.SECRET_KEY_ENV_VAR;
import static org.hamcrest.Matchers.insta... | true |
fd266cdb67c4b9d223dbff6476ca08d1a21718e1 | Java | guohonglin/lodil | /src/main/java/com/weibo/lodil/DictHashField.java | UTF-8 | 330 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.weibo.lodil;
/**
* @author tangfulin
*
*/
public class DictHashField extends DictValue {
public DictHashField(final byte[] bytes) {
super(bytes);
}
public DictHashField(final String string) {
super(string);
}
/**
* @param args
*/
public static void main(final String[] args)... | true |
e175049732f52eabb818cae61c547bf6bb0b60a1 | Java | yyt528966469/commerce | /e-commerce/src/main/java/com/wm/edu/service/order/OrderService.java | UTF-8 | 35,308 | 1.78125 | 2 | [] | no_license | package com.wm.edu.service.order;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sun.imageio.spi.RAFImageInputStreamSpi;
import com.wm.edu.mapper.cuser.C_user_addressMapper;
import com.wm.edu.mapper.order.*;
import com.wm.edu.model.base.Express;
import com.wm.edu.model.coupons.T... | true |
90e15364ae9aecef03d9dd88aeaa72555ffd2a5e | Java | kingjakeu/strawstreaming | /StrawBroker/src/StrawBroker.java | UTF-8 | 991 | 3.234375 | 3 | [] | no_license | /**
* Created by jakeu on 2018. 6. 23..
*/
import java.net.*;
public class StrawBroker {
final static int inPort = 1234;
// socket for main server
public static Socket servSocket;
// socket for 3 different slaves
public static Socket[] slaveSock = new Socket[3];
public static void main(Strin... | true |
cb381f1fc27b599ce498462e1019fb424a0098f7 | Java | jorgerueda/TfgMuviRest | /src/ucm/tfg/muvi/services/ServicioPelicula.java | UTF-8 | 8,003 | 2.1875 | 2 | [] | no_license | package ucm.tfg.muvi.services;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
impor... | true |
66cf52703daeb3413a11760fb8b1fac75bc813ac | Java | JashLal/AVLTree | /AVL Tree/src/test/java/FileComparator.java | UTF-8 | 1,455 | 3.53125 | 4 | [] | no_license | import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
public class FileComparator {
public static boolean compareFiles(String fileName1, String fileName2) {
try (RandomAccessFile file1 = new RandomAccessFile(fileName1, "r");
RandomAccessFile file2 =... | true |
b03c9e73602b4e9ac71d498e4ee0b0eb56401708 | Java | annazabost/cwiczenia_25_03 | /src/Task3a.java | UTF-8 | 500 | 3.09375 | 3 | [] | no_license | import java.util.Scanner;
public class Task3a {
public int takeNumber(){
Scanner scanner = new Scanner(System.in);
System.out.println("Podaj zakres: ");
int range = scanner.nextInt();
return range;
}
public int takeNumber2(){
Scanner scanner = new Scanner(System.in... | true |
aeb6500dff5913662756d7ac41c98d8ecc011f88 | Java | bayareddy/wfd | /employeeMgmt/src/main/java/com/wfdlabs/empmgmt/employeeMgmt/repository/ProjectRepository.java | UTF-8 | 253 | 1.664063 | 2 | [] | no_license | package com.wfdlabs.empmgmt.employeeMgmt.repository;
import com.wfdlabs.empmgmt.employeeMgmt.entity.Project;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ProjectRepository extends JpaRepository<Project, Integer> {
}
| true |
0b35f465b703c5a95193dcbb83e4b740f039b6ef | Java | JaysonCheng/CSCE440-Numerical-Analysis | /src/CompositeSimpsons.java | UTF-8 | 932 | 4.09375 | 4 | [] | no_license | // Name: Jayson Cheng
// CSCE440 Assignment 5
// Part 2a
public class CompositeSimpsons {
// equation for table 1
static double func(double x) {
return (3 * Math.pow(x, 5)) - (3 * Math.pow(x, 3)) + Math.exp(x) - Math.sin(x);
}
// Composite Simpsons Method
static double compositeSimpsons(double a, double b, ... | true |
5177cafbf01663926a937ee48eb168ef3efcf353 | Java | KogiMobileSAS/AndroidBaseLibrary | /baselibrary/src/main/java/com/kogimobile/android/baselibrary/utils/DateTimeUtils.java | UTF-8 | 934 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package com.kogimobile.android.baselibrary.utils;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
/**
* @author Julian Cardona on 4/14/15.
*/
public class DateTimeUtils {
public static DateTimeFormatter presenter;
public static DateT... | true |
078c12609ce22798820647ba9a0340bb48dfb932 | Java | bbogush72/Bee007BasicJava | /Project XI/src/OCA/whyByteNeededCasting.java | UTF-8 | 713 | 3.234375 | 3 | [] | no_license | package OCA;
public class whyByteNeededCasting {
public static void main(String[] args) {
// TODO Auto-generated method stub
//Byte b = new Byte( (byte) 123);
// (byte) casting is required unless you assign a byte value like byte b= 12;
printByteValue( (byte)10 );
byte b ... | true |
baa5bf25d5f7b0e12d2f00c52d237f2e49e53cff | Java | SeniYuting/LeetCode | /src/solution/f_title51_60/NQueensTwo.java | UTF-8 | 473 | 2.921875 | 3 | [] | no_license | package solution.f_title51_60;
import java.util.ArrayList;
import java.util.List;
/**
* N皇后问题,求个数
*/
public class NQueensTwo {
public static int totalNQueens(int n) {
List<List<String>> result = new ArrayList<>();
int[] queenList = new int[n];
NQueens.placeQueue(queenList, 0, n, result)... | true |
471c0b14efac1e315a35b1c45c59ae474222fe62 | Java | jesssree/bucket | /Player.java | UTF-8 | 2,798 | 4.09375 | 4 | [] | no_license | /* Jessica Gary
* jsg2213
* Player.java
* Simulates a player of a card game.
* */
import java.util.Scanner;
public class Player
{
private Card [] hand;
int count;
int valueheld;
private double balance;
private double bet;
public Player() //when the player starts, they put in a bet.
{
hand = new... | true |
9ccec8b41b5d7994acd015ff7f8318d28023f1c9 | Java | eballeza/SIGA | /src/main/java/pruebas/Main.java | UTF-8 | 2,323 | 2.015625 | 2 | [] | no_license | package pruebas;
import java.util.Calendar;
import java.util.List;
import org.hibernate.Session;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.SiGA.common.VO.AccionesAnomaliaVO;
import com.SiGA.common.VO.AnomaliasVO;
impor... | true |
9e223eadad56c66eba8efd7b0432ad0259614a08 | Java | svn2github/icefaces | /compat/components/src/main/java/com/icesoft/faces/component/util/DelimitedProperties.java | UTF-8 | 1,808 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2004-2013 ICEsoft Technologies Canada Corp.
*
* 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... | true |
f84f5e93f751501a0c663200be67ad7c8d7b5272 | Java | sikikok6/SE_18_Report | /src/main/java/com/example/demo/Model/BasicInfo.java | UTF-8 | 216 | 1.609375 | 2 | [] | no_license | package com.example.demo.Model;
import lombok.Data;
@Data
public class BasicInfo {
private String Openid;
private String Comid;
private String Name;
private Integer Sex;
private String Tel;
}
| true |
fe1c16f3436a996aaacdb135e248ee49e75b177a | Java | abchip/mimo-biz20 | /org.abchip.mimo.biz.model/src/org/abchip/mimo/biz/model/entity/tenant/TenantComponent.java | UTF-8 | 3,859 | 1.960938 | 2 | [] | no_license | /**
* Copyright (c) 2017, 2021 ABChip and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.abchip.... | true |
989db52308639b288015f27ac8e757a06103e83d | Java | OFRF/BladeRush | /gameserver/src/main/java/ru/l2/gameserver/skills/skillclasses/DetectTrap.java | UTF-8 | 1,181 | 2.21875 | 2 | [] | no_license | package ru.l2.gameserver.skills.skillclasses;
import ru.l2.gameserver.model.Creature;
import ru.l2.gameserver.model.Player;
import ru.l2.gameserver.model.Skill;
import ru.l2.gameserver.model.World;
import ru.l2.gameserver.model.instances.TrapInstance;
import ru.l2.gameserver.network.lineage2.serverpackets.NpcInfo;
imp... | true |
fb4f82e0ad55707bf60adf1eb0dbfb4ad9920025 | Java | ezsimple/java | /spring/apt/.svn/pristine/fb/fb4f82e0ad55707bf60adf1eb0dbfb4ad9920025.svn-base | UTF-8 | 3,773 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package kr.or.voj.webapp.tag;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspTagException;
import javax.servlet.jsp.tagext.BodyTagSu... | true |
1dce7873a3fb607722f381550806e077b14e98e9 | Java | Animeshsoni97/WHProj | /WhereHouseProj_FORGit/src/main/java/com/wh/service/IUomService.java | UTF-8 | 375 | 1.945313 | 2 | [] | no_license | package com.wh.service;
import java.util.List;
import java.util.Map;
import com.wh.model.Uom;
public interface IUomService {
public Integer saveUom(Uom u);
public List<Uom> allUom();
public void deleteByUomId(Integer id);
public Uom getUomModelById(Integer id);
public Integer updateUom(Uom u);
p... | true |
4e427bd50e9b3ffaa1fb22e4aef97ae06ec6a4d5 | Java | kikeGomez/muvitul | /muvitul-service/src/main/java/mx/com/tecnetia/muvitul/negocio/taquilla/assembler/TicketVentaAssembler.java | ISO-8859-1 | 2,886 | 2.171875 | 2 | [] | no_license | package mx.com.tecnetia.muvitul.negocio.taquilla.assembler;
import java.math.BigDecimal;
import java.util.Date;
import mx.com.tecnetia.muvitul.infraservices.persistencia.muvitul.dto.TicketVenta;
import mx.com.tecnetia.muvitul.negocio.taquilla.vo.TicketVO;
import mx.com.tecnetia.muvitul.negocio.taquilla.vo.Tick... | true |
0816b5cc89ba078a3a0363e7b38d6d0197fbae46 | Java | triwahyuprasetyo/PrSdpWhy | /java/com/triwahyuprasetyo/prsdpwhy/oop/SirupStrawberry.java | UTF-8 | 548 | 2.5 | 2 | [] | no_license | package com.triwahyuprasetyo.prsdpwhy.oop;
public class SirupStrawberry extends Minuman implements Suhu, Warna {
public SirupStrawberry(String nama) {
super(nama);
}
@Override
public Tekstur getTekstur() {
return Tekstur.KENTAL;
}
@Override
public void setJenisSuhu(int de... | true |
70e3fa19161a6708e4dbca21c46b2e20b1624cae | Java | Intektor/DuckGames | /core/src/de/intektor/duckgames/client/gui/components/GuiButton.java | UTF-8 | 3,595 | 2.546875 | 3 | [] | no_license | package de.intektor.duckgames.client.gui.components;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;... | true |
63a94eef030a9ca3a52f676d911cdae31141283c | Java | bbfghy/CaptureService | /app/src/main/java/com/hzj/captureservice/service/thread/UdpCmdReceiver.java | UTF-8 | 3,506 | 2.59375 | 3 | [] | no_license |
package com.hzj.captureservice.service.thread;
import com.hzj.captureservice.bean.CmdInfo;
import com.hzj.captureservice.queue.ObjectManager;
import com.hzj.captureservice.util.ByteUtils;
import com.hzj.captureservice.util.Command;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramS... | true |
8019778a91907fcea29277711d6ee1e36c0cf77f | Java | jkirsteins/simple-account-api-demo | /src/main/java/org/janiskirsteins/accounts/api/v1/transfers/TransferRequestRoutesV1.java | UTF-8 | 4,357 | 1.992188 | 2 | [
"MIT"
] | permissive | package org.janiskirsteins.accounts.api.v1.transfers;
import com.google.gson.Gson;
import com.google.inject.Inject;
import org.janiskirsteins.accounts.api.model_base.BaseCreateRequest;
import org.janiskirsteins.accounts.api.model_base.BaseModel;
import org.janiskirsteins.accounts.api.model_base.GenericDAO;
import org... | true |
7c825156305023f34405abb092a8fe0880d7f749 | Java | Josbert-Lonnee/RomeBusMap | /src/com/josbertlonnee/transport/Label.java | UTF-8 | 1,219 | 2.65625 | 3 | [] | no_license | package com.josbertlonnee.transport;
import com.josbertlonnee.shapedata.*;
import com.josbertlonnee.svg.*;
import com.josbertlonnee.util.*;
public class Label extends AbstractMultiPhaseShapeData<AbstractShapeData>
{
private Point position;
private double rotation;
private String text;
private double fontSize;
pr... | true |
317fb41f1813810e588d3c4a8229450d8e5e0ffe | Java | ilee9999/testinghub1026 | /src/main/java/com/hkesports/matchticker/enums/Dota2TeamType.java | UTF-8 | 88 | 1.507813 | 2 | [] | no_license | package com.hkesports.matchticker.enums;
public enum Dota2TeamType {
RADIANT,
DIRE
}
| true |
a736a97a1e09330f69d442bfbba141ce9b33aaac | Java | messyKassaye/mobile_card_mobile_app | /app/src/main/java/com/example/foragentss/rooms/respository/UsersRepository.java | UTF-8 | 1,076 | 2.3125 | 2 | [] | no_license | package com.example.foragentss.rooms.respository;
import android.app.Application;
import androidx.lifecycle.LiveData;
import com.example.foragentss.rooms.ApplicationRoomDatabase;
import com.example.foragentss.rooms.DAO.UsersDAO;
import com.example.foragentss.rooms.entity.UserRoom;
import java.util.List;
public cla... | true |
b4d796d9848d57d2563fcdfcd7d2f0ab4023b244 | Java | tpgmeligmeyling/MarkyMark-Android | /markymark-common/src/main/java/com/m2mobi/markymarkcommon/markdownitems/HorizontalLine.java | UTF-8 | 277 | 1.648438 | 2 | [
"MIT"
] | permissive | /*
* Copyright (C) M2mobi BV - All Rights Reserved
*/
package com.m2mobi.markymarkcommon.markdownitems;
import com.m2mobi.markymark.item.MarkDownItem;
/**
* {@link MarkDownItem} used for storing a horizontal line
*/
public class HorizontalLine implements MarkDownItem {
} | true |
ec5cb4b0bc6bfebf20f035e75fc4dc45c6f4b9e3 | Java | arshagarwal/Competetive-codes | /backtracking/src/backtracking/agressive.java | UTF-8 | 1,850 | 3.1875 | 3 | [] | no_license | package backtracking;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;
public class agressive {
public static int[] x;
public static int C;
//min=minimum distance
public static boolean ispossible(int[]input,int min,int c ) {
if(c==1) {
for(int i=1;i<input.length;... | true |
5169bddb92c6803eae67dd163eb3fd140f2f48cd | Java | jack-chuan/sjMessage | /sjMessage/sjMessage-admin/src/main/java/cn/com/sparknet/sjMessage/datalist/service/ha/HAUserService.java | UTF-8 | 547 | 1.59375 | 2 | [] | no_license | package cn.com.sparknet.sjMessage.datalist.service.ha;
import cn.com.sparknet.sjMessage.datalist.entity.message.MsUserEntity;
import cn.com.sparknet.sjMessage.datalist.entity.ha.HAUserEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* 用户表
*
* @author yangqr
* @email ... | true |
7c4c5b82b29b6374f59c9f2b50eba221d8dcd907 | Java | jjalvarezv/EntregasInmediatas | /src/main/Main.java | UTF-8 | 2,335 | 2.9375 | 3 | [] | no_license | package main;
import java.util.ArrayList;
import modelo.Datos.Data;
import modelo.gestorAplicacion.personas.UsuarioRegistrado;
import vista.*;
public class Main {
//public static UsuarioRegistrado user;
//public static MenuConsola menuGuestUser;
public static void main(String[] args) {
/*Main.iniConfigs();
... | true |
97ba5ff80d07138627ca47d95dc3767d3bdcf97a | Java | yoyoBarde/AndroidMe | /app/src/main/java/fragment/AndroidFragment.java | UTF-8 | 983 | 2.328125 | 2 | [] | no_license | package fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.hyperdev.androidme.R;
import java.util.List;
public class AndroidFragment extends Fragment {
... | true |
c53c64a5ae82447ae9ecd0356cb925761fdedf3f | Java | banadiga/sandbox | /junit5/src/test/java/com/banadiga/junit5/MyTopServiceTest.java | UTF-8 | 1,001 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.banadiga.junit5;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Tags;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.M... | true |
0c3209941d90e2206f988380255924ca23eb465b | Java | AlexeyBond/partly-solid-bicycle | /demo/demo_core/src/com/github/alexeybond/partly_solid_bicycle/demos/test_game/game/components/GravityTrigger.java | UTF-8 | 3,239 | 2.46875 | 2 | [] | no_license | package com.github.alexeybond.partly_solid_bicycle.demos.test_game.game.components;
import com.badlogic.gdx.utils.Array;
import com.github.alexeybond.partly_solid_bicycle.game.Component;
import com.github.alexeybond.partly_solid_bicycle.game.Entity;
import com.github.alexeybond.partly_solid_bicycle.game.systems.box2d_... | true |
6fb33a4acdf24955970ee9ff2b9de52f24adf12a | Java | theojulien/4jva | /src/com/school/mooc/dao/GraduateDao.java | UTF-8 | 539 | 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 com.school.mooc.dao;
import com.school.mooc.entity.*;
import java.util.List;
import javax.ejb.Local;
/**
*
* @author theo
... | true |
86329900a1cbf0c7f3b85d6149f20dd76bb8b311 | Java | jmptrader/BelejanorSwitch | /BelejanorProject/src/com/belejanor/switcher/crypto/DesEncriptor.java | UTF-8 | 4,331 | 2.96875 | 3 | [] | no_license | package com.belejanor.switcher.crypto;
public class DesEncriptor {
DES tdes = new DES();
@SuppressWarnings("unused")
private static final int BLOCK_128 = 16;
public DesEncriptor() {
super();
}
public String encrypt3DES(String str, String key) throws Exception { String enc = null;
... | true |
71e3f7cb9f7d977ebe21d060a01e2b50ec25aaa2 | Java | ChuangShiTeam/NowUI-Cloud | /module-cms/module-cms-sys/src/main/java/com/nowui/cloud/cms/toolbar/view/ToolbarView.java | UTF-8 | 4,438 | 1.945313 | 2 | [] | no_license | package com.nowui.cloud.cms.toolbar.view;
import javax.validation.constraints.NotNull;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;
import com.nowui.cloud.annotation.KeyId;
import com.nowui.... | true |
290e47af4f63ac78073a3f03bc8bb8bcfa02200f | Java | LaurenIvory/AdventOfCode2020 | /src/AdventSolver/AdventSolver.java | UTF-8 | 1,166 | 3.4375 | 3 | [] | no_license | package AdventSolver;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public abstract class AdventSolver {
private String dataLocation;
public AdventSolver(String dataLocation) {
this.dataLocation = dataLocation;
}
public int r... | true |
2fe8d33e3c011544ec27b9b35c0fc0dd8db04785 | Java | romanlum/StudyCode | /SWO4/uebung07/producer-consumer/src/swe4/threading/Consumer.java | UTF-8 | 604 | 2.890625 | 3 | [] | no_license | package swe4.threading;
import java.util.Random;
import swe4.util.Util;
public class Consumer extends Thread {
private Buffer b; // get get products from
public Consumer(String name, Buffer b) {
this.b = b;
} // Consumer
public void consume() {
Random randGen = new Random();
for ... | true |
5ca03555e73a481de4a8e0377eb7254057a6aa1b | Java | RyanMelo/iCEV_Liguagem_programacao_01 | /src/exercicios_pratica/lista_03/Quest_03_04/Quadrado.java | UTF-8 | 403 | 2.953125 | 3 | [
"MIT"
] | permissive | package exercicios_pratica.lista_03.Quest_03_04;
import java.lang.Math;
public class Quadrado {
double lado;
public Quadrado(double valorLado) {
this.lado = valorLado;
}
public double area() {
double area = Math.pow(lado, 2);
return area;
}
public double perimetr... | true |
1337dc2c234a0df4b9ffb839d7d630cb9b39eb0e | Java | B3J4y/UniDisk | /crawler/src/test/de/unidisk/entities/KeywordScoreTest.java | UTF-8 | 2,737 | 2.359375 | 2 | [
"MIT"
] | permissive | package de.unidisk.entities;
import de.unidisk.dao.*;
import de.unidisk.entities.hibernate.KeyWordScore;
import de.unidisk.entities.hibernate.Keyword;
import de.unidisk.entities.hibernate.SearchMetaData;
import de.unidisk.entities.hibernate.University;
import de.unidisk.entities.util.TestFactory;
import org.junit.Asse... | true |
2e62cff8beb135b52e328aa4ab4917bceeb56c65 | Java | meteor-007/scanDemo | /src/main/java/cnvd/weakpwdscan/dm/dmWeakPwdScan.java | UTF-8 | 2,500 | 2.21875 | 2 | [] | no_license | package cnvd.weakpwdscan.dm;
import cnvd.weakpwdscan.DatabaseConfig;
import cnvd.weakpwdscan.DatabaseEnum;
import cnvd.weakpwdscan.SysUtils;
import cnvd.weakpwdscan.WeakPwdScanUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLExcep... | true |
44a591b27bc15772ce8efd6e5034625fb50cbe39 | Java | allaves/EPS | /EventProcessingService/src/de/ifgi/envision/eps/listener/PatternStatementAwareListener.java | UTF-8 | 5,734 | 2.171875 | 2 | [] | no_license | package de.ifgi.envision.eps.listener;
import java.awt.List;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import org.apache.log4j.Logger;
import org.joda.time.Interval;
import org.openrdf.repository.RepositoryException;
import com.espertech.... | true |
e674df5a3a11198387bbb64f6740501a3e2dd63b | Java | kms228/MyProject | /diamang/src/user/vo/BuyBoardVo_kdy.java | UTF-8 | 1,678 | 2.265625 | 2 | [] | no_license | package user.vo;
import java.sql.Date;
public class BuyBoardVo_kdy {
private int buy_num;
private int mnum;
private Date buy_date;
private String state;
private String name;
private String addr;
private String caddr;
private int accprice;
private int drate;
public BuyBoardVo_kdy() {}
public BuyBoardVo_k... | true |
bbf9adc35f8e5eeb486f36625111e5f5e49f67ad | Java | ShinobuChyan/Take-away | /src/main/java/com/takeaway/service/order/OrderService.java | UTF-8 | 174 | 1.851563 | 2 | [] | no_license | package com.takeaway.service.order;
import com.takeaway.model.order.NewOrder;
public interface OrderService {
void submitOrder(NewOrder newOrder) throws Exception;
}
| true |
54f7a3743622f35a58ba7fd5a53f6ec33ef162e0 | Java | sekharreddy0408/Git_Rest_Assured_Basic_All | /RestAssuredBasics/src/twittertweet/GetTwitter.java | UTF-8 | 916 | 2.03125 | 2 | [] | no_license | package twittertweet;
import io.restassured.RestAssured;
import static io.restassured.RestAssured.given;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
public class GetTwitter {
public static void main(String[] args) {
String ConsumerKey="CJ7Vmd3inq8WHXa4Q7Zg51H9w";... | true |
cedac9ee8d70f8eaeddabae94773fbe7e2d39e9b | Java | fjdr778/TFG | /src/main/java/src/rutina/app/Main/RESTAuthenticationFailureHandler.java | UTF-8 | 975 | 2.21875 | 2 | [] | no_license | package src.rutina.app.Main;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler;
import org.springframework.stereotype.Component;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequ... | true |
ef6f5943a9c296942c2273d136f48788608e475b | Java | fengkaigit/ReposPorject | /src/com/ey/dao/entity/UserAccountRelation.java | UTF-8 | 1,052 | 2.03125 | 2 | [] | no_license | package com.ey.dao.entity;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* UserAccountRelation entity. @author MyEclipse Persistence To... | true |
b4d8f4b16ddf6f659dae3dbb84641bd1559fa3f2 | Java | kfirGir/iBook | /Project/Boundary/Panels/BookStatisticsPanel.java | UTF-8 | 8,554 | 2.375 | 2 | [] | no_license |
package Panels;
import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.Dimension;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import javax.swing.border.LineBorder;
import jav... | true |