repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
pypa/warehouse | warehouse/utils/db/windowed_query.py | 2050 | # 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 the Li... | apache-2.0 |
tomsnail/snail-dev-console | src/main/java/com/thinkgem/jeesite/modules/act/service/cmd/CreateAndTakeTransitionCmd.java | 1755 | package com.thinkgem.jeesite.modules.act.service.cmd;
import java.util.Map;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.interceptor.Command;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.persistence.entity.ExecutionEntity;
impo... | apache-2.0 |
jmapper-framework/jmapper-test | JMapper Test/src/test/java/com/googlecode/jmapper/integrationtest/others/github/bean/EnumDest.java | 218 | package com.googlecode.jmapper.integrationtest.others.github.bean;
public class EnumDest {
private Test test;
public Test getTest() {
return test;
}
public void setTest(Test test) {
this.test = test;
}
}
| apache-2.0 |
rwth-acis/REST-OCD-Services | rest_ocd_services/src/test/java/i5/las2peer/services/ocd/cooperation/data/table/TableTest.java | 648 | package i5.las2peer.services.ocd.cooperation.data.table;
import org.junit.Test;
import i5.las2peer.services.ocd.cooperation.data.table.Table;
import i5.las2peer.services.ocd.cooperation.data.table.TableRow;
public class TableTest {
@Test
public void printTableTest() {
Table table = new Table();
TableRo... | apache-2.0 |
israelz11/municipio | WebContent/include/js/toolSam.js | 78465 | var centro = "text-align:center";
var derecha = "text-align:right";
var izquierda = "text-align:left";
var row_color = "";
function mostrarOpcionPDF(cve_op){//Muestra la opcion de reportes desde el listado de ordenes de pago...
swal({
title: 'Opciones de Reporte OP #'+cve_op,
type: 'quest... | apache-2.0 |
PetrGasparik/midpoint | repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/TaskQuartzImpl.java | 108866 | /*
* Copyright (c) 2010-2016 Evolveum
*
* 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... | apache-2.0 |
opennetworkinglab/spring-open | src/main/java/net/floodlightcontroller/threadpool/IThreadPoolService.java | 512 | package net.floodlightcontroller.threadpool;
import java.util.concurrent.ScheduledExecutorService;
import net.floodlightcontroller.core.module.IFloodlightService;
public interface IThreadPoolService extends IFloodlightService {
/**
* Get the master scheduled thread pool executor maintained by the
* Thr... | apache-2.0 |
Fairly/opencor | src/plugins/miscellaneous/Core/src/busysupportwidget.cpp | 4112 | /*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file to you under
t... | apache-2.0 |
0x0mar/arachni | spec/arachni/component/manager_spec.rb | 17896 | require 'spec_helper'
describe Arachni::Component::Manager do
before( :all ) do
@opts = Arachni::Options.instance
@lib = @opts.dir['plugins']
@namespace = Arachni::Plugins
@components = Arachni::Component::Manager.new( @lib, @namespace )
end
after( :each ) { @components.cle... | apache-2.0 |
schmittjoh/php-stubs | res/php/idn/functions/idn-to-ascii.php | 259 | <?php
/**
* Convert UTF-8 encoded domain name to ASCII
*
* @phpstub
*
* @param string $utf8_domain
* @param int $errorcode
*
* @return string The ACE encoded version of the domain name .
*/
function idn_to_ascii($utf8_domain, &$errorcode = NULL)
{
} | apache-2.0 |
stdlib-js/stdlib | lib/node_modules/@stdlib/constants/float64/pi/examples/index.js | 709 | /**
* @license Apache-2.0
*
* Copyright (c) 2018 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 a... | apache-2.0 |
JLUIT/ITJob | src/com/job/activity/CollegeChooseActivity.java | 4258 | package com.job.activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.io.Buffe... | apache-2.0 |
cping/LGame | Java/Loon-Lite(PureJava)/Loon-Lite-Core/src/loon/EmptyGame.java | 3854 | /**
* Copyright 2008 - 2015 The Loon Game Engine 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 appl... | apache-2.0 |
brendandouglas/intellij | java/src/com/google/idea/blaze/java/wizard2/BlazeProjectImportBuilder.java | 2678 | /*
* Copyright 2016 The Bazel 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... | apache-2.0 |
openstack-atlas/atlas-lb | core-persistence/src/test/java/org/openstack/atlas/service/domain/service/VirtualIpServiceITest.java | 1972 | package org.openstack.atlas.service.domain.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import org.openstack.atlas.datamodel.CoreLoadBalancerStatus;
import org.openstack.atlas.... | apache-2.0 |
McLeodMoores/starling | projects/financial/src/main/java/com/opengamma/financial/property/UnitProperties.java | 947 | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.property;
import com.opengamma.engine.value.ValuePropertyNames;
/**
* Defines property names that correspond to "units" of the value they are descr... | apache-2.0 |
ox-it/talks.ox | talks/old_talks/views.py | 1211 | from __future__ import absolute_import
import logging
import requests
from django.conf import settings
from django.urls import reverse
from django.http import HttpResponse, HttpResponseRedirect, HttpResponsePermanentRedirect, Http404
from django.shortcuts import render
from talks.old_talks.models import OldTalk, OldS... | apache-2.0 |
jenniferzheng/gobblin | gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/test/java/org/apache/gobblin/service/FlowConfigTest.java | 11995 | /*
* 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 ... | apache-2.0 |
jefking/King.Route | King.Route/RouteAliasAttribute.cs | 1078 | namespace King.Route
{
using System;
/// <summary>
/// Attribute based routing
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class RouteAliasAttribute : Attribute
{
#region Members
/// <summa... | apache-2.0 |
forcedotcom/aura | aura-impl/src/main/resources/aura/attribute/AttributeSet.js | 18061 | /*
* Copyright (C) 2013 salesforce.com, 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 ... | apache-2.0 |
jasarsoft/ipcs-primjeri | simple text editor/SimpleTextEditor/Properties/Settings.Designer.cs | 1073 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | apache-2.0 |
Pathfinder-Fr/YAFNET | yafsrc/YetAnotherForum.NET/Pages/admin/editlanguage.ascx.cs | 19665 | /* Yet Another Forum.NET
* Copyright (C) 2003-2005 Bjørnar Henden
* Copyright (C) 2006-2013 Jaben Cargman
* Copyright (C) 2014-2020 Ingo Herbote
* https://www.yetanotherforum.net/
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* dis... | apache-2.0 |
aml-development/ozp-backend | ozpcenter/api/listing/model_access_es.py | 14763 | """
Listing Model Access For Elasticsearch
Code was developed to work with Elasticsearch 2.4.*
TODO: Refactor Elasticsearch Code
"""
import json
import logging
from django.conf import settings
from django.http.request import QueryDict
from rest_framework import serializers
from ozpcenter.api.listing.elasticsearch_ut... | apache-2.0 |
vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structL2Key.js | 641 | var structL2Key =
[
[ "dlDst", "structL2Key.html#ae1cdfc72687279c1c8218a20d6cd233f", null ],
[ "dlSrc", "structL2Key.html#ab119d53d14196c197bce5e4d7c2a7a98", null ],
[ "dlType", "structL2Key.html#a4e93d93f429dd30cc547b6f41b879efa", null ],
[ "inPort", "structL2Key.html#a0fd29f40d5dad469aa5080135013bbd1"... | apache-2.0 |
VishwasShashidhar/SymphonyElectron | src/app/window-actions.ts | 18610 | import {
BrowserWindow,
dialog,
PermissionRequestHandlerHandlerDetails,
systemPreferences,
} from 'electron';
import { apiName, IBoundsChange, KeyCodes } from '../common/api-interface';
import { isLinux, isMac, isWindowsOS } from '../common/env';
import { i18n } from '../common/i18n';
import { logger } from '.... | apache-2.0 |
Love667767/VideoOnDemand | framework/src/main/java/com/framework/view/tagview/TagGroup.java | 39650 | package com.framework.view.tagview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathEffect;
import andro... | apache-2.0 |
azachar/eclipse-plugin-cleaner | src/main/java/eu/chocolatejar/eclipse/plugin/cleaner/util/DropinsFilter.java | 1522 | /*******************************************************************************
* Copyright 2014 Chocolate Jar, Andrej Zachar
*
* 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:... | apache-2.0 |
gfawcett22/EnterprisePlanner | App/src/app/table/thead/rows/thead-filters-row.component.ts | 992 | import { FilterObject } from '../../lib/interfaces/FilterObject';
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { Grid } from '../../lib/grid';
import { Column } from "../../lib/column";
@Component({
selector: '[thead-filters-row]',
template: `
<th *ng... | apache-2.0 |
userzimmermann/robotframework | utest/utils/test_xmlwriter.py | 6078 | from six import PY3
import os
import unittest
import tempfile
from robot.utils import XmlWriter, ET, ETSource
from robot.utils.asserts import *
PATH = os.path.join(tempfile.gettempdir(), 'test_xmlwriter.xml')
class TestXmlWriter(unittest.TestCase):
def setUp(self):
self.writer = XmlWriter(PATH)
d... | apache-2.0 |
MaYunFei/TXLiveDemo | livesocketlib/src/main/java/com/dongao/kaoqian/livesocketlib/message/MessageFactory.java | 3619 | package com.dongao.kaoqian.livesocketlib.message;
import android.util.Log;
import com.alibaba.fastjson.JSON;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
import java.util.zip.DataFormatException;
import java.util.zip.In... | apache-2.0 |
pcmoritz/arrow | csharp/src/Apache.Arrow/Flatbuf/Enums/Precision.cs | 223 | // <auto-generated>
// automatically generated by the FlatBuffers compiler, do not modify
// </auto-generated>
namespace Apache.Arrow.Flatbuf
{
public enum Precision : short
{
HALF = 0,
SINGLE = 1,
DOUBLE = 2,
};
}
| apache-2.0 |
sindharta/unity-sandbox | UnitySandboxMLAPI/Packages/com.unity.multiplayer.mlapi/Runtime/NetworkVariable/NetworkVariable.cs | 19592 | using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System;
using MLAPI.Serialization.Pooled;
using MLAPI.Transports;
namespace MLAPI.NetworkVariable
{
/// <summary>
/// A variable that can be synchronized over the network.
/// </summary>
[Serializable]
public class Network... | apache-2.0 |
splicers/elastigo | lib/coremget.go | 2044 | // Copyright 2013 Matthew Baird
// 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... | apache-2.0 |
ifintech/phplib | Ext/Aliyun/OTS/ProtoBuffer/pb_proto_ots.php | 41144 | <?php
class PBError extends PBMessage
{
var $wired_type = PBMessage::WIRED_LENGTH_DELIMITED;
public function __construct($reader=null)
{
parent::__construct($reader);
$this->fields["1"] = "PBString";
$this->values["1"] = "";
$this->fields["2"] = "PBString";
$this->values["2"] = "";
}
funct... | apache-2.0 |
SAP/openui5 | src/sap.uxap/test/sap/uxap/demokit/sample/ObjectPageHeaderBackgroundDesign/Component.js | 222 | sap.ui.define(["sap/ui/core/UIComponent"], function (UIComponent) {
"use strict";
return UIComponent.extend("sap.uxap.sample.ObjectPageHeaderBackgroundDesign.Component", {
metadata: {
manifest: "json"
}
});
});
| apache-2.0 |
wemote/scorpio | scorpio-core/src/test/java/com/wemote/scorpio/modules/persistence/HibernatesTest.java | 1752 | /*******************************************************************************
* Copyright (c) 2005, 2014 springside.github.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
*******************************************************************************/
package com.wemote.scorpio.modules.per... | apache-2.0 |
migangel9/storybp | Resources/android/alloy/controllers/tabComida.js | 25744 | function Controller() {
function showMenu() {
$.main.width = Ti.Platform.displayCaps.platformWidth;
$.main.animate({
left: 300,
duration: 100
});
}
function hideMenu(e) {
if (e.direction = "left") {
$.main.width = Ti.UI.SIZE;
$.... | apache-2.0 |
Assassinss/smile | src/main/java/me/zsj/smile/widget/PullBackLayout.java | 4071 | package me.zsj.smile.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Build;
import android.support.v4.view.ViewCompat;
import android.support.v4.widget.ViewDragHelper;
import android.util.Attri... | apache-2.0 |
nickbabcock/dropwizard | dropwizard-forms/src/test/java/io/dropwizard/forms/MultiPartBundleTest.java | 1035 | package io.dropwizard.forms;
import com.codahale.metrics.MetricRegistry;
import io.dropwizard.Configuration;
import io.dropwizard.jackson.Jackson;
import io.dropwizard.logging.BootstrapLogging;
import io.dropwizard.setup.Environment;
import io.dropwizard.validation.BaseValidator;
import org.glassfish.jersey.media.mult... | apache-2.0 |
Seriane/Pokedex | src/js/components/Main.js | 296 | import React from "react";
import Pokedex from "./Pokedex"
import Soundtrack from "./Soundtrack"
import Logo from "./Logo"
export default class Main extends React.Component {
render() {
return (
<div id = "container" >
<Logo />
<Pokedex />
<Soundtrack />
</div>
);
}
}
| apache-2.0 |
RizkiMufrizal/Starter-Project | Starter-FrontEnd/src/environments/environment.ts | 462 | // The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angul... | apache-2.0 |
chiaming0914/awe-cpp-sdk | aws-cpp-sdk-inspector/source/model/DescribeAssessmentResult.cpp | 1430 | /*
* Copyright 2010-2017 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... | apache-2.0 |
DeinDesign/css | node_modules/grunt-contrib-watch/node_modules/tiny-lr/node_modules/qs/test/parse.js | 4655 | if (require.register) {
var qs = require('querystring');
} else {
var qs = require('../')
, expect = require('expect.js');
}
describe('qs.parse()', function () {
it('should support the basics', function () {
expect(qs.parse('0=foo')).to.eql({'0': 'foo'});
expect(qs.parse('foo=c++'))
.to.eql({foo... | apache-2.0 |
alain75007/javaschool | Exemple 17020 - Constructeurs multiples - may be OBSO/src/com/myschool/game/core/Game.java | 708 | // Fichier Game.java
package com.myschool.game.core;
public class Game {
public static void main(String[] args) {
int CharacterCount = 0;
Character character1 = new Character("Maxime");
// character1.setLiveScore(10);
CharacterCount++;
Character character2 = new Character("Alpha", 11);
// character2.setL... | apache-2.0 |
Rikkola/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-client/kie-wb-common-stunner-widgets/src/main/java/org/kie/workbench/common/stunner/client/widgets/presenters/session/impl/SessionViewerImpl.java | 6018 | /*
* Copyright 2017 Red Hat, Inc. and/or 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 app... | apache-2.0 |
approvals/ApprovalTests.Java | approvaltests-util-tests/src/test/java/com/spun/util/WhiteSpaceStripperTest.java | 416 | package com.spun.util;
import org.approvaltests.Approvals;
import org.junit.jupiter.api.Test;
public class WhiteSpaceStripperTest
{
@Test
public void test()
{
String[] useCases = {" hello \n \n \n", " hello \r\n \n a \n", " hello "};
Approvals.verifyAll("whitespace", useCases,
u -> S... | apache-2.0 |
huxoll/TopStackCore | src/com/msi/tough/model/EnvironmentBean.java | 5599 | /*
* AvzoneBean.java
*
* MSI Eucalyptus LoadBalancer Project
* Copyright (C) Momentum SI
*
*/
package com.msi.tough.model;
import java.util.Date;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
impo... | apache-2.0 |
cpollet/itinerants | webservice/web/src/main/java/net/cpollet/itinerants/web/rest/resource/AvailabilityController.java | 2689 | package net.cpollet.itinerants.web.rest.resource;
import lombok.extern.slf4j.Slf4j;
import net.cpollet.itinerants.core.service.AvailabilityService;
import net.cpollet.itinerants.core.service.EventService;
import net.cpollet.itinerants.core.service.PersonService;
import net.cpollet.itinerants.web.rest.data.Availability... | apache-2.0 |
googleads/googleads-php-lib | examples/AdManager/v202108/OrderService/UpdateOrders.php | 3137 | <?php
/**
* Copyright 2016 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 ... | apache-2.0 |
kwon37xi/freemarker-dynamic-ql-builder | src/test/java/kr/pe/kwonnam/freemarkerdynamicqlbuilder/objectunwrapper/TemplateModelObjectUnwrapperDefaultImplTest.java | 394 | package kr.pe.kwonnam.freemarkerdynamicqlbuilder.objectunwrapper;
import freemarker.template.Configuration;
public class TemplateModelObjectUnwrapperDefaultImplTest extends AbstractTemplateModelObjectUnwrapperTest {
@Override
protected TemplateModelObjectUnwrapper populateUnwrapper(Configuration configuratio... | apache-2.0 |
cdaniel/atlas2 | src-ui/map-editor/comment.js | 7544 | /*jshint esversion: 6 */
var React = require('react');
var _ = require('underscore');
import Actions from './single-map-actions';
import SubmapActions from './dialogs/form-submap/form-a-submap-actions';
import {getStyleForType} from './component-styles';
import {Button, Glyphicon} from 'react-bootstrap';
import {endpo... | apache-2.0 |
VolodymyrOrlov/tweets-opinion-mining | src/main/scala/com/vorlov/util/Csv.scala | 1896 | package com.vorlov.util
import java.io.File
import org.apache.commons.lang3.StringEscapeUtils
import scala.annotation.tailrec
import scala.io.Source
object Csv {
abstract class CSVFormat[T] {
def asCSVHeader(data: T) = write(data).map(v => s"""${v._1}""").mkString(",")
def write(data: T): Iterable[(Str... | apache-2.0 |
vam-google/google-cloud-java | google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/LicensesListResponse.java | 8870 | /*
* Copyright 2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 |
pravega/pravega | controller/src/main/java/io/pravega/controller/store/stream/records/HistoryTimeSeriesRecord.java | 6640 | /**
* Copyright Pravega 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 applicable law or agreed to... | apache-2.0 |
nemecec/protobuf-javame | proto2javame/src/main/java/net/jarlehansen/proto2javame/business/sourcebuilder/publicmethods/PublicMethodsBuilderImpl.java | 3189 | package net.jarlehansen.proto2javame.business.sourcebuilder.publicmethods;
import net.jarlehansen.proto2javame.business.sourcebuilder.resource.CommonResourceConstants;
import net.jarlehansen.proto2javame.business.sourcebuilder.resource.JavaSourceCodeUtil;
import net.jarlehansen.proto2javame.business.sourcebuilder.reso... | apache-2.0 |
VandyVRC/DIMLI | _php/_homepage/todo_list.php | 2830 | <?php
if(!defined('MAIN_DIR')){define('MAIN_DIR',dirname('__FILENAME__'));}
require_once(MAIN_DIR.'/_php/_config/session.php');
require_once(MAIN_DIR.'/_php/_config/connection.php');
require_once(MAIN_DIR.'/_php/_config/functions.php');
confirm_logged_in();
?>
<!--
TO DO LIST FOR CATALOGERS
-->
<div id="yourOr... | apache-2.0 |
jonfoster/pyxb1 | tests/datatypes/test-hexBinary.py | 1256 | from pyxb.exceptions_ import *
import unittest
import pyxb.binding.datatypes as xsd
import binascii
class Test_hexBinary (unittest.TestCase):
def testValues (self):
data_values = [ '\x01', '\x00', '\x01\x23', '\x12\x34' ]
for dv in data_values:
v = xsd.hexBinary(dv)
self.ass... | apache-2.0 |
OpenClinica/enketo-express-oc | app/controllers/transformation-controller.js | 12093 | /**
* @module transformation-controller
*/
const transformer = require( 'enketo-transformer' );
const communicator = require( '../lib/communicator' );
const surveyModel = require( '../models/survey-model' );
const cacheModel = require( '../models/cache-model' );
const account = require( '../models/account-model' );
... | apache-2.0 |
olamy/archiva | archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/RepositoryServletProxiedTimestampedSnapshotPolicyTest.java | 8924 | package org.apache.archiva.webdav;
/*
* 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, ... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/CustomizedMetricSpecification.java | 13722 | /*
* Copyright 2014-2019 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... | apache-2.0 |
langbat/webservice | index.php | 6382 | <?php
//print_r($_SERVER);die;
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
... | apache-2.0 |
enr1c091/conv-ret-rank | src/main/webapp/dist/js/dialog.response.js | 2466 | System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var DialogResponse;
return {
setters:[],
execute: function() {
/**
* (C) Copyright IBM Corp. 2016. All Rights Reserved.
*
* ... | apache-2.0 |
yippeesoft/NotifyTools | cplussharp/vscode/rusttest/ncnntengine2rs/build.rs | 1060 | extern crate bindgen;
// extern crate cc;
use std::env;
use std::path::PathBuf;
fn main() {
let lib_path = PathBuf::from(env::current_dir().unwrap().join("."));
println!("cargo:rustc-link-search={}", lib_path.display());
println!("cargo:rustc-link-lib=tengine-lite");
// println!("cargo:rustc-link-lib... | apache-2.0 |
burtcorp/amphtml | test/functional/test-performance.js | 20076 | /**
* Copyright 2015 The AMP HTML 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 require... | apache-2.0 |
translation-cards/txc-maker | src/main/java/org/mercycorps/translationcards/txcmaker/task/TxcPortingUtility.java | 1451 | package org.mercycorps.translationcards.txcmaker.task;
import com.google.gson.Gson;
import org.mercycorps.translationcards.txcmaker.model.Card;
import org.mercycorps.translationcards.txcmaker.model.Deck;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;... | apache-2.0 |
JA-VON/Henderson-Painter-Language-HPL | src/hpl/sys/TestPrimitives.java | 2255 | package hpl.sys;
import hpl.values.Painter;
import hpl.values.PrimitivePainter;
import java.awt.*;
import java.awt.geom.Point2D;
import javax.swing.*;
public class TestPrimitives {
static Screen screen; // display area
static PainterFrame topLevelFrame; // top level topLevelFrame
static Painter result; /... | apache-2.0 |
agniruddra/TheStringsProject | App/TheStringsProject_WP8.0App/TheStringsProject_WP8.0App/Profile.xaml.cs | 5356 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using TheStringsProject_WP8._0App.Models;
using System.Windows.Media.Imaging;... | apache-2.0 |
Diullei/NetSpec | src/NetSpec/NetSpec.TestProject/SpecificationTest/DadoUmaEspecificacaoComTextoLivre.cs | 3091 | namespace NetSpec.TestProject.SpecificationTest
{
using System;
using System.IO;
using Core;
using Microsoft.VisualStudio.TestTools.UnitTesting;
/// <summary>
/// Este teste tem por objetivo testar a execução de uma
/// especificação simples escrita com texto livre.
/// </summary>
... | apache-2.0 |
gbhu/studynotes-projects | ShiroStudy/src/main/java/com/yummy/common/utils/UtilPath.java | 3272 | package com.yummy.common.utils;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
/**
*
*/
public class UtilPath {
/**
* 获取到classes目录
* @return path
*/
public static... | apache-2.0 |
ngageoint/scale | scale/queue/migrations/0017_queue_docker_image.py | 450 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-08-30 17:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('queue', '0016_auto_20180123_2037'),
]
operations = [
migrations.AddField(
... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-workspacesweb/src/main/java/com/amazonaws/services/workspacesweb/model/transform/GetBrowserSettingsResultJsonUnmarshaller.java | 2898 | /*
* 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... | apache-2.0 |
muroc-lab/gyros | test/builder_test.cpp | 3821 | // author: Maciej Chałapuk
// license: MIT
// vim: ts=2 sw=2 expandtab
#include "gyros/builder.hpp"
#include "test/gyros/components.hpp"
using Simple = test::gyros::component::EmptyComponent;
using Counting = test::gyros::component::CountingComponent;
using Complex = test::gyros::component::OneMemberComponent<int>;
u... | apache-2.0 |
rholt94/selenium-builder | seleniumbuilder/content/html/builder/selenium2/rcPlayback.js | 61286 | /** Playback system for remote webdriver. */
builder.selenium2.rcPlayback = {};
builder.selenium2.rcPlayback.getHostPort = function() {
return bridge.prefManager.getCharPref("extensions.seleniumbuilder3.remote.hostport");
};
builder.selenium2.rcPlayback.setHostPort = function(hostPort) {
bridge.prefManager.setCha... | apache-2.0 |
ssilviogit/pml | model/_IterableCollection.class.php | 1251 | <?php
/*
* Copyright 2017 Silvio Sparapano <ssilvio@libero.it>.
*
* 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
*
* Unle... | apache-2.0 |
kef/hieos | src/xds/src/com/vangent/hieos/services/xds/registry/storedquery/GetFolders.java | 3991 | /*
* This code is subject to the HIEOS License, Version 1.0
*
* Copyright(c) 2008-2009 Vangent, Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY K... | apache-2.0 |
javalivepeng/tuibei | crawler/src/crawler/YanBao.java | 12317 | package crawler;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Rand... | apache-2.0 |
ChronixDB/chronix.server | chronix-server-type-metric/src/main/java/de/qaware/chronix/solr/type/metric/MetricType.java | 6985 | /*
* Copyright (C) 2018 QAware 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 required by applicabl... | apache-2.0 |
aleroddepaz/soapuimodel | src/main/java/org/aleroddepaz/soapuimodel/MockService.java | 3563 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.04.27 at 05:36... | apache-2.0 |
IHTSDO/MLDS | src/main/java/ca/intelliware/ihtsdo/mlds/service/CommercialUsageAuditEvents.java | 1845 | package ca.intelliware.ihtsdo.mlds.service;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import ca.intelliware.ihtsdo.mlds.domain.CommercialUsage;
import ca.intelliware.ihtsdo.mlds.domain.PersistentAuditEvent;
import com.google.common.collect.Maps;
@Servic... | apache-2.0 |
kloiasoft/eventapis | emon-lib/src/main/java/com/kloia/eventapis/api/emon/domain/ServiceData.java | 1540 | package com.kloia.eventapis.api.emon.domain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Functio... | apache-2.0 |
Berico-Technologies/CLAVIN | src/main/java/com/novetta/clavin/resolver/multipart/SearchLevel.java | 5735 | /*#####################################################################
*
* CLAVIN (Cartographic Location And Vicinity INdexer)
* ---------------------------------------------------
*
* Copyright (C) 2012-2013 Berico Technologies
* http://clavin.bericotechnologies.com
*
* =======================================... | apache-2.0 |
mdavid/SuperSocket | ServerManager/v1.4/Client/WpfClient/ViewModel/InstanceViewModelBase.cs | 436 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight;
namespace SuperSocket.Management.Client.ViewModel
{
public abstract class InstanceViewModelBase : ViewModelBase
{
public InstanceViewModelBase(ServerViewModel server)
{
... | apache-2.0 |
dbflute-test/dbflute-test-dbms-db2 | src/main/java/org/docksidestage/db2/dbflute/bsentity/BsWhiteTarget.java | 7873 | package org.docksidestage.db2.dbflute.bsentity;
import java.util.List;
import java.util.ArrayList;
import org.dbflute.dbmeta.DBMeta;
import org.dbflute.dbmeta.AbstractEntity;
import org.dbflute.dbmeta.accessory.DomainEntity;
import org.docksidestage.db2.dbflute.allcommon.DBMetaInstanceHandler;
import org.docksidestag... | apache-2.0 |
yuananf/presto | presto-main/src/main/java/com/facebook/presto/operator/HashSemiJoinOperator.java | 6750 | /*
* 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... | apache-2.0 |
skobelev-dmitriy/HeadsHands | app/src/main/java/rf/digworld/headhands/injection/component/ApplicationComponent.java | 893 | package rf.digworld.headhands.injection.component;
import android.app.Application;
import android.content.Context;
import com.squareup.otto.Bus;
import javax.inject.Singleton;
import dagger.Component;
import rf.digworld.headhands.data.DataManager;
import rf.digworld.headhands.data.local.DatabaseHelper;
import rf.di... | apache-2.0 |
chenxihoho/FirstFrame | 003.Dapper/Dapper/OracleDBHelper.cs | 63507 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Data.OracleClient;
using System.Configuration;
namespace Web.Utility.sqlHelper
{
#region Data Access Base Class
/// <summary>
/// Data Access ... | apache-2.0 |
jonbcampos/ngCommon | src/common/directives/validators/bigdecimal.js | 2333 | /**
* Created by jonbcampos on 8/28/14.
*/
(function () {
'use strict';
/**
* @ngdoc directive
* @name common.directives.validations.bigdecimal
* @element input
* @restrict A
* @scope
*
* @description
* Validator for big decimal type numbers.
*
* @example
... | apache-2.0 |
alapierre/altkom_2014_07_22 | src/Child.java | 1083 | /*
* Copyright 2014 Adrian Lapierre <adrian@soft-project.pl>.
*
* 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 ... | apache-2.0 |
consulo/consulo-scala | src/org/jetbrains/plugins/scala/lang/parser/parsing/expressions/Generator.scala | 1059 | package org.jetbrains.plugins.scala
package lang
package parser
package parsing
package expressions
import com.intellij.lang.PsiBuilder
import lexer.ScalaTokenTypes
import patterns.{Pattern1, Guard}
import builder.ScalaPsiBuilder
/**
* @author Alexander Podkhalyuzin
* Date: 06.03.2008
*/
/*
* Generator ::= Pattern1... | apache-2.0 |
zaradai/primes | src/main/java/com/zaradai/primes/PrimeGeneratorSink.java | 693 | /**
* Copyright 2014 Zaradai
*
* 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... | apache-2.0 |
relution-io/relution-sdk | lib/query/SortOrderComparator.d.ts | 1465 | import { SortOrder } from './SortOrder';
/**
* options of #jsonCompare function.
*/
export interface JsonCompareOptions {
/**
* set to explicitly use case-sensitive string matching, evalates to false to use matching
* semantics of WebSQL.
*/
casesensitive?: boolean;
}
/**
* compiled compare fu... | apache-2.0 |
enyojs/canvas | index.js | 27 | exports.version = '2.7.0';
| apache-2.0 |
open-adk/OpenADK-java | adk-generator/src/main/java/openadk/generator/FieldType.java | 5636 | //
// Copyright (c)1998-2011 Pearson Education, Inc. or its affiliate(s).
// All rights reserved.
//
package openadk.generator;
public class FieldType {
private static FieldType FIELD_BOOLEAN = new FieldType( ADKDataType.BOOLEAN );
private static FieldType FIELD_STRING = new FieldType( ADKDataType.STRING );
pri... | apache-2.0 |
cneill/designate | designate/storage/impl_sqlalchemy/tables.py | 13173 | # Copyright 2012-2014 Hewlett-Packard Development Company, L.P.
#
# Author: Kiall Mac Innes <kiall@hp.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licen... | apache-2.0 |
funkyfuture/docker-py | docker/transport/unixconn.py | 3840 | import six
import requests.adapters
import socket
from six.moves import http_client as httplib
from docker.transport.basehttpadapter import BaseHTTPAdapter
from .. import constants
try:
import requests.packages.urllib3 as urllib3
except ImportError:
import urllib3
RecentlyUsedContainer = urllib3._collection... | apache-2.0 |
ChetanBhasin/Veracious | app/models/batch/job/MnALS.scala | 600 | package models.batch.job
/**
* Created by basso on 07/04/15.
*
* MineOp job for the ALS operation
*/
case class MnALS (
ds_train: String, // JSON file, space separated
ds_query: String, // JSON file, space separated
ranks: Int, // = 10
max_iter: Int, // = 20
id: String = " "
) extends Mi... | apache-2.0 |
EonEngine/Eon | Eon/Source/Assets/Assets.cpp | 774 | #include <SOIL.h>
#include <fstream>
#include <iostream>
#include "Common.h"
#include "Assets/Assets.h"
namespace eon {
namespace assets {
const std::string assetsDir("../Assets/");
std::string LoadText(const char *name) {
std::string fileName(assetsDir + name);
std::ifstream file(fileName.c_str(), std::ios::in);... | apache-2.0 |
JeevanJames/ConsoleFx | src/ConsoleExtensions/Clr.cs | 9042 | #region --- License & Copyright Notice ---
/*
ConsoleFx CLI Library Suite
Copyright 2015-2019 Jeevan James
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/LICENS... | apache-2.0 |
linkedin/pinot | pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/segment_generation_and_push/SegmentGenerationAndPushTaskExecutorFactory.java | 1630 | /**
* 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-2.0 |
googleapis/python-pubsublite | google/cloud/pubsublite/internal/fast_serialize.py | 247 | """
A fast serialization method for lists of integers.
"""
from typing import List
def dump(data: List[int]) -> str:
return ",".join(str(x) for x in data)
def load(source: str) -> List[int]:
return [int(x) for x in source.split(",")]
| apache-2.0 |