repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
HackNTU/HackingMap
src/router/index.js
1490
import Vue from 'vue' import Router from 'vue-router' import Home from '@/components/home/Home' import MapView from '@/components/home/hackingmap/MapView.vue' import ListView from '@/components/home/hackingmap/ListView.vue' import FullMapView from '@/components/home/hackingmap/FullMapView' import AdminView from '@/comp...
apache-2.0
jerlang/jerlang
src/main/java/org/jerlang/erts/epmd/NodeRegistry.java
1317
package org.jerlang.erts.epmd; import java.util.Collection; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; public class NodeRegistry { private Map<String, Node> nodes = new ConcurrentHashMap<>(); private Map<String, Node> unreg = new ConcurrentHashMap<>(); public void register(Node...
apache-2.0
mdavid/nuget
test/Core.Test/UserSettingsTests.cs
32646
using System; using System.Collections.Generic; using System.IO; using Moq; using Xunit; using NuGet.Test.Mocks; namespace NuGet.Test { public class SettingsTests { [Fact] public void UserSettings_CallingCtroWithNullFileSystemWithThrowException() { // Act & As...
apache-2.0
ox-it/ords-database-api
src/test/java/uk/ac/ox/it/ords/api/database/resources/TableTestComplex.java
3024
/* * Copyright 2015 University of Oxford * * 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
taimir/dashboard
src/app/frontend/replicasetdetail/replicasetdetail_module.js
1458
// Copyright 2015 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
NymphWeb/nymph
com/nymph/annotation/POST.java
487
package com.nymph.annotation; import static java.lang.annotation.ElementType.METHOD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; /** * Http协议的Post请求方式 * @author LiuYang * @author LiangTianDong * @date 2017年10月22日下午3:18:25 ...
apache-2.0
trasa/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/transform/SubmitTaskStateChangeResultJsonUnmarshaller.java
2958
/* * 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 "lice...
apache-2.0
nirvanesque/g5k-api
config/initializers/mime_types.rb
998
# Copyright (c) 2009-2011 Cyril Rohr, INRIA Rennes - Bretagne Atlantique # # 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
zhaowenjian/CCCourse
runtime/kv/USER_TOKEN_aes_key.php
40
<?php //hsnfgZ7YQAP7yqVfc0WO17c04G4QXCSl
apache-2.0
dicentim/rockr0lla
master-module/util/src/main/java/org/rdform/ConfigurationUtil.java
1156
/* * project: RMF-0RM * date: 26.11.12 * file : ConfigurationUtil.java * encoding: UTF-8 */ package org.rdform; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.XMLConfiguration; import java.net.URL; import static com.google.common.base.Preconditions.chec...
apache-2.0
Birdrock/client-javascript
kubernetes/test/model/V1beta1Deployment.spec.js
3130
/** * Kubernetes * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: v1.5.1-660c2a2 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit t...
apache-2.0
lastaflute/lastaflute-test-fortress
src/main/java/org/docksidestage/remote/maihama/showbase/wx/remogen/suffix/toponly/RemoteWxRemogenSuffixToponlyReturn.java
1950
/* * Copyright 2015-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
matrix-org/matrix-react-sdk
src/accessibility/roving/types.ts
698
/* Copyright 2020 The Matrix.org Foundation C.I.C. 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
raulv/license-audit
src/main/java/org/itcollege/valge/licenseaudit/model/Scope.java
278
package org.itcollege.valge.licenseaudit.model; public class Scope { public final String name; public final boolean isBundled; public int dependencyCount = 0; public Scope(String name, boolean isBundled) { this.name = name; this.isBundled = isBundled; } }
apache-2.0
XGe1991/myProject
src/public/libs/umeditor-php/umeditor.config.js
10494
/** * umeditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示************...
apache-2.0
frreiss/tensorflow-fred
tensorflow/python/saved_model/registration.py
3714
# Copyright 2021 The TensorFlow 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 applica...
apache-2.0
EdwinVW/pitstop
src/WebApp/ViewModels/VehicleManagementOfflineViewModel.cs
91
namespace Pitstop.WebApp.ViewModels; public class VehicleManagementOfflineViewModel { }
apache-2.0
sdgdsffdsfff/appleframework
apple-web/src/main/java/com/appleframework/web/freemarker/directive/CheckboxDirective.java
3894
package com.appleframework.web.freemarker.directive; import java.io.IOException; import java.io.Writer; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Component; import com.appleframework.web.freemarker.util.DirectiveUtil; import freemarker.core.En...
apache-2.0
imasahiro/armeria
core/src/main/java/com/linecorp/armeria/server/HttpHeaderPathMapping.java
9808
/* * Copyright 2017 LINE Corporation * * LINE Corporation licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
apache-2.0
Keboo/PebbleSharp
PebbleSharp.Core.Tests/AbstractTests/BaseCrc32Tests.cs
967
using Microsoft.VisualStudio.TestTools.UnitTesting; using PebbleSharp.Core.Bundles; using PebbleSharp.Core.Tests.Resources; namespace PebbleSharp.Core.Tests.AbstractTests { public abstract class BaseCrc32Tests { protected abstract IZip GetZip(); public abstract void GeneratesCorrectChecksumFo...
apache-2.0
maxml/sample-apps
photoframe/source/src/org/kaaproject/kaa/demo/photoframe/event/StopPlayEvent.java
820
/** * Copyright 2014-2016 CyberVision, 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 applicabl...
apache-2.0
LukasVyhlidka/HomeAutomator
server/src/main/java/org/vyhlidka/homeautomation/domain/BoilerChange.java
1604
package org.vyhlidka.homeautomation.domain; import org.apache.commons.lang3.Validate; import java.time.LocalDateTime; /** * Created by lucky on 26.12.16. */ public class BoilerChange { public final String boilerId; public final LocalDateTime dateTime; public final Boiler.BoilerState state; publ...
apache-2.0
xevious99/google-api-php-client
src/Google/Service/YouTube/Search/Resource.php
7838
<?php namespace Google\Service\YouTube\Search; /* * Copyright 2010 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 * * Unl...
apache-2.0
shahmishal/swift
lib/SILOptimizer/Transforms/MergeCondFail.cpp
4516
//===--- MergeCondFail.cpp - Merge cond_fail instructions ----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
wilsoncampusano/saglo
src/main/java/equipo/once/elizabeth/richard/wilson/usecases/BuscarAreaComunUseCase.java
1258
package equipo.once.elizabeth.richard.wilson.usecases; import equipo.once.elizabeth.richard.wilson.entities.dominio.AreaComun; import equipo.once.elizabeth.richard.wilson.services.AreaComunService; import equipo.once.elizabeth.richard.wilson.dtos.BuscarAreaComunRequest; import equipo.once.elizabeth.richard.wilson.dtos...
apache-2.0
zy4kamu/Coda
src/utils/StatCalc/stat-calc.cpp
14019
/** * @file stat-calc.cpp * @brief source file for StatCalc class for calculating other statics of words and documets */ #include "stat-calc-tools.h" #include "stat-calc.h" #include "Strings/Splitter.h" #include "document-processor.h" #include "ISentenceSplitter.h" #include <cmath> using namespace statcalc; usi...
apache-2.0
cement/AndroidWebServer
TinyHttpServer/src/com/coment/simple/SimpleTest.java
580
package com.coment.simple; import java.io.IOException; import com.cement.constants.Settings.MODE; import com.cement.server.EmbedHttpServer; public class SimpleTest { public static void main(String[] args) throws IOException { EmbedHttpServer server = new EmbedHttpServer(9999); // server.addHandle...
apache-2.0
Sargul/dbeaver
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/qm/QMObjectType.java
2387
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2021 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licen...
apache-2.0
moritalous/LineBot2
src/main/java/forest/rice/field/k/linebot/function01/pokemon/Pokemon.java
1594
package forest.rice.field.k.linebot.function01.pokemon; public class Pokemon { private int no; private String name; private String captorId; private String profilePhto; private String url; public int getNo() { return no; } public void setNo(int no) { this.no = no; } public String getName() { return...
apache-2.0
Tetha/bifroest
rewrite-framework/src/main/java/com/goodgame/profiling/rewrite_framework/core/source/handler/SourceHandlerCreator.java
1371
package com.goodgame.profiling.rewrite_framework.core.source.handler; import java.util.ServiceLoader; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import com.goodgame.profiling.rewrite_framework.core.config.FetchConfiguration; import com.goodgame.profiling.rewrite_framework.cor...
apache-2.0
vjanmey/EpicMudfia
com/planet_ink/coffee_mud/Items/Weapons/Scimitar.java
1976
package com.planet_ink.coffee_mud.Items.Weapons; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.plan...
apache-2.0
garygunarman/firanew
admin/emails/order_/_cancel/get.php
3553
<?php /* * ---------------------------------------------------------------------- * EMAIL - NOTIFICATION BACK ORDER: GET * ---------------------------------------------------------------------- */ class EMAIL_GET{ private $conn; function __construct() { $this->conn = new mysqli(DB_HOST, DB_USER, D...
apache-2.0
CMPUT301W14T07/Team7Project
Team7Project/src/ca/ualberta/team7project/cache/CacheOperation.java
9968
package ca.ualberta.team7project.cache; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.UUID; import android.content.Context; import ca.ualberta.team7project.location.LocationComparator; import ca.ualberta.team...
apache-2.0
go-swagger/go-swagger
cmd/swagger/commands/generate/support_test.go
1230
package generate_test import ( "io/ioutil" "log" "os" "path/filepath" "testing" "github.com/go-swagger/go-swagger/cmd/swagger/commands/generate" flags "github.com/jessevdk/go-flags" ) func TestGenerateSupport(t *testing.T) { testGenerateSupport(t, false) } func TestGenerateSupportStrict(t *testing.T) { tes...
apache-2.0
yeastrc/paws_Protein_Annotation_Web_Services
Protein_Annotation_Jobcenter_Modules/JobcenterModulesCommon/src/org/yeastrc/paws/utils/CreateShellScriptToRun.java
2989
package org.yeastrc.paws.utils; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import org.apache.log4j.Logger; import org.yeastrc.paws.constants.ShellScriptToRunConstants; /** * * */ public class CreateShellScriptToRun { private static Logger log = Logger.getLogger(CreateShellSc...
apache-2.0
centideo/bolt
storage/driver.azure/src/retry_policies.cpp
5817
// ----------------------------------------------------------------------------------------- // <copyright file="retry_policies.cpp" company="Microsoft"> // Copyright 2013 Microsoft Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in complian...
apache-2.0
infanprodigy/blog-iz
BlogEngine.Tests/PageTemplates/Admin/Profile.cs
1725
using WatiN.Core; namespace BlogEngine.Tests.PageTemplates.Admin { public class Profile : Page { public string Url { get { return Constants.Root + "/admin/Users/Profile.aspx?id={0}"; } } public TextField FirstName { get { return Document.TextField(Find.B...
apache-2.0
exon-it/redmine-scala-client
client-api/src/main/scala/by/exonit/redmine/client/SavedQuery.scala
878
/* * Copyright 2017 Exon IT * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
apache-2.0
iotalking/mqtt-broker
www/dashboard/webpack.base.config.js
1614
const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { entry: { main: './src/main', vendors: './src/vendors' }, output: { path: path.join(__dirname, './dist') }, module: { ...
apache-2.0
bupt1987/JgFramework
src/main/java/com/zhaidaosi/game/jgframework/Boot.java
15833
package com.zhaidaosi.game.jgframework; import com.zhaidaosi.game.jgframework.common.BaseIp; import com.zhaidaosi.game.jgframework.common.BaseRunTimer; import com.zhaidaosi.game.jgframework.common.BaseString; import com.zhaidaosi.game.jgframework.common.cache.BaseLocalCached; import com.zhaidaosi.game.jgframework.comm...
apache-2.0
mcoblenz/Glacier
tests/glacier/ImmutablePrimitiveContainer.java
194
import edu.cmu.cs.glacier.qual.Immutable; @Immutable public class ImmutablePrimitiveContainer { int x; public void setX(int x) { // ::error: (glacier.assignment) this.x = x; } }
apache-2.0
stdlib-js/www
lib/server/lib/routes/package_tree_array.js
1862
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
zhi6666/coolweather
app/src/main/java/com/coolweather/android/MainActivity.java
2126
package com.coolweather.android; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.os.Build; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import andro...
apache-2.0
pierreyves-jegou/CloneManager
CloneManager-GUI/src/main/java/caillou/company/clonemanager/gui/bean/impl/VisitDirectoriesResult.java
885
/* * 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 caillou.company.clonemanager.gui.bean.impl; import caillou.company.clonemanager.background.bean.applicationFile.contract.Appli...
apache-2.0
otto-de/flummi
src/test/java/de/otto/flummi/IndicesAdminClientTest.java
17270
package de.otto.flummi; import com.google.gson.JsonObject; import de.otto.flummi.request.CreateIndexRequestBuilder; import de.otto.flummi.request.DeleteIndexRequestBuilder; import de.otto.flummi.request.IndicesExistsRequestBuilder; import de.otto.flummi.response.HttpServerErrorException; import de.otto.flummi.util.Htt...
apache-2.0
tensorflow/java
tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/proto/distruntime/ClusterDefOrBuilder.java
1352
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/cluster.proto package org.tensorflow.proto.distruntime; public interface ClusterDefOrBuilder extends // @@protoc_insertion_point(interface_extends:tensorflow.ClusterDef) com.google.protobuf.MessageOrBuilder { /*...
apache-2.0
marcovc/casper
test/getResults.py
829
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- def getTestsField(filename,field): from Ft.Xml import Parse r = dict() doc = Parse(filename) testsuite = doc.documentElement tests = testsuite.xpath('.//test') for test in tests: if test.xpath('string(result)')=="ok": testName=test.xpath('string...
apache-2.0
nano-projects/nano-framework
nano-orm/nano-orm-jedis/src/test/java/org/nanoframework/orm/jedis/cluster/SetTests.java
3621
/* * Copyright 2015-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
jlpedrosa/camel
components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaConstants.java
2009
/** * 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
cargografias/cargo-admin-panel
public/app/controllers/organizationEdit.js
2912
angular.module('cargoNgApp') .controller('OrganizationEditController', function($scope, $modalInstance, $http, item) { $scope.item = {}; var mode = $scope.mode = item ? 'edit' : 'add'; if("edit" == mode){ loadItem(item.id); } function loadOrganizationName(){ var url = "https://" +...
apache-2.0
phatboyg/Machete
src/Machete.HL7Schema/Generated/V26/Components/FN.cs
1293
// This file was automatically generated and may be regenerated at any // time. To ensure any changes are retained, modify the tool with any segment/component/group/field name // or type changes. namespace Machete.HL7Schema.V26 { using HL7; /// <summary> /// FN (Component) - Family Name /// </summary...
apache-2.0
EixoX/Jetfuel-Java
com.eixox.jetfuel/src/main/java/com/eixox/restrictions/Length.java
223
package com.eixox.restrictions; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface Length { public int min(); public int max(); }
apache-2.0
gpolitis/jitsi-meet
react/features/chat/components/native/ChatMessage.js
6130
// @flow import React from 'react'; import { Text, View } from 'react-native'; import { Avatar } from '../../../base/avatar'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { translate } from '../../../base/i18n'; import { Linkify } from '../../../base/react'; import { connect } from '../../...
apache-2.0
cmaere/lwb
templates/protostar/index1fc7.php
747
<?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"><ShortName>National Water Supply and Drainage Board</ShortName><Description>National Water Supply and Drainage Board</Description><InputEncoding>UTF-8</InputEncoding><Image type="image/vnd.microsoft.icon" width="1...
apache-2.0
VahidN/AutoMapperSamples
Sample04/Properties/AssemblyInfo.cs
1353
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Sample04")] [assembly: AssemblyDescriptio...
apache-2.0
perpetual-motion/clrplus
Crypto/X509StoreExtensions.cs
1207
//----------------------------------------------------------------------- // <copyright company="CoApp Project"> // Copyright (c) 2011 Eric Schultz. All rights reserved. // </copyright> // <license> // The software is licensed under the Apache 2.0 License (the "License") // You may not use the softwa...
apache-2.0
googleapis/google-api-ruby-client
google-api-client/generated/google/apis/cloudresourcemanager_v1/representations.rb
31444
# Copyright 2015 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 writing,...
apache-2.0
JeffLi1993/springdream
spring/springdream-ioc/src/main/java/org/spring/resource/FileSourceExample.java
2927
package org.spring.resource; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.Resource; import org.springframework.util.FileCopyUtils; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; i...
apache-2.0
linzhaoming/origin
pkg/apps/apiserver/registry/deploylog/wait.go
2910
package deploylog import ( "context" "errors" "fmt" "time" "github.com/golang/glog" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/watch" corev1client "k8s.io/client-go/kubernetes/typed/core/v1" watchtools "k8s.io/client-go/tools/watch" appsv1 "github.c...
apache-2.0
cityindex-attic/TradingApi.Client.CS
Source/Dev/Source/Clients/CIAPI.CS/TradingApi.Client.Framework.DTOs/ListNewsHeadlinesResponseDTO.cs
335
namespace TradingApi.Client.Framework.DTOs { /// <summary> /// The response from a GET request for News headlines /// </summary> public class ListNewsHeadlinesResponseDTO { /// <summary> /// A list of News headlines /// </summary> public NewsDTO[] Headlines { get; s...
apache-2.0
coolaj86/fxos-angular-demo
scripts/services/fx-msg.js
6839
'use strict'; /** * @ngdoc service * @name fxos.msg * @description * # msg * Service in the fxos. */ angular.module('fxos', []) .service('fxMsg', ['$rootScope', '$q', '$window', function msg($rootScope, $q, $window) { // AngularJS will instantiate a singleton by calling "new" on this function // h...
apache-2.0
googlefonts/fluid
src/demos/WaveDemo.js
5138
/** @license * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
apache-2.0
idefav/IdefavOAuth2Demo
WCFRescourcesServer/Code/IdefavAuthorizationManager.cs
4538
using System; using System.Collections.Generic; using System.IdentityModel.Policy; using System.Linq; using System.Net.Http; using System.Security.Cryptography; using System.Security.Principal; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Security; using System.ServiceModel....
apache-2.0
chenyang78/souper
lib/Pass/Pass.cpp
13273
// Copyright 2014 The Souper 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
srdc/cda2fhir
src/main/java/tr/com/srdc/cda2fhir/transform/IValueSetsTransformer.java
11124
package tr.com.srdc.cda2fhir.transform; /* * #%L * CDA to FHIR Transformer Library * %% * Copyright (C) 2016 SRDC Yazilim Arastirma ve Gelistirme ve Danismanlik Tic. A.S. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
apache-2.0
datastax/spark-cassandra-connector
connector/src/main/scala/org/apache/spark/sql/cassandra/TimeUUIDPredicateRules.scala
2451
/* * Copyright DataStax, Inc. * * Please see the included license file for details. */ package org.apache.spark.sql.cassandra import com.datastax.spark.connector.cql.TableDef import com.datastax.spark.connector.types.TimeUUIDType import com.datastax.spark.connector.util.Logging import org.apache.spark.SparkConf i...
apache-2.0
msmiteu/java-uuid-v1-generator
src/main/java/eu/msmit/uuid/v1/ParallelGenerator.java
2190
/** * Copyright 2015 Marijn Smit (info@msmit.eu) * * 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
knizhnik/scalan-sql
spark/NativeTest.scala
4754
import org.apache.spark._ import org.apache.spark.rdd._ import org.apache.spark.sql._ import org.apache.spark.sql.catalyst.expressions.Row import scala.reflect.ClassTag import scala.collection.mutable.ArrayBuffer import org.apache.spark.executor.TaskMetrics import org.apache.spark.unsafe.memory.TaskMemoryManager imp...
apache-2.0
rfellows/pentaho-kettle
engine/src/org/pentaho/di/trans/steps/loadfileinput/LoadFileInputMeta.java
35352
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
apache-2.0
graham22/Classic
j2modlite/src/main/java/ca/farrelltonsolar/j2modlite/procimg/InputRegister.java
2592
//License /*** * Java Modbus Library (jamod) * Copyright (c) 2002-2004, jamod development team * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must re...
apache-2.0
kendarorg/ECQRSFramrework
ECQRSFramrework/Samples/UsersManager/UserManager.Web/Api/Locals/OrganizationUsersController.cs
4753
// =========================================================== // Copyright (c) 2014-2015, Enrico Da Ros/kendar.org // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of...
apache-2.0
tolstenko/mobagen
engine/Shader.cpp
6351
#include "Shader.hpp" #include "Logger.hpp" #include "components/DirectionalLight.hpp" #include "components/PointLight.hpp" #include "components/SpotLight.hpp" namespace mobagen { Shader::Shader(void) { g_shProg = glCreateProgram(); } Shader::Shader(std::string shaderAssetName) { g_shProg = glCreatePro...
apache-2.0
osnote/LinkPHP
bin/provider/ConsoleProvider.php
453
<?php namespace bin\provider; use linkphp\event\EventDefinition; use linkphp\event\EventServerProvider; class ConsoleProvider implements EventServerProvider { public function update(EventDefinition $definition) { app()->make(\linkphp\console\Console::class) ->import( requ...
apache-2.0
square/dagger
core/src/test/java/dagger/internal/KeysTest.java
5914
/** * Copyright (C) 2012 Square, 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
flychensc/orange
stock/__init__.py
781
""" stock API """ from stock.website import get_balance_sheet, get_profit_statement from stock.fundamental import get_annual_report, get_quarterly_results from stock.fundamental import get_stock_basics, get_basic_info from stock.fundamental import get_level0_report, get_level1_report from stock.fundamental import cla...
apache-2.0
Julien-Cohen/pullupgen
tests/testPullUpGen/test2/test/A.java
134
package testPullUpGen.test2.test; /** * Test : pull up m */ public class A extends S { Integer m(){ return 1; } }
apache-2.0
codesoftware/NSIGEMCO
src/main/java/co/com/codesoftware/servicio/producto/ObtenerExistenciasProducto.java
1217
package co.com.codesoftware.servicio.producto; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Clase Java para obtenerExistenciasProducto complex type. * * <p>El siguiente fragmento de esquema especifica el cont...
apache-2.0
LeeHounshell/Capstone-Project
mobile/src/main/java/com/harlie/radiotheater/radiomysterytheater/model/MutableMediaMetadata.java
1714
/* * 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
ptphp/PyLib
src/webpy1/src/manage/changeHosts.py
2045
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys class changeHosts(): systemRoot = "C:\\Windows\\System32\\drivers\\etc\\hosts" content_local = """ 222.73.17.25 www.10086.com 222.73.17.25 www.myproject.com 127.0.0.1 www.mysql.org 127.0.0.1 jjr360.com 127.0.0.1 www.jjr360.com 127.0.0.1 shop...
apache-2.0
QTek/QRadio
tramatego/src/tramatego/transforms/common/launchers.py
760
import subprocess def get_qradio_data(command, result_column = 0 ): python_path = 'C:\Python27\python.exe' qradio_path = 'C:\MaltegoTransforms\QRadio\cli_qradio.py' error = "lol" output = [] command_final = python_path + ' ' + qradio_path + ' ' + command p = subprocess.Popen(command_final, st...
apache-2.0
rpudil/midpoint
model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/activiti/users/MidPointUserManager.java
1772
/* * Copyright (c) 2010-2013 Evolveum * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
leoleegit/jetty-8.0.4.v20111024
jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SslSocketTimeoutTest.java
2624
// ======================================================================== // Copyright (c) 2010 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the terms of the Ecl...
apache-2.0
oehme/analysing-gradle-performance
commons/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p4/Production86.java
1887
package org.gradle.test.performance.mediummonolithicjavaproject.p4; public class Production86 { private String property0; public String getProperty0() { return property0; } public void setProperty0(String value) { property0 = value; } private String property1; p...
apache-2.0
couchbase/couchbase-lite-java-core
src/main/java/com/couchbase/lite/storage/SQLiteNativeLibrary.java
3532
/** * Created by Pasin Suriyentrakorn. * * Copyright (c) 2015 Couchbase, 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/LIC...
apache-2.0
Valakias/AndroidWearProject
app/src/main/java/com/example/android/sunshine/app/DetailFragment.java
12874
/* * Copyright (C) 2015 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
armstrong/armstrong.core.arm_sections
armstrong/core/arm_sections/south_migrations/0002_auto__chg_field_section_slug__add_unique_section_full_slug.py
2009
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Section.slug' db.alter_column('arm_sections_section', ...
apache-2.0
sql-machine-learning/sqlflow
go/workflow/response/response_test.go
921
// Copyright 2020 The SQLFlow 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 applicab...
apache-2.0
LSL-Git/ImageLabelerApp
photo-selector/src/main/java/com/sleepyzzz/photo_selector/http/okhttp/OkHttpUtils.java
8910
package com.sleepyzzz.photo_selector.http.okhttp; import android.os.Handler; import android.os.Looper; import android.util.Log; import com.sleepyzzz.photo_selector.http.okhttp.builder.GetBuilder; import com.sleepyzzz.photo_selector.http.okhttp.builder.HeadBuilder; import com.sleepyzzz.photo_selector.http.okhttp.builde...
apache-2.0
LBEVAN/capone
database/seeds/CategoryTableSeeder.php
802
<?php use Illuminate\Database\Seeder; class CategoryTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('category')->insert([ 'description' => 'Hoodie', 'code' => 'HOOD', ]); DB::...
apache-2.0
spring-cloud-incubator/spring-cloud-vault-config
spring-cloud-vault-config/src/test/java/org/springframework/cloud/vault/config/VaultConfigKubernetesTests.java
4223
/* * Copyright 2017-2018 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 a...
apache-2.0
RabbitStewDio/ivy-project-converter
src/main/scala/com/rabbitstewdio/build/ivyconverter/ProjectExclusion.scala
308
package com.rabbitstewdio.build.ivyconverter import org.apache.maven.model.Exclusion case class ProjectExclusion(org:Option[String], name: Option[String]) { def toMavenExclusion = { val me = new Exclusion me.setArtifactId(name.getOrElse("*")) me.setGroupId(org.getOrElse("*")) me } }
apache-2.0
concourse/concourse
atc/api/jobserver/rerun_build.go
1631
package jobserver import ( "encoding/json" "errors" "net/http" "github.com/concourse/concourse/atc/api/accessor" "github.com/concourse/concourse/atc/api/present" "github.com/concourse/concourse/atc/db" ) func (s *Server) RerunJobBuild(pipeline db.Pipeline) http.Handler { return http.HandlerFunc(func(w http.Re...
apache-2.0
oehf/ipf
commons/ihe/xacml20/impl/src/main/java/org/openehealth/ipf/commons/ihe/xacml20/stub/saml20/assertion/package-info.java
844
/* * Copyright 2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
apache-2.0
ParTech/Expand-Descendants-Command
Source/ParTech.Commands.ExpandDescendants/ExpandDescendants.cs
1284
namespace ParTech.Commands { using System.Linq; using Sitecore; using Sitecore.Data.Items; using Sitecore.Shell.Framework.Commands; /// <summary> /// Command that expands all the descendants of the selected item in the Content Editor tree /// </summary> public class ExpandDescendan...
apache-2.0
newcommerce/jsforms
scripts/validate.php
697
<?php // validate.php require_once("../../php_incs/tasty_error.inc.php"); require_once("../../php_incs/db.inc.php"); $table = $_GET['table']; $field = $_GET['field']; $value = $_GET['value']; $function = $_GET['function']; $modelId = $_GET['modelId']; $result = $function($table, $field, $value, $modelId); $data = a...
apache-2.0
huyanoperation/magicpet
magicpet/Classes/loader/CBaseDataAnimation.cpp
391
// // CBaseDataAnimation.cpp // magicpet // // Created by jia huyan on 12-1-9. // Copyright (c) 2012年 道锋互动(北京)科技有限责任公司. All rights reserved. // #include <iostream> #include "CBaseDataAnimation.h" CBaseDataAnimation::CBaseDataAnimation() { } //---------------------------------------------- // // CBaseDataAnim...
apache-2.0
TheRingbearer/HAWKS
ode/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLReaderImpl.java
1540
/* * 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
nafae/developer
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201406/cm/ExperimentReturnValue.java
1971
package com.google.api.ads.adwords.jaxws.v201406.cm; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * A container for return values from the Experiment...
apache-2.0
bryamrr/wit-webapp
app/assets/javascripts/shared/public.js
292
$(document).on('turbolinks:load', function () { $("#shopping-cart").click(function () { console.log("shopping-cart"); }); $("#team-list").click(function () { console.log("team-list"); }); $("#settings").click(function () { $(".aside-menu").toggleClass("open"); }); });
apache-2.0
annict/annict
app/components/activities/record_activity_component.rb
2417
# frozen_string_literal: true module Activities class RecordActivityComponent < ApplicationV6Component def initialize(view_context, activity_group:) super view_context @activity_group = activity_group @user = activity_group.user.decorate end def render build_html do |h| h...
apache-2.0