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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3989041b22719c7abbe2a3f82359b8973ecab046 | Java | hymss/Tetris-Agent | /PlayerSkeleton.java | UTF-8 | 7,264 | 3.140625 | 3 | [] | no_license | import java.util.Arrays;
public class PlayerSkeleton {
// another State object to simulate the moves before actually playing
private StateSimulator simulator;
public PlayerSkeleton() {
simulator = new StateSimulator();
}
//implement this function to have a working system
public int pickMove(State s, int[][]... | true |
1377d58a9173672c94bd106fa9b906efd3c39f0d | Java | Dominicane87/Navigation | /app/src/main/java/com/example/vladimir/navigation/App.java | UTF-8 | 735 | 2.296875 | 2 | [] | no_license | package com.example.vladimir.navigation;
import android.app.Application;
public class App extends Application {
private static AppComponent component;
private static App app;
public static App get(){
return app;
}
public App() {
app = this;
}
public static AppComponent g... | true |
b64117eb9b7b069a6ebd9330f0ac4ea477f6358f | Java | RauulDeRoovers/rderoovers-minesweeper-API | /src/main/java/com/rderoovers/minesweeper/domain/MinesweeperSquareMine.java | UTF-8 | 307 | 2.234375 | 2 | [] | no_license | package com.rderoovers.minesweeper.domain;
public class MinesweeperSquareMine extends MinesweeperSquareDTO {
public MinesweeperSquareMine(long index) {
super(index);
}
@Override
protected MinesweeperSquareType initializeType() {
return MinesweeperSquareType.MINE;
}
} | true |
ecc03ab0f33853cb2c3996078d4ac89e9d5a07cb | Java | LDA111222/GraphScope | /interactive_engine/src/frontend/frontendservice/src/main/java/com/alibaba/maxgraph/frontendservice/exceptions/PrepareException.java | UTF-8 | 2,254 | 2.328125 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-elastic-license-2018",
"LicenseRef-scancode-other-permissive"
] | permissive | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* 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 |
3eece17f2f085142e1b1997c03bfb60ea7accdd8 | Java | patrypaulino/EasyMarketApp | /app/src/main/java/com/infodat/easymarket/ListScanAdapter.java | UTF-8 | 2,208 | 2.390625 | 2 | [] | no_license | package com.infodat.easymarket;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.TextView;
import com.infodat.easymarket.db.datasources.CodigosDataSource;
... | true |
3342932fd5660fa5decb32ff81fdce6c9915bf90 | Java | cyberphone/json-canonicalization | /java/deprecated/org/webpki/jcs/NumberCachedPowers.java | UTF-8 | 9,557 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2010 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | true |
0f02d760725d9b6f3620a57215bf8b0f6555a2b5 | Java | VICTORIA-MARIEL/MiPesca | /mipesca-source1.13/app/src/main/java/mx/com/sit/pesca/dao/MunicipioDAO.java | UTF-8 | 3,420 | 2.1875 | 2 | [] | no_license | package mx.com.sit.pesca.dao;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import io.realm.Realm;
import io.realm.RealmResults;
import mx.com.sit.pesca.dto.ComunidadList;
import mx.com.sit.pesca.dto.MunicipioLis... | true |
ba6500a0691e8a660a64512d7df79d31a7840427 | Java | dlhxd/bce-sdk-java | /src/test/java/com/baidubce/services/vod/ut/CreateMediaResourceTest.java | UTF-8 | 1,375 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.baidubce.services.vod.ut;
import java.io.File;
import java.io.FileNotFoundException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.baidubce.services.vod.AbstractVodTest;
import com.baidubce.services.vod.model.CreateMediaResourceResponse;
public class CreateMediaResou... | true |
c9761a7144fabb5a58c90dece109c2ad14a92d57 | Java | nitinkumartech/showroom-android | /app/src/main/java/com/ramotion/showroom/examples/garlandview/details/DetailsAdapter.java | UTF-8 | 1,126 | 2.375 | 2 | [
"MIT"
] | permissive | package com.ramotion.showroom.examples.garlandview.details;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.RecyclerView;
import com.ramotion.showroom.R;
import com.ramotion.showroom.databinding.GvDetailsItemBinding;
... | true |
09f05f9d05ab8495d8795ad582d79f35a1c6ae72 | Java | Ndjampou/helloworldmvc | /helloworldmvc/helloworldmvc.Contract/src/main/java/helloworldmvc/Contract/DAOHelloWorld.java | UTF-8 | 925 | 2.84375 | 3 | [] | no_license | package helloworldmvc.Contract;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class DAOHelloWorld {
public static void main (String[] args) throws IOException
{
BufferedReader in = new BufferedReader(new FileReader("D:\\HelloWorld.txt"));
String line;
while ((l... | true |
8b67306e120bed45c12b8fb04b06020fd46e9743 | Java | devlopper/org.cyk.system.company | /company-business-impl-ejb/src/main/java/org/cyk/system/company/business/impl/sale/SaleCashRegisterMovementCollectionDetails.java | UTF-8 | 1,435 | 2.015625 | 2 | [] | no_license | package org.cyk.system.company.business.impl.sale;
import java.io.Serializable;
import org.cyk.system.company.model.sale.SaleCashRegisterMovementCollection;
import org.cyk.system.root.business.impl.AbstractCollectionDetails;
import org.cyk.system.root.model.AbstractCollection;
import lombok.Getter;
import lombok.Set... | true |
bfd385f536fb30dc9b7dac193ad3b689b7031828 | Java | fred1573/fqms | /src/main/java/com/project/service/finance/FinanceOutNormalExportService.java | UTF-8 | 793 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.project.service.finance;
import com.project.entity.finance.FinanceInnChannelSettlement;
import com.project.entity.finance.FinanceInnSettlement;
import com.project.entity.finance.FinanceParentOrder;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax... | true |
e0e427603d59a89a004fd8e1e123bc8ec24c94a1 | Java | qadir0108/EncorePianoApp | /app/src/main/java/com/encore/piano/server/AcknowledgmentService.java | UTF-8 | 3,821 | 2.125 | 2 | [] | no_license | package com.encore.piano.server;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpPo... | true |
79e7352f85534863726c419f067664089f8dd80d | Java | xiatiansong/kudu-sds | /nosql.kudu.sdk/src/main/java/org/bg/kudu/annotation/codec/TypeCodec.java | UTF-8 | 20,787 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package org.bg.kudu.annotation.codec;
import com.google.common.reflect.TypeToken;
import org.bg.kudu.annotation.DataType;
import org.bg.kudu.annotation.InvalidTypeException;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.regex.Pattern;
import static com.google.common.base.Preconditions.ch... | true |
072277fb3e989f7efc8181ad34b8b83984635440 | Java | st0le/Euler | /src/org/mechaevil/Euler/Problem114/Problem114_2.java | UTF-8 | 815 | 3.109375 | 3 | [] | no_license | /**
*
*/
package org.mechaevil.Euler.Problem114;
import java.util.HashMap;
import org.mechaevil.util.StopWatch;
/**
* @author 332609
*
*/
public class Problem114_2 {
public static HashMap<Integer, Long> table = new HashMap<Integer, Long>();
/**
* @param args
*/
public static void main(String[] args) {... | true |
8cb9e3925bc6fcaa53606318886399eb97b8f83d | Java | rodrigoborgesdeoliveira/GSS | /src/main/java/br/pucpr/gss/client/view/uibinder/GeracaoRelatorioViewImpl.java | UTF-8 | 2,772 | 2.109375 | 2 | [] | no_license | package br.pucpr.gss.client.view.uibinder;
import br.pucpr.gss.client.view.GeracaoRelatorioView;
import br.pucpr.gss.client.view.MenuView;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiFi... | true |
1947984b58490cc73a2ea977473591f94cce40ec | Java | vinzynth/catroidCalculator | /app/src/test/java/catrobat/calculator/test/CalculationsTest.java | UTF-8 | 2,769 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | package catrobat.calculator.test;
import junit.framework.TestCase;
import catrobat.calculator.Calculations;
import catrobat.calculator.Parser;
/**
* Created by chrl on 01/06/16.
* <p/>
* TestClass for Calculation methods
*/
public class CalculationsTest extends TestCase {
public void testDoAddition() {
... | true |
78f2e9f98c444f9d072a6c5589c80e3eddfa3ed2 | Java | Sebastriune/Assignment-4---User-Sign-Up-Page | /IfElseIf/src/Exercise3_4.java | UTF-8 | 1,061 | 3.765625 | 4 | [] | no_license | import javax.swing.JOptionPane;
public class Exercise3_4 {
public static void main(String[] args) {
String numPeople = JOptionPane.showInputDialog("Enter the number of people");
String numPlayers = JOptionPane.showInputDialog("Enter the number of players");
Short ShortNumPeople = Short.parseShort(numPeo... | true |
6f95b7b18b0de1a7763d92b4165c48138e8858cb | Java | fajarmuhf/Pemrograman-3 | /UTS/FallFruit/src/Game/Sql/SaveGame.java | UTF-8 | 15,412 | 2.6875 | 3 | [] | no_license | package Game.Sql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import Game.utility.*;
public class SaveGame {
// JDBC driver name an... | true |
fd928384a01de9e713e387c92d43c8e8d5bab9ff | Java | iamkuaileshizhe/MRC | /app/src/main/java/com/neocom/mobilerefueling/bean/HeTongRespBean.java | UTF-8 | 8,450 | 2.203125 | 2 | [] | no_license | package com.neocom.mobilerefueling.bean;
/**
* Created by admin on 2017/11/13.
*/
public class HeTongRespBean extends BaseBean {
/**
* bring : {"id":"838391cb670d4c03bb7813e9a0458283","batchNum":"HT000002","contractNum":"测试合同","fuelModel":"3","fuelCode":null,"nationalStandard":"国三","fuelPosition":null,"f... | true |
eeffecc508f37973cca4b3b3349af8348ef09ca2 | Java | Pratheeban233/spring-data-jpa | /src/main/java/com/jpa/repository/vehicle/ManufacturerRepository.java | UTF-8 | 228 | 1.757813 | 2 | [] | no_license | package com.jpa.repository.vehicle;
import com.jpa.model.vehicle.Manufacturer;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ManufacturerRepository extends JpaRepository<Manufacturer,Long> {
}
| true |
07b7694d8f39cada675ad9a0731bf91ffac0884b | Java | Geeksongs/djl-demo | /aws/lambda-model-serving/src/main/java/com/examples/Request.java | UTF-8 | 1,535 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" fil... | true |
d167191acc3d09ec7bedd0591c6c58d81b95f536 | Java | skbharti1/javamarch20 | /Day11_0704/src/Reader_Writer_Demo1.java | UTF-8 | 994 | 2.953125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Reader_Writer_Demo1 {
... | true |
6901dca314db5f72f20082fb7de124d303e8b293 | Java | EastUp/NDKPractice | /ffmpegmusic/src/main/java/com/east/ffmpegmusic/media/listener/MediaPreparedListener.java | UTF-8 | 112 | 1.648438 | 2 | [] | no_license | package com.east.ffmpegmusic.media.listener;
public interface MediaPreparedListener {
void onPrepared();
}
| true |
c12f1f5e952e2302c4989f73e1306fb093b195c5 | Java | hieuthinh-cse/icommerce | /iam/src/main/java/vn/icommerce/iam/infra/springsecurity/ForbiddenRequestHandler.java | UTF-8 | 1,526 | 2.234375 | 2 | [] | no_license | package vn.icommerce.iam.infra.springsecurity;
import static vn.icommerce.sharedkernel.domain.model.DomainCode.FORBIDDEN;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.http.... | true |
3b2ac0090b220a9c52a8b2d467bc6c04beba08cb | Java | garybai/demo | /unnamed-demo/src/main/java/com/example/unnameddemo/io/nio/chat/ChatTest1.java | UTF-8 | 923 | 2.859375 | 3 | [] | no_license | package com.example.unnameddemo.io.nio.chat;
import java.io.IOException;
import java.util.Scanner;
/**
* chat 测试类
*
* @author Gary
* @date 2020/2/28 18:31
* @since jdk1.8
**/
public class ChatTest1 {
public static void main(String[] args) throws IOException {
ChatClient chatClient = new ChatClient(... | true |
cddbede761c1932d7585fa03747274628fc16f97 | Java | SVLKI/springone | /springhzel/src/main/java/com/cast/springhzel/EurekaClientConfiguration.java | UTF-8 | 1,065 | 2.078125 | 2 | [] | no_license | package com.cast.springhzel;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.netflix.eureka.EurekaClientConfigBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configurati... | true |
37e510773472b42ec1811ea114c77cfc5113e3dd | Java | guswns3371/eclipse-workspace | /guswns/src/guswns/test03.java | UTF-8 | 232 | 2.234375 | 2 | [] | no_license | package guswns;
public class test03 {
public static void main(String[] args) {
// TODO Auto-generated method stub
float f = 0f;
for (int i = 0; i < 10; i++) {
f=f+0.1f;
System.out.println("f="+f);
}
}
}
| true |
4d5b521132689d42fda9eada31e7d637c026a017 | Java | patelagni21/largestoffive | /largestoffive.java | UTF-8 | 337 | 2.9375 | 3 | [] | no_license | public class LargestOfFive {
public static void main(String args[]) {
int largest = Integer.parseInt(args[0]);
for(int i=1;i<args.length;i++)
{
if(largest<Integer.parseInt(args[i]))
largest = Integer.parseInt(args[i]);
}
System.out.println... | true |
22e379147ddb6c65cfab0d68ac788add0c1de50f | Java | leelingco/opendental | /java/OpenDentBusiness/Mobile/DiseaseDefms.java | UTF-8 | 3,717 | 2.515625 | 3 | [] | no_license | //
// Translated by CS2J (http://www.cs2j.com): 2/15/2016 8:01:06 PM
//
package OpenDentBusiness.Mobile;
import OpenDentBusiness.Db;
import OpenDentBusiness.DiseaseDef;
import OpenDentBusiness.DiseaseDefs;
import OpenDentBusiness.Mobile.Crud.DiseaseDefmCrud;
import OpenDentBusiness.Mobile.DiseaseDefm;
import OpenDent... | true |
8ce8406e29ffeb5964b8ca1809f2c46d31e553a6 | Java | paullewallencom/primefaces-978-1-7832-8069-8 | /_src/techbuzz/src/main/java/com/packtpub/techbuzz/repositories/PostRepository.java | UTF-8 | 560 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package com.packtpub.techbuzz.repositories;
import java.util.List;
import com.packtpub.techbuzz.entities.Post;
import com.packtpub.techbuzz.entities.Rating;
/**
* @author skatam
*
*/
public interface PostRepository extends GenericRepository<Integer, Post>
{
public List<Post> findPos... | true |
e04dc6b9cc7701989323ae302f8380af99df3451 | Java | GabrielRossin/POO | /Aula 7/Equacao2Grau/src/Equacao.java | UTF-8 | 1,544 | 3.234375 | 3 | [] | no_license | import Exception.DeltaNegativoEx;
import Exception.SegundoGrauEx;
public class Equacao
{
public double a;
public double b;
public double c;
public Equacao(double a, double b, double c) throws SegundoGrauEx
{
if(this.getA() != 0 && this.getB() != 0 && this.getC() != 0)
{
... | true |
dda11500b217b7caa82cb6b22882f023fbb6221c | Java | sunnySrc/LongquanForum-Android | /app/src/main/java/com/mobcent/discuz/ui/WebOptPopup.java | UTF-8 | 1,930 | 2.234375 | 2 | [] | no_license | package com.mobcent.discuz.ui;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.appbyme.dev.R;
/**
* Create... | true |
5fc00017feca96ff482393688becb40369800046 | Java | ihmcrobotics/simulation-construction-set-2 | /src/session-visualizer/java/us/ihmc/scs2/sessionVisualizer/controllers/ControllerListCell.java | UTF-8 | 649 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package us.ihmc.scs2.sessionVisualizer.controllers;
import javafx.scene.control.ListCell;
import javafx.scene.layout.Pane;
public class ControllerListCell<T extends SCSDefaultUIController> extends ListCell<T>
{
public ControllerListCell()
{
}
@Override
protected void updateItem(T item, boolean empty)
... | true |
df4efc47fa1e3ddbec12d3319a4b1a68bf71138c | Java | girtel/Net2Plan | /Net2Plan-Examples/src/main/java/com/net2plan/examples/smartCity/utn/UtnConstants.java | UTF-8 | 1,892 | 2.3125 | 2 | [
"BSD-2-Clause"
] | permissive | /*******************************************************************************
* Copyright (c) 2017 Pablo Pavon Marino and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the 2-clause BSD License
* which accompanies this distribution, and is avai... | true |
09726843685fca09eb9acc812d9026413cf6ab5f | Java | JoInJae/admin-project | /src/main/java/com/superbrain/data/constant/Role.java | UTF-8 | 320 | 2.0625 | 2 | [] | no_license | package com.superbrain.data.constant;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public enum Role {
S("Super", "슈퍼 관리자"),
H("Hospital", "병원 관리자"),
C("Center", "센터 관리자");
private final String eng;
private final String kor;
}
| true |
7e640fe9d30eb752221cd7db529da442d49401f7 | Java | liyun1030/baselibrary | /basetool/src/main/java/com/common/base/tool/CollectionUtils.java | UTF-8 | 2,868 | 3.203125 | 3 | [] | no_license | package com.common.base.tool;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* 集合工具
* Created by Yan Kai on 2016/6/13.
*/
public class CollectionUtils {
public static boolean isEqualCollection(final Collection<?> a, final Collection<?> b) {
if... | true |
5811c1f70933b01ea17a10e14102f539eaacadb3 | Java | r0shanbhagat/SelfieCelebriti | /commonframework/src/main/java/com/base/commonframework/preference/PreferenceManager.java | UTF-8 | 4,424 | 1.96875 | 2 | [] | no_license | package com.base.commonframework.preference;
import android.content.Context;
import com.base.commonframework.baselibrary.utility.AbstractPrefUtility;
/**
* CommonPreferenceManager Class :
*
* @author Roshan Kumar
* @version 3.0
* @since 1/12/18
* <p>
* Kindly put the data carefully in this class as we are not... | true |
aa1342f35535374f1794320b6584849fc67d8099 | Java | luojbin/designPattern | /src/main/java/com/luojbin/designPattern/p4_factory/pizza/CheesePizza.java | UTF-8 | 469 | 3.359375 | 3 | [] | no_license | package com.luojbin.designPattern.p4_factory.pizza;
public class CheesePizza extends Pizza {
@Override
public void prepare() {
System.out.println("准备一个芝士饼底");
}
@Override
public void bake() {
System.out.println("烤10分钟");
}
@Override
public void cut() {
System.o... | true |
28d4ea41cb2d263d0a139b4cd61250d364396c96 | Java | metav0id/QuickTipp | /src/main/java/de/defdesign/quicktipp/ux/UxUtilities.java | UTF-8 | 796 | 2.8125 | 3 | [] | no_license | package de.defdesign.quicktipp.ux;
import java.sql.SQLOutput;
public class UxUtilities {
/**
* Einfache Utility-Methoden für die Darstellung der User-Interfaces
*/
public static void clearScreen() {
for(int i = 0; i<20; i++) {
System.out.println();
}
}
public s... | true |
c50ec328a00ad5aff48961b8e053d231f2edba85 | Java | ANNASBlackHat/Learn-oop | /src/main/Main.java | UTF-8 | 714 | 2.890625 | 3 | [] | no_license | package main;
import entity.Category;
import entity.Product;
import implement.ProductImplement;
public class Main {
public static void main(String[] args) {
ProductImplement implement = new ProductImplement();
Product product = new Product();
product.setId(1);
product.setName("Co... | true |
5a24e293c64388f086dcc6cfe66f9b41efa684db | Java | AutohomeCorp/frostmourne | /frostmourne-monitor/src/main/java/com/autohome/frostmourne/monitor/service/core/template/AlertTemplateService.java | UTF-8 | 6,677 | 2.046875 | 2 | [
"MIT"
] | permissive | package com.autohome.frostmourne.monitor.service.core.template;
import java.util.*;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import com.autohome.frostmourne.monitor.dao.mybatis.frostmourne.domain.generate.AlertTemplate;
import com.autohome.frostmourne.monitor.dao.mybatis.frostmourne.doma... | true |
dc8fe90584e3588727abfc29027e4c769c03b55c | Java | JesusESD/EDA-P8 | /Menu.java | UTF-8 | 4,007 | 3.328125 | 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 arboles;
import java.util.Scanner;
/**
*
* @author Patch
*/
public class Menu {
public void mainMenu(){
int op;... | true |
51018d8b1f30f500565d5d4828e3a940532223b9 | Java | Blackghost56/SelectUser | /app/src/main/java/com/selectuser/EmployeeModel.java | UTF-8 | 1,154 | 2.375 | 2 | [] | no_license | package com.selectuser;
import androidx.databinding.ObservableBoolean;
import androidx.databinding.ObservableField;
import androidx.databinding.ObservableLong;
public class EmployeeModel {
public ObservableLong id = new ObservableLong();
public ObservableField<String> name = new ObservableField<>();
publ... | true |
46bfd34fa8549d030a473052f893fdd86183afff | Java | seges/acris | /acris-showcase/acris-showcase-appconstructor/src/main/java/sk/seges/acris/scaffold/mvp/DefaultViewConfiguration.java | UTF-8 | 914 | 2.15625 | 2 | [] | no_license | /**
*
*/
package sk.seges.acris.scaffold.mvp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import sk.seges.acris.scaffold.model.view.compose2.Singleselect;
import sk.seges.pap.printer.table.column.TextColumnPrinter;
/**
* @author ladislav.gazo
*/
public class DefaultViewConfiguration {... | true |
8885d78f0a1237a689219ad33effbcd68c08a7a9 | Java | Alexst1989/ocp7-preparing | /Java7OCP/src/main/java/ru/alexst/certification/ocp/par14/concurrency/executors/FutureExecutorsAndCallable.java | UTF-8 | 1,197 | 3.546875 | 4 | [] | no_license | package ru.alexst.certification.ocp.par14.concurrency.executors;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadLocalRa... | true |
213dcc53cd2b0312af04a0393b91a21a1f1d3432 | Java | yournameincode/orderingsystem | /clientfeign/src/main/java/com/southwind/ClientFeignApplication.java | UTF-8 | 829 | 1.703125 | 2 | [] | no_license | package com.southwind;
import com.myrule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springfra... | true |
fd366669c34568d7e7068e045af9b93c56dcadae | Java | ciberscanner/RappiPeliculas | /Android/app/src/main/java/com/kiwabolab/rappipeliculas/vista/activity/Detalle.java | UTF-8 | 5,585 | 2.015625 | 2 | [] | no_license | package com.kiwabolab.rappipeliculas.vista.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.design.widget.CollapsingToolbarLayout;
import android.support.design.widget.FloatingActionButton;
import android.suppo... | true |
e3b7b8e17049e5827efead90dfaf2c2e7703dd64 | Java | tichen47/Leetcode | /src/linked_list/ListNode.java | UTF-8 | 1,135 | 3.78125 | 4 | [] | no_license | package linked_list;
//Definition for singly-linked list.
public class ListNode {
public int val;
public ListNode next = null;
public ListNode(int x) {
val = x;
}
// Create a linked list by array
public ListNode(int[] arr) {
if (arr == null || arr.length == 0)
th... | true |
0b3a836e353b4496ff07146f1de9c07490d8e095 | Java | kri225/virgingames_api | /src/main/java/com/virgingames/constants/Path.java | UTF-8 | 210 | 1.6875 | 2 | [] | no_license | package com.virgingames.constants;
/**
* Created by Jay
*/
public class Path {
public static final String BINGO= "/bingo";// this is called constant in java, which is variable with you cant change
}
| true |
2319b5c848b761d2e3ac25c5ebb31483f2dbc056 | Java | shaath/Kiran | /PrimusBank/src/com/PrimusBank/Tests/LoginTC.java | UTF-8 | 636 | 1.8125 | 2 | [] | no_license | package com.PrimusBank.Tests;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class LoginTC {
public static void main(String[] args)
{
WebDriver driver=new FirefoxDriver();
driver.get("http://primusbank.qedgetech.com/");
driver.ma... | true |
16b2e1b2693c822fd60033448afc2f6a4fc4bd97 | Java | yuanguojie/new1 | /Hospital_Fixed_Asset_Management_System/src/main/java/Mapper/T_InStockDtlMapper.java | UTF-8 | 459 | 1.804688 | 2 | [] | no_license | package Mapper;
import java.util.List;
import domain.T_InStockDtl;
public interface T_InStockDtlMapper {
int deleteByPrimaryKey(Integer id);
int insert(T_InStockDtl record);
int insertSelective(T_InStockDtl record);
T_InStockDtl selectByPrimaryKey(Integer id);
List<T_InStockDtl> selectByA... | true |
b131193e89e27e49aa7447c33c5af1405d1b8119 | Java | wangjianxins/rediswang | /src/main/java/com/wang/redis/config/RedisWangAuthConfigure.java | UTF-8 | 2,389 | 2.140625 | 2 | [] | no_license | package com.wang.redis.config;
import com.wang.redis.Exception.RedisWangException;
import com.wang.redis.aop.HotKeyIntercepter;
import com.wang.redis.client.host.AbstractExecute;
import com.wang.redis.client.host.DefaultExecute;
import com.wang.redis.client.host.RedisWangClient;
import org.apache.log4j.Logger;
import o... | true |
5f726a114a44f59eade420405866d7231743b734 | Java | intesar/timesheet-management-community | /Timesheet-DAO/src/com/abbh/timesheet/daoImpl/ValueListHandlerDAOImpl.java | UTF-8 | 2,047 | 2.171875 | 2 | [] | no_license | /*
* ValueListHandlerDAOImpl.java
*
* Created on Aug 13, 2007, 10:21:04 PM
*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.abbh.timesheet.daoImpl;
import com.abbhsoft.framework.valueListHandler.ValueListHandlerDAO;
import java.util.List;
import java... | true |
2c0f6f24a473afe01006f82c928565a0486c5c41 | Java | shahmansi279/NyBestSellersApp | /TestApps/Apps/NyTimesBestSellersApp/app/src/main/java/project/com/nybestsellerbooksapp/model/BSFavoriteBookItem.java | UTF-8 | 702 | 2.03125 | 2 | [] | no_license | package project.com.nybestsellerbooksapp.model;
/**
* Created by Mansi on 1/18/18.
*/
public class BSFavoriteBookItem {
private String bookIsbn;
private String bookTitle;
private String bookAuthor;
public String getBookIsbn() {
return bookIsbn;
}
public void setBookIsbn(String bo... | true |
9d316e38b912e6ff5a653d12163a6f05998cebc6 | Java | aaa2550/numberone-auth-Maven | /src/main/java/com/numberONe/tempEntity/ProviderInfo.java | UTF-8 | 2,987 | 2 | 2 | [] | no_license | package com.numberONe.tempEntity;
import java.util.Date;
public class ProviderInfo {
private Integer id;
private Date createTime;
private Date updateTime;
private String companyName;
private String name;
private String province;
private String city;
private String address;
... | true |
37ae292afc0d2dee051ab78bf614d115d11c4ebe | Java | arifshaikh789/hibernate | /hibernateCompleteOpration/src/hibernateCompletePackage/StudentTest.java | UTF-8 | 707 | 2.40625 | 2 | [] | no_license | package hibernateCompletePackage;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
public class StudentTest
{
public static void main(String ar[])
{
Configuration cf=new Configuration();
cf.configure("cfg.xml");
... | true |
c01dc3010e81a7cc07ef81cc93971a2749576d7c | Java | Romain-P/Dofus-2.44.0-JProtocol | /network/com/ankamagames/dofus/network/messages/game/idol/IdolListMessage.java | UTF-8 | 3,194 | 2.28125 | 2 | [] | no_license | // Created by Heat the 2017-10-20 01:53:25+02:00
package com.ankamagames.dofus.network.messages.game.idol;
import org.heat.dofus.network.NetworkType;
import org.heat.dofus.network.NetworkMessage;
import org.heat.shared.io.DataWriter;
import org.heat.shared.io.DataReader;
import org.heat.shared.io.BooleanByteWrapper;
i... | true |
e0ebbd514d718d9cee36877db401af5b9aa6ff75 | Java | andersonfarias/matching | /src/main/java/farias/anderson/challenges/sortable/matching/data/clean/StringCleaner.java | UTF-8 | 840 | 3.703125 | 4 | [
"MIT"
] | permissive | package farias.anderson.challenges.sortable.matching.data.clean;
/**
* Utility class to perform some "clean" operations on String objects. By
* "clean", I mean operations that remove special characters, unnecessary
* white-spaces, convert the String to lower case and so on.
*
* @author Anderson Farias
*/
public... | true |
0115e1b7c73fbabc3cdfc063f8fd9f8be58d193b | Java | bellmit/blackbox | /bb-core/src/main/java/com/blackbox/ids/core/repository/ocr/OCRClientMappingRepository.java | UTF-8 | 422 | 1.773438 | 2 | [] | no_license | package com.blackbox.ids.core.repository.ocr;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import com.blackbox.ids.core.model.ocr.OCRClientMapping;
public interface OCRClientMappingRepository
extends JpaRepository<OCRClientMapping... | true |
9a80e8caa5472dc44abfae1c7db187dd5da0bc40 | Java | eglrp/TR-Flink | /map-matching/src/main/java/com/konfuse/TestFmm.java | UTF-8 | 7,656 | 2.25 | 2 | [] | no_license | package com.konfuse;
import com.konfuse.fmm.FmmMatcher;
import com.konfuse.road.*;
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
/**
* @Auther todd
* @Date 2020/1/8
*/
public class TestFmm {
public static long points_se... | true |
3247327d1e33b5777dad4945dcbe4ca5efb014f4 | Java | 214140846/hackerda | /web/src/main/java/com/hackerda/platform/domain/grade/GradeFetchTask.java | UTF-8 | 1,163 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.hackerda.platform.domain.grade;
import com.hackerda.platform.domain.student.StudentUserBO;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
/**
* 成绩抓取任务
*/
@Getter
@ToString
p... | true |
bfd5cc3a7c98b474a3c93aaa3c7a41ffba0581c5 | Java | EarunWu/order | /src/main/java/com/example/oder_putout/controller/AdminController.java | UTF-8 | 1,459 | 1.921875 | 2 | [] | no_license | package com.example.oder_putout.controller;
import com.example.oder_putout.entity.Goods;
import com.example.oder_putout.respository.GoodsDao;
import com.example.oder_putout.service.impl.AdminServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
im... | true |
c5d881055de5925169dd402adde5275f3da61a14 | Java | Aivech/tau | /src/main/java/com/aivech/tau/power/GridUpdate.java | UTF-8 | 3,354 | 2.421875 | 2 | [
"MIT"
] | permissive | package com.aivech.tau.power;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.World;
import net.minecraft.world.dimension.DimensionType;
import java.util.Arrays;
import java.util.Collection;
public class GridUpdate {
... | true |
06a25b1ad70d68c2a4b3a32886014b4444ab6655 | Java | datacoper/dc-codegenerator | /src/main/java/com/datacoper/maven/generators/impl/EaoImplGenerator.java | UTF-8 | 704 | 2.046875 | 2 | [] | no_license | package com.datacoper.maven.generators.impl;
import com.datacoper.maven.generators.AbstractJavaGenerator;
import com.datacoper.maven.metadata.TemplateModel;
import com.datacoper.maven.util.StringUtil;
public class EaoImplGenerator extends AbstractJavaGenerator {
public EaoImplGenerator(TemplateModel template... | true |
8416ed1eaa9b30cc4912a6ee4d9600161e193fa9 | Java | alexbrk/smoketest | /src/test/java/com/smoketest/tests/SearchTest.java | UTF-8 | 444 | 1.9375 | 2 | [] | no_license | package com.smoketest.tests;
import static org.testng.Assert.assertTrue;
import org.testng.annotations.Test;
import com.smoketest.pages.SearchResultPage;
import com.smoketest.pages.WishlistPage;
import com.smoketest.util.Browser;
public class SearchTest extends Browser {
@Test
public void searchDefaultItem(... | true |
86b9cc736e59e118896aa402a7de55920c05bdb3 | Java | Hangalik/projektlabor | /hu/bme/annaATbarbies/sokoban/view/ResultWindow.java | UTF-8 | 1,796 | 2.84375 | 3 | [] | no_license | package hu.bme.annaATbarbies.sokoban.view;
import hu.bme.annaATbarbies.sokoban.model.Floor;
import hu.bme.annaATbarbies.sokoban.model.pushable.Controller;
import org.apache.log4j.Logger;
import javax.swing.*;
import javax.swing.table.JTableHeader;
import java.awt.*;
import java.util.Collections;
import java.util.List... | true |
0f8f1ad5a3f185899d1a0a95218ab74150858290 | Java | javarishi/LearnJMS | /src/main/java/com/h2kinfosys/learn/jms/TestMessageProducer.java | UTF-8 | 1,562 | 2.703125 | 3 | [] | no_license | package com.h2kinfosys.learn.jms;
import javax.jms.Connection;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageProducer;
import javax.jms.Session;
import org.apache.activemq.ActiveMQConnectionFactory;
public class TestMessageProducer {
st... | true |
26af61880d722133f617252a57c683c625bc9bfa | Java | ruixiangliu/ondex-knet-builder | /modules/cyjs_json/src/main/java/net/sourceforge/ondex/export/cyjsJson/ConceptType.java | UTF-8 | 477 | 1.539063 | 2 | [] | no_license | package net.sourceforge.ondex.export.cyjsJson;
/**
* @author Ajit Singh
* @version 07/03/17
*/
public enum ConceptType {
Gene, Protein, Compound, SNP, Cellular_Component, Pathway, Reaction, Enzyme, Enzyme_Classification,
Phenotype, Publication, Biological_Process, Molecular_Function, Scaffold, Trait, Chromosome,... | true |
b969b2dd10175b23b2cb853cfe2f48286b6b7c7d | Java | js-superion/gomall.la | /legendshop_core/src/java/com/legendshop/core/security/AuthServiceImpl.java | UTF-8 | 7,741 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* LegendShop 多用户商城系统
*
* 版权所有,并保留所有权利。
*
*/
package com.legendshop.core.security;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.ca... | true |
7c30e6373b05c6a7725ee3ab6b65716e25f6d67b | Java | edjaz/bfb-test | /src/main/java/com/bforbank/testing/service/TicketService.java | UTF-8 | 1,343 | 2.40625 | 2 | [] | no_license | package com.bforbank.testing.service;
import com.bforbank.testing.domain.Ticket;
import com.bforbank.testing.service.dto.TicketDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
import java.util.Set;
/**
* Service Interface for managing Tic... | true |
734a7c69e615dcda6b1eb32d228d13646e020715 | Java | kenguru33/NetMon | /src/cx/virtlab/netmon/ProbeServiceStore.java | UTF-8 | 779 | 1.96875 | 2 | [] | no_license | package cx.virtlab.netmon;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.util.ArrayList;
import java.util.List;
/**
* Created by bernt on 26.05.15.
*/
public class ProbeServiceStore {
private ObservableList<ProbeService> probeServiceList;
public Observable... | true |
3ba13047c554dfc05b1a337f85a4de9161350743 | Java | gyhdx/Algorithm | /src/wf/leetcode/_34_在排序数组中查找元素的第一个和最后一个位置.java | UTF-8 | 757 | 3.265625 | 3 | [] | no_license | package wf.leetcode;
/*
给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。
你的算法时间复杂度必须是 O(log n) 级别。
如果数组中不存在目标值,返回 [-1, -1]。
*/
public class _34_在排序数组中查找元素的第一个和最后一个位置 {
public static void main(String[] args) {
}
public int[] searchRange(int[] nums, int target) {
if (nums == null || n... | true |
aab46c9651eb193fabc3af95e7c5c2285fc9a4b4 | Java | BeYkeRYkt/MinecraftServerDec | /src/net/minecraft/DataWatcher.java | UTF-8 | 6,742 | 2.265625 | 2 | [] | no_license | package net.minecraft;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.Reent... | true |
9405845b4615f57772b2e1c93f39afb00c324d23 | Java | tmancill/newrelic-jfr-core | /jfr-mappers/src/main/java/com/newrelic/jfr/tosummary/NetworkWriteSummarizer.java | UTF-8 | 1,642 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.jfr.tosummary;
import com.newrelic.jfr.Workarounds;
import java.util.Optional;
import jdk.jfr.consumer.RecordedEvent;
// jdk.SocketWrite {
// startTime = 20:22:57.161
//... | true |
a0a3edab767e8856e0d6b262f1543d7586fa714e | Java | Linshiq/private-project | /algorithm/src/com/lsq/problem/Solution617.java | UTF-8 | 2,211 | 3.40625 | 3 | [] | no_license | package com.lsq.problem;
import java.util.Arrays;
/**
* @author Linshiq:
* @date 创建时间:2018年1月26日 上午9:26:31
* @version 1.0
* @parameter
* @since
* @return
*/
/**
* <p>
* 文件功能说明:
*
* </p>
*
* @Author linshiqin
* <p>
* <li>2018年1月26日-上午9:26:31</li>
* <li>修改记录</li>
* ... | true |
8b7755ae4f98c276aa9481c1f0c60db06eb4c51e | Java | JetBrains/MPS | /testbench/testsolutions/bl.tuples.test/source_gen/jetbrains/mps/baseLanguage/tuples/test/ExtendedNamedTuples.java | UTF-8 | 3,008 | 2.34375 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.baseLanguage.tuples.test;
/*Generated by MPS */
import jetbrains.mps.baseLanguage.tuples.runtime.MultiTuple;
import jetbrains.mps.baseLanguage.tuples.runtime.Tuples;
public class ExtendedNamedTuples {
public ExtendedNamedTuples() {
}
public static class Foo extends MultiTuple._2<Integer, ... | true |
b02a060db8cfee73453c7e42c1d8846c532199f7 | Java | anishareddy20/DROPS | /upload.java | UTF-8 | 3,315 | 2.4375 | 2 | [] | no_license | package com.drops.servlet;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.Random;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http... | true |
131faa36de3b279336b7431cda1d0c906822849f | Java | omar20alaa/VAComputingTask | /app/src/main/java/app/task/EquationAdapter.java | UTF-8 | 2,684 | 2.28125 | 2 | [] | no_license | package app.task;
import android.content.Context;
import android.graphics.Color;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview... | true |
83f3c3eb2eb97755ffa55c46aecb2da0ffdc82d5 | Java | wabir/AcsUtils | /library/src/main/java/acs/Text.java | UTF-8 | 5,392 | 2.03125 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | package acs;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.... | true |
4b289bf807f3e75cdd01638744c71508e7060047 | Java | Duleeka/finalproject | /src/main/java/com/gn/app/service/settings/ReligionRegister/ReligionRegisterService.java | UTF-8 | 615 | 1.921875 | 2 | [] | no_license | package com.gn.app.service.settings.ReligionRegister;
import com.gn.app.dto.settings.ReligionRegister.ReligionRegisterDTO;
import org.springframework.data.jpa.datatables.mapping.DataTablesInput;
import org.springframework.data.jpa.datatables.mapping.DataTablesOutput;
import java.util.List;
public interface ReligionR... | true |
d2a6e820d547931f2dad4969d29788bc7c18cd75 | Java | lipycabral/UFAC | /IntroducaoJPA/src/br/ufac/academico/entidades/PessoaJuridica.java | UTF-8 | 390 | 2.453125 | 2 | [] | no_license | package br.ufac.academico.entidades;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
@Entity
@DiscriminatorValue(value="Juridica")
public class PessoaJuridica extends Pessoa{
@Column(length=14)
private String cnpj;
public String getCnpj() {
return c... | true |
8c95610e1f964759c65953bfa36ff500a897f614 | Java | danielcompufu/minhasfinancas | /src/main/java/com/minhasfinancas/model/entity/Usuario.java | UTF-8 | 613 | 2.03125 | 2 | [] | no_license | package com.minhasfinancas.model.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lom... | true |
3ef6e1186f2a230edd12fed47a718e5301ec67a3 | Java | AntonJohansson/EDAA01 | /edaa01-workspace/lab3/src/lab3/BookReaderController.java | UTF-8 | 4,005 | 3.203125 | 3 | [] | no_license | package lab3;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collection... | true |
0c4df70a3435c14c7c4bb20385867cfd9e0a6155 | Java | Team-Fruit/ProjectRTM | /src/main/java/net/teamfruit/projectrtm/rtm/entity/vehicle/EntityShip.java | UTF-8 | 1,405 | 2.28125 | 2 | [
"MIT"
] | permissive | package net.teamfruit.projectrtm.rtm.entity.vehicle;
import net.minecraft.block.material.Material;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import net.teamfruit.projectrtm.rtm.RTMItem;
public ... | true |
ba7e26bafb7b9f89a01073394cd888bb0bd456b4 | Java | Lianite/wurm-server-reference | /impl/org/controlsfx/tools/rectangle/change/AbstractFixedEdgeChangeStrategy.java | UTF-8 | 1,902 | 2.34375 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package impl.org.controlsfx.tools.rectangle.change;
import impl.org.controlsfx.tools.rectangle.Rectangles2D;
import javafx.geometry.Point2D;
import impl.org.controlsfx.tools.rectangle.Edge2D;
import javafx.geometry.Rectangle2D;
abstract class AbstractFixedEdgeChangeStrategy e... | true |
1878a1b0baab748462ed684c197e837125db0831 | Java | weimingtom/NLiveRoid | /src/nliveroid/nlr/main/parser/SecondEdit_GetLVParser.java | UTF-8 | 4,846 | 2.140625 | 2 | [] | no_license | package nliveroid.nlr.main.parser;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import nliveroid.nlr.main.ErrorCode;
import nliveroid.nlr.main.LiveTab.SecondSendForm_GetLVTask;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.Locator;
import org.xml.sax.SAXExcep... | true |
facedead2f1b0c763765ce19c03f130efe37fc02 | Java | ddeko/0274 | /app/src/main/java/plbtw/plbtw_0274/API/GoogleSearchAPI.java | UTF-8 | 676 | 1.804688 | 2 | [] | no_license | package plbtw.plbtw_0274.API;
import plbtw.plbtw_0274.Model.address.ArrayofSearchResultBean;
import retrofit.http.GET;
import retrofit.http.Query;
/**
* Created by dedeeko on 1/4/16.
*/
public interface GoogleSearchAPI {
@GET("/maps/api/geocode/json?result_type=route&key="+ "AIzaSyD5DmVoxPVbnHe242CMcdMMnmv... | true |
9080060232a3be8d1afce9fb1d4234f279be0e24 | Java | MikhailSap/cookstarter | /cookstarter-bot/src/main/java/ru/guteam/bot/handler/RequestHandler.java | UTF-8 | 985 | 1.945313 | 2 | [] | no_license | package ru.guteam.bot.handler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import ru.guteam.bot.service.CustomerService;
import ru.guteam.bot.service.OrderService;
import ru.guteam.bot.service.PictureServ... | true |
154000fa8f23cbc1e1a467e4ec55d7bc997ce9ac | Java | guoyx990403/XuankeSystemStudent | /xuanke3/src/xuanke/StudentSystem.java | GB18030 | 1,500 | 2.859375 | 3 | [] | no_license | package xuanke;
import java.util.Scanner;
import po.Student;
import view.StudentView;
import view.impl.StudentViewimpl;
public class StudentSystem {
private Scanner input = new Scanner(System.in);
private StudentView sview = new StudentViewimpl();
public void work() {
System.out.println("ӭ½ѧѡιϵͳ");
int num... | true |
84495df2f9a91e758a28c2420aaa165a3f92f881 | Java | MaisonWan/AndroidToy | /app/src/main/java/com/domker/androidtoy/adapter/MenuActionProvider.java | UTF-8 | 1,557 | 2.328125 | 2 | [] | no_license | /**
*
*/
package com.domker.androidtoy.adapter;
import android.content.Context;
import android.support.v4.view.ActionProvider;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.widget.Toast;
import com.domker.androidtoy.R;
/**
*
* @author wanlipeng 2016年12月20日
... | true |
cf585fd8e4d80e2962872776abbf0f370eca9b42 | Java | bellmit/sunbird-cb-rulengine | /ruleenginecore/src/main/java/org/sunbird/ruleengine/rest/JobDetailRest.java | UTF-8 | 3,859 | 2.015625 | 2 | [
"MIT"
] | permissive | package org.sunbird.ruleengine.rest;
import java.security.Principal;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web... | true |
a3f57812dc3eb6de018070c603ff44d6d2d878b7 | Java | Wangechi-waweru/Android-Intent-Activity | /app/src/main/java/com/example/saturdayclass/IntentActivity.java | UTF-8 | 4,897 | 1.929688 | 2 | [] | no_license | package com.example.saturdayclass;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
i... | true |
d6884d1737fd6236b3c34b4ec2fc61cefc6d130c | Java | gerritcap/sitebuilder | /src/main/java/org/apache/sling/sitebuilder/internal/scriptstackresolver/ScriptContainerResolvingPathInfo.java | UTF-8 | 3,220 | 2.046875 | 2 | [] | no_license | package org.apache.sling.sitebuilder.internal.scriptstackresolver;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.request.RequestPathInfo;
import org.apache.sling.api.resource.Resource;
public class ScriptContainerResolvingPathInfo implements RequestPathInfo {
private String suffix... | true |
25c5ddbc70be48465f09488416369ba7e2ca2ac1 | Java | benjiazhen/algorithm010 | /Week04/二叉树层序遍历.java | UTF-8 | 1,282 | 3.5625 | 4 | [] | no_license | class Solution {
public List<List<Integer>> levelOrder(TreeNode root) {
return method1(root);
}
/**
* 时间复杂度O(n)
* 空间复杂度O(n)
*/
public List<List<Integer>> method1(TreeNode root) {
List<List<Integer>> result = new ArrayList<>();
if (root == null)
{
... | true |
f547eba4a2bf2e719448f091f594a9a8742b02c3 | Java | fazihassan/Dry_clean | /app/src/main/java/com/androidfree/myapplication/Model/ServiceType.java | UTF-8 | 633 | 2.546875 | 3 | [] | no_license | package com.androidfree.myapplication.Model;
public class ServiceType {
private String serviceName;
private int serviceImage;
public ServiceType(String serviceName, int serviceImage) {
this.serviceName = serviceName;
this.serviceImage = serviceImage;
}
public String getServiceName... | true |
134adafc40af0f63d6666fec91a8e03550e3f0e8 | Java | noctarius/tengi | /java/tengi-server/src/main/java/com/noctarius/tengi/server/spi/transport/Endpoint.java | UTF-8 | 1,722 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015-2016, Christoph Engelbert (aka noctarius) and
* contributors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | true |
223731cfc75e9313076fb574e9e725a882187b10 | Java | MarsStirner/core | /core/common/src/main/java/ru/korus/tmis/core/exception/NoSuchEntityException.java | UTF-8 | 378 | 2.15625 | 2 | [] | no_license | package ru.korus.tmis.core.exception;
public class NoSuchEntityException extends CoreException {
final int entityId;
public NoSuchEntityException(final int errorCode,
final int entityId,
final String message) {
super(errorCode... | true |
7129d502ccdda25a1de64395e091605710937af9 | Java | ericlucena6485/POO2021 | /tarefanove/fornecedor.java | UTF-8 | 746 | 2.421875 | 2 | [] | no_license | package tarefanove;
public class fornecedor extends operacoes{
private String cnpj;
private String razaoSocial;
public String getCnpj() {
return cnpj;
}
public void setCnpj(String cnpj) {
this.cnpj = cnpj;
}
public String getRazaoSocial() {
return razaoSocial;
}
public void setRaz... | true |
8d503f4c15b840d15bb6de576b04e307e6b6ea47 | Java | jinyx728/SE228-Web-Development | /src/main/java/action/AddUserAction.java | UTF-8 | 1,585 | 2.390625 | 2 | [] | no_license | package action;
import model.User;
import model.UserDes;
import model.UserImg;
import service.AppService;
import service.DetailService;
import java.io.File;
public class AddUserAction extends BaseAction {
private static final long serialVersionUID = 1L;
private String username;
private String password;
private... | true |