repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
yvolk/calendar-widget | app/src/main/java/org/andstatus/todoagenda/DateUtil.java | 4347 | package org.andstatus.todoagenda;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.util.Log;
import org.andstatus.todoagenda.prefs.InstanceSettings;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import java.util.Format... | apache-2.0 |
jitsi/jitsi-meet | react/features/security/components/security-dialog/native/styles.js | 2167 | // @flow
import BaseTheme from '../../../../base/ui/components/BaseTheme.native';
/**
* The styles of the feature security.
*/
export default {
securityDialogContainer: {
flex: 1,
marginTop: BaseTheme.spacing[4]
},
headerCloseButton: {
marginLeft: 12
},
lobbyModeContai... | apache-2.0 |
swjjxyxty/Study | studyspring/boot-autoconfig/src/main/java/com/bestxty/sutdy/boot/config/Application.java | 378 | package com.bestxty.sutdy.boot.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author xty
* Created by xty on 2017/7/2.
*/
@SpringBootApplication
public class Application {
public static void main(String[] args) {
... | apache-2.0 |
xiazdong/EasyAccount | templates_c/c7c6463daf126f1f4aabc04220f75ea6d4c9c80d.file.foot.html.php | 1331 | <?php /* Smarty version Smarty-3.1.12, created on 2014-01-05 01:25:09
compiled from "..\templates\foot.html" */ ?>
<?php /*%%SmartyHeaderCode:3205352a08ae3e2afa0-18263060%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
a... | apache-2.0 |
WaltChen/NDatabase | tests/NDatabase.Old.UnitTests/NDatabase/Odb/Test/VO/Human/Animal.cs | 968 | namespace Test.NDatabase.Odb.Test.VO.Human
{
public class Animal
{
protected string name;
protected string sex;
protected string specie;
public Animal(string specie, string sex, string name)
{
this.specie = specie;
this.sex = sex;
... | apache-2.0 |
google-code/ant-util | src/main/java/com/newmainsoftech/ant/types/ArgumentExtAspect.java | 3643 | /*
* Copyright (C) 2012-2013 NewMain Softech
*
* 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... | apache-2.0 |
rssvihla/cassandra-commons | cassandra-commons-maven/src/test/java/pro/foundev/cassandra/commons/maven/loader/MojoMigrationLoaderImplTest.java | 3611 | /*
* Copyright 2015 Ryan Svihla
*
* 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 |
0x0mar/arachni | spec/support/servers/plugins/uncommon_headers.rb | 206 | require 'sinatra'
get '/' do
<<EOHTML
<a href="/1">1</a>
<a href="/2">2</a>
EOHTML
end
get '/1' do
headers['Weird'] = 'Value'
end
get '/2' do
headers['Weird2'] = 'Value2'
end
| apache-2.0 |
abbbystevens/csc207-hw6 | src/Problem1/WrappingQueuesTest.java | 2386 | package Problem1;
import static org.junit.Assert.*;
import org.junit.Test;
public class WrappingQueuesTest
{
@Test
public void test()
throws Exception
{
ReportingLinearStructure<String> expt =
new ReportingLinearStructure<String>(new WrappingQueues<String>(5),
... | apache-2.0 |
heia-fr/telecom-tower | sprite/sprite.go | 1719 | // Copyright 2015 Jacques Supcik, HEIA-FR
//
// 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 a... | apache-2.0 |
EMC-CMD/libstorage | api/types/types_store.go | 2347 | package types
// Store is a key/value store with case-insensitive keys.
type Store interface {
// Map returns the contents of the store as a map[string]interface{}.
Map() map[string]interface{}
// Keys returns a list of all the keys in the store.
Keys() []string
// IsSet returns true if a key exists.
IsSet(k ... | apache-2.0 |
spring-projects/spring-net | src/Spring/Spring.Data.NHibernate5/Data/NHibernate/HibernateOptimisticLockingFailureException.cs | 3339 | /*
* Copyright © 2002-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 ... | apache-2.0 |
quarkusio/quarkus | extensions/elasticsearch-rest-client/runtime/src/main/java/io/quarkus/elasticsearch/restclient/lowlevel/runtime/ElasticsearchConfig.java | 2710 | package io.quarkus.elasticsearch.restclient.lowlevel.runtime;
import java.net.InetSocketAddress;
import java.time.Duration;
import java.util.List;
import java.util.Optional;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.Confi... | apache-2.0 |
herickson/terremark-api | src/main/java/com/terremark/api/LoginBanner.java | 1906 |
package com.terremark.api;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for LoginBanner complex type.
*
* <p>The following schema fragment specifies the... | apache-2.0 |
p2p-sync/sync | src/test/java/org/rmatil/sync/test/messaging/sharingexchange/unshare/UnshareExchangeHandlerResultTest.java | 355 | package org.rmatil.sync.test.messaging.sharingexchange.unshare;
import org.junit.Test;
import org.rmatil.sync.core.messaging.sharingexchange.unshare.UnshareExchangeHandlerResult;
public class UnshareExchangeHandlerResultTest {
@Test
public void test() {
UnshareExchangeHandlerResult result = new Unsha... | apache-2.0 |
fkeglevich/Raw-Dumper | app/src/main/java/com/fkeglevich/rawdumper/camera/feature/ManualTemperatureFeature.java | 3848 | /*
* Copyright 2018, Flávio Keglevich
*
* 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 |
oVirt/ovirt-web-ui | scripts/intl/extract-messages.js | 1484 | import fs from 'fs'
import path from 'path'
import chalk from 'chalk'
import mkdirp from 'mkdirp'
import messages from '../../src/intl/messages.js'
import timeDurations from '../../src/intl/time-durations.js'
function normalizeMessages (messages) {
return Object.keys(messages)
.map(key => {
const value = ... | apache-2.0 |
oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p337/Production6755.java | 1891 | package org.gradle.test.performance.mediummonolithicjavaproject.p337;
public class Production6755 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | apache-2.0 |
jorgevillaverde/ai-planning | ai-planning-model/src/main/java/ar/edu/utn/frre/ia/planning/model/data/strips/AND.java | 7636 | /************************************************************************
* Strathclyde Planning Group,
* Department of Computer and Information Sciences,
* University of Strathclyde, Glasgow, UK
* http://planning.cis.strath.ac.uk/
*
* Copyright 2007, Keith Halsey
* Copyright 2008, Andrew Coles and Amanda Smith... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-mediapackagevod/src/main/java/com/amazonaws/services/mediapackagevod/model/ListAssetsRequest.java | 6668 | /*
* 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 |
zhenglaizhang/CppSnippets | Unix/svr.cc | 594 | #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
//#include <error>
using namespace std;
int main(int argc, char cons... | apache-2.0 |
spark0001/spark2.1.1 | core/src/main/scala/org/apache/spark/SparkConf.scala | 30333 | /*
* 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 |
lakshani/carbon-mobile-appmgt | components/extensions/org.wso2.carbon.appmgt.extension.is500/src/main/java/org/wso2/carbon/appmgt/impl/idp/sso/is500/internal/IS500AdapterComponent.java | 2210 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.apache.org/li... | apache-2.0 |
cboling/xos | xos/api/utility/onboarding.py | 3438 | import json
from django.http import HttpResponse
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse
from rest_framework import serializers
from rest_framework import generics
from rest_framework import status
from core.models import *
f... | apache-2.0 |
rhauch/modeshape | modeshape-jcr/src/main/java/org/modeshape/jcr/federation/ConnectorChangeSetImpl.java | 19269 | /*
* ModeShape (http://www.modeshape.org)
*
* 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... | apache-2.0 |
alienwithin/0x88 | admin/user_manager.php | 3152 | <?php
/************************/
/* */
/*Dezended By Martian */
/*munir.skilledsoft.com */
/* */
/* */
/************************/
include( "include/inc.header.php" );
$message = "";
$username=check_input($_POST['UserName']);
$pass=check_input... | apache-2.0 |
lorislab/appky | appky-application/src/main/java/org/lorislab/appky/application/model/Version.java | 5966 | /*
* Copyright 2014 lorislab.org.
*
* 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 ... | apache-2.0 |
texastribune/gspreadsheet | gspreadsheet/utils.py | 851 | #http://code.google.com/apis/spreadsheets/data/1.0/developers_guide_python.html
def PrintFeed(feed):
"""Example function from Google to print a feed"""
import gdata
for i, entry in enumerate(feed.entry):
if isinstance(feed, gdata.spreadsheet.SpreadsheetsCellsFeed):
print '%s %s\n' % (entry.title.text, e... | apache-2.0 |
cristiani/encuestame | enme-utils/src/main/java/org/encuestame/utils/social/SocialProvider.java | 6051 | /*
************************************************************************************
* Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2011
* encuestame Development Team.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.... | apache-2.0 |
ebourg/flamingo-svg-transcoder | core/src/test/java/org/pushingpixels/flamingo/api/svg/SvgTranscoderTest.java | 5698 | package org.pushingpixels.flamingo.api.svg;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.PrintWriter;
import java.util.Arrays;
import javax.tools.JavaCompiler;
import javax.tools.JavaFileObject;
import javax.tools.StandardJavaFileManager;
i... | apache-2.0 |
yeeunshim/tajo_test | tajo-algebra/src/main/java/org/apache/tajo/algebra/RelationList.java | 2376 | /**
* 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
* distribu... | apache-2.0 |
SAP/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/component/ComponentSupport.qunit.js | 10404 | sap.ui.define([
'sap/base/Log',
'sap/base/strings/hyphenate',
'sap/ui/core/UIComponent',
'sap/ui/core/ComponentContainer',
'sap/ui/core/ComponentSupport',
'sap/ui/core/library'
], function(Log, hyphenate, UIComponent, ComponentContainer, ComponentSupport, library) {
"use strict";
/*global QUnit, sinon, Promise... | apache-2.0 |
ytirahc/mobile-dev-trek | posts/032016/resizing-to-multiple.js | 2379 | // Copyright (c) 2016, ytirahc, www.mobiledevtrek.com
// All rights reserved. Copyright holder cannot be held liable for any damages.
//
// Distributed under the Apache License (ASL).
// http://www.apache.org/licenses/
// *****
// Description: This file is a script for Adobe Photoshop (tested with Photoshop CC 2015)... | apache-2.0 |
Lucas1313/miesner | www/wp-content/plugins/nextgen-gallery-pro/modules/comments/class.comment_mapper.php | 1751 | <?php
class C_Comment_Mapper extends C_CustomPost_DataMapper_Driver
{
public static $_instances = array();
function define($context = FALSE)
{
parent::define(NULL, array($context, 'photocrati-comments'));
$this->add_mixin('Mixin_Comment_Mapper');
$this->implement('I_Comment_Mapper'... | apache-2.0 |
balloob/home-assistant | homeassistant/components/shelly/light.py | 3918 | """Light for Shelly."""
from typing import Optional
from aioshelly import Block
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_COLOR_TEMP,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR_TEMP,
LightEntity,
)
from homeassistant.core import callback
from homeassistant.util.color import (
c... | apache-2.0 |
google/gvisor | test/syscalls/linux/verity_symlink.cc | 4031 | // Copyright 2021 The gVisor 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 agree... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/transform/TemplatesResponseMarshaller.java | 2285 | /*
* 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 |
eclipse/hudson.stapler | stapler-core/src/main/java/org/kohsuke/stapler/WebApp.java | 6209 | /*******************************************************************************
*
* Copyright (c) 2004-2010 Oracle Corporation.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and i... | apache-2.0 |
xgqfrms/JavaWeb | x/src/com/deitel/jhtp5/elevator/event/PersonMoveEvent.java | 1621 | // PersonMoveEvent.java
// Indicates where a Person has moved
package com.deitel.jhtp5.elevator.event;
// Deitel packages
import com.deitel.jhtp5.elevator.model.*;
public class PersonMoveEvent extends ElevatorSimulationEvent {
// identifier of Person sending Event
private int ID;
// PersonMoveEvent constru... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/model/transform/HostedZoneOwnerStaxUnmarshaller.java | 2636 | /*
* 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 |
wiesed/machine-learning | src/main/java/com/bm/classify/ClassifyConstants.java | 863 | package com.bm.classify;
/**
* Alle Konstanten die zu BM classify gehoeren.
*
* @author Daniel Wiese
* @since 02.06.2006
*/
public interface ClassifyConstants {
/**
* Die datiendung fuer die klassify dateien.
*/
String SVM_DATEIENDUNG_FUER_SVM_CALSSIFY_DATEIEN = ".pred.dat";
/**
* Der timeout beim lern... | apache-2.0 |
ydk2/ymvc2 | libraries/js/phpjs/parse/parser.so.php | 23492 | <?php
/* misc subset */
class Bug extends Exception {}
function bug_unless($assertion, $gripe='Bug found.') { if (!$assertion) throw new Bug($gripe); }
function span($class, $text, $title='') {
$title = htmlspecialchars($title);
if ($title) $extra = " title=\"$title\"";
else $extra = '';
echo "<span cla... | apache-2.0 |
lorensen/VTKExamples | src/Python/PolyData/ImplicitPolyDataDistance.py | 2249 | import numpy as np
import vtk
def main():
sphereSource = vtk.vtkSphereSource()
sphereSource.SetCenter(0.0, 0.0, 0.0)
sphereSource.SetRadius(1.0)
sphereSource.Update()
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphereSource.GetOutputPort())
sphereMapper.ScalarVi... | apache-2.0 |
beargiles/projecteuler | src/main/java/com/invariantproperties/projecteuler/SequenceCache.java | 3102 | /*
* This code was written by Bear Giles <bgiles@coyotesong.com> and he
* 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.apache.org/licenses/LICENSE-2.0
*... | apache-2.0 |
ivafanas/sltbench | tests/MAResultsContainerTest.cpp | 1812 | #include "gtest/gtest.h"
#include "src/MAResultsContainer.h"
#include <cstdint>
#include <initializer_list>
using namespace sltbench;
static MAResultsContainer MakeContainer(
std::initializer_list<std::uint64_t> values)
{
MAResultsContainer cont;
for (const auto value : values)
cont.Add(value);
return cont;
... | apache-2.0 |
carlosb1/examples-c14 | algorithms/client_search.cpp | 281 | #include <iostream>
#include "search.h"
int main () {
const int size = 13;
int values [] ={4 ,5 ,6 ,7 ,2 ,3 ,65 ,12 ,88 ,12 ,38 ,1 ,8 };
int temp[size];
search::mergesort(values,temp,0,size-1);
for (auto value: temp) {
std::cout << value << ",";
}
std::cout << '\n';
}
| apache-2.0 |
ceylon/ceylon | language/runtime-js/modules.js | 195 | /* Metamodel module and package objects */
var $loadedModules$={};
x$.$loadedModules$=$loadedModules$;
function $addmod$(mod, modname) {
$loadedModules$[modname] = mod;
}
x$.$addmod$=$addmod$;
| apache-2.0 |
googleads/google-ads-ruby | lib/google/ads/google_ads/v9/services/bidding_strategy_simulation_service/paths.rb | 2518 | # frozen_string_literal: true
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | apache-2.0 |
googleads/google-ads-ruby | lib/google/ads/google_ads/v8/enums/account_link_status_pb.rb | 1209 | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v8/enums/account_link_status.proto
require 'google/protobuf'
require 'google/api/annotations_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_file("google/ads/googleads/v8/enums/account_link_status.proto", :syn... | apache-2.0 |
jruesga/rview | gerrit/src/main/java/com/ruesga/rview/gerrit/model/DeletedDraftCommentInfo.java | 971 | /*
* Copyright (C) 2016 Jorge Ruesga
*
* 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 |
asimarslan/hazelcast-csharp-client | Hazelcast.Net/Hazelcast.Client.Protocol.Codec/MapGetAllCodec.cs | 2874 | // Copyright (c) 2008-2018, Hazelcast, 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 |
mox601/functionaljava-spike | functionaljava-spike/src/test/java/fm/mox/spikes/functionaljava/state/accountweb/Deposit.java | 507 | package fm.mox.spikes.functionaljava.state.accountweb;
/**
* Created by matteo (dot) moci (at) gmail (dot) com
*/
public class Deposit implements Input {
private final int amount;
public Deposit(int amount) {
super();
this.amount = amount;
}
@Override
public boolean isDeposit()... | apache-2.0 |
mairbek/junit-suite-configurator | src/com/github/suiteconfig/junit/ConfigurableRunnerBuilder.java | 1702 | package com.github.suiteconfig.junit;
import com.google.common.collect.ImmutableList;
import org.junit.Test;
import org.junit.internal.builders.NullBuilder;
import org.junit.rules.MethodRule;
import org.junit.runner.Runner;
import org.junit.runners.model.RunnerBuilder;
import org.junit.runners.model.RunnerScheduler;
... | apache-2.0 |
mwilliamson-firefly/aws-sdk-net | sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/DescribeRouteTablesRequestMarshaller.cs | 3983 | /*
* Copyright 2010-2014 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 "l... | apache-2.0 |
mogotest/selenium | remote/client/src/java/org/openqa/selenium/remote/RemoteWebDriver.java | 15985 | /*
Copyright 2007-2009 WebDriver committers
Copyright 2007-2009 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 appli... | apache-2.0 |
kxingit/LeetCode_Java | Binary_Tree_Tilt.java | 688 | /*
Given a binary tree, return the tilt of the whole tree.
The tilt of a tree node is defined as the absolute difference between the sum of all left subtree node values and the sum of all right subtree node values. Null node has tilt 0.
The tilt of the whole tree is defined as the sum of all nodes' tilt.
*/
public cl... | apache-2.0 |
kfrodgers/vmax-py | examples/test_get_initiators.py | 1314 | # Copyright 2016 EMC Corporation
from os import getenv
from emc_vmax_smis.vmax_smis_base import VmaxSmisBase
from emc_vmax_smis.vmax_smis_devices import VmaxSmisDevices
from emc_vmax_smis.vmax_smis_masking import VmaxSmisMasking
if __name__ == '__main__':
host = getenv("ECOM_IP", default="10.108.247.22")
smi... | apache-2.0 |
MinionTim/Sentry | src/com/ville/sentry/Utility.java | 4102 | package com.ville.sentry;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkI... | apache-2.0 |
tensorflow/probability | tensorflow_probability/python/mcmc/internal/leapfrog_integrator.py | 14204 | # Copyright 2018 The TensorFlow Probability 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 o... | apache-2.0 |
PerfCake/pc4nb | src/main/java/org/perfcake/pc4nb/ui/MessagesView.java | 3653 | /*
* Copyright (c) 2015 Andrej Halaj
*
* 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... | apache-2.0 |
inbloom/secure-data-service | tools/data-tools/src/org/slc/sli/test/generators/interchange/InterchangeEdOrgGenerator.java | 10754 | /*
* 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... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-codestar/src/main/java/com/amazonaws/services/codestar/model/transform/ProjectStatusJsonUnmarshaller.java | 2940 | /*
* 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 |
TheRingbearer/HAWKS | ode/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HProcessInstance.java | 9730 | /*
* 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 |
aparod/jonix | jonix-codegen/src/main/java/com/tectonica/jonix/codegen/util/ListDiff.java | 2600 | /*
* Copyright (C) 2012 Zach Melamed
*
* Latest version available online at https://github.com/zach-m/jonix
* Contact me at zach@tectonica.co.il
*
* 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 ... | apache-2.0 |
Erhannis/MathNStuff | src/main/java/com/erhannis/mathnstuff/utils/ObservableMap.java | 5463 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.erhannis.mathnstuff.utils;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Objects;
import java.uti... | apache-2.0 |
GoogleCloudPlatform/PerfKitBenchmarker | tests/providers/ibmcloud/ibmcloud_util_test.py | 1261 | # Copyright 2020 PerfKitBenchmarker 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 appli... | apache-2.0 |
BackSlasher/chef | spec/unit/resource_reporter_spec.rb | 29835 | #
# Author:: Daniel DeLeo (<dan@opscode.com>)
# Author:: Prajakta Purohit (<prajakta@opscode.com>)
# Author:: Tyler Cloke (<tyler@opscode.com>)
#
# Copyright:: Copyright (c) 2012 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | apache-2.0 |
kubernetes-client/python | kubernetes/client/models/v1_node_selector.py | 3980 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.22
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | apache-2.0 |
Vilsol/NMSWrapper | src/main/java/me/vilsol/nmswrapper/wraps/unparsed/NMSEntityHuman.java | 24942 | package me.vilsol.nmswrapper.wraps.unparsed;
import com.mojang.authlib.GameProfile;
import me.vilsol.nmswrapper.NMSWrapper;
import me.vilsol.nmswrapper.reflections.ReflectiveClass;
import me.vilsol.nmswrapper.reflections.ReflectiveMethod;
import me.vilsol.nmswrapper.wraps.NMSItemStack;
import java.util.UUID;
@Reflec... | apache-2.0 |
javamind/Mixit2013 | src/com/ehret/mixit/adapter/ListTweetAdapter.java | 3266 | /*
* Copyright 2013 Guillaume EHRET
*
* 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... | apache-2.0 |
stevem999/gocd | server/src/test-fast/java/com/thoughtworks/go/server/ui/AgentsViewModelTest.java | 6518 | /*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... | apache-2.0 |
Pkcs11Interop/Pkcs11Interop | src/Pkcs11Interop/HighLevelAPI/Pkcs11InteropFactories.cs | 7205 | /*
* Copyright 2012-2021 The Pkcs11Interop 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 ap... | apache-2.0 |
augustogava/erp | admin/ajax_com/contas_receber_acao.php | 507 | <?php
include "../includes/Main.class.php";
// chama a classe principal
$Main = new Main();
$Main->Seguranca->verificaLogado();
if($_REQUEST["acao"] == "pagar"){
$Main->Fluxo->pagarFluxo($_GET["id"], $_GET["tipoPagamento"], $_GET["ocorrencia"], $_GET["valor"]);
}else if($_REQUEST["acao"] == "descontar"){
$Main->Flu... | apache-2.0 |
ypxu/sudoku | sudoku_py/utils.py | 1037 | #!/usr/bin/env python
"""
utils functions to read and write of sudoku file
sample sudoku:
0,3,5,2,9,0,8,6,4
0,8,2,4,1,0,7,0,3
7,6,4,3,8,0,0,9,0
2,1,8,7,3,9,0,4,0
0,0,0,8,0,4,2,3,0
0,4,3,0,5,2,9,7,0
4,0,6,5,7,1,0,0,9
3,5,9,0,2,8,4,1,7
8,0,0,9,0,0,5,2,6
"""
import os
def read_sudoku(sudoku_file):
"""
assume... | apache-2.0 |
mhurne/aws-sdk-java | aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/transform/ListCloudFrontOriginAccessIdentitiesRequestMarshaller.java | 2911 | /*
* Copyright 2010-2016 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 "l... | apache-2.0 |
codarchlab/idai-field-client | desktop/src/app/components/navbar/taskbar-update.component.ts | 2027 | import {Component, NgZone} from '@angular/core';
import {SettingsProvider} from '../../core/settings/settings-provider';
const ipcRenderer = typeof window !== 'undefined'
? window.require('electron').ipcRenderer
: require('electron').ipcRenderer;
@Component({
selector: 'taskbar-update',
templateUrl: './... | apache-2.0 |
sbryzak/DeltaSpike | deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/metadata/builder/AnnotationStore.java | 2043 | /*
* 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 ma... | apache-2.0 |
dimm0/scidrive | src/edu/jhu/pha/vospace/protocol/ProtocolHandler.java | 1282 | /*******************************************************************************
* Copyright 2013 Johns Hopkins University
*
* 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 |
openprocurement/openprocurement.edge | setup.py | 1699 | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
requires = [
'cornice',
'gevent',
'pyramid_exclog',
'setuptools',
'couchdb',
'couchapp',
'pycrypto',
'openpro... | apache-2.0 |
mrtequino/JSW | spring-boot/ApiGeneradoAutomaticamente/src/main/java/com/ltg/apigenaut/security/JwtAuthenticationEntryPoint.java | 1062 | package com.ltg.apigenaut.security;
import java.io.IOException;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;... | apache-2.0 |
objectiser/camel | platforms/spring-boot/components-starter/camel-telegram-starter/src/main/java/org/apache/camel/component/telegram/springboot/TelegramComponentConfiguration.java | 4047 | /*
* 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 |
clintmanning/new-empty | engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/DeploymentEntity.java | 4171 | /* 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 |
darghex/PARCES-WS | db.py | 937 | from sqlalchemy import *
from sqlalchemy.ext.declarative import declarative_base
from main import engine
Base = declarative_base()
Base.metadata.reflect(engine)
from sqlalchemy.orm import relationship, backref
class instancias_curso(Base):
__table__ = Base.metadata.tables['instancias_curso']
class ac... | apache-2.0 |
aelij/roslyn | src/Features/CSharp/Portable/ExtractMethod/CSharpMethodExtractor.Analyzer.cs | 7632 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.... | apache-2.0 |
spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer1366Service.java | 225 | package example.service;
import example.repo.Customer1366Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1366Service {
public Customer1366Service(Customer1366Repository repo) {}
}
| apache-2.0 |
eagleamon/home-assistant | homeassistant/components/mysensors.py | 15305 | """
Connect to a MySensors gateway via pymysensors API.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.mysensors/
"""
import logging
import os
import socket
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homea... | apache-2.0 |
JerryLead/spark | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionStateBuilder.scala | 4419 | /*
* 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 |
BappaMorya/java-pad-server | src/main/java/in/co/sh00nya/server/ServerMain.java | 2488 | package in.co.sh00nya.server;
import in.co.sh00nya.cmn.ConfigException;
import in.co.sh00nya.cmn.PropsPojoAdapter;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.log4j.Logger;
public class ServerMain {
private static final Logger logger = Logger.getLogger(S... | apache-2.0 |
prpollock/virtualperry | Android/virtualperry/src/com/mysticplanet/virtualperry/ActionBase.java | 1921 | package com.mysticplanet.virtualperry;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnC... | apache-2.0 |
skeleton-software-community/skeleton-generator | generator-model/src/test/java/org/sklsft/generator/util/JavaClassNamingTest.java | 683 | package org.sklsft.generator.util;
import org.junit.Assert;
import org.junit.Test;
import org.sklsft.generator.model.util.naming.JavaClassNaming;
public class JavaClassNamingTest {
@Test
public void testClassToDatabaseName() {
String arg = "MyDummyClass";
String expected = "MY_DUMMY_CLASS";
String result = J... | apache-2.0 |
grandeemme/v-ol3 | gwt-ol3/src/main/java/org/vaadin/gwtol3/client/source/MapQuestSource.java | 592 | package org.vaadin.gwtol3.client.source;
import java.util.logging.Logger;
/**
* Layer source for the MapQuest tile server
*/
public class MapQuestSource extends XYZSource {
private static Logger logger= Logger.getLogger(MapQuestSource.class.getName());
public static final String LAYER_OSM="osm";
publi... | apache-2.0 |
chanakaudaya/netty | buffer/src/main/java/io/netty/buffer/UnpooledDirectByteBuf.java | 17324 | /*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless ... | apache-2.0 |
cosmocode/cosmocode-commons | src/test/java/de/cosmocode/collections/utility/convert/ConvertDateTest.java | 7435 | /**
* Copyright 2010 - 2013 CosmoCode 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 applicable law or... | apache-2.0 |
techaddict/spark | sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreCatalogSuite.scala | 12061 | /*
* 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 |
google/loaner | loaner/web_app/frontend/src/services/dialog/index.ts | 1092 | // Copyright 2018 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... | apache-2.0 |
thiagoramos23/java_mock_project | thramos-model/src/main/java/com/thramos/framework/contexto/Contexto.java | 72 | package com.thramos.framework.contexto;
public interface Contexto {
}
| apache-2.0 |
containous/yaegi | stdlib/go1_14_path_filepath.go | 1644 | // Code generated by 'github.com/containous/yaegi/extract path/filepath'. DO NOT EDIT.
// +build go1.14,!go1.15
package stdlib
import (
"go/constant"
"go/token"
"path/filepath"
"reflect"
)
func init() {
Symbols["path/filepath"] = map[string]reflect.Value{
// function, constant and variable definitions
"Abs... | apache-2.0 |
shot/hadoop-source-reading | src/hdfs/org/apache/hadoop/hdfs/server/protocol/InterDatanodeProtocol.java | 1712 | /**
* 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/google-api-php-client-services | src/Drive/ReplyList.php | 1689 | <?php
/*
* Copyright 2014 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 t... | apache-2.0 |
jflory7/SFHSAPCompSci2015 | src/main/java/com/justinwflory/assignments/spring/elevens-lab/BoardTester.java | 1013 | // Justin Flory's Code
import java.util.List;
/**
* AP Computer Science A 2015
*
* A simple BoardTester class
* creates an ElevensBoard object and then prints the cards that were initially dealt to the board
*/
public class BoardTester {
public static void main(String[] args) {
ElevensBoard board = new El... | apache-2.0 |