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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1eaaa0204e4fcfee3c9c7e9b98ba64dd3a4a74c9 | Java | Ganom/Testapk | /com/upsight/android/internal/persistence/subscription/Subscriptions.java | UTF-8 | 1,732 | 2.09375 | 2 | [] | no_license | package com.upsight.android.internal.persistence.subscription;
import com.squareup.otto.Bus;
import com.upsight.android.internal.persistence.subscription.DataStoreEvent.Action;
import com.upsight.android.persistence.UpsightSubscription;
import rx.Observable;
import rx.Subscription;
import rx.functions.Action1;
public... | true |
3d6e66512f614fde0ab2880446bfcf16d301c340 | Java | zybotian/ssm | /server/src/main/java/org/oasis/service/CsCaseService.java | UTF-8 | 449 | 1.796875 | 2 | [] | no_license | package org.oasis.service;
import org.oasis.model.CsCase;
import org.oasis.mybatis.mapper.CsCaseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author tianbo
* @date 2019-03-08
*/
@Service
public class CsCaseService {
@Autowired
... | true |
b59013a8100b4f36a822711958736fc1215ae3a3 | Java | dcleyne/CampaignManager | /test/TestMapLayoutRenderer.java | UTF-8 | 1,198 | 2.75 | 3 | [] | no_license | package test;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Vector;
import javax.imageio.ImageIO;
import bt.managers.MapManager;
import bt.mapping.MapSet;
import bt.ui.renderers.MapLayoutRenderer;
import bt.util.ExceptionUtil;
import bt.util.PropertyUtil;
public class TestMa... | true |
038ef6a5229069666abd129db0937e6b48a3ea65 | Java | itsasm/data-processing | /src/main/java/com/data_processing/app/execution/DataExecutor.java | UTF-8 | 2,777 | 2.578125 | 3 | [] | no_license | package com.data_processing.app.execution;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import... | true |
4340e03b603febd99292e35231643cb834bc1823 | Java | ThousandPulse/helloword | /src/studentSystem/dbconnect/DBModify.java | UTF-8 | 16,296 | 2.765625 | 3 | [] | no_license | package studentSystem.dbconnect;
import java.sql.*;
public class DBModify {
private String SQL;
private ResultSet rs;
private static Statement st;
public DBModify(Statement st) {
DBModify.st = st;
}
private String[][] showAll(String SQL) {
int studentCount = getStudentCount()... | true |
b0ed54178657f1be195547af953ac3befeb9a199 | Java | zeau/lean_pro | /src/main/java/com/bidanet/bdcms/core/driver/cache/RedisCache.java | UTF-8 | 3,049 | 2.4375 | 2 | [] | no_license | package com.bidanet.bdcms.core.driver.cache;
import com.bidanet.bdcms.core.common.JsonParseTool;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import java.util.ArrayList;
import java.util.HashSet;
... | true |
be0c23755b00c97d0aabbab2a07bbe90ebfeec18 | Java | ahmedalghareeb/MyloginRegisterApp | /app/src/main/java/com/ghareeb/myloginregisterapp/model/User.java | UTF-8 | 1,481 | 2.5 | 2 | [] | no_license | package com.ghareeb.myloginregisterapp.model;
import java.io.Serializable;
import java.util.ArrayList;
public class User implements Serializable {
private String fisrtName;
private String lastName;
private String email;
private String password;
//public static ArrayList<User> users = new ArrayLis... | true |
a0ad82f40302e3f3192643a7566e14c0769524ab | Java | apache/karaf | /jaas/modules/src/test/java/org/apache/karaf/jaas/modules/properties/PropertiesLoginModuleTest.java | UTF-8 | 10,111 | 2.125 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"MIT",
"EPL-1.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
f55a755dc74bc92b5fe8f0247f26bb1e1ae14c84 | Java | ChenJun1/VehicleTerminalSystem1 | /app/src/main/java/com/cvnavi/app/ui/activity/MainDialogActivity.java | UTF-8 | 3,278 | 2.078125 | 2 | [] | no_license | package com.cvnavi.app.ui.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager... | true |
3c9506bd152050b8614e13b40b7a9b2925318856 | Java | Kibrom1/ASD | /Lab/BankApp_Observer/src/bank/observer/EmailSender.java | UTF-8 | 246 | 2.59375 | 3 | [] | no_license | package bank.observer;
import bank.domain.Customer;
import bank.pattern.*;
public class EmailSender implements IObserver{
public void update(Customer customer,double balance){
System.out.println("Account Balance changed Email sent");
}
}
| true |
a713f15b8538455b5dac35cce62dce1eacdbb4a0 | Java | xiaoyaozijacky/bcbpm | /bcbpm-model/src/main/java/com/bcbpm/model/custom/OptionConfig.java | UTF-8 | 1,675 | 2.171875 | 2 | [] | no_license | /**
*
*/
package com.bcbpm.model.custom;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**<p>Title: OptionConfig</p>
* <p>Company: bcbpm</p>
* @author jacky
* @date 2018年10月15日 下午3:22:45
* @version :
* @description:
*/
public c... | true |
48304656a377f4c1893d483b27756cd33cd89742 | Java | MarvinMachry/crudRest | /src/main/java/br/edu/ifsul/modelo/Veiculos.java | UTF-8 | 1,760 | 2.328125 | 2 | [] | no_license |
package br.edu.ifsul.modelo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import jav... | true |
d2e3535b1bf8fe11b47be9db1dc74f07fafa4636 | Java | hoon91/shop_pracitce | /Daily/src/main/java/com/daily/controller/MemberController.java | UTF-8 | 4,766 | 2.203125 | 2 | [] | no_license | package com.daily.controller;
import java.io.IOException;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
i... | true |
e0a68754085e267cc829383a341543eca2c29c40 | Java | meelrossi/ati-projects | /src/controller/tab/SusanTab.java | UTF-8 | 1,611 | 2.515625 | 3 | [] | no_license | package controller.tab;
import java.io.IOException;
import border.SusanBorderAndCorner;
import components.view.OpenImage;
import components.view.SaveImage;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Button;
imp... | true |
d8677f2fe5c276936c74d1a4193e686782f9e0eb | Java | msimar/RouteTable | /src/com/mps/dsp/core/TableEntry.java | UTF-8 | 2,603 | 3.09375 | 3 | [
"MIT"
] | permissive | package com.mps.dsp.core;
/**
* A class represent rows for the Routing Table of Node.
* It is the basic data structure used to represent row
* in the routing table for each Node.
*
* @author msingh
*
*/
public final class TableEntry implements Comparable<TableEntry>{
/**
* the Destination Node address
... | true |
28dec266d40dd70be96918da24277212673e3303 | Java | aksen2011/cal | /src/cal/main.java | UHC | 1,128 | 3.5625 | 4 | [] | no_license | package cal;
public class main {
public static void main(String[] args) {
<<<<<<< HEAD
=======
System.out.println("ù° ڸ Է ּ.");
int n1=(new Scanner(System.in)).nextInt();
System.out.println("ù° ڸ Է ּ.");
int n2=(new Scanner(System.in)).nextInt();
String s=(new Scanner(System.in)).next();
switch(s) {
... | true |
2e0b5d958876564bdd8b9dc99026ec3ffeb0e213 | Java | frameworksselenium/LatestPC | /src/main/java/com/pc/driver/ParallelE2EDriver.java | UTF-8 | 5,185 | 2.265625 | 2 | [] | no_license | package com.pc.driver;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.testng.annotations.AfterSuite... | true |
2cda38fab5d411246623f6c2b936a42a06f84d68 | Java | JustShowTime/springboot-demo-rabbitmq | /src/main/java/com/example/demo/rabbit/consumer/DemoQueueConsumer.java | UTF-8 | 480 | 2.09375 | 2 | [] | no_license | package com.example.demo.rabbit.consumer;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
/**
* @author czq
* @Date 2020-06-24 17:13:15
*/
@Component
@RabbitListener(queues="dem... | true |
bf2fcb7035d198d28e82b4e694332604726e1f45 | Java | ppark3/CourseRegistrationSystem | /Admin.java | UTF-8 | 723 | 3.46875 | 3 | [] | no_license | /* Admin class that extends the User class.
* Nothing much is used from this java file.
* It only has methods that would have been useful if the Admin were able to change his/her name. */
public class Admin extends User implements AdminInterface, java.io.Serializable {
// As of now, the default constructor for Ad... | true |
8c713e03f0df12d4ba82b496f3853e9e3f1e2139 | Java | julioserafim/prontuariov1.3.1 | /prontuario-v1.3.1/aplicacao/prontuario/src/main/java/ufc/npi/prontuario/controller/ProfessorFormularioController.java | UTF-8 | 2,656 | 2.109375 | 2 | [] | no_license | package ufc.npi.prontuario.controller;
import static ufc.npi.prontuario.util.ConfigurationConstants.PERMISSAO_ADMINISTRACAO;
import static ufc.npi.prontuario.util.ConfigurationConstants.PERMISSAO_ADMINISTRACAO_VERIFICACAO_ID_PROFESSOR;
import static ufc.npi.prontuario.util.PagesConstants.DETALHES_PROFESSOR;
import sta... | true |
a2114a8da30670c0bc7368100f58ad1301dfb61a | Java | azizarc88/SmartPrint_SapuSapu | /app/src/main/java/id/backbonedev/smartprint/App/TentangItemAdapter.java | UTF-8 | 2,054 | 2.140625 | 2 | [] | no_license | package id.backbonedev.smartprint.App;
import android.app.Activity;
import android.content.Context;
import android.icu.text.UFormat;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.BaseAdapt... | true |
977203ae66492f5f9e790d593b9a873114ef2126 | Java | jaydi/Flag-android | /src/com/tankers/smile/services/apis/redeems/List.java | UTF-8 | 1,647 | 2 | 2 | [] | no_license | package com.tankers.smile.services.apis.redeems;
import java.io.IOException;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpResponse;
import com.google.api.client.util.Key;
import com.tankers.smile.models.RedeemCollection;
import com.tankers.smile.services.apis.FlagClient;
import... | true |
9e825bdc1deb2c08bed9d95bedfa564713be3b76 | Java | plutonic88/subgame | /src/support/ProfileInfo.java | UTF-8 | 2,667 | 2.828125 | 3 | [] | no_license | package support;
import static subgame.EGAUtils.getSB;
import static subgame.EGAUtils.nf;
import static subgame.EGAUtils.returnSB;
public final class ProfileInfo {
// the outcome represented
public final int[] outcome;
// the payoffs for this outcome
public final double[] payoffs;
// maximum number of po... | true |
628ad75de205e91a1a0a59b0ed0c621397e615f2 | Java | karlis58rg/MovimientoVecinal | /app/src/main/java/mx/oax/movimientovecinal/ConfiguracionWidgets.java | UTF-8 | 2,247 | 1.9375 | 2 | [] | no_license | package mx.oax.movimientovecinal;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Build;
import android.os.... | true |
b0f27086d23eb8f83b11307fadaa40d0a4edc8d3 | Java | OleksiiT-in6k/subsequence | /test/SequenceTest.java | UTF-8 | 1,736 | 2.78125 | 3 | [] | no_license | /**
* Created by employee on 7/8/16.
*/
import com.interlink.FindingSequence;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static com.interlink.FindingSequence.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static... | true |
5e1d5582011d8f23eed52666137ef6655b660d8c | Java | iuji/BakingApp | /app/src/main/java/com/example/android/bakingapp/utils/Constants.java | UTF-8 | 283 | 1.6875 | 2 | [] | no_license | package com.example.android.bakingapp.utils;
public final class Constants {
public Constants() {
}
// Retrofit
public static final String BASE_URL_API = "http://go.udacity.com/";
// Widget
public static final String RECIPE_TO_WIDGET = "recipe_to_widget";
}
| true |
549281c2b5adfcda2aee78dd4255d2492ba2e94a | Java | p1212012/game_dev | /royalClash/src/entity/Entity.java | UTF-8 | 1,790 | 2.53125 | 3 | [] | no_license | package entity;
import java.awt.Graphics2D;
import states.Main;
import util.MouseHandle;
import util.Vector2f;
public abstract class Entity {
private final int Up = 0;
private final int Down = 1;
private final int Right = 2;
private final int Left = 3;
private final int sky = 0;
private fin... | true |
57115f96c0684f343fe54bb218a0eda9080bce19 | Java | cor-serpentis/server | /src/main/java/gsg/server/logic/GameLoop.java | UTF-8 | 1,974 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package gsg.server.logic;
import gsg.infrastructure.Utils;
import gsg.infrastructure.messages.IContainer;
import gsg.infrastructure.messages.MessageContainer;
import gsg.network.ConnectionLibrary;
import gsg.network.InputLoop;
import gsg.network.OutputLoop;
import gsg.network.provider.ProviderFactory;
import gsg.netwo... | true |
e9585f965be5f368d5d8105f1c54753f595efccb | Java | kosztadani/example_mock | /src/main/java/dev/kosztadani/examples/mock/api/Sensor.java | UTF-8 | 157 | 2.21875 | 2 | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | package dev.kosztadani.examples.mock.api;
public interface Sensor {
/**
* @return The temperature, in degrees Celsius.
*/
int sense();
}
| true |
57f670712136c8da49a9e72d5c12e54e5ade53e9 | Java | ygSonggoon/CapstonProejct | /src/main/java/practice/capston/service/TextContentServiceImpl.java | UTF-8 | 2,276 | 2.375 | 2 | [] | no_license | package practice.capston.service;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import practice.capston.domain.entity.Image;
import practice.capston.domain.entity.TextContent;
import practice.capston.repository.Ima... | true |
f3bfe39ce918a421afe26f4384858f8bd28dfa27 | Java | zhaoshuzhen01/project | /LubanCustom/baselibrary/src/main/java/com/example/baselibrary/photomanager/CacheManager.java | UTF-8 | 1,277 | 2.609375 | 3 | [] | no_license | package com.example.baselibrary.photomanager;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Environment;
import java.io.File;
/**
* 路径及缓存管理
* Created by lile on 15-11-15.
*/
public class CacheManager {
public static final String DIR_CACHE = Environment.getExternalStorageD... | true |
1a035cc3869a0daeca7d24ec31828bcff525f8e9 | Java | bayern39/core | /gui/src/main/java/org/jboss/as/console/client/tools/modelling/workbench/repository/UndertowExample.java | UTF-8 | 5,963 | 2.015625 | 2 | [] | no_license | package org.jboss.as.console.client.tools.modelling.workbench.repository;
import org.jboss.as.console.mbui.model.StereoTypes;
import org.jboss.as.console.mbui.model.mapping.DMRMapping;
import org.useware.kernel.model.Dialog;
import org.useware.kernel.model.mapping.Mapping;
import org.useware.kernel.model.structure.Con... | true |
215903e04ee4ae4309e24b18f1d9a489864a7a87 | Java | KMuraliReddy/ISI-Projects | /Java-Project/Test/src/MyModelListener.java | UTF-8 | 381 | 2.453125 | 2 | [] | no_license | import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
public class MyModelListener implements TableModelListener {
@Override
public void tableChanged(TableModelEvent e) {
//The table model has been changed, update the progressbar
MyFrame.b... | true |
5c1517a62caa47d12ee9f5de7c7ac3ddc8cd4063 | Java | yangzongzhuan/RuoYi | /ruoyi-system/src/main/java/com/ruoyi/system/domain/SysOperLog.java | UTF-8 | 6,720 | 1.882813 | 2 | [
"MIT"
] | permissive | package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
... | true |
21bb9ddf816fa095cd290aaf30104fecbce7e373 | Java | gugaroodrigues/ExemploDAOTest | /ExercicioDAOTestFilme/test/TestDAOFilme.java | UTF-8 | 1,115 | 2.234375 | 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.
*/
import dao.FilmeDAO;
import Bean.Filme;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Alunos
*/
public... | true |
ecd3c8909dab60854785e2d5ee8bdfc28e790800 | Java | JiaMingLiu93/homegrown | /basic/algorithm/src/main/java/com/homegrown/basic/algorithm/sort/BubbleSort.java | UTF-8 | 645 | 3.515625 | 4 | [] | no_license | package com.homegrown.basic.algorithm.sort;
import java.util.stream.Stream;
/**
* @author youyu
* @date 2020/1/21 10:54 PM
*/
public class BubbleSort {
public static void main(String[] args) {
Integer []a = of(3,2,1,5,4);
for (int i=0;i<a.length;i++){
for (int j=0;j<a.length-1-i;j++... | true |
ae53dffc34c86d27e37e68e707e6709b2b7e02eb | Java | MDE4CPP/MDE4CPP | /generator/UML4CPP/UML4CPP.generator/src/UML4CPP/generator/main/helpers/IDGeneratorService.java | UTF-8 | 479 | 2.59375 | 3 | [
"EPL-1.0",
"MIT"
] | permissive | package UML4CPP.generator.main.helpers;
public class IDGeneratorService {
public String polynomialRollingHash(String key)
{
//generate a hash value from string using polynomial rolling hash
int n = key.length();
int m = (int) (10e9 + 9);
int p = 53;
long powerOfP = 1;
long hash = 0;
for(int i = 0... | true |
9d923aaf4455f68a9fa0ba7514b59f30156b037c | Java | pabloblancoo/ShareMyTrip-V2 | /sdi3-12-EJB/ejbModule/com/sdi/business/impl/classes/rating/EliminarRating.java | UTF-8 | 280 | 2.015625 | 2 | [] | no_license | package com.sdi.business.impl.classes.rating;
import com.sdi.infrastructure.Factories;
public class EliminarRating {
public boolean run(long id) {
try {
Factories.persistence.newRatingDao().delete(id);
return true;
} catch (Exception e) {
return false;
}
}
}
| true |
911ce3c61f1d6320441a1d3f96f0c2941f4e479d | Java | deliaserbanescu/SerbanescuAndreeaDelia1072 | /ProiectCTS/src/clase/ListaProfesori.java | UTF-8 | 118 | 1.71875 | 2 | [] | no_license | package clase;
import java.util.List;
public interface ListaProfesori {
public List<String> getListaProfesori();
}
| true |
f438614dd022cc66d8e9184da91b0fcc6d5fc536 | Java | kiss9815/CopyKakaoTalk | /app/src/main/java/com/juntcompany/copykakaotalk/TalkList/TalkData.java | UTF-8 | 1,180 | 1.984375 | 2 | [] | no_license | package com.juntcompany.copykakaotalk.TalkList;
import android.graphics.drawable.Drawable;
import java.util.Date;
/**
* Created by EOM on 2016-02-07.
*/
public class TalkData {
private int room_profile;
private String room_name;
private String recent_speak;
private int room_people_count;
privat... | true |
b84c3545cf2968d68ee08d8ff290f1e3b8ab9ea6 | Java | justcodedroid/quwang | /app/src/main/java/com/example/admin/quwang/http/HeadsInterceptor.java | UTF-8 | 933 | 1.90625 | 2 | [] | no_license | package com.example.admin.quwang.http;
import android.util.Log;
import java.io.IOException;
import java.util.Set;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by admin on 2017/3/25.
*/
public class HeadsInterceptor implements Interceptor {
@Override
public Re... | true |
635efb6a31032f5615023d25723e0206cebce13e | Java | Andreas237/AndroidPolicyAutomation | /ExtractedJars/Ibotta_com.ibotta.android/javafiles/com/airbnb/lottie/ColorFactory.java | UTF-8 | 4,430 | 2.28125 | 2 | [
"MIT"
] | permissive | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.airbnb.lottie;
import android.graphics.Color;
import org.json.JSONArray;
class ColorFactory
implements AnimatableValue.Factory
{
ColorFact... | true |
e3c5f2a5ddef1f9830960e6a29cf03277e670626 | Java | martaboteller/TripMemories_with_sidemenu | /app/src/main/java/model/Trip.java | UTF-8 | 4,714 | 2.625 | 3 | [] | no_license | package model;
import androidx.annotation.NonNull;
import androidx.room.Entity;
import com.google.gson.annotations.SerializedName;
import java.util.Date;
import java.util.Objects;
import java.util.UUID;
@Entity(tableName = "table_trips")
public class Trip {
//Definition of variables for HTTP
@SerializedNa... | true |
2f7a421cbe5ec8b223ef61c9161edd5b775dba28 | Java | Dmitriy-Topoplnik/hw_5_reload | /src/ru/hw_5/Utilites/CommandFactory.java | UTF-8 | 1,023 | 2.828125 | 3 | [] | no_license | package ru.hw_5.Utilites;
import ru.hw_5.Utilites.Commands.*;
/**
* Created by admin on 21.11.2016.
*/
public class CommandFactory{
public static ConsoleExectutable getCommand(String input) {
String[] command = input.split("\\s+");
String args ="";
for (int i = 1; i< command.length;i++)... | true |
29d3a44c0c665dfc58d11df2a5f71ad7bfc90cc3 | Java | emsnguyen/NoBrainerGrammar---Java-Web-Final-Project | /src/java/controller/SelectController.java | UTF-8 | 1,304 | 2.21875 | 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 controller;
import dal.CategoryDAO;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayLi... | true |
45832e26456c1840c6d9d4e26edb04750812c401 | Java | rafal-perkowski/SpringApps | /app/SampleApp/src/main/java/pl/rp/app/service/ArtistServiceImpl.java | UTF-8 | 1,100 | 2.390625 | 2 | [] | no_license | package pl.rp.app.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pl.rp.app.controller.TestController;
import pl.rp.app.model.Artist;
import pl.rp.app.repository.ArtistRepository;
@Service
public class ArtistServiceIm... | true |
efc679e083f8754ea79448c0f25f35dd1a059d94 | Java | PJbesnard/ChatHack | /sources/src/fr/upem/net/tcp/nonblocking/console/CloseConnection.java | UTF-8 | 585 | 3.09375 | 3 | [] | no_license | package fr.upem.net.tcp.nonblocking.console;
/**
* This class allows to call an accept method on a close connection operation
*/
public class CloseConnection implements ConsoleMessageFrame {
private final String login;
public CloseConnection(String login) {
this.login = login;
}
/**
* Gets the login
* ... | true |
9ae65ba38b126558bf09c08897b87fab2cbd2b9e | Java | scdblab/TARDIS | /YCSB/mongodb/src/main/java/com/yahoo/ycsb/db/MetricsHelper.java | UTF-8 | 4,104 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.yahoo.ycsb.db;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger;
import org.json.JSONException;
import org.json.JSONObject;
public class MetricsHelper {
public static Atomi... | true |
eb3601ffbf17c374f98a32991b930c5c6339fcf0 | Java | wissem007/badges | /src/tn/com/smartsoft/framework/presentation/view/tags/xtpl/XTplForEach.java | UTF-8 | 929 | 2.25 | 2 | [] | no_license | package tn.com.smartsoft.framework.presentation.view.tags.xtpl;
import java.io.StringWriter;
import org.apache.commons.lang.StringUtils;
import tn.com.smartsoft.framework.presentation.view.tags.xtpl.utils.XTplUtils;
public class XTplForEach extends XTplBodyNode {
/**
*
*/
private static final long serialVer... | true |
d22e4838ebcd007d78e9b9dfd8d1b14976a9318c | Java | hotpads/datarouter | /datarouter-util/src/test/java/io/datarouter/util/lang/LineOfCodeTests.java | UTF-8 | 1,373 | 2.375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* 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... | true |
0e65daab55b86fab7e41d8edce3c3875984339f9 | Java | mhussainshah1/OCPStudyGuide | /src/ocp11/ch13/introduction/ZooAnimal-HomeLT.java | UTF-8 | 198 | 2.34375 | 2 | [] | no_license | package ocp11.ch13.introduction;
//Marker annotation
public @interface ZooAnimal {}
class Mammal {}
class Bird {}
@ZooAnimal
class Lion extends Mammal {}
@ZooAnimal
class Peacock extends Bird {} | true |
232cf46c2e2772a88e7fd2437ad2b0ca396937f2 | Java | fitsumcs/Hospital-Connectivity | /CarRentalList.java | UTF-8 | 4,234 | 2.125 | 2 | [] | no_license | package com.example.yohannes.appbutton;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import com.example.yohannes.appbu... | true |
0e169f02890bff1471a4c0034d05649c89b6ec38 | Java | sunchenglong/lintcode-practice | /main/com/sunchenglong/leetcode/EditDistance72.java | UTF-8 | 1,010 | 3.109375 | 3 | [] | no_license | package com.sunchenglong.leetcode;
/**
* Created by Chenglong Sun on 2016/10/17.
*/
public class EditDistance72 {
public int minDistance(String word1, String word2) {
int length1 = word1.length();
int length2 = word2.length();
int[][] f = new int[length1 + 1][length2 + 1];
for (in... | true |
c50fb6ce079485080fbc8f9c45929647caa9da03 | Java | elOreo/VC2 | /src/main/java/vc2/data/Adult.java | UTF-8 | 7,080 | 2.328125 | 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 vc2.data;
import vc2.backprop.Input;
/**
*
* @author Tobias
*/
public class Adult implements Input{
private static fi... | true |
caebf06c69f5dc9c22fc63833794f2c12fe3f7f9 | Java | magx2/jSupla | /protocol/src/main/java/pl/grzeslowski/jsupla/protocol/api/decoders/sd/ServerDeviceDecoder.java | UTF-8 | 295 | 1.632813 | 2 | [
"MIT"
] | permissive | package pl.grzeslowski.jsupla.protocol.api.decoders.sd;
import pl.grzeslowski.jsupla.protocol.api.decoders.ProtoWithSizeDecoder;
import pl.grzeslowski.jsupla.protocol.api.structs.sd.ServerDevice;
public interface ServerDeviceDecoder<T extends ServerDevice> extends ProtoWithSizeDecoder<T> {
}
| true |
bdb8408f615d38126d9503c66c61df89d9ec227e | Java | crianzy/workspace | /oa/src/com/czy/oa/base/BaseAction.java | GB18030 | 1,228 | 2.203125 | 2 | [] | no_license | package com.czy.oa.base;
import java.lang.reflect.ParameterizedType;
import javax.annotation.Resource;
import com.czy.oa.service.DepartmentService;
import com.czy.oa.service.PrivilegeService;
import com.czy.oa.service.RoleService;
import com.czy.oa.service.UserService;
import com.opensymphony.xwork2.Action... | true |
ee4cca3e5150d7abbcc96bcc1e1159870143fdee | Java | BioroboticsLab/beetag_app | /app/src/main/java/com/aki/beetag/TagDao.java | UTF-8 | 766 | 2.0625 | 2 | [] | no_license | package com.aki.beetag;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.Update;
import java.util.List;
@Dao
public interface TagDao {
@Insert
vo... | true |
082dbc1160cf4bf7e2011f5a50303068dcfcd19b | Java | lightning331/JacksGoGo_Android | /app/src/main/java/com/kelvin/jacksgogo/Activities/GoClub_Event/GcPostUpdateActivity.java | UTF-8 | 2,772 | 1.929688 | 2 | [] | no_license | package com.kelvin.jacksgogo.Activities.GoClub_Event;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.text.Editable;
import android.text.TextWatcher;
impo... | true |
79e9e08ba56e44cfed940419f4e748b0dc89a7c4 | Java | reverseengineeringer/com.yelp.android | /src/com/yelp/android/ui/map/t.java | UTF-8 | 426 | 1.84375 | 2 | [] | no_license | package com.yelp.android.ui.map;
class t
implements Runnable
{
t(YelpMap paramYelpMap) {}
public void run()
{
YelpMap localYelpMap = a;
if (YelpMap.c(a) != null) {}
for (boolean bool = true;; bool = false)
{
YelpMap.a(localYelpMap, bool);
return;
}
}
}
/* Location:
* Qual... | true |
e31ccf3f6beb8a2b796696678a1d160df57650e7 | Java | Yoplitein/SpawnManager | /src/main/java/net/yoplitein/spawnmanager/ModInfo.java | UTF-8 | 217 | 1.585938 | 2 | [] | no_license | package net.yoplitein.spawnmanager;
public class ModInfo
{
public static final String ID = "spawnmanager";
public static final String NAME = "Spawn Manager";
public static final String VERSION = "0.1";
}
| true |
3d298df87f783d9989c8e47737961516fbd6cd39 | Java | amerelsayed2020/Learning | /Android/GalileoX_CAAD003X_Professional_Android_App_Development/FacebookRecipes/app/src/main/java/com/example/robert/facebookrecipes/recipeMain/ui/SwipeGestureListener.java | UTF-8 | 187 | 1.570313 | 2 | [] | no_license | package com.example.robert.facebookrecipes.recipeMain.ui;
/**
* Created by robert on 17.8.2017.
*/
public interface SwipeGestureListener {
void onKeep();
void onDismiss();
}
| true |
97ad9b6bc05d1a19811dc2135d24cd5b94fc1164 | Java | jimmy-20/Proyecto-de-curso-2021 | /GestionApp/src/main/java/Backend/Connection/RandomConnection.java | UTF-8 | 2,844 | 2.921875 | 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 Backend.Connection;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Rand... | true |
b5b45a64b3a360e1e218d4c690b3bd1eaabb124d | Java | teamdelta2016/TeamDelta | /peter/src/main/java/uk/ac/cam/teamdelta/peter/ImageProcImpl.java | UTF-8 | 3,383 | 2.578125 | 3 | [] | no_license | package uk.ac.cam.teamdelta.peter;
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.Scalar;
import uk.ac.cam.teamdelta.ImageInputSet;
import uk.ac.cam.teamdelta.ImageOutputSet;
import uk.ac.cam.teamdelta.ImageProcParams;
import java.awt.image.BufferedImage;
import java.io.IOException;
... | true |
3fe7c17a6560f44cbc9f554eabc83b54d7757295 | Java | BeauteousJade/gam-study-service | /src/main/java/com/pby/gamstudy/controller/UserController.java | UTF-8 | 2,028 | 1.945313 | 2 | [] | no_license | package com.pby.gamstudy.controller;
import com.pby.gamstudy.bean.User;
import com.pby.gamstudy.bean.body.MineResponseBody;
import com.pby.gamstudy.bean.body.UserProfileResponseBody;
import com.pby.gamstudy.service.UserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annota... | true |
590e0db34ca9f981bf587c7eb049512384a5d091 | Java | JameChen/buyertools | /buyerTool/src/main/java/com/nahuo/buyertool/MeSettingActivity.java | UTF-8 | 11,294 | 1.734375 | 2 | [] | no_license | package com.nahuo.buyertool;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Spanned;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import an... | true |
1dd350013495ef879e65c4a645ccd6d70a3ec857 | Java | dake-xue/education | /src/main/java/com/zhongsheng/education/entiy/Student.java | UTF-8 | 11,147 | 2 | 2 | [] | no_license | package com.zhongsheng.education.entiy;
import java.util.Date;
import java.util.List;
public class Student {
//学生id
private int sid;
private Integer area;
//校区id
private Integer campusid;
//校区
private String campus;
//学校名称
private String schoolname;
//学生名字
private String sn... | true |
3af2d5c88a6f571a1e8295972e3acb6182665486 | Java | jinguanz/WebDemo01 | /CrackingCode/src/cmu/edu/jinguanz/crackingcode/chapter8/Test.java | UTF-8 | 188 | 1.992188 | 2 | [] | no_license | package cmu.edu.jinguanz.crackingcode.chapter8;
public class Test {
public static void main(String args[]){
/*for(Suit s:Suit.values()){
System.out.println(s);
}*/
Suit
}
}
| true |
ae33f6c0cd507880b4147b6f3bebcc6405dd6f3f | Java | Akash-11525/automation | /CapitaPCSE_Automation/Automation_Project/src/main/java/testscripts/GMP_CreateGMPRunScripts.java | UTF-8 | 9,951 | 1.835938 | 2 | [] | no_license | package testscripts;
import java.awt.AWTException;
import java.io.IOException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
import browsersetup.BaseClas... | true |
ddc26765a31c4c97ffbcce06838987d58e1a1eaa | Java | DoctrinaManagement/Doctrina-app | /src/main/java/sign/check.java | UTF-8 | 635 | 1.671875 | 2 | [] | no_license | package sign;
import java.io.*;
import javax.servlet.http.*; // import javax.servlet.ServletException;
import database.DatabaseConnection;
import export.ReUsable;
import java.util.*; // import javax.servlet.http.HttpServletRequest;
import javax.servlet.*;
import java.sql.*;
/**
* @author Pandi
*/
public class ch... | true |
69820bf6606882ce79d2ce295e44754947780a38 | Java | enjoy008/KindyDemos | /app/src/main/java/com/kindy/demo/view/CanvasViewTest.java | UTF-8 | 4,924 | 2.890625 | 3 | [] | no_license | package com.kindy.demo.view;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
import android.graphics.Paint.Style;
impor... | true |
051b189417328fa05e69aebe1e68587e5f81dc17 | Java | wds1181977/MallPlus | /app/src/main/java/com/tymall/model/GasPriceMddel.java | UTF-8 | 7,376 | 2.171875 | 2 | [] | no_license | package com.tymall.model;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
public class GasPriceMddel implements Serializable{
/**
* user_limit : {"level_1":{"rate":0.5,"num":"90"},"level_2":{"rate":0.3,"num":"80"},"level_3":{"rate":0.1,"num":"20"},"l... | true |
55b8becb2abc482219365bbbeed1fe545cd72180 | Java | gabrielpessoa/uSocialNetwork | /SocialNetworkServer/src/br/edu/ifpe/igarassu/ipi/poo/usn/data/entity/exception/InvalidDataException.java | UTF-8 | 193 | 1.984375 | 2 | [
"LicenseRef-scancode-public-domain"
] | permissive | package br.edu.ifpe.igarassu.ipi.poo.usn.data.entity.exception;
public class InvalidDataException extends Exception {
public InvalidDataException(String mensagem){
super(mensagem);
}
} | true |
18a15b56fba8320e2ffa8f53530107ca46822af4 | Java | rgaertner/Smaller | /server/osgi-telnet/src/main/java/de/matrixweb/smaller/osgi/telnetd/CommandException.java | UTF-8 | 460 | 1.976563 | 2 | [
"BSD-2-Clause"
] | permissive | package de.matrixweb.smaller.osgi.telnetd;
/**
* @author marwol
*/
public class CommandException extends RuntimeException {
private static final long serialVersionUID = -6692957917486747409L;
/**
* @param message
* @param cause
*/
public CommandException(final String message, final Throwable cause) ... | true |
4bc9fbda0ed31eacec908152b9f5b32dfd1f64c1 | Java | kimkc/Algorithm | /Baekjoon/graph/No7562.java | UHC | 1,846 | 3.296875 | 3 | [] | no_license | package Baekjoon.graph;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
public class No7562 {
static int[][] yNx = {{-2,-1},{-2,1},{-1,-2},{-1,2},
{2,1}, {2, -1},{1,2},{1,-2}};
static int n;
stat... | true |
517f213ac1e3b882750dfd00b94ed71e49da37cc | Java | eMainTec-DREAM/DREAM | /JavaSource/dream/mgr/usrrpt/dao/oraImpl/MaUserRptParamListDAOOraImpl.java | WINDOWS-1252 | 3,770 | 1.71875 | 2 | [] | no_license | package dream.mgr.usrrpt.dao.oraImpl;
import java.util.List;
import common.bean.User;
import common.spring.BaseJdbcDaoSupportOra;
import common.util.QueryBuffer;
import dream.mgr.usrrpt.dao.MaUserRptParamListDAO;
import dream.mgr.usrrpt.dto.MaUserRptCommonDTO;
/**
* dao
* @author ssong
* @version $... | true |
7d6732dab866b257c43d6ab5ac1c409fa2361f9f | Java | Ashish1414/Doodle | /app/src/main/java/com/proxima/elearning/AboutStudent.java | UTF-8 | 2,234 | 2.171875 | 2 | [] | no_license | package com.proxima.elearning;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public cl... | true |
59c8a00728cede191af8bc97311d94266716c0f8 | Java | kaltons/My-OrderSystem | /src/main/java/com/kaltons/order/service/ProductService.java | UTF-8 | 1,349 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.kaltons.order.service;
import com.kaltons.order.dto.CartDTO;
import com.kaltons.order.entity.ProductInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Optional;
/**
* ProductInfo 业务操作接口类
*
* @author 衍方
* @desc
*... | true |
6c37fab12b7bc8f0ff6dc9a39ecac7b3bc3ddca1 | Java | dengjiaping/wanjicardc-android | /wanjicardc-android/WjikaClient/app/src/main/java/com/wjika/client/network/entities/ExchangeCardEntity.java | UTF-8 | 2,145 | 2.375 | 2 | [] | no_license | package com.wjika.client.network.entities;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
/**
* Created by zhaoweiwei on 2016/11/30.
*/
public class ExchangeCardEntity implements Parcelable{
@SerializedName("id")
private S... | true |
1c6f3a9a91718234b01230eaa1a960d912017740 | Java | mohitrajvardhan17/java1.8.0_151 | /sun/security/provider/certpath/IndexedCollectionCertStore.java | UTF-8 | 11,731 | 2.203125 | 2 | [] | no_license | package sun.security.provider.certpath;
import java.security.InvalidAlgorithmParameterException;
import java.security.cert.CRL;
import java.security.cert.CRLSelector;
import java.security.cert.CertSelector;
import java.security.cert.CertStoreException;
import java.security.cert.CertStoreParameters;
import java.securit... | true |
12945e0b1ba48d449c1e849cb1cc57c95e98a519 | Java | lichao20000/resflow-master | /flow-master0925---处理/flow-master0925/flow/flow-server/src/main/java/com/zres/project/localnet/portal/cloudNetworkFlow/tacheWoOrder/UplinkConfigWaitRateTache.java | UTF-8 | 7,673 | 1.789063 | 2 | [] | no_license | package com.zres.project.localnet.portal.cloudNetworkFlow.tacheWoOrder;
import com.alibaba.fastjson.JSON;
import com.zres.project.localnet.portal.cloudNetworkFlow.dao.TacheWoOrderDao;
import com.zres.project.localnet.portal.common.CommonWoOrderDealServiceIntf;
import com.zres.project.localnet.portal.common.ToOrderDeal... | true |
f0f6a31f6e6ca068d27f9abd7993206691520aa4 | Java | vipul-zambare006/medipal-android-app | /app/src/main/java/sg/edu/nus/medipalapplication/activity/CategoryEditActivity.java | UTF-8 | 4,525 | 2.359375 | 2 | [] | no_license | package sg.edu.nus.medipalapplication.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.SwitchCompat;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CompoundButton;... | true |
ebd2a8d67986a32cf02406af667655fac4d89394 | Java | vcano5/Annihilation_boss | /src/com/gmail/eduardokanp/anniboss/listener/KillWither.java | UTF-8 | 1,029 | 2.3125 | 2 | [] | no_license | package com.gmail.eduardokanp.anniboss.listener;
import org.bukkit.Bukkit;
import org.bukkit.Effect;
import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDeathEvent;... | true |
d1e398bc9870e35565c2e3e1f3277a6aef5a64e7 | Java | remikr/CauseEffectChains | /test/bs/ChallengeExceptionTest.java | WINDOWS-1250 | 367 | 2.390625 | 2 | [] | no_license | package bs;
import static org.junit.Assert.*;
import org.junit.Test;
public class ChallengeExceptionTest {
@Test
public void ChallengeException() {
ChallengeException c = new ChallengeException(1, "Pas de challenge trouv", "");
assertEquals(1, c.lineNumber);
assertEquals("Pas de challenge trouv", c.textCa... | true |
94c841b2ce200caa20ef821cb24eb378e1c9b52c | Java | mvkdldj24/UploadTest | /ex_project/src/main/java/com/ex_project/controller/Ex_Controller.java | UTF-8 | 5,115 | 2.1875 | 2 | [] | no_license | package com.ex_project.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bi... | true |
198a33ffd0d16f77f4ee924fa7c837940c64c761 | Java | chongzizil/Banqi-SMG | /src/org/banqi/graphics/BanqiImages.java | UTF-8 | 3,916 | 2.21875 | 2 | [] | no_license | package org.banqi.graphics;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
public interface BanqiImages extends ClientBundle {
// Back Piece images
@Source("images/pieces/back.png")
ImageResource back();
// Normal Piece images
@Source("images... | true |
da0a2cad97aa8a63fbcd2a65fe7f0a9d44e1f31e | Java | bregnvig/F2007 | /web/src/main/java/dk/bregnvig/formula1/client/validation/AbstractRule.java | UTF-8 | 1,863 | 2.5 | 2 | [] | no_license | package dk.bregnvig.formula1.client.validation;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
public abstract class AbstractRule implements Rule {
private Widget... | true |
e78a84851e2911c3850dcb4130bbff43ce8f9d28 | Java | horaceking/GuiMi | /src/com/guimi/Tab2Fragment.java | UTF-8 | 14,732 | 1.78125 | 2 | [] | no_license | package com.guimi;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import com.guimi.entities.Item;
import com.guimi.myadapters.TypeButtonAdapter;
import com.guimi.myviews.HorizontalListView;
import com.guimi.myviews.MyDrawerLayout;
import com.guimi.sqlite.GuiMiDB;
import com.guimi.u... | true |
59dbf8d5d2a60b598e5c95c7d972f679656b43cf | Java | dmendelsohn/6.005 | /final-proj/src/shared/Pair.java | UTF-8 | 794 | 3.640625 | 4 | [] | no_license | package shared;
/**
* A Pair is a grouping of two Objects.
*/
public class Pair<U, V> {
private final U first;
private final V second;
/**
* Creates a Pair with first object
* U and second object V.
* @param first The pair's first object.
* @param second The pair's second ob... | true |
5cbe97d65c05302103d318a0cec3255276dd202e | Java | JumperYu/bradypod | /bradypod.shop/shop.search/shop.search.impl/src/main/java/com/bradypod/search/lucene/service/ItemIndexService.java | UTF-8 | 6,670 | 2.328125 | 2 | [] | no_license | package com.bradypod.search.lucene.service;
import java.io.IOException;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.an... | true |
eac667c2647714c57bb9f0ba5edaea0815e209d6 | Java | itarocha/betesda | /src/main/java/br/com/itarocha/betesda/controller/TipoServicoController.java | UTF-8 | 2,328 | 2.46875 | 2 | [] | no_license | package br.com.itarocha.betesda.controller;
import br.com.itarocha.betesda.model.TipoServico;
import br.com.itarocha.betesda.service.TipoServicoService;
import br.com.itarocha.betesda.util.validation.ItaValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus... | true |
17cf7f2b3f8dd2f11832cb5bf377e09f3240ad0c | Java | saikumarsuvanam/CodingProblems | /CareerCup:Google/anonymous/sum_of_all_weights_of_each_path_between_two_node_in_undirected_non_cyclic_graph.java | UTF-8 | 3,579 | 3.8125 | 4 | [] | no_license | /* google-interview-questions
Given a undirected graph with weights, return the sum of the weight of each path between two nodes
(shortest path between two vertices). Assume there are no cycles.
Example:
Input:
A
| 1
B
2 / \ 3
C D
Output:
18
since
A to B has we... | true |
83ecd07d99170b8d2cf631035656e478b55f7709 | Java | dustclear/workorder_prj | /workorder_project/src/com/wos/dao/mapper/EmployeeMapper.java | UTF-8 | 1,597 | 1.890625 | 2 | [] | no_license | package com.wos.dao.mapper;
import com.wos.pojo.Employee;
public interface EmployeeMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dbo.cm_employee
*
* @mbggenerated Sun Jan 04 16:50:19 CST 2015
*/
int deleteByPr... | true |
cd9b68c1d3afe5b04546f6a30678f237dd80236e | Java | Donwaztok/Rei-Leao | /src/reileao/Mobs/Hyena.java | UTF-8 | 5,592 | 2.625 | 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 reileao.Mobs;
import java.awt.Image;
import java.awt.Point;
import java.awt.geom.AffineTransform;
import java.awt.image.Affine... | true |
d6ceb434aa61edce1fe7209b09d0706024283d64 | Java | hzr958/myProjects | /scmv6/center-task1/src/main/java/com/smate/center/task/psn/model/PsnScoreDetail.java | UTF-8 | 1,641 | 2.03125 | 2 | [] | no_license | package com.smate.center.task.psn.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Ta... | true |
e5bb713fd0ca37f425533a04fd4b1e7e7a85db17 | Java | alileohe/jingwei-all | /jingwei-common/src/test/java/com/taobao/jingwei/common/node/tasks/SyncTaskNodeTest.java | UTF-8 | 1,295 | 2.15625 | 2 | [] | no_license | package com.taobao.jingwei.common.node.tasks;
import com.taobao.jingwei.common.node.tasks.SyncTaskNode.GroupingSetting;
import org.json.JSONException;
import org.junit.Ignore;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
/**
* @desc
*
* ... | true |
562913028055c5559491046d03d2244732419fee | Java | kabrick/android_proof_of_concept | /app/src/main/java/com/website/health/adapters/PatientVitalsAdapter.java | UTF-8 | 2,161 | 2.203125 | 2 | [] | no_license | package com.website.health.adapters;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGro... | true |
2f3909e27f359e3868c9e8c0563cc36cdc8ad60b | Java | alexly25/RP | /src/com/alex/RP/statistic/GroupActivity.java | UTF-8 | 1,391 | 2.015625 | 2 | [] | no_license | package com.alex.rp.statistic;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import com.alex.rp.MyString;
import com.alex.rp.R;
import com.alex.rp.db.Vars;
import com.a... | true |
fe670b30f286a7f57d0a2d7dfdf5555a9d1d315e | Java | ashishb888/spring-boot-2.3-poc | /dates-timestamp-in-database/src/main/java/poc/springboot/DatesTimestampInDatabaseApplication.java | UTF-8 | 1,673 | 2.421875 | 2 | [] | no_license | package poc.springboot;
import java.sql.Date;
import java.sql.Timestamp;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
impor... | true |
8b5cfbb246776a7c4289e6d793e73bad0f99accd | Java | McLeodMoores/starling | /projects/analytics/src/test/java/com/opengamma/analytics/financial/provider/curve/directforward/UsdDirectForward3mLiborTest.java | UTF-8 | 17,692 | 1.515625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.provider.curve.directforward;
import static com.opengamma.analytics.financial.provider.curve.CurveBuildingTestUtils.assertFiniteDifferenceS... | true |
ea5f150f9b7c26c93f486fc6ca0d3255566b54fa | Java | zhanghwei/zhanghengwei-hgshop | /hgshop-goods-service/src/main/java/com/zhangwei/hgshop/dao/SpecDao.java | UTF-8 | 509 | 1.84375 | 2 | [] | no_license | package com.zhangwei.hgshop.dao;
import java.util.List;
import com.zhangwei.hgshop.pojo.Spec;
import com.zhangwei.hgshop.pojo.SpecOption;
public interface SpecDao {
List<Spec> list(String name);
int addSpec(Spec spec);
int addOptions(SpecOption specOption);
int updateSpec(Spec spec);
int d... | true |