repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
d/fruit
tests/late_binding_new.cpp
1291
// expect-success /* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
apache-2.0
thompsct/VPRKB
src/semsimKB/model/physical/DBCompositeEntity.java
3833
package semsimKB.model.physical; import java.net.URI; import org.apache.commons.lang3.tuple.Pair; import semsimKB.definitions.SemSimTypes; import semsimKB.definitions.StructuralRelation; public class DBCompositeEntity extends DBPhysicalComponent implements PhysicalEntity{ private Pair<PhysicalEntity, Ph...
apache-2.0
jacarrichan/eoffice
src/main/webapp/js/hrm/StandSalaryForm.js
6989
var StandSalaryForm = function(a) { this.standardId = a; return new Ext.Panel( { id : "StandSalaryForm", iconCls : "menu-development", tbar : this.initToolbar(), border : false, title : "薪酬标准详细信息", items : [ this.setup(a) ] }); }; StandSalaryForm.prototype.setup = function(c) { var b = new StandSalaryIt...
apache-2.0
pioneers/topgear
python/forseti2/piemos_cmd.java
2759
/* LCM type definition class file * This file was automatically generated by lcm-gen * DO NOT MODIFY BY HAND!!!! */ package forseti2; import java.io.*; import java.util.*; import lcm.lcm.*; public final class piemos_cmd implements lcm.lcm.LCMEncodable { public forseti2.header header; public boolean auto...
apache-2.0
google-research/google-research
aqt/utils/hparams_utils.py
6561
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
apache-2.0
bradcfisher/izpack
izpack-panel/src/main/java/com/izforge/izpack/panels/target/TargetConsolePanel.java
5721
/* * IzPack - Copyright 2001-2012 Julien Ponge, All Rights Reserved. * * http://izpack.org/ * http://izpack.codehaus.org/ * * Copyright 2002 Jan Blok * * 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 o...
apache-2.0
cloudera/cm_api
setup.py
1298
#! /usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you m...
apache-2.0
fengcms/fengcms
system/common/function.php
17295
<?php /******************************************************************* * @authors FengCms * @web http://www.fengcms.com * @email web@fengcms.com * @date 2013-10-30 16:00:12 * @version FengCms Beta 1.0 * @copy Copyright © 2013-2018 Powered by DiFang Web Studio **********************************...
apache-2.0
davidknipe/MenuPin
MenuPin/MenuProvider/AddFindPinToMenu.cs
663
using System.Collections.Generic; using EPiServer.Shell.Navigation; namespace MenuPin.MenuProvider { [MenuProvider] public class AddFindPinToMenu : IMenuProvider { public IEnumerable<MenuItem> GetMenuItems() { var pinMenuItemCommerce = new UrlMenuItem( ...
apache-2.0
b-slim/hive
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/AlterTableArchiveDesc.java
1869
/* * 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
wapache/wason
core/src/test/java/org/wapache/json/mapper/example/package-info.java
1325
/******************************************************************************* * Copyright (c) 2016 EclipseSource. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction...
apache-2.0
wastl/cmarmotta
java/model/src/main/java/org/apache/marmotta/cmarmotta/model/ProtoNamespace.java
1719
package org.apache.marmotta.cmarmotta.model; import org.apache.marmotta.cmarmotta.model.proto.Model; import org.openrdf.model.Namespace; /** * An implementation of a Sesame Namespace backed by a protocol buffer. * * @author Sebastian Schaffert (sschaffert@apache.org) */ public class ProtoNamespace implements Name...
apache-2.0
JasonKessler/scattertext
scattertext/termscoring/CredTFIDF.py
9983
import math import pandas as pd from scipy.stats import norm from scattertext.termscoring.CohensDCalculator import CohensDCalculator from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer import numpy as np from scipy.sparse import csr_matrix import math import pandas as pd from scipy.stats...
apache-2.0
freeVM/freeVM
enhanced/archive/classlib/modules/security/src/main/java/java/security/BasicPermissionCollection.java
3759
/* Copyright 1998, 2004 The Apache Software Foundation or its licensors, as applicable * * 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/LIC...
apache-2.0
exKAZUu/ParserTests
fixture/IronRuby/expected_xml/block.rb
34867
<block startline="1"> <lasgn startline="1"> <Symbol>i</Symbol> <lit startline="1"> <Fixnum>0</Fixnum> </lit> </lasgn> <if startline="3"> <call startline="3"> <lvar startline="3"> <Symbol>i</Symbol> </lvar> <Symbol>==</Symbol> <arglist startline="4"> <l...
apache-2.0
SAP/go-hdb
driver/ioutildepr1.15.go
381
//go:build !go1.16 // +build !go1.16 // SPDX-FileCopyrightText: 2014-2022 SAP SE // // SPDX-License-Identifier: Apache-2.0 // Delete after go1.15 is out of maintenance. package driver import ( "io" "io/ioutil" ) func _readFile(filename string) ([]byte, error) { return ioutil.ReadFile(filename) } func _readAll(r ...
apache-2.0
OpenNetworking/gcoin-community
src/rpcblockchain.cpp
34649
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers // Copyright (c) 2014-2016 The Gcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "checkpoints.h" #include...
apache-2.0
arquillian/arquillian-extension-warp
impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/URLMapping.java
1216
/* * JBoss, Home of Professional Open Source * Copyright 2012, Red Hat Middleware LLC, and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not us...
apache-2.0
box/mojito
webapp/src/main/java/com/box/l10n/mojito/android/strings/AndroidStringDocumentReader.java
1683
package com.box.l10n.mojito.android.strings; import com.google.common.base.Strings; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import javax.xml.parsers.ParserConfigurationException; import java.io.File; import java.io.IOException; import java...
apache-2.0
chenbillcat/AuthDog
authdog/tests/test_functional.py
688
from unittest import TestCase from webtest import TestApp from authdog.tests import FunctionalTest class TestRootController(FunctionalTest): def test_get(self): response = self.app.get('/') assert response.status_int == 200 def test_search(self): response = self.app.post('/', params=...
apache-2.0
SheldonNunes/Twilight-Imperium-Companion-App
TwilightImperiumMasterCompanion.iOS/ViewControllers/Race/RaceSetupView.designer.cs
1813
// WARNING // // This file has been generated automatically by Visual Studio from the outlets and // actions declared in your storyboard file. // Manual changes to this file will not be maintained. // using Foundation; using System; using System.CodeDom.Compiler; using UIKit; namespace TwilightImperiumMaste...
apache-2.0
bbxyard/bbxyard
yard/skills/66-java/mp-study/mp-comb-search/src/main/java/com/bbxyard/mp/comb/config/MPConfig.java
529
package com.bbxyard.mp.comb.config; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.transaction.annotation.EnableTransactionManagement; @Configuration @E...
apache-2.0
dobbymoodge/origin
test/extended/util/framework.go
46707
package util import ( "fmt" "io/ioutil" "net/http" "os" "os/exec" "path" "path/filepath" "regexp" "strings" "sync" "time" g "github.com/onsi/ginkgo" o "github.com/onsi/gomega" "k8s.io/kubernetes/pkg/api/legacyscheme" batchv1 "k8s.io/api/batch/v1" kapiv1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/...
apache-2.0
kameshsampath/vertx-maven-plugin
src/it/run-args-extended-launcher-it/src/main/java/demo/SimpleVerticle.java
1020
/* * * Copyright (c) 2016-2017 Red Hat, Inc. * * Red Hat 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
charybdeBE/Cytomine-core
web-app/lib/requirejs/build/jslib/optimize.js
11294
/** * @license Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */ /*jslint plusplus: false, nomen: false, regexp: false, strict: false */ /*global define: false */ define([ 'lang', 'logger', 'env!e...
apache-2.0
aprescott/diffa
agent/src/main/webapp/js/data.js
17108
/** * Copyright (C) 2012 LShift 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 law or a...
apache-2.0
mpgurucharan/vzhackathon
src/Extract.java
4648
import edu.stanford.nlp.ling.CoreAnnotations; import edu.stanford.nlp.pipeline.Annotation; import edu.stanford.nlp.pipeline.StanfordCoreNLP; import edu.stanford.nlp.semgraph.SemanticGraph; import edu.stanford.nlp.semgraph.SemanticGraphCoreAnnotations; import edu.stanford.nlp.trees.TypedDependency; import edu.stanford.n...
apache-2.0
googleads/google-ads-ruby
lib/google/ads/google_ads/v9/common/dates_pb.rb
1500
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v9/common/dates.proto require 'google/ads/google_ads/v9/enums/month_of_year_pb' require 'google/api/annotations_pb' require 'google/protobuf' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/ads/google...
apache-2.0
KarloKnezevic/Ferko
src/java/hr/fer/zemris/jcms/service/reservations/impl/ferweb/FERWebReservationManagerFactory.java
43962
package hr.fer.zemris.jcms.service.reservations.impl.ferweb; import java.io.InputStream; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.ut...
apache-2.0
Torridity/dsworkbench
Core/src/main/java/de/tor/tribes/ui/models/REFSourceTableModel.java
3294
/* * Copyright 2015 Torridity. * * 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
WeTheInternet/collide
client/src/main/java/com/google/collide/client/code/autocomplete/SignalEventEssence.java
2091
// Copyright 2012 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
souravbadami/oppia
core/templates/dev/head/domain/skill/SkillDifficultyObjectFactorySpec.ts
1801
// Copyright 2018 The Oppia 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 ap...
apache-2.0
Dokman/CursoC-
Comparaciones en if/stdafx.cpp
327
// stdafx.cpp: archivo de código fuente que contiene sólo las inclusiones estándar // Comparaciones en if.pch será el encabezado precompilado // stdafx.obj contiene la información de tipos precompilada #include "stdafx.h" // TODO: mencionar los encabezados adicionales que se necesitan en STDAFX.H // pero no en este a...
apache-2.0
johnewart/kensho
src/main/java/net/johnewart/kensho/views/QueriesView.java
1375
package net.johnewart.kensho.views; import io.dropwizard.views.View; import net.johnewart.kensho.core.Query; import net.johnewart.kensho.stats.QueryCache; import net.johnewart.kensho.stats.StatsEngine; import java.util.Collections; import java.util.Comparator; import java.util.List; public class QueriesView extends ...
apache-2.0
wlk/brainwallet-scala
src/test/scala/com/wlangiewicz/brainwallet/UnitSpec.scala
163
package com.wlangiewicz.brainwallet import org.scalatest._ abstract class UnitSpec extends FlatSpec with Matchers with OptionValues with Inside with Inspectors
apache-2.0
packerbobohu/ibas.initialfantasy
ibas.initialfantasy.service/src/main/webapp/bsapp/privilege/index.ts
467
/** * @license * Copyright color-coding studio. All Rights Reserved. * * Use of this source code is governed by an Apache License, Version 2.0 * that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0 */ // 模块索引文件,此文件集中导出类 export * from "./PrivilegeFunc"; export * from "./PrivilegeLis...
apache-2.0
lxqfirst/bi-platform
tesseract/src/main/java/com/baidu/rigel/biplatform/tesseract/model/PosTreeNode.java
3516
/** * Copyright (c) 2014 Baidu, 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 b...
apache-2.0
janes/janes-master-thesis-ecommerce
src/main/webapp/app/entities/brand/brand-dialog.component.ts
2652
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Response } from '@angular/http'; import { Observable } from 'rxjs/Rx'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import { JhiEventManager, JhiAlertService } from 'ng-jhipster'; i...
apache-2.0
Orange-OpenSource/matos-profiles
matos-android/src/main/java/gov/nist/javax/sip/header/ims/SecurityVerifyHeader.java
855
package gov.nist.javax.sip.header.ims; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * 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 * * ...
apache-2.0
AsherYang/ThreeLine
app/src/main/java/com/asher/threeline/ui/theme/ThemeHelper.java
1393
package com.asher.threeline.ui.theme; import android.content.Context; import com.asher.threeline.util.IPreferenceKey; import com.asher.threeline.util.PreferenceUtil; /** * Created by ouyangfan on 17/4/19. * <p> * 获取Theme相关的颜色值 */ public class ThemeHelper { private PreferenceUtil SP; public ThemeHelper(...
apache-2.0
romanoid/buck
src/com/facebook/buck/cli/PerfManifestCommand.java
12844
/* * Copyright 2019-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
jeanca93/UTE
src/main/java/entidades/Horariosdetalletmp.java
3938
package entidades; // Generated Jul 4, 2016 12:16:49 PM by Hibernate Tools 4.0.0.Final import java.util.Date; /** * Horariosdetalletmp generated by hbm2java */ public class Horariosdetalletmp implements java.io.Serializable { private Integer idHorariosDetTmp; private int idHorarioCabTmp; private int idProfesor;...
apache-2.0
syamantm/finatra
utils/src/test/scala/com/twitter/finatra/tests/conversions/ByteBufferConversionsTest.scala
335
package com.twitter.finatra.tests.conversions import com.twitter.finatra.conversions.bytebuffer._ import com.twitter.inject.Test import com.twitter.io.Buf class ByteBufferConversionsTest extends Test { "debug output" in { val buf = Buf.Utf8("hello") val bb = Buf.ByteBuffer.Shared.extract(buf) bb.debugO...
apache-2.0
lugenggeng/car
CarAssess/app/src/test/java/com/wanglibao/usedcar/carassess/ExampleUnitTest.java
324
package com.wanglibao.usedcar.carassess; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); ...
apache-2.0
Sefford/material-in-30-minutes
app/src/main/java/com/sefford/material/sample/common/ui/application/MaterialApplication.java
2208
/* * Copyright (C) 2015 Saúl Díaz * * 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
jiaozhujun/c3f
src-core/com/youcan/core/util/Captcha.java
2601
package com.youcan.core.util; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.image.BufferedImage; import java.util.Random; /** * 验证码 * @author HaoNing * @version 1.0 */ public class Captcha { public static String SOURCE = "abcdefghigklmnopqrstovwxwz12345...
apache-2.0
shellposhy/lemon
src/main/java/cn/com/lemon/common/connection/Oracles.java
2088
package cn.com.lemon.common.connection; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; /** * Static utility methods pertaining to {@code Connections} primitives. * <p> * The base utility contain basic operate by {@code newInstance} and * {@code close} * * @author shellp...
apache-2.0
leomicheloni/knockout-inheritance
model.js
249
var ko = require("knockout"); function model(){ this.name = ko.observable(""); this.lastName = ko.observable(""); this.fullName = ko.computed(function(){ return this.name() + ", " + this.lastName(); }, this); }; module.exports = model;
apache-2.0
iesl/fuse_ttl
src/factorie-factorie_2.11-1.1/src/main/scala/cc/factorie/app/nlp/embedding/CBOW.scala
7467
package cc.factorie.app.nlp.embedding import cc.factorie.variable.CategoricalDomain import cc.factorie.model._ import cc.factorie.la._ import cc.factorie.optimize._ import cc.factorie.util.{IntArrayBuffer} import scala.util.Random import java.io._ import cc.factorie.util.DoubleAccumulator import scala.collection.mutabl...
apache-2.0
panlover/designpattern
src/main/java/com/yudeyang/factory/simplefactory/TomatoEgg.java
223
package com.yudeyang.factory.simplefactory; /** * Created by deyang on 2016/12/5. */ public class TomatoEgg implements Food { @Override public void cook() { System.out.println("蕃茄炒鸡蛋"); } }
apache-2.0
conker84/eclairjs-nashorn
examples/ml/lda_example.js
2792
/* * Copyright 2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
daolinet/daolinet
cli/server.go
2646
package cli import ( "crypto/tls" "strings" "time" log "github.com/Sirupsen/logrus" "github.com/daolinet/daolinet/discovery" "github.com/daolinet/daolinet/discovery/kv" "github.com/samalba/dockerclient" "github.com/codegangsta/cli" "github.com/da...
apache-2.0
ontop/ontop
core/model/src/main/java/it/unibz/inf/ontop/model/term/functionsymbol/impl/geof/GeofSymDifferenceFunctionSymbolImpl.java
1329
package it.unibz.inf.ontop.model.term.functionsymbol.impl.geof; import com.google.common.collect.ImmutableList; import it.unibz.inf.ontop.model.term.DBConstant; import it.unibz.inf.ontop.model.term.ImmutableFunctionalTerm; import it.unibz.inf.ontop.model.term.ImmutableTerm; import it.unibz.inf.ontop.model.term.TermFac...
apache-2.0
gaaiatinc/valde-hapi
lib/index.js
1263
/** * Created by Ali on 4/9/2015. */ "use strict"; /** * */ class ValdeHapiPlatform { constructor() {} /** * * @param {[type]} application_root_folder [description] * @return {[type]} [description] */ init(application_root_folder) { this.application_root_folder ...
apache-2.0
NationalSecurityAgency/ghidra
Ghidra/Debug/Debugger-agent-dbgeng/src/main/java/agent/dbgeng/impl/dbgeng/io/WrapCallbackIDebugInputCallbacks.java
2595
/* ### * IP: GHIDRA * * 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 writin...
apache-2.0
Arcnor/Non-Dairy-Soy-Plugin
test/net/venaglia/nondairy/mocks/MockTreeNode.java
16186
/* * Copyright 2010 - 2012 Ed Venaglia * * 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
pulibrary/plum
app/models/concerns/solr_dates.rb
766
module SolrDates extend ActiveSupport::Concern included do def date_modified formatted_date('date_modified') end def date_uploaded formatted_date('date_uploaded') end def system_modified formatted_date('system_modified') end def create_date formatted_date('syst...
apache-2.0
studiodev/archives
2009 - Portfolio V3/theme/news-detail.tpl.php
8369
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Studio-dev.fr - Actualité : {::titrePage::}</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <m...
apache-2.0
dreedcon/DEV-S.E
Motor2D/Motor2D/j1Map.cpp
18305
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "Player.h" #include "ManagerCriatures.h" #include "j1Render.h" #include "j1Textures.h" #include "ParticleManager.h" #include "j1Map.h" #include <math.h> j1Map::j1Map() : j1Module(), map_loaded(false) { name.create("map"); } // Destructor j1Map::~j1Ma...
apache-2.0
vtemian/uni-west
second_year/p3/tramways/src/tramways/graph/alghoritms/BFS.java
2224
package tramways.graph.alghoritms; import tramways.graph.exceptions.NodeNotFound; import tramways.graph.exceptions.NullNodeException; import tramways.graph.interfaces.ICostEdge; import tramways.graph.interfaces.INode; import tramways.graph.interfaces.IGraph; import java.util.*; public class BFS<Node extends INode, E...
apache-2.0
telstra/open-kilda
src-java/kilda-pce/src/main/java/org/openkilda/pce/model/FindPathResult.java
956
/* Copyright 2020 Telstra Open Source * * 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
piola-frameworks/piola-php
piola/exceptions/UserErrorException.php
383
<?php /* * 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. */ namespace piola\exceptions; /** * Description of UserErrorException * * @author Pablo */ class UserErrorExc...
apache-2.0
FinchYang/study
teststudy/Request.cs
327
using System; using System.Collections.Generic; namespace study { public partial class Request { public int Ordinal { get; set; } public string Content { get; set; } public string Ip { get; set; } public string Method { get; set; } public DateTime Time { get; set; } ...
apache-2.0
esjewett/tdcode-examples
lib/openUI5/resources/sap/m/Carousel-dbg.js
42341
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2014 SAP AG or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ /* ---------------------------------------------------------------------------------- * Hint: This is a derived (...
apache-2.0
anguslees/kubecfg-1
utils/meta.go
2521
package utils import ( "fmt" "strconv" "strings" log "github.com/sirupsen/logrus" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/version" "k8s.io/client-go/discovery" ) // ServerVersion captures k8s major.minor version in a parsed form type ServerVers...
apache-2.0
auxilium/JelloScrum
JelloScrum/JelloScrum.Repositories/Exceptions/JelloScrumRepositoryException.cs
1838
// Copyright 2009 Auxilium B.V. - http://www.auxilium.nl/ // // 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
lipprints/jjjx
JJJX/app/src/main/java/com/jjjx/function/entity/eventbus/LoginRefreshBus.java
431
package com.jjjx.function.entity.eventbus; /** * * @author xz * @date 2017/11/2 0002 * 用来刷新已登陆的界面 */ public class LoginRefreshBus { private boolean isRefresh; public LoginRefreshBus(boolean isRefresh) { this.isRefresh = isRefresh; } public boolean isRefresh() { return isRefresh;...
apache-2.0
knative-sandbox/eventing-kafka
pkg/channel/distributed/controller/util/compare_test.go
11810
/* Copyright 2021 The Knative 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 in writing, soft...
apache-2.0
googleapis/google-api-java-client-services
clients/google-api-services-dialogflow/v2/1.31.0/com/google/api/services/dialogflow/v2/model/GoogleCloudDialogflowV2ListAnswerRecordsResponse.java
4005
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
apache-2.0
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js
765
//// [inheritanceStaticFuncOverridingAccessor.js] var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var a = (function () { function a() { ...
apache-2.0
saicheems/discovery-artifact-manager
toolkit/src/main/java/com/google/api/codegen/viewmodel/metadata/VersionIndexView.java
2237
/* Copyright 2016 Google Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
apache-2.0
fingeronthebutton/RIDE
src/robotide/namespace/namespace.py
21419
# Copyright 2008-2015 Nokia Solutions and Networks # # 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 l...
apache-2.0
jacarrichan/eoffice
src/main/webapp/js/admin/FixedAssetsView.js
7938
Ext.ns("FixedAssetsView"); var FixedAssetsView = function() { }; FixedAssetsView.prototype.setTypeId = function(a) { this.typeId = a; FixedAssetsView.typeId = a; }; FixedAssetsView.prototype.getTypeId = function() { return this.typeId; }; FixedAssetsView.prototype.getView = function() { return new Ext.Panel( { id...
apache-2.0
pulcy/prometheus-conf
deps/github.com/coreos/fleet/fleetd/fleetd.go
8443
// Copyright 2014 CoreOS, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
apache-2.0
firejack-open/Firejack-Platform
platform/src/main/webapp/js/net/firejack/platform/core/component/editor/FieldAllowedValueGrid.js
4072
/* * 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
xasx/camunda-bpm-platform
engine-spring/src/test/java/org/camunda/bpm/engine/spring/test/transaction/ServiceTaskBean.java
1235
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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/licenses/LICENSE-2...
apache-2.0
cyberh0me/IoTCoreSetSettings
App_IoTCoreSetSettings_Core_UWP/Data/Configuration.cs
664
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cyberh0me.net.IoTCoreSetSettings.Data { public class Configuration { public string Interface { get; set; } public bool DHCP1 { get; set; } public string IPAddre...
apache-2.0
rgooch/Dominator
imagepublishers/amipublisher/api.go
8505
package amipublisher import ( "time" "github.com/Cloud-Foundations/Dominator/lib/awsutil" "github.com/Cloud-Foundations/Dominator/lib/filesystem" "github.com/Cloud-Foundations/Dominator/lib/log" libtags "github.com/Cloud-Foundations/Dominator/lib/tags" ) const ExpiresAtFormat = "2006-01-02 15:04:05" type Image...
apache-2.0
palmer159/openstack-test
packstack/plugins/ironic_275.py
4394
# -*- coding: utf-8 -*- # 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...
apache-2.0
drnic/noop-cf-boshrelease
src/github.com/cloudfoundry-incubator/routing-api/Godeps/_workspace/src/github.com/cloudfoundry/dropsonde/integration_test/log_integration_test.go
3212
package integration_test import ( "fmt" "github.com/cloudfoundry/dropsonde" "github.com/cloudfoundry/dropsonde/log_sender" "github.com/cloudfoundry/dropsonde/metric_sender" "github.com/cloudfoundry/dropsonde/metricbatcher" "github.com/cloudfoundry/dropsonde/metrics" "github.com/cloudfoundry/loggregatorlib/logge...
apache-2.0
dev-alberto/Bachelor2017
Code/FastArithmetic/joint_multiplication.py
5828
from Code.util import w_NAF, right_to_left_scalar_mul from Code.DataStructures.interfaces import AbstractPoint from Code.FastArithmetic.scalar_multiplication import FastScalarMultiplier class JointMultiplication: def __init__(self, point1, point2, w1, w2): assert isinstance(point1, AbstractPoint) ...
apache-2.0
dongjunpeng/whale
src/main/java/com/buterfleoge/whale/service/weixin/protocol/WxPayJsapiNotifyRequest.java
19378
package com.buterfleoge.whale.service.weixin.protocol; import java.io.Serializable; import javax.xml.bind.annotation.XmlRootElement; import com.buterfleoge.whale.type.WxCode; import com.buterfleoge.whale.type.protocol.Request; /** * @author xiezhenzong * */ @XmlRootElement(name = "xml") public class WxPayJsapiNo...
apache-2.0
quantumlib/Cirq
cirq-core/cirq/testing/consistent_qasm_test.py
2890
# Copyright 2018 The Cirq Developers # # 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 in ...
apache-2.0
syamantm/finatra
http/src/test/scala/com/twitter/finatra/http/tests/integration/doeverything/main/domain/SomethingStreamedRequest.scala
325
package com.twitter.finatra.http.tests.integration.doeverything.main.domain import com.twitter.finatra.request.QueryParam import com.twitter.finatra.validation.NotEmpty case class SomethingStreamedRequest( @NotEmpty @QueryParam somethingId: String, @QueryParam field1: Option[String], @QueryParam field2: Option[...
apache-2.0
eSDK/esdk_cloud_fc_cli
test/demo/FC/eSDK_FC_1.5_Native_Demo_BS_JAVA/src/com/huawei/esdk/fusioncompute/demo/servlet/QuerySiteUriServlet.java
3580
package com.huawei.esdk.fusioncompute.demo.servlet; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apac...
apache-2.0
bluelatex/bluelatex-web
test/spec/entities/SessionTest.js
1451
describe("User entity", function () { "use strict"; var mockSessionResource, $httpBackend, ServerService; beforeEach(angular.mock.module("bluelatex")); beforeEach(function () { angular.mock.inject(function ($injector) { ServerService = $injector.get("ServerService"); $...
apache-2.0
vvv1559/algorytms-and-data-structures
leetcode/src/main/java/com/github/vvv1559/algorithms/leetcode/math/Sqrt.java
515
package com.github.vvv1559.algorithms.leetcode.math; import com.github.vvv1559.algorithms.annotations.Difficulty; import com.github.vvv1559.algorithms.annotations.Level; /* * Original text: https://leetcode.com/problems/sqrtx/description/ * * Implement int sqrt(int x). * * Compute and return the square root of x...
apache-2.0
Orange-OpenSource/matos-profiles
matos-android/src/main/java/com/android/internal/view/menu/SubMenuBuilder.java
2688
package com.android.internal.view.menu; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * 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 * * ...
apache-2.0
ctripcorp/x-pipe
core/src/test/java/com/ctrip/xpipe/testutils/SpringApplicationStarter.java
2228
package com.ctrip.xpipe.testutils; import com.ctrip.xpipe.lifecycle.AbstractStartStoppable; import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; import o...
apache-2.0
OasisDigital/nges
src/test/java/com/oasisdigital/nges/event/jdbc/EventStreamListITest.java
4439
package com.oasisdigital.nges.event.jdbc; import static java.time.OffsetDateTime.now; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; import java.util.UUID; import org.testng.annotatio...
apache-2.0
sjaco002/incubator-asterixdb
asterix-events/src/main/java/edu/uci/ics/asterix/event/error/VerificationUtil.java
5435
/* * Copyright 2009-2012 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
apache-2.0
avatartwo/avatar2
avatar2/peripherals/__init__.py
34
from .avatar_peripheral import *
apache-2.0
zoozooll/MyExercise
meep/MeepCommunicator/src/com/oregonscientific/meep/communicator/User.java
3265
package com.oregonscientific.meep.communicator; /** * Copyright (C) 2013 IDT International Ltd. */ import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.j256.ormlite.dao.ForeignCollection; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.field.Fo...
apache-2.0
eFaps/eFaps-WebApp
src/main/java/org/efaps/ui/wicket/components/tree/StructurBrowserTreeTable.java
7996
/* * Copyright 2003 - 2017 The eFaps Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
apache-2.0
thebestpol/Effective
data/src/main/java/es/polgomez/data/repository/datasources/api/entities/ApiPointOfInterest.java
2130
package es.polgomez.data.repository.datasources.api.entities; import java.io.Serializable; /** * Point of interest detailed api entity */ public class ApiPointOfInterest implements Serializable{ private String id; private String title; private String address; private String transport; private S...
apache-2.0
junkieDolphin/tbdc15
workflows/2016-10-04-origin-destination-tensor/mktensor.py
6968
#!/usr/bin/env python """Create a tensor from compressed infoblu archive.""" import numpy import pandas import argparse import tarfile column_names = ['trip', 'timestamp', 'lat', 'lon', 'vehicle', 'speed'] use_columns = ['trip', 'timestamp', 'lat', 'lon'] def digitize(lat, lon, box, scale): ''' Transform o...
apache-2.0
schleichardt/akka-persistence-snapshot-testkit
src/main/scala/SnapshotStoreSpec.scala
2916
package info.schleichardt.akka.persistence.snapshotstore import akka.actor._ import akka.persistence._ import akka.testkit._ import com.typesafe.config._ import org.scalatest._ import java.util.UUID import akka.testkit.TestKitBase private[snapshotstore] case class TestStateClass(foo: String, bar: Int) private[snap...
apache-2.0
CA-APM/ca-apm-example-webservice
webservice-example/src/main/java/com/wily/introscope/webservices/alerts/IAlertPollingService.java
2945
/** * IAlertPollingService.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.wily.introscope.webservices.alerts; public interface IAlertPollingService extends java.rmi.Remote { public com.wily.introscope.server.webservicesap...
apache-2.0
ganesh2shiv/jump-ninja
andengine/src/main/java/org/andengine/util/modifier/IModifier.java
3485
package org.andengine.util.modifier; import org.andengine.util.exception.AndEngineRuntimeException; import java.util.Comparator; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 11:17:50 - 19.03.2010 */ public interface IModifier<T> { // ============================...
apache-2.0
JetBrains/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/annotator/template/AbstractInstantiationTest.scala
2885
package org.jetbrains.plugins.scala package annotator package template import org.jetbrains.plugins.scala.annotator.element.ScNewTemplateDefinitionAnnotator import org.jetbrains.plugins.scala.lang.psi.api.expr.ScNewTemplateDefinition /** * Pavel Fatin */ class AbstractInstantiationTest extends AnnotatorTestBase[ScN...
apache-2.0