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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1b62cd57ef43b33254b5cfad8763fbd6beb74ea4 | Java | rodlac/Projeto-PWeb | /Blog/JavaSource/facades/ArtigoFacade.java | UTF-8 | 176 | 1.632813 | 2 | [] | no_license | package facades;
import models.Artigo;
import dao.DAOArtigo;
public class ArtigoFacade extends GenericFacade<Artigo>{
public ArtigoFacade() {
super(new DAOArtigo());
}
} | true |
f5563e8b2929264484f6b5af66a579bdcc0b72a3 | Java | cosmos-chou/BgKiller | /src/main/java/com/cosmos/bgkiller/accessibility/AccessibilityMonitor.java | UTF-8 | 995 | 2.1875 | 2 | [] | no_license | package com.cosmos.bgkiller.accessibility;
import android.accessibilityservice.AccessibilityService;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.view.accessibility.Acce... | true |
63109d5be3cf3c487c9c0c7b343e746e18e170b9 | Java | thiagohrcosta/EstudoJava | /modulo1/src/introducao/ExercicioFixacao3.java | ISO-8859-1 | 1,023 | 3.375 | 3 | [] | no_license | package introducao;
import java.text.DecimalFormat;
public class ExercicioFixacao3 {
public static void main(String[] args) {
// (Calculadora de crescimento demogrfico mundial) Utilize a internet para descobrir a populao mundial atual e
// a taxa de crescimento demogrfico mundial anual. Escreva um aplicativo q... | true |
11b5449bb0ce2c3bc0039352b048bf7048422ff5 | Java | cz67998/springcloud | /product/server/src/main/java/com/wangzhou/product/service/ProductService.java | UTF-8 | 617 | 1.75 | 2 | [] | no_license | package com.wangzhou.product.service;
import com.wangzhou.product.DecreaseStockInput;
import com.wangzhou.product.dataobject.ProductInfo;
import com.wangzhou.product.dto.CartDTO;
import java.util.List;
/**
* Created by IDEA
* author:wangzhou
* Data:2018/9/29
* Time:11:07
**/
public interface ProductService {
... | true |
74d3b30f0d374926ac27f212c1a9f69af012d4cf | Java | jradek/Camera | /src/com/jradek/camera/SurfaceView.java | UTF-8 | 3,534 | 2.625 | 3 | [] | no_license | package com.jradek.camera;
import android.content.Context;
import android.opengl.GLSurfaceView;
import android.view.View;
public class SurfaceView extends GLSurfaceView {
private final SceneRenderer mRenderer;
public SurfaceView(Context context) {
super(context);
// Create an OpenGL ES 2.0 ... | true |
dd3645d575ff9b47fe6fa147a0937a284a0fd697 | Java | KeithLiu129/LeetCode_HYL | /src/OOD/Online_Shopping_System/ShipmentStatus.java | UTF-8 | 185 | 1.757813 | 2 | [] | no_license | package OOD.Online_Shopping_System;
/**
* ${Description}
*
* @author KeithLiu on 2020-04-11
*/
public enum ShipmentStatus {
PENDING,
SHIPPTED,
DELIEVED,
ON_HOLD
}
| true |
84a65d2907c706651f918feb29b14eeb5ec02859 | Java | wudipangde/springboot-manage | /src/main/java/com/demo/javase/designmode/strategy/ICalculator.java | UTF-8 | 176 | 2.046875 | 2 | [] | no_license | package com.demo.javase.designmode.strategy;
/**
* @author wxw
* @Description:XX
* @date 2018/10/22
*/
public interface ICalculator {
public int calculate(String exp);
}
| true |
b29501401c855e27a327a489df504f3b574c3d73 | Java | BlauHimmel/Sync | /app/src/main/java/com/zhouyuming/sync/MainActivity.java | UTF-8 | 38,135 | 1.5625 | 2 | [] | no_license | package com.zhouyuming.sync;
import android.Manifest;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.conten... | true |
34c9db928149216e8b18c0010487b696f1d2a508 | Java | springtg/popshop | /consumerLog2/java/com/poprlz/common/CommonConstant.java | UTF-8 | 165 | 1.570313 | 2 | [] | no_license | package com.poprlz.common;
public class CommonConstant {
public static final String STATUS_ACTIVE = "A";
public static final String STATUS_SUSPEND = "S";
}
| true |
7f533b5fc64c56839a9e6635e13b25d435ed3c59 | Java | home1-oss/oss-lib-errorhandle | /src/main/java/cn/home1/oss/lib/errorhandle/internal/translator/DefaultExceptionTranslator.java | UTF-8 | 6,103 | 1.820313 | 2 | [
"MIT"
] | permissive | package cn.home1.oss.lib.errorhandle.internal.translator;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.collect.Lists.newLinkedList;
import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
import static java.util.Collections.unmodifiableList;
imp... | true |
e8dc01a8bcc7b4588a611b50e5c548c30ca39cd0 | Java | guanyibei1204/iLMS | /iLMS_PORTAL/src/com/hotent/bpmx/activiti/inst/service/impl/ProInstanceServiceImpl.java | UTF-8 | 7,170 | 1.804688 | 2 | [] | no_license | package com.hotent.bpmx.activiti.inst.service.impl;
import java.util.Collection;
import java.util.Map;
import javax.annotation.Resource;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.impl.Process... | true |
8f497f0ecc77f2779d8494aced5b11962f6d4ed9 | Java | wuyanru/calculationMethodPractice | /src/com/wuyanru/linkedlist/Solution37.java | GB18030 | 1,445 | 3.71875 | 4 | [] | no_license | package com.wuyanru.linkedlist;
import com.wuyanru.sort.InsertSort;
/**
* һУظĽ㣬ɾظĽ㣬ظĽ㲻
* ͷָ롣 磬1->2->3->3->4->4->5 Ϊ 1->2->5
* @author Administrator
*/
public class Solution37 {
public ListNode deleteDuplication(ListNode pHead)
{
if(pHead==null)
return null;
ListNode t=pHead.next;
Lis... | true |
8b81682598238dad75ca8a36d5665a43b0088b2a | Java | moutainhigh/e | /e-payment-api/src/main/java/com/zbensoft/e/payment/api/service/api/MerchantGroupUserService.java | UTF-8 | 1,343 | 1.640625 | 2 | [] | no_license | package com.zbensoft.e.payment.api.service.api;
import java.util.List;
import com.zbensoft.e.payment.db.domain.ConsumerGroupUserKey;
import com.zbensoft.e.payment.db.domain.MerchantGroupUserKey;
public interface MerchantGroupUserService {
/**
* This method was generated by MyBatis Generator.
* This meth... | true |
73465a104b16428049e8dcebb73bd7aef590d88c | Java | xiezhifeng/mysource | /jira-project/jira-components/jira-plugins/jira-rest/jira-rest-plugin/src/main/java/com/atlassian/jira/rest/v2/issue/UserPickerUser.java | UTF-8 | 1,248 | 2.1875 | 2 | [] | no_license | package com.atlassian.jira.rest.v2.issue;
import javax.xml.bind.annotation.XmlElement;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
public class UserPickerUser
{
@XmlElement
private String name;
@XmlElement
private String key;
@XmlElement
private String html;
@Xm... | true |
a82c1264289dd89cd6806105aa113dd796885644 | Java | dangeroushai/AmxDataService | /src/com/amx/dataservice/model/bo/ProductExtBo.java | UTF-8 | 2,795 | 2.46875 | 2 | [] | no_license | package com.amx.dataservice.model.bo;
import java.util.List;
import org.springframework.beans.BeanUtils;
import com.amx.dataservice.model.domain.ProductExtDo;
import com.amx.dataservice.util.StringUtil;
/**
* 产品扩展业务对象,所有关联对象都只指明ID
* @author DangerousHai
*
*/
public class ProductExtBo extends BaseBo <ProductExtD... | true |
62918a6b63e6b90f3f2d11ec3a5c654ab7bea5a8 | Java | iatulrai/DataCenter | /ServletProgram/src/atulrai/UserRegistrationServlet.java | UTF-8 | 1,846 | 2.5625 | 3 | [] | no_license | // Example of Registration form in servlet
package atulrai;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax... | true |
94efb71323a3748e6dbba98206d3df75447dac0a | Java | godaddy-icfp/icfp-2019 | /thirdparty/galois-2.0/src/main/java/galois/runtime/ParameterStatistics.java | UTF-8 | 3,753 | 2.40625 | 2 | [
"Unlicense"
] | permissive | /*
Galois, a framework to exploit amorphous data-parallelism in irregular
programs.
Copyright (C) 2010, The University of Texas at Austin. All rights reserved.
UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS SOFTWARE
AND DOCUMENTATION, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR ANY
... | true |
24261cae8459bdb081532d56f010b05cb8c6dfc0 | Java | shihao-aiyuan/Dongtaidaili | /SpringMaven/src/main/java/excception/MyException.java | UTF-8 | 438 | 2.625 | 3 | [] | no_license | package excception;
/**
* @author shihao
* @create 2020-11-02 17:28
*/
public class MyException extends RuntimeException {
private int code;
public MyException() {
super();
}
public MyException(int code,String message) {
super(message);
this.code = code;
}
pub... | true |
a03d51978f8b40b7628226f30c6f3698549c0b19 | Java | Wolfdogs/KemonoAVG | /src/main/java/com/github/wolfdogs/kemono/util/collection/FilteredMap.java | UTF-8 | 2,202 | 2.875 | 3 | [] | no_license | package com.github.wolfdogs.kemono.util.collection;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
public class FilteredMap<K, V> implements Map<K, V>
{
public static <V> Map<String, V> lowercasedKeyMap(Map<String, V> m)
{
re... | true |
8598b399ad6abc681492aceca2133d5f16205fdd | Java | lxian/javaplayground | /javaplayground/src/main/java/com/lxian/playground/algo/avltree/AvlTreeTest.java | UTF-8 | 590 | 3.203125 | 3 | [] | no_license | package com.lxian.playground.algo.avltree;
import java.util.Random;
public class AvlTreeTest {
public static void main(String[] args) {
AvlTree<Integer> avlTree = new AvlTree<>();
int n = 100;
Random random = new Random();
while (n-- > 0) {
int key = random.nextInt(100... | true |
563422ef61f772ac1d1a5c73edc8a5cfe45b06f2 | Java | JuaniOlguin/mutantes-api-rest-sin-db | /src/main/java/com/example/mutantes/MutantesApplication.java | UTF-8 | 503 | 1.695313 | 2 | [] | no_license | package com.example.mutantes;
import com.example.mutantes.matriz.HintSearch;
import com.example.mutantes.matriz.MatrixCreator;
import com.example.mutantes.matriz.MutantDetector;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import java.util.Sca... | true |
7b2309c364d9bccfdb4377234bb0c0acadf87027 | Java | Coding-Zuo/restaurant | /src/com/zuo/restaurant/po/Orders.java | UTF-8 | 1,947 | 2.375 | 2 | [] | no_license | package com.zuo.restaurant.po;
import java.util.Date;
import java.util.List;
/**
* 订单
* @author zuo
*
*/
public class Orders {
private Integer id;
private Integer userId;
private String number;
private String note;
private Date createTime;
private Date endTime;
private String address;
private Double t... | true |
d0293cc4b200c700ccdba873eb5b243adce71f1b | Java | tudorluchy/SharUTC | /src/fr/utc/lo23/sharutc/model/userdata/ActivePeerList.java | UTF-8 | 4,920 | 2.484375 | 2 | [] | no_license | package fr.utc.lo23.sharutc.model.userdata;
import com.fasterxml.jackson.annotation.JsonIgnore;
import fr.utc.lo23.sharutc.util.CollectionChangeListener;
import fr.utc.lo23.sharutc.util.CollectionChangeSupport;
import fr.utc.lo23.sharutc.util.CollectionEvent;
import java.io.Serializable;
import java.util.Date... | true |
dfdaed3ef35b0ca1589e957e84041afe3b2ae6b4 | Java | matthewshang/mray | /src/core/Renderer.java | UTF-8 | 6,982 | 2.625 | 3 | [] | no_license | package core;
import java.util.ArrayList;
import light.Light;
import math.Ray;
import math.Sampler;
import math.Vector3f;
import matl.Material;
import prim.EngineObject;
import prim.Intersection;
import scn.Scene;
public class Renderer
{
private int m_width;
private int m_height;
private int m_pixelSamples;
priv... | true |
b098a1ab4d83df9d591af3c6776b9bd1f2618047 | Java | Trmpsanjay/DS-450-Question-Love-Babbar | /LinkedList/segregateEvenAndOdd.java | UTF-8 | 2,086 | 3.78125 | 4 | [] | no_license | // { Driver Code Starts
// Initial Template for Java
import java.util.*;
import java.io.*;
class Node{
int data;
Node next;
Node(int x){
data = x;
next = null;
}
}
class GFG{
static void printList(Node node)
{
while (node != null)
{
System.out.print(node.data + " "); ... | true |
e82bd25ebcf8d7e067b4541e63558eb4876ab798 | Java | SpartaCube/Core | /Core-waterfall/src/main/java/fr/iban/bungeecore/utils/AnnoncesManager.java | UTF-8 | 2,763 | 2.421875 | 2 | [] | no_license | package fr.iban.bungeecore.utils;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import fr.iban.bungeecore.CoreBungeePlugin;
import fr.iban.common.data.AccountProvider;
import fr.iban.common.utils.ArrayUtils;
import fr.iban.spartacube.data.Account;
import net.md_5.bungee.api.Pro... | true |
7c545911b1e2623f9f9ce890237833d7c2f5786e | Java | pumpkinLKB/HustimeWEB | /src/main/java/hustime/community/schedule/service/ScheduleServiceImpl.java | UTF-8 | 2,177 | 2.078125 | 2 | [] | no_license | package hustime.community.schedule.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import hustime.commun... | true |
85382df370b328f6cdb6c6e0bd15f546a063fab2 | Java | dhayalramk/Practice | /Learn/Java/UnionFind/src/com/dhayal/QuickUnionUF.java | UTF-8 | 1,030 | 3.0625 | 3 | [
"MIT"
] | permissive | package com.dhayal;
public class QuickUnionUF implements IUFAlgo {
private int[] ids;
private int length;
public QuickUnionUF(int n){
this.ids = new int[10];
this.length = n;
for(int i=0;i<this.length;i++){
this.ids[i] = i;
}
}
@Override
public voi... | true |
3589ca11d701e87ebc6f2bed5bbc33babcf8b729 | Java | SulaymonHursanov/autoDeploy | /src/main/java/com/autodeploy/util/AppProperties.java | UTF-8 | 1,320 | 2.421875 | 2 | [] | no_license | package com.autodeploy.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class AppProperties {
private Properties props;
private String githubUserAgentPrefix;
private String publishMessageHint;
private String appVersion;
public AppProperties() thro... | true |
0204e6a51c991c11073ad5c41bce0ab89a69cf0f | Java | IllusionRom-deprecated/android_platform_tools_adt_idea | /android/src/com/android/tools/idea/editors/navigation/macros/Analysis.java | UTF-8 | 10,675 | 1.71875 | 2 | [] | no_license | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 |
e1836deff8aac2834f6fd8e36653a0267c587f77 | Java | Abdullah-Uppal/RubricsEvaluation | /src/rubricsevaluation/Main.java | UTF-8 | 75,341 | 2.078125 | 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 rubricsevaluation;
import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.SwingUtilities;
import java.awt.Too... | true |
8c9fedcdb034708886a6018f838ca9f965ac3b17 | Java | aofpcc/TestJavaChat | /GameOnlineTest.java | UTF-8 | 1,175 | 2.890625 | 3 | [] | no_license | import java.net.*;
import java.util.*;
public class GameOnlineTest { // Server
public static void main(String... args) {
String prompt = "Console::";
Scanner scan = new Scanner(System.in);
GameOnline.setBroadCast();
GameOnline.Host host = GameOnline.getHost("Aof");
host.catchClient();
host.set... | true |
a08fe0939a507f38cd644847e4b5ac7ef031ee7f | Java | morningblu/HWFramework | /P40_HarmonyOS_2.0.0_Developer_Beta1/src/main/java/com/huawei/android/os/ParcelFileDescriptorExt.java | UTF-8 | 280 | 1.882813 | 2 | [] | no_license | package com.huawei.android.os;
import android.os.ParcelFileDescriptor;
import java.io.FileDescriptor;
public class ParcelFileDescriptorExt {
public static ParcelFileDescriptor getParcelFileDescriptor(FileDescriptor fd) {
return new ParcelFileDescriptor(fd);
}
}
| true |
bac24a1f2a6fec5400a01bae738aa622e26ac872 | Java | daniel55411/test-akka-with-kafka | /src/main/java/examples/kafka/zookeeper/flow/PropertiesConverter.java | UTF-8 | 759 | 2.125 | 2 | [] | no_license | package examples.kafka.zookeeper.flow;
import com.typesafe.config.ConfigValue;
import org.apache.kafka.common.protocol.types.Field;
import java.util.AbstractMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Created by jdk.
* Date: 29.04.18
*/
public class PropertiesConve... | true |
0f1a6a586f3fb962872e92b39a239f4b59c9ec80 | Java | t3rmin41/exchange-rates-app | /exchange-rates-springboot-app/src/main/java/com/exchange/rates/utils/CurrencyRateComparator.java | UTF-8 | 2,064 | 2.625 | 3 | [] | no_license | package com.exchange.rates.utils;
import java.util.Comparator;
import com.exchange.rates.bean.CurrencyRate;
public class CurrencyRateComparator {
public static final Comparator<CurrencyRate> BY_CODE = new ByCode();
public static final Comparator<CurrencyRate> BY_DIFF_ASC = new ByDifferenceAsc();
publi... | true |
3786f0e8bcfa9b9c1e9c4c05b792c01527fd0e04 | Java | Maurogch/Laboratorio5 | /autosexample/src/main/java/edu/utn/autos/model/Auto.java | UTF-8 | 307 | 1.773438 | 2 | [] | no_license | package edu.utn.autos.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Auto {
int id;
int modelo;
String patente;
int idTitular;
Titular titular;
}
| true |
46ba3a8b97003909d55f8d7998e0aef8eef93557 | Java | mraalten/javalearning | /src/test/java/nl/hardwin/javalearning/domain/SpaarrekeningTest.java | UTF-8 | 368 | 1.929688 | 2 | [] | no_license | package nl.hardwin.javalearning.domain;
import org.junit.Test;
import java.time.LocalDate;
/**
* Created by edwincox on 10-1-2017.
*/
public class SpaarrekeningTest {
@Test
public void it_should_create_a_spaarrekeing(){
Spaarrekening spaarrekening = new Spaarrekening(400, 0, new Persoon("Edwin Spa... | true |
6956fec82ef5a526fa25e42a195bd3e09feaf214 | Java | kmmao/NBIotServer | /src/main/java/com/hwj/handler/DeviceDataChangedHandler.java | UTF-8 | 1,525 | 2.40625 | 2 | [] | no_license | package com.hwj.handler;
import com.hwj.server.RequestHandler;
import com.hwj.tinymq.DeviceDataProductor;
import com.hwj.tinymq.ProductorTask;
import com.hwj.tinymq.TinyMessageQueue;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
imp... | true |
a642d1338f3f216fdc76f6cc427b51cb4d0143ae | Java | Anlesvavor/GatoInteligente | /src/main/java/modelos/NodeGato.java | UTF-8 | 11,123 | 2.890625 | 3 | [] | no_license | package modelos;
import arboleos.SearchMethods;
import arboleos.SearchRoute;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class NodeGato implements SearchMethodsGato, Serializable {
private Jugada data;
private List<NodeGato> children = new ArrayList<>();
privat... | true |
e24508fcf07eb13d3fe1ef20cbe01ba1239031a0 | Java | majk91/kursova | /app/src/main/java/com/mike/kursova_oop_db/data/models/BaseDBModel.java | UTF-8 | 363 | 2.5 | 2 | [] | no_license | package com.mike.kursova_oop_db.data.models;
public abstract class BaseDBModel {
public static String _ID = "_id";
protected long id=-1;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Override
public String toString() {
retu... | true |
41abb2333b46f6407cf143cb4429f5f319f5ca42 | Java | penock/java-ephspace-game | /com/croftsoft/core/lang/classloader/Boot.java | UTF-8 | 7,488 | 2.625 | 3 | [] | no_license | package com.croftsoft.core.lang.classloader;
import java.io.BufferedInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLCo... | true |
2d62a57def2aa2c9866f902ec6215803dc0cb89c | Java | Robnette/DiceRoller | /app/src/main/java/me/robnette/diceroller/model/BtnAdd.java | UTF-8 | 497 | 2.640625 | 3 | [
"CC-BY-3.0"
] | permissive | package me.robnette.diceroller.model;
import android.view.View;
import android.widget.TextView;
/**
* Created by Robnette on 10/11/2017.
*/
public class BtnAdd extends ButtonAbstract {
public BtnAdd(int min, int max, int value, View viewBtnLess, View viewBtnMore, TextView viewText) {
super(min, max, v... | true |
3dcdac508274a0bf734b7c8f0babe66895dfced4 | Java | opendaylight/openflowplugin | /openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/OF10BarrierInputMessageFactoryTest.java | UTF-8 | 2,280 | 1.78125 | 2 | [] | no_license | /*
* Copyright (c) 2013 Pantheon Technologies s.r.o. 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
*/
pack... | true |
db0c3fa04347d17779f13b86e9903aa3f721e4e9 | Java | rdevanathan686/APCS-Workspace | /FileIO/src/Tester.java | UTF-8 | 875 | 2.890625 | 3 | [] | no_license | import java.util.ArrayList;
import javax.swing.JFileChooser;
public class Tester
{
public static void main(String[] args)
{
// open from the working directory
JFileChooser chooser = new JFileChooser(System.getProperty("user.dir"));
// FileNameExtensionFilter filter = new FileNameE... | true |
f360ce8b369dcb0e31d12d9b5a7889d85c46f02b | Java | MStart/testify | /need/need-docker/src/main/java/com/fitbur/testify/need/docker/DockerContainerInstance.java | UTF-8 | 3,558 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Sharmarke Aden.
*
* 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 agree... | true |
6e21a39cc809738fc9cf0fda6dd10e3c2b649735 | Java | jonlopesmoreira/exceptions | /src/aplicacao/Main.java | UTF-8 | 946 | 3.203125 | 3 | [] | no_license | package aplicacao;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
import entidades.Reservacao;
public class Main {
public static void main(String[] args) throws ParseException {
Scanner s = new Scanner(System.in);
SimpleDateFormat sdf = n... | true |
b181d7f3c45851713ad4323298ff451883b236e6 | Java | Christopher-Diehl-cognizant-com/mybrowser | /folder/src/main/java/cld71/work/cognizant/demo/mybrowser/folder/model/Folder.java | UTF-8 | 4,534 | 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 cld71.work.cognizant.demo.mybrowser.folder.model;
import java.io.Serializable;
import java.util.Collection;
import java.util.D... | true |
22db6ec87304d97cc69145e91396c78e10d9ed07 | Java | carlos9m9/Repo-test | /melo_p1/src/melo_p1/Application.java | UTF-8 | 865 | 3.609375 | 4 | [] | no_license | /*A company that wants to send data over the Internet has asked you to write a program that will encrypt it
*so that it may be transmitted more securely. All the data is transmitted as four-digit integers.
*Your application should read a four-digit integer entered by the user and encrypt it as follows: Replace each
... | true |
96c75a84f764f168e138d21ee9c646b3cb080e95 | Java | tieusangaka/template-projects | /enumerations-spring-jpa/src/main/java/com/github/dariux2016/converter/database/EnItemTypeConverter.java | UTF-8 | 902 | 2.609375 | 3 | [] | no_license | package com.github.dariux2016.converter.database;
import java.util.Optional;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import org.springframework.stereotype.Component;
import com.github.dariux2016.model.EnItemType;
/**
* AttributeConvertEnItemTypeype, String>. Implements the... | true |
9ff9ff3ceca2db248c27c8b840eb4cb88b14d702 | Java | fekfek/environment | /src/main/java/com/see/controllers/HomeController.java | UTF-8 | 1,162 | 2.1875 | 2 | [] | no_license | package com.see.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class... | true |
f4bc407aaed37ff96c832fb8daa58b9833f802b9 | Java | williamNext/rocketEmprestimos | /src/br/com/compasso/rocketEmprestimos/acao/ValidaLogin.java | UTF-8 | 917 | 2.171875 | 2 | [] | no_license | package br.com.compasso.rocketEmprestimos.acao;
import javax.persistence.EntityManager;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import br.com.compasso.rocketEmprestimos.dao.UsuarioDAO;
import br.com.compasso.rocketEmprestimos.model.Usuario;
public class ValidaLogi... | true |
0358b9f14ab4b72ba11232a70f776b87deb69bbe | Java | Jaganmohansahu/Miscellaneous-Java-Projects | /J2EE-Projects/Login_MVC/src/login_controller/ChangePassword.java | UTF-8 | 1,387 | 2.65625 | 3 | [] | no_license | package login_controller;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servle... | true |
111c37e1cc1b6dc9c4635f32b7248e78500fffb2 | Java | abuzzz/KeywordDrivenFramework | /Utils/src/main/java/org/verify/Verify.java | UTF-8 | 13,911 | 2.4375 | 2 | [] | no_license | package org.verify;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import org.testng.Assert;
/**
* Verification tool class. Wrapper class around TestNG Assert.
* @author <a href='mailto:gadigeppa.code@gmail.com'>Gadigeppa Jattennavar</a>
*/
public class Verify ... | true |
a3109adfd468a68c4de04a6ffb17fc5c1eac67a9 | Java | guider/Guangjie | /ezmvp/src/main/java/com/yanyuanquan/android/automvp/model/EzModel.java | UTF-8 | 449 | 2.078125 | 2 | [] | no_license | package com.yanyuanquan.android.automvp.model;
import android.content.Context;
/**
* Created by guider on 16/5/29.
* Email guider@yeah.net
* github https://github.com/guider
*/
public class EzModel extends UtilModel {
private Context context;
public static final <T extends EzModel> T getInstance(Class<... | true |
0be2c8fc6c1e5196a947f6b4df32c3c8c4e141cc | Java | thammaphon47/car | /Entity/Drivers.java | UTF-8 | 984 | 2.734375 | 3 | [] | no_license | package com.example.demo.Entity;
import java.time.LocalDate;
import lombok.*;
import javax.persistence.Entity;
@Data
@Entity
public class Drivers {
private String firstName;
private String lastName;
private LocalDate birthday;
public Drivers() {
}
public Drivers(String firs... | true |
9d580ea51123af3c7adcbc782c5c5efbf114339d | Java | pac3tdp/PAC3 | /_Enunciat/exemple i18n TDP/src/edu/uoc/tds/gui/TDSPanelTitulos.java | WINDOWS-1250 | 570 | 2.171875 | 2 | [] | no_license | package edu.uoc.tds.gui;
import java.awt.Color;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import edu.uoc.tds.i18n.TDSLanguageUtils;
/**
* Tcnicas de Desarrollo de Software
* Universitat Oberta de Catalunya (UOC)
* @
* @author Joan Esteve Riasol
* @version 1.0
*
*/
public class T... | true |
772906f5851f61a7cc63ca2d2bb4cbb1c0c4d542 | Java | Moiddes/Kreisliga | /src/simulation/Spiel.java | MacCentralEurope | 371 | 2.421875 | 2 | [] | no_license | package simulation;
public class Spiel {
public int Spieler = 22;
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hallo3");
//gendert
System.out.println("Hallo27");
// Erstellt
System.out.println("Hallo3");
}
static void kopfb... | true |
ad516b6a42b19e0314b126c669226b393d2e5e4f | Java | xrealm/tiktok-src | /sources/org/msgpack/unpacker/IntAccept.java | UTF-8 | 1,523 | 2.734375 | 3 | [] | no_license | package org.msgpack.unpacker;
import org.msgpack.MessageTypeException;
final class IntAccept extends Accept {
int value;
IntAccept() {
super("integer");
}
/* access modifiers changed from: 0000 */
public final void acceptInteger(byte b) {
this.value = b;
}
/* access modi... | true |
c144fe9c6a577b7d48ea794a7c1318e45fb05890 | Java | UnitOmega13/bulletinBoard | /src/main/java/utils/IdGenerator.java | UTF-8 | 163 | 2.375 | 2 | [] | no_license | package utils;
public class IdGenerator {
private static Integer generatedID = 1;
public static int generateId() {
return generatedID++;
}
}
| true |
cd693fa073f289fa7c8d53b1350d30a78c6c67c1 | Java | 976754331/photos | /app/android/src/com/cordova/hr/https/NetWorkRequest.java | UTF-8 | 11,848 | 2.09375 | 2 | [] | no_license | /**
* @ProjectName: TestCordova
* @FileName: NetWorkRequest.java
* @PackageName: com.hoperun.tj.https
* @Date: 2016年4月16日上午9:35:35
* @Copyright: Copyright (c) 2016, Loong All Rights Reserved.
*
*/
package com.cordova.hr.https;
import java.io.File;
import java.net.URLEncoder;
... | true |
e849986424a74515119eab39aec2bdfd5590b25d | Java | cpollet/itinerants | /webservice/core/src/main/java/net/cpollet/itinerants/core/domain/data/PersonData.java | UTF-8 | 1,819 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package net.cpollet.itinerants.core.domain.data;
/**
* Created by cpollet on 13.02.17.
*/
public interface PersonData {
PersonData EMPTY = new PersonData() {
@Override
public String getUUID() {
return "";
}
@Override
public String getFirstName() {
... | true |
76b073623eccdfce80e6fa380faeab7719f06922 | Java | vinayakinquirly/InquirlyCatalog | /app/src/main/java/inquirly/com/inquirlycatalogue/adapters/DetailsViewInfinitePagerAdapter.java | UTF-8 | 28,578 | 1.710938 | 2 | [] | no_license | package inquirly.com.inquirlycatalogue.adapters;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Parcelable;
impo... | true |
cdd46a4bb78af0eb1e06cd3b2bdcec4eb620c39c | Java | MyAndroidcom/xtuapp_Android | /zsxd/app/src/main/java/com/xtuapp/zsxd/activity/base/BaseActivity.java | UTF-8 | 826 | 2.078125 | 2 | [] | no_license | package com.xtuapp.zsxd.activity.base;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import org.xutils.x;
/**
* Created by Administrator on 2016/3/28 0028.
*/
public abstract class BaseActivity extends AppCompatActivity{
protected abstract int setView(... | true |
8279e31f39770ce829a1860aef245d7555698a36 | Java | attila-sz-toth/institution-manager | /src/test/java/com/tasz/institutionmanager/converter/InstitutionDetailsConverterTest.java | UTF-8 | 1,623 | 2.296875 | 2 | [] | no_license | package com.tasz.institutionmanager.converter;
import com.tasz.institutionmanager.constants.CareType;
import com.tasz.institutionmanager.constants.InstitutionType;
import com.tasz.institutionmanager.contract.InstitutionDetails;
import com.tasz.institutionmanager.model.InstitutionEntity;
import org.hamcrest.CoreMatcher... | true |
373fdcbc8f83a61cf7a907f226e1b45b8e22b4e6 | Java | automationmaki/Selenium-JBEHAVE-SERENITYBdd | /src/test/java/WhenSignUp.java | UTF-8 | 1,830 | 2.328125 | 2 | [] | no_license | import net.serenitybdd.junit.runners.SerenityRunner;
import net.thucydides.core.annotations.Managed;
import net.thucydides.core.annotations.Steps;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import testpackage.steps.serenity.SignUpSteps;
@RunWith(SerenityRunner.class)
... | true |
3f50706c7223d2ebe15bed6a6f1ed07b794be266 | Java | KyohKatha/krakatoa2010 | /Krakatoa/src/AST/ParenthesisExpr.java | UTF-8 | 653 | 2.859375 | 3 | [] | no_license | /*
*
*Integrantes
*
* Bruno Antunes da Silva 317292
* Katharina Carrapatoso Garcia 317144
*
*/
package AST;
public class ParenthesisExpr extends Expr {
public ParenthesisExpr( Expr expr ) {
this.expr = expr;
}
public void genC( PW pw, boole... | true |
7236c3d57d1bd041092461875f9702c16a8e6c54 | Java | dimtsi/ComputerApplicationsAssignment1 | /Assignment 1/a/src/assignment1/PowerTransformer.java | UTF-8 | 1,218 | 2.46875 | 2 | [] | no_license | package assignment1;
public class PowerTransformer {
Complex Y , Ysh;
private String rdfID , name , EqCont;
private int ID , PTE_1 , PTE_2;
private String sqldrop = "DROP TABLE IF EXISTS PowerTransformers";
private String sqlCreate = "CREATE TABLE IF NOT EXISTS PowerTransformers(TRANSFORMER_ID VARCHAR(37) NOT ... | true |
636134b4ba1a0755fdf8aac0e7ebdded2d5680c0 | Java | Nuggethead2003/Code-to-share | /Calculator/src/Calc.java | UTF-8 | 2,763 | 3.421875 | 3 | [] | no_license | import java.util.Scanner;
public class Calc {
public static Scanner input = new Scanner(System.in);
public static boolean lengthTest = false;
private static int birthDay, length, check;
public static boolean repeat = true, easterEgg = false;
private static String choice;
public static void main(String[] args) ... | true |
a6a1d4cd3e4ce8fe39a1590c143fbf28220559ed | Java | thanompongw/NFE-Batch | /src/main/java/co/th/ktc/nfe/batch/dao/impl/LetterRejectLR04Dao.java | UTF-8 | 11,606 | 1.984375 | 2 | [] | no_license | /**
*
*/
package co.th.ktc.nfe.batch.dao.impl;
import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.stereotype.Repository;
import co.th.ktc.nfe.batch.dao.AbstractBatchDao;
/**
* @author temp_dev1
*
*/
@Repository(value = "letterRejectLR04Dao")
public class LetterR... | true |
e880578f79f7f091a390ede91ba77b7ff7be869d | Java | ReExia/java-demos | /elasticsearch-demo/src/main/java/com/example/elasticsearch/entity/Product.java | UTF-8 | 1,958 | 2.25 | 2 | [] | no_license | package com.example.elasticsearch.entity;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
@Document(indexName = "shop", type = "product")
public class Product {
... | true |
0a03dbde93d4ac13241221216ddcbcdf556d0acb | Java | ansonlq/qLife | /src/qLifeEvent/interview/solution/Solution_251.java | UTF-8 | 1,026 | 2.890625 | 3 | [] | no_license | package qLifeEvent.interview.solution;
import java.util.Iterator;
import java.util.List;
/**
* https://leetcode.com/problems/flatten-2d-vector/
*
* @author ql030422
*
*/
public class Solution_251 implements Iterator<Integer> {
private final Iterator<List<Integer>> vec2d;
private Iterator<Integer> vec1... | true |
80c5758fc12d94cc30dd1e8522e9e1f9b9dd8dc8 | Java | markovandooren/chameleon | /src/org/aikodi/chameleon/oo/member/MemberRelationSelector.java | UTF-8 | 3,926 | 2.53125 | 3 | [
"MIT"
] | permissive | package org.aikodi.chameleon.oo.member;
import org.aikodi.chameleon.core.declaration.Declaration;
import org.aikodi.chameleon.core.declaration.DeclarationContainer;
import org.aikodi.chameleon.core.declaration.Signature;
import org.aikodi.chameleon.core.lookup.DeclarationSelector;
import org.aikodi.chameleon.core.look... | true |
4dc397ac9622dfb050ad73388347a9c9dd8d24e7 | Java | lj175456681/lj | /src/main/java/designmode/build/NutritionFacts.java | UTF-8 | 1,933 | 2.90625 | 3 | [] | no_license | package designmode.build;
/**
* Title: NutritionFacts
* Description:
* author: liujie
* date: 2017-02-28 上午11:24
*/
public class NutritionFacts {
private int fat;
private int salt;
private int carbohydrate;
private int protein;
private int minerals;
private int vitamin;
private Nutri... | true |
f3d8e5c5b6299d5f440ef9d743fac4dd30ad5674 | Java | yucheng880730/java_inheritance_pratice | /checkpoint6/checkpoint6_behavior.java | UTF-8 | 160 | 1.945313 | 2 | [] | no_license | //package animal;
public interface checkpoint6_behavior {
public abstract void speak();
public abstract void feed();
public abstract void move();
}
| true |
6655fa171f0bd11e94a545e3ffb5f7aca26dd92c | Java | UlbertAO/WeCare | /app/src/main/java/com/example/omen/voice/VoiceService.java | UTF-8 | 8,696 | 1.851563 | 2 | [] | no_license | package com.example.omen.voice;
import android.Manifest;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManage... | true |
54a66c7bf3849d47ceee7dd6d3f4269c8fd5d522 | Java | starlainfinite/vepami | /app/src/main/java/com/technologies/pixelbox/vepami/MainActivity.java | UTF-8 | 17,191 | 1.679688 | 2 | [] | no_license | package com.technologies.pixelbox.vepami;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.os.AsyncTask;
import android.support.design.widget.NavigationView;
... | true |
cc51690ce3b203361253ddcb96b0916291278173 | Java | adc-irybitskyi/ssp-ms-retail | /src/main/java/com/tenx/ms/retail/stock/service/StockService.java | UTF-8 | 1,609 | 2.3125 | 2 | [] | no_license | package com.tenx.ms.retail.stock.service;
import com.tenx.ms.retail.stock.domain.StockEntity;
import com.tenx.ms.retail.stock.repository.StockRepository;
import com.tenx.ms.retail.stock.rest.dto.StockDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autow... | true |
06540273ed37c3d61f7dd903345be594782df6bf | Java | nieyue/YaYaoDelegation | /1/YaYaoDelegation/YaYaoDelegation/src/com/nieyue/bean/Seller.java | UTF-8 | 3,958 | 2.328125 | 2 | [] | no_license | package com.nieyue.bean;
import java.io.Serializable;
import java.util.Date;
/**
* 卖家类
*
* @author yy
*
*/
public class Seller implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 店铺id
*/
private Integer sellerId;
/**
* 邮箱
*/
privat... | true |
57c05d09c10dc4b34ce108de2b0ad8734ab30f85 | Java | xxxxxxxxxxj/Pet_New | /app/src/main/java/com/haotang/easyshare/mvp/view/receiver/MyJPushReceiver.java | UTF-8 | 9,442 | 2.0625 | 2 | [] | no_license | package com.haotang.easyshare.mvp.view.receiver;
import android.app.ActivityManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.haotang.easyshare.app.AppConfig;
import com.haotang.easyshar... | true |
32e042039b9d99d1154102599a9f67c1741572c5 | Java | Tmdsb941/passcloud | /passcloud-order/src/main/java/com/cs/yang/passcloudorder/controller/OrderMasterController.java | UTF-8 | 2,312 | 1.9375 | 2 | [] | no_license | package com.cs.yang.passcloudorder.controller;
import com.cs.yang.passcloudorder.dao.OrderMasterDao;
import com.cs.yang.passcloudorder.service.OrderMasterService;
import com.cs.yang.passcloudpojo.pojo.OrderMaster;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annota... | true |
08cc45871e6c5803fc60c86483ea9b26db066dd5 | Java | fuyme/Travianize | /src/com/travianize/travianize/parsers/Dorf1PageParser.java | UTF-8 | 4,170 | 2.453125 | 2 | [] | no_license | package com.travianize.travianize.parsers;
import com.travianize.travianize.parsers.pages.Dorf1Page;
import com.travianize.travianize.utils.Logger;
import com.travianize.travianize.utils.RegexpUtils;
import java.util.ArrayList;
import java.util.List;
public class Dorf1PageParser {
private static int[] ... | true |
8ffe5873a08063a0928ea28d481ffda28a9d7515 | Java | frhtas/AutoparkProject | /AutoparkProject/src/project/RegularVehicle.java | UTF-8 | 374 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package project;
public class RegularVehicle implements Vehicle {
private String plate;
public RegularVehicle(String plate) {
this.plate = plate;
}
@Override
public String getPlate() {
return plate;
}
@Override
public Subscription getSubscription() {
return null;
}
@Override
p... | true |
d8a5fefbdf9472b3be550b9cfaeee11f1e9fe8a6 | Java | dwifdji/real-project | /366pai/zeus-core/core-service/src/main/java/com/_360pai/core/dao/enrolling/EnrollingActivityTestDao.java | UTF-8 | 559 | 1.546875 | 2 | [] | no_license |
package com._360pai.core.dao.enrolling;
import com._360pai.core.condition.enrolling.EnrollingActivityTestCondition;
import com._360pai.core.model.enrolling.EnrollingActivityTest;
import com._360pai.arch.core.abs.BaseDao;
/**
* <p>EnrollingActivityTest的基础操作Dao</p>
* @ClassName: EnrollingActivityTestDao
* @Descript... | true |
763fb66881d27c02b237f6922e88f1776a8f256c | Java | shamune12/hanbit | /한빛/src/rps/GameRPSMain.java | UTF-8 | 546 | 3.1875 | 3 | [] | no_license | package rps;
import java.util.Scanner;
public class GameRPSMain {
public static void main(String[] args) {
System.out.println("***가위바위보 게임***");
System.out.println("가위:1, 바위:2, 보:3");
Scanner scanner = new Scanner(System.in);
int scan = scanner.nextInt();
String result = "";
//-------------[데이... | true |
c3e9ec28152a994edcfb539d52debf8a127c611f | Java | shivangichhabra/DataStructuresImplemenationForBeginners | /src/Sorting/InsertionSort.java | UTF-8 | 475 | 3.484375 | 3 | [] | no_license | package Sorting;
/**
* Created by Shivangi on 5/4/2017.
*/
public class InsertionSort {
public static void main(String args[]){
int a[] = {10, 50, 30, 20, 70, 0};
for(int i=0; i<a.length; i++){
int value = a[i], j=0;
for(j=i-1; j>=0 && a[j] > value; j--){
a... | true |
be3d6c5e8abf8c270a7a63954b911137d9ef9390 | Java | guolf/GuoBlog | /app/src/main/java/cn/guolf/guoblog/lib/kits/Toolkit.java | UTF-8 | 7,883 | 1.960938 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package cn.guolf.guoblog.lib.kits;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.net.Uri;
import android.os.Build;
import android.os.Handler... | true |
1acffe7ad858e104ec5dc2d6bf2bfc6058d25056 | Java | sheffercool/windchill-2 | /db/Query.java | UTF-8 | 10,001 | 2.28125 | 2 | [] | no_license | package ext.hydratight.db;
import ext.hydratight.GeneralUtils;
import ext.hydratight.db.DataTable;
import java.io.BufferedReader;
import java.io.FileReader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
import java.ut... | true |
94e5b5bec9d2bedd0897c47553a3651a91a1c17a | Java | silenceOfFuture/FirstStudyOfThread | /src/com/ssx/concurent/racecondition/EnergySystem.java | UTF-8 | 1,956 | 3.828125 | 4 | [] | no_license | package com.ssx.concurent.racecondition;
public class EnergySystem {
// 能量盒子,储存能量的地方
private final double[] energyboxs;
private final Object lockObj=new Object();
/**
* @param n 能量盒子的数量
* @param initalEnergy 每个能量盒子初始含有的能量值
*/
public EnergySystem(int n, double initalEn... | true |
9887760495a391b59bce6a3f13635690e5896620 | Java | renshuxian/cuid | /src/main/java/com/cmb/itc/dba/config/ZkProperties.java | UTF-8 | 1,054 | 2.078125 | 2 | [] | no_license | package com.cmb.itc.dba.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "ZkProperties")
public class ZkProperties {
//util ip和端口
private String ipAndPort;
//zk超时时间
private... | true |
dd26529f7da8f671e46452b40a7011ec9e2fd9c4 | Java | moutainhigh/documents | /ec-roc/src/main/java/org/n3r/esql/ESelectStmt.java | UTF-8 | 2,839 | 2.15625 | 2 | [] | no_license | package org.n3r.esql;
import java.io.Closeable;
import java.io.IOException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.n3r.core.lang.RClose;
import org.n3r.esql.ex.EsqlExecuteException;
import org.n3r.esql.impl.EsqlRsRetriever;
import org.n3r.esql.param.Esql... | true |
d91b67bc528acfe07baed49457474edf3eeb0b69 | Java | mikewoo/zookeeper-in-action | /configuration-management-example/src/main/java/com/mikewoo/server/utils/JsonUtil.java | UTF-8 | 2,201 | 2.359375 | 2 | [] | no_license | package com.mikewoo.server.utils;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* json数据处理工具类
* ... | true |
ca835c1bd4fd5c44b45cbbb572bb31668478f684 | Java | DTStack/flinkStreamSQL | /impala/impala-side/impala-async-side/src/main/java/com/dtstack/flink/sql/side/impala/ImpalaAsyncReqRow.java | UTF-8 | 7,153 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
5b8fc32e7f5cdea9205f6d88974be3279732856b | Java | EmaBord/viajeros | /src/dao/recorrido/RecorridoMasUnDiaDAOImpl.java | UTF-8 | 3,304 | 2.40625 | 2 | [] | no_license | package dao.recorrido;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.SessionFactory;
import org.springframework.transaction.annotation.Transactio... | true |
3daa8f6c1345dc1fa693932539d29f8ca8e8ced3 | Java | maxsearan/allCourses | /intro to programming/finalProject/src/q2.java | UTF-8 | 735 | 3.796875 | 4 | [] | no_license | // Write to a file integers
import java.util.*;
import java.io.*;
public class q2 {
public static void main(String[] args) {
int number;
Scanner input = new Scanner(System.in);
File myFile1 = new File("myintergers.txt");
try {
PrintWriter fileoutput = new PrintWriter... | true |
3f64f20fb74c22ad3e0201e075a9f75cd588bfb4 | Java | wsgan001/textDetection | /src/edu/scut/preprocess/matrix/Matrix.java | GB18030 | 3,395 | 2.953125 | 3 | [] | no_license | package edu.scut.preprocess.matrix;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import edu.scut.preprocess.picture.GrayMatrix;
public class Matrix {
private static final int SPLIT_WIDTH=18;
private static final int SPLIT_HEIGHT=6;
private GrayMatrix grayMat... | true |
ff7c36069492a510f15e41d610a285a20a8dfb7d | Java | Sachins4/Playground | /Four musketeers/Main.java | UTF-8 | 157 | 2.296875 | 2 | [] | no_license | #include<iostream>
int main()
{
float a,b,c,d,e,f;
std::cin>>a>>b>>c>>d>>e>>f;
float x=(a+c+e)/3;
float y=(b+d+f)/3;
std::cout<<x<<'\n'<<y<<'\n';
} | true |
67c0b3f7eef94eb463dcbc16ea54135c8daddb2f | Java | andrerrcosta/SqlThymeleafRestSpring | /src/test/java/com/nobblecrafts/xpto/unit/CidadeRepositoryTest.java | UTF-8 | 381 | 1.585938 | 2 | [] | no_license | package com.nobblecrafts.xpto.unit;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
/**
* Sem tempo agora =(
*/
@DataJpaTest
@DisplayName("Cidade Repository Test")
public class CidadeRepositoryTest {
@Test
@Di... | true |
810b2b7c0ecddeed6cc7c9094e8224c5e80ca4aa | Java | softreaver/test_spring | /src/main/java/com/wildcodeschool/example/springHibernateExample/utils/Outputter.java | UTF-8 | 1,146 | 2.984375 | 3 | [] | no_license | package com.wildcodeschool.example.springHibernateExample.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import com.wildcodeschool.example... | true |
d2f338759fb334c36fabbd5f0eaba5cf4b4bb884 | Java | AlexisGuarin321/Bodega_2 | /Bodega/src/java/modelo/Productoentregado.java | UTF-8 | 6,254 | 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 modelo;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
i... | true |
cc0e721774fd2b741edc9822ef6762410a4258ca | Java | Dronicho/lab5 | /src/rules/Rule.java | UTF-8 | 128 | 1.992188 | 2 | [] | no_license | package rules;
import exceptions.CheckFailed;
public interface Rule {
public void check(String val) throws CheckFailed;
}
| true |