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
/* * 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 ...
jmuehlner/incubator-guacamole-client
guacamole/src/main/webapp/app/form/services/formService.js
JavaScript
apache-2.0
10,923
package com.cell.user.web.shrio.filter.authc; import javax.servlet.ServletRequest; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.web.filter.authc.FormAuthenticationFilter; import org.springframework.beans.factory.annotation.Autowired; imp...
TonyYang9527/Magic-Web
src/main/java/com/cell/user/web/shrio/filter/authc/CustomFormAuthenticationFilter.java
Java
apache-2.0
1,780
/* Copyright 2014 Google Inc. 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 ...
CaptTofu/kubernetes
pkg/proxy/proxier.go
GO
apache-2.0
4,258
#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/St...
StockSharp/StockSharp
Algo/Candles/Candle.cs
C#
apache-2.0
13,470
# -*- coding: utf-8 -*- # # Copyright (c) 2013 Clione Software # Copyright (c) 2010-2013 Cidadania S. Coop. Galega # # 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.or...
cidadania/e-cidadania
src/core/spaces/models.py
Python
apache-2.0
8,796
# Copyright (C) 2015 Yahoo! Inc. 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...
openstack/horizon
openstack_dashboard/dashboards/identity/identity_providers/protocols/tables.py
Python
apache-2.0
2,469
package com.ua.hower.house; /** * Created by poliveira on 27/10/2014. */ public interface NavigationDrawerCallbacks { void onNavigationDrawerItemSelected(int position); }
PrudhviRaju123/Tour
app/src/main/java/com/ua/hower/house/NavigationDrawerCallbacks.java
Java
apache-2.0
178
/* * Copyright 2015-2020 OpenCB * * 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 ...
j-coll/opencga
opencga-core/src/main/java/org/opencb/opencga/core/models/study/VariableSetCreateParams.java
Java
apache-2.0
3,818
# Copyright 2014 OpenStack 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 applicable law ...
zhhf/charging
charging/db/migration/alembic_migrations/versions/19180cf98af6_nsx_gw_devices.py
Python
apache-2.0
4,178
package es.ucm.fdi.iw.controller; import java.security.Principal; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import javax.servlet.http.HttpSession; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework...
lorenpaz/CardEx
src/main/java/es/ucm/fdi/iw/controller/HomeController.java
Java
apache-2.0
4,005
package org.apache.hadoop.mapred.spatial; import java.io.IOException; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.RecordWriter; import org.apache.hadoop.mapred.Reporter; import org....
aseldawy/spatialhadoop
src/mapred/org/apache/hadoop/mapred/spatial/RTreeGridRecordWriter.java
Java
apache-2.0
955
/******************************************************************************* * Copyright 2019 Tremolo Security, 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://...
TremoloSecurity/OpenUnison
unison/unison-sdk/src/main/java/com/tremolosecurity/proxy/ExternalSessionExpires.java
Java
apache-2.0
1,124
from datetime import datetime import random import string from bson import ObjectId class DuplicateUserException(Exception): def __init__(self, message='User name/email already exits'): Exception.__init__(self, message) pass class UserServiceException(Exception): def __init__(self, message=None...
cackharot/geosnap-server
src/geosnap/service/UserService.py
Python
apache-2.0
2,611
package org.apache.lucene.index; /** * Copyright 2004 The Apache Software 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...
lpxz/grail-lucene358684
src/java/org/apache/lucene/index/SegmentReader.java
Java
apache-2.0
18,645
from abc import ABCMeta, abstractmethod, abstractproperty from contextlib import contextmanager from functools import wraps import gzip from inspect import getargspec from itertools import ( combinations, count, product, ) import operator import os from os.path import abspath, dirname, join, realpath import...
bartosh/zipline
zipline/testing/core.py
Python
apache-2.0
47,174
/* Copyright (C) 2013-2014 Computer Sciences 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 ap...
ezbake/ezmongo
ezmongo-java-driver/src/main/org/bson/util/ClassAncestry.java
Java
apache-2.0
3,530
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
rdblue/incubator-nifi
commons/data-provenance-utils/src/main/java/org/apache/nifi/provenance/lineage/FlowFileNode.java
Java
apache-2.0
2,335
var less, tree; if (typeof environment === "object" && ({}).toString.call(environment) === "[object Environment]") { // Rhino // Details on how to detect Rhino: https://github.com/ringo/ringojs/issues/88 if (typeof(window) === 'undefined') { less = {} } else { less = wind...
qvuilliot/less.js
lib/less/parser.js
JavaScript
apache-2.0
49,427
package zoara.sfs2x.extension; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Arrays; import zoara.sfs2x.extension.simulation.World; import zoara.sfs2x.extension.utils.RoomHelper; import com.smartfoxserver.bitswarm.sessions.ISe...
xiehan/zoara-server
src/zoara/sfs2x/extension/LoginEventHandler.java
Java
apache-2.0
4,312
package esilatest /* Summary of kills done by the given corporation against enemy factions */ type GetCorporationsCorporationIdFwStatsKills struct { /* Last week's total number of kills by members of the given corporation against enemy factions */ LastWeek int32 `json:"last_week,omitempty"` /* Total number of k...
antihax/mock-esi
latest/go/model_get_corporations_corporation_id_fw_stats_kills.go
GO
apache-2.0
606
using FinesSE.Contracts.Infrastructure; using FinesSE.Contracts.Invokable; using FinesSE.Core.WebDriver; namespace FinesSE.Outil.Actions { public class Focus : IVoidAction { public IExecutionContext Context { get; set; } [EntryPoint] public void Invoke(LocatedElements elements) ...
MirekVales/FinesSE
FinesSE/FinesSE.Outil/Actions/Focus.cs
C#
apache-2.0
455
import socket import re from xii import error, util # sample validator # keys = Dict( # [ # RequiredKey("foo", String(), desc="A string to manipulate something"), # Key("bar", String(), desc="something usefull") # ], # desc="Implement this stuff as you want" # ) class Validator(): d...
xii/xii
src/xii/validator.py
Python
apache-2.0
6,612
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iotwireless/model/MulticastGroup.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { na...
aws/aws-sdk-cpp
aws-cpp-sdk-iotwireless/source/model/MulticastGroup.cpp
C++
apache-2.0
1,434
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; namespace webApp { public class Startup { // This method gets called by the runtime. Use this method to add services to the container. // For ...
Bigsby/NetCore
src/webApp/Startup.cs
C#
apache-2.0
1,334
# Copyright 2018 Google LLC. 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 ag...
google/ctfscoreboard
scoreboard/mail.py
Python
apache-2.0
4,180
package org.mcxa.vortaro; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addit...
ianmcxa/vortaro
app/src/test/java/org/mcxa/vortaro/ExampleUnitTest.java
Java
apache-2.0
394
/** * This looks at static needs parameter in components and waits for the promise to be fullfilled * It is used to make sure server side rendered pages wait for APIs to resolve before * returning res.end() * * As seen in: https://github.com/caljrimmer/isomorphic-redux-app */ export function fetchComponentDataBe...
Poniverse/Poniverse.net
app/api/fetchComponentDataBeforeRender.js
JavaScript
apache-2.0
710
<?php slot('op_sidemenu'); ?> <?php $options = array( 'object' => $band, ); op_include_parts('memberImageBox', 'bandImageBox', $options); ?> <?php $options = array( 'title' => __('%band% Members', array('%band%' => $op_term['band']->titleize())), 'list' => $members, 'crownIds' => array($bandAdmin->getId()), ...
sonicdna/sonicdna-dev
plugins/opBandPlugin/apps/pc_frontend/modules/band/templates/homeSuccess.php
PHP
apache-2.0
4,421
/* eslint-disable no-underscore-dangle, no-param-reassign */ import d3 from 'd3'; require('./sequences.css'); // Modified from http://bl.ocks.org/kerryrodden/7090426 function sunburstVis(slice) { const container = d3.select(slice.selector); const render = function () { // vars with shared scope within this ...
jeromecn/caravel_viz_full
caravel/assets/visualizations/sequences.js
JavaScript
apache-2.0
11,085
package org.plantuml.idea.action; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.ToggleAction; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.fileEditor.FileEditorManager; import com.intellij.openapi.project.DumbAware; import com.intellij.openap...
esteinberg/plantuml4idea
src/org/plantuml/idea/action/ImageHighlightToggleAction.java
Java
apache-2.0
1,200
/* * Copyright (C) 2012-2014 Open Source Robotics 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...
jonbinney/gazebo_ros_wrapper
plugins/SkidSteerDrivePlugin.cc
C++
apache-2.0
4,572
package liquibase.sqlgenerator.core; import liquibase.change.ColumnConfig; import liquibase.database.ObjectQuotingStrategy; import liquibase.database.core.OracleDatabase; import liquibase.sql.Sql; import liquibase.statement.DatabaseFunction; import liquibase.statement.SequenceCurrentValueFunction; import liquibase.sta...
liquibase/liquibase
liquibase-core/src/test/java/liquibase/sqlgenerator/core/InsertOrUpdateGeneratorOracleTest.java
Java
apache-2.0
7,276
/* * Copyright 2005-2011 Sixth and Red River Software, Bas Leijdekkers * * 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 ...
consulo/consulo-metrics
src/com/sixrr/metrics/ui/dialogs/ExplanationDialog.java
Java
apache-2.0
4,055
// Copyright 2015 PingCAP, 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 i...
coocood/tidb
expression/builtin_test.go
GO
apache-2.0
5,387
//Funcion para insertar un trozo de codigo HTML function loadXMLDoc(url) { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatech...
CarlosIribarren/Ejemplos-Examples
JavaScript/Nativo/Algunos ejemplos/02 Insertar codigo HTML/funcionJS.js
JavaScript
apache-2.0
535
package Init.Enum; import Generics.Generator; import java.util.EnumMap; import java.util.Iterator; import static Init.Enum.Input.*; import static Init.Print.print; /** * Created by Defias on 2020/07. * Description: 使用enum的状态机 * */ public class TestEnumStates { public static void main(String[] args) { ...
gdefias/JavaDemo
InitJava/base/src/main/java/Init/Enum/TestEnumStates.java
Java
apache-2.0
3,956
#include <QtWidgets> #include <math.h> #include "starrating.h" const int PaintingScaleFactor = 20; StarRating::StarRating(int starCount, int maxStarCount) { myStarCount = starCount; myMaxStarCount = maxStarCount; starPolygon << QPointF(1.0, 0.5); for (int i = 1; i < 5; ++i) { starPolygon ...
luchenqun/StarDelegate
starrating.cpp
C++
apache-2.0
1,586
package org.marsik.bugautomation.rest; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; import java.util.Collections; import java.util.HashSet; import java.util.Set; @ApplicationPath("/") public class RestApplication extends Application { @Override public Set<Class<?>> getClasses() { ...
MarSik/bugautomation
src/main/java/org/marsik/bugautomation/rest/RestApplication.java
Java
apache-2.0
495
/** * <copyright> * </copyright> * * $Id$ */ package net.opengis.gml.provider; import java.util.Collection; import java.util.List; import net.opengis.gml.GmlFactory; import net.opengis.gml.GmlPackage; import net.opengis.gml.TopoVolumeType; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse...
markus1978/citygml4emf
de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/TopoVolumeTypeItemProvider.java
Java
apache-2.0
6,438
/* * Copyright (C) 2014 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 applic...
android/android-test
espresso/core/javatests/androidx/test/espresso/action/GeneralLocationTest.java
Java
apache-2.0
4,547
# # Copyright 2015-2019, Institute for Systems Biology # # 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 ...
isb-cgc/ISB-CGC-Webapp
bq_data_access/v2/seqpeek/seqpeek_view.py
Python
apache-2.0
7,709
/* * Copyright 2014 The Netty Project * * The Netty Project licenses this file to you 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless...
doom369/netty
transport-native-unix-common/src/main/java/io/netty/channel/unix/Unix.java
Java
apache-2.0
3,285
import numpy as np import xgboost as xgb import pytest try: import shap except ImportError: shap = None pass pytestmark = pytest.mark.skipif(shap is None, reason="Requires shap package") # Check integration is not broken from xgboost side # Changes in binary format may cause problems def test_with_shap(...
dmlc/xgboost
tests/python/test_with_shap.py
Python
apache-2.0
817
/* * 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 distributed under t...
googleapis/google-api-java-client-services
clients/google-api-services-dialogflow/v3/1.31.0/com/google/api/services/dialogflow/v3/model/GoogleCloudDialogflowCxV3ListAgentsResponse.java
Java
apache-2.0
3,689
package com.deleidos.framework.monitoring.response; public class InfoResponse { public static final String PATH = "/proxy/${APP_ID}/ws/v2/stram/info"; public static class Stats { public int allocatedContainers; public int plannedContainers; public int totalVCoresAllocated; public int vcoresRequired; pu...
deleidos/de-pipeline-tool
de-framework-monitoring/src/main/java/com/deleidos/framework/monitoring/response/InfoResponse.java
Java
apache-2.0
1,247
using EnsureThat; using LibGit2Sharp; using System; using System.Collections.Generic; using System.Linq; namespace GitStats.Console { internal class CouplingAnalyser : GitAnalyser { //What files are always checked in with each other? public void Analyse(string gitPath) { va...
rbanks54/GitStats
GitStats.Console/CouplingAnalyser.cs
C#
apache-2.0
5,712
package uk.ac.manchester.cs.openphacts.queryexpander.queryLoader; import java.util.List; import java.util.Set; import org.bridgedb.uri.tools.GraphResolver; import org.bridgedb.utils.Reporter; import static org.junit.Assert.*; import org.junit.Test; import uk.ac.manchester.cs.openphacts.queryexpander.QueryUtils; import...
openphacts/queryExpander
query.expander.implementation/test/uk/ac/manchester/cs/openphacts/queryexpander/queryLoader/OpsReplacemeentTest.java
Java
apache-2.0
1,764
/* * Copyright 2000-2016 JetBrains s.r.o. * * 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 agre...
youdonghai/intellij-community
java/java-impl/src/com/intellij/codeInspection/util/IteratorDeclaration.java
Java
apache-2.0
7,121
package com.xidian.yetwish.reading.ui; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import com.xidian.yetwish.reading.R; import com.xidian.yetwish.reading.framework.utils.SharedPreferencesUtils; import com.xidian.yetwish...
yetwish/Reading
reading/src/main/java/com/xidian/yetwish/reading/ui/SplashActivity.java
Java
apache-2.0
1,907
/* Web Polygraph http://www.web-polygraph.org/ * Copyright 2003-2014 The Measurement Factory * Licensed under the Apache License, Version 2.0 */ #include "base/polygraph.h" #include "xstd/h/iostream.h" #include "xstd/h/string.h" #include "xstd/CpuAffinitySet.h" static std::ostream &operator <<(std::ostream &...
albertok/web-polygraph
src/xstd/CpuAffinitySet.cc
C++
apache-2.0
2,439
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_5188 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_5188.java
Java
apache-2.0
151
/* * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * 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 ap...
stdlib-js/stdlib
lib/node_modules/@stdlib/constants/float64/max-safe-nth-fibonacci/docs/types/test.ts
TypeScript
apache-2.0
832
/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * 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...
clive-jevons/joynr
javascript/libjoynr-js/src/main/js/joynr/messaging/inprocess/InProcessMessagingSkeleton.js
JavaScript
apache-2.0
1,684
/* * Copyright 2011 the original author or authors. * * 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 ap...
krasserm/ipf
platform-camel/core/src/main/java/org/openehealth/ipf/platform/camel/core/management/ProcessorManagementNamingStrategy.java
Java
apache-2.0
2,034
package com.buddycloud.utils; import android.app.Activity; import android.content.Context; import android.view.inputmethod.InputMethodManager; public class InputUtils { public static void hideKeyboard(Activity activity) { InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INP...
buddycloud/buddycloud-android
src/com/buddycloud/utils/InputUtils.java
Java
apache-2.0
620
/** * Cached RegExp object for a global search of / * @type {RegExp} */ const encodedSlashRegExp = new RegExp(encodeURIComponent('/'), 'g'); /** * Replaces any occurrence of / with the encoded equivalent * @param {string} urn * @return {string} */ export const encodeForwardSlash = (urn: string): string => urn.re...
mars-lan/WhereHows
datahub-web/@datahub/utils/addon/validators/urn.ts
TypeScript
apache-2.0
1,847
import pathlib import importlib import sys __all__ = ['sample', 'sampleTxt', 'sampleBin'] this = pathlib.Path(__file__) datadir = this.parent.parent / 'data' loader = importlib.machinery.SourceFileLoader('sample', str(datadir / 'sample.py')) sample = loader.load_module() sampleTxt = datadir / 'sample.txt' sampleBin ...
viridia/coda
test/python/finddata.py
Python
apache-2.0
345
/******************************************************************************* * # Copyright 2015 InfinitiesSoft Solutions 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 ...
infinitiessoft/keystone4j
keystone4j-core/src/main/java/com/infinities/keystone4j/contrib/revoke/driver/RevokeDriver.java
Java
apache-2.0
1,112
package com.flying.promotion.javatuning.future.jdk; import java.util.concurrent.Callable; /** * Created by Joseph on 7/25/2016. */ public class RealData implements Callable<String>{ private String para; public RealData(String para){ this.para=para; } @Override public String call() throws...
wangshijun101/JavaSenior
CoreJava/src/main/java/com/flying/promotion/javatuning/future/jdk/RealData.java
Java
apache-2.0
610
/** * 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 distributed under ...
bric3/assertj-core
src/main/java/org/assertj/core/util/introspection/PropertySupport.java
Java
apache-2.0
8,633
package com.ciandt.techgallery.servlets; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @SuppressWarnings("serial") public class ViewTech extends HttpServlet { @Override public void doGet(HttpServlet...
tuliobraga/tech-gallery
src/main/java/com/ciandt/techgallery/servlets/ViewTech.java
Java
apache-2.0
587
/* * Copyright 2012-2013 inBloom, Inc. and its affiliates. * * 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...
inbloom/secure-data-service
tools/data-tools/src/org/slc/sli/test/edfi/entities/meta/GradeBookEntryMeta.java
Java
apache-2.0
2,017
using Motomatic.Source.Automating; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text.RegularExpressions; namespace Motomatic.Source.Storage { class Script { const string AHK_EXPRESSION = "([A-z0-9]*)[:]{0,}=(.*)"; string _Code; publ...
TheCharmingCthulhu/CSharp
Projects/Windows Forms/Motomatic/Motomatic/Source/Storage/Script.cs
C#
apache-2.0
1,512
// Copyright 2017 Google 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...
google/clif
clif/python/instance_test.cc
C++
apache-2.0
3,338
var http=require('http'); var url = require('url') var httpget = function ( url ) { return new Promise(( resolve,reject)=>{ http.get( url ,function(req,res){ var html=''; req.on('data',function(data){ html+=data; }); req.on('end',functi...
17golang/nodejsstudy
httpclient.js
JavaScript
apache-2.0
2,282
import {rnaPlot} from './rnaplot.js'; export function rnaTreemapChart() { var width = 550; var height = 400; function rnaTreemapNode(selection) { // create a background rectangle for each RNA structure selection.each(function(d) { d3.select(this) .attr('transform', ...
pkerpedjiev/fornac
app/scripts/rnatreemap.js
JavaScript
apache-2.0
2,511
package savetheenvironment.profiles.mocking; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.core.env.MapPropertySource; import org.springframework.core.env.StandardEnvironment; import java.util.HashMap...
joshlong/adaptive-spring
core/src/test/java/savetheenvironment/profiles/mocking/Main.java
Java
apache-2.0
2,787
package rmi; import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; import java.rmi.registry.Registry; import java.rmi.server.UnicastRemoteObject; public class MyRemoteClass implements MyRemoteInterface { public String[] sayYourName(String name) throws RemoteException { System.err.pri...
myrosicky/projects
weibo/src/main/java/rmi/MyRemoteClass.java
Java
apache-2.0
932
/* * Copyright 2003-2005 The Apache Software 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 ap...
axeolotl/wsrp4cxf
persistence-xml/src/java/org/apache/wsrp4j/persistence/xml/PersistentInformationXML.java
Java
apache-2.0
3,611
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
equella/Equella
Source/Plugins/Core/com.equella.core/src/com/tle/web/copyright/AbstractCopyrightFilestoreFilter.java
Java
apache-2.0
4,308
# Copyright (C) 2014 Universidad Politecnica de Madrid # # 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 la...
ging/keystone
keystone/contrib/oauth2/validator.py
Python
apache-2.0
16,189
/****Developed by Chanisco Tromp*****/ using UnityEngine; using System.Collections; public class Arrow : MonoBehaviour { // Update is called once per frame float speed; void Update () { if(ArrowSpawn.i < 40){ speed = 5 * Time.deltaTime; }else{ speed = 7 * Time.deltaTime; } transform.Translate(speed,0...
Chanisco/GameJam_WarmingUp
Warmyparmy/Assets/Scripts/Arrow.cs
C#
apache-2.0
333
/* * Copyright 2006-2017 the original author or authors. * * 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...
christophd/citrus
core/citrus-api/src/main/java/com/consol/citrus/validation/DefaultEmptyMessageValidator.java
Java
apache-2.0
2,319
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
jatin9896/incubator-carbondata
core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java
Java
apache-2.0
23,372
from zope.i18nmessageid import MessageFactory PloneMessageFactory = MessageFactory('plone') from Products.CMFCore.permissions import setDefaultRoles setDefaultRoles('signature.portlets.gdsignature: Add GroupDocs Signature portlet', ('Manager', 'Site Administrator', 'Owner',))
liosha2007/plone-groupdocs-signature-source
src/groupdocs/signature/portlets/__init__.py
Python
apache-2.0
294
package com.michaelfotiadis.crossyscore.ui.components.addplayer.avatar; import android.view.View; import android.widget.ImageView; import com.michaelfotiadis.crossyscore.R; import com.michaelfotiadis.crossyscore.ui.core.common.viewholder.BaseViewHolder; import butterknife.Bind; public final class ListAvatarViewHol...
MikeFot/android-crossy-score
app/src/main/java/com/michaelfotiadis/crossyscore/ui/components/addplayer/avatar/ListAvatarViewHolder.java
Java
apache-2.0
629
# -*- coding: utf-8 -*- # # File: src/webframe/management/commands/pref.py # Date: 2020-04-22 21:35 # Author: Kenson Man <kenson@kenson.idv.hk> # Desc: Import / Create / Update / Delete preference # from django.conf import settings from django.contrib.auth import get_user_model from django.core.management.base import B...
kensonman/webframe
management/commands/pref.py
Python
apache-2.0
18,742
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="HtmlFeatureFormatter.cs" company="PicklesDoc"> // Copyright 2011 Jeffrey Cameron // Copyright 2012-present PicklesDoc team and community contributors // // // Licensed under ...
ludwigjossieaux/pickles
src/Pickles/Pickles/DocumentationBuilders/HTML/HtmlFeatureFormatter.cs
C#
apache-2.0
4,200
/* * Copyright 2016 Crown Copyright * * 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...
gchq/stroom
stroom-core-client/src/main/java/stroom/util/client/JSONUtil.java
Java
apache-2.0
2,742
package com.nbsp.materialfilepicker.ui; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx...
nbsp-team/MaterialFilePicker
library/src/main/java/com/nbsp/materialfilepicker/ui/DirectoryFragment.java
Java
apache-2.0
3,395
/* * Copyright 2009 Aleksandar Seovic * * 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 agre...
aseovic/coherence-tools
core/src/main/java/com/seovic/core/factory/LinkedHashMapFactory.java
Java
apache-2.0
1,163
/* * Copyright 2011 Vasily Shiyan * * 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...
xicmiah/see
src/main/java/see/evaluation/processors/AggregatingProcessor.java
Java
apache-2.0
1,669
var Canvas = require('canvas'); function generateCode() { return ('' + Math.random()).substr(3, 6); } function generateImage(req, res, params) { params.color = params.color || 'rgb(0, 0, 0)'; params.background = params.background || 'rgb(255, 255, 255)'; params.width = params.width || 250; params.height = p...
klesh/kaptcha
kaptcha.js
JavaScript
apache-2.0
1,961
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace ChurchWebsite.Presentation.Models.AccountViewModels { public class LoginViewModel { [Required] [EmailAddress] public string Email { ge...
Yodilicious/ChurchWebsite
src/ChurchWebsite/ChurchWebsite.Presentation/Models/AccountViewModels/LoginViewModel.cs
C#
apache-2.0
530
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using Next.Accounts_Client.App...
maximgorbatyuk/Next.Accounts-Server
Next.Accounts Client/Form1.cs
C#
apache-2.0
13,016
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions...
aspnet/AspNetCore
src/Mvc/test/WebSites/RazorPagesWebSite/StartupWithBasePath.cs
C#
apache-2.0
1,980
package Armadillo.Communication.Impl.Distributed; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import org.joda.time.DateTime; import org.joda.time.Minutes; import org.joda.time.Seconds...
camachohoracio/Armadillo.Core
Communication/src/main/java/Armadillo/Communication/Impl/Distributed/DistControllerToWorkerHeartBeat.java
Java
apache-2.0
15,386
# -*- coding: UTF-8 -*- import hashlib import base64 import datetime import urllib2 import json class TemplateSMS: account_sid = '' account_token = '' app_id = '' server_ip = '' server_port = '' soft_version = '' timestamp = '' def set_account(self, account_sid, token): self.a...
davidvon/pipa-pay-server
admin/sms/sdk.py
Python
apache-2.0
2,956
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2022 DBeaver Corp and others * * 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/LICE...
dbeaver/dbeaver
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/navigator/DBNNodeExtendable.java
Java
apache-2.0
987
package com.faravy.icare; import java.util.ArrayList; import android.app.ActionBar; import android.app.Activity; import android.content.ContentProviderOperation; import android.content.Intent; import android.content.OperationApplicationException; import android.graphics.Color; import android.graphics.drawable.ColorDr...
FTFL02-ANDROID/Faravy
iCareFaravy/src/com/faravy/icare/ViewDoctorActivity.java
Java
apache-2.0
5,472
(function($, utils, $HELPER){ var $app = window.vgrome; $app.controller('CalendarCtrl', ['$scope', '$compile', 'lang', 'apiProvider', '$controller', function ($scope, $compile, $lang, $apiProvider, $controller) { $.extend(this, $controller('EntityCtrl', {$scope: $scope})); $sco...
vijay-developer/Chrome-Extension
ui/app/controllers/calendar.js
JavaScript
apache-2.0
10,975
using UnityEngine; public class MusicByButton : MonoBehaviour { public void ShowComposers() { PopupManager.Instance.PopUp("Music from:\n" + "soundcloud.com/laserost,\nsyncopika,\njlwinn8videos on YouTube,\nmarksparling.com", "Ok"); } }
ZsemberiDaniel/TicTacToe
Assets/Scripts/GUI/MusicByButton.cs
C#
apache-2.0
267
// Copyright 2012 Google Inc. All Rights Reserved. /** * @fileoverview A class representing operations on binary expressions. */ goog.provide('wgxpath.BinaryExpr'); goog.require('wgxpath.DataType'); goog.require('wgxpath.Expr'); goog.require('wgxpath.Node'); /** * Constructor for BinaryExpr. * * @param {!wg...
vinay-qa/vinayit-android-server-apk
third_party/js/wgxpath/binaryExpr.js
JavaScript
apache-2.0
10,027
# encoding: UTF-8 # # Cookbook Name:: postfix-dovecot # Attributes:: vmail # Author:: Xabier de Zuazo (<xabier@onddo.com>) # Copyright:: Copyright (c) 2013 Onddo Labs, SL. (www.onddo.com) # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this f...
NoMan2000/chefRecipes
postfix-dovecot/attributes/vmail.rb
Ruby
apache-2.0
1,242
/* * Copyright (C) 2007-2008 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...
jiro-aqua/JotaTextEditor
app/src/main/java/jp/sblo/pandora/jota/text/EditableInputConnection.java
Java
apache-2.0
4,042
package cz.znj.kvr.sw.exp.java.netty.netty; /* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you 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....
kvr000/zbynek-java-exp
netty-exp/netty5-exp/netty5-datagram-listener-exp/src/main/java/cz/znj/kvr/sw/exp/java/netty/netty/MyEmbeddedEventLoop.java
Java
apache-2.0
7,288
// Copyright 2017 Pilosa Corp. // // 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...
travisturner/pilosa
cmd/import.go
GO
apache-2.0
3,454
# python 3 # tensorflow 2.0 from __future__ import print_function, division, absolute_import import os import argparse import random import numpy as np import datetime # from numpy import linalg import os.path as osp import sys cur_dir = osp.dirname(osp.abspath(__file__)) sys.path.insert(1, osp.join(cur_dir, '.')) fr...
wangg12/IRLS_tf_pytorch
src/IRLS_tf_v2.py
Python
apache-2.0
6,061
#!/usr/bin/env ruby app = "./CotEditor.app" unless Dir.exist?(app) then puts "Dir not found : #{app}" exit end unless system "spctl -a -v #{app}" then puts "Code sign error : #{app}" exit end version = `/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" #{app}/Contents/Info.plist`.chomp puts "Version #{version...
eric-seekas/CotEditor
release/1_create_dmg.rb
Ruby
apache-2.0
836
(function() { const MAX_LINE_CHARS = 4000; const RE_WS = /^\s*$/; this.search_panel = function(search, type, handler) { return ( [ ['div', this['advanced_' + type + '_search'](search), 'class', 'advanced-search-controls'], ['div', ['div', 'class', 'panel-search mono...
operasoftware/dragonfly
src/searches/templates.js
JavaScript
apache-2.0
9,442