repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
SomeFire/ignite
modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/impl/delegate/HadoopCachingFileSystemFactoryDelegate.java
2700
/* * 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
nigelsmall/py2neo
test/test_ogm.py
27385
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2016, Nigel Small # # 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
msteiger/gestalt
gestalt-module/src/main/java/org/terasology/naming/exception/VersionParseException.java
1303
/* * Copyright 2015 MovingBlocks * * 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
gabedev/roody-python
roody.py
1139
# Roody Discord Bot | Rude Discord Bot # Ported to Python by @gabedev import bs4 import discord import urllib.request import asyncio client = discord.Client() def get_insult(): sock = urllib.request.urlopen('http://www.pangloss.com/seidel/Shaker/') html = sock.read() soup = bs4.BeautifulSoup(html, 'html....
apache-2.0
ostap0207/remotify.me
remotify.rest-server/src/main/java/db/GenericDao.java
600
package db; import java.util.Map; /** * Created with IntelliJ IDEA. * User: Ostap * Date: 2/4/14 * Time: 12:20 PM * To change this template use File | Settings | File Templates. */ public interface GenericDao< T > { /** * Method that returns the number of entries from a table that meet some * cri...
apache-2.0
lgoldstein/communitychest
apps/apache/maven/pomrunner/src/main/java/net/community/apps/apache/maven/pomrunner/OutputEntry.java
811
/* * */ package net.community.apps.apache.maven.pomrunner; import net.community.chest.util.logging.LogLevelWrapper; import net.community.chest.util.map.MapEntryImpl; /** * <P>Copyright as per GPLv2</P> * @author Lyor G. * @since Mar 21, 2011 3:14:02 PM */ public class OutputEntry extends MapEntryImpl<LogLevelWr...
apache-2.0
RNAcentral/rnacentral-import-pipeline
utils/precompute/src/metadata/r2dt_hit.rs
759
use std::path::Path; use serde::{ Deserialize, Serialize, }; use anyhow::Result; use rnc_core::grouper; #[derive(Debug, Deserialize, Serialize, PartialEq)] pub struct R2dtHit { pub id: usize, pub urs_id: usize, pub urs_taxid: String, model_id: usize, model_name: String, model_source:...
apache-2.0
openstack/swift
swift/cli/recon.py
55257
# 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...
apache-2.0
ericaro/sbr
cmd/formatCmd.go
641
package cmd import ( "flag" "fmt" "os" "github.com/ericaro/sbr/sbr" ) type FormatCmd struct { legacy *bool } func (c *FormatCmd) Flags(fs *flag.FlagSet) { c.legacy = fs.Bool("legacy", false, "format the output using the legacy format") } func (c *FormatCmd) Run(args []string) { // use wd by default workspa...
apache-2.0
superphy/backend
app/routes/ra_statuses.py
4390
import redis import cPickle as pickle from ast import literal_eval from flask import Blueprint, request, jsonify, current_app from routes.job_utils import fetch_job from middleware.models import load, Pipeline bp_ra_statuses = Blueprint('reactapp_statuses', __name__) # new to 4.2.0 def merge_job_results(jobs_dict, re...
apache-2.0
Elders/Elders.Firewall
src/Elders.Firewall/IRule.cs
113
namespace Elders.Firewall { public interface IRule { RuleResult Check(object instance); } }
apache-2.0
Team-ESN-Hacktech2016/codes-Hacktech2016
user/config.php
207
<?php define('CONSUMER_KEY', '<your Twitter Dev app consumer key>'); define('CONSUMER_SECRET', '<your Twitter Dev app consumer secret>'); define('OAUTH_CALLBACK', '<your Twitter Dev app OAuth callback>'); ?>
apache-2.0
AnujaK/chrome-gae-sync
extras/StoreEndpoint.java
6699
package com.bootsimply.sync.entity; import java.util.Date; import java.util.HashMap; import java.util.List; import javax.annotation.Nullable; import javax.inject.Named; import javax.jdo.PersistenceManager; import javax.jdo.Query; import javax.persistence.EntityNotFoundException; import com.google.api.server.spi.conf...
apache-2.0
tseaver/gcloud-python
asset/google/cloud/asset_v1beta1/gapic/enums.py
1286
# -*- coding: utf-8 -*- # # Copyright 2018 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...
apache-2.0
crate/crate
libs/sql-parser/src/main/java/io/crate/sql/tree/DeallocateStatement.java
2157
/* * Licensed to Crate.io GmbH ("Crate") under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. Crate licenses * this file to you under the Apache License, Version 2.0 (the "License"); * you may not use this f...
apache-2.0
mikosik/test-injector
src/test/java/com/perunlabs/testinjector/AnnotationTest.java
1366
package com.perunlabs.testinjector; import static com.perunlabs.testinjector.inject.TestInjector.injectTest; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.ArrayList; import org.junit.Te...
apache-2.0
freedot/tstolua
tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/unionSubtypeIfEveryConstituentTypeIsSubtype.ts
2313
enum e { e1, e2 } // A union type U is a subtype of a type T if each type in U is a subtype of T interface I { [x: string]: any; foo: string | number; // ok foo2: e | number; // ok } interface I2 { [x: string]: number; // S is union type and each constituent type of S is a subtype of T ...
apache-2.0
Cloudyle/hapi-fhir
hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/dstu2/FhirResourceDaoDstu2ValidateTest.java
9830
package ca.uhn.fhir.jpa.dao.dstu2; import static org.hamcrest.Matchers.containsString; import static org.junit.Assert.*; import java.io.IOException; import java.util.Arrays; import org.hl7.fhir.instance.model.api.IIdType; import org.junit.Test; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.Re...
apache-2.0
ozone-development/meridian
server/extensions/gazetteer/main.js
466
var platform = require('platform'); var gaz = require('./Gaz'); var auth; exports.init = function(context){ auth = context.sandbox.auth; context.app.get('/gaz', auth.verifyUser, function(req, res){ gaz.query(req, function (response){ if(response.status === 200){ res.status(200); ...
apache-2.0
ChineseLincoln/JerseyRestful
src/main/java/com/drawthink/iguyuan/db/DBConnect.java
1381
package com.drawthink.iguyuan.db; import java.sql.Connection; import java.sql.SQLException; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.pool.DruidPooledConnection; public class DBConnect { public static DruidDataSource dataSource; static { try { dataSource = new DruidDataSou...
apache-2.0
jgrandja/spring-security-oauth
spring-security-oauth2/src/main/java/org/springframework/security/oauth2/common/util/ProxyCreator.java
2035
/* * Copyright 2013-2014 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
apache-2.0
aspiers/chef
chef/lib/chef/knife/ssh.rb
13401
# # Author:: Adam Jacob (<adam@opscode.com>) # Copyright:: Copyright (c) 2009 Opscode, Inc. # License:: Apache License, Version 2.0 # # 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 # # htt...
apache-2.0
tcrossland/camunda-bpm-webapp
ui/cockpit/plugins/base/app/views/processInstance/variableInstancesTab.js
10994
'use strict'; var fs = require('fs'); var uploadTemplate = fs.readFileSync(__dirname + '/variable-instance-upload-dialog.html', 'utf8'); var inspectTemplate = fs.readFileSync(__dirname + '/variable-instance-inspect-dialog.html', 'utf8'); var instancesTemplate = fs.readFileSync(__dirname + '/variable-instances-tab.htm...
apache-2.0
babman92/NineSocket
NineSocket.Data/NineResult.cs
1083
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NineSocket.Data { public class NineResult { public string Code { get; set; } Dictionary<string, string> Result; public NineResult(string code, string key, stri...
apache-2.0
stackforge/networking-hyperv
networking_hyperv/tests/unit/neutron/test_common_utils.py
2464
# Copyright 2013 Cloudbase Solutions SRL # Copyright 2013 Pedro Navarro Perez # 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...
apache-2.0
salviof/SuperBits_FrameWork
SB_FRAMEWORK/SBWebPaginasSemTagLib/src/main/java/com/super_bits/modulosSB/webPaginas/JSFManagedBeans/declarados/util/PgUtilFormatar.java
710
/* * Desenvolvido pela equipe Super-Bits.com CNPJ 20.019.971/0001-90 */ package com.super_bits.modulosSB.webPaginas.JSFManagedBeans.declarados.util; import com.super_bits.modulosSB.SBCore.UtilGeral.UtilSBCoreNumeros; import javax.enterprise.context.RequestScoped; import javax.inject.Named; /** * * @author desen...
apache-2.0
haikuowuya/android_system_code
src/com/sun/org/apache/xml/internal/serializer/SerializationHandler.java
4357
/* * Copyright (c) 2011-2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 2003-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
apache-2.0
gawkermedia/googleads-java-lib
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201601/mcm/CustomerServiceInterfacemutate.java
2037
package com.google.api.ads.adwords.jaxws.v201601.mcm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * * Update the authorized customer. * *...
apache-2.0
Banno/sbt-plantuml-plugin
src/main/java/h/Dt_t.java
1936
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * Project Info: http://plantuml.com * * This file is part of Smetana. * Smetana is a partial translation of Graphviz...
apache-2.0
luxmeter/easycomponentrenderer
easycomponentrenderer/src/main/java/luxmeter/easy/componentrenderer/DataModel.java
101
package luxmeter.easy.componentrenderer; public interface DataModel { Object get(String key); }
apache-2.0
kamiljano/github-password-finder
lib/github/repositories.js
2072
'use strict'; const config = require('../config/config'); const _ = require('lodash'); const queryBuilder = require('./query_builder'); const githubApiUrl = config.opts.githubApiUrl; const rawGithubUrl = config.opts.rawSourceGithubUrl; const githubHtmlUrl = config.opts.githubHtmlUrl; const PER_PAGE = 100; function ...
apache-2.0
Sellegit/j2objc
runtime/src/main/java/apple/uikit/NSStringDrawingContext.java
1863
package apple.uikit; import java.io.*; import java.nio.*; import java.util.*; import com.google.j2objc.annotations.*; import com.google.j2objc.runtime.*; import com.google.j2objc.runtime.block.*; import apple.audiotoolbox.*; import apple.corefoundation.*; import apple.coregraphics.*; import apple.coreservices.*; impo...
apache-2.0
LegNeato/buck
src/com/facebook/buck/ide/intellij/aggregation/AggregationModuleFactory.java
958
/* * Copyright 2017-present Facebook, 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...
apache-2.0
baby-gnu/one
src/scheduler/src/pool/VirtualMachineXML.cc
19118
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
apache-2.0
PublicTransitAnalytics/ScoreGenerator
src/main/java/com/publictransitanalytics/scoregenerator/datalayer/directories/types/Coordinate.java
1354
/* * Copyright 2017 Public Transit Analytics. * * 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...
apache-2.0
InQBarna/AChartEngine
demo/src/org/achartengine/chartdemo/demo/chart/WeightDialChart.java
2687
/** * Copyright (C) 2009, 2010 SC 4ViewSoft SRL * * 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
collegefb/fithdown
core/src/test/java/yt/javi/fithdown/core/application/source/services/CreateSourceServiceTest.java
1976
package yt.javi.fithdown.core.application.source.services; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import static org.mockito.Mockito.when; import static org.mockito.MockitoAnnotations.initMocks; import java.net.MalformedURLException; import org.junit.Before; im...
apache-2.0
evandor/skysail-framework
skysail.server.app.todos.it/src/io/skysail/server/app/todos/test/PostListHtmlLargeTest.java
1821
package io.skysail.server.app.todos.test; import io.skysail.client.testsupport.BrowserTests; import io.skysail.server.app.todos.TodoList; import io.skysail.server.app.todos.test.browser.TodoListBrowser; import org.junit.Test; import org.restlet.data.MediaType; public class PostListHtmlLargeTest extends BrowserTests<...
apache-2.0
jvillego/engines
engine/templates/app/sources/controllers/MainController.php
242
<?php class MainController extends EngineApplication{ //public static $template = 'Main'; public static function localModels(){ return array(); } public static function main(){ } } ?>
apache-2.0
eug48/hapi-fhir
hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu2016may/hapi/validation/DefaultProfileValidationSupport.java
10489
package org.hl7.fhir.dstu2016may.hapi.validation; import static org.apache.commons.lang3.StringUtils.isNotBlank; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.S...
apache-2.0
holtsoftware/potential-octo-wallhack
School C++/other2/calinder/calonder.cpp
4463
# Microsoft Developer Studio Project File - Name="calonder" - Package Owner=<4> # Microsoft Developer Studio Generated Build File, Format Version 6.00 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 CFG=calonder - Win32 Debug !MESSAGE This is not a valid makefile. To build this project using N...
apache-2.0
baishuai/leetcode
algorithms/p055/055_test.go
287
package p055 import "testing" func test(t *testing.T, nums []int, exp bool) { if canJump(nums) != exp { t.Fatal("error answer") } } func TestExample0(t *testing.T) { test(t, []int{2, 3, 1, 1, 4}, true) } func TestExample1(t *testing.T) { test(t, []int{3, 2, 1, 0, 4}, false) }
apache-2.0
ubinity/ECPy
src/ecpy/borromean.py
10755
# Copyright 2016 Cedric Mesnil <cedric.mesnil@ubinity.com>, Ubinity SAS # # 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
doreminiature/miniature
js/webviews.js
10019
/* implements selecting webviews, switching between them, and creating new ones. */ var phishingWarningPage = 'file://' + __dirname + '/pages/phishing/index.html' // TODO move this somewhere that actually makes sense var crashedWebviewPage = 'file:///' + __dirname + '/pages/crash/index.html' var errorPage = 'file:///'...
apache-2.0
artbear/snegopat-reborn-scripts
core/addins/debugHelpers.js
9379
//engine: JScript //uname: debugHelpers //dname: Отладчик:Вспомогательные команды //author: Александр Кунташов <kuntashov@gmail.com>, http://compaud.ru/blog //addin: stdcommands //addin: stdlib //addin: global /*@ Добавляет возможность вызова консоли запросов для отладки запроса и некоторые другие макросы,...
apache-2.0
abarisain/mopidy
mopidy/audio/playlists.py
12969
from __future__ import unicode_literals import pygst pygst.require('0.10') import gst import gobject import ConfigParser as configparser import io try: import xml.etree.cElementTree as elementtree except ImportError: import xml.etree.ElementTree as elementtree # TODO: make detect_FOO_header reusable in gen...
apache-2.0
whoschek/kite
kite-data/kite-data-core/src/main/java/org/kitesdk/data/spi/filesystem/FileSystemWriter.java
7685
/* * Copyright 2013 Cloudera 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 ...
apache-2.0
raupachz/beanstalk4j
src/main/java/org/beanstalk4j/ApiException.java
965
package org.beanstalk4j; /* * Copyright 2011 Björn Raupach 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...
apache-2.0
AndreJCL/JCL
JCL_Android/app/src/main/java/javassist/bytecode/analysis/MultiType.java
9604
/* * Javassist, a Java-bytecode translator toolkit. * Copyright (C) 1999- Shigeru Chiba. All Rights Reserved. * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. Alternatively, the contents of th...
apache-2.0
orientechnologies/orientdb
core/src/test/java/com/orientechnologies/orient/core/db/hook/HookReadTest.java
1963
package com.orientechnologies.orient.core.db.hook; import static org.junit.Assert.assertEquals; import com.orientechnologies.orient.core.db.document.ODatabaseDocument; import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx; import com.orientechnologies.orient.core.hook.ORecordHook; import com.orient...
apache-2.0
obulpathi/hadoop
book/ch05/src/main/java/v2/MaxTemperatureMapper.java
907
package v2; //== MaxTemperatureMapperV2 import java.io.IOException; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; public class MaxTemperatureMapper extends Mapper<LongWritable, Text, Text, IntWritable>...
apache-2.0
5hk/webida-client
common/src/webida/widgets/views/splitviewcontainer.js
20792
/* * Copyright (c) 2012-2015 S-Core Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
apache-2.0
nhsconnect/careconnect-reference-implementation
ccri-fhirserver/src/main/java/uk/nhs/careconnect/ccri/fhirserver/stu3/provider/PractitionerRoleProvider.java
5020
package uk.nhs.careconnect.ccri.fhirserver.stu3.provider; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.rest.annotation.*; import ca.uhn.fhir.rest.api.MethodOutcome; import ca.uhn.fhir.rest.api.ValidationModeEnum; import ca.uhn.fhir.rest.api.server.RequestDetails; import ca.uhn.fhir.rest.param.ReferencePa...
apache-2.0
xSAVIKx/secure_web
utils/db/entity/Site.php
635
<?php class Site { private $id; private $title; private $url; function __construct($id, $title, $url) { $this->id = $id; $this->title = $title; $this->url = $url; } function __toString() { return "Site[title=$this->title, url=$this->url]"; } /**...
apache-2.0
torrances/swtk-commons
commons-dict-wordnet-indexbyname/src/main/java/org/swtk/commons/dict/wordnet/indexbyname/instance/c/u/o/WordnetNounIndexNameInstanceCUO.java
1207
package org.swtk.commons.dict.wordnet.indexbyname.instance.c.u.o; import java.util.ArrayList; import java.util.Collection; import java.util.Map; import java.util.TreeMap; import org.swtk.common.dict.dto.wordnet.IndexNoun; import com.trimc.blogger.commons.utils.GsonUtils; public final class WordnetNounIndexNameInsta...
apache-2.0
twitter/digits-android
digits/src/main/java/com/digits/sdk/android/FailureActivity.java
1153
/* * Copyright (C) 2015 Twitter, 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 agr...
apache-2.0
aleo72/ww-ceem-radar
src/main/java/gov/nasa/worldwindx/examples/Pyramids.java
6784
/* * Copyright (C) 2012 United States Government as represented by the Administrator of the * National Aeronautics and Space Administration. * All Rights Reserved. */ package gov.nasa.worldwindx.examples; import gov.nasa.worldwind.WorldWind; import gov.nasa.worldwind.avlist.AVKey; import gov.nasa.worldwind.geom.*...
apache-2.0
HeartSaVioR/incubator-zeppelin
zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
63191
/*jshint loopfunc: true, unused:false */ /* * 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...
apache-2.0
jetdario/hrms
src/java/com/openhris/timekeeping/AttendancePolicyWindow.java
10769
/* * 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.openhris.timekeeping; import com.openhris.commons.DropDownComponent; import com.openhris.commons.OpenHrisUtilities...
apache-2.0
ideastorm/formula-w
server/chat.js
1032
/* * Copyright 2015 phil. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
apache-2.0
PayPal-Opportunity-Hack-Chennai-2015/AIDE-At-Action
aeaadmin/src/main/java/org/aea/entity/Ngo.java
3113
package org.aea.entity; import java.io.Serializable; import javax.persistence.*; import java.util.Set; /** * The persistent class for the ngo database table. * */ @Entity @Table(name = "ngo") @NamedQuery(name = "Ngo.findAll", query = "SELECT n FROM Ngo n") public class Ngo implements Serializable {...
apache-2.0
gawkermedia/googleads-java-lib
modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201509/cm/AdGroupCriterionPage.java
5001
/** * AdGroupCriterionPage.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201509.cm; /** * Contains a subset of adgroup criteria resulting from a * {@link AdGroupCriterionService#ge...
apache-2.0
kibertoad/swampmachine
swampmachine-loaders/src/main/java/net/kiberion/swampmachine/assets/readers/AbstractFileReader.java
1307
package net.kiberion.swampmachine.assets.readers; import java.io.IOException; import java.io.InputStream; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.Set; public abstract class AbstractFileReader { protected final Path baseDir; public AbstractFileReader...
apache-2.0
patjdor/amber
src/amber/models/GridModel.cpp
590
/* * GridModel.cpp * * Created on: Nov 10, 2014 * Author: pdoran */ #include <models/GridModel.h> #include <GL/gl.h> namespace amber { GridModel::GridModel() { } GridModel::~GridModel() { } void GridModel::render() const { glPushAttrib(GL_ENABLE_BIT); glDisable(GL_LIGHTING); glColor3f(0,0,0); glB...
apache-2.0
liupeng3425/learnJava
src/gui/PrintFontsName.java
498
package gui; import java.awt.*; /** * Created by Peng on 2016/1/24. * 打印系统所有字体名字。 */ public class PrintFontsName { public static void main(String[] args) { GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment(); String[] fontsName = environment.getAvailableFontFami...
apache-2.0
xutao1989103/preceLess
src/main/java/com/tianyu/jty/wechat/msg/VideoMsg.java
1619
package com.tianyu.jty.wechat.msg; import com.tianyu.jty.wechat.util.MessageBuilder; /** * Created by xtao on 2015/11/24. */ public class VideoMsg extends BaseMsg { private String mediaId; private String title; private String description; public String getMediaId() { return med...
apache-2.0
YukaiXin/Domes
app/src/main/java/com/kxyu/domes/okhttp/request/CountingRequestBody.java
2009
package com.kxyu.domes.okhttp.request; import java.io.IOException; import okhttp3.MediaType; import okhttp3.RequestBody; import okio.Buffer; import okio.BufferedSink; import okio.ForwardingSink; import okio.Okio; import okio.Sink; /** * Decorates an OkHttp request body to count the number of bytes written when writ...
apache-2.0
Learnosity/L15
test/simple.js
2039
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* * Copyright 2013 Art Compiler LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
apache-2.0
asakusafw/asakusafw-compiler
compiler-project/extension-redirector/src/main/java/com/asakusafw/lang/compiler/extension/redirector/RedirectorParticipant.java
3679
/** * Copyright 2011-2021 Asakusa Framework Team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
apache-2.0
khalib/udacity-sunshine
app/src/main/java/com/calebwhang/sunshine/app/data/WeatherContract.java
7597
/* * 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 app...
apache-2.0
ahwxl/deep
src/main/java/org/activiti/engine/impl/ExecutionQueryImpl.java
11318
/* 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
owlabs/incubator-airflow
airflow/operators/hive_operator.py
5801
# -*- coding: utf-8 -*- # # 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 #...
apache-2.0
Neha--Agarwal/moVirt
moVirt/src/main/java/org/ovirt/mobile/movirt/ui/EventsFragment.java
4520
package org.ovirt.mobile.movirt.ui; import android.database.Cursor; import android.os.Bundle; import android.support.v4.content.Loader; import android.support.v4.widget.SwipeRefreshLayout; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import org.androidannotations.annotations.AfterViews; ...
apache-2.0
yugangw-msft/azure-sdk-for-net
sdk/synapse/Azure.Analytics.Synapse.AccessControl/tests/samples/Sample1_HelloWorld.cs
3297
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using Azure.Core.TestFramework; using Azure.Analytics.Synapse.Tests; using Azure.Analytics.Synapse.AccessControl; using Azure.Ana...
apache-2.0
VeselovAndrey/LoreKeeper
tests/LoreKeeper.EF6.Tests/ExceptionsInCommandHandlersTests.cs
2144
// ----------------------------------------------------------------------- // <copyright file="ExceptionsInCommandHandlersTests.cs"> // Copyright (c) 2013-2015 Andrey Veselov. All rights reserved. // License: Apache License 2.0 // Contacts: http://andrey.moveax.com andrey@moveax.com // </copyright> // ----------------...
apache-2.0
pdrados/cas
support/cas-server-support-webauthn-jpa/src/main/java/org/apereo/cas/webauthn/JpaWebAuthnCredentialRegistration.java
1359
package org.apereo.cas.webauthn; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Builder; import lombok.Getter; import lombok.Setter; import lombok.experimental.Accessors; import lombok.experimental.SuperBuilder; import org.hibernate.annotations.GenericGenerator; import org.springframework.data.ann...
apache-2.0
Doloops/arondor-common-reflection
arondor-common-reflection-noreflect/src/main/java/com/arondor/common/reflection/noreflect/model/FieldSetter.java
996
/* * Copyright 2013, Arondor * * 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
bitstorm/Wicket-rest-annotations
restannotations/src/main/java/org/wicketstuff/rest/resource/MethodMappingInfo.java
5820
/** * 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"); yo...
apache-2.0
mythguided/hydra
hydra-essentials/src/main/java/com/addthis/hydra/common/hash/PluggableHashFunction.java
2003
/* * 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 u...
apache-2.0
Elevator89/RimWorld-Subtranslator
Elevator.Subtranslator.LabelDecliner/DeclinationTools.cs
1888
using Cyriller; using Cyriller.Model; using System; namespace Elevator.Subtranslator.LabelDecliner { public static class DeclinationTools { public static CyrResult Decline(CyrPhrase decliner, string phrase) { CyrResult result = DeclineSingular(decliner, phrase); return result ?? DeclinePlural(decliner, ph...
apache-2.0
xiangxik/castle-platform
castle-themes/castle-theme-uikit/src/main/resources/META-INF/bower_components/kendo-ui/src/js/cultures/kendo.culture.zh-HK.js
6674
/** * Copyright 2017 Telerik AD * ...
apache-2.0
google/periph
experimental/devices/tlv493d/doc.go
992
// Copyright 2020 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. // Package tlv493d implements interfacing code to the Infineon TLV493D haff effect sensor. // // Features of the device: // 3-dimensional ha...
apache-2.0
cweathernet/AndroidApp
src/net/crowdweather/droid/GPSTracker.java
6709
package net.crowdweather.droid; import static android.location.LocationManager.GPS_PROVIDER; import static android.location.LocationManager.NETWORK_PROVIDER; import android.app.AlertDialog; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent...
apache-2.0
allurefw/allure-report
allure-commandline/src/main/java/io/qameta/allure/option/ResultsOptions.java
1346
/* * Copyright 2019 Qameta Software 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 ...
apache-2.0
AndriySvyryd/UnicornHack
src/UnicornHack.Web/ClientApp/src/components/MeterBar.tsx
1284
import React from 'react'; import { observer } from 'mobx-react'; export const MeterBar = observer((props: IProgressBarProps) => { if (React.Children.count(props.children) !== 0) { return <div className="progress"> {props.children} {renderLabel(props)} </div> } retu...
apache-2.0
krasserm/ipf
archetypes/basic/src/main/resources/archetype-resources/src/main/java/SampleServer.java
305
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}; import org.apache.camel.spring.Main; public class SampleServer { public static void main(String[] args) throws Exception { Main.main("-ac", "/context.xml"); } }
apache-2.0
peterrodgers/dover
src/uk/ac/kent/displayGraph/utilities/GraphUtilityCreateRandomGraph.java
3858
package uk.ac.kent.displayGraph.utilities; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import javax.swing.JButton; import javax.swing.JFr...
apache-2.0
schlaile/phabricator
src/applications/calendar/query/PhabricatorCalendarEventSearchEngine.php
16286
<?php final class PhabricatorCalendarEventSearchEngine extends PhabricatorApplicationSearchEngine { private $calendarYear; private $calendarMonth; private $calendarDay; public function getResultTypeDescription() { return pht('Calendar Events'); } public function getApplicationClassName() { ret...
apache-2.0
Jie211/solver_cpp
times.cpp
3675
#include "times.hpp" times::times(){ mv_time = 0.0; dot_time = 0.0; memset_time = 0.0; h2d_time = 0.0; d2h_time = 0.0; cpu_mv_time = 0.0; cpu_dot_time = 0.0; // reg_time = 0.0; // unreg_time = 0.0; cp_time = 0.0; cons_time = 0.0; dis_time = 0.0; } times::~times(){ } std::string times::get_d...
apache-2.0
jonfoster/pyxb1
tests/trac/test-trac-0111.py
1703
import pyxb.binding.generate import pyxb.utils.domutils from xml.dom import Node import os.path xsd='''<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:simpleType name="cards"> <xs:restriction base="xs:string"> <xs:enumeration value="clubs"/> <xs:...
apache-2.0
GoogleCloudPlatform/cloud-derby
car/driver/py/robotderbycar.py
7582
#!/usr/bin/env python # https://github.com/DexterInd/GoPiGo3/blob/master/LICENSE.md # # MIT License # Copyright (c) 2017 Dexter Industries # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software with...
apache-2.0
bbockelm/condor-network-accounting
src/condor_procd/proc_family.cpp
23802
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
apache-2.0
tainanod/TainanWelfare-android
src/src/tw/gov/tainan/tainanwelfare/DialogFragmentLandmarkDetail.java
5574
package tw.gov.tainan.tainanwelfare; import java.util.ArrayList; import java.util.Iterator; import java.util.Set; import tw.gov.tainan.tainanwelfare.R; import tw.gov.tainan.tainanwelfare.comm.Util; import tw.gov.tainan.tainanwelfare.dbentity.LandmarkDBEntity; import android.annotation.SuppressLint; import android.app...
apache-2.0
GoogleChromeLabs/chromeos_smart_card_connector
example_cpp_smart_card_client_app/src/chrome_certificate_provider/api_bridge.cc
9613
// 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 applicable...
apache-2.0
bramvdbogaerde/rocket-arm
app-container/discovery/parse.go
1552
package discovery import ( "fmt" "net/url" "runtime" "strings" "github.com/coreos/rocket/app-container/schema/types" ) const ( defaultVersion = "latest" defaultOS = runtime.GOOS defaultArch = runtime.GOARCH ) type App struct { Name types.ACName Labels map[string]string } func NewApp(name string...
apache-2.0
tonyqus/npoi
examples/hssf/ExtractStringsFromXls/HSSFTestDataSamples.cs
8103
/* ==================================================================== 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 Y...
apache-2.0
pomack/closure-templates
java/src/com/google/template/soy/gosrc/internal/IsComputableAsGoExprsVisitor.java
6024
/* * Copyright 2008 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 ...
apache-2.0
aygalinc/Context-SOCM
cream-it/cream-it-functional-extension/src/main/java/fr/liglab/adele/cream/it/functional/extension/invalid/NotExposedService.java
147
package fr.liglab.adele.cream.it.functional.extension.invalid; /** * Created by aygalinc on 21/02/17. */ public interface NotExposedService { }
apache-2.0
fkolacek/FIT-VUT
mess/IPK3-Petr/udt.cpp
1177
#include "udt.h" UDT::UDT(){ SN = 0; W = 0; T = 0; D = ""; } UDT::UDT(unsigned int a, string b){ SN = a; W = 0; T = 0; D = b; } void UDT::setW(int a){ W = a; } void UDT::setT(unsigned int a){ T = a; } unsigned int UDT::getSN(){ return SN; } u...
apache-2.0
factoryfx/factoryfx
oracledbStorage/src/main/java/module-info.java
172
module io.github.factoryfx.oracledbStorage { requires io.github.factoryfx.factory; requires java.sql; exports io.github.factoryfx.factory.datastorage.oracle; }
apache-2.0