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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4f2abce62c9263186411c7e64f224576d06839c6 | Java | geosource-catalogue/core-geonetwork | /inspire-atom/src/main/java/org/fao/geonet/services/inspireatom/AtomGetData.java | UTF-8 | 6,775 | 1.726563 | 2 | [] | no_license | //=============================================================================
//=== Copyright (C) 2001-2010 Food and Agriculture Organization of the
//=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
//=== and United Nations Environment Programme (UNEP)
//===
//=== This program is free software;... | true |
e46e26971464daab38972fbc6899466e9e0b0852 | Java | g908682550/Algorithm-Demo | /src/offer/VerifyPostorder33.java | UTF-8 | 1,144 | 3.109375 | 3 | [] | no_license | package offer;
import leetcode.TreeNode;
import org.junit.Test;
import java.util.Arrays;
public class VerifyPostorder33 {
@Test
public void test(){
TreeNode root=new TreeNode(5);
TreeNode node1=new TreeNode(2);
TreeNode node2=new TreeNode(1);
TreeNode node3=new TreeNode(3);
... | true |
503d2e88fc4800c9b058703691e5290d36ec7c3e | Java | krchkrch/Pravdivtsev_11-806 | /hw21/src/AudioTrack.java | UTF-8 | 284 | 2.78125 | 3 | [] | no_license | public class AudioTrack implements Comparable<AudioTrack> {
int duration;
String title;
String author;
//+ - больше
//- - меньше
//0 - равен
@Override
public int compareTo(AudioTrack o) {
return duration - o.duration;
}
}
| true |
83f2eeff4fcd3c58e808080bb7ccfcce289b4d65 | Java | tonybvnq/swc-group33 | /SoftCon2020_Assignment_4/src/TechnicianTest.java | UTF-8 | 1,727 | 3.203125 | 3 | [] | no_license | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class TechnicianTest {
BackendTechnician Peter = new BackendTechnician("Peter", "Griffin", 1);
WebTechnician Homer = new WebTechnician("Homer", "Simpson", 2);
/**
* getName returns the technician's name
* @thr... | true |
c7719cad7ecfec32ef7d2c52b83319af3f06b0c2 | Java | TeaIceLemon/Jav21wroP1 | /src/sda/com/Swing/SwingMain.java | UTF-8 | 1,061 | 2.9375 | 3 | [] | no_license | package sda.com.Swing;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class SwingMain {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame("My first Swing app ");
... | true |
de857c931b9837e169c7821e5bbfe77f2e5b6422 | Java | Dharun1704/SpacR | /app/src/main/java/com/example/spacr/SearchDetailActivity.java | UTF-8 | 5,162 | 1.757813 | 2 | [] | no_license | package com.example.spacr;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
impor... | true |
1417e57ee03780878ee35c6fef9103fa697eef1e | Java | washourcar/woc | /core/src/main/java/com/woc/common/GenericExceptionMapper.java | UTF-8 | 2,621 | 2.484375 | 2 | [] | no_license | package com.woc.common;
import java.io.EOFException;
import javax.ws.rs.ClientErrorException;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import org.springframework.orm.hibernate4.H... | true |
dd75dc06d882113ebafa24b3f0f60505f6c9ee03 | Java | hljlgj/YonyouNC | /pu/.svn/pristine/24/24a63549c5b2e6b39f847b37c3a8213bae4af00a.svn-base | GB18030 | 842 | 2.234375 | 2 | [] | no_license | /**
* $ļ˵$
*
* @author zhaoyha
* @version 6.0
* @see
* @since 6.0
* @time 2010-3-9 11:54:56
*/
package nc.impl.pu.m25.action.rule.sendapprove;
import nc.impl.pubapp.pattern.rule.IRule;
import nc.vo.pu.m25.entity.InvoiceVO;
import nc.vo.pu.pub.enumeration.POEnumBillStatus;
import nc.vo.pub.VOStatus;
/**
* <p... | true |
3e5cafcc42059f0c5c5b355b17314531fc1d92c0 | Java | AswAce/HR_Resumes | /platform/src/main/java/hr/platform/service/EmailServiceImpl.java | UTF-8 | 3,757 | 2.34375 | 2 | [] | no_license | package hr.platform.service;
import hr.platform.service.interfaces.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;
@Component
publi... | true |
1f77a4b7b78979c543545b1e3bfc1ab705de02c4 | Java | 312012733/javaee | /my_servlet_framework/src/main/java/com/my/framework/config/ServletContextUtil.java | UTF-8 | 1,102 | 2.265625 | 2 | [] | no_license | package com.my.framework.config;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class ServletContextUtil
{
public static String HTTP_SERVLET_REQUEST = "http_servlet_request";
public... | true |
4ce429b7db372d716800e3c3f65a01fc2de9085b | Java | engjose/snailweb | /src/main/java/com/snail/util/JedisClientUtil.java | UTF-8 | 1,435 | 2.5625 | 3 | [] | no_license | package com.snail.util;
import com.snail.exception.SnailServerException;
import java.util.ResourceBundle;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
/**
* Jedis的工具类
*
* Created by panyuanyuan 2017/10/5
*/
public class JedisClientUtil {
... | true |
f0b2393b032831b58bbb6293660392c343b370d4 | Java | N3bby/web4-webchatapp | /src/main/java/com/razacx/domain/model/Message.java | UTF-8 | 1,643 | 2.5 | 2 | [] | no_license | package com.razacx.domain.model;
import com.google.gson.annotations.Expose;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Calendar;
import java.util.Date;
@Entity
public class Message {
@Id
@GeneratedValue
@Expose
... | true |
baf3f3ea7bae23b935d50fbf69bc8b375e2857db | Java | luisdgd07/practicasjava | /Asignacion4/Asignacion3/src/Email.java | ISO-8859-10 | 1,229 | 2.84375 | 3 | [] | no_license |
class Email {
private final Properties pro=new Properties();
private String password;
private Session session;
public void iniciar(String email,String contrasena){
pro.put("mail.smtp.host", "mail.gmail.com");
pro.put("mail.smtp.starttls.enable", "true");
pro.put("mail.stmp.port", 2... | true |
f53037b087a9c26a6b6a551d1e9538541a0a11f4 | Java | gauBep/bc2016-gene | /src/report/ReportEventsByPlace.java | UTF-8 | 5,457 | 2.296875 | 2 | [] | no_license | /**
* Reports are Freeware Code Snippets
*
* This report is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
import genj.gedcom.Entity;
import genj.gedcom.Fam;
import genj.gedcom.Gedcom;
impo... | true |
39d103c08ce4fb849f6d3f8afe3f32bfb0092d5d | Java | matoujun/spring-cloud-examples | /api/src/main/java/org/matoujun/cloud/api/exception/ApiException.java | UTF-8 | 192 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package org.matoujun.cloud.api.exception;
/**
* User: matoujun
*
*/
public class ApiException extends RuntimeException {
public ApiException(String message) {
super(message);
}
}
| true |
26f385ab0b81fb34d4805547df2be51e862a19f3 | Java | ivanjukic237/Java-course-FER-2020 | /hw02-0036467883/src/test/java/hr/fer/zemris/java/custom/collections/hw02/ComplexNumberTest.java | UTF-8 | 6,876 | 3.46875 | 3 | [] | no_license | package hr.fer.zemris.java.custom.collections.hw02;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import hr.fer.zemris.java.custom.collections.hw02.ComplexNumber;
class ComplexNumberTest {
/**
* Testira se da konstuktor stvori pravilan kompleksni broj.
*/
@Test
void... | true |
d1b068e3e061d3391f2ba2447ee4b89a043348a9 | Java | ssysek/projectDF | /GUI/GroupbyAlertBox.java | UTF-8 | 2,684 | 2.875 | 3 | [] | no_license | package GUI;
import labs.DataFrame;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Modality;
import javafx.stage.Stage;
import java.util.ArrayList;
public class GroupbyAlertBox {
public S... | true |
ef8e6711bea34f2315de9342c4dc774df5f71b94 | Java | c0de4un/prflb_java_homework | /HomeWork.Java.I/Task2/src/org/bitbucket/code4un/prflb/txtfilter/text/SpamAnalyzer.java | UTF-8 | 3,323 | 2.703125 | 3 | [
"CC0-1.0"
] | permissive | /**
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS
* BE LIABLE F... | true |
3bc4d8ba88a8b77afca286ef9034cfbcb7546870 | Java | mick60316/Vodkender | /Vodkender/app/src/main/java/com/example/vodkender/Component/MaterialManager.java | UTF-8 | 5,609 | 2.46875 | 2 | [] | no_license | package com.example.vodkender.Component;
import android.util.Log;
import com.example.vodkender.DataSrtucture.Drink;
import com.example.vodkender.DataSrtucture.Formula;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
import java.util.ArrayList;
impor... | true |
e1439799999e51ce2c45524ef8612901938f6dfa | Java | 1165701441/stude | /src/main/java/com/example/demo/service/impl/DeptServiceImpl.java | UTF-8 | 5,158 | 2.078125 | 2 | [] | no_license | package com.example.demo.service.impl;
import com.example.demo.controller.vo.user.DeptVO;
import com.example.demo.model.dao.user.DeptDao;
import com.example.demo.model.dao.user.UserDao;
import com.example.demo.model.entity.user.Dept;
import com.example.demo.model.entity.user.User;
import com.example.demo.model.entity.... | true |
119a21b97b7190b96040ab82061d85ba9eb2bf62 | Java | focho27/TrucoArgento | /src/Principal/Jugador.java | UTF-8 | 1,049 | 3.078125 | 3 | [] | no_license | package Principal;
public class Jugador {
String nombre = "";
int numeroJugador = 0;
Truco auxiliar;
Carta mano[];
public Jugador(int numeroDeJugador,Truco truquito,String nombre) {
this.nombre = nombre;
this.numeroJugador = numeroDeJugador;
this.mano = new Carta [3];
... | true |
9e1878de9b263c8e6d25cf6a2080fc634a148d90 | Java | amitra12/TH_Sensor_Driver_Using_AsyncTask | /TH_Sensor_Driver_Using_AsyncTask/app/src/main/java/sjsu/aparajitamitra/th_sensor_driver_using_asynctask/MyAsyncTask.java | UTF-8 | 1,325 | 2.5 | 2 | [] | no_license | package sjsu.aparajitamitra.th_sensor_driver_using_asynctask;
import android.os.AsyncTask;
import android.widget.EditText;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.TimeUnit;
/**
* Created by pbiswas on 3/18/17.
*/
public class MyAsyncTask extends Asy... | true |
5bf29eb2be53dd2bba966c913a850da09ac6001f | Java | gyanesh94/Coding | /tutorials/Java/Day9/Coffee.java | UTF-8 | 252 | 2.671875 | 3 | [] | no_license | package Day9;
public class Coffee extends SuperLiquidClass implements Liquid, SuperLiquidInterFace {
void typeOfLiquid() {
System.out.println("Coffee");
}
@Override
public void taste() {
System.out.println("Coffee taste");
}
}
| true |
ffe10bd0b16f813d86c68de2dc6293ef49cce2fb | Java | quannva1025/JAVA | /JAVA/[PRO192]-Java Core/PE/Practice/src/Practice4/Main.java | UTF-8 | 1,248 | 2.796875 | 3 | [] | no_license | package Practice4;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger;
public ... | true |
7b26f2ec36882eef8811c175ce5e93d50699e962 | Java | AhmedMansour9/Exhibtion | /app/src/main/java/com/example/alshimaa/exhibtion/view/OnclickIconHomeUnderConstructView.java | UTF-8 | 268 | 1.695313 | 2 | [] | no_license | package com.example.alshimaa.exhibtion.view;
import com.example.alshimaa.exhibtion.model.HomeUnderConstructData;
public interface OnclickIconHomeUnderConstructView {
void showOnclickIconHomeUnderConstructDetails(HomeUnderConstructData homeUnderConstructData);
}
| true |
c9be7efacce0fe729a83b45317192499a612bd5b | Java | chenkelileo/LC | /leetcodeJava/src/main/java/com/leo/cct189/ch1_Arrays_Strings/OneAway_1_5.java | UTF-8 | 2,721 | 3.765625 | 4 | [] | no_license | /**
* One Away: There are three types of edits that can be performed on strings: insert a character, remove a character, or replace a character. Given two strings, write a function to check if they are one edit (or zero edits) away.
* EXAMPLE
* pale, ple -> true pales, pale -> true pale, bale -> true pale, bake -> f... | true |
c98a0b03672328fee2d1fcd3c45943a931aeef2d | Java | papegaaij/annotator | /annotator-core/src/test/java/nl/topicus/annotator/annotations/Marker1.java | UTF-8 | 194 | 1.625 | 2 | [] | no_license | package nl.topicus.annotator.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Marker1 {
}
| true |
800b15965b9ae7c6d681a4b202b3302c6d31050a | Java | frsknalexis/UInv.FIISI | /UInvFISI/src/main/java/com/developer/UInvFISI/rest/AutorRestController.java | UTF-8 | 6,020 | 2.078125 | 2 | [] | no_license | package com.developer.UInvFISI.rest;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import o... | true |
8cd68b28a1da156bcf8d0ff436f57982eed9112e | Java | manik76/alavu | /Trend.java | UTF-8 | 5,199 | 2.8125 | 3 | [] | no_license | /*
Project: Alavu V2.0
Date: May 29, 2004, Saturday, 8:53 AM IST
Scope: Shows trend of two channels of resolution
600X300
Uses: SignalData
*/
import java.applet.Applet;
import java.awt.*;
public class Trend extends Frame implements Runnable{
SignalData sd;
public int trendc... | true |
66ea696d760eb8dff43cefe954ce5119a5da1a15 | Java | ZX-CODESPACE/Ezsocial | /app/src/main/java/com/example/zhexiao/ezsocial/MainActivity.java | UTF-8 | 3,624 | 2.078125 | 2 | [] | no_license | package com.example.zhexiao.ezsocial;
import android.content.Intent;
import android.os.StrictMode;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.vie... | true |
58e7701d9c995e991720ac69d709282d589cf374 | Java | mingtang1079/Js | /app/src/main/java/com/example/administrator/js/activity/PaySuccessfulActivity.java | UTF-8 | 1,375 | 1.835938 | 2 | [] | no_license | package com.example.administrator.js.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arout... | true |
46a5aefb69646fe41e8cd8993c132372de78974e | Java | LichtHund/DocDex | /discord/src/main/java/me/piggypiglet/docdex/db/server/ServerHelper.java | UTF-8 | 1,505 | 2.5 | 2 | [
"MIT"
] | permissive | package me.piggypiglet.docdex.db.server;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import me.piggypiglet.docdex.bot.listeners.GuildJoinHandler;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Message;
import org.jetbrains.an... | true |
6f94135817c18d31e61c55952f637bbf1fcfdebc | Java | leevivian/Mock-HTTP-Web-Server | /WebServerCSC667/ResponseFactory.java | UTF-8 | 4,368 | 2.46875 | 2 | [] | no_license | package WebServerCSC667;
import WebServerCSC667.configuration.Htaccess;
import WebServerCSC667.configuration.Htpassword;
import WebServerCSC667.response.*;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Date;
public... | true |
930a5cfcf30b27b8df0366d2c75c5eacf0f56d7f | Java | zchengi/dubbo-study | /springboot-dubbo/springboot-dubbo-consumer/src/main/java/com/cheng/dubbo/consumer/transaction/TransactionConsumer.java | UTF-8 | 1,175 | 2.046875 | 2 | [] | no_license | package com.cheng.dubbo.consumer.transaction;
import com.alibaba.dubbo.config.annotation.Reference;
import com.cheng.dubbo.ServiceAPI;
import org.mengyun.tcctransaction.api.Compensable;
import org.springframework.stereotype.Component;
/**
* @author cheng
* 2019/1/17 21:12
*/
@Component
public class Transac... | true |
c260774160d2a45f428a36f2d92f0eaf22dfbe77 | Java | Kim-Taesu/springboot_board | /src/main/java/me/kts/boardexample/controller/BoardRestController.java | UTF-8 | 3,792 | 2.125 | 2 | [] | no_license | package me.kts.boardexample.controller;
import lombok.extern.slf4j.Slf4j;
import me.kts.boardexample.Validator.BoardValidator;
import me.kts.boardexample.domain.Board;
import me.kts.boardexample.domain.BoardDto;
import me.kts.boardexample.resource.BoardResource;
import me.kts.boardexample.resource.ErrorsResource;
impo... | true |
5b7f75bb1fd0bc0ad9fe92d96f141957cd8adf83 | Java | ping-0123/yiwu | /src/main/java/com/yinzhiwu/yiwu/entity/yzw/ElectricContractTypeYzw.java | UTF-8 | 3,855 | 2.125 | 2 | [] | no_license | package com.yinzhiwu.yiwu.entity.yzw;
import java.util.Date;
import javax.persistence.AttributeConverter;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Converter;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.... | true |
5d4070803dde18d6998de15272d2a1cfcb723789 | Java | mattrfarrow/3d-renderer | /src/Shapes.java | UTF-8 | 3,571 | 2.984375 | 3 | [] | no_license | import javafx.scene.paint.Color;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class Shapes {
public static List<Renderer.Triangle3D> getTriangles() {
List<Renderer.Triangle3D> triangles = new ArrayList<>();
for (var y: List.of(0, 300, 600, 900)) {
... | true |
52c4c94fc5fcf1f0f29950c3b3bb2cc0072067fe | Java | yueyue10/PluginProject | /lib_com/src/main/java/com/zyj/plugin/common/data/bean/ResourceBean.java | UTF-8 | 1,341 | 2.265625 | 2 | [] | no_license | package com.zyj.plugin.common.data.bean;
public class ResourceBean {
private String name;
private String orderStatus;
private int resId;
private int style;//1:窄线条 2:宽线条
//首页九宫格列表 我的界面列表-我的订单
public ResourceBean(String name, int resId) {
this.name = name;
this.resId = resId;
... | true |
79cc1d23dc7cb9cab81d9c7fb9c9c80580ae24f6 | Java | SeanTheGuyThatAlwaysHasComputerTrouble/awips2 | /tests/unit/com/raytheon/uf/edex/datadelivery/retrieval/handlers/SerializeRetrievedDataToDirectoryTest.java | UTF-8 | 2,523 | 1.90625 | 2 | [] | no_license | /**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... | true |
a3241d24aeabcec5906646de2a7083637ed4bc21 | Java | aosm/JBoss | /jboss-all/server/src/main/org/jboss/ejb/plugins/SessionObjectInputStream.java | UTF-8 | 3,986 | 2.09375 | 2 | [] | no_license | /*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.ejb.plugins;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectStreamClass;
import java.io.IOException;
import java.lang.reflect.Proxy;
import javax... | true |
51a0f54fa3ef5cbeb120d46ebc763008038d26b9 | Java | likui1314159/hello-world | /src/com/dyst/elasticsearch/util/ESCallableThread.java | GB18030 | 1,081 | 2.390625 | 2 | [] | no_license | package com.dyst.elasticsearch.util;
import java.text.SimpleDateFormat;
import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;
import org.elasticsearch.index.query.FilterBuilder;
import org.elasticsearch.search.SearchHits;
public class ESCallableThread implements Callable<SearchHits>{
Sim... | true |
63ff655d8333f129102f39bcc9a2dcfd4f07a5ec | Java | Veterinaria-SENA/CRUD-veterinaria | /src/controlador/ControladorCarnet.java | UTF-8 | 3,898 | 2.390625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controlador;
import java.awt.event.ActionEvent;
import java.sql.Date;
import java.util.ArrayList;
import javax.swing... | true |
60fd6b4427227637f9f1de0315b08a7b1089bfd4 | Java | dominikoso/bots-of-war | /src/main/java/me/dominikoso/bow/enums/TileEnum.java | UTF-8 | 629 | 2.859375 | 3 | [] | no_license | package me.dominikoso.bow.enums;
public enum TileEnum {
DIRT (0, "dirt.png"),
GRASS (1, "grass.png"),
WATER (2, "water.png"),
STONE (3, "stone.png"),
BASE (4, "base.png"),
MINE (5, "mine.png"),
HORSE (6, "horse.png"),
WORKER (7, "worker.png"),
WARRIOR (8, "warrior.... | true |
8188b4bc736cfe36bb09fa774d52834592ad66ac | Java | chalstrick/bigRepo1 | /project_1_1/src/c/f/i/Calc_1_1_2582.java | UTF-8 | 131 | 2.15625 | 2 | [] | no_license | package c.f.i;
public class Calc_1_1_2582 {
/** @return the sum of a and b */
public int add(int a, int b) {
return a+b;
}
}
| true |
3e59c812f5ef18f4482bca15d04f7e9f6c8932d7 | Java | FinnyPremKumar/H-m | /ProjectHM/src/test/java/com/qa/testscripts/HmTestBase.java | UTF-8 | 1,224 | 2.046875 | 2 | [] | no_license | package com.qa.testscripts;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.ann... | true |
bdebab1186c8e405635b17cb25de231f2d528f66 | Java | sergiokiselev/sk-security | /src/main/java/ch/rasc/sec/service/impl/UserServiceImpl.java | UTF-8 | 12,105 | 1.960938 | 2 | [] | no_license | package ch.rasc.sec.service.impl;
import ch.rasc.sec.GoogleAuth;
import ch.rasc.sec.cipher.AES;
import ch.rasc.sec.cipher.DiffieHellman;
import ch.rasc.sec.cipher.RSA;
import ch.rasc.sec.dto.*;
import ch.rasc.sec.model.SessionAttributes;
import ch.rasc.sec.model.User;
import ch.rasc.sec.repository.UserRepository;
impo... | true |
3d051f514222de1f1007685b7fac53f9b7c60b1f | Java | daniellexj/teste_b2w_mongoDB | /B2W/src/test/java/com/daniel/b2w/resouce/test/PlanetResourceTest.java | UTF-8 | 3,091 | 2.09375 | 2 | [] | no_license | package com.daniel.b2w.resouce.test;
import static io.restassured.module.mockmvc.RestAssuredMockMvc.given;
import static io.restassured.module.mockmvc.RestAssuredMockMvc.standaloneSetup;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockit... | true |
925aa09f70aa0956e3216bdedf4db92deabeab9f | Java | aheadlcx/analyzeApk | /budejie/sources/com/bumptech/glide/d/a.java | UTF-8 | 914 | 2.390625 | 2 | [] | no_license | package com.bumptech.glide.d;
import com.bumptech.glide.i.h;
import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
class a implements g {
private final Set<h> a = Collections.newSetFromMap(new WeakHashMap());
private boolean b;
private boolean c;
a() {
}
public vo... | true |
c37c401ac2d4d2f969e637df48b612f9f6f2a845 | Java | kimtool/Eindproject-SuperClass | /hexagon.demodrop.api/src/main/java/hexagon/demodrop/api/entitiy/AdminEntity.java | UTF-8 | 532 | 2.046875 | 2 | [] | no_license | package hexagon.demodrop.api.entitiy;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity(name="admin")
public class AdminEntity extends UserEntity {
private static final long serialVersionUID = -868519825006474585L;
@Id
@GeneratedValue
private doubl... | true |
006305797c57efd25da6394950c88b662fbac466 | Java | daohengdao/gobang | /gb-common/src/main/java/com/xrc/gb/common/exception/SystemBusyException.java | UTF-8 | 232 | 1.914063 | 2 | [] | no_license | package com.xrc.gb.common.exception;
/**
* @author xu rongchao
* @date 2020/3/27 19:31
*/
public class SystemBusyException extends RuntimeException {
public SystemBusyException(String errorMsg) {
super(errorMsg);
}
}
| true |
7cde3beffc02d0f0eaa44b0c1c6b974e5e95b933 | Java | durgaseelam/MyServiceClient | /src/com/apex/sop/service/Client.java | UTF-8 | 590 | 2.546875 | 3 | [] | no_license | package com.apex.sop.service;
import java.rmi.RemoteException;
import java.util.Calendar;
import com.apex.sop.service.vo.Employee;
public class Client {
public static void main(String[] args) throws RemoteException {
MyServiceDemoProxy proxy=new MyServiceDemoProxy();
Employee ed=proxy.getEmployee(20);
Calendar ca... | true |
04ef560d4d8a39351488bbffee6a4e4fef85ba2a | Java | snoop0x7b/Notes | /app/src/main/java/com/zach/notes/model/NoteDatabase.java | UTF-8 | 2,171 | 2.21875 | 2 | [] | no_license | package com.zach.notes.model;
import android.arch.persistence.db.SupportSQLiteDatabase;
import android.arch.persistence.db.SupportSQLiteOpenHelper;
import android.arch.persistence.room.Database;
import android.arch.persistence.room.DatabaseConfiguration;
import android.arch.persistence.room.InvalidationTracker;
import... | true |
7f6284a02fb7199af21ae5b6790a672c3b547180 | Java | itpiaoker/workspace | /imageJ/src/cn/com/linnax/PointOperation.java | UTF-8 | 1,050 | 2.703125 | 3 | [] | no_license | package cn.com.linnax;
import ij.ImagePlus;
import ij.io.OpenDialog;
import ij.process.ImageProcessor;
/**
* Title:
* Description:
*
* @author lianxy
* @date 2017/11/2
*/
public class PointOperation {
public static void main(String[] args) {
OpenDialog wo=new OpenDialog("");
String we=w... | true |
a7cd1a33b48ed705b84309d46aadc58e8ec12c10 | Java | santanupal1980/HybridMT-2014 | /src/preprocessing/cleanDevTestset.java | UTF-8 | 2,572 | 2.5625 | 3 | [] | no_license | /**
*
*/
package preprocessing;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.OutputStreamWriter;
import java.util.Scanner;
/**
* @author santanu
*
*/
public class cleanDevTestset {
/**
*
*/
public cleanDevTestset() {
// ... | true |
baaa25e02eeff45230d4be2c7748553c13cdbade | Java | KuTaeMo/java-work | /ch05/BlueCloth.java | EUC-JP | 145 | 2.46875 | 2 | [] | no_license | package ch05;
public class BlueCloth extends Factory {
@Override
protected void ĥ() {
System.out.println("Ķĥ Ϸ!");
}
} | true |
79b93211e4059392c96b806afa14ad9b13f673b5 | Java | picatrix1899/barghos | /barghos-core-api/src/main/java/org/barghos/core/api/math/DoubleRoundMethod.java | UTF-8 | 349 | 2.96875 | 3 | [
"MIT"
] | permissive | package org.barghos.core.api.math;
/**
* This interface represents a method of rounding for double values.
*
* @author picatrix1899
*/
public interface DoubleRoundMethod
{
/**
* Rounds the given value by this rounding method.
*
* @param value The value to round.
*
* @return The rounded value.
*/
d... | true |
395d58e7a49c481ae168e85b7cb3eef2d7a8bc5d | Java | berkeleysquare/ds3_java_sdk | /ds3-sdk/src/main/java/com/spectralogic/ds3client/helpers/ChunkTransferrer.java | UTF-8 | 6,365 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
* ******************************************************************************
* Copyright 2014-2015 Spectra Logic 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. A copy of the License i... | true |
ffb76be57dbdde55761762bc03029a35b3fd3da1 | Java | zachwilson/MetroidvaniaClone | /src/game/Pickup.java | UTF-8 | 1,587 | 2.796875 | 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 game;
/**
*
* @author Zach Wilson
*/
public class Pickup extends Entity{
public int type;
public Pickup(int x,... | true |
ae5aa52bbdcc9e4e3fb1e39c6a368a6d07524f09 | Java | choquidownn25/ReciclerViews | /app/src/main/java/com/sipingenieria/prueba/MainActivity.java | UTF-8 | 2,671 | 2.171875 | 2 | [] | no_license | package com.sipingenieria.prueba;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.widget.Toast;
import com.sipingenieria.prueba.adapt... | true |
a9c4b4bc6a59d9e2a2498f8b35718e38f963d21a | Java | ljw7630/RoboticLecturingAssistant_BSc_FinalYearProject | /src/fyp.robot/src/fyp/robot/test/ScannerTest.java | UTF-8 | 1,359 | 2.65625 | 3 | [] | no_license | package fyp.robot.test;
import lejos.nxt.Motor;
import lejos.nxt.SensorPort;
import lejos.nxt.UltrasonicSensor;
import lejos.robotics.FixedRangeScanner;
import lejos.robotics.RangeReadings;
import lejos.robotics.RangeScanner;
import lejos.robotics.RotatingRangeScanner;
import lejos.robotics.navigation.DifferentialPilo... | true |
cabdaac40d682855559f426718d07856e4094be8 | Java | liyuefan0214/musicplayer | /src/main/java/com/airlab/musicplayer/controller/SearchSongByXNameController.java | UTF-8 | 569 | 1.898438 | 2 | [] | no_license | package com.airlab.musicplayer.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjso... | true |
0c0256a429819fafa06aecc19454c2f877dbbe6e | Java | aliyun/aliyun-openapi-java-sdk | /aliyun-java-sdk-lubancloud/src/main/java/com/aliyuncs/lubancloud/transform/v20180509/BuyOriginPicturesResponseUnmarshaller.java | UTF-8 | 1,704 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |
04b153b1d6cfd7b381700b8dbc9b53140d14e2c8 | Java | kacantor/Practice | /src/Thoughts/Calendar.java | UTF-8 | 138 | 1.921875 | 2 | [] | no_license | package Thoughts;
public class Calendar {
public void CalendarBook() {
System.out.println("In Construction");
}
}
| true |
f8bab61ced3fc1e99a3262b6ff9f17a34f50e4b4 | Java | ly774508966/lazy-image-loader | /src/com/lurencun/imageloader/internal/Downloader.java | UTF-8 | 1,253 | 2.859375 | 3 | [] | no_license | package com.lurencun.imageloader.internal;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
public interface Downloader {
boolean load(String url, File save);
public static class SimpleDownloader... | true |
6c6a3787760ac819cb5e4751f0e23b780fc9c1a5 | Java | youngFF/hyena-spider | /spider-parser/src/main/java/com/hyena/spider/extrator/ImgExtractor.java | UTF-8 | 1,222 | 2.890625 | 3 | [] | no_license | package com.hyena.spider.extrator;
import com.hyena.spider.datastore.ImgDataStore;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class ImgExtractor extends AbstractExtractor {
private static final String[] IMG_SUFFIX = {"png", "jpg", "jpeg", "gif"};
... | true |
89767655d30474303362bedb9308b870a8cacd74 | Java | ondfly/cmp_eitaa_telegram | /telegram-src/messenger/support/customtabsclient/shared/ServiceConnection.java | UTF-8 | 1,410 | 1.984375 | 2 | [] | no_license | package org.telegram.messenger.support.customtabsclient.shared;
import android.content.ComponentName;
import java.lang.ref.WeakReference;
import org.telegram.messenger.support.customtabs.CustomTabsClient;
import org.telegram.messenger.support.customtabs.CustomTabsServiceConnection;
public class ServiceConnection
ex... | true |
3b15b3287810cce654a660a6d8972745bca5aa55 | Java | asdf2014/yuzhouwan | /yuzhouwan-site/yuzhouwan-site-api/src/main/java/com/yuzhouwan/site/api/rpc/model/Call.java | UTF-8 | 1,268 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.yuzhouwan.site.api.rpc.model;
import java.io.Serializable;
/**
* Copyright @ 2023 yuzhouwan.com
* All right reserved.
* Function:Call
*
* @author Benedict Jin
* @since 2016/9/1
*/
public class Call implements Serializable {
private Class<?> interfaces;
private Object[] params;
private ... | true |
5b1a4d500b041bd7e080b4a3f0a973c10e502b9d | Java | kobeomseok95/lanCableDoctor | /landocProject/src/main/java/com/kh/landocProject/cmypage/model/dao/cMypageDao.java | UTF-8 | 8,739 | 1.773438 | 2 | [] | no_license | package com.kh.landocProject.cmypage.model.dao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Re... | true |
dcc09cd0fda6c4f83841f3da59fe235c0f9b1951 | Java | maddingo/nio-fs-provider | /smb/src/test/java/no/maddin/niofs/smb/RelativizeTest.java | UTF-8 | 3,279 | 2.53125 | 3 | [] | no_license | package no.maddin.niofs.smb;
import no.maddin.niofs.commons.AbstractTest;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.net.URI;
import java.nio.file.Path;
import java.nio.file.Paths;
import jav... | true |
9ca500d9b76d8f3d975abf6ba05b435ec0e777b3 | Java | ayazpasha2434/prayer-location | /app/src/main/java/com/example/root/helloagain/SplashScreenActivity.java | UTF-8 | 788 | 2.171875 | 2 | [] | no_license | package com.example.root.helloagain;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
/**
* Created by root on 16/7/15.
*/
public class SplashScreenActivity extends Activity {
private static final long SPLASH_SCREEN_DELAY = 3000;
@Override
... | true |
324012a4faa82d1c9733b4b2594e51a78676e824 | Java | zangliguang/DawnLightApp | /DawnLightApp/app/src/main/java/com/liguang/dawnlightapp/fragment/youku/YoukuListFragment.java | UTF-8 | 2,201 | 1.84375 | 2 | [] | no_license | package com.liguang.dawnlightapp.fragment.youku;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import com.liguang.dawnlightapp.DawnLightApplication;
import com.liguang.dawnlightapp.R;
import com.liguan... | true |
e99c353bb41a11bf3b3b3b748cc33f920a079e6b | Java | lastlySly/lastlysly-prototype | /src/main/java/com/lastlysly/web/Interceptor/ApiRequestInterceptor.java | UTF-8 | 1,332 | 1.90625 | 2 | [] | no_license | package com.lastlysly.web.Interceptor;
import com.lastlysly.web.ApiRequestContext;
import com.lastlysly.web.view.CustomRequestContext;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.... | true |
e8a5835026d1aef47f6f70217cd51fe9bf6ef8e1 | Java | xxu95/shopping-cart | /src/com/shopping/dao/ICartDao.java | UTF-8 | 465 | 2.015625 | 2 | [] | no_license | package com.shopping.dao;
import java.util.List;
import com.shopping.entity.CartItem;
public interface ICartDao {
// add
void addItem(Integer productId, Integer userId, Integer quantity);
// delete
void removeItem(Integer productId, Integer userId);
// update
void updateItem(Integer productId, Integer use... | true |
4fe3308b89840b02d9ec9073aa47330022fd9c04 | Java | izzying/ExpenseTracker | /ExpenseTracker-INFRA/src/main/java/com/pk/et/infra/model/User.java | UTF-8 | 5,018 | 2.109375 | 2 | [] | no_license | package com.pk.et.infra.model;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
i... | true |
3ecf2a3277785f2d2255fe03bc9be8534f9c6c7d | Java | jankobarjan/Feather-radio | /android/app/src/main/java/pl/kobarjan/featherradio/RadioController.java | UTF-8 | 654 | 2.3125 | 2 | [] | no_license | package pl.kobarjan.featherradio;
import net.droidlabs.audio.ogg.OggStreamPlayer;
import java.net.MalformedURLException;
import java.net.URL;
/**
* Created by kobarjan on 13.12.2017.
*/
public class RadioController {
static OggStreamPlayer radio;
public static void radioRun(){
radio = new OggStrea... | true |
a112974cbded06419fd4a45188826a7c3c05e007 | Java | fanleung/GizDataAccessDemo-Android | /GizDataAccessSDKDemo/src/com/gizwits/gizdataaccesssdkdemo/activitys/ChangePswActivity.java | UTF-8 | 3,163 | 2.375 | 2 | [
"MIT"
] | permissive | package com.gizwits.gizdataaccesssdkdemo.activitys;
import com.gizwits.gizdataaccess.GizDataAccessLogin;
import com.gizwits.gizdataaccess.entity.GizDataAccessAccountType;
import com.gizwits.gizdataaccess.entity.GizDataAccessErrorCode;
import com.gizwits.gizdataaccess.listener.GizDataAccessLoginListener;
import com.giz... | true |
0f813604aeeb08229a447bd570aececf90bf5cdd | Java | jeetbafna/ServerSocket | /app/src/main/java/com/example/admin/serversocket/DataDisplay.java | UTF-8 | 151 | 1.914063 | 2 | [] | no_license | package com.example.admin.serversocket;
/**
* Created by admin on 26/02/2017.
*/
public interface DataDisplay {
void Display(String message);
}
| true |
3b56a442acf0ff0a219c093407e0212a31cdc414 | Java | DavidCHopper/sel | /T2.java | UTF-8 | 5,874 | 1.945313 | 2 | [] | no_license | import java.util.regex.Pattern;
import java.util.concurrent.TimeUnit;
import org.junit.*;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.open... | true |
d2227eb56fdf2c257984d80d6643fd4b48480dd9 | Java | LoliKingdom/Rong-GT | /src/main/java/com/rong/rt/api/unification/materials/types/MarkerMaterial.java | UTF-8 | 1,231 | 2.359375 | 2 | [] | no_license | package com.rong.rt.api.unification.materials.types;
import com.google.common.collect.ImmutableList;
import com.rong.rt.api.unification.OreDictUnifier;
import com.rong.rt.api.unification.materials.MaterialIconSet;
/**
* MarkerMaterial is type of material used for generic things like material re-registration and use ... | true |
483010c75c9e9b87b28a79692c0a2ce7d6b85d7b | Java | Beyond-yan/OA | /src/com/gdssoft/oa/service/communicate/impl/PhoneBookServiceImpl.java | UTF-8 | 800 | 2.046875 | 2 | [] | no_license | package com.gdssoft.oa.service.communicate.impl;
/*
*捷达世软件(深圳)有限公司 OA办公管理系统
* Copyright (C)
*/
import java.util.List;
import com.gdssoft.oa.dao.communicate.PhoneBookDao;
import com.gdssoft.oa.model.communicate.PhoneBook;
import com.gdssoft.oa.service.communicate.PhoneBookService;
import com.gdssoft.core.service.im... | true |
b8d0d55e40d60be9da1364d75f7a9794efdc5f04 | Java | zufallsgenerator/gridgame | /src/islandescape/MyTileSet.java | ISO-8859-1 | 4,720 | 2.984375 | 3 | [] | no_license | package islandescape;
import gamelib.ListReader;
import gamelib.TileSet;
import gamelib.ImageLoader;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import javax.swing.ImageIcon;
import static islandescape.GameConstants.*;
/**
* Tileset that holds imagetiles and i... | true |
701d99373ee006b71e483b9cabce09bca178bad9 | Java | chetans4/study | /DesignPattern2/src/com/metacube/shoppingcart/dao/Factory.java | UTF-8 | 891 | 2.640625 | 3 | [] | no_license | package com.metacube.shoppingcart.dao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.metacube.shoppingcart.entity.Product;
import com.metacube.shoppingcart.enums.Database;
import com.metacube.shoppingcart.enums.EntityType;
/**... | true |
a361db25bbf6b714f4ff1f5ce13378e699d38910 | Java | lvxczhuce22/lvxcDeom | /src/main/java/hisense/fdp/cfa/Test_Demo.java | UTF-8 | 5,857 | 2.421875 | 2 | [] | no_license | package hisense.fdp.cfa;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import hisense.fdp.cfa.core.AllFaultData;
... | true |
326fdfea3c11af1d2f74351703ffb1bec8eccdfa | Java | Artamm/Gallery | /bl/src/main/java/lt/gallery/services/impl/PictureServiceImpl.java | UTF-8 | 10,083 | 2.359375 | 2 | [] | no_license | package lt.gallery.services.impl;
import com.google.common.collect.Iterables;
import lombok.RequiredArgsConstructor;
import lombok.extern.apachecommons.CommonsLog;
import lt.gallery.dao.Picture;
import lombok.Data;
import lt.gallery.dao.Tag;
import lt.gallery.repository.TagRepository;
import lt.gallery.services.Pictur... | true |
d003682fe92f62ee395cd784ea11d4e9d350e042 | Java | xulddy/front-end | /src/dependency/injection/DependencyInjection.java | UTF-8 | 584 | 2.296875 | 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 dependency.injection;
/**
*
* @author Tan
*/
public class DependencyInjection {
/**
* @param args the command lin... | true |
dd49edfdf31cbb19723ec3aff9997a5a1f27eef3 | Java | sreekanthpulagam/rakam-java-client | /src/main/java/io/rakam/client/model/SuccessMessage.java | UTF-8 | 3,041 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Rakam API Documentation
* An analytics platform API that lets you create your own analytics services.
*
* OpenAPI spec version: 0.5
* Contact: contact@rakam.io
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit ... | true |
28c99a1bdd36f89779ffe02aa1448729eca8d2ea | Java | MeghaPathak/Learning-Java | /Multithreading/src/interThreadCommunication/MainThreadBySleep.java | UTF-8 | 274 | 3 | 3 | [] | no_license | package interThreadCommunication;
public class MainThreadBySleep {
public static void main(String[] args) throws InterruptedException {
ChildThread t = new ChildThread();
t.start();
Thread.sleep(1000);
System.out.println("End of main method::" + t.total);
}
}
| true |
03aa6f43d1325b2e6cf1b50621a8440dff38c7cc | Java | esmakerrobotics/ftc_app | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/TeleOp.java | UTF-8 | 6,780 | 2.078125 | 2 | [] | no_license | /* Copyright (c) 2017 FIRST. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that
* the following conditions are met:
*
* Redistributions of source code must retain the above cop... | true |
b194056e93d79f1f068d384f8ef4b526e96f9595 | Java | PatrickLerner/erclaerung | /src/test/java/de/tudarmstadt/awesome/erclaerung/feature/SsSoundZzDominanceDFETest.java | UTF-8 | 2,730 | 2.3125 | 2 | [
"BSD-3-Clause"
] | permissive | package de.tudarmstadt.awesome.erclaerung.feature;
import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine;
import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngineDescription;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.apache.uima.analysis... | true |
9c4c126cbbed7f7c1380cb5b745c41edd25068e3 | Java | dimekai/Teoria-Computacional | /TeoriaComputacional/src/Practica03/AutomataING_03.java | UTF-8 | 2,346 | 3.296875 | 3 | [] | no_license | package Practica03;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
/*@author Jesus Kaimorts Díaz Medina*/
public class AutomataING_03 {
String cadena; /*CADENA*/
int edoPast = -1; /*CONTROLADOR*/
static int q0 = 0, q1 = 1, q2 = 2; /*ESTADOS*/
String validString="... | true |
246314c6ccd2ad8729d52b8440b8c6f58fee8497 | Java | magnusart/Ekonomipuls | /src/main/java/se/ekonomipuls/model/Report.java | UTF-8 | 3,147 | 2.453125 | 2 | [] | no_license | /**
* Copyright 2011 Magnus Andersson, Michael Svensson
*
* 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 app... | true |
6e48ea1be3aca7741a3cdf18efc02c36ddfa4955 | Java | gunalangp/VideoDownloader | /app/src/main/java/com/videodownloader/fb/widget/CollectionWidget.java | UTF-8 | 5,565 | 1.953125 | 2 | [] | no_license | package com.videodownloader.fb.widget;
import android.annotation.TargetApi;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android... | true |
b045cf0508047fc3a30d11375071c1e1d55e3223 | Java | finaltracker/chongming | /empty/src/com/san/orgdata/service/impl/OrgDataServiceImpl.java | UTF-8 | 4,799 | 1.992188 | 2 | [] | no_license | /**
*
*/
package com.san.orgdata.service.impl;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.log4j.Logger;
//import o... | true |
14f8c039664977a513f37a3a927105ae95cac938 | Java | arshiya139/java-assignment | /FilmMain.java | UTF-8 | 636 | 3.46875 | 3 | [] | no_license | import java.util.Scanner;
class film
{
String name,lang,lead_actor,category;
int duration;
film()
{
name="null";
lang="null";
lead_actor="null";
category="null";
duration=0;
}
film(String x,String y,String z,String a,int b)
{
name=x;
lang=y;
lead_actor=z;
category=a;
duration=b;
}
void display()
{... | true |
4dca30569656ad819a428749daddc90b2e3ff812 | Java | gfz1103/mtd | /src/main/java/com/buit/his/mtdms/dao/OpYjzxDao.java | UTF-8 | 3,220 | 1.867188 | 2 | [] | no_license | package com.buit.his.mtdms.dao;
import java.math.BigDecimal;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.buit.commons.EntityDao;
import com.buit.his.mtdms.model.OpYjzx;
import com.buit.his.mtdms.request.QueryYjqfListReq;
import com.buit.his.mtdms.request.QueryYjzxqrListReq;
import ... | true |
d36ffd1237c7c2ecb134e9dfaaa3617070d1dcc5 | Java | effortguy/junit5 | /src/test/java/com/effortguy/junit5/EnabledIfEnvironmentVariableAnnotation.java | UTF-8 | 522 | 2.1875 | 2 | [] | no_license | package com.effortguy.junit5;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
public class EnabledIfEnvironmentVariableAnnotation {
@Test
@EnabledIfEnvironmentVariable(named = "JUnit"... | true |
01f484afb024272b83e220598f988a77fcce0ba6 | Java | immon/eiana | /eiana-notifications/src/org/iana/notifications/template/simple/TemplateFiller.java | UTF-8 | 1,592 | 2.625 | 3 | [] | no_license | package org.iana.notifications.template.simple;
import org.iana.rzm.common.validators.CheckTool;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;
import java.util.Set;
/**
* @author Piotr Tkaczyk
*/
public abstract class TemplateFiller {
public static String fill... | true |
a6b8f12cbecfbf3f1a6eef97768e69ccc665fe14 | Java | Itonkoff/Canteen_T1 | /app/src/main/java/com/kofu/brighton/canteen/network/APIService.java | UTF-8 | 882 | 2.03125 | 2 | [] | no_license | package com.kofu.brighton.canteen.network;
import com.kofu.brighton.canteen.models.Login;
import com.kofu.brighton.canteen.models.Meal;
import com.kofu.brighton.canteen.models.MealBill;
import com.kofu.brighton.canteen.models.Register;
import com.kofu.brighton.canteen.models.Token;
import java.util.List;
import retr... | true |
36df4a29484be16689e8a422efdd9e3ee04e126e | Java | NoahPena/Multi-Effect-Guitar-Pedal | /Mobile Applications/Multi-Effect-Guitar-Pedal-Android/app/src/main/java/com/noahpena/multi_effect_guitar_pedal/Activities/EffectsManager.java | UTF-8 | 11,763 | 2.109375 | 2 | [] | no_license | package com.noahpena.multi_effect_guitar_pedal.Activities;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.DialogFragment;
import android.support.v4.app... | true |
4ef5b7d9ede36f74815bb229c113128227f2d974 | Java | pitkosjava/java | /Perceptron/src/com/my/lin/neuron/Perceptron.java | UTF-8 | 6,403 | 3.078125 | 3 | [] | no_license | package com.my.lin.neuron;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
public class Perceptron implements NeuronInterfaces {
private int inputNumbers; ... | true |