code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
Potree.TranslationTool = function(camera) { THREE.Object3D.call( this ); var scope = this; this.camera = camera; this.geometry = new THREE.Geometry(); this.material = new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff } ); this.STATE = { DEFAULT: 0, TRANSLATE_X: 1, TRANSLATE_Y: 2, TRANSLA...
idunshee/Portfolio
Project/WPC/WPC_Viewer/src/utils/TranslationTool.js
JavaScript
apache-2.0
6,194
package bwhatsapp import ( "encoding/gob" "encoding/json" "errors" "fmt" "os" "strings" qrcodeTerminal "github.com/Baozisoftware/qrcode-terminal-go" "github.com/Rhymen/go-whatsapp" ) type ProfilePicInfo struct { URL string `json:"eurl"` Tag string `json:"tag"` Status int16 `json:"status"` } func q...
42wim/matterbridge
bridge/whatsapp/helpers.go
GO
apache-2.0
3,689
'use strict'; var consoleBaseUrl = window.location.href; consoleBaseUrl = consoleBaseUrl.substring(0, consoleBaseUrl.indexOf("/console")); consoleBaseUrl = consoleBaseUrl + "/console"; var configUrl = consoleBaseUrl + "/config"; var auth = {}; var resourceBundle; var locale = 'en'; var module = angular.module('keycl...
wildfly-security-incubator/keycloak
themes/src/main/resources/theme/base/admin/resources/js/app.js
JavaScript
apache-2.0
99,144
/* * AnyOf_test.cpp * * Created on: Jan 30, 2016 * Author: ljeff */ #include "AnyOf.h" namespace algorithm { } /* namespace algorithm */
jidol/boost-algorithms
AnyOf_test.cpp
C++
apache-2.0
151
/* * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
mifos/1.5.x
application/src/test/java/org/mifos/customers/persistence/CustomerPersistenceIntegrationTest.java
Java
apache-2.0
73,142
/** * * @author Alex Karpov (mailto:karpov_aleksey@mail.ru) * @version $Id$ * @since 0.1 */ package ru.job4j.max;
AlekseyKarpov/akarpov
chapter_001/src/test/java/ru/job4j/max/package-info.java
Java
apache-2.0
113
package com.capgemini.resilience.employer.service; public interface ErrorSimulationService { void generateErrorDependingOnErrorPossibility(); }
microservices-summit-2016/resilience-demo
employer-service/src/main/java/com/capgemini/resilience/employer/service/ErrorSimulationService.java
Java
apache-2.0
150
using UnityEngine; using System.Collections; public class blockGenerator : MonoBehaviour { public int spawnRate = 1; private float timeSinceLastSpawn = 0; public GameObject oneCube; public int count; // Use this for initialization void Start () { //Debug.Log("ran cube creator"); count = 0; } // U...
josejlm2/HackTx2014
Assets/Resources/Scripts/blockGenerator.cs
C#
apache-2.0
938
// ----------------------------------------------------------------------- // <copyright file="Health.cs" company="PlayFab Inc"> // Copyright 2015 PlayFab Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You m...
PlayFab/consuldotnet
Consul/Interfaces/IHealthEndpoint.cs
C#
apache-2.0
2,271
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
m0ppers/arangodb
arangod/GeneralServer/RestHandler.cpp
C++
apache-2.0
3,855
// Copyright (C) 2018 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
qtproject/qtqa-gerrit
java/com/google/gerrit/server/git/receive/ResultChangeIds.java
Java
apache-2.0
1,920
# Copyright 2016 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to ...
becm/meson
mesonbuild/scripts/yelphelper.py
Python
apache-2.0
5,816
package com.veneweather.android; import android.app.Fragment; import android.app.ProgressDialog; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Adapte...
Ackerm-Zed/veneweather
app/src/main/java/com/veneweather/android/ChooseAreaFragment.java
Java
apache-2.0
9,584
# #Programa Lista 4, questão 1; #Felipe Henrique Bastos Costa - 1615310032; # # # # lista = []#lista vazia; cont1 = 0#contador do indice; cont2 = 1#contador da posição do numero, se é o primeiro, segundo etc; v = 5#representaria o len da lista; while(cont1 < v): x = int(input("Informe o %dº numero inteiro para c...
any1m1c/ipc20161
lista4/ipc_lista4.01.py
Python
apache-2.0
675
#include "stdafx.h" #include "InputReader.h" #include "graph.h" #include <iostream> #include <string> using namespace std; InputReader::InputReader(const char* fileName, const char* stFileName) { in.open(fileName); if(!in.is_open()) { cout<<"Input file "<<fileName<<" doesn't exist!"<<endl; exit(1); } stIn....
yuanmouren1hao/KeyEdge_Mining_On_UncertainGraph
myFlow_caiwei/myFlow/InputReader.cpp
C++
apache-2.0
1,474
<?php namespace Illuminate\Database\Eloquent; use Closure; use BadMethodCallException; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Pagination\Paginator; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Concerns\BuildsQueries; use Illuminate\Database\Eloquent\Relations\Rel...
drthomas21/WordPress_Tutorial
community_htdocs/vendor/illuminate/database/Eloquent/Builder.php
PHP
apache-2.0
37,905
using System; using System.Collections.Generic; using System.Threading.Tasks; using AspNetCoreTodo.Models; namespace AspNetCoreTodo.Services { public interface ITodoItemService { Task<IEnumerable<TodoItem>> GetIncompleteItemsAsync(ApplicationUser user); Task<bool> AddItemAsync(NewTodoItem newI...
nqdien/littleaspnetcorebook
Services/ITodoItemService.cs
C#
apache-2.0
420
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
jaikiran/ant-ivy
src/java/org/apache/ivy/core/pack/OsgiBundlePacking.java
Java
apache-2.0
1,656
package fr.openwide.core.wicket.more.markup.html.feedback; import java.util.ArrayList; import java.util.List; import org.apache.wicket.MarkupContainer; import org.apache.wicket.feedback.FeedbackMessage; import org.apache.wicket.markup.html.panel.FeedbackPanel; import org.apache.wicket.markup.html.panel.Panel; public...
openwide-java/owsi-core-parent
owsi-core/owsi-core-components/owsi-core-component-wicket-more/src/main/java/fr/openwide/core/wicket/more/markup/html/feedback/AbstractFeedbackPanel.java
Java
apache-2.0
1,314
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. ...
woxxy/FoOlSlide
application/config/routes.php
PHP
apache-2.0
2,388
/* * EditorMouseMenu.java * * Created on March 21, 2007, 10:34 AM; Updated May 29, 2007 * * Copyright 2007 Grotto Networking */ package Samples.MouseMenu; import edu.uci.ics.jung.algorithms.layout.Layout; import edu.uci.ics.jung.algorithms.layout.StaticLayout; import edu.uci.ics.jung.graph.SparseMul...
ksotala/BayesGame
BayesGame/src/Samples/MouseMenu/EditorMouseMenu.java
Java
apache-2.0
3,984
package ru.job4j.max; /** *Класс помогает узнать, какое из двух чисел больше. *@author ifedorenko *@since 14.08.2017 *@version 1 */ public class Max { /** *Возвращает большее число из двух. *@param first содержит первое число *@param second содержит второе число *@return Большее из двух */ public int max(in...
fr3anthe/ifedorenko
1.1-Base/src/main/java/ru/job4j/max/Max.java
Java
apache-2.0
887
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
ua-eas/ua-rice-2.1.9
impl/src/main/java/org/kuali/rice/kew/docsearch/dao/impl/DocumentSearchDAOJdbcImpl.java
Java
apache-2.0
8,999
/* * Copyright 2016 Alexander Severgin * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
alpinweiss/filegen
src/main/java/eu/alpinweiss/filegen/util/generator/impl/AutoNumberGenerator.java
Java
apache-2.0
2,280
/** * <copyright> * </copyright> * * $Id$ */ package net.opengis.gml.provider; import java.util.Collection; import java.util.List; import net.opengis.gml.FeatureStyleType; import net.opengis.gml.GmlFactory; import net.opengis.gml.GmlPackage; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclip...
markus1978/citygml4emf
de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/FeatureStyleTypeItemProvider.java
Java
apache-2.0
10,661
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
GoogleCloudPlatform/gcpdiag
gcpdiag/lint/gke/err_2021_001_logging_perm.py
Python
apache-2.0
1,986
package sarama // ApiVersionsRequest ... type ApiVersionsRequest struct{} func (a *ApiVersionsRequest) encode(pe packetEncoder) error { return nil } func (a *ApiVersionsRequest) decode(pd packetDecoder, version int16) (err error) { return nil } func (a *ApiVersionsRequest) key() int16 { return 18 } func (a *Api...
trivago/gollum
vendor/github.com/Shopify/sarama/api_versions_request.go
GO
apache-2.0
516
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-neptune/src/main/java/com/amazonaws/services/neptune/model/RemoveRoleFromDBClusterResult.java
Java
apache-2.0
2,392
using System.Collections.Generic; namespace Microsoft.Xna.Framework.Graphics { internal partial class DXConstantBufferData { public string Name { get; private set; } public int Size { get; private set; } public List<int> ParameterIndex { get; private set; } public List<int> ...
jonathanpeppers/MonoGameOrientation
MonoGame/Tools/2MGFX/DXConstantBufferData.cs
C#
apache-2.0
1,654
package ru.istolbov; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test. * @author istolbov * @version $Id$ */ public class TurnTest { /** * Test turn back array. */ @Test public void whenWeTurnBackArray() { final int[] targetArra...
istolbov/i_stolbov
chapter_001/src/test/java/ru/istolbov/TurnTest.java
Java
apache-2.0
2,196
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTi...
singhjaideep/ado-net-segfault
ConsoleApplication2/Properties/AssemblyInfo.cs
C#
apache-2.0
1,454
package javay.test.security; import java.security.Key; import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec.DESKeySpec; /** * DES安全编码组件 * * <pre> * 支...
dubenju/javay
src/java/javay/test/security/DESCoder.java
Java
apache-2.0
4,047
/* * Copyright 2016 Yu Sheng. 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/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
zeelichsheng/auth
auth-model/src/main/java/com/ysheng/auth/model/api/GrantType.java
Java
apache-2.0
769
/* jshint sub: true */ /* global exports: true */ 'use strict'; // ////////////////////////////////////////////////////////////////////////////// // / @brief node-request-style HTTP requests // / // / @file // / // / DISCLAIMER // / // / Copyright 2015 triAGENS GmbH, Cologne, Germany // / // / Licensed under the Apach...
baslr/ArangoDB
js/common/modules/@arangodb/request.js
JavaScript
apache-2.0
5,781
/// <reference path="../apimanPlugin.ts"/> /// <reference path="../services.ts"/> module Apiman { export var UserRedirectController = _module.controller("Apiman.UserRedirectController", ['$q', '$scope', '$location', 'PageLifecycle', '$routeParams', ($q, $scope, $location, PageLifecycle, $routeParam...
kunallimaye/apiman
manager/ui/hawtio/plugins/api-manager/ts/user/user.ts
TypeScript
apache-2.0
528
#ifndef _TCUX11_HPP #define _TCUX11_HPP /*------------------------------------------------------------------------- * drawElements Quality Program Tester Core * ---------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "Lice...
chadversary/deqp
framework/platform/X11/tcuX11.hpp
C++
apache-2.0
3,554
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
phrocker/sharkbite
src/data/constructs/column.cpp
C++
apache-2.0
3,199
package me.knox.zmz.mvp.model; import io.reactivex.Flowable; import io.reactivex.android.schedulers.AndroidSchedulers; import java.util.List; import javax.inject.Inject; import me.knox.zmz.App; import me.knox.zmz.entity.News; import me.knox.zmz.mvp.contract.NewsListContract; import me.knox.zmz.network.JsonResponse; /...
chowaikong/ZMZ
app/src/main/java/me/knox/zmz/mvp/model/NewsListModel.java
Java
apache-2.0
664
/* * Copyright 2022 Imply Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
implydata/immutable-class
packages/eslint-plugin-immutable-class/src/rules/readonly-implicit-fields.spec.ts
TypeScript
apache-2.0
5,020
// Copyright 2017 The Nomulus Authors. 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/licenses/LICENSE-2.0 // // Unless required by a...
google/nomulus
core/src/main/java/google/registry/model/tld/Registry.java
Java
apache-2.0
40,835
import java.util.Scanner; /** * @author Oleg Cherednik * @since 27.10.2017 */ public class Solution { static int[] leftRotation(int[] a, int d) { for (int i = 0, j = a.length - 1; i < j; i++, j--) swap(a, i, j); d %= a.length; if (d > 0) { d = a.length - d; ...
oleg-cherednik/hackerrank
Data Structures/Arrays/Left Rotation/Solution.java
Java
apache-2.0
1,184
package com.pmis.manage.dao; import org.springframework.stereotype.Component; import com.pmis.common.dao.CommonDao; @Component public class UserInfoDao extends CommonDao{ }
twosunnus/zhcy
src/com/pmis/manage/dao/UserInfoDao.java
Java
apache-2.0
193
/** * Licensed to Odiago, Inc. under one or more contributor license * agreements. See the NOTICE.txt file distributed with this work for * additional information regarding copyright ownership. Odiago, Inc. * licenses this file to you under the Apache License, Version 2.0 (the * "License"); you may not use this ...
flumebase/flumebase
src/main/java/com/odiago/flumebase/lang/Function.java
Java
apache-2.0
2,315
/** * Copyright 2016 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
benjchristensen/RxJava
src/main/java/io/reactivex/internal/operators/maybe/MaybeIgnoreElement.java
Java
apache-2.0
2,368
package com.intellij.util.xml.impl; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.util.NullableFactory; import com.intellij.openapi.util.text.StringUtil; import com.intellij.psi.XmlElementFactory; import com.intellij.psi.xml.XmlDocument; import com.intellij.psi.xml.XmlFile; import com.inte...
consulo/consulo-xml
xml-dom-impl/src/main/java/com/intellij/util/xml/impl/DomRootInvocationHandler.java
Java
apache-2.0
4,330
package org.consumersunion.stories.common.client.util; public class CachedObjectKeys { public static final String OPENED_CONTENT = "openedContent"; public static final String OPENED_STORY = "openedStory"; public static final String OPENED_COLLECTION = "openedCollection"; }
stori-es/stori_es
dashboard/src/main/java/org/consumersunion/stories/common/client/util/CachedObjectKeys.java
Java
apache-2.0
287
package dkalymbaev.triangle; class Triangle { /** * This class defines points a b and c as peacks of triangle. */ public Point a; public Point b; public Point c; /** * Creating of a new objects. * @param a is the length of the first side. * @param b is the length of the second side. * @param c is the...
Damir2805/java-a-to-z
Chapter_001/src/main/java/dkalymbaev/triangle/Triangle.java
Java
apache-2.0
783
/* * Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute * Copyright [2016-2019] EMBL-European Bioinformatics Institute * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
Ensembl/ensj-healthcheck
src/org/ensembl/healthcheck/util/AbstractMapRowMapper.java
Java
apache-2.0
1,222
/** * Created by plter on 6/13/16. */ (function () { var files = ["hello.js", "app.js"]; files.forEach(function (file) { var scriptTag = document.createElement("script"); scriptTag.async = false; scriptTag.src = file; document.body.appendChild(scriptTag); }); }());
plter/HTML5Course20160612
20160613/LoadScript/loader.js
JavaScript
apache-2.0
315
package com.linbo.algs.examples.queues; import java.util.Iterator; import com.linbo.algs.util.StdRandom; /** * Created by @linbojin on 13/1/17. * Ref: http://coursera.cs.princeton.edu/algs4/assignments/queues.html * RandomizedQueue: a double-ended queue or deque (pronounced "deck") is a * generalization of a sta...
linbojin/algorithms
java/src/main/java/com/linbo/algs/examples/queues/RandomizedQueue.java
Java
apache-2.0
4,619
/* Copyright 2011 LinkedIn Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
smoothpanda1981/linkedin
java/src/com/linkedin/sample/Main.java
Java
apache-2.0
22,732
/* * Copyright 2013 Square, Inc. * Copyright 2016 PKWARE, Inc. * * 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 ...
pkware/truth-android
truth-android-appcompat/src/main/java/com/pkware/truth/androidx/appcompat/widget/SearchViewSubject.java
Java
apache-2.0
3,403
/* JustMock Lite Copyright © 2010-2015 Progress Software Corporation 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 ...
telerik/JustMockLite
Telerik.JustMock/Core/ExpressionUtil.cs
C#
apache-2.0
6,015
/******************************************************************************* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses t...
am0e/commons
src/main/java/com/github/am0e/jbeans/FieldInfo.java
Java
apache-2.0
7,111
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U # # This file is part of FI-WARE project. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # You may obtain a copy of the Li...
telefonicaid/fiware-sdc
automatization_scripts/get_software_catalogue.py
Python
apache-2.0
4,111
var interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuilder = [ [ "getPacketsReceived", "interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuilder.html#a190993a33fa895f9d07145f3a04f5d22", null ], [ "getPacketsSent", "interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuil...
onosfw/apis
onos/apis/interfaceorg_1_1onosproject_1_1grpc_1_1Port_1_1PortStatisticsOrBuilder.js
JavaScript
apache-2.0
512
<?php defined('SYSTEM_IN') or exit('Access Denied'); hasrule('weixin','weixin'); $operation = !empty($_GP['op']) ? $_GP['op'] : 'display'; if($operation=='detail') { if(!empty($_GP['id'])) { $rule = mysqld_select('SELECT * FROM '.tabl...
jaydom/weishang
system/weixin/class/web/rule.php
PHP
apache-2.0
3,054
package org.corpus_tools.annis.gui.visualizers.component.tree; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org...
korpling/ANNIS
src/test/java/org/corpus_tools/annis/gui/visualizers/component/tree/AnnisGraphToolsTest.java
Java
apache-2.0
2,637
// ---------------------------------------------------------------------------- // Copyright 2007-2011, GeoTelematic Solutions, Inc. // All rights reserved // ---------------------------------------------------------------------------- // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not...
CASPED/OpenGTS
src/org/opengts/dbtypes/DTIPAddress.java
Java
apache-2.0
3,318
package ru.stqa.pft.mantis.appmanager; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.boot.MetadataSources; import org.hibernate.boot.registry.StandardServiceRegistry; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import ru.stqa.pft.mantis.model.User; impo...
SweetyDonut/java_pft
Mantis_tests/src/test/java/ru/stqa/pft/mantis/appmanager/DbHelper.java
Java
apache-2.0
1,105
package com.mricefox.androidhorizontalcalendar.library.calendar; import android.database.Observable; /** * Author:zengzifeng email:zeng163mail@163.com * Description: * Date:2015/12/25 */ public class DataSetObservable extends Observable<DataSetObserver> { public boolean hasObservers() { synchronized (...
MrIceFox/AndroidHorizontalCalendar
library/src/main/java/com/mricefox/androidhorizontalcalendar/library/calendar/DataSetObservable.java
Java
apache-2.0
918
/* * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
ceylon/ceylon
langtools-classfile/src/org/eclipse/ceylon/langtools/classfile/TypeAnnotation.java
Java
apache-2.0
23,331
define([ "settings", "views/tags" ], function(panelSettings, TagsView) { var PanelFileView = codebox.require("views/panels/file"); var PanelOutlineView = PanelFileView.extend({ className: "cb-panel-outline", FileView: TagsView }); return PanelOutlineView; });
cethap/cbcompiled
addons/cb.panel.outline/views/panel.js
JavaScript
apache-2.0
301
package com.ticktick.testimagecropper; import java.io.File; import java.io.FileNotFoundException; import java.io.InputStream; import com.ticktick.imagecropper.CropImageActivity; import com.ticktick.imagecropper.CropIntent; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; im...
msdgwzhy6/ImageCropper
TestImageCropper/src/com/ticktick/testimagecropper/MainActivity.java
Java
apache-2.0
3,086
<?php $this->pageTitle=Yii::app()->name . ' - Login'; $this->breadcrumbs=array( 'Login', ); ?> <h1>Login</h1> <p>Please fill out the following form with your login credentials:</p> <div class="form"> <?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'login-form', 'enableAjaxValidation'=>true, )); ?> <p...
fipumjdeveloper/web
views/site/login.php
PHP
apache-2.0
1,309
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
boneman1231/org.apache.felix
trunk/deploymentadmin/deploymentadmin/src/main/java/org/apache/felix/deploymentadmin/BundleInfoImpl.java
Java
apache-2.0
4,581
# Copyright 2014-2015 Isotoma 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 applicable law or agreed to in wr...
yaybu/touchdown
touchdown/aws/ec2/instance.py
Python
apache-2.0
4,911
package com.zlwh.hands.api.domain.base; public class PageDomain { private String pageNo; private String pageSize = "15"; private long pageTime; // 上次刷新时间,分页查询时,防止分页数据错乱 public String getPageNo() { return pageNo; } public void setPageNo(String pageNo) { this.pageNo = pageNo; } public String getPageSize...
javyuan/jeesite-api
src/main/java/com/zlwh/hands/api/domain/base/PageDomain.java
Java
apache-2.0
593
package io.github.thankpoint.security.impl; import java.security.Provider; import java.security.Security; import io.github.thankpoint.security.api.provider.SecurityProviderBuilder; /** * Implementation of {@link SecurityProviderBuilder}. * * @param <B> type of the returned builder. * @author thks */ public inte...
thankpoint/thanks4java
security/src/main/java/io/github/thankpoint/security/impl/AbstractSecurityProviderBuilderImpl.java
Java
apache-2.0
589
package com.github.saulis.enumerables; import java.util.Iterator; import java.util.NoSuchElementException; public class EmptyIterator<T> implements Iterator<T> { @Override public boolean hasNext() { return false; } @Override public T next() { throw new NoSuchElementException(); ...
Saulis/enumerables
src/main/java/com/github/saulis/enumerables/EmptyIterator.java
Java
apache-2.0
326
package com.squarespace.template.expr; import java.util.Arrays; /** * Token representing a variable name. Could hold a reference or * a definition. */ public class VarToken extends Token { public final Object[] name; public VarToken(Object[] name) { super(ExprTokenType.VARIABLE); this.name = name; ...
Squarespace/template-compiler
core/src/main/java/com/squarespace/template/expr/VarToken.java
Java
apache-2.0
594
/******************************************************************************* * * Pentaho Data Integration * * Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the ...
jjeb/kettle-trunk
engine/src/org/pentaho/di/trans/steps/jsonoutput/JsonOutput.java
Java
apache-2.0
14,853
define(["Log","FS"],function (Log,FS) {//MODJSL return function showErrorPos(elem, err) { var mesg, src, pos; if (!err) { close(); return; } var row,col; if (err.isTError) { mesg=err.mesg; src=err.src; pos=err.pos; row=err.row+1; col=err.col+1;...
hoge1e3/tonyuedit
war/js/ide/ErrorPos.js
JavaScript
apache-2.0
1,670
package io.indexr.query.expr.arith; import com.google.common.collect.Lists; import java.util.List; import io.indexr.query.expr.BinaryExpression; import io.indexr.query.expr.Expression; import io.indexr.query.types.DataType; public abstract class BinaryArithmetic extends Expression implements BinaryExpression { ...
shunfei/indexr
indexr-query-opt/src/main/java/io/indexr/query/expr/arith/BinaryArithmetic.java
Java
apache-2.0
1,684
package org.ovirt.engine.ui.common.widget.table.column; import org.ovirt.engine.core.common.businessentities.Disk; import com.google.gwt.user.cellview.client.Column; public class DiskStatusColumn extends Column<Disk, Disk> { public DiskStatusColumn() { super(new DiskStatusCell()); } @Override ...
derekhiggins/ovirt-engine
frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/table/column/DiskStatusColumn.java
Java
apache-2.0
391
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
KiminRyu/ExoPlayer
library/core/src/androidTest/java/com/google/android/exoplayer2/text/tx3g/Tx3gDecoderTest.java
Java
apache-2.0
12,407
<?php namespace Spann\Utils; use Slim\App; use Slim\Http\Environment; use Slim\Http\Headers; use Slim\Http\Request; use Slim\Http\RequestBody; use Slim\Http\Response; use Slim\Http\Uri; class WebTestClient { /** @var \Slim\App */ public $app; /** @var \Slim\Http\Request */ public $request; /*...
spann/slim-test-utils
src/Spann/Utils/WebTestClient.php
PHP
apache-2.0
3,257
"""Support for monitoring OctoPrint sensors.""" from __future__ import annotations from datetime import datetime, timedelta import logging from pyoctoprintapi import OctoprintJobInfo, OctoprintPrinterInfo from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorStateClass, ) f...
home-assistant/home-assistant
homeassistant/components/octoprint/sensor.py
Python
apache-2.0
7,576
/* * Copyright 1999-2017 YaoTrue. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
yaotrue/learn-parent
learn-lang/src/main/java/com/yaotrue/web/command/BaseCommand.java
Java
apache-2.0
950
import jps import json import time class MessageHolder(object): def __init__(self): self._saved_msg = [] def __call__(self, msg): self._saved_msg.append(msg) def get_msg(self): return self._saved_msg def test_multi_pubsub_once(): holder1 = MessageHolder() holder2 = Mes...
OTL/jps
test/test_utils.py
Python
apache-2.0
2,258
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
jior/glaf
workspace/glaf-core/src/main/java/com/glaf/j2cache/CacheException.java
Java
apache-2.0
1,115
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
FlxRobin/presto
presto-main/src/test/java/com/facebook/presto/tpch/TpchIndex.java
Java
apache-2.0
2,063
/* * Copyright 2018-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...
kuujo/onos
core/net/src/test/java/org/onosproject/net/pi/impl/PiMulticastGroupTranslatorImplTest.java
Java
apache-2.0
5,443
package models; /** * This class is for boxing the response sent back to slack by the bot. * @author sabinapokhrel */ public class ResponseToClient { public String status; // Status of the response sent back to slack. It can be either success or fail. public String message; // The message sent back to the slac...
agiledigital/poet-slack-bot
server/app/models/ResponseToClient.java
Java
apache-2.0
455
#region Apache License Version 2.0 /*---------------------------------------------------------------- Copyright 2021 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd. 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 ...
mc7246/WeiXinMPSDK
src/Senparc.Weixin.MP/Senparc.Weixin.MP/Entities/Request/Event/GiftCard/RequestMessageEvent_GiftCard_Pay_Done.cs
C#
apache-2.0
1,889
// snippet-sourcedescription:[ ] // snippet-service:[dynamodb] // snippet-keyword:[dotNET] // snippet-keyword:[Amazon DynamoDB] // snippet-keyword:[Code Sample] // snippet-keyword:[ ] // snippet-sourcetype:[full-example] // snippet-sourcedate:[ ] // snippet-sourceauthor:[AWS] // snippet-start:[dynamodb.dotNET.CodeExamp...
awsdocs/aws-doc-sdk-examples
.dotnet/example_code/DynamoDB/GettingStarted/old/UpdateItem_B/Program.cs
C#
apache-2.0
4,866
package padroesprojeto.criacional.abstractfactorymethod.outroexemplo.model; /** * Created by felansu on 03/06/2015. */ public interface Roupa { void vestir(); }
felansu/calmanddev
src/main/padroesprojeto/criacional/abstractfactorymethod/outroexemplo/model/Roupa.java
Java
apache-2.0
168
/** * Copyright (c) 2011 Jonathan Leibiusky * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, pu...
cl9200/nbase-arc
api/java/src/main/java/com/navercorp/redis/cluster/RedisCluster.java
Java
apache-2.0
23,864
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-chime/src/main/java/com/amazonaws/services/chime/model/transform/GetMediaCapturePipelineRequestProtocolMarshaller.java
Java
apache-2.0
2,781
/** * Copyright (c) 2013, Redsolution LTD. All rights reserved. * * This file is part of Xabber project; you can redistribute it and/or * modify it under the terms of the GNU General Public License, Version 3. * * Xabber is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even ...
bigbugbb/iTracker
app/src/main/java/com/itracker/android/data/roster/RosterContact.java
Java
apache-2.0
3,496
/* Copyright (c) 2016 PaddlePaddle Authors. 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/licenses/LICENSE-2.0 Unless required by applicable law or...
baidu/Paddle
paddle/fluid/operators/transpose_op.cc
C++
apache-2.0
11,179
#region License Header /* * QUANTLER.COM - Quant Fund Development Platform * Quantler Core Trading Engine. Copyright 2018 Quantler B.V. * * 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:...
Quantler/Core
Quantler/Scheduler/DateFunc.cs
C#
apache-2.0
10,177
/* * Copyright 2011-2015 The Trustees of the University of Pennsylvania * * 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 requir...
upenn-libraries/xmlaminar
parallel/src/main/java/edu/upenn/library/xmlaminar/parallel/SplittingXMLFilter.java
Java
apache-2.0
19,266
// <copyright file="BatchModeBuffer.cs" company="ClrCoder project"> // Copyright (c) ClrCoder project. All rights reserved. // Licensed under the Apache 2.0 license. See LICENSE file in the project root for full license information. // </copyright> #if !NETSTANDARD1_0 && !NETSTANDARD1_1 namespace ClrCoder.Threading.C...
dmitriyse/ClrCoder
src/ClrCoder/Threading/Channels/BatchModeBuffer/BatchModeBuffer.cs
C#
apache-2.0
5,205
package bamboo.crawl; import java.util.Date; import java.util.concurrent.TimeUnit; public class RecordStats { private static final Date MAX_TIME = new Date(System.currentTimeMillis() + TimeUnit.DAYS.toMillis(900)); private static final Date MIN_TIME = new Date(631152000000L); private long records; pr...
nla/bamboo
ui/src/bamboo/crawl/RecordStats.java
Java
apache-2.0
1,362
package com.example.nm_gql_go_link_example; import io.flutter.embedding.android.FlutterActivity; public class MainActivity extends FlutterActivity { }
google/note-maps
flutter/nm_gql_go_link/example/android/app/src/main/java/com/example/nm_gql_go_link_example/MainActivity.java
Java
apache-2.0
153
/* * JBoss, Home of Professional Open Source. * Copyright 2014-2020 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 ...
matedo1/pnc
ui/app/common/restclient/restclient.module.js
JavaScript
apache-2.0
1,179
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache/incubator-asterixdb
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-invertedindex/src/main/java/org/apache/hyracks/storage/am/lsm/invertedindex/util/InvertedIndexUtils.java
Java
apache-2.0
19,511
/****************************************************************************** * Copyright 2018 The Apollo Authors. 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 ...
ApolloAuto/apollo
modules/planning/open_space/trajectory_smoother/dual_variable_warm_start_slack_osqp_interface.cc
C++
apache-2.0
17,011
package info.bati11.wearprofile; import android.app.ActionBar; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.MenuItem; public class AboutActivity extends Activity { public static Intent createIntent(Context context) { ...
bati11/wear-profile
mobile/src/main/java/info/bati11/wearprofile/AboutActivity.java
Java
apache-2.0
964