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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1096b9089a446f3cd7d64a6de9a3ca01c2122610 | Java | aht-group/jeesl | /util/src/main/java/org/jeesl/factory/ejb/module/hd/EjbHdEventFactory.java | UTF-8 | 2,981 | 1.984375 | 2 | [] | no_license | package org.jeesl.factory.ejb.module.hd;
import java.util.Date;
import org.jeesl.factory.builder.module.HdFactoryBuilder;
import org.jeesl.interfaces.facade.JeeslFacade;
import org.jeesl.interfaces.model.module.hd.JeeslHdCategory;
import org.jeesl.interfaces.model.module.hd.event.JeeslHdEvent;
import org.jeesl.interf... | true |
2346c6402a075079a3fe516448e932dd7cf37464 | Java | djdapz/EecsSportsBotWithTests | /src/main/java/sportsbot/service/PositionsService.java | UTF-8 | 1,055 | 2.375 | 2 | [] | no_license | package sportsbot.service;
import org.springframework.stereotype.Service;
import sportsbot.enums.Sport;
import sportsbot.exception.PositionNotFoundException;
import sportsbot.model.QuestionContext;
import sportsbot.model.position.Position;
import sportsbot.model.position.Positions;
import sportsbot.model.position.Posi... | true |
5b978ff862dada5d97d405f235440ca0750be1c0 | Java | danieleavolio/Gestione-Segreteria | /src/main/persistence/dao/jdbc/CorsoDiLaureaDAOJDBC.java | UTF-8 | 2,959 | 2.59375 | 3 | [] | no_license | package main.persistence.dao.jdbc;
import main.Model.CorsoDiLaurea;
import main.Model.Studente;
import main.persistence.DBManager;
import main.persistence.DBSource;
import main.persistence.dao.CorsoDiLaureaDAO;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class CorsoDiLaureaDAOJDBC im... | true |
7d77dff893ad78b4f71681b861c76e1df75ca771 | Java | assertlab/extractviewer_project | /mapping-application-web/src/main/java/br/ufpe/cin/cloud/mapeamento/web/base/converter/BooleanConverter.java | UTF-8 | 1,990 | 2.625 | 3 | [
"MIT"
] | permissive | /**
* CloudMapping - Sistema de Extração de Dados de Mapeamento dos Experimentos em Computação em Nuvem
*
* Copyright (c) AssertLab.
*
* Este software é confidencial e propriedade da AssertLab. Não é permitida sua distribuição ou divulgação
* do seu conteúdo sem expressa autorização do AssertLab. Este arquivo ... | true |
0e9182784caac10c87f75cbaa3afe2164a77d2bf | Java | fogbow/fogbow-mono-manager | /src/main/java/org/fogbowcloud/manager/core/plugins/compute/openstack/OpenStackOCCIComputePlugin.java | UTF-8 | 8,496 | 1.648438 | 2 | [
"Apache-2.0"
] | permissive | package org.fogbowcloud.manager.core.plugins.compute.openstack;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.apache.http.Header;
import org.apach... | true |
a31ce32282c166fde68fcd5e9c2123d4a123a62e | Java | recolic/ali-middleware-5 | /workspace-provider/src/main/java/com/aliware/tianchi/CallbackServiceImpl.java | UTF-8 | 3,374 | 2.484375 | 2 | [] | no_license | package com.aliware.tianchi;
import org.apache.dubbo.rpc.listener.CallbackListener;
import org.apache.dubbo.rpc.service.CallbackService;
import javax.management.Attribute;
import javax.management.AttributeList;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import java.lang.management.Manage... | true |
e7092669c0aa41585bbe4bdcf3785d1a5c86e154 | Java | HectorRizzo/ChairGameSimulator | /Proyecto/src/controller/Principal.java | UTF-8 | 2,074 | 2.3125 | 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 java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.loggi... | true |
8f1a3b980f95258590befe928cf2ff3e80854107 | Java | welmahjoub/gestionCabinet | /pfe/src/main/java/com/spring/pfe/Dao/DonneePhysiologDao.java | UTF-8 | 1,240 | 1.921875 | 2 | [] | no_license | package com.spring.pfe.Dao;
import java.util.List;
import java.util.UUID;
import com.spring.pfe.Entity.DonnePhysiolog;
public interface DonneePhysiologDao {
/*========================================================================================================================*/
/*=============================... | true |
37405d007db4544fe698b87357c07220326dda0f | Java | testsmith-io/training-java-unit-testing | /src/test/java/io/testsmith/exercises/DataDrivenAccountTest.java | UTF-8 | 1,448 | 3.21875 | 3 | [] | no_license | package io.testsmith.exercises;
import org.junit.Assert;
import org.junit.Test;
public class DataDrivenAccountTest {
@Test
public void withdraw500FromAccount_shouldResultInCorrectBalance() {
// Arrange - create a new savings account with an initial balance of 1000
DataDrivenAccount account =... | true |
d5ddcb4fc744e2cb485688ffe653e6645800b398 | Java | johnlpuc163/twitterAndroid | /MyTwt/app/src/main/java/com/mytwt/app/LoadMoreAsyncTask.java | UTF-8 | 2,222 | 2.34375 | 2 | [] | no_license | package com.mytwt.app;
import android.os.AsyncTask;
import android.util.Log;
import java.util.List;
import twitter4j.Paging;
import twitter4j.Status;
import twitter4j.Twitter;
public class LoadMoreAsyncTask extends AsyncTask<Void, Void, LoadMoreAsyncTask.LoadMoreStatusesResult> {
private long targetId;
pr... | true |
ab296c73ed7187a8c60c20f06ff987bd8974693d | Java | aaabdallah/realestateproject-coreserver | /src/aaacs/coreserver/database/DatabaseWrapper.java | UTF-8 | 3,012 | 2.5 | 2 | [] | no_license | package aaacs.coreserver.database;
import java.sql.Connection;
import javax.naming.Context;
import javax.naming.InitialContext;
import aaacs.coreserver.administration.Configurator;
/**
* @author Ahmed A. Abd-Allah
* Created on Oct 29, 2006
*
* This class should be used to isolate any database-dependent code. I... | true |
c27c53cab5d334e5b533d4b3e47966a20d2a422d | Java | qiuxirufengQAQ/gmf-colson-lianxi | /gmcf-colson-dal/src/main/java/com/colson/dataStructure/StackSingleLink.java | UTF-8 | 518 | 3.453125 | 3 | [] | no_license | package com.colson.dataStructure;
/**
* 单向链表实现栈
*/
public class StackSingleLink {
private SingleLinkedList link;
public StackSingleLink(){
link = new SingleLinkedList();
}
//添加元素
public void push(Object obj){
link.addHead(obj);
}
//移除栈顶元素
public Object pop(){
Object obj = link.deleteHead();
retur... | true |
16b2ff13e860929e8ab1db448a98c4b84faee3c3 | Java | Gauravgkp/PE1 | /src/main/java/com/boeing/PE1/Iteration.java | UTF-8 | 1,170 | 3.84375 | 4 | [] | no_license | package com.boeing.PE1;/*
* Gaurav Singh,
*
* Stack Route,
*
* Boeing India Pvt Ltd.
*/
import java.util.Scanner;
/**
* The class take an integer value and generate a series upto the entered value by
* by repeating the number as many times as the number itself represents.
*
* @version 1.10 31-Dec-2018
*
*... | true |
5286d9e74a913d6c9e05a5f35588fffc9f54e349 | Java | JuliaBorisevska/ContactCatalog | /src/main/java/com/itechart/contactcatalog/command/MailSendingCommand.java | UTF-8 | 2,471 | 2.53125 | 3 | [] | no_license | package com.itechart.contactcatalog.command;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.itechart.contactcatalog.controller.ContactServlet;
import c... | true |
a3b694672535487aaf9201416a96d9a9571184b1 | Java | nvkk-devops/cdktf-java-aws | /src/main/java/imports/aws/AppmeshVirtualNodeSpecServiceDiscoveryDns.java | UTF-8 | 5,736 | 1.992188 | 2 | [] | no_license | package imports.aws;
@javax.annotation.Generated(value = "jsii-pacmak/1.24.0 (build b722f66)", date = "2021-03-10T09:47:02.039Z")
@software.amazon.jsii.Jsii(module = imports.aws.$Module.class, fqn = "aws.AppmeshVirtualNodeSpecServiceDiscoveryDns")
@software.amazon.jsii.Jsii.Proxy(AppmeshVirtualNodeSpecServiceDiscovery... | true |
ebc12d55444512629a70ae3a75f76cd8376dc17d | Java | ChangeVision/astah-uml2c-plugin | /src/main/java/com/change_vision/astah/extension/plugin/uml2c/Messages.java | UTF-8 | 2,272 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package com.change_vision.astah.extension.plugin.uml2c;
import java.text.MessageFormat;
import java.util.Enumeration;
import java.util.Locale;
import java.util.ResourceBundle;
import com.change_vision.jude.api.inf.ui.IMessageProvider;
/**
* メッセージリソースを扱うクラスです
* <p/>
*
* com/change_vision/astah/extension/plugin/um... | true |
c5e0d22907a8c49383c4119a95b00e246e20a11a | Java | imrenagi/rojak-api | /service-auth/src/main/java/id/rojak/auth/infrastructure/service/BcryptEncryptionService.java | UTF-8 | 794 | 2.203125 | 2 | [
"MIT"
] | permissive | package id.rojak.auth.infrastructure.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Component;
/**
* Created by inagi on 8/1/17.
*/
@Component
public class BcryptEncryptionService implem... | true |
7338c602d623fdabedf3f028405c206eb2f5f4fd | Java | ashkmrptl/PracticeApplication | /src/main/java/com/akp/gfg/practice/mathandalgos/AddTwoFractions.java | UTF-8 | 993 | 3.5 | 4 | [] | no_license | package com.akp.gfg.practice.mathandalgos;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class AddTwoFractions {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int t = Inte... | true |
2c508ab236c8092444f0cc463199d944d3fb6ef8 | Java | awebneck/phlogiston | /src/main/java/com/jeremypholland/phlogiston/common/entities/EntityGentledOcelot.java | UTF-8 | 328 | 2.046875 | 2 | [] | no_license | package com.jeremypholland.phlogiston.common.entities;
import net.minecraft.world.World;
/**
* Created by jeremy on 12/9/15.
*/
public class EntityGentledOcelot extends EntityGentled {
public static final String UL_NAME = "gentledOcelot";
public EntityGentledOcelot(World worldIn) {
super(worldIn);
... | true |
a1d7eb4f54713f86c33fd5783f59283bd59307a2 | Java | paolocaviedes/ArquitecturaSistemas | /Solemne1/Solemne1-ejb/src/java/Solemne1/Device.java | UTF-8 | 1,337 | 2.5625 | 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 Solemne1;
import java.util.ArrayList;
/**
*
* @author Paolo-Acer
*/
public class Device {
private String idDevice="";
... | true |
5daa04747ba9b9cd918532e546fa5a59f4b8eccf | Java | How-Bout-No/completeconfig | /common/src/main/java/io/github/how_bout_no/completeconfig/extensions/clothbasicmath/ClothBasicMathGuiExtension.java | UTF-8 | 1,046 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package io.github.how_bout_no.completeconfig.extensions.clothbasicmath;
import io.github.how_bout_no.completeconfig.data.ColorEntry;
import io.github.how_bout_no.completeconfig.extensions.GuiExtension;
import io.github.how_bout_no.completeconfig.gui.cloth.Provider;
import me.shedaniel.clothconfig2.api.ConfigEntryBuild... | true |
8cb8b70c03a72adee840bf87747cee652a6acf21 | Java | mapstruct/mapstruct | /processor/src/test/java/org/mapstruct/ap/test/injectionstrategy/shared/CustomerRecordEntity.java | UTF-8 | 734 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.injectionstrategy.shared;
import java.util.Date;
/**
* @author Sjaak Derksen
*/
public class CustomerRecordEntity {
private Date regi... | true |
a85a6b51cd2241f63ab40da080fbe2059bc91780 | Java | xuj1210/general | /src/unit2/forLoopPractice/Avg5.java | UTF-8 | 420 | 3.390625 | 3 | [] | no_license | package unit2.forLoopPractice;
import codehs.*;
public class Avg5 extends ConsoleProgram{
public void run() {
double sum = 0;
for(int counter = 0; counter <= 4; counter++){
double number = readDouble("Enter a number: ");
sum = sum + number;
}
double answer... | true |
4829b6a89509ee3cd6071d0dd7dc554a02076d26 | Java | anilgauda/hybrid-cloud-container-mgmt | /libraries/configurevm/src/main/java/ie/ncirl/container/manager/library/configurevm/strategy/ApplicationWeightedStrategy.java | UTF-8 | 7,700 | 2.5 | 2 | [] | no_license | package ie.ncirl.container.manager.library.configurevm.strategy;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.logging.Level;
import java.util.logging.Logger;
import ie.ncirl.container.manager.li... | true |
2089f992c89903836c006a4d4d0910354669d951 | Java | zhangdu2000/SpringMVCmovie | /src/main/java/com/licyun/dao/UserPermissionDao.java | UTF-8 | 452 | 1.710938 | 2 | [] | no_license | package com.licyun.dao;
import com.licyun.model.User;
import com.licyun.model.UserPermission;
import com.licyun.model.UserRole;
/**
* Created by 李呈云
* Description:
* 2016/10/18.
*/
public interface UserPermissionDao {
String findPermissionsByEmail(String email);
Long insertPermissions(UserPermission use... | true |
883b711f572abdc5275bc5987c32bfcf79bb5c37 | Java | marcondesmacaneiro/academico | /src/main/java/br/com/yanaga/samples/academico/domain/CursoRepository.java | UTF-8 | 164 | 1.53125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.yanaga.samples.academico.domain;
import me.yanaga.winter.data.jpa.Repository;
public interface CursoRepository extends Repository<Curso, Long> {
}
| true |
b1d497a009a5bdb043673b6ac81a6ad6bb0d1c48 | Java | Dwopplee/CS111 | /PS11/src/Question2.java | UTF-8 | 1,149 | 3.46875 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Question2 {
public static void main (String[] args) throws FileNotFoundException {
Scanner sysIn = new Scanner (System.in);
System.out.println("Movie search by year range. Enter two years.");
... | true |
83c9f7d58228b978acdc6ddf56c54711af935b03 | Java | liesnychevskyi/selenium_core_full_automation | /src/main/java/selenium_core/helpers/selenium_grid/SeleniumGridTest.java | UTF-8 | 1,601 | 2.46875 | 2 | [] | no_license | package selenium_core.helpers.selenium_grid;
import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.Test;
import ... | true |
f8301575eb9e3faf99a757bf6d49a436c907c091 | Java | REGnosys/rosetta-code-generators | /default-cdm-generators/src/main/java/org/isda/cdm/generators/CDMRosettaSetup.java | UTF-8 | 708 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package org.isda.cdm.generators;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Provider;
import com.regnosys.rosetta.RosettaRuntimeModule;
import com.regnosys.rosetta.RosettaStandaloneSetup;
import com.regnosys.rosetta.generator.external.ExternalGenerators;
public final c... | true |
0d7abe4c87dec7dd9d44a96efeddac7b1dfe80ba | Java | rcarvalhoxavier/moviedb | /src/com/moviedb/model/Movie.java | UTF-8 | 7,905 | 2.15625 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.moviedb.model;
import java.io.Serializable;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.json.JSONArray;
import org... | true |
eb3f17e41db1dce50fe12b9b3d35cfd61f5209f7 | Java | Mononofu/OOP | /Gruppe/Aufgabe2/oop/Infrastructure.java | UTF-8 | 235 | 2.34375 | 2 | [] | no_license | package oop;
public class Infrastructure {
public Infrastructure(String description) {
this.description = description;
}
public Boolean provides(Infrastructure i) {
return false;
}
protected String description;
} | true |
239404cfa517aad678bba891b27bf48d3f562773 | Java | Kopilov/multiplatformconfig | /src/main/java/com/github/kopilov/multiplatformconfig/MultiplatformConfigBuilder.java | UTF-8 | 4,306 | 2.578125 | 3 | [
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"NTP",
"LLVM-exception",
"CC0-1.0",
"CC-BY-4.0",
"Zlib",
"BSD-3-Clause",
"LicenseRef-scancode-protobuf",
"ZPL-2.1",
"OpenSSL",
"JSON",
"BSL-1.0",
"Apache-2.0",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | package com.github.kopilov.multiplatformconfig;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;
import net.harawata.appdirs.AppDirsFactory;
import org.apache.commons.configuration2.CompositeConfiguration;
import org.apache.commons.configuration2.Configuration;
import... | true |
62130d59179743c3666ffb4c4c3168c1a88f4e3a | Java | bogdan-csoregi/pos | /fifth/src/main/java/com/acme/apps/pos/PointOfSale.java | UTF-8 | 2,285 | 2.8125 | 3 | [] | no_license | package com.acme.apps.pos;
import java.util.ArrayList;
import java.util.List;
public class PointOfSale {
public static final double FED_TAX = 0.05;
public static final double COMERCIAL_TAX = 0.08;
private Catalog catalog;
private Display display;
private Receip receip = new Receip();
private List<Receip> re... | true |
682bc2d679850247ddf799cdb78386238a1a8397 | Java | liveqmock/base_framework | /Server/xingzhen-xz/xingzhen-xz-service/src/main/java/com/hisign/xingzhen/xz/service/impl/GroupBackupServiceImpl.java | UTF-8 | 10,348 | 1.6875 | 2 | [] | no_license | package com.hisign.xingzhen.xz.service.impl;
import cn.jmessage.api.message.MessageType;
import com.alibaba.fastjson.JSONObject;
import com.hisign.bfun.benum.BaseEnum;
import com.hisign.bfun.bexception.BusinessException;
import com.hisign.bfun.bif.BaseMapper;
import com.hisign.bfun.bif.BaseRest;
import com.hisign.bfun... | true |
e477f68fc079e8810b2417617fcb4a1f88adf641 | Java | Jacob-W21/PaintingPlace | /src/data/ColorPicker.java | UTF-8 | 328 | 3 | 3 | [] | no_license | package data;
public class ColorPicker {
public enum Choices {
Black,
White,
Red,
Green,
Blue;
}
static Choices choice = Choices.Black;
public static Choices getColor() {
return choice;
}
public static void setChoice(Choices colorChoice) {
ColorPicker.choice = colorChoice... | true |
97ccc51f6e63e3bcca60dd66f3b0496de9040446 | Java | Warlordius/beast | /src/main/java/com/github/beast/parser/Parser.java | UTF-8 | 3,500 | 2.90625 | 3 | [] | no_license | package com.github.beast.parser;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
import net.htmlparser.jericho.Element;
import net.htmlparser.jericho.Segment;
import net.htmlparser.jericho.Source;
import com.github.beast.page.Link;
import com.github.bea... | true |
780960ffa67e765098e6eaac919264c1dc5f0cdf | Java | PavelEzhkov/otus-java-2018-08-EzhkovP | /homework5/src/main/java/GC.java | UTF-8 | 1,811 | 2.75 | 3 | [] | no_license | import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class GC {
static final Set<String> YOUNG_GC = new HashSet<String>(4);
static final Set<String> OLD_GC = new HashSet<String>(4);
... | true |
4d77f02f02078688fb7ddae66295a2ec3df151bd | Java | nik-ovchinnikov/katalog-server | /src/main/java/com/niki/katalog/DAO/IDeletedItemDAO.java | UTF-8 | 469 | 2.140625 | 2 | [] | no_license | package com.niki.katalog.DAO;
import com.niki.katalog.entity.DeletedItem;
import java.util.List;
public interface IDeletedItemDAO {
List<DeletedItem> findAll();
void delete(String itemKey);
void add(DeletedItem item);
void update(DeletedItem item);
int getIdByKey(String key);
DeletedItem... | true |
e0f2caea56cf3d789844accb2acef3592181334d | Java | BruceDbigmowang/kpi2 | /src/main/java/com/cx/kpi2/pojo/Bussiness.java | UTF-8 | 882 | 2.1875 | 2 | [] | no_license | package com.cx.kpi2.pojo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
@Entity
@Table(name="bussinessCategory")
@JsonIgnoreProperties({"handler","hibernateLazyInitializer"})
public class Bussiness {
@Id
@Column(name = "id")
@GeneratedValue(strategy = Generatio... | true |
0aedf53ac35a8e1b24e61d47488853930537ca38 | Java | vcaldas/folsomiaCounter | /src/main/java/com/vcaldas/Folsomia_Counter/AppDev.java | UTF-8 | 1,316 | 3.328125 | 3 | [] | no_license | package com.vcaldas.Folsomia_Counter;
import java.io.File;
import java.io.FilenameFilter;
public class AppDev {
private static File INPUTDIR = new File("/Users/caldas/Dropbox/Photos Folsomia");
private static int NFiles;
private static File[] listOfFiles;
public static void main(final String... args) {
/... | true |
bd711c0f629f2695eb35e65edb23149ac7cdb4d0 | Java | benjatouf/repo | /src/main/java/irepository/ICompagnieAerienneVolRepository.java | UTF-8 | 161 | 1.734375 | 2 | [] | no_license | package irepository;
import metier.CompagnieAerienneVol;
public interface ICompagnieAerienneVolRepository extends IRepository<CompagnieAerienneVol, Long> {
}
| true |
e11cba25409f72dbab32929502425f340aefdb37 | Java | wesley-fly/mediaengine-app | /Android/MediaEgnineApp/app/src/main/java/com/internal/demo/android/ui/AudioTalkingActivity.java | UTF-8 | 6,863 | 2.09375 | 2 | [] | no_license | package com.internal.demo.android.ui;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.internal.demo.R;
import com.internal.demo.and... | true |
c6c3eec9ef8ccf73bb74b200756c72b589ed1764 | Java | MichaelMyw/SSM | /src/main/java/com/mjava/ssm/controller/CategoryController.java | UTF-8 | 1,965 | 2.109375 | 2 | [] | no_license | package com.mjava.ssm.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.github.page... | true |
f2257a4574624b152294534cf5a3fffd95392faa | Java | kocsenc/software-project-day | /src/TeamLead.java | UTF-8 | 5,469 | 3.328125 | 3 | [
"MIT"
] | permissive | import java.util.ArrayList;
/**
* Team Lead Class
* <p/>
* Work on: Conor
*/
public class TeamLead extends Thread {
private static int leads = 0;
private final ArrayList<Developer> developers = new ArrayList<Developer>();
private final int id;
public long entered;
private SoftwareProjectManage... | true |
def8a0f941952b6eff8c3feb21521fa66553358f | Java | probepark/intellij-community | /platform/util/src/com/intellij/util/containers/ObjectIntHashMap.java | UTF-8 | 452 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.intellij.util.containers;
import gnu.trove.TObjectIntHashMap;
/**
* return -1 instead of 0 if no such mapping exists
*/
public class ObjectIntHashMap<K> extends TObjectIntHashMap<K> {
public ObjectIntHashMap(int initialCapacity) {
super(initialCapacity);
}
public ObjectIntHashMap() {
supe... | true |
1c4c240a35d0b4d413102a547f001d26f3095259 | Java | PierrickJACQUETTE/TextDraw | /Source/Sym.java | UTF-8 | 424 | 1.75 | 2 | [] | no_license |
public enum Sym {
EOF,
DRAW,
FORM_POLYGON,
FORM_CIRCLE,
FORM_ELLIPSE,
OPEN_ACCOLADE,
CLOSE_ACCOLADE,
OPEN_POINT,
CLOSE_POINT,
INT,
COMMA,
COLOR,
DEF,
DEF_NAME,
WRITE,
PLUS,
MOINS,
MULT,
DIV,
OPEN_PARENTHESE,
CLOSE_PARENTHESE,
MOVE,
REFLECT,
ROTATE,
EXTEND,
AT,
F... | true |
0c589aa7c2894ee3806b4addd6c39b3a56371af9 | Java | raj-monty25/cozarbrepo | /cozarb/service/src/main/java/com/cozarb/paytm/response/bean/PaytmResponseBean.java | UTF-8 | 2,517 | 1.648438 | 2 | [] | no_license | package com.cozarb.paytm.response.bean;
public class PaytmResponseBean {
protected String CURRENCY;
protected String GATEWAYNAME;
protected String RESPMSG;
protected String BANKNAME;
protected String PAYMENTMODE;
protected String MID;
protected String RESPCODE;
protected String TXNID;
protected String TXNAMOU... | true |
7c3815735045d18e99270d6a27463fac3dcee433 | Java | milovanovicd/Airplane-tickets-Java | /ProjectCommon/src/domain/Avion.java | UTF-8 | 3,950 | 2.515625 | 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 domain;
import java.sql.ResultSet;
import java.util.LinkedList;
import java.util.Objects;
/**
*
* @author dejanmilovanovic
... | true |
ad44bad1912ec27803839a17bed647e603474545 | Java | BhanukaUOM/Hackerrank-Algorithm-Solutions | /6. Graph Theory/10. Dijkstra: Shortest Reach 2.java | UTF-8 | 2,237 | 2.984375 | 3 | [
"MIT"
] | permissive | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
static int minresultance(int result[], boolean visited[], int V)
{
int min = 99999999;
int min_index=-1;
for (int v = 0; v < V; v++){
... | true |
f0c357fbf0f8e1a9e27b9b064d3a966e234fd0ba | Java | reiern70/wiquery-jqplot | /src/test/java/nl/topicus/wqplot/web/pages/examples/CorePage.java | UTF-8 | 6,099 | 2.640625 | 3 | [] | no_license | package nl.topicus.wqplot.web.pages.examples;
import java.util.Arrays;
import nl.topicus.wqplot.components.JQPlot;
import nl.topicus.wqplot.data.NumberSeries;
import nl.topicus.wqplot.data.NumberSeriesEntry;
import nl.topicus.wqplot.data.SimpleNumberSeries;
import nl.topicus.wqplot.options.PlotAxes;
import nl.topicus... | true |
dc0356a241d67b819f6faedf044d4f91fd8911d8 | Java | radhakrishnan-iyer/intuit-product-service | /src/main/java/com/intuit/config/TimesheetConfig.java | UTF-8 | 440 | 1.882813 | 2 | [] | no_license | package com.intuit.config;
import com.intuit.service.IProductService;
import com.intuit.service.TimesheetService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
@Profile("timesheet")
public class TimesheetConfig {
@Bean
public IProductService valida... | true |
a58789ae4ebf34805de71d40b497f36b877ba220 | Java | MustafaYesilyurt/fabflix_full_stack | /parser_project/Movie.java | UTF-8 | 2,237 | 2.9375 | 3 | [] | no_license | import java.util.ArrayList;
public class Movie {
private String xmlid;
private String movieId;
private String title;
private String year;
private String director;
private String directorId;
private ArrayList<String> genres;
public Movie(){}
public Movie(String id, String title, S... | true |
a97591581876daf0cc6ac5f98d457ed5cbd98fdd | Java | kazyury/MementoWeaver | /MementoWeaver/src/nobugs/nolife/mw/ui/controller/MainMenuController.java | SHIFT_JIS | 1,080 | 1.96875 | 2 | [] | no_license | package nobugs.nolife.mw.ui.controller;
import java.net.URL;
import java.util.ResourceBundle;
import nobugs.nolife.mw.AppMain;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.layout.AnchorPane;
public class MainMenuController extends Anch... | true |
787ef6feb12c08eeae7e6acec7bb8fb25f11a6b5 | Java | ArGaLu/CursoJava | /Ejercicios/Guia1EstructuraControl/Ejercicio2WHILE.java | UTF-8 | 609 | 3.46875 | 3 | [] | no_license | package primera_guia_variables_y_estructuras_de_control_COMPLETA;
import java.util.Scanner;
public class Ejercicio2WHILE {
public static void main (String[]args){
Scanner scan = new Scanner(System.in);
System.out.println("ingrese un numero");
int a=scan.nextInt(), cont=0, cont2=1;
... | true |
f199360635783bab49ddc1e02206b806cf9fb1d6 | Java | ErickBits/CajeroAutomaticoJava | /src/cajeroelectronico/ClaseConsulta.java | UTF-8 | 438 | 2.046875 | 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 cajeroelectronico;
/**
*
* @author Mao-U
*/
public class ClaseConsulta extends ClaseMetodos {
@Override
public... | true |
45c201cc783e0120ec8268677d7405ce65615d18 | Java | tnorbye/intellij-community | /java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/NullabilityProblemKind.java | UTF-8 | 7,379 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package com.intellij.codeInspection.dataFlow;
import com.intellij.codeInspection.InspectionsBundle;
import com.intellij.psi.*;
import com.siyeh.ig.psiutils.ExpressionUtils;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrai... | true |
82ce03a1710b6d19fc9d11a59a5d1ddd625e1ba3 | Java | sandeshdahake/GameOfThronesOnSteroids | /src/test/java/com/sandeshdahake/game/saveGame/SaveGameServiceTest.java | UTF-8 | 1,461 | 2.40625 | 2 | [] | no_license | package com.sandeshdahake.game.saveGame;
import com.sandeshdahake.game.util.FileDeserializationException;
import com.sandeshdahake.game.util.FileIOService;
import com.sandeshdahake.game.util.FileSerializationException;
import com.sandeshdahake.game.util.IFileIOService;
import org.junit.Assert;
import org.junit.Before;... | true |
4efe46e781f61c536ce3018bbdac823fd34f9051 | Java | CSC422-Group-1/Repo | /ZombieWar/src/main/java/com/csc422/zombiewar/weapons/SubmachineGun.java | UTF-8 | 160 | 2.046875 | 2 | [] | no_license | package com.csc422.zombiewar.weapons;
//accuracy & damage of weapon
public class SubmachineGun extends Weapon {
public SubmachineGun() {
super(15, 6);
}
} | true |
189ec95978d48a96614098f91ee95391d66c050b | Java | lotockijj/fx | /src/main/java/coursera/DiceRolling.java | UTF-8 | 1,340 | 3.734375 | 4 | [] | no_license | package coursera;
import java.util.Random;
/**
* Created by Роман Лотоцький on 13.12.2016.
*/
public class DiceRolling {
public void simpleSimulate(int rolls){
Random rand = new Random();
int twos = 0;
int twelves = 0;
for (int i = 0; i < rolls; i++) {
int d1 = rand.... | true |
db1316a5999bc7064beca2143ccfbf6b1c753f95 | Java | MiaoDX/bp_java | /src/main/java/com/handANN/AreaLineChartWithXChart.java | UTF-8 | 3,503 | 2.765625 | 3 | [] | no_license | package com.handANN;
import org.knowm.xchart.*;
import org.knowm.xchart.style.markers.SeriesMarkers;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Exchanger;
import java.util.function.DoubleBinaryOperator;
import java.util.function.Function;
import static o... | true |
dc77a42ff0f61f5f2ec00047771b5b0d444818f8 | Java | osgee/goods | /src/cn/nudt/goods/service/impl/AdminServiceBean.java | UTF-8 | 2,165 | 2.296875 | 2 | [] | no_license | package cn.nudt.goods.service.impl;
import java.sql.SQLException;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.itcast.commons.CommonUtils;
import cn.nudt.goods.bean.Admin;
import cn.nudt.goods.dao.AdminDao... | true |
0c520ff972504ce846459f7bd91df29c885c3cf1 | Java | ivasandom/DP2-1920-G2-14 | /src/main/java/org/springframework/samples/petclinic/repository/SpecialtyRepository.java | UTF-8 | 276 | 1.726563 | 2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive |
package org.springframework.samples.petclinic.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.samples.petclinic.model.Specialty;
public interface SpecialtyRepository extends CrudRepository<Specialty, Integer> {
}
| true |
5f30ed3a59847a60f652aa7770fb1d0a8f67f0ed | Java | Axanndar/progettoEsame | /progetto-1-2014/src/it/uniroma3/model/Prodotto.java | UTF-8 | 1,539 | 2.671875 | 3 | [] | no_license | package it.uniroma3.model;
import java.util.List;
import javax.persistence.*;
@Entity
@NamedQuery(name = "findAllProdotti", query = "SELECT p FROM Prodotto p")
public class Prodotto {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(nullable = false)
private String nome;
private F... | true |
e78e5c77c407c187ae737cc34157c9ae8c347591 | Java | mohangowda/JsonTest | /src/main/java/com/mohan/core/User.java | UTF-8 | 562 | 2.65625 | 3 | [] | no_license | package com.mohan.core;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.io.*;
public class User implements Serializable
{
private static final long serialVersionUID = 1L;
public int age = 29;
public String name = "mohan";
public List<String> messages = new ArrayList<... | true |
14321098909f92033e6803b9b55a7a784289769e | Java | zmldlut/Lab-dao | /src/com/zml/dao/impl/NodeTypeDaoImpl.java | UTF-8 | 1,109 | 2.53125 | 3 | [] | no_license | package com.zml.dao.impl;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import com.zml.dao.NodeTypeDao;
import com.zml.model.NodeType;
public class NodeTypeDaoImpl extends BaseDaoImpl implements NodeTypeDao{
@Override
public boolean doCreate(NodeType obj) {
//... | true |
232999e6e4984b8ee7dbbaa174c4f0c22790f619 | Java | Nikkey-Liu/owl | /src/main/java/cn/wan/owl/config/DataSourceConfig.java | UTF-8 | 426 | 1.65625 | 2 | [] | no_license | package cn.wan.owl.config;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Configuration;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Configuration
public class DataSourceConfig {
private String url = "jdbc:mysql://localhost:3... | true |
5cc8117a3dbfcfcd7c51d47c90e11ebf902facec | Java | HiagoW/SIJOGA | /src/java/dao/FaseProcessoDAO.java | UTF-8 | 1,253 | 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 dao;
import beans.Processo;
import beans.FaseProcesso;
import beans.Usuario;
import java.util.List;
import org.hibernate.Query... | true |
0626ac594be89d63ee13aa30650332291c1c9692 | Java | hcsoft/lijiang-xinnonghe | /src/com/szgr/util/TaxPayerService.java | GB18030 | 2,944 | 2.09375 | 2 | [] | no_license | package com.szgr.util;
import org.apache.log4j.Logger;
import org.springframework.util.Assert;
import com.szgr.commonbus.IDeptManagerInfo;
import com.szgr.commonbus.TempTaxpayerDeptManagerInfo;
import com.szgr.framework.authority.datarights.SystemUserAccessor;
import com.szgr.framework.core.ApplicationContextUtils;
... | true |
fe3e179a1838ba3c802c31a4dc9c5973e33a589a | Java | fardhanardhi/rumahsakit | /src/rumahsakit/dao/ICrudTransaksi.java | UTF-8 | 635 | 1.929688 | 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 rumahsakit.dao;
import java.util.ArrayList;
import rumahsakit.entity.Transaksi;
/**
*
* @author adan
*/
publ... | true |
4ee48cbc9c9cc09473a0f84227c74de89189154a | Java | maymay7621/RongChat | /app/src/main/java/com/rongchat/activity/MyInfoActivity.java | UTF-8 | 2,007 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.rongchat.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import com.rongchat.R;
/**
* Created by AMing on 16/3/25.
* Company RongCloud
*/
public class MyInfoActivity extends BaseActivity implements View.OnClickListener ... | true |
42e5d46abd4f4dc81c1898c60779031bdcb500e7 | Java | vsingh258/TradingExercise | /src/test/java/com/trading/days/DefaultWorkingDaysTest.java | UTF-8 | 1,391 | 2.671875 | 3 | [] | no_license | package com.trading.days;
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import org.junit.Before;
import org.junit.Test;
import com.trading.utils.date.DefaultWorkingDays;
import com.trading.utils.date.WorkingDays;
/**
* @author vikramjitsingh
*
*/
public class DefaultWorkingDaysTest {
... | true |
3fc9f9b26d998effaa58100714a35d5dbdccaa62 | Java | shalvisinha/carboless_VIT_HACK_Team-Tem | /app/src/main/java/com/example/carbonfootprint/login.java | UTF-8 | 5,074 | 2.21875 | 2 | [] | no_license | package com.example.carbonfootprint;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.Edit... | true |
25ebb435831275c13cdaf2411c2ed389370aa5ba | Java | moutainhigh/sefonsoft-crm | /crm-search/src/main/java/com.sefonsoft.oa.search/config/MySearchConfiguration.java | UTF-8 | 1,238 | 1.90625 | 2 | [] | no_license | package com.sefonsoft.oa.search.config;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientBuilder;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.boot.SpringBootConfigur... | true |
7f4976c5d930a348c918b4f77a05a54f77b1f807 | Java | Deepalin71/Clarion-Promise-Qa | /src/main/java/com/promise_qa/utils/TestUtils.java | UTF-8 | 881 | 2.421875 | 2 | [] | no_license | package com.promise_qa.utils;
import java.io.File;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.promise_qa.config.Constants;
public class TestUtils {
WebDriverWa... | true |
279304539c3ce72ec7f2c9d67125b3c6fe7e04fb | Java | deus-ex-silicium/Cyber_Life | /src/rules/eState.java | UTF-8 | 114 | 1.648438 | 2 | [] | no_license | package rules;
/**
* Created by Nibiru on 2016-04-27.
*/
public enum eState {
ALIVE,
DEAD,
EMPTY
}
| true |
f51366b8b80d5a1b8a777ece1e02bc073034ebff | Java | dowsam/rebirth-commons | /src/main/java/cn/com/rebirth/commons/settings/loader/SettingsLoaderFactory.java | UTF-8 | 850 | 2.109375 | 2 | [] | no_license | /*
* Copyright (c) 2005-2012 www.china-cti.com All rights reserved
* Info:rebirth-search-commons SettingsLoaderFactory.java 2012-7-6 10:23:47 l.xue.nong$$
*/
package cn.com.rebirth.commons.settings.loader;
/**
* A factory for creating SettingsLoader objects.
*/
public final class SettingsLoaderFactory {
/**
*... | true |
c5013e419b49ad427884b4142ad9d4c81c8eeb92 | Java | zhaokuankuan/open-note | /src/main/java/com/github/note/common/ReturnModel.java | UTF-8 | 539 | 1.90625 | 2 | [] | no_license | package com.github.note.common;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author :Mr.kk
* @date: 2018/8/16-18:07
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReturnModel implements Serializable{
//成功
public st... | true |
7c66ca35cb787877c2e1d1a1eb78b7c14ab7878a | Java | EricRybarczyk/spring-di-demo | /src/test/java/dev/ericrybarczyk/springdidemo/controllers/PropertyInjectedControllerTest.java | UTF-8 | 858 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package dev.ericrybarczyk.springdidemo.controllers;
import dev.ericrybarczyk.springdidemo.services.ConstructorInjectedGreetingService;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PropertyInjectedControllerTest {
PropertyInje... | true |
12916ab6ceecbb89123c20c2218d703da7fe4a8d | Java | jolindse/QuizServer | /src/logic/NetworkListner.java | ISO-8859-1 | 990 | 3.21875 | 3 | [] | no_license | package logic;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Serversocket listener.
*
* @author Johan Lindstrm (jolindse@hotmail.com)
*
*/
public class NetworkListner extends Thread {
private int PORT = 55500;
private ServerSocket server = null;
priv... | true |
3da43a2c954b104c8145e14b036322c416a4502c | Java | einkebil/play2-maven-plugin | /play2-maven-plugin/src/main/java/com/google/code/play2/plugin/AbstractPlay2SourceGeneratorMojo.java | UTF-8 | 4,232 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013-2020 Grzegorz Slowikowski (gslowikowski at gmail dot 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
*
* Unl... | true |
1391a15ccadded2f2bc68d1898e77d3b54aa2f53 | Java | forFire/customer | /src/main/java/com/service/cache/RedisTestCache.java | UTF-8 | 1,792 | 2.390625 | 2 | [] | no_license | package com.service.cache;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
import com.model.Orders;
import com.util.JsonUtil;
/**
*
*/
@Component
pu... | true |
419bbf230790b8e13d391f0fcd0f7fc8673c72bb | Java | olivergeith/android_wallpaperDesigner | /src/de/geithonline/wallpaperdesigner/shapes/SimpleTrianglePath.java | UTF-8 | 795 | 2.90625 | 3 | [] | no_license |
package de.geithonline.wallpaperdesigner.shapes;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
public class SimpleTrianglePath extends Path {
public SimpleTrianglePath(final PointF center, final float radiusW, final float radiusH) {
draw(center, r... | true |
39f17dd85a0af6fd677d8811b9a3edf5c53390dc | Java | mrlonelyjtr/Multithread | /Active Object/2/1/activeobject/Servant.java | UTF-8 | 532 | 2.71875 | 3 | [] | no_license | package activeobject;
import java.math.BigInteger;
class Servant implements ActiveObject {
@Override
public Result<String> add(String x, String y) {
String retvalue = null;
try {
BigInteger bigX = new BigInteger(x);
BigInteger bigY = new BigInteger(y);
Big... | true |
be4bb81272f7b5517dc396745c0a96b9d0ae8dc6 | Java | sohamghosh28/sea-manifesto | /src/seamanifesto/FileManager.java | UTF-8 | 2,325 | 2.515625 | 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 seamanifesto;
import java.io.File;
import java.io.FileWriter;
import org.json.simple.JSONObject;
import org.json.simple.parser... | true |
1923c38708b18f097130b390904cd6b8580a1e0c | Java | chibiqilin/taylor_series_java | /src/main/java/trigLib/ACotTest.java | UTF-8 | 1,142 | 2.484375 | 2 | [] | no_license | package trigLib;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertEquals;
import static trigLib.TrigLib.*;
@RunWith(Parameterized.class)
public class ACotTest {
private Doubl... | true |
5bac9858c452d9b95ccb9571d2ef5415b0010552 | Java | jbeecham/ovirt-engine | /backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/adbroker/LdapGetAdUserByUserIdCommand.java | UTF-8 | 1,467 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package org.ovirt.engine.core.bll.adbroker;
import java.util.List;
import org.ovirt.engine.core.common.businessentities.AdUser;
import org.ovirt.engine.core.compat.Guid;
//
// JTODO - this needs testing -- Livnat
//
public class LdapGetAdUserByUserIdCommand extends LdapWithConfiguredCredentialsCommandBase {
pri... | true |
aed53f46ed0cec100e2c0f75c4da93b8b9358f10 | Java | jasmemu/jasPro | /jas/src/main/java/com/zyg/jas/managerport/controller/ClassesController.java | UTF-8 | 7,522 | 2.203125 | 2 | [] | no_license | package com.zyg.jas.managerport.controller;
import com.github.pagehelper.PageInfo;
import com.zyg.jas.common.pojo.Classes;
import com.zyg.jas.common.pojo.Student;
import com.zyg.jas.common.tool.constant.JasConstant;
import com.zyg.jas.common.tool.util.ResultEntity;
import com.zyg.jas.common.tool.vo.ClassVO;
import co... | true |
e90be1816c54c49e6df695cca330e53c917859ff | Java | SalimZ04/Smart-Ambulance | /SmartAmbulanceApp/src/main/java/Controllers/DeleteConfirmationController.java | ISO-8859-1 | 5,061 | 2.34375 | 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 Controllers;
import Include.Notification;
import MainConrollers.AmbulanceMainController;
import MainConrollers.AmbulanceTravel... | true |
bc1e3cf3b3e982e4d918f9b03076ac041f8ef32a | Java | mbizhani/Samples | /src/main/java/org/devocative/samples/xml/vo/XPart2.java | UTF-8 | 621 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package org.devocative.samples.xml.vo;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
@XStreamAlias("part2")
public class XPart2 {
@XStreamAsAttribute
private String p2y;
@XStreamAsAttribute
private String p2z;
public String getP2y() {
... | true |
3355182b0beb4bfeea43ed0c0e7c7337dce626f5 | Java | pxson001/facebook-app | /classes5.dex_source_from_JADX/com/facebook/graphql/enums/GraphQLEventTicketOrderStatus.java | UTF-8 | 893 | 2.03125 | 2 | [] | no_license | package com.facebook.graphql.enums;
/* compiled from: map_style */
public enum GraphQLEventTicketOrderStatus {
UNSET_OR_UNRECOGNIZED_ENUM_VALUE,
RESERVED,
PURCHASED,
REFUNDED,
FAILED,
TIMED_OUT;
public static GraphQLEventTicketOrderStatus fromString(String str) {
if (str == null ||... | true |
2c31f35420bd72ecfdc8e37fb2273cadec84e758 | Java | zhongxingyu/Seer | /Diff-Raw-Data/21/21_f134bbd3c331e78f91430505149ed808a5efb8c4/JSLint/21_f134bbd3c331e78f91430505149ed808a5efb8c4_JSLint_s.java | UTF-8 | 11,342 | 2.375 | 2 | [] | no_license | package com.googlecode.jslint4java;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.TimeUnit;
import org.mozilla.javascri... | true |
bbf9e3669aa59f7267cc4232b33a357e6f3811cc | Java | opennetworkinglab/onos | /drivers/server/src/main/java/org/onosproject/drivers/server/impl/stats/DefaultMemoryStatistics.java | UTF-8 | 5,560 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020-present Open Networking Foundation
*
* 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 appli... | true |
bd65745afb4f83296206dce8e7e75817c68e851f | Java | xinkong/GRass | /app/src/main/java/com/grass/grass/entity/Commend.java | UTF-8 | 822 | 1.859375 | 2 | [] | no_license | package com.grass.grass.entity;
/**
* Created by huchao on 2016/1/4.
*/
public class Commend {
private int id;
private int userId;
private String commendTime;
private String commendContent;
public String getCommendContent() {
return commendContent;
}
public void setCommendConte... | true |
9e55916994e881f4d5ba3996b525751c1bc2ea20 | Java | qqgirllianxin/hell | /hell-ml/src/main/java/ps/hell/ml/nlp/tool/hanlp/hankcs/test/seg/TestPersonRecognition.java | UTF-8 | 3,015 | 2.265625 | 2 | [] | no_license | /*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/05/2014/5/29 15:23</create-date>
*
* <copyright file="TestPersonRecognition.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.linrunsoft.com/
* This sou... | true |
66fc42b988a5a63e3a895fc31b7b31a35fef9387 | Java | puneetkhanal/finance | /src/com/finance/framework/entities/AbstractCustomerManager.java | UTF-8 | 823 | 2.328125 | 2 | [] | no_license | package com.finance.framework.entities;
import java.util.Observable;
import com.finance.framework.controllers.FrameworkController;
import com.finance.framework.intefaces.ICustomer;
import com.finance.framework.intefaces.ICustomerManager;
public abstract class AbstractCustomerManager extends Observable implements ... | true |
3561a298f14869bcc1d6130d71772498b13cf14f | Java | naveen8801/java-tutorial | /src/npower/company/FirstandLastOcuurance.java | UTF-8 | 1,266 | 4 | 4 | [] | no_license | package npower.company;
// Find first occurance and last occurance of a number in a array
// With help of occuarances we can also cout no. of times target is occuring
import java.util.Arrays;
public class FirstandLastOcuurance {
public static void main(String[] args) {
int[] arr = {5,7,7,7,7,8,8,10};
... | true |
ba981b60b1251fdda1eaf2f53bba9307a37d1ebd | Java | zbs4ms/doraemon | /doraemon-base/src/main/java/com/doraemon/base/redis/RedisOperation.java | UTF-8 | 6,278 | 2.515625 | 3 | [] | no_license | package com.doraemon.base.redis;
import com.doraemon.base.guava.DPreconditions;
import lombok.Data;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.... | true |
7658804ffd3119288a136bdffdffbad9ee1b3560 | Java | HackFmiNpe/TheForceMediaCenter | /MediaControllerApp/mobile/src/main/java/npe/hackfmi/mediacontrollerapp/tasks/InitialiseAsyncTask.java | UTF-8 | 2,368 | 2.421875 | 2 | [
"MIT"
] | permissive | package npe.hackfmi.mediacontrollerapp.tasks;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.nio.charset.StandardChar... | true |
063c4caa3726efb218b4d550539f72248cde1f6c | Java | cedar997/Leetcode | /src/com/cedar/leetcode/tmp/t_29/Solution.java | UTF-8 | 1,288 | 3.296875 | 3 | [] | no_license | package com.cedar.leetcode.tmp.t_29;
public class Solution {
public int divide(int dividend, int divisor) {
//q为最后返回的商
int q=0;
int sign=1;
if(divisor==Integer.MIN_VALUE){
if(dividend==Integer.MIN_VALUE)
//两最小负数相除,结果为1
return 1;
... | true |
d22aaa239f4504b973323fea92a8c5013007c938 | Java | vogtn/Learn-Java | /Loops/src/Application.java | UTF-8 | 723 | 4.03125 | 4 | [] | no_license | /**
* Created by nicv on 5/5/17.
*/
public class Application {
public static void main(String[] args){
/* boolean loop = 4 < 5;
System.out.println(loop)
=> returns true */
//while loop
int value = 0;
while(value < 10)
{
System.out.... | true |